Skip to content

Commit f5607a4

Browse files
committed
unify ternary file
1 parent 148b1ce commit f5607a4

File tree

9 files changed

+14
-15
lines changed

9 files changed

+14
-15
lines changed

libclc/clc/include/clc/integer/clc_mad24.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
#include <clc/clcfunc.h>
55
#include <clc/clctypes.h>
66

7-
#define FUNCTION __clc_mad24
8-
#define __CLC_BODY "ternary_decl.h"
7+
#define __CLC_FUNCTION __clc_mad24
8+
#define __CLC_BODY <clc/shared/ternary_decl.inc>
99

1010
#include <clc/integer/gentype24.inc>
1111

1212
#undef __CLC_BODY
13-
#undef FUNCTION
13+
#undef __CLC_FUNCTION
1414

1515
#endif // __CLC_INTEGER_CLC_MAD24_H__

libclc/clc/include/clc/integer/ternary_decl.h

Lines changed: 0 additions & 2 deletions
This file was deleted.

libclc/clc/include/clc/math/clc_mad.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef __CLC_MATH_CLC_MAD_H__
22
#define __CLC_MATH_CLC_MAD_H__
33

4-
#define __CLC_BODY <clc/math/ternary_decl.inc>
4+
#define __CLC_BODY <clc/shared/ternary_decl.inc>
55
#define __CLC_FUNCTION __clc_mad
66

77
#include <clc/math/gentype.inc>
File renamed without changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#define FUNCTION mad24
2-
#define __CLC_BODY "ternary_decl.h"
1+
#define __CLC_FUNCTION mad24
2+
#define __CLC_BODY <clc/shared/ternary_decl.inc>
33

44
#include <clc/integer/gentype24.inc>
55

6-
#undef FUNCTION
6+
#undef __CLC_FUNCTION
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#define FUNCTION mad_hi
2-
#define __CLC_BODY "ternary_decl.h"
1+
#define __CLC_FUNCTION mad_hi
2+
#define __CLC_BODY <clc/shared/ternary_decl.inc>
33

44
#include <clc/integer/gentype.inc>
55

6-
#undef FUNCTION
6+
#undef __CLC_FUNCTION
7+
#undef __CLC_BODY

libclc/generic/include/clc/math/fma.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define __CLC_BODY <clc/math/ternary_decl.inc>
1+
#define __CLC_BODY <clc/shared/ternary_decl.inc>
22
#define __CLC_FUNCTION fma
33

44
#include <clc/math/gentype.inc>

libclc/generic/include/clc/math/mad.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define __CLC_BODY <clc/math/ternary_decl.inc>
1+
#define __CLC_BODY <clc/shared/ternary_decl.inc>
22
#define __CLC_FUNCTION mad
33

44
#include <clc/math/gentype.inc>

libclc/generic/include/math/clc_fma.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#define __FLOAT_ONLY
66
#define __CLC_FUNCTION __clc_sw_fma
7-
#define __CLC_BODY <clc/math/ternary_decl.inc>
7+
#define __CLC_BODY <clc/shared/ternary_decl.inc>
88
#include <clc/math/gentype.inc>
99
#undef __CLC_BODY
1010
#undef __CLC_FUNCTION

0 commit comments

Comments
 (0)