Skip to content

Commit

Permalink
Try just vfloat4
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <lg@larrygritz.com>
  • Loading branch information
lgritz committed Mar 10, 2024
1 parent 6d719d7 commit 8554db8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/include/OpenImageIO/simd.h
Original file line number Diff line number Diff line change
Expand Up @@ -2145,7 +2145,7 @@ class vfloat4 {
// The actual data representation
union {
simd_t m_simd;
value_t m_val[paddedelements];
// value_t m_val[paddedelements];
};
};

Expand Down Expand Up @@ -6747,12 +6747,12 @@ OIIO_FORCEINLINE void vfloat4::clear () {

OIIO_FORCEINLINE float& vfloat4::operator[] (int i) {
OIIO_DASSERT(i<elements);
return data()[i];
return *(data() + i);
}

OIIO_FORCEINLINE float vfloat4::operator[] (int i) const {
OIIO_DASSERT(i<elements);
return data()[i];
return *(data() + i);
}


Expand Down

0 comments on commit 8554db8

Please sign in to comment.