/* $Description:$ Generic BSP include file */
#include <time.h>
#include <limits.h>
#define ALEX
#undef ALEX
#ifndef ALEX
#include "bsp.h"
#endif

#define N              64
#define MAX_N      1048576 /* Doesn't matter */
#define SELEM          80
#define STEP	       64
#define IT		3 /* 3=upt to 262144 */


clock_t clock();
#define MAX_NUM_PROCS      0
#define get_nprocs()       BSP_nodecount   /* get number of processors      */
#define get_pid()          BSP_nodenum     /* get processor id              */
#define TRUE                  1
#define FALSE                 0
#define bool                  int
#define byte                  unsigned char 
#define MX_BYTE               (byte)0xFF
#define s_type                int
#define t_type                int
#define p_type                int
#define LEFT                  0
#define Swap(t, v1, v2) { t = v1 ; v1 = v2 ; v2 = t ; }
#define Xor(x, y)       (!(x) ^ !(y))  
#define Odd(x)          ((x) % 2))
#define Max(x, y)       (x) > (y) ?  (x) : (y)
#define Min(x, y)       (x) < (y) ?  (x) : (y)
#define Abs(x)          (x) < 0   ? (-x) : (x)
extern int BSP_nodecount, BSP_nodenum ;
#ifdef ALEX
#define bsp_time() (((double)clock())/((double) CLOCKS_PER_SEC))
#define bsp_begin(X) {}
#define bsp_end()    {}
#define bsp_abort(s) exit(1);
#endif


