Defines | |
| #define | pow2i(x) ((x)<0 ? 0 : (1<<(x))) |
| Integer 2^x. | |
Functions | |
| int | SPUC::needed_bits (int n) |
| Calculate how many bits are needed to represent the integer n. | |
| int | SPUC::needed_bits (double n) |
| The number of bits needed to encode {n} symbols. (Yes, it is exact!). | |
| int | SPUC::pow2 (int x) |
| Calculate two to the power of x (2^x). | |
| double | SPUC::pow2 (double x) |
| Calculate two to the power of x (2^x). | |
| double | SPUC::pow10 (double x) |
| Calculate ten to the power of x (10^x). | |
| double | SPUC::dB (double x) |
| Decibel of x (10*log10(x)). | |
| double | SPUC::inv_dB (double x) |
| Inverse of decibel. | |
|
|
Integer 2^x.
|
|
|
Decibel of x (10*log10(x)).
|
|
|
Inverse of decibel.
|
|
|
The number of bits needed to encode {n} symbols. (Yes, it is exact!).
Here is the call graph for this function: ![]() |
|
|
Calculate how many bits are needed to represent the integer n.
|
|
|
Calculate ten to the power of x (10^x).
|
|
|
Calculate two to the power of x (2^x).
|
|
|
Calculate two to the power of x (2^x).
|
1.4.4