[PATCH 03/12] kern_ntptime.c: Add lmax() qmin() definitions
Gabriel Moyano
gabriel.moyano at dlr.de
Thu Apr 7 08:35:58 UTC 2022
---
cpukit/score/src/kern_ntptime.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cpukit/score/src/kern_ntptime.c b/cpukit/score/src/kern_ntptime.c
index 3bbb3290f9..d4a233f67e 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__
--
2.25.1
More information about the devel
mailing list