Commit 6c0f5bfc authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Avoid unnecessary remainder calculations

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


Version 1.18. Tagged as 'Percussion-1_18'
parent 98c35bf1
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "1.17"
Module_Version SETA 117
Module_MajorVersion SETS "1.18"
Module_Version SETA 118
Module_MinorVersion SETS ""
Module_Date SETS "19 Apr 2015"
Module_ApplicationDate SETS "19-Apr-15"
Module_Date SETS "08 May 2016"
Module_ApplicationDate SETS "08-May-16"
Module_ComponentName SETS "Percussion"
Module_ComponentPath SETS "castle/RiscOS/Sources/HWSupport/Sound/Voices/Percussion"
Module_FullVersion SETS "1.17"
Module_HelpVersion SETS "1.17 (19 Apr 2015)"
Module_FullVersion SETS "1.18"
Module_HelpVersion SETS "1.18 (08 May 2016)"
END
/* (1.17)
/* (1.18)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 1.17
#define Module_MajorVersion_CMHG 1.18
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 19 Apr 2015
#define Module_Date_CMHG 08 May 2016
#define Module_MajorVersion "1.17"
#define Module_Version 117
#define Module_MajorVersion "1.18"
#define Module_Version 118
#define Module_MinorVersion ""
#define Module_Date "19 Apr 2015"
#define Module_Date "08 May 2016"
#define Module_ApplicationDate "19-Apr-15"
#define Module_ApplicationDate "08-May-16"
#define Module_ComponentName "Percussion"
#define Module_ComponentPath "castle/RiscOS/Sources/HWSupport/Sound/Voices/Percussion"
#define Module_FullVersion "1.17"
#define Module_HelpVersion "1.17 (19 Apr 2015)"
#define Module_LibraryVersionInfo "1:17"
#define Module_FullVersion "1.18"
#define Module_HelpVersion "1.18 (08 May 2016)"
#define Module_LibraryVersionInfo "1:18"
......@@ -574,7 +574,7 @@ GateOn ROUT
; 65536*102400*4 is too large for a 32 bit int, divide everything by 8
MOV R2,R2,LSR #3 ; /8
MOV R0,#&C8000000 ; 65536*102400*4/8
DivRem R4,R0,R2,R1
DivRem R4,R0,R2,R1,norem
02
Pull "R14"
MSR CPSR_c,#IRQ32_mode
......@@ -1160,7 +1160,7 @@ UpdateFill ROUT
; 65536*102400*4 is too large for a 32 bit int, divide everything by 8
MOV R2,R2,LSR #3 ; /8
MOV R0,#&C8000000 ; 65536*102400*4/8
DivRem R4,R0,R2,R1
DivRem R4,R0,R2,R1,norem
02
Pull "R14"
MSR CPSR_c,#IRQ32_mode
......
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