This is related to supporting SSE 128 bit data in Perl. 32 bit Perl doesn't come with quads/Q/q pack letter. I have a C library that uses 64 bit ints. I use perl on windows. My C compiler also has no problems with 64 bit ints. Perl NVs don't loose integer precision until 2^53. 53 is not 64. What should my XS wrapper around this C library return the 64 bit ints as in 32 bit perl? There seems to be alot negativity over Math::BigInt's bloatedness. Also how to do you load packed little endian numbers into Math::BigInt, it seems bigint only knows what big endian ASCII hex is for importing numbers. The solution should be CPAN grade. Quads are very rarely used by this C library but they need to be exposed somehow for the rare case someone wants to call that function. The simplest thing is, on 32 bits, a 64 bit int is a 8 byte packed LE PV string, conversion routines warn() and pads if under 8 bytes long. On 64 bits its a IV/UV. Is this last solution the best solution?

In reply to supporting quads on 32 bit Perl by bulk88

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.