Searched refs:exp_hash (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Modules/_decimal/tests/ |
D | bignum.py | 26 exp_hash = pow(10, exp, _PyHASH_MODULUS) 28 exp_hash = pow(_PyHASH_10INV, -exp, _PyHASH_MODULUS) 29 hash_ = coeff * exp_hash % _PyHASH_MODULUS
|
/external/tensorflow/tensorflow/core/grappler/graph_analyzer/ |
D | sig_node_test.cc | 360 size_t exp_hash = 123; // The 0th hash is the starting point. in TEST_F() local 367 CombineHash(10, &exp_hash); in TEST_F() 368 CombineHash(comm_hash, &exp_hash); in TEST_F() 373 CombineHash(20, &exp_hash); in TEST_F() 374 CombineHash(comm_hash, &exp_hash); in TEST_F() 380 CombineHash(30, &exp_hash); in TEST_F() 381 CombineHash(comm_hash, &exp_hash); in TEST_F() 383 EXPECT_THAT(GetTopoHash(2, &sn1), Eq(exp_hash)); in TEST_F()
|
/external/python/cpython3/Modules/_decimal/ |
D | _decimal.c | 4531 mpd_t *exp_hash = NULL; in _dec_hash() local 4553 exp_hash = mpd_qnew(); in _dec_hash() 4554 if (exp_hash == NULL) { in _dec_hash() 4570 mpd_qpowmod(exp_hash, &ten, tmp, &p, &maxctx, &status); in _dec_hash() 4575 mpd_qpowmod(exp_hash, &inv10_p, tmp, &p, &maxctx, &status); in _dec_hash() 4589 mpd_qmul(tmp, tmp, exp_hash, &maxctx, &status); in _dec_hash() 4609 if (exp_hash) mpd_del(exp_hash); in _dec_hash()
|
/external/python/cpython3/Lib/ |
D | _pydecimal.py | 962 exp_hash = pow(10, self._exp, _PyHASH_MODULUS) 964 exp_hash = pow(_PyHASH_10INV, -self._exp, _PyHASH_MODULUS) 965 hash_ = int(self._int) * exp_hash % _PyHASH_MODULUS
|