atlas  0.6
bits.h
Go to the documentation of this file.
1 
5 /*
6  Copyright (C) 2004,2005 Fokko du Cloux
7  part of the Atlas of Lie Groups and Representations
8 
9  For license information see the LICENSE file
10 */
11 
12 #ifndef BITS_H /* guard against multiple inclusions */
13 #define BITS_H
14 
15 #include <vector>
16 #include <cstddef>
17 
18 /******** function declarations **********************************************/
19 
20 namespace atlas {
21 
22 namespace bits {
23 
24  unsigned bitCount(unsigned long);
25 
26  size_t firstBit(unsigned long);
27 
28  size_t lastBit(unsigned long);
29 
30 }
31 
32 }
33 
34 #endif
size_t lastBit(unsigned long f)
Definition: bits.cpp:89
unsigned int bitCount(unsigned long x)
Definition: bits.cpp:30
size_t firstBit(unsigned long f)
Definition: bits.cpp:64
Definition: Atlas.h:38