Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
subInt example
$c
=
$g0
->
shiftRight
(
26
)
;
$g0
=
$g0
->
mask
(
0x3ffffff
)
;
$g1
=
$h1
->
addInt32
(
$c
)
;
$c
=
$g1
->
shiftRight
(
26
)
;
$g1
=
$g1
->
mask
(
0x3ffffff
)
;
$g2
=
$h2
->
addInt32
(
$c
)
;
$c
=
$g2
->
shiftRight
(
26
)
;
$g2
=
$g2
->
mask
(
0x3ffffff
)
;
$g3
=
$h3
->
addInt32
(
$c
)
;
$c
=
$g3
->
shiftRight
(
26
)
;
$g3
=
$g3
->
mask
(
0x3ffffff
)
;
$g4
=
$h4
->
addInt32
(
$c
)
->
subInt
(
1 << 26
)
;
# $mask = ($g4 >> 31) - 1; /* select h if h < p, or h + -p if h >= p */
$mask
=
(int)
(
(
$g4
->
toInt
(
)
>> 31
)
+ 1
)
;
$g0
=
$g0
->
mask
(
$mask
)
;
$g1
=
$g1
->
mask
(
$mask
)
;
$g2
=
$g2
->
mask
(
$mask
)
;
$g3
=
$g3
->
mask
(
$mask
)
;
$g4
=
$g4
->
mask
(
$mask
)
;