diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-09 21:27:35 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-09 21:27:35 +0000 |
commit | e57cb3c9df68ebe3616f8276be8d6fe7e926b4f2 (patch) | |
tree | 42483f3fce61b821e9d617a8c633e7fdd53a0d19 /cpukit/score/src/ts64lessthan.c | |
parent | 2008-12-09 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-e57cb3c9df68ebe3616f8276be8d6fe7e926b4f2.tar.bz2 |
2008-12-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to 'cpukit/score/src/ts64lessthan.c')
-rw-r--r-- | cpukit/score/src/ts64lessthan.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/cpukit/score/src/ts64lessthan.c b/cpukit/score/src/ts64lessthan.c new file mode 100644 index 0000000000..1df5eb11f8 --- /dev/null +++ b/cpukit/score/src/ts64lessthan.c @@ -0,0 +1,34 @@ +/** + * @file score/src/ts64lessthan.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 <sys/types.h> + +#include <rtems/system.h> +#include <rtems/score/timestamp.h> + +#if defined(CPU_RTEMS_SCORE_TIMESTAMP_IS_INT64) && \ + !defined(CPU_RTEMS_SCORE_TIMESTAMP_INT64_INLINE) +bool _Timestamp64_Less_than( + Timestamp64_Control *_lhs, + Timestamp64_Control *_rhs +) +{ + return (*(_lhs) < *(_rhs)); +} +#endif |