Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/zlib/zutil.h

Issue 552123005: Integrate SIMD optimisations for zlib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix crc_fold_copy to work with inputs where len % 16 > 0 Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* zutil.h -- internal interface and configuration of the compression library 1 /* zutil.h -- internal interface and configuration of the compression library
2 * Copyright (C) 1995-2010 Jean-loup Gailly. 2 * Copyright (C) 1995-2010 Jean-loup Gailly.
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */ 4 */
5 5
6 /* WARNING: this file should *not* be used by applications. It is 6 /* WARNING: this file should *not* be used by applications. It is
7 part of the implementation of the compression library and is 7 part of the implementation of the compression library and is
8 subject to change. Applications should only use zlib.h. 8 subject to change. Applications should only use zlib.h.
9 */ 9 */
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 # ifndef fdopen 135 # ifndef fdopen
136 # define fdopen(fd,mode) NULL /* No fdopen() */ 136 # define fdopen(fd,mode) NULL /* No fdopen() */
137 # endif 137 # endif
138 # endif 138 # endif
139 #endif 139 #endif
140 140
141 #ifdef TOPS20 141 #ifdef TOPS20
142 # define OS_CODE 0x0a 142 # define OS_CODE 0x0a
143 #endif 143 #endif
144 144
145 #ifdef _MSC_VER
146 #define zalign(x) __declspec(align(x))
147 #else
148 #define zalign(x) __attribute__((aligned((x))))
149 #endif
150
145 #ifdef WIN32 151 #ifdef WIN32
146 # ifndef __CYGWIN__ /* Cygwin is Unix, not Win32 */ 152 # ifndef __CYGWIN__ /* Cygwin is Unix, not Win32 */
147 # define OS_CODE 0x0b 153 # define OS_CODE 0x0b
148 # endif 154 # endif
149 #endif 155 #endif
150 156
151 #ifdef __50SERIES /* Prime/PRIMOS */ 157 #ifdef __50SERIES /* Prime/PRIMOS */
152 # define OS_CODE 0x0f 158 # define OS_CODE 0x0f
153 #endif 159 #endif
154 160
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 voidpf ZLIB_INTERNAL zcalloc OF((voidpf opaque, unsigned items, 286 voidpf ZLIB_INTERNAL zcalloc OF((voidpf opaque, unsigned items,
281 unsigned size)); 287 unsigned size));
282 void ZLIB_INTERNAL zcfree OF((voidpf opaque, voidpf ptr)); 288 void ZLIB_INTERNAL zcfree OF((voidpf opaque, voidpf ptr));
283 289
284 #define ZALLOC(strm, items, size) \ 290 #define ZALLOC(strm, items, size) \
285 (*((strm)->zalloc))((strm)->opaque, (items), (size)) 291 (*((strm)->zalloc))((strm)->opaque, (items), (size))
286 #define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr)) 292 #define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr))
287 #define TRY_FREE(s, p) {if (p) ZFREE(s, p);} 293 #define TRY_FREE(s, p) {if (p) ZFREE(s, p);}
288 294
289 #endif /* ZUTIL_H */ 295 #endif /* ZUTIL_H */
OLDNEW
« third_party/zlib/fill_window_sse.c ('K') | « third_party/zlib/zlib.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698