aboutsummaryrefslogtreecommitdiff
path: root/simd
diff options
context:
space:
mode:
authordcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db>2010-02-26 23:01:19 +0000
committerdcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db>2010-02-26 23:01:19 +0000
commitbfee2b39a07085e4e2a36bfd581b00d74d6a96b4 (patch)
tree0b90c4ae2be5d6da2ea64074ce32204f1b106dea /simd
parent29c4e4ee127ad984ba0fe38c5442b0a9048049b8 (diff)
Bleepin' Windows uses LLP64, not LP64
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@158 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'simd')
-rw-r--r--simd/jsimd_x86_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/simd/jsimd_x86_64.c b/simd/jsimd_x86_64.c
index 0da564c..3437a9a 100644
--- a/simd/jsimd_x86_64.c
+++ b/simd/jsimd_x86_64.c
@@ -24,7 +24,7 @@
* In the PIC cases, we have no guarantee that constants will keep
* their alignment. This macro allows us to verify it at runtime.
*/
-#define IS_ALIGNED(ptr, order) (((unsigned long)ptr & ((1 << order) - 1)) == 0)
+#define IS_ALIGNED(ptr, order) (((size_t)ptr & ((1 << order) - 1)) == 0)
#define IS_ALIGNED_SSE(ptr) (IS_ALIGNED(ptr, 4)) /* 16 byte alignment */