Skip to content

Commit 16ba78e

Browse files
committed
libclc/spirv: Add missing files from D85911
Fixes: 060c8e0 Signed-off-by: Jan Vesely <[email protected]>
1 parent 41e68f7 commit 16ba78e

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

libclc/spirv/lib/math/fma.cl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <clc/clc.h>
2+
#include <math/clc_fma.h>
3+
4+
#define __CLC_BODY <fma.inc>
5+
#define __FLOAT_ONLY
6+
#include <clc/math/gentype.inc>

libclc/spirv/lib/math/fma.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_CLC_DEF _CLC_OVERLOAD __CLC_GENTYPE fma(__CLC_GENTYPE a, __CLC_GENTYPE b, __CLC_GENTYPE c) {
2+
return __clc_sw_fma(a, b, c);
3+
}

libclc/spirv64/lib/math/fma.cl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <clc/clc.h>
2+
#include <math/clc_fma.h>
3+
4+
#define __CLC_BODY <fma.inc>
5+
#define __FLOAT_ONLY
6+
#include <clc/math/gentype.inc>

libclc/spirv64/lib/math/fma.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_CLC_DEF _CLC_OVERLOAD __CLC_GENTYPE fma(__CLC_GENTYPE a, __CLC_GENTYPE b, __CLC_GENTYPE c) {
2+
return __clc_sw_fma(a, b, c);
3+
}

0 commit comments

Comments
 (0)