authorgravatar for shawn@git.icuShawn Landden <shawn@git.icu> 2019-06-19 12:06:42-05:00
committergravatar for shawn@git.icuShawn Landden <shawn@git.icu> 2019-06-19 12:07:02-05:00
logbbfb53d52411cc5b1f560293c757bff252e1e06f
treefab10ec3cfbf2e2662fe39422b39a81bc5fbe79c
parent99112b5d4ac885f63a79c6f7926f92ff4f3ce819

c: add fma and fmaf


1 files changed, 6 insertions(+), 1 deletions(-)

std/special/c.zig+6-1
......@@ -266,7 +266,12 @@ export fn floor(x: f64) f64 {
266266export fn ceil(x: f64) f64 {
267267 return math.ceil(x);
268268}
269
269export fn fma(a: f64, b: f64, c: f64) f64 {
270 return math.fma(f64, a, b, c);
271}
272export fn fmaf(a: f32, b: f32, c: f32) f32 {
273 return math.fma(f32, a, b, c);
274}
270275fn generic_fmod(comptime T: type, x: T, y: T) T {
271276 @setRuntimeSafety(false);
272277