/usr/include/lpsolve/lp_bit.h is in liblpsolve55-dev 5.5.0.15-4build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #include "lp_types.h"
#if defined INLINE
# define MYINLINE INLINE
#else
# define MYINLINE static
#endif
MYINLINE void set_biton(MYBOOL *bitarray, int item)
{
bitarray[item / 8] |= (1 << (item % 8));
}
MYINLINE void set_bitoff(MYBOOL *bitarray, int item)
{
bitarray[item / 8] &= ~(1 << (item % 8));
}
MYINLINE MYBOOL is_biton(MYBOOL *bitarray, int item)
{
return( (MYBOOL) ((bitarray[item / 8] & (1 << (item % 8))) != 0) );
}
|