Skip to content

Commit 438ade1

Browse files
authored
[libc] Fix wrong #ifdef for riscv's sqrt. (#134964)
1 parent 02b377d commit 438ade1

File tree

1 file changed

+1
-1
lines changed
  • libc/src/__support/FPUtil/riscv

1 file changed

+1
-1
lines changed

libc/src/__support/FPUtil/riscv/sqrt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ template <> LIBC_INLINE float sqrt<float>(float x) {
2929
}
3030
#endif // LIBC_TARGET_CPU_HAS_FPU_FLOAT
3131

32-
#if LIBC_TARGET_CPU_HAS_FPU_DOUBLE
32+
#ifdef LIBC_TARGET_CPU_HAS_FPU_DOUBLE
3333
template <> LIBC_INLINE double sqrt<double>(double x) {
3434
double result;
3535
asm("fsqrt.d %0, %1\n\t" : "=f"(result) : "f"(x));

0 commit comments

Comments
 (0)