Home
last modified time | relevance | path

Searched refs:maxstride (Results 1 – 2 of 2) sorted by relevance

/external/ltp/testcases/kernel/fs/doio/
Diogen.c583 int maxstride, nstrides; in form_iorequest() local
873 maxstride = length / mult; in form_iorequest()
874 if (maxstride > Maxstrides) in form_iorequest()
875 maxstride = Maxstrides; in form_iorequest()
879 nstrides = random_range(Minstrides, maxstride, 1, &errp); in form_iorequest()
883 TagName, Minstrides, maxstride, 1); in form_iorequest()
/external/python/cpython3/Lib/test/
Dtest_buffer.py517 maxstride = 5
522 strides[ndim-1] = itemsize * randrange(-maxstride, maxstride+1)
527 maxstride *= shape[i+1] if shape[i+1] else 1
529 strides[i] = itemsize * randrange(-maxstride, maxstride+1)
532 itemsize * randrange(1, maxstride+1))