00001 #ifndef BSPLIB_HPP
00002 #define BSPLIB_HPP
00003
00004 #ifdef __cplusplus
00005 extern "C"{
00006 #endif
00007
00015 void bsp_begin(int maxProcs);
00016
00020 int bsp_pid();
00021
00022
00026 int bsp_nprocs();
00027
00032 void bsp_sync();
00033
00040 void bsp_pushregister (const void *ident, int size);
00041
00049 void bsp_popregister(const void *ident);
00050
00061 void bsp_put(int pid, const void *src, void *dst, int offset, int nbytes);
00062
00063
00074 void bsp_get(int pid, void * src, int offset, void * dst, int nBytes);
00075
00076
00084 void bsp_push_reg (const void *ident, int size);
00085
00093 void bsp_pop_reg (const void *ident);
00094
00095 #ifdef __cplusplus
00096 }
00097 #endif
00098
00099 #endif