Math helper macros. More...
Math helper macros.
Definition in file math.h.
 This graph shows which files directly or indirectly include this file:
 This graph shows which files directly or indirectly include this file:Go to the source code of this file.
| #define | SIGNOF(a) | 
| Returns the sign of a, either -1 or 1. | |
| #define | DIV_ROUND(a, b) | 
| Calculates a/bwith arithmetic rounding (.5 away from zero) | |
| #define | DIV_ROUND_UP(a, b) | 
| Calculates a/b, always rounding up (towards positive infinity) | |
| #define | DIV_ROUND_INF(a, b) | 
| Calculates a/b, always rounding away from zero (towards positive and negative inf) | |
| #define | MATH_ALIGN(num, chunk) | 
| Align numwith the next multiple ofchunk. | |
| #define DIV_ROUND | ( | a, | |
| b ) | 
| #define DIV_ROUND_INF | ( | a, | |
| b ) | 
| #define DIV_ROUND_UP | ( | a, | |
| b ) | 
| #define MATH_ALIGN | ( | num, | |
| chunk ) | 
Align num with the next multiple of chunk.