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: [PATCH1/2] Improve performance of sincosf


On Tue, 26 Jun 2018, Wilco Dijkstra wrote:

> +/* New sincosf.  */

Comments describing something as new are never appropriate; they'll 
always become out of date.

> +extern sincos_t sincosf_table[2] attribute_hidden;

I'd expect this array, and thus all pointers to it, to be const; any 
writable static / global data is suspect without a clear requirement for 
it to be writable.

-- 
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]