Skip to content

[NFC][libspirv] Delete helper file clc/math/unary_builtin.inc #19109

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 1 commit into from
Jun 24, 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
32 changes: 0 additions & 32 deletions libclc/clc/include/clc/math/unary_builtin.inc

This file was deleted.

9 changes: 5 additions & 4 deletions libclc/libspirv/lib/generic/math/ceil.cl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#include <clc/math/clc_ceil.h>
#include <clc/opencl/clc.h>

#undef __CLC_FUNCTION
#define __CLC_BUILTIN __clc_ceil
#define __CLC_FUNCTION __spirv_ocl_ceil
#include <clc/math/unary_builtin.inc>
#define FUNCTION __spirv_ocl_ceil
#define __CLC_FUNCTION(x) __clc_ceil
#define __CLC_BODY <clc/shared/unary_def.inc>

#include <clc/math/gentype.inc>
9 changes: 5 additions & 4 deletions libclc/libspirv/lib/generic/math/fabs.cl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

#include <clc/math/clc_fabs.h>

#undef __CLC_FUNCTION
#define __CLC_BUILTIN __clc_fabs
#define __CLC_FUNCTION __spirv_ocl_fabs
#include <clc/math/unary_builtin.inc>
#define FUNCTION __spirv_ocl_fabs
#define __CLC_FUNCTION(x) __clc_fabs
#define __CLC_BODY <clc/shared/unary_def.inc>

#include <clc/math/gentype.inc>
9 changes: 5 additions & 4 deletions libclc/libspirv/lib/generic/math/floor.cl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

#include <clc/math/clc_floor.h>

#undef __CLC_FUNCTION
#define __CLC_BUILTIN __clc_floor
#define __CLC_FUNCTION __spirv_ocl_floor
#include <clc/math/unary_builtin.inc>
#define FUNCTION __spirv_ocl_floor
#define __CLC_FUNCTION(x) __clc_floor
#define __CLC_BODY <clc/shared/unary_def.inc>

#include <clc/math/gentype.inc>
9 changes: 5 additions & 4 deletions libclc/libspirv/lib/generic/math/log1p.cl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#include <libspirv/spirv.h>
#include <clc/math/clc_log1p.h>

#undef __CLC_FUNCTION
#define __CLC_FUNCTION __spirv_ocl_log1p
#define __CLC_BUILTIN __clc_log1p
#include <clc/math/unary_builtin.inc>
#define FUNCTION __spirv_ocl_log1p
#define __CLC_FUNCTION(x) __clc_log1p
#define __CLC_BODY <clc/shared/unary_def.inc>

#include <clc/math/gentype.inc>
9 changes: 5 additions & 4 deletions libclc/libspirv/lib/generic/math/rint.cl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

#include <clc/math/clc_rint.h>

#undef __CLC_FUNCTION
#define __CLC_BUILTIN __clc_rint
#define __CLC_FUNCTION __spirv_ocl_rint
#include <clc/math/unary_builtin.inc>
#define FUNCTION __spirv_ocl_rint
#define __CLC_FUNCTION(x) __clc_rint
#define __CLC_BODY <clc/shared/unary_def.inc>

#include <clc/math/gentype.inc>
9 changes: 5 additions & 4 deletions libclc/libspirv/lib/generic/math/round.cl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#include <clc/clcmacro.h>
#include <clc/math/clc_round.h>

#undef __CLC_FUNCTION
#define __CLC_BUILTIN __clc_round
#define __CLC_FUNCTION __spirv_ocl_round
#include <clc/math/unary_builtin.inc>
#define FUNCTION __spirv_ocl_round
#define __CLC_FUNCTION(x) __clc_round
#define __CLC_BODY <clc/shared/unary_def.inc>

#include <clc/math/gentype.inc>
9 changes: 5 additions & 4 deletions libclc/libspirv/lib/generic/math/trunc.cl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

#include <clc/math/clc_trunc.h>

#undef __CLC_FUNCTION
#define __CLC_BUILTIN __clc_trunc
#define __CLC_FUNCTION __spirv_ocl_trunc
#include <clc/math/unary_builtin.inc>
#define FUNCTION __spirv_ocl_trunc
#define __CLC_FUNCTION(x) __clc_trunc
#define __CLC_BODY <clc/shared/unary_def.inc>

#include <clc/math/gentype.inc>