zig/std/math
Andrew Kelley 09bd4a9a86 compile-time f32, f64 operations are now correctly lossy
previously we used the bigfloat abstraction to do all
compile-time float math. but runtime code and comptime code
are supposed to get the same result. so now if you add a
f32 to a f32 at compile time it does it with f32 math
instead of the bigfloat. float literals still get the
bigfloat math.

closes #424
2017-08-20 01:04:51 -04:00
..
acos.zig Add math special case tests and general fixes 2017-06-20 23:10:22 +12:00
acosh.zig Add math special case tests and general fixes 2017-06-20 23:10:22 +12:00
asin.zig Add math special case tests and general fixes 2017-06-20 23:10:22 +12:00
asinh.zig Add math special case tests and general fixes 2017-06-20 23:10:22 +12:00
atan2.zig compile-time f32, f64 operations are now correctly lossy 2017-08-20 01:04:51 -04:00
atan.zig Add math special case tests and general fixes 2017-06-20 23:10:22 +12:00
atanh.zig Add math special case tests and general fixes 2017-06-20 23:10:22 +12:00
cbrt.zig Add math special case tests and general fixes 2017-06-20 23:10:22 +12:00
ceil.zig bit shifting safety 2017-08-19 01:43:43 -04:00
copysign.zig workaround for llvm bug 2017-06-19 14:36:33 -04:00
cos.zig Add math special case tests and general fixes 2017-06-20 23:10:22 +12:00
cosh.zig Add math special case tests and general fixes 2017-06-20 23:10:22 +12:00
exp2.zig more intuitive left shift and right shift operators 2017-08-09 10:09:38 -04:00
exp.zig Fixes for release mode tests 2017-06-21 18:21:11 +12:00
expm1.zig bit shifting safety 2017-08-19 01:43:43 -04:00
expo2.zig Add math special case tests and general fixes 2017-06-20 23:10:22 +12:00
fabs.zig better bigint/bigfloat implementation 2017-07-08 17:59:10 -04:00
floor.zig bit shifting safety 2017-08-19 01:43:43 -04:00
fma.zig workaround for llvm bug 2017-06-19 14:36:33 -04:00
frexp.zig Return undefined in frexp instead of 0 on nan input 2017-06-22 19:29:57 +12:00
hypot.zig Add math special case tests and general fixes 2017-06-20 23:10:22 +12:00
ilogb.zig more intuitive left shift and right shift operators 2017-08-09 10:09:38 -04:00
index.zig bit shifting safety 2017-08-19 01:43:43 -04:00
inf.zig
isfinite.zig workaround for llvm bug 2017-06-19 14:36:33 -04:00
isinf.zig workaround for llvm bug 2017-06-19 14:36:33 -04:00
isnan.zig Add math special case tests and general fixes 2017-06-20 23:10:22 +12:00
isnormal.zig workaround for llvm bug 2017-06-19 14:36:33 -04:00
ln.zig bit shifting safety 2017-08-19 01:43:43 -04:00
log1p.zig more intuitive left shift and right shift operators 2017-08-09 10:09:38 -04:00
log2.zig std: better int log2 implementation for number literals 2017-08-19 02:29:18 -04:00
log10.zig bit shifting safety 2017-08-19 01:43:43 -04:00
log.zig bit shifting safety 2017-08-19 01:43:43 -04:00
modf.zig bit shifting safety 2017-08-19 01:43:43 -04:00
nan.zig Add math special case tests and general fixes 2017-06-20 23:10:22 +12:00
pow.zig Fixes for release mode tests 2017-06-21 18:21:11 +12:00
round.zig Add math special case tests and general fixes 2017-06-20 23:10:22 +12:00
scalbn.zig Fix scalbn constant multiplier 2017-06-21 18:53:33 +12:00
signbit.zig workaround for llvm bug 2017-06-19 14:36:33 -04:00
sin.zig compile-time f32, f64 operations are now correctly lossy 2017-08-20 01:04:51 -04:00
sinh.zig Fixes for release mode tests 2017-06-21 18:21:11 +12:00
sqrt.zig bit shifting safety 2017-08-19 01:43:43 -04:00
tan.zig Add math special case tests and general fixes 2017-06-20 23:10:22 +12:00
tanh.zig Fixes for release mode tests 2017-06-21 18:21:11 +12:00
trunc.zig bit shifting safety 2017-08-19 01:43:43 -04:00