From 2adce12d57cd71a072084fc9fa11459316bb09b3 Mon Sep 17 00:00:00 2001 From: mapopa Date: Wed, 7 May 2014 15:14:41 +0000 Subject: [PATCH] FB_ALIGN is always defined in src/include/types_pub.h ((n+b-1)&~(b-1)) --- examples/include/align.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/examples/include/align.h b/examples/include/align.h index b3d22b2009..def4c86056 100644 --- a/examples/include/align.h +++ b/examples/include/align.h @@ -22,25 +22,5 @@ * */ -#ifdef sun -#ifdef sparc -#define FB_ALIGN(n,b) ((n + b - 1) & ~(b - 1)) -#endif -#endif - -#ifdef hpux -#define FB_ALIGN(n,b) ((n + b - 1) & ~(b - 1)) -#endif - -#ifdef _AIX -#define FB_ALIGN(n,b) ((n + b - 1) & ~(b - 1)) -#endif - -#if (defined(_MSC_VER) && defined(WIN32)) -#define FB_ALIGN(n,b) ((n + b - 1) & ~(b - 1)) -#endif - -#ifndef FB_ALIGN -#define FB_ALIGN(n,b) ((n+1) & ~1) -#endif +#define FB_ALIGN(n, b) ((n + b - 1) & ~(b - 1))