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

Function _Lc

vm/ByteCodeTranslator/src/javascript/parparvm_runtime.js:3722–3728  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

3720}
3721function _LtoNumber(a) { return a.h * _TWO_PWR_32 + (a.l >>> 0); }
3722function _Lc(x) {
3723 if (x && x.__l === 1) return x;
3724 if (x == null) return _L0;
3725 if (typeof x === 'number') return _LfromNumber(x);
3726 if (typeof x === 'bigint') return _LfromNumber(Number(x)); // defensive legacy
3727 return _L0;
3728}
3729function _LtoNum(x) { return (x && x.__l === 1) ? _LtoNumber(x) : Number(x); } // Long|Number -> Number
3730function _LisZero(a) { return a.h === 0 && a.l === 0; }
3731function _LisNeg(a) { return a.h < 0; }

Callers 15

_LaddFunction · 0.85
_LnegFunction · 0.85
_LsubFunction · 0.85
_LmulFunction · 0.85
_LcmpFunction · 0.85
_LdivFunction · 0.85
_LremFunction · 0.85
_LandFunction · 0.85
_LorFunction · 0.85
_LxorFunction · 0.85
_LshlFunction · 0.85
_LshrFunction · 0.85

Calls 2

_LfromNumberFunction · 0.85
NumberClass · 0.50

Tested by

no test coverage detected