forked from Imagelibrary/rtems
score: Delete unused _Timestamp_Divide_by_integer
This commit is contained in:
committed by
Sebastian Huber
parent
665928a9b5
commit
677d2b09d1
@@ -310,7 +310,7 @@ libscore_a_SOURCES += src/timespecaddto.c src/timespecfromticks.c \
|
|||||||
src/timespecdividebyinteger.c src/timespecgetasnanoseconds.c
|
src/timespecdividebyinteger.c src/timespecgetasnanoseconds.c
|
||||||
|
|
||||||
## TIMESTAMP_INT64_C_FILES
|
## TIMESTAMP_INT64_C_FILES
|
||||||
libscore_a_SOURCES += src/ts64addto.c src/ts64dividebyinteger.c \
|
libscore_a_SOURCES += src/ts64addto.c \
|
||||||
src/ts64divide.c src/ts64equalto.c \
|
src/ts64divide.c src/ts64equalto.c \
|
||||||
src/ts64getnanoseconds.c src/ts64getseconds.c \
|
src/ts64getnanoseconds.c src/ts64getseconds.c \
|
||||||
src/ts64lessthan.c \
|
src/ts64lessthan.c \
|
||||||
|
|||||||
@@ -235,27 +235,6 @@ extern "C" {
|
|||||||
_Timestamp64_Subtract( _start, _end, _result )
|
_Timestamp64_Subtract( _start, _end, _result )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Divides a timestamp by an integer value.
|
|
||||||
*
|
|
||||||
* This routine divides a timestamp by an integer value. The expected
|
|
||||||
* use is to assist in benchmark calculations where you typically
|
|
||||||
* divide a duration by a number of iterations.
|
|
||||||
*
|
|
||||||
* @param[in] _time points to the total
|
|
||||||
* @param[in] _iterations is the number of iterations
|
|
||||||
* @param[in] _result points to the average time.
|
|
||||||
*
|
|
||||||
* @retval This method fills in @a result.
|
|
||||||
*/
|
|
||||||
#if CPU_TIMESTAMP_USE_STRUCT_TIMESPEC == TRUE
|
|
||||||
#define _Timestamp_Divide_by_integer( _time, _iterations, _result ) \
|
|
||||||
_Timespec_Divide_by_integer(_time, _iterations, _result )
|
|
||||||
#else
|
|
||||||
#define _Timestamp_Divide_by_integer( _time, _iterations, _result ) \
|
|
||||||
_Timestamp64_Divide_by_integer( _time, _iterations, _result )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Divides a timestamp by another timestamp.
|
* @brief Divides a timestamp by another timestamp.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -255,37 +255,6 @@ static inline void _Timestamp64_implementation_Subtract(
|
|||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline void _Timestamp64_implementation_Divide_by_integer(
|
|
||||||
const Timestamp64_Control *_time,
|
|
||||||
uint32_t _iterations,
|
|
||||||
Timestamp64_Control *_result
|
|
||||||
)
|
|
||||||
{
|
|
||||||
*_result = *_time / _iterations;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Divide 64-bit timestamp by an integer.
|
|
||||||
*
|
|
||||||
* This routine divides a timestamp by an integer value. The expected
|
|
||||||
* use is to assist in benchmark calculations where you typically
|
|
||||||
* divide a duration by a number of iterations.
|
|
||||||
*
|
|
||||||
* @param[in] _time points to the total
|
|
||||||
* @param[in] _iterations is the number of iterations
|
|
||||||
* @param[out] _result points to the average time.
|
|
||||||
*/
|
|
||||||
#if CPU_TIMESTAMP_USE_INT64_INLINE == TRUE
|
|
||||||
#define _Timestamp64_Divide_by_integer( _time, _iterations, _result ) \
|
|
||||||
_Timestamp64_implementation_Divide_by_integer( _time, _iterations, _result )
|
|
||||||
#else
|
|
||||||
void _Timestamp64_Divide_by_integer(
|
|
||||||
const Timestamp64_Control *_time,
|
|
||||||
uint32_t _iterations,
|
|
||||||
Timestamp64_Control *_result
|
|
||||||
);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Divide 64-bit timestamp by another 64-bit timestamp.
|
* @brief Divide 64-bit timestamp by another 64-bit timestamp.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
/**
|
|
||||||
* @file
|
|
||||||
*
|
|
||||||
* @brief Divide Timestamp By Integer
|
|
||||||
* @ingroup SuperCore
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 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.org/license/LICENSE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <rtems/score/timestamp.h>
|
|
||||||
|
|
||||||
#if CPU_TIMESTAMP_USE_INT64 == TRUE
|
|
||||||
void _Timestamp64_Divide_by_integer(
|
|
||||||
const Timestamp64_Control *_time,
|
|
||||||
uint32_t _iterations,
|
|
||||||
Timestamp64_Control *_result
|
|
||||||
)
|
|
||||||
{
|
|
||||||
_Timestamp64_implementation_Divide_by_integer( _time, _iterations, _result );
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
Reference in New Issue
Block a user