Commit 0524ed0f authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Avoid unnecessary remainder calculations

Detail:
  s/Switcher - Avoid unnecessary remainder calculations in DivRem macro
Admin:
  Tested on Cortex-A15


Version 1.49. Tagged as 'Switcher-1_49'
parent 7b3c022c
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "1.48"
Module_Version SETA 148
Module_MajorVersion SETS "1.49"
Module_Version SETA 149
Module_MinorVersion SETS ""
Module_Date SETS "12 Feb 2016"
Module_ApplicationDate SETS "12-Feb-16"
Module_Date SETS "08 May 2016"
Module_ApplicationDate SETS "08-May-16"
Module_ComponentName SETS "Switcher"
Module_ComponentPath SETS "castle/RiscOS/Sources/Desktop/Switcher"
Module_FullVersion SETS "1.48"
Module_HelpVersion SETS "1.48 (12 Feb 2016)"
Module_FullVersion SETS "1.49"
Module_HelpVersion SETS "1.49 (08 May 2016)"
END
/* (1.48)
/* (1.49)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 1.48
#define Module_MajorVersion_CMHG 1.49
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 12 Feb 2016
#define Module_Date_CMHG 08 May 2016
#define Module_MajorVersion "1.48"
#define Module_Version 148
#define Module_MajorVersion "1.49"
#define Module_Version 149
#define Module_MinorVersion ""
#define Module_Date "12 Feb 2016"
#define Module_Date "08 May 2016"
#define Module_ApplicationDate "12-Feb-16"
#define Module_ApplicationDate "08-May-16"
#define Module_ComponentName "Switcher"
#define Module_ComponentPath "castle/RiscOS/Sources/Desktop/Switcher"
#define Module_FullVersion "1.48"
#define Module_HelpVersion "1.48 (12 Feb 2016)"
#define Module_LibraryVersionInfo "1:48"
#define Module_FullVersion "1.49"
#define Module_HelpVersion "1.49 (08 May 2016)"
#define Module_LibraryVersionInfo "1:49"
......@@ -3164,7 +3164,7 @@ setmembar
MUL userblk,R14,cx1 ; hope we don't get overflow!
SWI XOS_ReadMemMapInfo ; R0 = page size
DivRem cx1,userblk,R0, R14 ; userblk = number of pages
DivRem cx1,userblk,R0,R14,norem ; userblk = number of pages
LDR R14,dx
CMP cx1,R14
MOVLT cx1,R14 ; bar must be at least 1 pixel wide
......@@ -3222,7 +3222,7 @@ calcbarcoords
MUL cy1,R1,x1 ; hope we don't get overflow!
SWI XOS_ReadMemMapInfo ; R0 = page size
DivRem x1,cy1,R0, R14
DivRem x1,cy1,R0,R14,norem
LDR R14,dx
CMP x1,R14
MOVLT x1,R14 ; bar must be at least 1 pixel wide
......@@ -4743,7 +4743,7 @@ null_event ROUT
05
Pull "R2-R4"
]
DivRem R1,R0,x1, R14 ; R1 = new memory size
DivRem R1,R0,x1,R14,norem ; R1 = new memory size
LDRB R14,[userblk,#icb_icon1]
TEQ R14,#ic_taskname ; dragging a task slot?
......
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