31 Jan
2002
31 Jan
'02
5:47 a.m.
da Silva, Joe wrote:
Also, as a general question, is division more expensive than multiplication, or does the complier's optimization take care of such matters anyway?
I think for numbers whose inverse can be represented exactly (such as 2 and 0.5), it does. In a quick check I just made, it would, e.g., convert `a := b / 2' to `a := b * 0.5' and `a := b / 0.5' to `a := b + b' with optimization. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html