2 /* { dg-additional-options "-ftracer" } */
4 extern void abort (void);
6 typedef long int _PyTime_t
;
7 typedef enum { _PyTime_ROUND_FLOOR
= 0, _PyTime_ROUND_CEILING
= 1 }
11 _PyTime_Divide(const _PyTime_t t
, const _PyTime_t k
,
12 const _PyTime_round_t round
)
14 if (round
== _PyTime_ROUND_CEILING
) {
16 return (t
+ k
- 1) / k
;
24 return (t
- (k
- 1)) / k
;
28 _PyTime_t
__attribute__((noinline
,noclone
))
29 _PyTime_AsMicroseconds(_PyTime_t t
, _PyTime_round_t round
)
31 return _PyTime_Divide(t
, 1000, round
);
36 if (_PyTime_AsMicroseconds (10000, _PyTime_ROUND_FLOOR
) != 10)