From 6933ea371fef60ecdaef763bd44761e93e8e2ba9 Mon Sep 17 00:00:00 2001 From: x Date: Fri, 6 Jan 2017 18:10:03 +0100 Subject: [PATCH] BitUtil: c/c++ header --- bitutil.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bitutil.h b/bitutil.h index 81acd54..5b456d3 100644 --- a/bitutil.h +++ b/bitutil.h @@ -162,8 +162,9 @@ unsigned bit32( unsigned *in, unsigned n); //------------- Delta for sorted integer array ---------------------------------------------------- //-- transform sorted integer array to delta array. inc = increment: out[i] = in[i] - in[i-1] - inc -unsigned bitdelta32(unsigned *in, unsigned n, unsigned *out, unsigned start, unsigned inc); -unsigned bitdelta64(uint64_t *in, unsigned n, uint64_t *out, uint64_t start, unsigned inc); +unsigned bitdelta16(unsigned short *in, unsigned n, unsigned short *out, unsigned short start, unsigned inc); +unsigned bitdelta32(unsigned *in, unsigned n, unsigned *out, unsigned start, unsigned inc); +unsigned bitdelta64(uint64_t *in, unsigned n, uint64_t *out, uint64_t start, unsigned inc); //-- get delta maximum bit length of the non decreasing integer array. out[i] = in[i] - in[i-1] unsigned bitd32( unsigned *in, unsigned n, unsigned start);