Author: Dieter Buerssner
Date: 13:59:04 12/19/02
Go up one level in this thread
On December 19, 2002 at 13:11:12, Robert Hyatt wrote: >If you do unsafe aliasing and such, it might have a problem, but nobody here >writes that kind of code... I wonder, what you mean by "unsafe aliasing". That pointers can alias each other is part of the C-language. If you write a memmove-alike yourself, it could very likely include, what you call unsafe aliasing. Compiler optimization switches that "assume no alias" may break the code. Of course, many functions cannot handle aliases by design (for example straight forward code for vector multiplication like cross_product(double *a, double *b, double *result) will not work when called like cross_product(a, b, b); With other algorithms, it can be more subtle). Regards, Dieter
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.