MCPcopy Create free account
hub / github.com/numpy/numpy / test_shr_128

Function test_shr_128

numpy/core/tests/test_extint128.py:162–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160
161
162def test_shr_128():
163 with exc_iter(INT128_VALUES) as it:
164 for a, in it:
165 if a < 0:
166 b = -((-a) >> 1)
167 else:
168 b = a >> 1
169 c = mt.extint_shr_128(a)
170 if b != c:
171 assert_equal(c, b)
172
173
174def test_gt_128():

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
exc_iterFunction · 0.85

Tested by

no test coverage detected