MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / _Lneg

Function _Lneg

vm/ByteCodeTranslator/src/javascript/parparvm_runtime.js:3744–3744  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

3742 return _LL((c16 << 16) | c00, (c48 << 16) | c32);
3743}
3744function _Lneg(a) { a = _Lc(a); return _Leq(a, _LMIN) ? _LMIN : _Ladd(_LL(~a.l, ~a.h), _L1); }
3745function _Lsub(a, b) {
3746 // a - b = a + ~b + 1, inlined as a single 16-bit add chain (one allocation
3747 // instead of _Lneg+_Ladd's two) -- LSUB is hot in timing/loops.

Callers 4

_LfromNumberFunction · 0.85
_LdivFunction · 0.85
_LtoStrFunction · 0.85

Calls 4

_LcFunction · 0.85
_LeqFunction · 0.85
_LaddFunction · 0.85
_LLFunction · 0.85

Tested by

no test coverage detected