This is a C++ file, and Accelerate is a C library, so we should use #include instead of #import.
Somewhere around Mac OS X 10.10, some parameters to vDSP_mmul were changed from float* to const float*. But earlier versions complain if you try to pass them const float* values, so just cast to float*.
Tested and successfully compiled on Mac OS X 10.5 PowerPC 😛
This is a C++ file, and Accelerate is a C library, so we should use
#include
instead of#import
.Somewhere around Mac OS X 10.10, some parameters to
vDSP_mmul
were changed fromfloat*
toconst float*
. But earlier versions complain if you try to pass themconst float*
values, so just cast tofloat*
.Tested and successfully compiled on Mac OS X 10.5 PowerPC 😛