Skip to content

Commit bea269b

Browse files
committed
use _Pragma
1 parent 9ac644c commit bea269b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

libclc/clc/lib/generic/math/clc_native_divide.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88

99
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __clc_native_divide(__CLC_GENTYPE x,
1010
__CLC_GENTYPE y) {
11-
#pragma clang fp reciprocal(on)
11+
_Pragma("clang fp reciprocal(on)");
1212
return x / y;
1313
}

libclc/clc/lib/generic/math/clc_native_recip.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __clc_native_recip(__CLC_GENTYPE val) {
10-
#pragma clang fp reciprocal(on)
10+
_Pragma("clang fp reciprocal(on)");
1111
return 1.0f / val;
1212
}

libclc/clc/lib/generic/math/clc_native_rsqrt.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __clc_native_rsqrt(__CLC_GENTYPE val) {
10-
#pragma clang fp reciprocal(on)
10+
_Pragma("clang fp reciprocal(on)");
1111
return 1.0f / __clc_native_sqrt(val);
1212
}

libclc/clc/lib/generic/math/clc_native_tan.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __clc_native_tan(__CLC_GENTYPE val) {
10-
#pragma clang fp reciprocal(on)
10+
_Pragma("clang fp reciprocal(on)");
1111
return __clc_native_sin(val) / __clc_native_cos(val);
1212
}

0 commit comments

Comments
 (0)