Commit ce1f7059 authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Avoid unnecessary remainder calculations

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


Version 0.81. Tagged as 'NetFiler-0_81'
parent f6ce3ada
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "0.80"
Module_Version SETA 80
Module_MajorVersion SETS "0.81"
Module_Version SETA 81
Module_MinorVersion SETS ""
Module_Date SETS "14 Jan 2014"
Module_ApplicationDate SETS "14-Jan-14"
Module_Date SETS "08 May 2016"
Module_ApplicationDate SETS "08-May-16"
Module_ComponentName SETS "NetFiler"
Module_ComponentPath SETS "castle/RiscOS/Sources/FileSys/NetFS/NetFiler"
Module_FullVersion SETS "0.80"
Module_HelpVersion SETS "0.80 (14 Jan 2014)"
Module_FullVersion SETS "0.81"
Module_HelpVersion SETS "0.81 (08 May 2016)"
END
/* (0.80)
/* (0.81)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.80
#define Module_MajorVersion_CMHG 0.81
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 14 Jan 2014
#define Module_Date_CMHG 08 May 2016
#define Module_MajorVersion "0.80"
#define Module_Version 80
#define Module_MajorVersion "0.81"
#define Module_Version 81
#define Module_MinorVersion ""
#define Module_Date "14 Jan 2014"
#define Module_Date "08 May 2016"
#define Module_ApplicationDate "14-Jan-14"
#define Module_ApplicationDate "08-May-16"
#define Module_ComponentName "NetFiler"
#define Module_ComponentPath "castle/RiscOS/Sources/FileSys/NetFS/NetFiler"
#define Module_FullVersion "0.80"
#define Module_HelpVersion "0.80 (14 Jan 2014)"
#define Module_LibraryVersionInfo "0:80"
#define Module_FullVersion "0.81"
#define Module_HelpVersion "0.81 (08 May 2016)"
#define Module_LibraryVersionInfo "0:81"
......@@ -2850,7 +2850,7 @@ event_open_window Entry "cx0,cy0, r6-r9"
CMP R9, r14
MOVGT R9, r14
ADD R9, R9, cx0, ASR #2 ; add 1/4 of a box (bodge!)
DivRem R8, R9, cx0, R14 ; R8 = no of boxes that will fit
DivRem R8, R9, cx0, R14, norem ; R8 = no of boxes that will fit
CMP R8,#1
MOVLT R8,#1 ; at least 1 column!
......
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