Monado OpenXR Runtime
|
Functions for manipulating tightly packed data as bits. More...
#include <stdint.h>
Go to the source code of this file.
Functions | |
int | get_bit (const unsigned char *b, int num) |
int | get_bits (const unsigned char *b, int start, int num) |
int | sign_extend_13 (uint32_t i) |
Interpret the least-significant 13 bits as a signed 13-bit integer, and cast it to a signed int for normal usage. More... | |
Functions for manipulating tightly packed data as bits.
int sign_extend_13 | ( | uint32_t | i | ) |
Interpret the least-significant 13 bits as a signed 13-bit integer, and cast it to a signed int for normal usage.