Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330065
b: refs/heads/master
c: f400051
h: refs/heads/master
i:
  330063: d8d36e1
v: v3
  • Loading branch information
George Spelvin authored and Linus Torvalds committed Oct 5, 2012
1 parent 82cfde8 commit 99f3f27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb239d0a97d573150d6106a92c0641da0d03f6a1
refs/heads/master: f40005165f7f0bda6cc268bdbcaad98a8f26fb1a
14 changes: 7 additions & 7 deletions trunk/lib/vsprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,19 +180,19 @@ char *put_dec_trunc8(char *buf, unsigned r)
*buf++ = q - 10*r;
}

q = (r * 0x199a) >> 16;
*buf++ = (r - 10 * q) + '0'; /* 6 */
q = (r * 0x199a) >> 16; /* r <= 9999 */
*buf++ = (r - 10 * q) + '0';
if (q == 0)
return buf;
r = (q * 0xcd) >> 11;
*buf++ = (q - 10 * r) + '0'; /* 7 */
r = (q * 0xcd) >> 11; /* q <= 999 */
*buf++ = (q - 10 * r) + '0';
if (r == 0)
return buf;
q = (r * 0xcd) >> 11;
*buf++ = (r - 10 * q) + '0'; /* 8 */
q = (r * 0xcd) >> 11; /* r <= 99 */
*buf++ = (r - 10 * q) + '0';
if (q == 0)
return buf;
*buf++ = q + '0'; /* 9 */
*buf++ = q + '0'; /* q <= 9 */
return buf;
}

Expand Down

0 comments on commit 99f3f27

Please sign in to comment.