diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2013-05-26 16:34:06 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2013-05-26 16:34:06 +0200 |
commit | f0f440a6f2e5b88e9f4114110d37689c6148e13d (patch) | |
tree | 70cde5327dcfb101349a0ec50a7d13b4431d7f6e /math/s_cexpf.c | |
parent | de1463d3e4657cf44779185870cdf5a22ee1e415 (diff) | |
parent | e631e5064e2efc594149a07e726ed086f2d8b84d (diff) |
Merge commit 'refs/top-bases/t/hurdsig-global-dispositions-versions' into t/hurdsig-global-dispositions-versions
Diffstat (limited to 'math/s_cexpf.c')
-rw-r--r-- | math/s_cexpf.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/math/s_cexpf.c b/math/s_cexpf.c index 364be8ac31..fa942d34f7 100644 --- a/math/s_cexpf.c +++ b/math/s_cexpf.c @@ -74,6 +74,18 @@ __cexpf (__complex__ float x) __real__ retval = exp_val * cosix; __imag__ retval = exp_val * sinix; } + if (fabsf (__real__ retval) < FLT_MIN) + { + volatile float force_underflow + = __real__ retval * __real__ retval; + (void) force_underflow; + } + if (fabsf (__imag__ retval) < FLT_MIN) + { + volatile float force_underflow + = __imag__ retval * __imag__ retval; + (void) force_underflow; + } } else { |