[LLVMdev] A C function which accepts a large integer type?

Duncan Sands baldrick at free.fr
Sat May 4 08:09:15 PDT 2013


On 04/05/13 16:57, edA-qa mort-ora-y wrote:
> On 04/05/13 16:50, Duncan Sands wrote:
>> correct.  Things are a little more complicated if the integer size is not a
>> multiple of 8, but I don't think you are interested in this case.
>
> Actually I would also like to know that case (as I support odd sizes).
> If this is too complicated though I would just extend them to the next
> power of 2 before calling the function.

IIRC, they are extended to the nearest multiple of 8 bits by adding bits with
an unspecified value, then the extended integer is stored.

Ciao, Duncan.



More information about the llvm-dev mailing list