aboutsummaryrefslogtreecommitdiff
path: root/src/bigfloat.cpp
AgeCommit message (Collapse)Author
2018-06-27add f16 typeBen Noordhuis
Add support for half-precision floating point operations. Introduce `__extendhfsf2` and `__truncsfhf2` in std/special/compiler_rt. Add `__gnu_h2f_ieee` and `__gnu_f2h_ieee` as aliases that are used in Windows builds. The logic in std/special/compiler_rt/extendXfYf2.zig has been reworked and can now operate on 16 bits floating point types. `extendXfYf2()` and `truncXfYf2()` are marked `inline` to work around a not entirely understood stack alignment issue on Windows when calling the f16 versions of the builtins. closes #1122
2018-04-15add @sqrt built-in functionAndrew Kelley
See #767
2017-09-14depend on embedded SoftFloat-3d instead of __float128Andrew Kelley
See #302 See #467
2017-08-20compile-time f32, f64 operations are now correctly lossyAndrew Kelley
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-18remove dependency on quadmath.hAndrew Kelley
2017-08-18depend on libquadmathAndrew Kelley
it seems to be shipped with gcc and clang
2017-08-18cast between __float128 and double to fix build in some placesAndrew Kelley
2017-08-18make casting between __float128 and long double explicitAndrew Kelley
2017-08-17fix bitCast for big integersAndrew Kelley
and make bigfloat use __float128
2017-08-07add ability to explicitly cast float to integerAndrew Kelley
closes #414
2017-07-08better bigint/bigfloat implementationAndrew Kelley