diff options
author | Dylan Baker <[email protected]> | 2018-09-10 11:31:49 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2020-04-21 11:09:03 -0700 |
commit | 9ee6e78a8716eed09a088dad2d6153373423a565 (patch) | |
tree | db722034dfc9cb2097c5222d15ab98e71e5c7a7f /src/util/imports.h | |
parent | 369f00259113d5c157b88d52bd002d292c21fedf (diff) |
Replace IS_INF_OR_NAN with util_is_inf_or_nan
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>
Diffstat (limited to 'src/util/imports.h')
-rw-r--r-- | src/util/imports.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/util/imports.h b/src/util/imports.h index 9556223b3ba..783423bae81 100644 --- a/src/util/imports.h +++ b/src/util/imports.h @@ -73,28 +73,6 @@ typedef union { float f; int i; unsigned u; } fi_type; /*@}*/ -/** - * finite macro. - */ -#if defined(_MSC_VER) -# define finite _finite -#endif - - -/*** - *** IS_INF_OR_NAN: test if float is infinite or NaN - ***/ -#if defined(isfinite) -#define IS_INF_OR_NAN(x) (!isfinite(x)) -#elif defined(finite) -#define IS_INF_OR_NAN(x) (!finite(x)) -#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -#define IS_INF_OR_NAN(x) (!isfinite(x)) -#else -#define IS_INF_OR_NAN(x) (!finite(x)) -#endif - - /********************************************************************** * Functions */ |