]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
removed macro CLAMP from decodecorpus
authorYann Collet <cyan@fb.com>
Sat, 17 Jun 2017 01:16:27 +0000 (18:16 -0700)
committerYann Collet <cyan@fb.com>
Sat, 17 Jun 2017 01:16:27 +0000 (18:16 -0700)
never used,
and would duplicate with CLAMP from zstd_compress.c

tests/decodecorpus.c

index f7b3c854fdb2526c2beb678aafdf9ce7fcbb7232..940e3d8a101df6f43a632acdde2a5ecef1df8b6f 100644 (file)
@@ -73,8 +73,6 @@ static clock_t clockSpan(clock_t cStart)
 /*-*******************************************************
 *  Random function
 *********************************************************/
-#define CLAMP(x, a, b) ((x) < (a) ? (a) : ((x) > (b) ? (b) : (x)))
-
 static unsigned RAND(unsigned* src)
 {
 #define RAND_rotl32(x,r) ((x << r) | (x >> (32 - r)))