Skip to content

Commit f7387dd

Browse files
committed
Fixed typo in result variable
1 parent 471ef62 commit f7387dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/math/rsqrtf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ LIBC_INLINE static constexpr float rsqrtf(float x) {
6060

6161
// TODO: add float based approximation when
6262
// LIBC_TARGET_CPU_HAS_FPU_DOUBLE is not defined
63-
double result = 1.0f / fputil::sqrt<double>(fputil::cast<double>(x));
63+
double result = 1.0 / fputil::sqrt<double>(fputil::cast<double>(x));
6464

6565
return fputil::cast<float>(result);
6666
}

0 commit comments

Comments
 (0)