diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-02-14 15:56:38 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-02-14 16:01:37 +0100 |
commit | 390811ec32742d4af2a48fe265b506185e01b7f4 (patch) | |
tree | 9d79e089d5274498b7b4117f870889e5ff0a027f /etisnoop/utils.h | |
parent | 0b821b5b63a1cbe2f7780a1312eb98473e220d55 (diff) | |
download | mmbtools-aux-390811ec32742d4af2a48fe265b506185e01b7f4.tar.gz mmbtools-aux-390811ec32742d4af2a48fe265b506185e01b7f4.tar.bz2 mmbtools-aux-390811ec32742d4af2a48fe265b506185e01b7f4.zip |
Remove etisnoop
Diffstat (limited to 'etisnoop/utils.h')
-rw-r--r-- | etisnoop/utils.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/etisnoop/utils.h b/etisnoop/utils.h deleted file mode 100644 index 9c43c88..0000000 --- a/etisnoop/utils.h +++ /dev/null @@ -1,32 +0,0 @@ -#include <stdlib.h> -#include <stdint.h> - -#ifndef __UTILS_H_ -#define __UTILS_H_ -static inline -void setBit(uint8_t x [], uint8_t bit, int32_t pos) -{ - int16_t iByte; - int16_t iBit; - - iByte = pos / 8; - iBit = pos % 8; - x[iByte] = (x[iByte] & (~(1 << (7 - iBit)))) | - (bit << (7 - iBit)); -} - -static inline -void setBits(uint8_t x[], uint32_t bits, - int32_t startPosition, int32_t numBits) -{ - int32_t i; - uint8_t bit; - - for (i = 0; i < numBits; i ++) { - bit = bits & (1 << (numBits - i - 1)) ? 1 : 0; - setBit(x, bit, startPosition + i); - } -} - -#endif - |