add the common pc IRQTYPE definitions, and copy them for both the 32bit and 64bit...
[AROS.git] / rom / timer / addtime.c
blob6924503dde125aed762fae0cbd68b3bbe35b6996
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: AddTime() - add two timeval's together.
6 Lang: english
7 */
9 #include <timer_intern.h>
10 #include "timer_macros.h"
12 /*****************************************************************************
14 NAME */
15 #include <devices/timer.h>
16 #include <proto/timer.h>
18 AROS_LH2(void, AddTime,
20 /* SYNOPSIS */
21 AROS_LHA(struct timeval *, dest, A0),
22 AROS_LHA(struct timeval *, src, A1),
24 /* LOCATION */
25 struct Device *, TimerBase, 7, Timer)
27 /* FUNCTION
28 Add two timeval's together. The result will be the sum
29 dest + src --> dest.
31 The values of A0 and A1 will not be changed.
33 INPUTS
34 dest - Destination timeval.
35 src - Source timeval.
37 RESULT
38 dest will contain (src + dest).
40 NOTES
41 This function can be called from Interrupts.
43 EXAMPLE
45 BUGS
47 SEE ALSO
48 SubTime(), CmpTime()
50 INTERNALS
52 HISTORY
53 27-11-96 digulla automatically created from
54 timer_lib.fd and clib/timer_protos.h
56 *****************************************************************************/
58 AROS_LIBFUNC_INIT
60 ADDTIME(dest, src);
62 AROS_LIBFUNC_EXIT
63 } /* AddTime */