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

Function _Lshr

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

Source from the content-addressed store, hash-verified

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);
3827 return _LL(a.h >> (n - 32), a.h >= 0 ? 0 : -1);
3828}
3829function _Lushr(a, n) { // logical right shift
3830 a = _Lc(a); n = (_LtoNum(n) | 0) & 63; if (n === 0) return a;
3831 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