|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
|

Go to the source code of this file.
Functions | |
| long | G_math_max_pow2 (const long n) |
| Finds least power of 2 >= n | |
| long | G_math_min_pow2 (const long n) |
| Finds largest power of 2 <= n | |
Finds least power of 2 >= n
Finds least power of 2 >= n.
| [in] | n |
Definition at line 14 of file max_pow2.c.
Finds largest power of 2 <= n
Finds largest power of 2 <= n.
| [in] | n |
Definition at line 40 of file max_pow2.c.