From e57cb3c9df68ebe3616f8276be8d6fe7e926b4f2 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 9 Dec 2008 21:27:35 +0000 Subject: 2008-12-09 Joel Sherrill * score/Makefile.am, score/preinstall.am, score/include/rtems/score/timespec.h, score/include/rtems/score/timestamp.h: Add 64-bit implementation of SuperCore Timestamps. Tested on PowerPC/psim and SPARC/sis. * score/include/rtems/score/timestamp64.h, score/src/ts64addto.c, score/src/ts64divide.c, score/src/ts64dividebyinteger.c, score/src/ts64equalto.c, score/src/ts64getnanoseconds.c, score/src/ts64getseconds.c, score/src/ts64greaterthan.c, score/src/ts64lessthan.c, score/src/ts64set.c, score/src/ts64settozero.c, score/src/ts64subtract.c, score/src/ts64toticks.c, score/src/ts64totimespec.c: New files. --- cpukit/score/src/ts64addto.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 cpukit/score/src/ts64addto.c (limited to 'cpukit/score/src/ts64addto.c') diff --git a/cpukit/score/src/ts64addto.c b/cpukit/score/src/ts64addto.c new file mode 100644 index 0000000000..14439de0f3 --- /dev/null +++ b/cpukit/score/src/ts64addto.c @@ -0,0 +1,34 @@ +/** + * @file score/src/ts64addto.c +*/ + +/* + * COPYRIGHT (c) 1989-2008. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#if HAVE_CONFIG_H +#include "config.h" +#endif + +#include + +#include +#include + +#if defined(CPU_RTEMS_SCORE_TIMESTAMP_IS_INT64) && \ + !defined(CPU_RTEMS_SCORE_TIMESTAMP_INT64_INLINE) +void _Timestamp64_Add_to( + Timestamp64_Control *_time, + Timestamp64_Control *_add +) +{ + *_time += *_add; +} +#endif -- cgit v1.2.3