Lines Matching refs:in
70 static void CalendarDiv86400( uint32_t in, uint32_t* out, uint32_t* remainder );
71 static uint32_t CalendarDiv61( uint32_t in );
72 static void CalendarDiv60( uint32_t in, uint32_t* out, uint32_t* remainder );
292 static void CalendarDiv86400( uint32_t in, uint32_t* out, uint32_t* remainder ) in CalendarDiv86400() argument
295 *remainder = in % SECONDS_IN_1DAY; in CalendarDiv86400()
296 *out = in / SECONDS_IN_1DAY; in CalendarDiv86400()
299 uint32_t divResult = DIV_APPROX_86400( in ); in CalendarDiv86400()
304 in -= divResult * 86400; in CalendarDiv86400()
305 divResult= DIV_APPROX_86400( in ); in CalendarDiv86400()
307 if( in >= 86400 ) in CalendarDiv86400()
310 in -= 86400; in CalendarDiv86400()
313 *remainder = in; in CalendarDiv86400()
318 static uint32_t CalendarDiv61( uint32_t in ) in CalendarDiv61() argument
321 return( in / 61 ); in CalendarDiv61()
324 uint32_t divResult = DIV_APPROX_61( in ); in CalendarDiv61()
328 in -= divResult * 61; in CalendarDiv61()
329 divResult = DIV_APPROX_61( in ); in CalendarDiv61()
331 if( in >= 61 ) in CalendarDiv61()
334 in -= 61; in CalendarDiv61()
340 static void CalendarDiv60( uint32_t in, uint32_t* out, uint32_t* remainder ) in CalendarDiv60() argument
343 *remainder = in % 60; in CalendarDiv60()
344 *out = in / 60; in CalendarDiv60()
347 uint32_t divResult = DIV_APPROX_60( in ); in CalendarDiv60()
352 in -= divResult * 60; in CalendarDiv60()
353 divResult = DIV_APPROX_60( in ); in CalendarDiv60()
355 if( in >= 60 ) in CalendarDiv60()
358 in -= 60; in CalendarDiv60()
360 *remainder = in; in CalendarDiv60()