[ipxe-devel] [PATCH] Format HTTP Range with unsigned long long

Linus Lüssing linus.luessing at c0d3.blue
Wed May 24 16:42:23 UTC 2017


Hi Michael,

Thanks for the explanations!

On Wed, May 24, 2017 at 04:29:23PM +0100, Michael Brown wrote:
> We could plausibly extend format_decimal() to handle unsigned longs (%lu or
> %zu) by factoring out the negation code.  This would probably be a smaller
> overall size impact than dragging in the 64-bit division code.

So, hm, this would increase the maximum image size for sanboot/http from
2GB (2^31) to 4GB (2^32) for 32bit builds?

What size impact are we roughly talking about for the 64-bit
division code? Would it be possible to make this a configurable build
option?

Regards, Linus

PS: I was testing with the image produced via a "make
bin/undionly.kpxe" on an amd64 based system (an AMD Sempron,
8GB RAM). undionly.kpxe is always a 32bit build, right? So an
unsigned long would not be sufficient for me for images larger
than 4GB, even though my system architecture is 64bit, would it?



More information about the ipxe-devel mailing list