Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>
return (int) ((f >= 0.0F) ? (f + 0.5F) : (f - 0.5F));
}
-/**
- * Convert double to int by rounding to nearest integer, away from zero.
- */
-static inline int IROUNDD(double d)
-{
- return (int) ((d >= 0.0) ? (d + 0.5) : (d - 0.5));
-}
-
/**
* Convert float to int64 by rounding to nearest integer.
*/