| OLD | NEW |
| 1 diff --git a/third_party/zlib/crc32.c b/third_party/zlib/crc32.c | 1 diff --git a/third_party/zlib/crc32.c b/third_party/zlib/crc32.c |
| 2 index 979a719..09228ed 100644 | 2 index 979a719..09228ed 100644 |
| 3 --- a/third_party/zlib/crc32.c | 3 --- a/third_party/zlib/crc32.c |
| 4 +++ b/third_party/zlib/crc32.c | 4 +++ b/third_party/zlib/crc32.c |
| 5 @@ -28,6 +28,8 @@ | 5 @@ -28,6 +28,8 @@ |
| 6 # endif /* !DYNAMIC_CRC_TABLE */ | 6 # endif /* !DYNAMIC_CRC_TABLE */ |
| 7 #endif /* MAKECRCH */ | 7 #endif /* MAKECRCH */ |
| 8 | 8 |
| 9 +#include "deflate.h" | 9 +#include "deflate.h" |
| 10 +#include "x86.h" | 10 +#include "x86.h" |
| (...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1172 + x86_cpu_has_sse42 && | 1172 + x86_cpu_has_sse42 && |
| 1173 + x86_cpu_has_pclmulqdq; | 1173 + x86_cpu_has_pclmulqdq; |
| 1174 + return TRUE; | 1174 + return TRUE; |
| 1175 +} | 1175 +} |
| 1176 +#endif /* _MSC_VER */ | 1176 +#endif /* _MSC_VER */ |
| 1177 diff --git a/third_party/zlib/x86.h b/third_party/zlib/x86.h | 1177 diff --git a/third_party/zlib/x86.h b/third_party/zlib/x86.h |
| 1178 new file mode 100644 | 1178 new file mode 100644 |
| 1179 index 0000000..ac3d180 | 1179 index 0000000..ac3d180 |
| 1180 --- /dev/null | 1180 --- /dev/null |
| 1181 +++ b/third_party/zlib/x86.h | 1181 +++ b/third_party/zlib/x86.h |
| 1182 @@ -0,0 +1,13 @@ | 1182 @@ -0,0 +1,15 @@ |
| 1183 +/* x86.h -- check for x86 CPU features | 1183 +/* x86.h -- check for x86 CPU features |
| 1184 +* Copyright (C) 2013 Intel Corporation Jim Kukunas | 1184 +* Copyright (C) 2013 Intel Corporation Jim Kukunas |
| 1185 +* For conditions of distribution and use, see copyright notice in zlib.h | 1185 +* For conditions of distribution and use, see copyright notice in zlib.h |
| 1186 +*/ | 1186 +*/ |
| 1187 + | 1187 + |
| 1188 +#ifndef X86_H | 1188 +#ifndef X86_H |
| 1189 +#define X86_H | 1189 +#define X86_H |
| 1190 + | 1190 + |
| 1191 +#include "zlib.h" |
| 1192 + |
| 1191 +extern int x86_cpu_enable_simd; | 1193 +extern int x86_cpu_enable_simd; |
| 1192 + | 1194 + |
| 1193 +void x86_check_features(void); | 1195 +void x86_check_features(void); |
| 1194 + | 1196 + |
| 1195 +#endif /* X86_H */ | 1197 +#endif /* X86_H */ |
| 1196 -- | 1198 diff --git a/third_party/zlib/mozzconf.h b/third_party/zlib/mozzconf.h |
| 1199 index 06918bc..10aca44 100644 |
| 1200 --- a/third_party/zlib/mozzconf.h |
| 1201 +++ b/third_party/zlib/mozzconf.h |
| 1202 @@ -169,6 +169,14 @@ |
| 1203 #define inflateResetKeep MOZ_Z_inflateResetKeep |
| 1204 #define gzopen_w MOZ_Z_gzopen_w |
| 1205 |
| 1206 +/* Chromium-specific modifications */ |
| 1207 +#define copy_with_crc MOZ_Z__copy_with_crc |
| 1208 +#define crc_finalize MOZ_Z__crc_finalize |
| 1209 +#define crc_reset MOZ_Z__crc_reset |
| 1210 +// read_buf used to be local, but this was changed in simd.patch. |
| 1211 +#define read_buf MOZ_Z__read_buf |
| 1212 +#define x86_check_features MOZ_Z__x86_check_features |
| 1213 + |
| 1214 /* Mangle Byte types except on Mac. */ |
| 1215 #if !defined(__MACTYPES__) |
| 1216 #define Byte MOZ_Z_Byte |
| 1217 -- |
| 1197 2.7.4 | 1218 2.7.4 |
| 1198 | 1219 |
| OLD | NEW |