[LLVMdev] APInt::sdivrem error?

Caldarale, Charles R Chuck.Caldarale at unisys.com
Sun May 20 19:49:13 PDT 2012


> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Preston Briggs
> Subject: [LLVMdev] APInt::sdivrem error?

> APInt q(bits, 1), r(bits, 1);

The APInt constructor has three arguments, the last one being whether or not the value is to be treated as signed.  It defaults to false, as you appear to have just verified.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.





More information about the llvm-dev mailing list