From: falcovorbis <fal...@us...> - 2024-05-04 03:13:20
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via dbdc05cf9f64a32b679285c2bb5bb196546407d7 (commit) from f329209068f1aadee9c53c694880633ab236df4d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit dbdc05cf9f64a32b679285c2bb5bb196546407d7 Author: Paul Cercueil <pa...@cr...> Date: Sat May 4 05:12:36 2024 +0200 dc: Fix __fipr() and __fipr_magnitude_sqr() macros (#540) They were not returning the correct register when building with -m4-single. Signed-off-by: Paul Cercueil <pa...@cr...> ----------------------------------------------------------------------- Summary of changes: kernel/arch/dreamcast/include/dc/fmath_base.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/arch/dreamcast/include/dc/fmath_base.h b/kernel/arch/dreamcast/include/dc/fmath_base.h index a08501dc..626d97ee 100644 --- a/kernel/arch/dreamcast/include/dc/fmath_base.h +++ b/kernel/arch/dreamcast/include/dc/fmath_base.h @@ -144,11 +144,11 @@ __BEGIN_DECLS register float __d __asm__(KOS_FPARG(7)) = (d); \ __asm__ __volatile__( \ "fipr fv8,fv4" \ - : "+f" (__z) \ + : "+f" (KOS_SH4_SINGLE_ONLY ? __w : __z) \ : "f" (__x), "f" (__y), "f" (__z), "f" (__w), \ "f" (__a), "f" (__b), "f" (__c), "f" (__d) \ ); \ - __z; }) + KOS_SH4_SINGLE_ONLY ? __w : __z; }) /* Floating point inner product w/self (square of vector magnitude) */ #define __fipr_magnitude_sqr(x, y, z, w) ({ \ @@ -158,10 +158,10 @@ __BEGIN_DECLS register float __w __asm__(KOS_FPARG(3)) = (w); \ __asm__ __volatile__( \ "fipr fv4,fv4" \ - : "+f" (__z) \ + : "+f" (KOS_SH4_SINGLE_ONLY ? __w : __z) \ : "f" (__x), "f" (__y), "f" (__z), "f" (__w) \ ); \ - __z; }) + KOS_SH4_SINGLE_ONLY ? __w : __z; }) /** \endcond */ hooks/post-receive -- A pseudo Operating System for the Dreamcast. |