printing length in benchtests
Rajalakshmi Srinivasaraghavan
raji@linux.vnet.ibm.com
Thu Feb 6 16:40:00 GMT 2014
On 02/06/2014 10:03 PM, Siddhesh Poyarekar wrote:
> On Thu, Feb 06, 2014 at 09:47:22PM +0530, Rajalakshmi Srinivasaraghavan wrote:
>> Hi All
>>
>> Should we print len instead of pos in the following 4 benchtests to
>> interpret the output better?
> Why would it be better? When there is a match, it is the match
> position that determines the exit from these functions. The length
> comes into the picture when there is no match.
>
> So both would be useful to have in different cases IMO.
>
> Siddhesh
>
I looked at strrchr,we exit once we hit null even after crossing the pos.
So atleast for such functions, it would be better to change.
-- Thanks
Raji
More information about the Libc-alpha
mailing list