1
0
forked from 0ad/0ad

final sync with work - add VECTOR_ALIGNED, fix wsdl to match new SDL include path

This was SVN commit r10926.
This commit is contained in:
janwas 2012-01-18 15:36:44 +00:00
parent b928b334b3
commit 8099388bec
2 changed files with 3 additions and 2 deletions

View File

@ -34,6 +34,7 @@ inline size_t Align(size_t n)
//
static const size_t vectorSize = 16;
#define VECTOR_ALIGNED(type) ALIGNED(type, 16) // ALIGNED() requires a literal; keep in sync with vectorSize
#define ASSERT_VECTOR_MULTIPLE(size)\
ASSERT(IsAligned(size, vectorSize))
@ -48,7 +49,7 @@ static const size_t vectorSize = 16;
//
static const size_t cacheLineSize = 64; // (L2)
# define CACHE_ALIGNED(type) ALIGNED(type, 64) // ALIGNED() requires a literal; keep in sync with cacheLineSize
#define CACHE_ALIGNED(type) ALIGNED(type, 64) // ALIGNED() requires a literal; keep in sync with cacheLineSize

View File

@ -30,7 +30,7 @@
#include "lib/lib_api.h"
#include "lib/byte_order.h"
#ifndef WSDL_NO_KEYSYM
# include "SDL_keysym.h"
# include "SDL/SDL_keysym.h"
#endif
typedef u8 Uint8;