Searched refs:seedPtr (Results 1 – 4 of 4) sorted by relevance
/external/zstd/programs/ |
D | datagen.c | 85 static U32 RDG_rand15Bits (U32* seedPtr) in RDG_rand15Bits() argument 87 return RDG_rand(seedPtr) & 0x7FFF; in RDG_rand15Bits() 90 static U32 RDG_randLength(U32* seedPtr) in RDG_randLength() argument 92 if (RDG_rand(seedPtr) & 7) return (RDG_rand(seedPtr) & 0xF); /* small length */ in RDG_randLength() 93 return (RDG_rand(seedPtr) & 0x1FF) + 0xF; in RDG_randLength() 97 double matchProba, const BYTE* ldt, U32* seedPtr) in RDG_genBlock() argument 106 size_t size0 = RDG_rand(seedPtr) & 3; in RDG_genBlock() 108 size0 += RDG_rand(seedPtr) & (size0-1); /* because size0 is power of 2*/ in RDG_genBlock() 115 buffPtr[pos-1] = RDG_genChar(seedPtr, ldt); in RDG_genBlock() 120 if (pos==0) buffPtr[0] = RDG_genChar(seedPtr, ldt), pos=1; in RDG_genBlock() [all …]
|
/external/lz4/programs/ |
D | datagen.c | 102 …ffer, size_t buffSize, size_t prefixSize, double matchProba, litDistribTable lt, unsigned* seedPtr) in RDG_genBlock() argument 107 U32* seed = seedPtr; in RDG_genBlock()
|
/external/zstd/tests/ |
D | zbufftest.c | 85 static unsigned int FUZ_rand(unsigned int* seedPtr) in FUZ_rand() argument 87 U32 rand32 = *seedPtr; in FUZ_rand() 91 *seedPtr = rand32; in FUZ_rand()
|
D | zstreamtest.c | 88 static U32 FUZ_rand(U32* seedPtr) in FUZ_rand() argument 91 U32 rand32 = *seedPtr; in FUZ_rand() 95 *seedPtr = rand32; in FUZ_rand()
|