This commit is contained in:
powturbo
2015-07-08 16:18:13 +02:00
parent a78db35dba
commit 683a60fe45

View File

@ -25,6 +25,8 @@
#ifndef IPPB
#include <stdio.h>
#include "bitpack.h"
#include "bitutil.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunsequenced"
@ -79,6 +81,16 @@ unsigned char *bitf1pack32(unsigned *__restrict in, unsigned n, unsigned c
#undef IPPB
#undef SRC
#undef SRC1
#define IPPB( __ip,__x, __parm) as = zigzagenc32(*__ip-start); start=*__ip++
#define SRC( __ip,__x) as
#define SRC1(__ip,__x) zigzagenc32(*__ip - start)
#include __FILE__
unsigned char *bitzpack32(unsigned *__restrict in, unsigned n, unsigned char *__restrict out, unsigned start, unsigned nb) { unsigned char *pout = out+PAD8(n*nb); unsigned as; BITPACK32(in, n, nb, out, start); return pout; }
#undef IPPB
#undef SRC
#undef SRC1
//-----------------------------------------------------------------------------------------------
#pragma clang diagnostic pop
#else