diff options
Diffstat (limited to 'src/math/cbrt.c')
| -rw-r--r-- | src/math/cbrt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/math/cbrt.c b/src/math/cbrt.c index 156093ba..74c48d52 100644 --- a/src/math/cbrt.c +++ b/src/math/cbrt.c @@ -4,6 +4,11 @@ TYPE TGFN(cbrt)(TYPE x) { + switch (fpclassify(x)) { + case FP_ZERO: return x; + case FP_INFINITE: return x; + } + return x; } |
