#8372 NORM 8.2.0 (: Remove numpy usage from the shell

Zarro Boogs per Child bugtracker at laptop.org
Tue Sep 9 15:35:55 EDT 2008


#8372: Remove numpy usage from the shell
----------------------------+-----------------------------------------------
   Reporter:  marco         |       Owner:                      
       Type:  defect        |      Status:  new                 
   Priority:  normal        |   Milestone:  8.2.0 (was Update.2)
  Component:  not assigned  |     Version:  not specified       
 Resolution:                |    Keywords:  r?                  
Next_action:  review        |    Verified:  0                   
  Blockedby:                |    Blocking:                      
----------------------------+-----------------------------------------------

Comment(by bernie):

 In all loops:

 56    for (i = rect->x; i < rect->x + rect->width; i++) {
 57        for (k = rect->y; i < rect->y + rect->width; i++) {

 The second line s/k/i/g and s/width/height/.

 Also, swap the inner and outer loop.  This hopefully lets the compiler
 simplify the calculations for the array subscriptions to a linear
 increment.

-- 
Ticket URL: <http://dev.laptop.org/ticket/8372#comment:2>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list