Sign in
webkit
/
WebKit
/
919aeb989a73073e2f1d75e53d7d882b3cc61ca8
/
.
/
PerformanceTests
/
BigIntBench
/
big-int-simple-rshift.js
blob: a385fe67114cf9c38b1f785d6c3a2d8e1d5e759d [
file
] [
log
] [
blame
]
function
bigInt
(
a
,
b
)
{
let c
=
a
>>
b
;
return
(
a
>>
c
)
-
b
;
}
noInline
(
bigInt
);
for
(
let i
=
0
;
i
<
100000
;
i
++)
{
bigInt
(
0b1111n
,
2n
);
}
let out
;
for
(
let i
=
0
;
i
<
100000
;
i
++)
{
out
=
bigInt
(
0xffffffffffffffffffn
,
64n
);
}