Re: newlib wasn't perfect?

Jim Warner <[email protected]> Sat, 24 Apr 2021 01:41:12 -0500
Newsgroups gmane.linux.procps.devel
Message-ID <[email protected]>
On 4/23/21 8:13 PM, Craig Small wrote:
> All pushed. Amazing what two lines can do.

Hi Craig,

It sure is.

Interestingly, master branch top does it properly but when I adapted 
that logic for newlib way back in 2015 I thought I'd "improve" it and I 
eliminated 1 line of code.

Some improvement, huh?


> For patch #3 you're basically resolving the number of slots once, rather 
> than for each assignment?
> That's what it looks to me, but was checking the intent.

Yep, that's the intent.

But to be honest, gcc is pretty smart generally and this change doesn't 
really generate less code.  It just looks a little cleaner.

Regards,

Jim