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

Method GenerateResult

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

Source from the content-addressed store, hash-verified

225class Mod(Div): # Sharing GenerateInputLengths.
226 def GetOpString(self): return "%"
227 def GenerateResult(self, a, b):
228 result = a % b
229 if a < 0 and result > 0:
230 result -= abs(b)
231 if a > 0 and result < 0:
232 result += abs(b)
233 return result
234
235class Shl(BinaryOp):
236 def GetOpString(self): return "<<"

Callers

nothing calls this directly

Calls 1

absFunction · 0.50

Tested by

no test coverage detected