Skip to content

Commit

Permalink
[libc][NFC] Move generic math implementations to the generic directory.
Browse files Browse the repository at this point in the history
This expands the pattern suggest in https://reviews.llvm.org/D95850 to all
math functions.
  • Loading branch information
Siva Chandra committed Feb 3, 2021
1 parent 15aa78a commit bbb7555
Show file tree
Hide file tree
Showing 85 changed files with 1,063 additions and 959 deletions.
1,061 changes: 106 additions & 955 deletions libc/src/math/CMakeLists.txt

Large diffs are not rendered by default.

956 changes: 956 additions & 0 deletions libc/src/math/generic/CMakeLists.txt

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
//
//===----------------------------------------------------------------------===//

#include "src/math/exp_utils.h"
#include "exp_utils.h"

#include "math_utils.h"

namespace __llvm_libc {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion libc/src/math/fmaf.cpp → libc/src/math/generic/fmaf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace __llvm_libc {

LLVM_LIBC_FUNCTION(float, fmaf, (float x, float y, float z)){
LLVM_LIBC_FUNCTION(float, fmaf, (float x, float y, float z)) {
// Product is exact.
double prod = static_cast<double>(x) * static_cast<double>(y);
double z_d = static_cast<double>(z);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//

#include "src/math/math_utils.h"
#include "math_utils.h"

namespace __llvm_libc {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bbb7555

Please sign in to comment.