Dear ISPC Community,

Is there any support for arrays of complex numbers in ISPC?

The inadequacy of std::complex and complex to SIMDization, 
due to the AoS layout, can be partially relaxed by the ISA (see vaddsubps 
for example).

Having seamless support of ISPC for std::complex would be best.
My guess is that there would be some incompatibility in terms of ISPC 
masking?
(For complex<float>, I would mask i32x8 or i64x4 depending on the operation 
at hand.)

It would be great to have at least some builtin functions dealing with such 
arrays,
to "unzip" them into real and imaginary component arrays (SoA), zip them 
again, and builtin functions z = f(x,y), hence consuming 4 input scalars 
and producing 2 output scalars.

What are your thoughts on this?

Best wishes,

Diego

-- 
You received this message because you are subscribed to the Google Groups 
"Intel SPMD Program Compiler Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ispc-users/6941316a-e58c-49ee-bd4d-c62940c90ed8n%40googlegroups.com.

Reply via email to