b 94 bsp/drv/arm/gba/lcd.h #define RGB(r, g, b) (((b) << 10) + ((g) << 5) + (r)) b 54 bsp/hal/arm/gba/diag.c #define RGB(r, g, b) (((b) << 10) + ((g) << 5) + (r)) b 257 include/sys/elf.h #define ELF32_ST_INFO(b,t) (((b) << 4) + ((t) & 0xf)) b 173 include/sys/param.h #define MIN(a,b) (((a)<(b))?(a):(b)) b 174 include/sys/param.h #define MAX(a,b) (((a)>(b))?(a):(b)) b 60 sys/include/timer.h #define time_after(a,b) (((long)(b) - (long)(a)) < 0) b 61 sys/include/timer.h #define time_before(a,b) time_after(b,a) b 63 sys/include/timer.h #define time_after_eq(a,b) (((long)(a) - (long)(b)) >= 0) b 64 sys/include/timer.h #define time_before_eq(a,b) time_after_eq(b,a) b 111 sys/mem/kmem.c #define BLKNDX(b) ((u_int)((b)->size) >> 4) b 62 usr/lib/libc/stdio/fvwrite.c #define MIN(a, b) ((a) < (b) ? (a) : (b)) b 41 usr/lib/libc/stdlib/qsort.c #define min(a, b) (a) < (b) ? a : b b 61 usr/lib/libc/stdlib/qsort.c swapfunc(a, b, n, swaptype) b 62 usr/lib/libc/stdlib/qsort.c char *a, *b; b 67 usr/lib/libc/stdlib/qsort.c swapcode(long, a, b, n) b 69 usr/lib/libc/stdlib/qsort.c swapcode(char, a, b, n) b 72 usr/lib/libc/stdlib/qsort.c #define swap(a, b) \ b 75 usr/lib/libc/stdlib/qsort.c *(long *)(void *)(a) = *(long *)(void *)(b); \ b 76 usr/lib/libc/stdlib/qsort.c *(long *)(void *)(b) = t; \ b 78 usr/lib/libc/stdlib/qsort.c swapfunc(a, b, es, swaptype) b 80 usr/lib/libc/stdlib/qsort.c #define vecswap(a, b, n) if ((n) > 0) swapfunc((a), (b), (size_t)(n), swaptype) b 83 usr/lib/libc/stdlib/qsort.c med3(a, b, c, cmp) b 84 usr/lib/libc/stdlib/qsort.c char *a, *b, *c; b 87 usr/lib/libc/stdlib/qsort.c return cmp(a, b) < 0 ? b 88 usr/lib/libc/stdlib/qsort.c (cmp(b, c) < 0 ? b : (cmp(a, c) < 0 ? c : a )) b 89 usr/lib/libc/stdlib/qsort.c :(cmp(b, c) > 0 ? b : (cmp(a, c) < 0 ? a : c ));