Fix potential overflow in complex radius calculation.

This commit is contained in:
Jacob Young
2017-09-09 10:06:02 -04:00
committed by EmilieNumworks
parent 851c145d31
commit 7e2cc375d2
3 changed files with 42 additions and 2 deletions

View File

@@ -10,6 +10,8 @@ LIBA_BEGIN_DECLS
#define INFINITY __builtin_inff()
#define M_E 2.71828182845904523536028747135266250
#define M_PI 3.14159265358979323846264338327950288
#define M_PI_4 0.78539816339744830961566084581987572
#define M_SQRT2 1.41421356237309504880168872420969808
#define FP_INFINITE 0x01
#define FP_NAN 0x02