aboutsummaryrefslogtreecommitdiff
path: root/Bits_fp.h
blob: c9a1f306ed7c65dd7a9f538075b64e971d55a44f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Copyright 2015 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef __BITS_FP_H_
#define __BITS_FP_H_

BOOL BitIsSet(unsigned int bitNum,    // IN: number of the bit in 'bArray'
              BYTE *bArray,           // IN: array containing the bit
              unsigned int arraySize  // IN: size in bytes of 'bArray'
              );
//
//
//            BitSet()
//
//      This function will set the indicated bit in bArray.
//
void BitSet(unsigned int bitNum,    // IN: number of the bit in 'bArray'
            BYTE *bArray,           // IN: array containing the bit
            unsigned int arraySize  // IN: size in bytes of 'bArray'
            );

//
//
//           BitClear()
//
//     This function will clear the indicated bit in bArray.
//
void BitClear(unsigned int bitNum,    // IN: number of the bit in 'bArray'.
              BYTE *bArray,           // IN: array containing the bit
              unsigned int arraySize  // IN: size in bytes of 'bArray'
              );

#endif