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

Function simple_round_floor

src/numfmt.c:389–393  ·  view source on GitHub ↗

EXTREMELY limited 'floor' - without 'libm'. Assumes values that fit in intmax_t. */

Source from the content-addressed store, hash-verified

387/* EXTREMELY limited 'floor' - without 'libm'.
388 Assumes values that fit in intmax_t. */
389static inline intmax_t
390simple_round_floor (long double val)
391{
392 return -simple_round_ceiling (-val);
393}
394
395/* EXTREMELY limited 'round away from zero'.
396 Assumes values that fit in intmax_t. */

Callers 2

simple_round_from_zeroFunction · 0.85
simple_roundFunction · 0.85

Calls 1

simple_round_ceilingFunction · 0.85

Tested by

no test coverage detected