This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[newlib][ARM][PATCH 3/3] Add MIN MAX macro to param header file.
- From: Andre Vieira <Andre dot SimoesDiasVieira at arm dot com>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Fri, 31 Jul 2015 10:29:08 +0100
- Subject: [newlib][ARM][PATCH 3/3] Add MIN MAX macro to param header file.
- Authentication-results: sourceware.org; auth=none
newlib/ChangeLog:
2015-07-28 Andre Vieira <andre.simoesdiasvieira@arm.com>
* libc/sys/arm/sys/param.h (MIN,MAX): Define.
From 536ca7365d269f5e56679048e336d6969186d550 Mon Sep 17 00:00:00 2001
From: Andre Simoes Dias Vieira <andsim01@arm.com>
Date: Tue, 28 Jul 2015 14:19:08 +0100
Subject: [PATCH] Added min max macros
---
newlib/libc/sys/arm/sys/param.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/newlib/libc/sys/arm/sys/param.h b/newlib/libc/sys/arm/sys/param.h
index 83e46c04427267725d8aa6b58ac3ff68b5ec6679..7786ef2775905306b6914d807825a90a2e7d6b3e 100644
--- a/newlib/libc/sys/arm/sys/param.h
+++ b/newlib/libc/sys/arm/sys/param.h
@@ -16,4 +16,7 @@
# define PATHSIZE (1024)
#endif
+#define MAX(a,b) ((a) > (b) ? (a) : (b))
+#define MIN(a,b) ((a) < (b) ? (a) : (b))
+
#endif
--
1.9.1