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] Replace divide and multiply with mask in sYSTRIm


Hi Andreas,

> > -  extra = ((top_size - pad - MINSIZE + (pagesz-1)) / pagesz - 1) * pagesz;
> > +  extra = (top_size - pad - MINSIZE + (pagesz-1)) & ~(pagesz-1);
> 
> That's not the same.  Your version is off by pagesz.

Ouch, thanks for catching that. Will fix and resend.

Anton


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