diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2014-03-24 20:36:44 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2014-03-24 20:36:44 +0000 |
commit | 6378f7a5e2e20f693e34daf405afaeec578f9785 (patch) | |
tree | e122e2d859ef1d0e40e172b30f4e9fcfe7599491 /libclc/generic | |
parent | f72ed5f9edce5d8fdc2892888707da95430c4cc2 (diff) | |
download | bcm5719-llvm-6378f7a5e2e20f693e34daf405afaeec578f9785.tar.gz bcm5719-llvm-6378f7a5e2e20f693e34daf405afaeec578f9785.zip |
Add definition for M_PI_F v3
v2:
- Use a hexadecimal constant.
v3:
- Use a hexadecimal constant in floating-point notation.
llvm-svn: 204666
Diffstat (limited to 'libclc/generic')
-rw-r--r-- | libclc/generic/include/clc/float/definitions.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libclc/generic/include/clc/float/definitions.h b/libclc/generic/include/clc/float/definitions.h index e6ef1d8f1a3..e747f45abdf 100644 --- a/libclc/generic/include/clc/float/definitions.h +++ b/libclc/generic/include/clc/float/definitions.h @@ -9,6 +9,8 @@ #define FLT_MIN 0x1.0p-126f #define FLT_EPSILON 0x1.0p-23f +#define M_PI_F 0x1.921fb6p+1 + #ifdef cl_khr_fp64 #define DBL_DIG 15 |