Skip to content

Commit bba9d4c

Browse files
author
Greg Parker
committed
[runtime] Delete unused _swift_fmod*().
These were once used by some func %() implementations.
1 parent 617d746 commit bba9d4c

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

stdlib/public/stubs/Stubs.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
#if defined(__CYGWIN__) || defined(_WIN32) || defined(__HAIKU__)
4444
#include <sstream>
4545
#include <cmath>
46-
#define fmodl(lhs, rhs) std::fmod(lhs, rhs)
4746
#elif defined(__ANDROID__)
4847
// Android's libc implementation Bionic currently only supports the "C" locale
4948
// (https://android.googlesource.com/platform/bionic/+/ndk-r11c/libc/bionic/locale.cpp#40).
@@ -321,21 +320,6 @@ swift::swift_stdlib_readLine_stdin(unsigned char **LinePtr) {
321320
#endif
322321
}
323322

324-
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_INTERFACE
325-
float _swift_fmodf(float lhs, float rhs) {
326-
return fmodf(lhs, rhs);
327-
}
328-
329-
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_INTERFACE
330-
double _swift_fmod(double lhs, double rhs) {
331-
return fmod(lhs, rhs);
332-
}
333-
334-
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_INTERFACE
335-
long double _swift_fmodl(long double lhs, long double rhs) {
336-
return fmodl(lhs, rhs);
337-
}
338-
339323

340324
// Although this builtin is provided by clang rt builtins,
341325
// it isn't provided by libgcc, which is the default

0 commit comments

Comments
 (0)