diff options
author | Gabriel Moyano <gabriel.moyano@dlr.de> | 2022-05-20 11:29:54 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-05-23 09:08:46 +0200 |
commit | a3930e8c49b29fa4a98c4eeeddbdb7b18d371292 (patch) | |
tree | 6fd4f13f6b622c558bff24846ac39fa7d087a5d1 /cpukit | |
parent | kern_ntptime.c: Disable freebsd features (diff) | |
download | rtems-a3930e8c49b29fa4a98c4eeeddbdb7b18d371292.tar.bz2 |
kern_ntptime.c: Add lmax() qmin() definitions
Update #2349.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/kern_ntptime.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/src/kern_ntptime.c b/cpukit/score/src/kern_ntptime.c index 610386833c..da6b425064 100644 --- a/cpukit/score/src/kern_ntptime.c +++ b/cpukit/score/src/kern_ntptime.c @@ -71,6 +71,8 @@ __FBSDID("$FreeBSD$"); #define ntp_update_second _Timecounter_NTP_update_second #define time_uptime _Timecounter_Time_uptime struct thread; +static __inline long lmax(long a, long b) { return (a > b ? a : b); } +static __inline quad_t qmin(quad_t a, quad_t b) { return (a < b ? a : b); } #endif /* __rtems__ */ #ifndef __rtems__ |