C provides some functions capable of computing relatively trivial expressions but with potentially lower overhead.
Name | Description | Notes | Source | Availability | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
fma() |
Multiply and add | (·) | <math.h> |
C99 | C11 | ||||||
scalbn() |
Compose floating-point number | (·) | <math.h> |
C99 | C11 | ||||||
expm1() |
Compute natural exponent minus one | (·) | <math.h> |
C99 | C11 | ||||||
log1p() |
Compute natural logarithm | (·) | <math.h> |
C99 | C11 |