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 02b377d commit 438ade1Copy full SHA for 438ade1
libc/src/__support/FPUtil/riscv/sqrt.h
@@ -29,7 +29,7 @@ template <> LIBC_INLINE float sqrt<float>(float x) {
29
}
30
#endif // LIBC_TARGET_CPU_HAS_FPU_FLOAT
31
32
-#if LIBC_TARGET_CPU_HAS_FPU_DOUBLE
+#ifdef LIBC_TARGET_CPU_HAS_FPU_DOUBLE
33
template <> LIBC_INLINE double sqrt<double>(double x) {
34
double result;
35
asm("fsqrt.d %0, %1\n\t" : "=f"(result) : "f"(x));
0 commit comments