Skip to content

Commit

Permalink
FIX: issue #28
Browse files Browse the repository at this point in the history
  • Loading branch information
dockimbel committed May 5, 2011
1 parent 93aedeb commit 4b9004d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion red-system/targets/IA32.r
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,10 @@ make target-class [
* [
switch b [
imm [
either c: power-of-2? arg2 [ ;-- trivial optimization for b=2^n
either all [
not zero? arg2
c: power-of-2? arg2 ;-- trivial optimization for b=2^n
][
either width = 1 [
emit #{C0E0} ;-- SHL al, log2(b) ; 8-bit unsigned
][
Expand Down

0 comments on commit 4b9004d

Please sign in to comment.