blob: c9a1f306ed7c65dd7a9f538075b64e971d55a44f [file] [log] [blame]
Vadim Bendeburyd8813672015-05-27 17:13:38 -07001/*
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 Bendebury258ca732015-05-28 16:35:41 -07009
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070010BOOL BitIsSet(unsigned int bitNum, // IN: number of the bit in 'bArray'
11 BYTE *bArray, // IN: array containing the bit
12 unsigned int arraySize // IN: size in bytes of 'bArray'
13 );
Vadim Bendeburyd8813672015-05-27 17:13:38 -070014//
15//
16// BitSet()
17//
18// This function will set the indicated bit in bArray.
19//
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070020void BitSet(unsigned int bitNum, // IN: number of the bit in 'bArray'
21 BYTE *bArray, // IN: array containing the bit
22 unsigned int arraySize // IN: size in bytes of 'bArray'
23 );
Vadim Bendebury258ca732015-05-28 16:35:41 -070024
25//
26//
27// BitClear()
28//
29// This function will clear the indicated bit in bArray.
30//
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070031void BitClear(unsigned int bitNum, // IN: number of the bit in 'bArray'.
32 BYTE *bArray, // IN: array containing the bit
33 unsigned int arraySize // IN: size in bytes of 'bArray'
34 );
Vadim Bendebury258ca732015-05-28 16:35:41 -070035
Vadim Bendeburyd8813672015-05-27 17:13:38 -070036#endif