Changeset 677d2b09 in rtems


Ignore:
Timestamp:
Mar 20, 2015, 8:08:57 AM (4 years ago)
Author:
Alexander Krutwig <alexander.krutwig@…>
Branches:
4.11, master
Children:
c3803167
Parents:
665928a
git-author:
Alexander Krutwig <alexander.krutwig@…> (03/20/15 08:08:57)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/20/15 12:46:43)
Message:

score: Delete unused _Timestamp_Divide_by_integer

Location:
cpukit/score
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/Makefile.am

    r665928a r677d2b09  
    311311
    312312## TIMESTAMP_INT64_C_FILES
    313 libscore_a_SOURCES += src/ts64addto.c src/ts64dividebyinteger.c \
     313libscore_a_SOURCES += src/ts64addto.c \
    314314    src/ts64divide.c src/ts64equalto.c \
    315315    src/ts64getnanoseconds.c src/ts64getseconds.c \
  • cpukit/score/include/rtems/score/timestamp.h

    r665928a r677d2b09  
    237237
    238238/**
    239  *  @brief Divides a timestamp by an integer value.
    240  *
    241  *  This routine divides a timestamp by an integer value.  The expected
    242  *  use is to assist in benchmark calculations where you typically
    243  *  divide a duration by a number of iterations.
    244  *
    245  *  @param[in] _time points to the total
    246  *  @param[in] _iterations is the number of iterations
    247  *  @param[in] _result points to the average time.
    248  *
    249  *  @retval This method fills in @a result.
    250  */
    251 #if CPU_TIMESTAMP_USE_STRUCT_TIMESPEC == TRUE
    252   #define _Timestamp_Divide_by_integer( _time, _iterations, _result ) \
    253           _Timespec_Divide_by_integer(_time, _iterations, _result )
    254 #else
    255   #define _Timestamp_Divide_by_integer( _time, _iterations, _result ) \
    256           _Timestamp64_Divide_by_integer( _time, _iterations, _result )
    257 #endif
    258 
    259 /**
    260239 *  @brief Divides a timestamp by another timestamp.
    261240 *
  • cpukit/score/include/rtems/score/timestamp64.h

    r665928a r677d2b09  
    252252    const Timestamp64_Control *_start,
    253253    const Timestamp64_Control *_end,
    254     Timestamp64_Control       *_result
    255   );
    256 #endif
    257 
    258 static inline void _Timestamp64_implementation_Divide_by_integer(
    259   const Timestamp64_Control *_time,
    260   uint32_t             _iterations,
    261   Timestamp64_Control *_result
    262 )
    263 {
    264   *_result = *_time / _iterations;
    265 }
    266 
    267 /**
    268  *  @brief Divide 64-bit timestamp by an integer.
    269  *
    270  *  This routine divides a timestamp by an integer value.  The expected
    271  *  use is to assist in benchmark calculations where you typically
    272  *  divide a duration by a number of iterations.
    273  *
    274  *  @param[in] _time points to the total
    275  *  @param[in] _iterations is the number of iterations
    276  *  @param[out] _result points to the average time.
    277  */
    278 #if CPU_TIMESTAMP_USE_INT64_INLINE == TRUE
    279   #define _Timestamp64_Divide_by_integer( _time, _iterations, _result ) \
    280     _Timestamp64_implementation_Divide_by_integer( _time, _iterations, _result )
    281 #else
    282   void _Timestamp64_Divide_by_integer(
    283     const Timestamp64_Control *_time,
    284     uint32_t                   _iterations,
    285254    Timestamp64_Control       *_result
    286255  );
Note: See TracChangeset for help on using the changeset viewer.