1
1
openmpi/src/util/pow2.h
Rich Graham f75b88faa5 fix a bug, so that the fifo size is rounded up to a power of 2.
Add some support code to determine nearest power of 2.

This commit was SVN r2170.
2004-08-16 23:06:33 +00:00

20 строки
407 B
C

/*
* $HEADER$
*/
#ifndef OMPI_POW2_H
#define OMPI_POW2_H
/**
* This routine takes in an interger, and returns the nearest
* power of 2 integer, same or greater than the input.
*
* @param input_integer input value
*
* @returnvalue power of 2 integer same or greater than the input
* parameter.
*/
int ompi_round_up_to_nearest_pow2(int input_integer);
#endif /* OMPI_POW2_H */