Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ziglang/zig
base: 4de60dde6ed7
Choose a base ref
...
head repository: ziglang/zig
compare: 1b4bae6d6993
Choose a head ref
  • 5 commits
  • 16 files changed
  • 2 contributors

Commits on Jun 27, 2018

  1. scope variables in floating point cast tests

    Fixes a bug where the result of a @floatCast wasn't actually checked; it
    was checking the result from the previous @floatCast.
    bnoordhuis committed Jun 27, 2018
    Copy the full SHA
    0ebc7b6 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    1f45075 View commit details
    Browse the repository at this point in the history
  3. add f16 type

    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
    bnoordhuis committed Jun 27, 2018
    Copy the full SHA
    fd75e73 View commit details
    Browse the repository at this point in the history
  4. simplify comptime floating-point @divTrunc

    Replace a conditional ceil/floor call with an unconditional trunc call.
    bnoordhuis committed Jun 27, 2018
    Copy the full SHA
    440c1d5 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #1159 from bnoordhuis/f16

    add f16 type
    andrewrk committed Jun 27, 2018
    Copy the full SHA
    1b4bae6 View commit details
    Browse the repository at this point in the history