MCPcopy Create free account
hub / github.com/nodejs/node / GenerateResult

Method GenerateResult

deps/v8/tools/bigint-tester.py:214–217  ·  view source on GitHub ↗
(self, a, b)

Source from the content-addressed store, hash-verified

212class Div(BinaryOp):
213 def GetOpString(self): return "/"
214 def GenerateResult(self, a, b):
215 result = abs(a) / abs(b)
216 if (a < 0) != (b < 0): result = -result
217 return result
218 def GenerateInputLengths(self):
219 # Let the left side be longer than the right side with high probability,
220 # because that case is more interesting.

Callers

nothing calls this directly

Calls 1

absFunction · 0.50

Tested by

no test coverage detected