Skip to content

Commit ee5d572

Browse files
committed
[libc] Undo accidental changes to dsubl that were leftoever
1 parent dc2f39e commit ee5d572

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

libc/src/math/generic/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ add_entrypoint_object(
138138
COMPILE_OPTIONS
139139
-O3
140140
DEPENDS
141-
libc.src.__support.macros.properties.types
142141
libc.src.__support.FPUtil.generic.add_sub
143142
)
144143

@@ -251,7 +250,6 @@ add_entrypoint_object(
251250
HDRS
252251
../dsubl.h
253252
DEPENDS
254-
libc.src.__support.macros.properties.types
255253
libc.src.__support.FPUtil.generic.add_sub
256254
COMPILE_OPTIONS
257255
-O3

libc/src/math/generic/daddl.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,11 @@
1010
#include "src/__support/FPUtil/generic/add_sub.h"
1111
#include "src/__support/common.h"
1212
#include "src/__support/macros/config.h"
13-
#include "src/__support/macros/properties/types.h"
1413

1514
namespace LIBC_NAMESPACE_DECL {
1615

1716
LLVM_LIBC_FUNCTION(double, daddl, (long double x, long double y)) {
18-
#ifdef LIBC_TYPES_LONG_DOUBLE_IS_FLOAT64
19-
return static_cast<double>(x) + static_cast<double>(y);
20-
#else
2117
return fputil::generic::add<double>(x, y);
22-
#endif
2318
}
2419

2520
} // namespace LIBC_NAMESPACE_DECL

libc/src/math/generic/dsubl.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,11 @@
1010
#include "src/__support/FPUtil/generic/add_sub.h"
1111
#include "src/__support/common.h"
1212
#include "src/__support/macros/config.h"
13-
#include "src/__support/macros/properties/types.h"
1413

1514
namespace LIBC_NAMESPACE_DECL {
1615

1716
LLVM_LIBC_FUNCTION(double, dsubl, (long double x, long double y)) {
18-
#ifdef LIBC_TYPES_LONG_DOUBLE_IS_FLOAT64
19-
return static_cast<double>(x) - static_cast<double>(y);
20-
#else
21-
return fputil::generic::add<double>(x, y);
22-
#endif
17+
return fputil::generic::sub<double>(x, y);
2318
}
2419

2520
} // namespace LIBC_NAMESPACE_DECL

0 commit comments

Comments
 (0)