Per Hedbor wrote:
>It would also break hstring reading rather badly, so you would still
>need the functions to read unsigned numbers internally.

>Also, with native integers, as it turns out, it's fairly equal on
>x86_64 at least, where the integer operations are inlined.

>Just add another function to read signed integers.

Shall we rename the read_int* to read_uint* then?

>And as for byteorder, just add a switch to switch byteorder if the
>number of functions needs to be kept down for some reason.

Well, since IOBuffer is for efficiency and not for beauty, I guess
it does not matter a lot if there are few or a lot of functions.  Whatever
is most efficient counts here, I'd say.
-- 
Stephen.
            • ... Arne Goedeke
            • ... Per Hedbor
            • ... Arne Goedeke
            • ... Per Hedbor
            • ... Stephen R. van den Berg
            • ... Stephen R. van den Berg
            • ... Stephen R. van den Berg
            • ... Per Hedbor
            • ... Stephen R. van den Berg
            • ... Per Hedbor
            • ... Stephen R. van den Berg
            • ... Stephen R. van den Berg
            • ... Per Hedbor
            • ... Per Hedbor
            • ... Per Hedbor
            • ... Arne Goedeke
            • ... Stephen R. van den Berg
    • ... Chris Angelico
      • ... Stephen R. van den Berg
        • ... Chris Angelico
  • Re:... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum

Reply via email to