| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4474,12 +4474,13 @@ AC_CACHE_CHECK([for _Float16 support], [ac_cv_float16_supported], | |||
| 4474 | 4474 | WITH_SAVE_ENV([ | |
| 4475 | 4475 | CFLAGS="$CFLAGS -O0" | |
| 4476 | 4476 | AC_RUN_IFELSE([AC_LANG_SOURCE([[ | |
| 4477 | + #include <math.h> | ||
| 4477 | 4478 | int main(void) | |
| 4478 | 4479 | { | |
| 4479 | 4480 | _Float16 val = 1.0f16; | |
| 4480 | 4481 | double d = 3.14; | |
| 4481 | 4482 | val = d; | |
| 4482 | - return 0; | ||
| 4483 | + return isfinite(val) && !isinf(val) && !isnan(val); | ||
| 4483 | 4484 | } | |
| 4484 | 4485 | ]])], [ac_cv_float16_supported=yes], | |
| 4485 | 4486 | [ac_cv_float16_supported=no], | |
| Back | FazBrowse Home | New Git URL |
0 commit comments