Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DIntSliceOpTest.java126 private int sliceSize(int dataSize, int skip, int limit) { in sliceSize() method in IntSliceOpTest
133 private int sliceSize(int dataSize, int skip) { in sliceSize() method in IntSliceOpTest
144 assertEquals(sr.size(), sliceSize(data.size(), s)); in testSkipOps()
147 assertEquals(sr.size(), sliceSize(sliceSize(data.size(), s), s / 2)); in testSkipOps()
161 assertEquals(sr.size(), sliceSize(sliceSize(data.size(), s), 0, limit)); in testSkipLimitOps()
164 assertEquals(sr.size(), sliceSize(data.size(), s, limit)); in testSkipLimitOps()
176 assertEquals(sr.size(), sliceSize(data.size(), 0, limit)); in testLimitOps()
179 assertEquals(sr.size(), sliceSize(sliceSize(data.size(), 0, limit), 0, limit / 2)); in testLimitOps()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java1866 int start, end, sliceSize, len, offset; in getToomSlice() local
1886 sliceSize = (end-start) + 1; in getToomSlice()
1888 if (sliceSize <= 0) { in getToomSlice()
1894 if (start == 0 && sliceSize >= len) { in getToomSlice()
1898 int intSlice[] = new int[sliceSize]; in getToomSlice()
1899 System.arraycopy(mag, start, intSlice, 0, sliceSize); in getToomSlice()