Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Int128 #44

Open
eschnett opened this issue Nov 22, 2015 · 0 comments
Open

Int128 #44

eschnett opened this issue Nov 22, 2015 · 0 comments

Comments

@eschnett
Copy link
Contributor

The documentation says:

Int128/Uint128: presumably similar to Complex128 (encode as pair of Uint64). The holdup: is the sign bit portable?

HDF5 allows defining arbitrary integer datatypes by specifying their number of bits. This would seem to be the most natural approach.

Otherwise, a similarly "natural" approach would be to manually decompose them into their lower and upper 64 bits, and storing these as Uint64 and Int64, respectively. (Uint128 is then stored as two UInt64.) This is portable; there is no computing architecture today that deviates from the signed two's complement representation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants