mirror of /home/gitosis/repositories/libowfat.git
removed div with a shift
This commit is contained in:
parent
b7517067cb
commit
88192569ba
|
@ -3,7 +3,7 @@
|
|||
unsigned int fmt_8long(char *dest,unsigned long i) {
|
||||
register unsigned long len,tmp;
|
||||
/* first count the number of bytes needed */
|
||||
for (len=1, tmp=i; tmp>7; ++len) tmp/=8;
|
||||
for (len=1, tmp=i; tmp>7; ++len) tmp>>=3;
|
||||
if (dest)
|
||||
for (tmp=i, dest+=len; ; ) {
|
||||
*--dest = (tmp&7)+'0';
|
||||
|
|
Loading…
Reference in New Issue