aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math/ldexp.zig
AgeCommit message (Collapse)Author
2022-05-17std.math: simpler error handlingalice
2022-04-07use math/float.zig everywhereviri
2022-04-06std.{fmt, math}: derive float constants from stdviri
This also addresses a nit from #10133 where IntT might be a confusing name because it might imply signed integer (iX, not uX). We settled on TBits for math/float.zig so I've applied that change here too. When I originally wrote ldexp() I copied the name from parse_hex_float.
2021-11-23std/math: add ldexp and make scalbn an aliasMarc Tiehuis
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.