From b73f500c041b9f245a62e6e4ed85a1bb39600186 Mon Sep 17 00:00:00 2001 From: Richard-Rogalski Date: Fri, 14 Jun 2024 19:45:13 -0500 Subject: [PATCH] PR #2530 - Fix altivec code, fix building for PPC Altivec code was previously uncompilable, and the altivec accelerations also could not be disabled with a build flag or env variable, leading to pale moon not being buildable on any altivec supported CPU ( all PPC CPUs ever almost ). Why? I don't know, 'inline' in C is cursed and making it static makes it significantly less so. Closes: https://forum.palemoon.org/viewtopic.php?f=5&t=31108&p=252462#p252462 Signed-off-by: Richard Rogalski --- gfx/qcms/transform-altivec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/qcms/transform-altivec.c b/gfx/qcms/transform-altivec.c index 9dc17bc13f..df896db56c 100644 --- a/gfx/qcms/transform-altivec.c +++ b/gfx/qcms/transform-altivec.c @@ -29,7 +29,7 @@ static const ALIGN float floatScaleX4 = FLOATSCALE; static const ALIGN float clampMaxValueX4 = CLAMPMAXVAL; -inline vector float load_aligned_float(float *dataPtr) +static inline vector float load_aligned_float(float *dataPtr) { vector float data = vec_lde(0, dataPtr); vector unsigned char moveToStart = vec_lvsl(0, dataPtr);