dsputil: Replace a LONG_MAX check with HAVE_FAST_64BIT.
authorAlex Converse <alex.converse@gmail.com>
Tue, 19 Jul 2011 00:48:45 +0000 (17:48 -0700)
committerAlex Converse <alex.converse@gmail.com>
Wed, 20 Jul 2011 17:15:57 +0000 (10:15 -0700)
libavcodec/dsputil.c

index 4b26f68..457495f 100644 (file)
@@ -185,7 +185,7 @@ static int pix_norm1_c(uint8_t * pix, int line_size)
             s += sq[pix[6]];
             s += sq[pix[7]];
 #else
-#if LONG_MAX > 2147483647
+#if HAVE_FAST_64BIT
             register uint64_t x=*(uint64_t*)pix;
             s += sq[x&0xff];
             s += sq[(x>>8)&0xff];