[PATCH] Fix undefined behaviour in lrint,llrint.
Tue Aug 3 20:21:00 GMT 2010
On 07/26/2010 07:59 PM, Howland Craig D (Craig) wrote:
> As I had pointed out in the email thread concerning (possible) undefined
> shift behavior in lround and llround
> (http://sourceware.org/ml/newlib/2010/msg00437.html), lrint and llrint
> both have the same potential issue. Attached is a patch--based on
> Dave's edits of lround--that fixes the problem. The patch also corrects
> a minor typo in the comments for the previous lround and llround edits.
> Change log entry in the second attached file (since my mailer typically
> mangles them when in the email body).
Patch checked in. Thanks Craig.
-- Jeff J.
More information about the Newlib