This commit moves the sign builtin's implementation to the CLC library. It simultaneously optimizes it (for vector types) by removing control-flow from the implementation. The __CLC_INTERNAL preprocessor definition has been repurposed (without the leading underscores) to be passed when building the internal CLC library. It was only used in one other place to guard an extra maths preprocessor definition, which we can do unconditionally.
49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
common/clc_degrees.cl
|
|
common/clc_radians.cl
|
|
common/clc_sign.cl
|
|
common/clc_smoothstep.cl
|
|
geometric/clc_dot.cl
|
|
integer/clc_abs.cl
|
|
integer/clc_abs_diff.cl
|
|
integer/clc_add_sat.cl
|
|
integer/clc_clz.cl
|
|
integer/clc_hadd.cl
|
|
integer/clc_mad24.cl
|
|
integer/clc_mad_sat.cl
|
|
integer/clc_mul24.cl
|
|
integer/clc_mul_hi.cl
|
|
integer/clc_popcount.cl
|
|
integer/clc_rhadd.cl
|
|
integer/clc_rotate.cl
|
|
integer/clc_sub_sat.cl
|
|
integer/clc_upsample.cl
|
|
math/clc_ceil.cl
|
|
math/clc_copysign.cl
|
|
math/clc_fabs.cl
|
|
math/clc_floor.cl
|
|
math/clc_mad.cl
|
|
math/clc_nextafter.cl
|
|
math/clc_rint.cl
|
|
math/clc_trunc.cl
|
|
relational/clc_all.cl
|
|
relational/clc_any.cl
|
|
relational/clc_bitselect.cl
|
|
relational/clc_isequal.cl
|
|
relational/clc_isfinite.cl
|
|
relational/clc_isgreater.cl
|
|
relational/clc_isgreaterequal.cl
|
|
relational/clc_isinf.cl
|
|
relational/clc_isless.cl
|
|
relational/clc_islessequal.cl
|
|
relational/clc_islessgreater.cl
|
|
relational/clc_isnan.cl
|
|
relational/clc_isnormal.cl
|
|
relational/clc_isnotequal.cl
|
|
relational/clc_isordered.cl
|
|
relational/clc_isunordered.cl
|
|
relational/clc_select.cl
|
|
relational/clc_signbit.cl
|
|
shared/clc_clamp.cl
|
|
shared/clc_max.cl
|
|
shared/clc_min.cl
|