|
Tor
0.4.7.0-alpha-dev
|
Integer math related to multiplication, division, and rounding. More...
Go to the source code of this file.
Functions | |
| unsigned | round_to_next_multiple_of (unsigned number, unsigned divisor) |
| uint32_t | round_uint32_to_next_multiple_of (uint32_t number, uint32_t divisor) |
| uint64_t | round_uint64_to_next_multiple_of (uint64_t number, uint64_t divisor) |
| static uint64_t | gcd64 (uint64_t a, uint64_t b) |
| uint64_t | tor_mul_u64_nowrap (uint64_t a, uint64_t b) |
| void | simplify_fraction64 (uint64_t *numer, uint64_t *denom) |
Integer math related to multiplication, division, and rounding.
Definition in file muldiv.c.
| unsigned round_to_next_multiple_of | ( | unsigned | number, |
| unsigned | divisor | ||
| ) |
| uint32_t round_uint32_to_next_multiple_of | ( | uint32_t | number, |
| uint32_t | divisor | ||
| ) |
| uint64_t round_uint64_to_next_multiple_of | ( | uint64_t | number, |
| uint64_t | divisor | ||
| ) |