aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorMarc Tiehuis <marc@tiehu.is>2021-11-23 20:10:32 +1300
committerAndrew Kelley <andrew@ziglang.org>2021-11-23 14:47:01 -0500
commit8f1e417757f2172485cdea792580e2a2afb53ffa (patch)
tree42b7f53a6b872f5c8afaec97f24785bbb0e5d5cb /src/Module.zig
parent8e6c038dd81fa7eddfdac882aa3b1d5edbdcf329 (diff)
downloadzig-8f1e417757f2172485cdea792580e2a2afb53ffa.tar.gz
zig-8f1e417757f2172485cdea792580e2a2afb53ffa.zip
std/math: add ldexp and make scalbn an alias
We assume we are compiled on a base-2 radix floating point system. This is a reasonable assumption. musl libc as an example also assumes this. We implement scalbn as an alias for ldexp, since ldexp is defined as 2 regardless of the float radix. This is opposite to musl which defines scalbn in terms of ldexp. Closes #9799.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions