Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libc/src/__support/FPUtil/FMA.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ LIBC_INLINE OutType fma(InType x, InType y, InType z) {

#ifdef LIBC_TARGET_CPU_HAS_FMA
template <> LIBC_INLINE float fma(float x, float y, float z) {
return __builtin_fmaf(x, y, z);
return __builtin_elementwise_fma(x, y, z);
}

template <> LIBC_INLINE double fma(double x, double y, double z) {
return __builtin_fma(x, y, z);
return __builtin_elementwise_fma(x, y, z);
}
#endif // LIBC_TARGET_CPU_HAS_FMA

Expand Down
4 changes: 2 additions & 2 deletions libc/src/__support/FPUtil/multiply_add.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ namespace LIBC_NAMESPACE_DECL {
namespace fputil {

LIBC_INLINE float multiply_add(float x, float y, float z) {
return __builtin_fmaf(x, y, z);
return __builtin_elementwise_fma(x, y, z);
}

LIBC_INLINE double multiply_add(double x, double y, double z) {
return __builtin_fma(x, y, z);
return __builtin_elementwise_fma(x, y, z);
}

} // namespace fputil
Expand Down
Loading