Short: 060 Patches for UMult64/SMult64 V1.5 Author: sintonen@iki.fi (Harry "Piru" Sintonen) Uploader: sintonen@iki.fi (Harry "Piru" Sintonen) Type: util/boot Requires: 68060, Kickstart 3.0+ Version: 1.5 Description: This is a small patch which replace the UMult64 and SMult64 functions of utility.library V39+ with 68060 optimized routines. These new functions are 2 times faster than the ones placed by 68060.library, and 4 times faster than the Trap emulation. The patch is not installed if MorphOS PPC kernel is running, since MorphOS has PPC native utility.library that is faster anyway. Well, these functions are not used often, so don't expect an incredible speedup. :) You can run Mult64SpeedTest tool to see the benchmarks. Full source code is included. Installation: Copy PatchMult64 in your "C:" directory, and add "C:PatchMult64" in your startup-sequence or user-startup. PatchMult64 sets the return code as follow: 0 : Patches succesfully installed 5 : Patches already installed or MorphOS detected 10 : Unable to install the patches That's all ! Version 1.4-1.5 author: Harry "Piru" Sintonen Original authors: v1.0: Didier Levet v1.1-v1.3: Dirk Busse Speed comparision: With the program Mult64SpeedTest you can benchmark the routines. Run the program before and after PatchMult64 to see the speed improvement. History: 1.0 Original Version from Didier Levet 1.1 - Source Code changed for using PhxAss (the best Assembler I know!) - Speed Improvement: UMult64 5.6% faster than V1.0 SMult64 3.6% faster than V1.0 - Removed the check for a loaded 68060.library, the Patches needn't the 68060.library and the check for a 68060 CPU is sufficient. 1.2 (The patches itself aren't changed. They are the same as V1.1. Only the installation routine is changed.) - Fixed the detection of the 68060 CPU (It was testing the wrong byte). - Now it is possible to install the patch, without the 68060.library. So you could start PatchMult64 befor SetPatch (NOT recommend). (If you use the 68060.library V1.9 (05.09.96) from Ralph Babel, you have to dissable the 68060.library to use ReOrg 3.11 with large option files. Otherwise ReOrg crashes because a bug in Ralph Babels 68060.library.) Without a 68060.library the AMIGA thinks it has only a 68040 CPU. So if PatchMult64 finds only a 68040 CPU, it installs the Patches and quits with a return code of 5 (=warn). So now you could also install the patches on a 68040 AMIGA. BUT DON'T DO THAT. On a 68040 CPU the patches slows down the UMult64 and SMult64 functions. PatchMult64 is still ONLY useful on a 68060 AMIGA. 1.3 - Speeded up SMult64 2% if the result is negative. Thanks to dave for the hint. - Cleaned the code to be smaler. - Removed the old SpeedTest from the archive and included the new Mult64SpeedTest. 1.4 (7.Dec.2000) (The patches itself aren't changed. They are the same as V1.3. Only the installation routine is changed.) - Versions 1.1-1.3 were written by Dirk Busse. - Reformatted the source code, I prefer real tabulators and new syntax. - Bugfix: The installation routine stole signal bit from the shell process, fixed. - Bugfix: The installation routine did FindPort() without port list arbitration -> potential race condition, fixed. - Bugfix: The installation routine forgot to close utility.library on succesful install, fixed. - Bugfix: The version string didn't follow standard guideline, fixed. - Improvement: Added real 68060 CPU check to the installation routine, now return error (RC 10) on all pre-68060 systems. - Improvement: Added MorphOS check, it makes no sense to slow down ppc native utility.library. - Bugfix: Mult64SpeedTest crashed if it failed to open dos and/or utility library, fixed. - Bugfix: Mult64SpeedTest printed zero byte after some strings, fixed. - Both programs compile with genam and phxass, distribution binaries compiled with genam. 1.5 (11.Jan.2003) (The patches itself aren't changed. They are the same as V1.4. Only the installation routine is changed.) - Fixed FreeMem(NULL, x) that made MemTrailer cause hits.