Skip to content

Commit 1fd82c5

Browse files
committed
clang-format
1 parent a4de7b8 commit 1fd82c5

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

libclc/libspirv/include/libspirv/relational.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
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) \
@@ -82,8 +82,9 @@
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, \

libclc/libspirv/lib/generic/math/fdim.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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)

libclc/libspirv/lib/generic/math/log_base.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)