Commit Graph

11 Commits

Author SHA1 Message Date
Alex Crichton
1701e71ed6 Include ldexp* intrinsics on the wasm target
Looks like LLVM optimizes programs like:

    fn foo(a: u8) -> f32 {
        2.0f32.powf(a as f32)
    }

to actually invoking `ldexpf`, so let's be sure to include bindings so
there's not undefined symbols.
2019-05-02 12:40:39 -07:00
Goirad
63c0bd2522 Added missing fdim signature 2019-04-29 14:42:14 -07:00
Alex Crichton
a806c53b2c Don't compile math symbols on wasm32-unknown-wasi
These are already provided by the C sysroot, so no need for us to
duplicate them!
2019-04-02 07:46:06 -07:00
Yu Ding
c5dc23d75d Fix SGX target_env collision
Signed-off-by: Yu Ding <dingelish@gmail.com>
2019-01-03 12:53:08 -08:00
akashfortanix
f1971b5b71 expose ceil, floor and trunc on sgx-target 2018-12-27 19:13:50 +05:30
Jethro Beekman
3880e404a8 Add SGX target 2018-11-21 14:07:57 +05:30
Jethro Beekman
6582b145b8 Add f32 versions of WebAssembly math functions 2018-11-21 14:07:03 +05:30
Jorge Aparicio
8b1e42bf2a expose fmod{,f} symbols on thumb
these symbols are required for the built-in operation `f32 % f32`
2018-07-24 13:26:50 -05:00
Alex Crichton
bb88e27e3c Use intrinsics! macro for math intrinsics
Make sure they respect the `mangled-names` feature as well as have the `"C"`
ABI.
2018-07-18 10:04:33 -07:00
Jorge Aparicio
f43deaa6a4 fix path 2018-07-18 11:36:24 -05:00
Jorge Aparicio
1dbcef117c expose math symbol on wasm32-unknown-unknown 2018-07-18 11:34:20 -05:00