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

Function _Lshl

vm/ByteCodeTranslator/src/javascript/parparvm_runtime.js:3819–3823  ·  view source on GitHub ↗
(a, n)

Source from the content-addressed store, hash-verified

3817function _Lor(a, b) { a = _Lc(a); b = _Lc(b); return _LL(a.l | b.l, a.h | b.h); }
3818function _Lxor(a, b) { a = _Lc(a); b = _Lc(b); return _LL(a.l ^ b.l, a.h ^ b.h); }
3819function _Lshl(a, n) { // shift count is a Java int (Number); only low 6 bits used
3820 a = _Lc(a); n = (_LtoNum(n) | 0) & 63; if (n === 0) return a;
3821 if (n < 32) return _LL(a.l << n, (a.h << n) | (a.l >>> (32 - n)));
3822 return _LL(0, a.l << (n - 32));
3823}
3824function _Lshr(a, n) { // arithmetic right shift
3825 a = _Lc(a); n = (_LtoNum(n) | 0) & 63; if (n === 0) return a;
3826 if (n < 32) return _LL((a.l >>> n) | (a.h << (32 - n)), a.h >> n);

Callers 1

_LdivFunction · 0.85

Calls 3

_LcFunction · 0.85
_LtoNumFunction · 0.85
_LLFunction · 0.85

Tested by

no test coverage detected