Home
last modified time | relevance | path

Searched refs:maxvalues (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_audioop.py22 maxvalues = {w: (1 << (8 * w - 1)) - 1 for w in (1, 2, 4)} variable
47 self.assertEqual(audioop.max(p(maxvalues[w]), w), maxvalues[w])
58 self.assertEqual(audioop.minmax(p(maxvalues[w]), w),
59 (maxvalues[w], maxvalues[w]))
63 (minvalues[w], maxvalues[w]))
71 maxvalues[w] - minvalues[w])
80 self.assertEqual(audioop.avg(p(maxvalues[w], maxvalues[w]), w),
81 maxvalues[w])
103 self.assertAlmostEqual(audioop.rms(p(maxvalues[w]) * 5, w),
104 maxvalues[w], delta=1)
[all …]
/external/python/cpython3/Lib/test/
Dtest_audioop.py13 maxvalues = {w: (1 << (8 * w - 1)) - 1 for w in (1, 2, 3, 4)} variable
42 self.assertEqual(audioop.max(p(maxvalues[w]), w), maxvalues[w])
57 self.assertEqual(audioop.minmax(p(maxvalues[w]), w),
58 (maxvalues[w], maxvalues[w]))
62 (minvalues[w], maxvalues[w]))
72 maxvalues[w] - minvalues[w])
83 self.assertEqual(audioop.avg(p(maxvalues[w], maxvalues[w]), w),
84 maxvalues[w])
111 self.assertAlmostEqual(audioop.rms(p(maxvalues[w]) * 5, w),
112 maxvalues[w], delta=1)
[all …]
/external/python/cpython2/Modules/
D_hotshot.c606 const int maxvalues[] = {-1, 1, 3, 7, 15, 31, 63, 127}; in pack_modified_packed_int() local
609 int partial = value & maxvalues[bits]; in pack_modified_packed_int()