blob: ace86a104c9f24b3cf5198d0e3cce280e5ee1359 [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
10BOOL
11BitIsSet(
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 Bendeburyd8813672015-05-27 17:13:38 -070016//
17//
18// BitSet()
19//
20// This function will set the indicated bit in bArray.
21//
22void
23BitSet(
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 Bendebury258ca732015-05-28 16:35:41 -070028
29//
30//
31// BitClear()
32//
33// This function will clear the indicated bit in bArray.
34//
35void
36BitClear(
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 Bendeburyd8813672015-05-27 17:13:38 -070042#endif