diff options
Diffstat (limited to 'newlib/libm/common/math_errf.c')
-rw-r--r-- | newlib/libm/common/math_errf.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/newlib/libm/common/math_errf.c b/newlib/libm/common/math_errf.c index 60b1bb3f2..92eaf883e 100644 --- a/newlib/libm/common/math_errf.c +++ b/newlib/libm/common/math_errf.c @@ -1,5 +1,5 @@ /* Single-precision math error handling. - Copyright (c) 2017 ARM Ltd. All rights reserved. + Copyright (c) 2017-2018 ARM Ltd. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions @@ -45,14 +45,14 @@ with_errnof (float y, int e) /* NOINLINE prevents fenv semantics breaking optimizations. */ NOINLINE static float -xflowf (unsigned long sign, float y) +xflowf (uint32_t sign, float y) { y = (sign ? -y : y) * y; return with_errnof (y, ERANGE); } HIDDEN float -__math_uflowf (unsigned long sign) +__math_uflowf (uint32_t sign) { return xflowf (sign, 0x1p-95f); } @@ -61,20 +61,20 @@ __math_uflowf (unsigned long sign) /* Underflows to zero in some non-nearest rounding mode, setting errno is valid even if the result is non-zero, but in the subnormal range. */ HIDDEN float -__math_may_uflowf (unsigned long sign) +__math_may_uflowf (uint32_t sign) { return xflowf (sign, 0x1.4p-75f); } #endif HIDDEN float -__math_oflowf (unsigned long sign) +__math_oflowf (uint32_t sign) { return xflowf (sign, 0x1p97f); } HIDDEN float -__math_divzerof (unsigned long sign) +__math_divzerof (uint32_t sign) { float y = 0; return with_errnof ((sign ? -1 : 1) / y, ERANGE); |