Commit 34b861d4 authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Avoid unnecessary remainder calculations

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


Version 1.09. Tagged as 'ADFSFiler-1_09'
parent ffe19f69
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "1.08"
Module_Version SETA 108
Module_MajorVersion SETS "1.09"
Module_Version SETA 109
Module_MinorVersion SETS ""
Module_Date SETS "20 Feb 2015"
Module_ApplicationDate SETS "20-Feb-15"
Module_Date SETS "08 May 2016"
Module_ApplicationDate SETS "08-May-16"
Module_ComponentName SETS "ADFSFiler"
Module_ComponentPath SETS "castle/RiscOS/Sources/FileSys/ADFS/ADFSFiler"
Module_FullVersion SETS "1.08"
Module_HelpVersion SETS "1.08 (20 Feb 2015)"
Module_FullVersion SETS "1.09"
Module_HelpVersion SETS "1.09 (08 May 2016)"
END
/* (1.08)
/* (1.09)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 1.08
#define Module_MajorVersion_CMHG 1.09
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 20 Feb 2015
#define Module_Date_CMHG 08 May 2016
#define Module_MajorVersion "1.08"
#define Module_Version 108
#define Module_MajorVersion "1.09"
#define Module_Version 109
#define Module_MinorVersion ""
#define Module_Date "20 Feb 2015"
#define Module_Date "08 May 2016"
#define Module_ApplicationDate "20-Feb-15"
#define Module_ApplicationDate "08-May-16"
#define Module_ComponentName "ADFSFiler"
#define Module_ComponentPath "castle/RiscOS/Sources/FileSys/ADFS/ADFSFiler"
#define Module_FullVersion "1.08"
#define Module_HelpVersion "1.08 (20 Feb 2015)"
#define Module_LibraryVersionInfo "1:8"
#define Module_FullVersion "1.09"
#define Module_HelpVersion "1.09 (08 May 2016)"
#define Module_LibraryVersionInfo "1:9"
......@@ -743,14 +743,14 @@ ReadTrack
LDR r1, [r8, #bkp_bitdiscsize]
MOV r3,#100
MUL r2,r0,r3
DivRem r0,r2,r1,r14
DivRem r0,r2,r1,r14,norem
; dreg r0," Done %"
LDR r14,[r8, #bkp_MaxFormatBarLength]
MUL r14,r0,r14
MOV r2,#100
DivRem r1,r14,r2,r3
DivRem r1,r14,r2,r3,norem
LDR r0,[r8,#bkp_handle]
MOV r2,#10
BL SetBar
......@@ -1135,14 +1135,14 @@ WriteTrack
LDR r1, [r8, #bkp_bitdiscsize]
MOV r3,#100
MUL r2,r0,r3
DivRem r0,r2,r1,r14
DivRem r0,r2,r1,r14,norem
; dreg r0," (Write) Done %"
LDR r14, [r8, #bkp_MaxFormatBarLength]
MUL r14,r0,r14
MOV r2,#100
DivRem r1,r14,r2,r3
DivRem r1,r14,r2,r3,norem
LDR r0,[r8,#bkp_handle]
MOV r2,#11
BL SetBar
......
......@@ -1004,7 +1004,7 @@ FormatTrack ROUT
LDR r5,[r8,#fw_numberoftracks]
LDR r14,[r8, #fw_MaxFormatBarLength]
MUL r14,r4,r14
DivRem r1,r14,r5,r7
DivRem r1,r14,r5,r7,norem
LDR r0,[r8,#fw_handle]
MOV r2,#11
BL SetBar
......
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