Commit 8d366781 authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Avoid unnecessary remainder calculations

Detail:
  s/ScrBlank - Avoid unnecessary remainder calculations in DivRem macro. Also, make use of the ability to pass in a constant as the divisor.
Admin:
  Tested on Cortex-A15


Version 2.34. Tagged as 'ScrBlank-2_34'
parent 1412a038
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "2.33"
Module_Version SETA 233
Module_MajorVersion SETS "2.34"
Module_Version SETA 234
Module_MinorVersion SETS ""
Module_Date SETS "05 Dec 2012"
Module_ApplicationDate SETS "05-Dec-12"
Module_Date SETS "08 May 2016"
Module_ApplicationDate SETS "08-May-16"
Module_ComponentName SETS "ScrBlank"
Module_ComponentPath SETS "castle/RiscOS/Sources/Video/Render/ScrBlank"
Module_FullVersion SETS "2.33"
Module_HelpVersion SETS "2.33 (05 Dec 2012)"
Module_FullVersion SETS "2.34"
Module_HelpVersion SETS "2.34 (08 May 2016)"
END
/* (2.33)
/* (2.34)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 2.33
#define Module_MajorVersion_CMHG 2.34
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 05 Dec 2012
#define Module_Date_CMHG 08 May 2016
#define Module_MajorVersion "2.33"
#define Module_Version 233
#define Module_MajorVersion "2.34"
#define Module_Version 234
#define Module_MinorVersion ""
#define Module_Date "05 Dec 2012"
#define Module_Date "08 May 2016"
#define Module_ApplicationDate "05-Dec-12"
#define Module_ApplicationDate "08-May-16"
#define Module_ComponentName "ScrBlank"
#define Module_ComponentPath "castle/RiscOS/Sources/Video/Render/ScrBlank"
#define Module_FullVersion "2.33"
#define Module_HelpVersion "2.33 (05 Dec 2012)"
#define Module_LibraryVersionInfo "2:33"
#define Module_FullVersion "2.34"
#define Module_HelpVersion "2.34 (08 May 2016)"
#define Module_LibraryVersionInfo "2:34"
......@@ -284,16 +284,14 @@ Go_Online
; R1 is time in cs. Leaves time in ticks in R0.
ConvertCSToTicks Entry "R1,R2"
MOV R2, #TickDelta
DivRem R0, R1, R2, LR
ConvertCSToTicks Entry "R1"
DivRem R0, R1, #TickDelta, LR, norem
EXIT
; R0 is time in ticks. Leaves time in seconds in R1.
ConvertTicksToSecs Entry "R0,R2"
MOV R2, #TicksPerSec
DivRem R1, R0, R2, LR
ConvertTicksToSecs Entry "R0"
DivRem R1, R0, #TicksPerSec, LR, norem
EXIT
; [ Stork
......
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