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.py510 maxstride = 5
515 strides[ndim-1] = itemsize * randrange(-maxstride, maxstride+1)
520 maxstride *= shape[i+1] if shape[i+1] else 1
522 strides[i] = itemsize * randrange(-maxstride, maxstride+1)
525 itemsize * randrange(1, maxstride+1))