/ Check-in [ecd9d3f9]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Clean up some obsolete "register" declarations in printf.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ecd9d3f9453be0bb8e312d8027fd1a9e55882f36
User & Date: drh 2014-03-17 15:06:57
Context
2014-03-19
20:01
Avoid some unnecessary calls to sqlite3VdbeRecordUnpack() that were being made when merging data from two or more temp files together in vdbesort.c check-in: 707ea170 user: dan tags: trunk
2014-03-18
15:30
Experiments with the optimization of ORDER BY and GROUP BY clauses. check-in: b1509025 user: drh tags: orderby-planning
2014-03-17
15:06
Clean up some obsolete "register" declarations in printf.c. check-in: ecd9d3f9 user: drh tags: trunk
14:24
Performance enhancements and size reduction for sqlite3VXPrintf() check-in: eb071eb5 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/printf.c.

   402    402             if( x>=4 || (longvalue/10)%10==1 ){
   403    403               x = 0;
   404    404             }
   405    405             *(--bufpt) = zOrd[x*2+1];
   406    406             *(--bufpt) = zOrd[x*2];
   407    407           }
   408    408           {
   409         -          register const char *cset;      /* Use registers for speed */
   410         -          register int base;
   411         -          cset = &aDigits[infop->charset];
   412         -          base = infop->base;
          409  +          const char *cset = &aDigits[infop->charset];
          410  +          u8 base = infop->base;
   413    411             do{                                           /* Convert to ascii */
   414    412               *(--bufpt) = cset[longvalue%base];
   415    413               longvalue = longvalue/base;
   416    414             }while( longvalue>0 );
   417    415           }
   418    416           length = (int)(&zOut[nOut-1]-bufpt);
   419    417           for(idx=precision-length; idx>0; idx--){