This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix undefined behaviour in lrint,llrint.


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).

Craig


Patch checked in. Thanks Craig.


-- Jeff J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]