Skip to content

Vector Quality Operators #24

@bryanjhunt

Description

@bryanjhunt

I have noticed that equality operators are not allowed with vectors in TPC kernel code. Here is what the documentation says "Quality operators are equal (==), not equal to(!=) operate only on scalar types and result in an integer type."

So I am not allowed to do this...

bool64 eq = v_i32_cmp_eq_b(y, e);
bool64 ex = 1;
if (eq != ex)  // not allowed, how to do something like this?
{
   // do something different...
}

I am also not allowed to access a vector type, IE: eq[i] != ex[i]

Is there any way to perform this type of operation?

Thanks,
Bryan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions