MIDAPACK - MIcrowave Data Analysis PACKage  1.1b
Parallel software tools for high performance CMB DA analysis
bitop.c File Reference

Go to the source code of this file.

Functions

int is_pow_2 (int n)
 
int pow_2 (int k)
 
int log_2 (int n)
 

Detailed Description

Note
Copyright (c) 2010-2012 APC CNRS Université Paris Diderot. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/lgpl.html

Definition in file bitop.c.

Function Documentation

◆ is_pow_2()

int is_pow_2 ( int  n)

Definition at line 13 of file bitop.c.

◆ pow_2()

int pow_2 ( int  k)

Definition at line 16 of file bitop.c.

◆ log_2()

int log_2 ( int  n)

Definition at line 26 of file bitop.c.