tests: Extract ALIGN macro into a common header

Makes for a little bit less code duplication, especially since
it will be used from more callers in the future.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Brad Volkin <bradley.d.volkin@intel.com>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
Tvrtko Ursulin
2014-04-23 16:07:55 +01:00
committed by Thomas Wood
parent e32664c8ee
commit dc14bf455d
6 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -4,10 +4,10 @@
#include "media_fill.h"
#include "gen7_media.h"
#include "intel_reg.h"
#include "drmtest.h"
#include <assert.h>
#define ALIGN(x, y) (((x) + (y)-1) & ~((y)-1))
static const uint32_t media_kernel[][4] = {
{ 0x00400001, 0x20200231, 0x00000020, 0x00000000 },