Skip to content

Commit

Permalink
[libc][nfc][obvious] fix typos in FPUtil
Browse files Browse the repository at this point in the history
Fix minor typos in FPUtil comments.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D108952
  • Loading branch information
michaelrj-google committed Aug 30, 2021
1 parent ea85391 commit 7f2ce19
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libc/src/__support/FPUtil/FMA.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
namespace __llvm_libc {
namespace fputil {

// We have a generic implementation available only for single precision fma os
// We have a generic implementation available only for single precision fma as
// we restrict it to float values for now.
template <typename T>
static inline cpp::EnableIfType<cpp::IsSame<T, float>::Value, T> fma(T x, T y,
Expand Down
2 changes: 1 addition & 1 deletion libc/src/__support/FPUtil/Sqrt.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static inline T sqrt(T x) {
int xExp = bits.getExponent();
UIntType xMant = bits.getMantissa();

// Step 1a: Normalize denormal input and append hiddent bit to the mantissa
// Step 1a: Normalize denormal input and append hidden bit to the mantissa
if (bits.getUnbiasedExponent() == 0) {
++xExp; // let xExp be the correct exponent of One bit.
internal::normalize<T>(xExp, xMant);
Expand Down
2 changes: 1 addition & 1 deletion libc/src/__support/FPUtil/generic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ operations. The implementations are nested in the namespace
implementations from machine dependent implementations. Consider the example of
the fuse-multiply-add operation (FMA). The C standard library requires three
different flavors, `fma` which operates double precsion numbers, `fmaf` which
operates on single precision numbers, and `fmal` which operates on `lond double`
operates on single precision numbers, and `fmal` which operates on `long double`
numbers. On Aarch64, there are hardware instructions which implement the single
and double precision flavors but not the `long double` flavor. For such targets,
we want to be able to call the generic `long double` implementation from the
Expand Down

0 comments on commit 7f2ce19

Please sign in to comment.