From: Linus Torvalds on


On Sat, 6 Mar 2010, Joe Perches wrote:
>
> I believe 32 bits isn't possible.
>
> type:6
> flags:8
> width:8
> base:6
> precision:6
> qualifier:8

type: 5
flags: 7
width: 5 (make it 6 bits and signed)
base: 5
precision: 5 (make it 6 bits, and signed)
qualifier: 3

Now, admittedly, right now 'qualifier' really has to be 8, but that's just
because we use an ASCII character for it. But I don't think there are more
than 8 actual legal qualifiers. And 'base' could be just 2 bits, since
there are only a couple of legal bases, but I left room for them all
anyway.

And the other really should fit in those numbers unchanged, I think.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Linus Torvalds on


On Sat, 6 Mar 2010, Linus Torvalds wrote:

>
>
> On Sat, 6 Mar 2010, Linus Torvalds wrote:
> >
> > width: 5 (make it 6 bits and signed)
> > precision: 5 (make it 6 bits, and signed)
>
> Oh, actually, no, we do that whole left-justification with the flags, we
> don't need that signed stuff. We do need one special value for the "no
> width, no precision", though.

Btw, yeah, we do have a couple of "%.100s" etc, but we could fix those if
we really wanted to do this.

And no, I guess we don't really need to make it 32-bit. Fitting in 64 bits
would already be a big improvement over what we have now.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/