diff options
| author | wdenk <wdenk> | 2002-11-19 11:04:11 +0000 | 
|---|---|---|
| committer | wdenk <wdenk> | 2002-11-19 11:04:11 +0000 | 
| commit | c7de829c796978e519984df2f1c8cfcf921a39a4 (patch) | |
| tree | 43e42aa9a09f5265783c1622a5cea080471ef50e /include/common.h | |
| parent | 2262cfeef91458b01a1bfe3812ccbbfdf8b82807 (diff) | |
| download | olio-uboot-2014.01-c7de829c796978e519984df2f1c8cfcf921a39a4.tar.xz olio-uboot-2014.01-c7de829c796978e519984df2f1c8cfcf921a39a4.zip | |
* Patch by Thomas Frieden, 13 Nov 2002:
  Add code for AmigaOne board
  (preliminary merge to U-Boot, still WIP)
* Patch by Jon Diekema, 12 Nov 2002:
  - Adding URL for IEEE OUI lookup
  - Making the autoboot #defines dependent on CONFIG_AUTOBOOT_KEYED
    being defined.
  - In the CONFIG_EXTRA_ENV_SETTINGS #define, the root-on-initrd and
    root-on-nfs macros are designed to switch how the default boot
    method gets defined.
Diffstat (limited to 'include/common.h')
| -rw-r--r-- | include/common.h | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/include/common.h b/include/common.h index a950cdcc4..d9d5702a9 100644 --- a/include/common.h +++ b/include/common.h @@ -81,6 +81,18 @@ typedef	void (interrupt_handler_t)(void *);  /* + * General Purpose Utilities + */ +#define min(X, Y)				\ +	({ typeof (X) __x = (X), __y = (Y);	\ +		(__x < __y) ? __x : __y; }) + +#define max(X, Y)				\ +	({ typeof (X) __x = (X), __y = (Y);	\ +		(__x > __y) ? __x : __y; }) + + +/*   * Function Prototypes   */ |