Skip to content

Commit

Permalink
Removed an incorrect comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dc42 committed Sep 23, 2021
1 parent a2e50db commit 465e868
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Math/Isqrt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ float fastSqrtf(float f) noexcept
int32_t exponent = (int32_t)uexponent - 127;

// 5. Make the exponent even, also shift it left to get more result bits. This puts fraction in the range 2^30 to 2^32 - 2^8 + 1.
// Fill the extra bits with 1s because this gives us a more accurate result.
fraction <<= 7 + (exponent & 1);

// 6. Halve the exponent, which also gets rid of the odd bit if it is present. Shift right is arithmetic in gcc, so the sign is preserved.
Expand Down

0 comments on commit 465e868

Please sign in to comment.