@zigc/lib 0.16.0-test.1 → 0.17.0-dev.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +19 -0
- package/c/math.zig +135 -35
- package/c/stropts.zig +17 -0
- package/c.zig +1 -0
- package/compiler/aro/aro/Attribute/names.zig +604 -589
- package/compiler/aro/aro/Attribute.zig +202 -116
- package/compiler/aro/aro/Builtins/common.zig +874 -863
- package/compiler/aro/aro/Builtins/eval.zig +15 -7
- package/compiler/aro/aro/Builtins.zig +0 -1
- package/compiler/aro/aro/CodeGen.zig +3 -1
- package/compiler/aro/aro/Compilation.zig +120 -97
- package/compiler/aro/aro/Diagnostics.zig +21 -17
- package/compiler/aro/aro/Driver/GCCDetector.zig +635 -0
- package/compiler/aro/aro/Driver.zig +124 -50
- package/compiler/aro/aro/LangOpts.zig +12 -2
- package/compiler/aro/aro/Parser/Diagnostic.zig +79 -19
- package/compiler/aro/aro/Parser.zig +336 -142
- package/compiler/aro/aro/Preprocessor/Diagnostic.zig +21 -0
- package/compiler/aro/aro/Preprocessor.zig +127 -56
- package/compiler/aro/aro/Target.zig +17 -12
- package/compiler/aro/aro/Tokenizer.zig +31 -14
- package/compiler/aro/aro/Toolchain.zig +4 -7
- package/compiler/aro/aro/Tree.zig +178 -148
- package/compiler/aro/aro/TypeStore.zig +82 -24
- package/compiler/aro/aro/Value.zig +13 -17
- package/compiler/aro/aro/features.zig +1 -0
- package/compiler/aro/aro/pragmas/once.zig +0 -1
- package/compiler/aro/aro/record_layout.zig +3 -3
- package/compiler/aro/assembly_backend/x86_64.zig +3 -4
- package/compiler/aro/backend/Assembly.zig +1 -2
- package/compiler/aro/backend/Interner.zig +2 -2
- package/compiler/aro/backend/Ir.zig +100 -92
- package/compiler/aro/include/ptrcheck.h +49 -0
- package/compiler/aro/main.zig +26 -10
- package/compiler/build_runner.zig +1 -0
- package/compiler/objdump.zig +93 -0
- package/compiler/reduce.zig +5 -1
- package/compiler/resinator/compile.zig +2 -2
- package/compiler/resinator/main.zig +7 -1
- package/compiler/resinator/preprocess.zig +1 -3
- package/compiler/std-docs.zig +8 -1
- package/compiler/test_runner.zig +193 -61
- package/compiler/translate-c/MacroTranslator.zig +80 -11
- package/compiler/translate-c/PatternList.zig +1 -9
- package/compiler/translate-c/Scope.zig +43 -6
- package/compiler/translate-c/Translator.zig +364 -126
- package/compiler/translate-c/ast.zig +19 -11
- package/compiler/translate-c/main.zig +75 -16
- package/compiler_rt/cos.zig +141 -52
- package/compiler_rt/limb64.zig +266 -0
- package/compiler_rt/long_double.zig +37 -0
- package/compiler_rt/mulo.zig +6 -1
- package/compiler_rt/rem_pio2l.zig +173 -0
- package/compiler_rt/sin.zig +140 -55
- package/compiler_rt/sincos.zig +279 -72
- package/compiler_rt/tan.zig +118 -47
- package/compiler_rt/trig.zig +256 -6
- package/compiler_rt.zig +2 -0
- package/fuzzer.zig +855 -307
- package/libc/musl/src/math/pow.c +343 -0
- package/package.json +1 -1
- package/std/Build/Fuzz.zig +6 -19
- package/std/Build/Module.zig +1 -1
- package/std/Build/Step/CheckObject.zig +3 -3
- package/std/Build/Step/Compile.zig +18 -0
- package/std/Build/Step/ConfigHeader.zig +49 -33
- package/std/Build/Step/InstallArtifact.zig +18 -0
- package/std/Build/Step/Run.zig +536 -87
- package/std/Build/Step/TranslateC.zig +0 -6
- package/std/Build/Step.zig +8 -15
- package/std/Build/WebServer.zig +29 -17
- package/std/Build/abi.zig +47 -11
- package/std/Build.zig +17 -14
- package/std/Io/Dispatch.zig +2 -0
- package/std/Io/File/Reader.zig +3 -1
- package/std/Io/File.zig +1 -0
- package/std/Io/Kqueue.zig +2 -2
- package/std/Io/Threaded.zig +181 -143
- package/std/Io/Uring.zig +2 -1
- package/std/Io.zig +970 -2
- package/std/Target.zig +3 -2
- package/std/Thread.zig +8 -3
- package/std/array_hash_map.zig +96 -555
- package/std/array_list.zig +22 -31
- package/std/bit_set.zig +22 -6
- package/std/builtin/assembly.zig +68 -0
- package/std/c.zig +17 -17
- package/std/compress/flate/Compress.zig +3 -3
- package/std/crypto/Certificate/Bundle.zig +15 -1
- package/std/crypto/codecs/asn1.zig +33 -18
- package/std/crypto/codecs/base64_hex_ct.zig +14 -4
- package/std/debug/Dwarf.zig +29 -9
- package/std/debug/Info.zig +4 -0
- package/std/debug/MachOFile.zig +46 -8
- package/std/debug/Pdb.zig +539 -36
- package/std/debug/SelfInfo/Elf.zig +19 -18
- package/std/debug/SelfInfo/MachO.zig +18 -7
- package/std/debug/SelfInfo/Windows.zig +138 -36
- package/std/debug.zig +179 -65
- package/std/enums.zig +25 -19
- package/std/heap/ArenaAllocator.zig +145 -154
- package/std/heap/debug_allocator.zig +7 -7
- package/std/http/Client.zig +10 -6
- package/std/http.zig +11 -9
- package/std/json/Stringify.zig +3 -3
- package/std/json/dynamic.zig +4 -4
- package/std/math/big/int.zig +16 -17
- package/std/mem/Allocator.zig +4 -5
- package/std/mem.zig +48 -0
- package/std/os/emscripten.zig +2 -18
- package/std/os/linux/arc.zig +144 -0
- package/std/os/linux.zig +21 -4
- package/std/os/windows.zig +2 -2
- package/std/pdb.zig +143 -4
- package/std/posix.zig +6 -12
- package/std/priority_dequeue.zig +13 -12
- package/std/priority_queue.zig +5 -4
- package/std/process/Child.zig +1 -1
- package/std/process/Environ.zig +1 -1
- package/std/start.zig +17 -4
- package/std/std.zig +19 -6
- package/std/testing/FailingAllocator.zig +4 -4
- package/std/testing/Smith.zig +37 -2
- package/std/zig/Ast/Render.zig +186 -458
- package/std/zig/Ast.zig +0 -4
- package/std/zig/AstGen.zig +44 -7
- package/std/zig/AstSmith.zig +2602 -0
- package/std/zig/Client.zig +8 -3
- package/std/zig/Parse.zig +83 -74
- package/std/zig/Server.zig +26 -0
- package/std/zig/Zir.zig +17 -0
- package/std/zig/c_translation/helpers.zig +14 -9
- package/std/zig/llvm/Builder.zig +107 -48
- package/std/zig/system.zig +20 -4
- package/std/zig/tokenizer.zig +2 -1
- package/std/zig.zig +6 -0
- package/compiler/aro/aro/Driver/Filesystem.zig +0 -241
- package/libc/mingw/complex/cabs.c +0 -48
- package/libc/mingw/complex/cabsf.c +0 -48
- package/libc/mingw/complex/cacos.c +0 -50
- package/libc/mingw/complex/cacosf.c +0 -50
- package/libc/mingw/complex/carg.c +0 -48
- package/libc/mingw/complex/cargf.c +0 -48
- package/libc/mingw/complex/casin.c +0 -50
- package/libc/mingw/complex/casinf.c +0 -50
- package/libc/mingw/complex/catan.c +0 -50
- package/libc/mingw/complex/catanf.c +0 -50
- package/libc/mingw/complex/ccos.c +0 -50
- package/libc/mingw/complex/ccosf.c +0 -50
- package/libc/mingw/complex/cexp.c +0 -48
- package/libc/mingw/complex/cexpf.c +0 -48
- package/libc/mingw/complex/cimag.c +0 -48
- package/libc/mingw/complex/cimagf.c +0 -48
- package/libc/mingw/complex/clog.c +0 -48
- package/libc/mingw/complex/clog10.c +0 -49
- package/libc/mingw/complex/clog10f.c +0 -49
- package/libc/mingw/complex/clogf.c +0 -48
- package/libc/mingw/complex/conj.c +0 -48
- package/libc/mingw/complex/conjf.c +0 -48
- package/libc/mingw/complex/cpow.c +0 -48
- package/libc/mingw/complex/cpowf.c +0 -48
- package/libc/mingw/complex/cproj.c +0 -48
- package/libc/mingw/complex/cprojf.c +0 -48
- package/libc/mingw/complex/creal.c +0 -48
- package/libc/mingw/complex/crealf.c +0 -48
- package/libc/mingw/complex/csin.c +0 -50
- package/libc/mingw/complex/csinf.c +0 -50
- package/libc/mingw/complex/csqrt.c +0 -48
- package/libc/mingw/complex/csqrtf.c +0 -48
- package/libc/mingw/complex/ctan.c +0 -50
- package/libc/mingw/complex/ctanf.c +0 -50
- package/libc/mingw/math/arm/s_rint.c +0 -86
- package/libc/mingw/math/arm/s_rintf.c +0 -51
- package/libc/mingw/math/arm/sincos.S +0 -30
- package/libc/mingw/math/arm-common/sincosl.c +0 -13
- package/libc/mingw/math/arm64/rint.c +0 -12
- package/libc/mingw/math/arm64/rintf.c +0 -12
- package/libc/mingw/math/arm64/sincos.S +0 -32
- package/libc/mingw/math/bsd_private_base.h +0 -148
- package/libc/mingw/math/frexpf.c +0 -13
- package/libc/mingw/math/frexpl.c +0 -71
- package/libc/mingw/math/x86/acosf.c +0 -29
- package/libc/mingw/math/x86/atanf.c +0 -23
- package/libc/mingw/math/x86/atanl.c +0 -18
- package/libc/mingw/math/x86/cos.def.h +0 -65
- package/libc/mingw/math/x86/cosl.c +0 -46
- package/libc/mingw/math/x86/cosl_internal.S +0 -55
- package/libc/mingw/math/x86/ldexp.c +0 -23
- package/libc/mingw/math/x86/scalbn.S +0 -41
- package/libc/mingw/math/x86/scalbnf.S +0 -40
- package/libc/mingw/math/x86/sin.def.h +0 -65
- package/libc/mingw/math/x86/sinl.c +0 -46
- package/libc/mingw/math/x86/sinl_internal.S +0 -58
- package/libc/mingw/math/x86/tanl.S +0 -62
- package/libc/mingw/misc/btowc.c +0 -28
- package/libc/mingw/misc/wcstof.c +0 -66
- package/libc/mingw/misc/wcstoimax.c +0 -132
- package/libc/mingw/misc/wcstoumax.c +0 -126
- package/libc/mingw/misc/wctob.c +0 -29
- package/libc/mingw/misc/winbs_uint64.c +0 -6
- package/libc/mingw/misc/winbs_ulong.c +0 -6
- package/libc/mingw/misc/winbs_ushort.c +0 -6
- package/libc/mingw/stdio/_Exit.c +0 -10
- package/libc/mingw/stdio/_findfirst64i32.c +0 -21
- package/libc/mingw/stdio/_findnext64i32.c +0 -21
- package/libc/mingw/stdio/_fstat64i32.c +0 -37
- package/libc/mingw/stdio/_stat64i32.c +0 -37
- package/libc/mingw/stdio/_wfindfirst64i32.c +0 -21
- package/libc/mingw/stdio/_wfindnext64i32.c +0 -21
- package/libc/mingw/stdio/_wstat64i32.c +0 -37
- package/libc/musl/src/legacy/isastream.c +0 -7
- package/libc/musl/src/legacy/valloc.c +0 -8
- package/libc/musl/src/math/__cosl.c +0 -96
- package/libc/musl/src/math/__sinl.c +0 -78
- package/libc/musl/src/math/__tanl.c +0 -143
- package/libc/musl/src/math/aarch64/lrint.c +0 -10
- package/libc/musl/src/math/aarch64/lrintf.c +0 -10
- package/libc/musl/src/math/aarch64/rintf.c +0 -7
- package/libc/musl/src/math/cosl.c +0 -39
- package/libc/musl/src/math/fdim.c +0 -10
- package/libc/musl/src/math/finite.c +0 -7
- package/libc/musl/src/math/finitef.c +0 -7
- package/libc/musl/src/math/frexp.c +0 -23
- package/libc/musl/src/math/frexpf.c +0 -23
- package/libc/musl/src/math/frexpl.c +0 -29
- package/libc/musl/src/math/i386/lrint.c +0 -8
- package/libc/musl/src/math/i386/lrintf.c +0 -8
- package/libc/musl/src/math/i386/rintf.c +0 -7
- package/libc/musl/src/math/lrint.c +0 -72
- package/libc/musl/src/math/lrintf.c +0 -8
- package/libc/musl/src/math/powerpc64/lrint.c +0 -16
- package/libc/musl/src/math/powerpc64/lrintf.c +0 -16
- package/libc/musl/src/math/rintf.c +0 -30
- package/libc/musl/src/math/s390x/rintf.c +0 -15
- package/libc/musl/src/math/sincosl.c +0 -60
- package/libc/musl/src/math/sinl.c +0 -41
- package/libc/musl/src/math/tanl.c +0 -29
- package/libc/musl/src/math/x32/lrint.s +0 -5
- package/libc/musl/src/math/x32/lrintf.s +0 -5
- package/libc/musl/src/math/x86_64/lrint.c +0 -8
- package/libc/musl/src/math/x86_64/lrintf.c +0 -8
- package/libc/wasi/libc-bottom-half/sources/reallocarray.c +0 -14
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This Software is provided under the Zope Public License (ZPL) Version 2.1.
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009, 2010 by the mingw-w64 project
|
|
5
|
-
|
|
6
|
-
See the AUTHORS file for the list of contributors to the mingw-w64 project.
|
|
7
|
-
|
|
8
|
-
This license has been certified as open source. It has also been designated
|
|
9
|
-
as GPL compatible by the Free Software Foundation (FSF).
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions in source code must retain the accompanying copyright
|
|
15
|
-
notice, this list of conditions, and the following disclaimer.
|
|
16
|
-
2. Redistributions in binary form must reproduce the accompanying
|
|
17
|
-
copyright notice, this list of conditions, and the following disclaimer
|
|
18
|
-
in the documentation and/or other materials provided with the
|
|
19
|
-
distribution.
|
|
20
|
-
3. Names of the copyright holders must not be used to endorse or promote
|
|
21
|
-
products derived from this software without prior written permission
|
|
22
|
-
from the copyright holders.
|
|
23
|
-
4. The right to distribute this software or to use it for any purpose does
|
|
24
|
-
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
25
|
-
the copyright holders. Use of them is covered by separate agreement
|
|
26
|
-
with the copyright holders.
|
|
27
|
-
5. If any files are modified, you must cause the modified files to carry
|
|
28
|
-
prominent notices stating that you changed the files and the date of
|
|
29
|
-
any change.
|
|
30
|
-
|
|
31
|
-
Disclaimer
|
|
32
|
-
|
|
33
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
34
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
36
|
-
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
37
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
38
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
39
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
42
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/* Float version of the functions. */
|
|
46
|
-
#define _NEW_COMPLEX_FLOAT 1
|
|
47
|
-
#include "complex_internal.h"
|
|
48
|
-
#include "creal.def.h"
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This Software is provided under the Zope Public License (ZPL) Version 2.1.
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009, 2010 by the mingw-w64 project
|
|
5
|
-
|
|
6
|
-
See the AUTHORS file for the list of contributors to the mingw-w64 project.
|
|
7
|
-
|
|
8
|
-
This license has been certified as open source. It has also been designated
|
|
9
|
-
as GPL compatible by the Free Software Foundation (FSF).
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions in source code must retain the accompanying copyright
|
|
15
|
-
notice, this list of conditions, and the following disclaimer.
|
|
16
|
-
2. Redistributions in binary form must reproduce the accompanying
|
|
17
|
-
copyright notice, this list of conditions, and the following disclaimer
|
|
18
|
-
in the documentation and/or other materials provided with the
|
|
19
|
-
distribution.
|
|
20
|
-
3. Names of the copyright holders must not be used to endorse or promote
|
|
21
|
-
products derived from this software without prior written permission
|
|
22
|
-
from the copyright holders.
|
|
23
|
-
4. The right to distribute this software or to use it for any purpose does
|
|
24
|
-
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
25
|
-
the copyright holders. Use of them is covered by separate agreement
|
|
26
|
-
with the copyright holders.
|
|
27
|
-
5. If any files are modified, you must cause the modified files to carry
|
|
28
|
-
prominent notices stating that you changed the files and the date of
|
|
29
|
-
any change.
|
|
30
|
-
|
|
31
|
-
Disclaimer
|
|
32
|
-
|
|
33
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
34
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
36
|
-
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
37
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
38
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
39
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
42
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/* double version of the functions. */
|
|
46
|
-
#define _NEW_COMPLEX_DOUBLE 1
|
|
47
|
-
#include "complex_internal.h"
|
|
48
|
-
|
|
49
|
-
#include "csinh.def.h"
|
|
50
|
-
#include "csin.def.h"
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This Software is provided under the Zope Public License (ZPL) Version 2.1.
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009, 2010 by the mingw-w64 project
|
|
5
|
-
|
|
6
|
-
See the AUTHORS file for the list of contributors to the mingw-w64 project.
|
|
7
|
-
|
|
8
|
-
This license has been certified as open source. It has also been designated
|
|
9
|
-
as GPL compatible by the Free Software Foundation (FSF).
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions in source code must retain the accompanying copyright
|
|
15
|
-
notice, this list of conditions, and the following disclaimer.
|
|
16
|
-
2. Redistributions in binary form must reproduce the accompanying
|
|
17
|
-
copyright notice, this list of conditions, and the following disclaimer
|
|
18
|
-
in the documentation and/or other materials provided with the
|
|
19
|
-
distribution.
|
|
20
|
-
3. Names of the copyright holders must not be used to endorse or promote
|
|
21
|
-
products derived from this software without prior written permission
|
|
22
|
-
from the copyright holders.
|
|
23
|
-
4. The right to distribute this software or to use it for any purpose does
|
|
24
|
-
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
25
|
-
the copyright holders. Use of them is covered by separate agreement
|
|
26
|
-
with the copyright holders.
|
|
27
|
-
5. If any files are modified, you must cause the modified files to carry
|
|
28
|
-
prominent notices stating that you changed the files and the date of
|
|
29
|
-
any change.
|
|
30
|
-
|
|
31
|
-
Disclaimer
|
|
32
|
-
|
|
33
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
34
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
36
|
-
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
37
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
38
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
39
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
42
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/* Float version of the functions. */
|
|
46
|
-
#define _NEW_COMPLEX_FLOAT 1
|
|
47
|
-
#include "complex_internal.h"
|
|
48
|
-
|
|
49
|
-
#include "csinh.def.h"
|
|
50
|
-
#include "csin.def.h"
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This Software is provided under the Zope Public License (ZPL) Version 2.1.
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009, 2010 by the mingw-w64 project
|
|
5
|
-
|
|
6
|
-
See the AUTHORS file for the list of contributors to the mingw-w64 project.
|
|
7
|
-
|
|
8
|
-
This license has been certified as open source. It has also been designated
|
|
9
|
-
as GPL compatible by the Free Software Foundation (FSF).
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions in source code must retain the accompanying copyright
|
|
15
|
-
notice, this list of conditions, and the following disclaimer.
|
|
16
|
-
2. Redistributions in binary form must reproduce the accompanying
|
|
17
|
-
copyright notice, this list of conditions, and the following disclaimer
|
|
18
|
-
in the documentation and/or other materials provided with the
|
|
19
|
-
distribution.
|
|
20
|
-
3. Names of the copyright holders must not be used to endorse or promote
|
|
21
|
-
products derived from this software without prior written permission
|
|
22
|
-
from the copyright holders.
|
|
23
|
-
4. The right to distribute this software or to use it for any purpose does
|
|
24
|
-
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
25
|
-
the copyright holders. Use of them is covered by separate agreement
|
|
26
|
-
with the copyright holders.
|
|
27
|
-
5. If any files are modified, you must cause the modified files to carry
|
|
28
|
-
prominent notices stating that you changed the files and the date of
|
|
29
|
-
any change.
|
|
30
|
-
|
|
31
|
-
Disclaimer
|
|
32
|
-
|
|
33
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
34
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
36
|
-
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
37
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
38
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
39
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
42
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/* double version of the functions. */
|
|
46
|
-
#define _NEW_COMPLEX_DOUBLE 1
|
|
47
|
-
#include "complex_internal.h"
|
|
48
|
-
#include "csqrt.def.h"
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This Software is provided under the Zope Public License (ZPL) Version 2.1.
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009, 2010 by the mingw-w64 project
|
|
5
|
-
|
|
6
|
-
See the AUTHORS file for the list of contributors to the mingw-w64 project.
|
|
7
|
-
|
|
8
|
-
This license has been certified as open source. It has also been designated
|
|
9
|
-
as GPL compatible by the Free Software Foundation (FSF).
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions in source code must retain the accompanying copyright
|
|
15
|
-
notice, this list of conditions, and the following disclaimer.
|
|
16
|
-
2. Redistributions in binary form must reproduce the accompanying
|
|
17
|
-
copyright notice, this list of conditions, and the following disclaimer
|
|
18
|
-
in the documentation and/or other materials provided with the
|
|
19
|
-
distribution.
|
|
20
|
-
3. Names of the copyright holders must not be used to endorse or promote
|
|
21
|
-
products derived from this software without prior written permission
|
|
22
|
-
from the copyright holders.
|
|
23
|
-
4. The right to distribute this software or to use it for any purpose does
|
|
24
|
-
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
25
|
-
the copyright holders. Use of them is covered by separate agreement
|
|
26
|
-
with the copyright holders.
|
|
27
|
-
5. If any files are modified, you must cause the modified files to carry
|
|
28
|
-
prominent notices stating that you changed the files and the date of
|
|
29
|
-
any change.
|
|
30
|
-
|
|
31
|
-
Disclaimer
|
|
32
|
-
|
|
33
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
34
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
36
|
-
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
37
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
38
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
39
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
42
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/* Float version of the functions. */
|
|
46
|
-
#define _NEW_COMPLEX_FLOAT 1
|
|
47
|
-
#include "complex_internal.h"
|
|
48
|
-
#include "csqrt.def.h"
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This Software is provided under the Zope Public License (ZPL) Version 2.1.
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009, 2010 by the mingw-w64 project
|
|
5
|
-
|
|
6
|
-
See the AUTHORS file for the list of contributors to the mingw-w64 project.
|
|
7
|
-
|
|
8
|
-
This license has been certified as open source. It has also been designated
|
|
9
|
-
as GPL compatible by the Free Software Foundation (FSF).
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions in source code must retain the accompanying copyright
|
|
15
|
-
notice, this list of conditions, and the following disclaimer.
|
|
16
|
-
2. Redistributions in binary form must reproduce the accompanying
|
|
17
|
-
copyright notice, this list of conditions, and the following disclaimer
|
|
18
|
-
in the documentation and/or other materials provided with the
|
|
19
|
-
distribution.
|
|
20
|
-
3. Names of the copyright holders must not be used to endorse or promote
|
|
21
|
-
products derived from this software without prior written permission
|
|
22
|
-
from the copyright holders.
|
|
23
|
-
4. The right to distribute this software or to use it for any purpose does
|
|
24
|
-
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
25
|
-
the copyright holders. Use of them is covered by separate agreement
|
|
26
|
-
with the copyright holders.
|
|
27
|
-
5. If any files are modified, you must cause the modified files to carry
|
|
28
|
-
prominent notices stating that you changed the files and the date of
|
|
29
|
-
any change.
|
|
30
|
-
|
|
31
|
-
Disclaimer
|
|
32
|
-
|
|
33
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
34
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
36
|
-
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
37
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
38
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
39
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
42
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/* double version of the functions. */
|
|
46
|
-
#define _NEW_COMPLEX_DOUBLE 1
|
|
47
|
-
#include "complex_internal.h"
|
|
48
|
-
|
|
49
|
-
#include "ctanh.def.h"
|
|
50
|
-
#include "ctan.def.h"
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This Software is provided under the Zope Public License (ZPL) Version 2.1.
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009, 2010 by the mingw-w64 project
|
|
5
|
-
|
|
6
|
-
See the AUTHORS file for the list of contributors to the mingw-w64 project.
|
|
7
|
-
|
|
8
|
-
This license has been certified as open source. It has also been designated
|
|
9
|
-
as GPL compatible by the Free Software Foundation (FSF).
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions in source code must retain the accompanying copyright
|
|
15
|
-
notice, this list of conditions, and the following disclaimer.
|
|
16
|
-
2. Redistributions in binary form must reproduce the accompanying
|
|
17
|
-
copyright notice, this list of conditions, and the following disclaimer
|
|
18
|
-
in the documentation and/or other materials provided with the
|
|
19
|
-
distribution.
|
|
20
|
-
3. Names of the copyright holders must not be used to endorse or promote
|
|
21
|
-
products derived from this software without prior written permission
|
|
22
|
-
from the copyright holders.
|
|
23
|
-
4. The right to distribute this software or to use it for any purpose does
|
|
24
|
-
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
25
|
-
the copyright holders. Use of them is covered by separate agreement
|
|
26
|
-
with the copyright holders.
|
|
27
|
-
5. If any files are modified, you must cause the modified files to carry
|
|
28
|
-
prominent notices stating that you changed the files and the date of
|
|
29
|
-
any change.
|
|
30
|
-
|
|
31
|
-
Disclaimer
|
|
32
|
-
|
|
33
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
34
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
36
|
-
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
37
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
38
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
39
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
42
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/* Float version of the functions. */
|
|
46
|
-
#define _NEW_COMPLEX_FLOAT 1
|
|
47
|
-
#include "complex_internal.h"
|
|
48
|
-
|
|
49
|
-
#include "ctanh.def.h"
|
|
50
|
-
#include "ctan.def.h"
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/* @(#)s_rint.c 5.1 93/09/24 */
|
|
2
|
-
/*
|
|
3
|
-
* ====================================================
|
|
4
|
-
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
|
|
5
|
-
*
|
|
6
|
-
* Developed at SunPro, a Sun Microsystems, Inc. business.
|
|
7
|
-
* Permission to use, copy, modify, and distribute this
|
|
8
|
-
* software is freely granted, provided that this notice
|
|
9
|
-
* is preserved.
|
|
10
|
-
* ====================================================
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
#include <sys/cdefs.h>
|
|
14
|
-
|
|
15
|
-
/*
|
|
16
|
-
* rint(x)
|
|
17
|
-
* Return x rounded to integral value according to the prevailing
|
|
18
|
-
* rounding mode.
|
|
19
|
-
* Method:
|
|
20
|
-
* Using floating addition.
|
|
21
|
-
* Exception:
|
|
22
|
-
* Inexact flag raised if x not equal to rint(x).
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
#include <float.h>
|
|
26
|
-
|
|
27
|
-
#include "../bsd_private_base.h"
|
|
28
|
-
|
|
29
|
-
static const double
|
|
30
|
-
TWO52[2]={
|
|
31
|
-
4.50359962737049600000e+15, /* 0x43300000, 0x00000000 */
|
|
32
|
-
-4.50359962737049600000e+15, /* 0xC3300000, 0x00000000 */
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
double
|
|
36
|
-
rint(double x)
|
|
37
|
-
{
|
|
38
|
-
int32_t i0,j0,sx;
|
|
39
|
-
u_int32_t i,i1;
|
|
40
|
-
double w,t;
|
|
41
|
-
EXTRACT_WORDS(i0,i1,x);
|
|
42
|
-
sx = (i0>>31)&1;
|
|
43
|
-
j0 = ((i0>>20)&0x7ff)-0x3ff;
|
|
44
|
-
if(j0<20) {
|
|
45
|
-
if(j0<0) {
|
|
46
|
-
if(((i0&0x7fffffff)|i1)==0) return x;
|
|
47
|
-
i1 |= (i0&0x0fffff);
|
|
48
|
-
i0 &= 0xfffe0000;
|
|
49
|
-
i0 |= ((i1|-i1)>>12)&0x80000;
|
|
50
|
-
SET_HIGH_WORD(x,i0);
|
|
51
|
-
STRICT_ASSIGN(double,w,TWO52[sx]+x);
|
|
52
|
-
t = w-TWO52[sx];
|
|
53
|
-
GET_HIGH_WORD(i0,t);
|
|
54
|
-
SET_HIGH_WORD(t,(i0&0x7fffffff)|(sx<<31));
|
|
55
|
-
return t;
|
|
56
|
-
} else {
|
|
57
|
-
i = (0x000fffff)>>j0;
|
|
58
|
-
if(((i0&i)|i1)==0) return x; /* x is integral */
|
|
59
|
-
i>>=1;
|
|
60
|
-
if(((i0&i)|i1)!=0) {
|
|
61
|
-
/*
|
|
62
|
-
* Some bit is set after the 0.5 bit. To avoid the
|
|
63
|
-
* possibility of errors from double rounding in
|
|
64
|
-
* w = TWO52[sx]+x, adjust the 0.25 bit to a lower
|
|
65
|
-
* guard bit. We do this for all j0<=51. The
|
|
66
|
-
* adjustment is trickiest for j0==18 and j0==19
|
|
67
|
-
* since then it spans the word boundary.
|
|
68
|
-
*/
|
|
69
|
-
if(j0==19) i1 = 0x40000000; else
|
|
70
|
-
if(j0==18) i1 = 0x80000000; else
|
|
71
|
-
i0 = (i0&(~i))|((0x20000)>>j0);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
} else if (j0>51) {
|
|
75
|
-
if(j0==0x400) return x+x; /* inf or NaN */
|
|
76
|
-
else return x; /* x is integral */
|
|
77
|
-
} else {
|
|
78
|
-
i = ((u_int32_t)(0xffffffff))>>(j0-20);
|
|
79
|
-
if((i1&i)==0) return x; /* x is integral */
|
|
80
|
-
i>>=1;
|
|
81
|
-
if((i1&i)!=0) i1 = (i1&(~i))|((0x40000000)>>(j0-20));
|
|
82
|
-
}
|
|
83
|
-
INSERT_WORDS(x,i0,i1);
|
|
84
|
-
STRICT_ASSIGN(double,w,TWO52[sx]+x);
|
|
85
|
-
return w-TWO52[sx];
|
|
86
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/* s_rintf.c -- float version of s_rint.c.
|
|
2
|
-
* Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
* ====================================================
|
|
7
|
-
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
|
|
8
|
-
*
|
|
9
|
-
* Developed at SunPro, a Sun Microsystems, Inc. business.
|
|
10
|
-
* Permission to use, copy, modify, and distribute this
|
|
11
|
-
* software is freely granted, provided that this notice
|
|
12
|
-
* is preserved.
|
|
13
|
-
* ====================================================
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
#include <sys/cdefs.h>
|
|
17
|
-
|
|
18
|
-
#include <float.h>
|
|
19
|
-
#include <stdint.h>
|
|
20
|
-
|
|
21
|
-
#include "../bsd_private_base.h"
|
|
22
|
-
|
|
23
|
-
static const float
|
|
24
|
-
TWO23[2]={
|
|
25
|
-
8.3886080000e+06, /* 0x4b000000 */
|
|
26
|
-
-8.3886080000e+06, /* 0xcb000000 */
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
float
|
|
30
|
-
rintf(float x)
|
|
31
|
-
{
|
|
32
|
-
int32_t i0,j0,sx;
|
|
33
|
-
float w,t;
|
|
34
|
-
GET_FLOAT_WORD(i0,x);
|
|
35
|
-
sx = (i0>>31)&1;
|
|
36
|
-
j0 = ((i0>>23)&0xff)-0x7f;
|
|
37
|
-
if(j0<23) {
|
|
38
|
-
if(j0<0) {
|
|
39
|
-
if((i0&0x7fffffff)==0) return x;
|
|
40
|
-
STRICT_ASSIGN(float,w,TWO23[sx]+x);
|
|
41
|
-
t = w-TWO23[sx];
|
|
42
|
-
GET_FLOAT_WORD(i0,t);
|
|
43
|
-
SET_FLOAT_WORD(t,(i0&0x7fffffff)|(sx<<31));
|
|
44
|
-
return t;
|
|
45
|
-
}
|
|
46
|
-
STRICT_ASSIGN(float,w,TWO23[sx]+x);
|
|
47
|
-
return w-TWO23[sx];
|
|
48
|
-
}
|
|
49
|
-
if(j0==0x80) return x+x; /* inf or NaN */
|
|
50
|
-
else return x; /* x is integral */
|
|
51
|
-
}
|
|
@@ -1,30 +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 <_mingw_mac.h>
|
|
7
|
-
|
|
8
|
-
.file "sincos.S"
|
|
9
|
-
.text
|
|
10
|
-
.align 2
|
|
11
|
-
/* zig patch: remove sincos symbol because sincos in compiler_rt is used instead */
|
|
12
|
-
.globl __MINGW_USYMBOL(sincosl)
|
|
13
|
-
.def __MINGW_USYMBOL(sincosl); .scl 2; .type 32; .endef
|
|
14
|
-
__MINGW_USYMBOL(sincosl):
|
|
15
|
-
push {r4, r5, r11, lr}
|
|
16
|
-
add r11, sp, #8
|
|
17
|
-
vpush {d8}
|
|
18
|
-
|
|
19
|
-
mov r4, r0
|
|
20
|
-
mov r5, r1
|
|
21
|
-
vmov.f64 d8, d0
|
|
22
|
-
bl sin
|
|
23
|
-
vstr d0, [r4]
|
|
24
|
-
|
|
25
|
-
vmov.f64 d0, d8
|
|
26
|
-
bl cos
|
|
27
|
-
vstr d0, [r5]
|
|
28
|
-
|
|
29
|
-
vpop {d8}
|
|
30
|
-
pop {r4, r5, r11, pc}
|
|
@@ -1,13 +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
|
-
|
|
9
|
-
void sincosl(long double x, long double *s, long double *c)
|
|
10
|
-
{
|
|
11
|
-
*s = sinl(x);
|
|
12
|
-
*c = cosl(x);
|
|
13
|
-
}
|
|
@@ -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
|
-
}
|
|
@@ -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
|
-
float rintf (float x) {
|
|
9
|
-
float retval = 0.0F;
|
|
10
|
-
__asm__ __volatile__ ("frintx %s0, %s1\n\t" : "=w" (retval) : "w" (x));
|
|
11
|
-
return retval;
|
|
12
|
-
}
|
|
@@ -1,32 +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 <_mingw_mac.h>
|
|
7
|
-
|
|
8
|
-
.file "sincos.S"
|
|
9
|
-
.text
|
|
10
|
-
.align 2
|
|
11
|
-
/* zig patch: remove sincos symbol because sincos in compiler_rt is used instead */
|
|
12
|
-
.globl __MINGW_USYMBOL(sincosl)
|
|
13
|
-
.def __MINGW_USYMBOL(sincosl); .scl 2; .type 32; .endef
|
|
14
|
-
__MINGW_USYMBOL(sincosl):
|
|
15
|
-
str d8, [sp, #-32]!
|
|
16
|
-
str x30, [sp, #8]
|
|
17
|
-
stp x19, x20, [sp, #16]
|
|
18
|
-
|
|
19
|
-
mov x19, x0
|
|
20
|
-
mov x20, x1
|
|
21
|
-
fmov d8, d0
|
|
22
|
-
bl sin
|
|
23
|
-
str d0, [x19]
|
|
24
|
-
|
|
25
|
-
fmov d0, d8
|
|
26
|
-
bl cos
|
|
27
|
-
str d0, [x20]
|
|
28
|
-
|
|
29
|
-
ldp x19, x20, [sp, #16]
|
|
30
|
-
ldr x30, [sp, #8]
|
|
31
|
-
ldr d8, [sp], #32
|
|
32
|
-
ret
|