Re: [PHP-DEV] zend_hash_add_or_update flaw From: Andi Gutmans (andi <email protected>)
Date: 12/07/00

Good to know.
I already see you adjusted your patch accordingly.

Thanks,
Andi

At 10:17 PM 12/6/00 +0100, Sascha Schumann wrote:
> > The second we put nDataSize as the third parameter we can say bye bye to
> > any compiler optimization. This is of course, if we actually know (and I
> > don't) if some compilers would optimize this.
>
> Apparently, GCC does that:
>
> $ gcc -O -c y.c z.c
> $ nm y.o
> 00000000 t gcc2_compiled.
> 00000000 T main
> $ nm z.o
> 00000000 t gcc2_compiled.
> 00000000 T main
> U memcpy
>
> y.c uses a constant, z.c a variable as third parameter to
> memcpy.
>
> - Sascha

---
Andi Gutmans <andi <email protected>>
http://www.zend.com/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>