GeNN  1.1
GPU enhanced Neuronal Networks (GeNN)
 All Classes Files Functions Variables Typedefs Macros Pages
simpleBit.h
Go to the documentation of this file.
1 #ifndef SIMPLEBIT_H
2 #define SIMPLEBIT_H
3 
4 #include <cassert>
5 #include <cmath>
6 
7 //-----------------------------------------------------------------------
12 //-----------------------------------------------------------------------
13 
14 // bit tool macros
15 #define B(x,i) ((x) & (0x80000000 >> (i)))
16 
17 #define setB(x,i) x= ((x) | (0x80000000 >> (i)))
18 
19 #define delB(x,i) x= ((x) & (~(0x80000000 >> (i))))
20 
21 #endif