Bit fiddling functions. More...
Go to the source code of this file.
Functions | |
unsigned long | lobot::make_long (int hi, int lo) |
Stuff two 16-bit ints into a long. | |
int | lobot::loword (unsigned long L) |
Extract the lower 16 bits of a long. | |
int | lobot::hiword (unsigned long L) |
Extract the higher 16 bits of a long. | |
int | lobot::make_word (int hi, int lo) |
Stuff two signed 8-bit ints into a single 16-bit int. | |
int | lobot::make_uword (int hi, int lo) |
Stuff two unsigned 8-bit ints into a single 16-bit int. | |
char | lobot::lobyte (short int word) |
Extract the low byte of a 16-bit word. | |
char | lobot::hibyte (short int word) |
Extract the high byte of a 16-bit word. | |
int | lobot::set_bit (int reg, int mask, bool val) |
int | lobot::force_odd (int n) |
Force the supplied number to be an odd number. | |
int | lobot::force_even (int n) |
Force the supplied number to be an even number. |
Bit fiddling functions.
Definition in file LoBits.H.