avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bugs #10413] speedup tanh function in libm


From: anonymous
Subject: [avr-libc-dev] [bugs #10413] speedup tanh function in libm
Date: Thu, 16 Sep 2004 10:46:58 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040804

This mail is an automated notification from the bugs tracker
 of the project: AVR C Runtime Library.




/**************************************************************************/
[bugs #10413] Full Item Snapshot:

URL: <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=10413>
Project: AVR C Runtime Library
Submitted by: 0
On: Don 16.09.2004 at 10:41

Category:  Library
Severity:  5 - Average
Item Group:  None
Resolution:  None
Privacy:  Public
Assigned to:  None
Originator Email:  address@hidden
Status:  Open


Summary:  speedup tanh function in libm

Original Submission:  The current code uses sinh/cosh which results in 2 calls 
to exp (each function calls it once) where the other variant (commented out in 
tanh.S) would only need it once. (it would also save 2 calls of inverse and 1 
of ldexp and saves memory by not needing cosh/sinh)

The problem is the other code has a bug. It gives to the ldexp function an 
1-byte-parameter where it should be 2 bytes. (see the 2 lines before the call 
of ldexp.)

Appended is a file which uses this other variant and has this bug fixed. (It 
speedsup  my application which uses tanh extensively about 40%.)





File Attachments
-------------------

-------------------------------------------------------
Date: Don 16.09.2004 at 10:41  Name: tanh.S  Size: 3,71KB   By: None
my version using the corrected other variant to calculate tanh
http://savannah.nongnu.org/bugs/download.php?item_id=10413&amp;item_file_id=1676






For detailed info, follow this link:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=10413>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]