diff options
author | Aaron Watry <awatry@gmail.com> | 2014-07-17 22:07:35 +0000 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2014-07-17 22:07:35 +0000 |
commit | 9ef589e9cfef5592668f2644c3af64c3f844737a (patch) | |
tree | e957689f9d0c439e16d937f90fc04da2742e5aec /libclc | |
parent | d7f022a58214be0808f1f61416d5a0d8e02a8251 (diff) | |
download | bcm5719-llvm-9ef589e9cfef5592668f2644c3af64c3f844737a.tar.gz bcm5719-llvm-9ef589e9cfef5592668f2644c3af64c3f844737a.zip |
Add several missing double constant definitions
These were present in CL 1.0, just not implemented yet.
v2: Use hex values and fix commit message
Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Jeroen Ketema <j.ketema@imperial.ac.uk>
CC: Matt Arsenault <Matthew.Arsenault@amd.com>
llvm-svn: 213321
Diffstat (limited to 'libclc')
-rw-r--r-- | libclc/generic/include/clc/float/definitions.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libclc/generic/include/clc/float/definitions.h b/libclc/generic/include/clc/float/definitions.h index 18f2cbcf3b9..329b6238c3f 100644 --- a/libclc/generic/include/clc/float/definitions.h +++ b/libclc/generic/include/clc/float/definitions.h @@ -42,8 +42,19 @@ #define DBL_MIN 0x1.0p-1022 #define DBL_EPSILON 0x1.0p-52 +#define M_E 0x1.5bf0a8b145769p+1 #define M_LOG2E 0x1.71547652b82fep+0 +#define M_LOG10E 0x1.bcb7b1526e50ep-2 +#define M_LN2 0x1.62e42fefa39efp-1 +#define M_LN10 0x1.26bb1bbb55516p+1 #define M_PI 0x1.921fb54442d18p+1 +#define M_PI_2 0x1.921fb54442d18p+0 +#define M_PI_4 0x1.921fb54442d18p-1 +#define M_1_PI 0x1.45f306dc9c883p-2 +#define M_2_PI 0x1.45f306dc9c883p-1 +#define M_2_SQRTPI 0x1.20dd750429b6dp+0 +#define M_SQRT2 0x1.6a09e667f3bcdp+0 +#define M_SQRT1_2 0x1.6a09e667f3bcdp-1 #endif |