File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 2323#define _CLC_DEFINE_RELATIONAL_UNARY_VEC3 (RET_TYPE , FUNCTION , ARG_TYPE ) \
2424 _CLC_DEF _CLC_OVERLOAD RET_TYPE FUNCTION(ARG_TYPE x) { \
2525 return __clc_as_##RET_TYPE(((RET_TYPE){FUNCTION(x.s0), FUNCTION(x.s1), \
26- FUNCTION(x.s2)} != (RET_TYPE)0)); \
26+ FUNCTION(x.s2)} != (RET_TYPE)0)); \
2727 }
2828
2929#define _CLC_DEFINE_RELATIONAL_UNARY_VEC4 (RET_TYPE , FUNCTION , ARG_TYPE ) \
8282#define _CLC_DEFINE_RELATIONAL_BINARY_VEC2 (RET_TYPE , FUNCTION , ARG0_TYPE , \
8383 ARG1_TYPE ) \
8484 _CLC_DEF _CLC_OVERLOAD RET_TYPE FUNCTION(ARG0_TYPE x, ARG1_TYPE y) { \
85- return __clc_as_##RET_TYPE(((RET_TYPE){FUNCTION(x.lo, y.lo), \
86- FUNCTION(x.hi, y.hi)} != (RET_TYPE)0)); \
85+ return __clc_as_##RET_TYPE( \
86+ ((RET_TYPE){FUNCTION(x.lo, y.lo), FUNCTION(x.hi, y.hi)} != \
87+ (RET_TYPE)0)); \
8788 }
8889
8990#define _CLC_DEFINE_RELATIONAL_BINARY_VEC3 (RET_TYPE , FUNCTION , ARG0_TYPE , \
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __spirv_ocl_fdim(__CLC_GENTYPE x,
2424 int ##width n = ~((x == x) & (y == y)) & QNANBITPATT_SP32; \
2525 /* Calculate x-y if x>y, otherwise positive 0, again taking */ \
2626 /* advantage of vector true being all-bits-set. */ \
27- int ##width r = (x > y) & __clc_as_int##width (x - y); \
28- return __clc_as_float##width (n | r); \
27+ int ##width r = (x > y) & __clc_as_int##width (x - y); \
28+ return __clc_as_float##width (n | r); \
2929 }
3030__CLC_FDIM_VEC (2 )
3131__CLC_FDIM_VEC(3 )
@@ -49,8 +49,8 @@ _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __spirv_ocl_fdim(__CLC_GENTYPE x,
4949 double ##width y) { \
5050 /* See comment in float implementation for explanation. */ \
5151 long ##width n = ~((x == x) & (y == y)) & QNANBITPATT_DP64; \
52- long ##width r = (x > y) & __clc_as_long##width (x - y); \
53- return __clc_as_double##width (n | r); \
52+ long ##width r = (x > y) & __clc_as_long##width (x - y); \
53+ return __clc_as_double##width (n | r); \
5454 }
5555__CLC_FDIM_VEC (2 )
5656__CLC_FDIM_VEC(3 )
Original file line number Diff line number Diff line change @@ -267,7 +267,8 @@ __spirv_ocl_log(double x)
267267
268268 // Deal with subnormal
269269 ulong ux = __clc_as_ulong (x );
270- ulong uxs = __clc_as_ulong (__clc_as_double (0x03d0000000000000UL | ux ) - 0x1.0p-962 );
270+ ulong uxs =
271+ __clc_as_ulong (__clc_as_double (0x03d0000000000000UL | ux ) - 0x1.0p-962 );
271272 int c = ux < IMPBIT_DP64 ;
272273 ux = c ? uxs : ux ;
273274 int expadjust = c ? 60 : 0 ;
You can’t perform that action at this time.
0 commit comments