commit | 99ef447d0fe8a11a134b817c9406bc2ce2b84dff | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Jan 12 17:51:20 2022 -0800 |
committer | Elliott Hughes <enh@google.com> | Wed Jan 12 17:52:15 2022 -0800 |
tree | 8c29d7170f83e81a003e4cc44bfca10c09619046 | |
parent | c79b02088b0cc46f13a6c2391526761aa2d49c54 [diff] [blame] |
libm: sync with upstream. There's potential here to maybe lose some/all of builtins.cpp, but I'll look at that separately later. Test: treehugger Change-Id: I2c2bc1d0753affdd214daeb09fa1ac7cd73db347
diff --git a/libm/upstream-freebsd/lib/msun/src/s_fminf.c b/libm/upstream-freebsd/lib/msun/src/s_fminf.c index 2583167..58b6a48 100644 --- a/libm/upstream-freebsd/lib/msun/src/s_fminf.c +++ b/libm/upstream-freebsd/lib/msun/src/s_fminf.c
@@ -33,6 +33,13 @@ #include "fpmath.h" +#ifdef USE_BUILTIN_FMINF +float +fminf(float x, float y) +{ + return (__builtin_fminf(x, y)); +} +#else float fminf(float x, float y) { @@ -53,3 +60,4 @@ return (x < y ? x : y); } +#endif