From ef3cbbe3402129eedabed4887664c25bf2aab356 Mon Sep 17 00:00:00 2001 From: marcobaye Date: Sat, 2 May 2020 15:38:02 +0000 Subject: [PATCH] fixed float macros in library to make sure they work with future versions of ACME git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@134 4df02467-bbd4-4a76-a152-e7ce94205b78 --- ACME_Lib/cbm/flpt.a | 5 +++-- ACME_Lib/cbm/mflpt.a | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ACME_Lib/cbm/flpt.a b/ACME_Lib/cbm/flpt.a index 2195117..712d426 100644 --- a/ACME_Lib/cbm/flpt.a +++ b/ACME_Lib/cbm/flpt.a @@ -47,9 +47,10 @@ lib_cbm_flpt_a = 1 ; this is ugly, but it gets the job done ; (if it's stupid, but it works, then it's not stupid) !macro flpt @value { - !set @float = float(@value) ; make sure to do passes until value is defined + !set @float = float(@value) !ifndef @float { - !by $ff, $ff, $ff, $ff, $ff, $ff ; six place holder bytes + !by <@float, $ff, $ff, $ff, $ff, $ff ; six place holder bytes + ; (first one depends on @float just to make sure more passes are done until value is defined) } else { ; value is defined, so split up into sign and non-negative value !if @float < 0 { diff --git a/ACME_Lib/cbm/mflpt.a b/ACME_Lib/cbm/mflpt.a index 30a34f1..9f8d7e7 100644 --- a/ACME_Lib/cbm/mflpt.a +++ b/ACME_Lib/cbm/mflpt.a @@ -42,9 +42,10 @@ lib_cbm_mflpt_a = 1 ; this is ugly, but it gets the job done ; (if it's stupid, but it works, then it's not stupid) !macro mflpt @value { - !set @float = float(@value) ; make sure to do passes until value is defined + !set @float = float(@value) !ifndef @float { - !by $ff, $ff, $ff, $ff, $ff ; five place holder bytes + !by <@float, $ff, $ff, $ff, $ff ; five place holder bytes + ; (first one depends on @float just to make sure more passes are done until value is defined) } else { ; value is defined, so split up into sign and non-negative value !if @float < 0 {