svn commit: trunk/uClibc/ldso/ldso

Carmelo AMOROSO carmelo.amoroso at st.com
Tue Mar 11 10:27:05 UTC 2008


Peter Kjellerstedt wrote:
> You should move the calculation of rem to within the if statement,
> since the modulo operation is time consuming and the if statement 
> is marked as unlikely(), i.e.:
>
> 	if (unlikely((bitmask_word >> hashbit1) & (bitmask_word >>
> hashbit2) & 1)) {
> 		Elf32_Word bucket;
> 		unsigned long rem;
>
> 		do_rem(rem, hash, tpnt->nbucket);
> 		bucket = tpnt->l_gnu_buckets[rem];
>
> //Peter
>   
Done, thanks.
Carmelo
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc
>
>   




More information about the uClibc mailing list