Skip to content

Commit b38c981

Browse files
committed
remove sqrt workaround
1 parent f827260 commit b38c981

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

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

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,7 @@
2020
* THE SOFTWARE.
2121
*/
2222

23-
#if __CLC_FPSIZE == 64
24-
#define __CLC_NAN DBL_NAN
25-
#elif __CLC_FPSIZE == 32
26-
#define __CLC_NAN FLT_NAN
27-
#elif __CLC_FPSIZE == 16
28-
#define __CLC_NAN HALF_NAN
29-
#endif
30-
3123
__attribute__((weak)) _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE
3224
__clc_sqrt(__CLC_GENTYPE val) {
33-
return val < __CLC_FP_LIT(0.0) ? (__CLC_GENTYPE)__CLC_NAN
34-
: __builtin_elementwise_sqrt(val);
25+
return __builtin_elementwise_sqrt(val);
3526
}
36-
37-
#undef __CLC_NAN

0 commit comments

Comments
 (0)