Skip to content

Commit

Permalink
Add OPENEXR_MISSING_ARM_VLD1 workaround to internal_dwa_simd.h (#1482)
Browse files Browse the repository at this point in the history
Addresses #1477

Signed-off-by: Cary Phillips <cary@ilm.com>
  • Loading branch information
cary-ilm committed Jul 31, 2023
1 parent 8626bbb commit 0a4b82a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/lib/OpenEXRCore/internal_dwa_simd.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,20 @@
#include <arm_neon.h>
#endif

#include "OpenEXRConfigInternal.h"
#ifdef OPENEXR_MISSING_ARM_VLD1
/* Workaround for missing vld1q_f32_x2 in older gcc versions. */

__extension__ extern __inline float32x4x2_t
__attribute__ ((__always_inline__, __gnu_inline__, __artificial__))
vld1q_f32_x2 (const float32_t* __a)
{
float32x4x2_t ret;
asm ("ld1 {%S0.4s - %T0.4s}, [%1]" : "=w"(ret) : "r"(__a) :);
return ret;
}
#endif

//
// Color space conversion, Inverse 709 CSC, Y'CbCr -> R'G'B'
//
Expand Down

0 comments on commit 0a4b82a

Please sign in to comment.