mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 11:29:24 +02:00
* forgotten commit of r3566
git-svn-id: trunk@3569 -
This commit is contained in:
parent
1e3352a350
commit
f27fa0d24f
@ -958,7 +958,7 @@ implementation
|
||||
{ division by 1 returns result }
|
||||
if a = 1 then
|
||||
op:=OP_NONE
|
||||
else if ispowerof2(int64(a), powerval) then
|
||||
else if ispowerof2(int64(a), powerval) and not(cs_check_overflow in aktlocalswitches) then
|
||||
begin
|
||||
a := powerval;
|
||||
op:= OP_SHR;
|
||||
@ -976,7 +976,7 @@ implementation
|
||||
else
|
||||
if a=0 then
|
||||
op:=OP_MOVE
|
||||
else if ispowerof2(int64(a), powerval) then
|
||||
else if ispowerof2(int64(a), powerval) and not(cs_check_overflow in aktlocalswitches) then
|
||||
begin
|
||||
a := powerval;
|
||||
op:= OP_SHL;
|
||||
|
Loading…
Reference in New Issue
Block a user