Closed codz01 closed 1 year ago
Hm, I've fixed it actually with the last commits from the last days. Which compiler you're using and which version and for which CPU, and for which OS, and with with optimization options?
Can you try undefine all {$define SIMD} in the kraft.pas ?
With
I get as Win64 build:
with the latest changes from today,
FPC seems to have problems when a function result is also a function argument at the same time, regarding a creating a shadow temporary target for the result, or something. for example at a := Vector3Add(a, b);
or a := Vector3Add(b, a);
at least I've workarounded it so far now for my own local FPC version build, by finetuned the function argument parameters per IFDEFs, for decide depending on the build-variant either if const or constref is used here, and either if it is inline pure-pascal or a inline assembler variant. For Delphi only const is used, since Delphi doesn't know constref. See the latest commits from the last days.
Okay, please test with https://github.com/BeRo1985/kraft/commit/d52968dca2b38d430cef4ba302fd67302ba7bb73 again
thanks , yes it works now without problems
Okay good :-)
forgot to mention my build system ;)
optimization was -O3 only