Commits (1)
  • Jeffrey Lee's avatar
    Make use of UDIV where possible · 7dbb9161
    Jeffrey Lee authored
    Detail:
      s/Draw - Make DivRem2 macro just be a wrapper around DivRem rather than a clone of it, allowing UDIV to be used
    Admin:
      Tested on Cortex-A15
    
    
    Version 1.22. Tagged as 'Draw-1_22'
    7dbb9161
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "1.21"
Module_Version SETA 121
Module_MajorVersion SETS "1.22"
Module_Version SETA 122
Module_MinorVersion SETS ""
Module_Date SETS "05 Aug 2011"
Module_ApplicationDate SETS "05-Aug-11"
Module_Date SETS "08 May 2016"
Module_ApplicationDate SETS "08-May-16"
Module_ComponentName SETS "Draw"
Module_ComponentPath SETS "castle/RiscOS/Sources/Video/Render/Draw"
Module_FullVersion SETS "1.21"
Module_HelpVersion SETS "1.21 (05 Aug 2011)"
Module_FullVersion SETS "1.22"
Module_HelpVersion SETS "1.22 (08 May 2016)"
END
/* (1.21)
/* (1.22)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 1.21
#define Module_MajorVersion_CMHG 1.22
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 05 Aug 2011
#define Module_Date_CMHG 08 May 2016
#define Module_MajorVersion "1.21"
#define Module_Version 121
#define Module_MajorVersion "1.22"
#define Module_Version 122
#define Module_MinorVersion ""
#define Module_Date "05 Aug 2011"
#define Module_Date "08 May 2016"
#define Module_ApplicationDate "05-Aug-11"
#define Module_ApplicationDate "08-May-16"
#define Module_ComponentName "Draw"
#define Module_ComponentPath "castle/RiscOS/Sources/Video/Render/Draw"
#define Module_FullVersion "1.21"
#define Module_HelpVersion "1.21 (05 Aug 2011)"
#define Module_LibraryVersionInfo "1:21"
#define Module_FullVersion "1.22"
#define Module_HelpVersion "1.22 (08 May 2016)"
#define Module_LibraryVersionInfo "1:22"
......@@ -150,26 +150,13 @@ Module_BaseAddr
checkdivides SETL {FALSE} :LAND: BeingDeveloped
MACRO
$label DivRem2 $rc, $ra, $rb, $rtemp
$label DivRem2 $rc, $ra, $rb, $rtemp, $norem
$label
[ checkdivides
TEQ $rb,#0
SWIEQ OS_BreakPt
]
MOV $rtemp, $rb
CMP $rtemp, $ra, LSR #1
01
MOVLS $rtemp, $rtemp, LSL #1
CMPLS $rtemp, $ra, LSR #1
BLS %BT01
MOV $rc, #0
02
CMP $ra, $rtemp
SUBCS $ra, $ra, $rtemp
ADC $rc, $rc, $rc
MOV $rtemp, $rtemp, LSR #1
CMP $rtemp, $rb
BCS %BT02
DivRem $rc, $ra, $rb, $rtemp, $norem
MEND
;----------------------------------------------------------------------------
......