|
Ardour
9.0-pre0-1950-g391fe97693
|
Go to the source code of this file.
Namespaces | |
| PBD | |
Macros | |
| #define | PBD_IDIV_ASR(x) ((x) < 0 ? -1 : 0) |
| #define | PBD_IDIV_ROUNDING(x, y) ( (y)/2 - (PBD_IDIV_ASR((x)^(y)) & (y))) |
Functions | |
| template<typename T > | |
| T | int_div_round (T x, T y) |
| int64_t | PBD::muldiv_round (int64_t v, int64_t n, int64_t d) |
| int64_t | PBD::muldiv_floor (int64_t v, int64_t n, int64_t d) |
| #define PBD_IDIV_ASR | ( | x | ) | ((x) < 0 ? -1 : 0) |
Definition at line 28 of file integer_division.h.
| #define PBD_IDIV_ROUNDING | ( | x, | |
| y | |||
| ) | ( (y)/2 - (PBD_IDIV_ASR((x)^(y)) & (y))) |
Definition at line 36 of file integer_division.h.
| T int_div_round | ( | T | x, |
| T | y | ||
| ) |
Definition at line 39 of file integer_division.h.