]> granicus.if.org Git - libjpeg-turbo/commitdiff
Oops. OS X doesn't define __WORDSIZE unless you include stdint.h, so apparently...
authorDRC <dcommander@users.sourceforge.net>
Wed, 22 Apr 2015 08:43:04 +0000 (08:43 +0000)
committerDRC <dcommander@users.sourceforge.net>
Wed, 22 Apr 2015 08:43:04 +0000 (08:43 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1541 632fc199-4ca6-4c93-a231-07263d6284db

ChangeLog.txt
jchuff.c
jdhuff.c

index 139bcca56680c17cb07418070bb7788d7043acad..3711188c101b37da1ad8efdaf2b6b7dd43cbd328 100644 (file)
@@ -32,6 +32,11 @@ SIMD-enabled libjpeg-turbo MIPS build was executed with the -nosmooth option on
 a MIPS machine that lacked DSPr2 support.  The MIPS SIMD routines for h2v1 and
 h2v2 merged upsampling were not properly checking for the existence of DSPr2.
 
+[6] Performance has been improved significantly on 64-bit Mac platforms
+(particularly compression performance.)  Due to an oversight, the 64-bit
+version of the accelerated Huffman codec was not being compiled in when
+libjpeg-turbo was built on OS X.  Oops.
+
 
 1.4.0
 =====
index a5c0a1fda33612b12daa78904e9409287549f8f8..fe03591d633e1a3c731480a806dfd3854d07540e 100644 (file)
--- a/jchuff.c
+++ b/jchuff.c
@@ -21,6 +21,7 @@
 #include "jpeglib.h"
 #include "jchuff.h"             /* Declarations shared with jcphuff.c */
 #include <limits.h>
+#include <stdint.h>
 
 /*
  * NOTE: If USE_CLZ_INTRINSIC is defined, then clz/bsr instructions will be
@@ -376,6 +377,10 @@ dump_buffer (working_state * state)
   } \
 }
 
+#if !defined(_WIN32) && !defined(__WORDSIZE)
+#error __WORDSIZE is not defined
+#endif
+
 #if __WORDSIZE==64 || defined(_WIN64)
 
 #define EMIT_BITS(code, size) { \
index 7dc132896965b1e28ea80b9d15cf81c2e695d35e..583ee114d4c367e9a11df303edc897141e264981 100644 (file)
--- a/jdhuff.c
+++ b/jdhuff.c
@@ -22,6 +22,7 @@
 #include "jdhuff.h"             /* Declarations shared with jdphuff.c */
 #include "jpegcomp.h"
 #include "jstdhuff.c"
+#include <stdint.h>
 
 
 /*
@@ -419,6 +420,10 @@ jpeg_fill_bit_buffer (bitread_working_state * state,
   } \
 }
 
+#if !defined(_WIN32) && !defined(__WORDSIZE)
+#error __WORDSIZE is not defined
+#endif
+
 #if __WORDSIZE == 64 || defined(_WIN64)
 
 /* Pre-fetch 48 bytes, because the holding register is 64-bit */