authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-01-08 11:53:06-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-01-08 11:53:06-07:00
log9a4a74eb65a681b078163ad6d0522c3c49918e9b
treed50ff4c0330f76bcf3d18b19ee6008326921c058
parent046f7550dfa27a8780a2b6753be39ef4ce08ef50

mingw: remove pow.c from aarch64-windows mingw builds

I observed a duplicate symbol linker error; pow was defined both by mingwex.lib and ucrtbase.dll.

2 files changed, 0 insertions(+), 22 deletions(-)

lib/libc/mingw/math/arm-common/pow.c deleted-21
......@@ -1,21 +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
7#include <math.h>
8#include <limits.h>
9
10extern double (* __MINGW_IMP_SYMBOL(pow))(double, double);
11
12double pow(double x, double y)
13{
14 if (x == 1.0)
15 return 1.0;
16 if (y == 0.0)
17 return 1.0;
18 if (x == -1.0 && isinf(y))
19 return 1.0;
20 return __MINGW_IMP_SYMBOL(pow)(x, y);
21}
src/mingw.zig-1
......@@ -954,7 +954,6 @@ const arm_common = [_][]const u8{
954954 "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "logb.c",
955955 "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "logbf.c",
956956 "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "logbl.c",
957 "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "pow.c",
958957 "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "powf.c",
959958 "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "powl.c",
960959 "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "remainder.c",