-
Robert Bragg authored
This is a replacement for the nearbyint function which always rounds to the nearest integer. nearbyint is a C99 function so it might not always be available but also it seems in glibc it is defined as a function call so this macro could end up faster anyway. We can't just add 0.5 because it will break for negative numbers. Signed-off-by: Neil Roberts <neil@linux.intel.com> Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
32487af5