summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include
diff options
context:
space:
mode:
authorAlexander Krutwig <alexander.krutwig@embedded-brains.de>2015-03-20 09:08:57 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-20 13:46:43 +0100
commit677d2b09d1788c8354ae2d609559e0542b1b929f (patch)
treea75c6b4e7014940c0d4c25f76f8540698b8df33d /cpukit/score/include
parentrtems: Use atomic operation with correct type (diff)
downloadrtems-677d2b09d1788c8354ae2d609559e0542b1b929f.tar.bz2
score: Delete unused _Timestamp_Divide_by_integer
Diffstat (limited to 'cpukit/score/include')
-rw-r--r--cpukit/score/include/rtems/score/timestamp.h21
-rw-r--r--cpukit/score/include/rtems/score/timestamp64.h31
2 files changed, 0 insertions, 52 deletions
diff --git a/cpukit/score/include/rtems/score/timestamp.h b/cpukit/score/include/rtems/score/timestamp.h
index 5c23979224..d03dbc0c45 100644
--- a/cpukit/score/include/rtems/score/timestamp.h
+++ b/cpukit/score/include/rtems/score/timestamp.h
@@ -236,27 +236,6 @@ extern "C" {
#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.
*
* This routine divides a timestamp by another timestamp. The
diff --git a/cpukit/score/include/rtems/score/timestamp64.h b/cpukit/score/include/rtems/score/timestamp64.h
index 3d40ca2787..29e429788e 100644
--- a/cpukit/score/include/rtems/score/timestamp64.h
+++ b/cpukit/score/include/rtems/score/timestamp64.h
@@ -255,37 +255,6 @@ static inline void _Timestamp64_implementation_Subtract(
);
#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.
*