src/include: Remove min/max() from <stdlib.h>

Change-Id: I9ded44422a267e244343502dd5d6ab355e5a788d
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37378
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Elyes HAOUAS 2019-11-30 17:54:02 +01:00 committed by Patrick Georgi
parent 2ad6f8138a
commit d6de92ef1e
2 changed files with 0 additions and 6 deletions

View File

@ -3,9 +3,6 @@
#include <stddef.h> #include <stddef.h>
#define min(a, b) MIN((a), (b))
#define max(a, b) MAX((a), (b))
void *memalign(size_t boundary, size_t size); void *memalign(size_t boundary, size_t size);
void *malloc(size_t size); void *malloc(size_t size);
/* We never free memory */ /* We never free memory */

View File

@ -42,8 +42,6 @@
* are not meant for users's of the libdram API. * are not meant for users's of the libdram API.
*/ */
#if 0
/* FIXME(dhendrix): min/max are defined in stdlib.h */
/** /**
* Standard min(a,b) macro * Standard min(a,b) macro
*/ */
@ -58,7 +56,6 @@
#define max(X, Y) \ #define max(X, Y) \
({ typeof (X) __x = (X); typeof(Y) __y = (Y); \ ({ typeof (X) __x = (X); typeof(Y) __y = (Y); \
(__x > __y) ? __x : __y; }) (__x > __y) ? __x : __y; })
#endif
/** /**
* Absolute value of an integer * Absolute value of an integer