home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / bsd / 11179 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.3 KB

  1. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!usc!sdd.hp.com!spool.mu.edu!agate!doc.ic.ac.uk!uknet!cf-cm!myrddin.isl.cf.ac.uk!paul
  2. From: paul@isl.cf.ac.uk (Paul Richards)
  3. Newsgroups: comp.unix.bsd
  4. Subject: gnu mathlib pow.s bug FIX
  5. Message-ID: <1993Jan12.214029.26276@cm.cf.ac.uk>
  6. Date: 12 Jan 93 21:40:28 GMT
  7. Sender: news@cm.cf.ac.uk (Network News System)
  8. Organization: Intelligent Systems Lab, ELSYM, Universiity of Wales, College of 
  9.               Cardiff.
  10. Lines: 32
  11.  
  12. I got around to looking at the pow.s bug I found in the mathlib library
  13. today. The fix is included below. If you use the mathlib then you need
  14. to apply this patch and recompile your apps. 
  15.  
  16. The bug was that pow() was corrupting temporary values held in the
  17. registers ebx,esi and edi by restoring their saved values from the
  18. wrong place on the stack.
  19.  
  20. *** pow.s.orig    Tue Jan 12 21:16:40 1993
  21. --- pow.s    Tue Jan 12 21:20:05 1993
  22. ***************
  23. *** 155,161 ****
  24.       fchs
  25.   /*/NO_APP*/
  26.   .L1:
  27. !     leal -28(%ebp),%esp
  28.       popl %ebx
  29.       popl %esi
  30.       popl %edi
  31. --- 155,161 ----
  32.       fchs
  33.   /*/NO_APP*/
  34.   .L1:
  35. !     leal -40(%ebp),%esp
  36.       popl %ebx
  37.       popl %esi
  38.       popl %edi
  39. -- 
  40.   Paul Richards, University of Wales, College Cardiff
  41.  
  42.   JANET:paul@uk.ac.cf.isl    Internet:paul@isl.cf.ac.uk
  43.   UUCP: paul@cf-isl.UUCP or ...!uunet!mcsun!uknet!cf!isl!paul
  44.