This is because the C code isn’t getting vectorized due to the potential aliasing. Either add the “restrict” keyword or the flag “-Msafeptr” to assert to the compiler that there is no aliasing.
Is it possible to do?
Cross language calling is certainly fine, but cross-language inlining isn’t something we support.
-Mat