MIDAPACK - MIcrowave Data Analysis PACKage
1.1b
Parallel software tools for high performance CMB DA analysis
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Groups
Pages
bitop.c
Go to the documentation of this file.
1
5
int
is_pow_2
(
int
n){
6
return
((n & -n) ^ n);
7
}
8
9
10
int
pow_2
(
int
k){
11
int
n=1;
12
while
(k!=0){
13
n = n << 1;
14
k--;
15
}
16
return
n;
17
}
18
19
20
int
log_2
(
int
n){
21
int
k=0;
22
while
(n!=1 && k<32){
23
n= n >> 1;
24
k++;
25
}
26
return
k;
27
}
28
src
mapmat
bitop.c
Generated on Wed Jul 10 2013 14:51:21 for MIDAPACK - MIcrowave Data Analysis PACKage by
1.8.1.1