Changeset 3444 for proto/Compiler


Ignore:
Timestamp:
Sep 7, 2013, 5:33:52 PM (6 years ago)
Author:
cameron
Message:

Change hard constant 127 to BLOCK_SIZE-1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/CCGO_While.py

    r3440 r3444  
    9292          dpth = self.carryInfoSet.whileDepth(blk)
    9393          if dpth == 0:
    94             shift127 = mkast.call("bitblock::srli<127>", [carry_out_expr])
     94            shift127 = mkast.call("bitblock::srli<BLOCK_SIZE-1>", [carry_out_expr])
    9595            return mkast.assign(mkast.var("Carry%i" % op_no), shift127)
    9696          elif dpth == 1:
Note: See TracChangeset for help on using the changeset viewer.