Skip to content

[libclc] Clean up unnecessary #undef __CLC_BODYs #137959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion libclc/clc/include/clc/common/clc_degrees.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_COMMON_CLC_DEGREES_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/common/clc_radians.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_COMMON_CLC_RADIANS_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/common/clc_sign.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_COMMON_CLC_SIGN_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/common/clc_smoothstep.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@

#define __CLC_BODY <clc/common/clc_smoothstep.inc>
#include <clc/math/gentype.inc>
#undef __CLC_BODY

#endif // __CLC_COMMON_CLC_SMOOTHSTEP_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/integer/clc_add_sat.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/integer/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_INTEGER_CLC_ADD_SAT_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/integer/clc_clz.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/integer/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_INTEGER_CLC_CLZ_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/integer/clc_ctz.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/integer/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_INTEGER_CLC_CTZ_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/integer/clc_hadd.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/integer/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_INTEGER_CLC_HADD_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/integer/clc_mad24.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/integer/gentype24.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_INTEGER_CLC_MAD24_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/integer/clc_mad_sat.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/integer/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_INTEGER_CLC_MAD_SAT_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/integer/clc_mul24.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/integer/gentype24.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_INTEGER_CLC_MUL24_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/integer/clc_mul_hi.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/integer/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_INTEGER_CLC_MUL_HI_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/integer/clc_rhadd.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/integer/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_INTEGER_CLC_RHADD_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/integer/clc_rotate.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/integer/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_INTEGER_CLC_ROTATE_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/integer/clc_sub_sat.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/integer/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_INTEGER_CLC_SUB_SAT_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/internal/math/clc_sw_fma.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_INTERNAL_MATH_CLC_SW_FMA_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_acos.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_ACOS_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_acosh.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_ACOSH_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_acospi.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_ACOSPI_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_asin.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_ASIN_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_asinh.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_ASINH_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_asinpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_ASINPI_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_atan.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_ATAN_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_atan2.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_ATAN2_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_atan2pi.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_ATAN2PI_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_atanh.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_ATANH_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_atanpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_ATANPI_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_cbrt.inc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_CBRT_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_ceil.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_CEIL_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_copysign.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_COPYSIGN_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_cosh.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_COSH_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_cospi.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_COSPI_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_exp.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_EXP_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_exp10.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_EXP10_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_exp2.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_EXP2_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_exp_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __DOUBLE_ONLY

#endif // __CLC_MATH_CLC_EXP_HELPER
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_expm1.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_EXPM1_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_fabs.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_FABS_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_fdim.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_FDIM_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_floor.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_FLOOR_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_fma.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_FMA_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_fmax.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_FMAX_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_fmin.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_FMIN_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_fmod.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_FMOD_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_fract.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_FRACT_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_frexp.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#define __CLC_BODY <clc/math/unary_decl_with_int_ptr.inc>
#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_FREXP_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_hypot.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_HYPOT_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_lgamma.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_LGAMMA_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_lgamma_r.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_LGAMMA_R_H__
1 change: 0 additions & 1 deletion libclc/clc/include/clc/math/clc_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <clc/math/gentype.inc>

#undef __CLC_BODY
#undef __CLC_FUNCTION

#endif // __CLC_MATH_CLC_LOG_H__
Loading
Loading