How to initialize const float32x4x4_t (ARM NEON intrinsic, GCC) ?

Posted by Eonil on Stack Overflow See other posts from Stack Overflow or by Eonil
Published on 2010-05-01T12:11:50Z Indexed on 2010/05/01 12:17 UTC
Read the original article Hit count: 217

Filed under:
|
|
|
|

I can initialize float32x4_t like this:

const float32x4x4_t = { 0.0f, 0.0f, 0.0f, 0.0f };

But this code makes an error Incompatible types in initializer:

const float32x4x4_t =
{
    1.0f, 1.0f, 1.0f, 1.0f,
    1.0f, 1.0f, 1.0f, 1.0f,
    1.0f, 1.0f, 1.0f, 1.0f,
    1.0f, 1.0f, 1.0f, 1.0f,
};

float32x4x4_t is 4x4 matrix built as:

typedef struct float32x4x4_t
{
    float32x4_t val[4];
}
float32x4x4_t;

How can I initialize this const struct?

© Stack Overflow or respective owner

Related posts about neon

Related posts about gcc