MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / mad_timer_abs

Function mad_timer_abs

modules/data/mp3/libmad/mad_timer.c:79–85  ·  view source on GitHub ↗

* NAME: timer->abs() * DESCRIPTION: return the absolute value of a timer */

Source from the content-addressed store, hash-verified

77 * DESCRIPTION: return the absolute value of a timer
78 */
79mad_timer_t mad_timer_abs(mad_timer_t timer)
80{
81 if (timer.seconds < 0)
82 mad_timer_negate(&timer);
83
84 return timer;
85}
86
87/*
88 * NAME: reduce_timer()

Callers 2

mad_timer_fractionFunction · 0.85
mad_timer_stringFunction · 0.85

Calls 1

mad_timer_negateFunction · 0.85

Tested by

no test coverage detected