Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 21345:
2077d6ad6078
xen-unstable date: Tue May 11 11:19:23 2010 +0100
start_extent = cmp.xchg.nr_exchanged;
end_extent = (COMPAT_ARG_XLAT_SIZE - sizeof(*nat.xchg)) /
- (((1U << __builtin_abs(order_delta)) + 1) *
+ (((1U << ABS(order_delta)) + 1) *
sizeof(*space));
if ( end_extent == 0 )
{
#define ASSERT(p) ((void)0)
#endif
+#define ABS(_x) ({ \
+ typeof(_x) __x = (_x); \
+ (__x < 0) ? -__x : __x; \
+})
+
#define SWAP(_a, _b) \
do { typeof(_a) _t = (_a); (_a) = (_b); (_b) = _t; } while ( 0 )