We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f827260 commit b38c981Copy full SHA for b38c981
libclc/clc/lib/generic/math/clc_sqrt.inc
@@ -20,18 +20,7 @@
20
* THE SOFTWARE.
21
*/
22
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
-
31
__attribute__((weak)) _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE
32
__clc_sqrt(__CLC_GENTYPE val) {
33
- return val < __CLC_FP_LIT(0.0) ? (__CLC_GENTYPE)__CLC_NAN
34
- : __builtin_elementwise_sqrt(val);
+ return __builtin_elementwise_sqrt(val);
35
}
36
37
-#undef __CLC_NAN
0 commit comments