c: add fma and fmaf

master
Shawn Landden 2019-06-19 12:06:42 -05:00
parent 99112b5d4a
commit bbfb53d524
1 changed files with 6 additions and 1 deletions

View File

@ -266,7 +266,12 @@ export fn floor(x: f64) f64 {
export fn ceil(x: f64) f64 {
return math.ceil(x);
}
export fn fma(a: f64, b: f64, c: f64) f64 {
return math.fma(f64, a, b, c);
}
export fn fmaf(a: f32, b: f32, c: f32) f32 {
return math.fma(f32, a, b, c);
}
fn generic_fmod(comptime T: type, x: T, y: T) T {
@setRuntimeSafety(false);