Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Module for 128-bit integer math?

by Corion (Patriarch)
on Feb 06, 2011 at 11:40 UTC ( [id://886505]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Module for 128-bit integer math?
in thread Module for 128-bit integer math?

You could try to go down the interesting route of compiling a Perl with an IV size of 128 bit, but that'll likely make the XS libraries crash and burn as they likely suppose that sizeof(void *) == sizeof(int) == sizeof(IV). But it might be worth a try to just see whether Perl compiles and tests OK with an enlarged IV.

Replies are listed 'Best First'.
Re^4: Module for 128-bit integer math?
by BrowserUk (Patriarch) on Feb 06, 2011 at 11:53 UTC

    I don't think that would work because there are no 128-bit native C data types in the compiler.

    The support is via the XMM registers, and they require special treatment.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Hey, if there's a developer version of GCC that does handle 128-bit integers like salva mentions down below in 887024 then could this work? Or likely to be too experimental or still too many other problems?

      Elda Taluta; Sarks Sark; Ark Arks

        I've read and responded to salva's very useful post.

        Are we done now?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://886505]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-19 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found