|
GRASS GIS 8 Programmer's Manual
8.4.2dev(2025)-5620950973
|
#include <grass/gis.h>#include <grass/gmath.h>
Go to the source code of this file.
Functions | |
| long | G_math_max_pow2 (const long n) |
| Finds least power of 2 >= n More... | |
| long | G_math_min_pow2 (const long n) |
| Finds largest power of 2 <= n More... | |
| long G_math_max_pow2 | ( | const long | n | ) |
Finds least power of 2 >= n
Finds least power of 2 >= n.
| [in] | n |
Definition at line 15 of file max_pow2.c.
| long G_math_min_pow2 | ( | const long | n | ) |
Finds largest power of 2 <= n
Finds largest power of 2 <= n.
| [in] | n |
Definition at line 42 of file max_pow2.c.