[Libclc-dev] [PATCH 2/2] Introduce M_LOG2E_F and M_LOG2E

Jeroen Ketema j.ketema at imperial.ac.uk
Tue Apr 8 03:36:27 PDT 2014


Gentle nudge.

Jeroen

On 25 Mar 2014, at 20:32, Jeroen Ketema <j.ketema at imperial.ac.uk> wrote:

> ---
> generic/include/clc/float/definitions.h | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/generic/include/clc/float/definitions.h b/generic/include/clc/float/definitions.h
> index c28a192..d6fee84 100644
> --- a/generic/include/clc/float/definitions.h
> +++ b/generic/include/clc/float/definitions.h
> @@ -9,7 +9,8 @@
> #define FLT_MIN         0x1.0p-126f
> #define FLT_EPSILON     0x1.0p-23f
> 
> -#define M_PI_F 0x1.921fb6p+1
> +#define M_LOG2E_F       0x1.715476p+0
> +#define M_PI_F          0x1.921fb6p+1
> 
> #ifdef cl_khr_fp64
> 
> @@ -23,4 +24,6 @@
> #define DBL_MIN         0x1.0p-1022
> #define DBL_EPSILON     0x1.0p-52
> 
> +#define M_LOG2E         0x1.71547652b82fep+0
> +
> #endif
> -- 
> 1.8.5.2 (Apple Git-48)
> 





More information about the Libclc-dev mailing list