src/pylib/Lib/math_impl/patch/fma

Source   Edit  

c_fma means compatible fma, using <math.h> fma when for C

Consts

UNRELIABLE_FMA = true
Source   Edit  

Procs

proc c_fma(x, y, z: cdouble): cdouble {.importc: "fma", header: "<math.h>",
                                        ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc c_fma(x, y, z: cfloat): cfloat {.importc: "fmaf", header: "<math.h>",
                                      ...raises: [], tags: [], forbids: [].}
Source   Edit  
func fma[F: SomeFloat](x, y, z: F): F {....raises: [].}
Warning: this fma does not touch errno and exception is discarded
Source   Edit  
func fma[F: SomeFloat](x, y, z: F; exc: var ref Exception): F {....raises: [].}
EXT. Source   Edit