Changeset 3a42e6fd in rtems for cpukit/score/src/ts64set.c


Ignore:
Timestamp:
09/28/11 14:42:12 (11 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
33c0f97
Parents:
c18be8ee
Message:

2011-09-28 Sebastian Huber <sebastian.huber@…>

PR 1914/cpukit

  • score/src/timespecgreaterthan.c, score/src/ts64greaterthan.c: Removed files.
  • score/Makefile.am: Reflect changes above.
  • score/include/rtems/score/timespec.h, score/include/rtems/score/timestamp.h, 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/ts64lessthan.c, score/src/ts64set.c, score/src/ts64settozero.c, score/src/ts64subtract.c, score/src/ts64toticks.c, score/src/ts64totimespec.c: Use CPU_TIMESTAMP_USE_STRUCT_TIMESPEC, CPU_TIMESTAMP_USE_INT64, and CPU_TIMESTAMP_USE_INT64_INLINE. Removed copy and paste.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/ts64set.c

    rc18be8ee r3a42e6fd  
    1818#endif
    1919
    20 #include <sys/types.h>
    21 
    22 #include <rtems/system.h>
    2320#include <rtems/score/timestamp.h>
    2421
    25 #if defined(CPU_RTEMS_SCORE_TIMESTAMP_IS_INT64) && \
    26     !defined(CPU_RTEMS_SCORE_TIMESTAMP_INT64_INLINE)
     22#if CPU_TIMESTAMP_USE_INT64 == TRUE
    2723void _Timestamp64_Set(
    2824  Timestamp64_Control *_time,
     
    3127)
    3228{
    33   int64_t time;
    34 
    35   time = (int64_t)_seconds * 1000000000;
    36   time += (int64_t)_nanoseconds;
    37   *_time = time;
     29  _Timestamp64_implementation_Set( _time, _seconds, _nanoseconds );
    3830}
    3931#endif
Note: See TracChangeset for help on using the changeset viewer.