home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part1 / 3485 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: fc.hp.com!news
  2. From: koren@hpsrk.fc.hp.com (Steve Koren)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: DEC ALPHA card for AMIGA
  5. Date: 29 Jan 1996 12:13:07 -0700
  6. Organization: HP Fort Collins Site
  7. Sender: koren@hpsrk.fc.hp.com
  8. Message-ID: <oj6d982u858.fsf@hpsrk.fc.hp.com>
  9. References: <4dpvmp$2hc@ixnews8.ix.netcom.com> <4e8olr$h9a@news.voicenet.com>
  10. NNTP-Posting-Host: hpsrk.fc.hp.com
  11. In-reply-to: frotz@omni.voicenet.com's message of 25 Jan 1996 20:20:11 GMT
  12. X-Newsreader: Gnus v5.0.9
  13.  
  14.  
  15. frotz@omni.voicenet.com (Steve Bara) wrote:
  16.  
  17. > libraries, since the original amiga math libraries were so slow. Yet 
  18. > another case of hardware banging in "professional" amiga apps that keeps
  19.  
  20. This so called "hardware banging" is used throughout the computer
  21. industry, on most platforms, and for good reason.
  22.  
  23. Many modern CPUs (and note I am *not* including the 680x0 as modern CPUs
  24. here) do FP very quickly.  In many cases FP math is faster than integer
  25. math by often a factor of 3 or 4.  The time spent doing any sort of API
  26. call would be long compared to the time spent actually doing the
  27. calculation.  Even if the API added only one clock cycle (which is not
  28. very likely) that would half the FP performance for some things.  In
  29. practice, it would be worse than that.
  30.  
  31. In other words, your reason for wanting the API is to take advantage of
  32. faster FP hardware, but by the very act of using the API, you destroy
  33. any advantage that faster hardware might have gotten you.  Only if the
  34. API overhead is small compared to the calculation time does it make
  35. sense to use the API approach for FP calculations.  But that hasn't been
  36. true for a long time.  So we use inline FP instructions instead.
  37.  
  38.   - steve
  39.