| author | |
| committer | |
| log | bd1dc8948f6093a13f1ac887b71fb71466b24f9e |
| tree | 118779f54a06139fc122ab39e36147c4842b9170 |
| parent | 245c160a7b97e1dc8e0fd04e706d7abb36ac9f0c |
| signature |
Seems like it was missed when implementing `rint`.
This was checked by running:
```
$ ./build/stage3/bin/zig build -p stage4 -Denable-llvm -Dno-lib
$ stage4/bin/zig build test-libc -Dlibc-test-path=<LIBC-TEST-PATH> -Dtest-filter=rint -fqemu -fwasmtime --summary line
Build Summary: 2209/2209 steps succeeded
```3 files changed, 1 insertions(+), 14 deletions(-)
lib/c/math.zig+1-1| ... | ... | @@ -49,6 +49,7 @@ comptime { |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | if (builtin.target.isMinGW() or builtin.target.isMuslLibC()) { |
| 52 | symbol(&rint, "rint"); | |
| 52 | 53 | symbol(&rintf, "rintf"); |
| 53 | 54 | } |
| 54 | 55 | |
| ... | ... | @@ -81,7 +82,6 @@ comptime { |
| 81 | 82 | if (builtin.target.isMuslLibC()) { |
| 82 | 83 | symbol(&copysign, "copysign"); |
| 83 | 84 | symbol(&copysignf, "copysignf"); |
| 84 | symbol(&rint, "rint"); | |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | symbol(&copysignl, "copysignl"); |
lib/libc/mingw/math/arm64/rint.c deleted-12| ... | ... | @@ -1,12 +0,0 @@ |
| 1 | /** | |
| 2 | * This file has no copyright assigned and is placed in the Public Domain. | |
| 3 | * This file is part of the mingw-w64 runtime package. | |
| 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package. | |
| 5 | */ | |
| 6 | #include <math.h> | |
| 7 | ||
| 8 | double rint (double x) { | |
| 9 | double retval = 0.0; | |
| 10 | __asm__ __volatile__ ("frintx %d0, %d1\n\t" : "=w" (retval) : "w" (x)); | |
| 11 | return retval; | |
| 12 | } |
src/libs/mingw.zig-1| ... | ... | @@ -995,7 +995,6 @@ const mingw32_arm32_src = [_][]const u8{ |
| 995 | 995 | |
| 996 | 996 | const mingw32_arm64_src = [_][]const u8{ |
| 997 | 997 | // mingwex |
| 998 | "math" ++ path.sep_str ++ "arm64" ++ path.sep_str ++ "rint.c", | |
| 999 | 998 | "math" ++ path.sep_str ++ "arm64" ++ path.sep_str ++ "sincos.S", |
| 1000 | 999 | }; |
| 1001 | 1000 |