Searched refs:floordiv (Results 1 - 15 of 15) sorted by relevance
/third_party/python/Objects/ |
H A D | floatobject.c | 672 _float_div_mod(double vx, double wx, double *floordiv, double *mod) in _float_div_mod() argument 698 *floordiv = floor(div); in _float_div_mod() 699 if (div - *floordiv > 0.5) { in _float_div_mod() 700 *floordiv += 1.0; in _float_div_mod() 705 *floordiv = copysign(0.0, vx / wx); /* zero w/ sign of vx/wx */ in _float_div_mod() 713 double mod, floordiv; in float_divmod() local 720 _float_div_mod(vx, wx, &floordiv, &mod); in float_divmod() 721 return Py_BuildValue("(dd)", floordiv, mod); in float_divmod() 728 double mod, floordiv; in float_floor_div() local 735 _float_div_mod(vx, wx, &floordiv, in float_floor_div() [all...] |
/third_party/python/Lib/test/ |
H A D | test_abstract_numbers.py | 38 self.assertRaises(TypeError, operator.floordiv, c1, c2)
|
H A D | test_operator.py | 184 self.assertRaises(TypeError, operator.floordiv, 5) 185 self.assertRaises(TypeError, operator.floordiv, None, None) 186 self.assertEqual(operator.floordiv(5, 2), 2)
|
H A D | datetimetester.py | 21 from operator import lt, le, gt, ge, eq, ne, truediv, floordiv, mod namespace 951 self.assertRaises(ZeroDivisionError, floordiv, t, zerotd)
|
/third_party/python/Lib/ |
H A D | operator.py | 14 'delitem', 'eq', 'floordiv', 'ge', 'getitem', 'gt', 'iadd', 'iand', 83 def floordiv(a, b): function 433 __floordiv__ = floordiv
|
H A D | fractions.py | 524 __floordiv__, __rfloordiv__ = _operator_fallbacks(_floordiv, operator.floordiv) 617 # The negations cleverly convince floordiv to return the ceiling.
|
/third_party/jinja2/ |
H A D | sandbox.py | 208 "//": operator.floordiv,
|
H A D | nodes.py | 23 "//": operator.floordiv,
|
/third_party/node/deps/v8/third_party/jinja2/ |
H A D | sandbox.py | 280 "//": operator.floordiv,
|
H A D | nodes.py | 19 "//": operator.floordiv,
|
/third_party/node/tools/inspector_protocol/jinja2/ |
H A D | sandbox.py | 255 '//': operator.floordiv,
|
H A D | nodes.py | 30 '//': operator.floordiv,
|
/third_party/skia/third_party/externals/jinja2/ |
H A D | sandbox.py | 280 "//": operator.floordiv,
|
H A D | nodes.py | 19 "//": operator.floordiv,
|
/third_party/protobuf/python/google/protobuf/internal/ |
H A D | test_util.py | 760 return NonStandardInteger(operator.floordiv(self.val, y)) 802 return NonStandardInteger(operator.floordiv(y, self.val))
|
Completed in 23 milliseconds