Welcome, Guest. Please login or register.

Author Topic: Changing mathlibs is it really usefull?  (Read 2259 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline GulliverTopic starter

Changing mathlibs is it really usefull?
« on: October 16, 2009, 03:53:59 AM »
Hi, i ´ve got a question, from all those math libs replacements out there I want to know how often are they used by workbench and applications? Do any of you know?

Thanks
 

Offline SilvrDrgn

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 1215
    • Show only replies by SilvrDrgn
    • http://mikerye.homeip.net
Re: Changing mathlibs is it really usefull?
« Reply #1 on: October 16, 2009, 04:38:57 AM »
I would bet that math libs are not used by Workbench too much unless you have some fancy icon system installed. They are used a lot by graphics intensive programs like browsers, paint apps and image processors.  I have HSMathLibs on my A4000T.  The speedup from the standard math libs is very noticeable.
Michael
 

Offline dannyp1

  • Hero Member
  • *****
  • Join Date: Aug 2006
  • Posts: 664
  • Country: us
  • Gender: Male
    • Show only replies by dannyp1
Re: Changing mathlibs is it really usefull?
« Reply #2 on: October 16, 2009, 04:44:50 AM »
I also bought the HighSpeedMathLibs and have never regretted it.  

Dan
 

Offline Tenacious

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show only replies by Tenacious
Re: Changing mathlibs is it really usefull?
« Reply #3 on: October 16, 2009, 04:47:51 AM »
IIRC, the math libraries are used in machines without math co-processors (68881 and 68882).  I don't believe Workbench's GUI requires much number crunching.  Applications like Digital Universe, Distant Suns, Vista Pro, ray tracers, etc are performance-dependent upon the quality of the libraries or co-processor.

It seems back in my A500 days, some of the enhansed and optimized math libraries on Aminet made a noticable difference.
 

Offline GulliverTopic starter

Re: Changing mathlibs is it really usefull?
« Reply #4 on: October 16, 2009, 05:00:17 AM »
Okay, so then i will parobably think on actually registering hs-mathlibs for my 68040 Amiga.
Thanks
 

Offline matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: Changing mathlibs is it really usefull?
« Reply #5 on: October 16, 2009, 07:35:42 AM »
@Gulliver

Often the fpu instructions are put directly in the code. In that case, having fast math libraries will offer no speed increase. There are plenty of cases where the math libraries are used though and the C= versions arer not very optimized.
 

Offline Tenacious

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show only replies by Tenacious
Re: Changing mathlibs is it really usefull?
« Reply #6 on: October 16, 2009, 04:26:32 PM »
Someone will correct me if I'm wrong.  The 68040 and 68060 CPUs have FPUs (math co-processor) built into their chip.  The 68020 and 68030 were designed to be supplimented by a seperate math co-processor (68881 or 68882), or, could run the libraries.

The 68000 and 68010 are compatible with math co-processors, I think, but were never expected to have FPUs available.  I think code for these CPUs usually require the libraries.
« Last Edit: October 16, 2009, 04:29:49 PM by Tenacious »
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: Changing mathlibs is it really usefull?
« Reply #7 on: October 16, 2009, 04:34:57 PM »
The '040 and '060 only have partial FPUs built in.  You still need an external FPU for the full-functionality.  However, 68881/2 FPUs aren't pipelined and therefore aren't very fast.
 

Offline matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: Changing mathlibs is it really usefull?
« Reply #8 on: October 16, 2009, 05:17:35 PM »
@SamuraiCrow

There is no external "hardware" fpu. There is a software emulation of the unavailable 68881/68882 instructions that are unavailable in the 68040 and 68060. These are in the 68040.library and 68060.library respectivly. The cpu traps the unavailable older fpu instructions which is slow. They are still generally faster than the 68881/68882 on newer processors even when trapped. Unfortunatly, going through the cpu traps is slow compared to using only the fpu instructions that are built in. There is Oxypatcher type programs to speed up older programs that use 68881/68882 instructions on the 68040 and 68060. Oxypatcher type programs offer a speed increase if...

You have a 68040 or 68060.
You have programs that use the fpu directly instead of the math libraries.
The programs are NOT compiled for 68040 or 68060.

Faster math libraries offer a speed increase if...

The math libraries are used instead of the fpu directly.
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: Changing mathlibs is it really usefull?
« Reply #9 on: October 16, 2009, 07:09:12 PM »
Ok, my bad.