2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: CmpTime() - compare two time values.
9 #include <timer_intern.h>
10 #include "timer_macros.h"
12 /*****************************************************************************
15 #include <devices/timer.h>
16 #include <proto/timer.h>
18 AROS_LH2(LONG
, CmpTime
,
21 AROS_LHA(struct timeval
*, dest
, A0
),
22 AROS_LHA(struct timeval
*, src
, A1
),
25 struct Device
*, TimerBase
, 9, Timer
)
28 CmpTime() will compare two timeval's for magnitude, and return
32 dest - Destination timeval
36 -1 if dest has more time than src (i.e. dest > src)
37 0 if dest and src are the same (i.e. dest == src)
38 +1 if dest has less time than src (i.e. dest < src)
41 This function is safe to call from interrupts.
46 The registers A0 and A1 may not be preserved.
54 18-02-1997 iaint Implemented.
56 *****************************************************************************/
60 return CMPTIME(dest
, src
);