From 8f827d68c5c92b6c094871d133d01407611a6484 Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Mon, 21 Feb 2022 18:28:01 +0100 Subject: [PATCH] Add R0 and R1 to clobbers of mulU24X24toH16 just to be on the safe side --- src/modules/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/math.h b/src/modules/math.h index b339435..0d89a5a 100644 --- a/src/modules/math.h +++ b/src/modules/math.h @@ -68,7 +68,7 @@ static inline uint16_t mulU24X24toH16(const uint32_t &longIn1, const uint32_t &l "clr r1 \n\t" : "=&r"(intRes) : "d"(longIn1), "d"(longIn2) - : "r26", "r27"); + : "r0", "r1", "r26", "r27"); #endif return intRes; }