~ubuntu-branches/ubuntu/wily/libsereal-encoder-perl/wily-proposed

« back to all changes in this revision

Viewing changes to snappy/csnappy_decompress.c

  • Committer: Package Import Robot
  • Author(s): Alexandre Mestiashvili
  • Date: 2013-05-14 13:40:56 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130514134056-rlc72xdqlq8ehbtj
Tags: 0.36-1
* Imported Upstream version 0.36
* Refreshed d/copyright to more accurately reflect the various copyright
  holders of code copied or inspired from elsewhere

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
File modified for the Linux Kernel by
32
32
Zeev Tarantov <zeev.tarantov@gmail.com>
 
33
 
 
34
File modified for Sereal by
 
35
Steffen Mueller <smueller@cpan.org>
33
36
*/
34
37
 
35
38
#include "csnappy_internal.h"
194
197
 * Note that this does not match the semantics of either memcpy()
195
198
 * or memmove().
196
199
 */
197
 
static inline void IncrementalCopy(const char *src, char *op, int len)
 
200
static INLINE void IncrementalCopy(const char *src, char *op, int len)
198
201
{
199
202
        DCHECK_GT(len, 0);
200
203
        do {
235
238
 * position 1. Thus, ten excess bytes.
236
239
 */
237
240
static const int kMaxIncrementCopyOverflow = 10;
238
 
static inline void IncrementalCopyFastPath(const char *src, char *op, int len)
 
241
static INLINE void IncrementalCopyFastPath(const char *src, char *op, int len)
239
242
{
240
243
        while (op - src < 8) {
241
244
                UnalignedCopy64(src, op);
258
261
        char *op_limit;
259
262
};
260
263
 
261
 
static inline int
 
264
static INLINE int
262
265
SAW__AppendFastPath(struct SnappyArrayWriter *this,
263
266
                    const char *ip, uint32_t len)
264
267
{
276
279
        return CSNAPPY_E_OK;
277
280
}
278
281
 
279
 
static inline int
 
282
static INLINE int
280
283
SAW__Append(struct SnappyArrayWriter *this,
281
284
            const char *ip, uint32_t len)
282
285
{
289
292
        return CSNAPPY_E_OK;
290
293
}
291
294
 
292
 
static inline int
 
295
static INLINE int
293
296
SAW__AppendFromSelf(struct SnappyArrayWriter *this,
294
297
                    uint32_t offset, uint32_t len)
295
298
{