Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/pure-cfg/src/compiler/mid-to-low/mid-to-low.sml
ViewVC logotype

Diff of /branches/pure-cfg/src/compiler/mid-to-low/mid-to-low.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 892, Wed Apr 20 15:11:31 2011 UTC revision 893, Wed Apr 20 16:14:07 2011 UTC
# Line 187  Line 187 
187            val offset' = DstIL.Var.new ("offset", DstTy.intTy)            val offset' = DstIL.Var.new ("offset", DstTy.intTy)
188            val t = DstIL.Var.new ("t", DstTy.intTy)            val t = DstIL.Var.new ("t", DstTy.intTy)
189            val code =            val code =
190                  imul(offp, stride', t) ::                  iadd(offp, offset', t) ::
                 ilit (stride', stride) ::  
                 iadd(t, offset', ix) ::  
191                  ilit (offset', offset) ::                  ilit (offset', offset) ::
192                    imul(t, stride', ix) ::
193                    ilit (stride', stride) ::
194                  code                  code
195            in            in
196              (offp, code)              (offp, code)
# Line 203  Line 203 
203     *     *
204     * the address is given by     * the address is given by
205     *     *
206     *    base + stride * (offset + i_1 + N_1 * (i_2 + N_2 * (... + N_{d-1} * i_d) ...))     *    base + offset + stride * (i_1 + N_1 * (i_2 + N_2 * (... + N_{d-1} * i_d) ...))
207     *     *
208     * where     * where
209     *    base    -- base address of the image data     *    base    -- base address of the image data

Legend:
Removed from v.892  
changed lines
  Added in v.893

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0