edA-qa mort-ora-y
2013-May-04 11:28 UTC
[LLVMdev] A C function which accepts a large integer type?
Is there anyway in C I can write a function which accepts a very large integer? That is, say in LLVM I'm using a 256bit integer, is it possible to write a C function which accepts that value? I understand it wouldn't be standard C, or may not even be pretty, but that doesn't matter. -- edA-qa mort-ora-y -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Sign: Please digitally sign your emails. Encrypt: I'm also happy to receive encrypted mail. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130504/a6579676/attachment.sig>
Óscar Fuentes
2013-May-04 11:51 UTC
[LLVMdev] A C function which accepts a large integer type?
edA-qa mort-ora-y <eda-qa at disemia.com> writes:> Is there anyway in C I can write a function which accepts a very large > integer? That is, say in LLVM I'm using a 256bit integer, is it possible > to write a C function which accepts that value? > > I understand it wouldn't be standard C, or may not even be pretty, but > that doesn't matter.What's wrong with passing the address of the integer?
edA-qa mort-ora-y
2013-May-04 14:37 UTC
[LLVMdev] A C function which accepts a large integer type?
On 04/05/13 13:51, Óscar Fuentes wrote:> What's wrong with passing the address of the integer?Yes, that idea came to me also shortly after pressing "Send". ;) I assume the data is simply ordered like a native integer. So on little-endian it is lowest byte first. -- edA-qa mort-ora-y -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Sign: Please digitally sign your emails. Encrypt: I'm also happy to receive encrypted mail. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130504/ae19b2ce/attachment.sig>
Seemingly Similar Threads
- [LLVMdev] A C function which accepts a large integer type?
- [LLVMdev] A C function which accepts a large integer type?
- [LLVMdev] A C function which accepts a large integer type?
- [LLVMdev] A C function which accepts a large integer type?
- [LLVMdev] UNREACHABLE executed at MCJIT.cpp:322!