MCPcopy Create free account
hub / github.com/coreutils/coreutils / absld

Function absld

src/numfmt.c:348–352  ·  view source on GitHub ↗

Similar to 'fabs(3)' but without requiring 'libm'. */

Source from the content-addressed store, hash-verified

346
347/* Similar to 'fabs(3)' but without requiring 'libm'. */
348static inline long double
349absld (long double val)
350{
351 return val < 0 ? -val : val;
352}
353
354/* Scale down 'val', returns 'updated val' and 'x', such that
355 val*base^X = original val

Callers 2

expldFunction · 0.85
double_to_humanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected