MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fill_array32

Function fill_array32

app/redis-6.2.6/deps/jemalloc/test/src/SFMT.c:551–559  ·  view source on GitHub ↗

* This function generates pseudorandom 32-bit integers in the * specified array[] by one call. The number of pseudorandom integers * is specified by the argument size, which must be at least 624 and a * multiple of four. The generation by this function is much faster * than the following gen_rand function. * * For initialization, init_gen_rand or init_by_array must be called * before the f

Source from the content-addressed store, hash-verified

549 * returns the pointer to the aligned memory block.
550 */
551void fill_array32(sfmt_t *ctx, uint32_t *array, int size) {
552 assert(ctx->initialized);
553 assert(ctx->idx == N32);
554 assert(size % 4 == 0);
555 assert(size >= N32);
556
557 gen_rand_array(ctx, (w128_t *)array, size / 4);
558 ctx->idx = N32;
559}
560#endif
561
562/**

Callers 2

SFMT.cFile · 0.85
TEST_BEGINFunction · 0.85

Calls 1

gen_rand_arrayFunction · 0.70

Tested by

no test coverage detected