Monado OpenXR Runtime
u_bitwise.h
Go to the documentation of this file.
1 // Copyright 2019-2020, Collabora, Ltd.
2 // SPDX-License-Identifier: BSL-1.0
3 /*!
4  * @file
5  * @brief Functions for manipulating tightly packed data as bits.
6  * @author Jakob Bornecrantz <jakob@collabora.com>
7  * @author Pete Black <pete.black@collabora.com>
8  * @ingroup aux_util
9  */
10 
11 #pragma once
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 int
18 get_bit(unsigned char *b, int num);
19 
20 int
21 get_bits(unsigned char *b, int start, int num);
22 
23 int
24 sign_extend_13(unsigned int i);
25 
26 
27 #ifdef __cplusplus
28 }
29 #endif