From 9b08f337a55906eac28e404c068336b701a4d0e5 Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Mon, 2 Mar 2026 19:53:45 +0100 Subject: [PATCH] BE support --- include/dusk/endian.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/dusk/endian.h b/include/dusk/endian.h index 03a6665545..58e9bd31ab 100644 --- a/include/dusk/endian.h +++ b/include/dusk/endian.h @@ -160,6 +160,15 @@ inline f32 BE::swap(f32 val) { return RES_F32(val); } +template<> +inline S16Vec BE::swap(S16Vec val) { + return { + BE::swap(val.x), + BE::swap(val.y), + BE::swap(val.z), + }; +} + template<> struct BE { BE x;