Commit 7dbb9161 authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Make use of UDIV where possible

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'
parent ba422d74
...@@ -11,13 +11,13 @@ ...@@ -11,13 +11,13 @@
GBLS Module_HelpVersion GBLS Module_HelpVersion
GBLS Module_ComponentName GBLS Module_ComponentName
GBLS Module_ComponentPath GBLS Module_ComponentPath
Module_MajorVersion SETS "1.21" Module_MajorVersion SETS "1.22"
Module_Version SETA 121 Module_Version SETA 122
Module_MinorVersion SETS "" Module_MinorVersion SETS ""
Module_Date SETS "05 Aug 2011" Module_Date SETS "08 May 2016"
Module_ApplicationDate SETS "05-Aug-11" Module_ApplicationDate SETS "08-May-16"
Module_ComponentName SETS "Draw" Module_ComponentName SETS "Draw"
Module_ComponentPath SETS "castle/RiscOS/Sources/Video/Render/Draw" Module_ComponentPath SETS "castle/RiscOS/Sources/Video/Render/Draw"
Module_FullVersion SETS "1.21" Module_FullVersion SETS "1.22"
Module_HelpVersion SETS "1.21 (05 Aug 2011)" Module_HelpVersion SETS "1.22 (08 May 2016)"
END END
/* (1.21) /* (1.22)
* *
* This file is automatically maintained by srccommit, do not edit manually. * This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1. * 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_MinorVersion_CMHG
#define Module_Date_CMHG 05 Aug 2011 #define Module_Date_CMHG 08 May 2016
#define Module_MajorVersion "1.21" #define Module_MajorVersion "1.22"
#define Module_Version 121 #define Module_Version 122
#define Module_MinorVersion "" #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_ComponentName "Draw"
#define Module_ComponentPath "castle/RiscOS/Sources/Video/Render/Draw" #define Module_ComponentPath "castle/RiscOS/Sources/Video/Render/Draw"
#define Module_FullVersion "1.21" #define Module_FullVersion "1.22"
#define Module_HelpVersion "1.21 (05 Aug 2011)" #define Module_HelpVersion "1.22 (08 May 2016)"
#define Module_LibraryVersionInfo "1:21" #define Module_LibraryVersionInfo "1:22"
...@@ -150,26 +150,13 @@ Module_BaseAddr ...@@ -150,26 +150,13 @@ Module_BaseAddr
checkdivides SETL {FALSE} :LAND: BeingDeveloped checkdivides SETL {FALSE} :LAND: BeingDeveloped
MACRO MACRO
$label DivRem2 $rc, $ra, $rb, $rtemp $label DivRem2 $rc, $ra, $rb, $rtemp, $norem
$label $label
[ checkdivides [ checkdivides
TEQ $rb,#0 TEQ $rb,#0
SWIEQ OS_BreakPt SWIEQ OS_BreakPt
] ]
MOV $rtemp, $rb DivRem $rc, $ra, $rb, $rtemp, $norem
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
MEND MEND
;---------------------------------------------------------------------------- ;----------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment