44
44
#define ALIGN_UP(addr, align) \
45
45
((addr + (typeof (addr)) align - 1) & ~((typeof (addr)) align - 1))
46
48
#define ARRAY_SIZE(array) (sizeof (array) / sizeof (array[0]))
47
49
#define COMPILE_TIME_ASSERT(cond) switch (0) { case 1: case !(cond): ; }
49
#define grub_dprintf(condition, fmt, args...) grub_real_dprintf(__FILE__, __LINE__, condition, fmt, ## args)
51
#define grub_dprintf(condition, fmt, args...) grub_real_dprintf(GRUB_FILE, __LINE__, condition, fmt, ## args)
50
52
/* XXX: If grub_memmove is too slow, we must implement grub_memcpy. */
51
53
#define grub_memcpy(d,s,n) grub_memmove ((d), (s), (n))