This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] math: Remove const attribute from totalorder* functions


On Wed, 4 Sep 2019, Gabriel F. T. Gomes wrote:

> This commit removes the const attribute from the declarations of all
> totalorder functions, since the pointed-to data is likely to be changed
> by user code between invocations of totalorder*.

This is OK, but it would be better to replace it with __attribute_pure__ 
(the patch with that replacement is also OK, if it works).

-- 
Joseph S. Myers
joseph@codesourcery.com


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