1 /* 2 * Copyright (c) 2005-2019 Rich Felker, et al. 3 * 4 * Part of MUSL, released under the MIT license. 5 */ 6 7 8 #include <fenv.h> 9 10 /* Dummy functions for archs lacking fenv implementation */ 11 12 int feclearexcept(int mask) 13 { 14 return 0; 15 } 16 17 int feraiseexcept(int mask) 18 { 19 return 0; 20 } 21 22 int fetestexcept(int mask) 23 { 24 return 0; 25 } 26 27 int fegetround(void) 28 { 29 return FE_TONEAREST; 30 } 31 32 int __fesetround(int r) 33 { 34 return 0; 35 } 36 37 int fegetenv(fenv_t *envp) 38 { 39 return 0; 40 } 41 42 int fesetenv(const fenv_t *envp) 43 { 44 return 0; 45 } 46