Vadim Bendebury | d881367 | 2015-05-27 17:13:38 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 The Chromium OS Authors. All rights reserved. |
| 3 | * Use of this source code is governed by a BSD-style license that can be |
| 4 | * found in the LICENSE file. |
| 5 | */ |
| 6 | |
| 7 | #ifndef __BITS_FP_H_ |
| 8 | #define __BITS_FP_H_ |
Vadim Bendebury | 258ca73 | 2015-05-28 16:35:41 -0700 | [diff] [blame] | 9 | |
| 10 | BOOL |
| 11 | BitIsSet( |
| 12 | unsigned int bitNum, // IN: number of the bit in 'bArray' |
| 13 | BYTE *bArray, // IN: array containing the bit |
| 14 | unsigned int arraySize // IN: size in bytes of 'bArray' |
| 15 | ); |
Vadim Bendebury | d881367 | 2015-05-27 17:13:38 -0700 | [diff] [blame] | 16 | // |
| 17 | // |
| 18 | // BitSet() |
| 19 | // |
| 20 | // This function will set the indicated bit in bArray. |
| 21 | // |
| 22 | void |
| 23 | BitSet( |
| 24 | unsigned int bitNum, // IN: number of the bit in 'bArray' |
| 25 | BYTE *bArray, // IN: array containing the bit |
| 26 | unsigned int arraySize // IN: size in bytes of 'bArray' |
| 27 | ); |
Vadim Bendebury | 258ca73 | 2015-05-28 16:35:41 -0700 | [diff] [blame] | 28 | |
| 29 | // |
| 30 | // |
| 31 | // BitClear() |
| 32 | // |
| 33 | // This function will clear the indicated bit in bArray. |
| 34 | // |
| 35 | void |
| 36 | BitClear( |
| 37 | unsigned int bitNum, // IN: number of the bit in 'bArray'. |
| 38 | BYTE *bArray, // IN: array containing the bit |
| 39 | unsigned int arraySize // IN: size in bytes of 'bArray' |
| 40 | ); |
| 41 | |
Vadim Bendebury | d881367 | 2015-05-27 17:13:38 -0700 | [diff] [blame] | 42 | #endif |