Commit 9b4c1ccf authored by Jeffrey Lee's avatar Jeffrey Lee

Avoid unnecessary remainder calculations

Detail:
  s/BigDirCode, s/Identify - Avoid unnecessary remainder calculation in DivRem macro
Admin:
  Tested on Cortex-A15


Version 3.69. Tagged as 'FileCore-3_69'
parent e7f8277a
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "3.68"
Module_Version SETA 368
Module_MajorVersion SETS "3.69"
Module_Version SETA 369
Module_MinorVersion SETS ""
Module_Date SETS "28 Oct 2015"
Module_ApplicationDate SETS "28-Oct-15"
Module_Date SETS "08 May 2016"
Module_ApplicationDate SETS "08-May-16"
Module_ComponentName SETS "FileCore"
Module_ComponentPath SETS "castle/RiscOS/Sources/FileSys/FileCore"
Module_FullVersion SETS "3.68"
Module_HelpVersion SETS "3.68 (28 Oct 2015)"
Module_FullVersion SETS "3.69"
Module_HelpVersion SETS "3.69 (08 May 2016)"
END
/* (3.68)
/* (3.69)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 3.68
#define Module_MajorVersion_CMHG 3.69
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 28 Oct 2015
#define Module_Date_CMHG 08 May 2016
#define Module_MajorVersion "3.68"
#define Module_Version 368
#define Module_MajorVersion "3.69"
#define Module_Version 369
#define Module_MinorVersion ""
#define Module_Date "28 Oct 2015"
#define Module_Date "08 May 2016"
#define Module_ApplicationDate "28-Oct-15"
#define Module_ApplicationDate "08-May-16"
#define Module_ComponentName "FileCore"
#define Module_ComponentPath "castle/RiscOS/Sources/FileSys/FileCore"
#define Module_FullVersion "3.68"
#define Module_HelpVersion "3.68 (28 Oct 2015)"
#define Module_LibraryVersionInfo "3:68"
#define Module_FullVersion "3.69"
#define Module_HelpVersion "3.69 (08 May 2016)"
#define Module_LibraryVersionInfo "3:69"
......@@ -867,7 +867,7 @@ LookUpBigDir ROUT
DREG r4, "r4 : "
]
DivRem r8, lr, r9, r4 ; r8 = offset into dir
DivRem r8, lr, r9, r4, norem ; r8 = offset into dir
[ DebugXb
DREG r8, "init offset: "
......
......@@ -769,7 +769,7 @@ SanityCheckEDiscRecord ROUT
SUB r1, r1, r0, LSR #16 ; map bits per sector
LDRB r0, [sp, #DiscRecord_IdLen]
ADD r0, r0, #1
DivRem r2, r1, r0, lr ; r2 = max objects per zone
DivRem r2, r1, r0, lr, norem ; r2 = max objects per zone
[ BigMaps
LDRB r0, [sp, #DiscRecord_NZones]
LDRB r1, [sp, #DiscRecord_BigMap_NZones2] ; r1 is the target for the MUL below
......
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