[Beignet] [PATCH 2/2] libocl: Move spec required macro to header file.

Song, Ruiling ruiling.song at intel.com
Mon Dec 8 18:47:59 PST 2014


Please review the new version, I forgot to delete the old definition in this version.

> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Ruiling Song
> Sent: Tuesday, December 09, 2014 10:25 AM
> To: beignet at lists.freedesktop.org
> Cc: Song, Ruiling
> Subject: [Beignet] [PATCH 2/2] libocl: Move spec required macro to header
> file.
> 
> Signed-off-by: Ruiling Song <ruiling.song at intel.com>
> ---
>  backend/src/libocl/include/ocl_float.h |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/backend/src/libocl/include/ocl_float.h
> b/backend/src/libocl/include/ocl_float.h
> index 65577a3..916233b 100644
> --- a/backend/src/libocl/include/ocl_float.h
> +++ b/backend/src/libocl/include/ocl_float.h
> @@ -91,6 +91,7 @@ INLINE_OVERLOADABLE int __ocl_finitef (float
> x){  #define M_2_SQRTPI_F 1.1283791670955126F
>  #define M_SQRT2_F    1.4142135623730951F
>  #define M_SQRT1_2_F  0.7071067811865476F
> -
> +#define FP_ILOGB0    (-0x7FFFFFFF-1)
> +#define FP_ILOGBNAN  FP_ILOGB0
> 
>  #endif /* __OCL_FLOAT_H__ */
> --
> 1.7.10.4
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list