[Top][All Lists]

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

[avr-libc-dev] [bug #57071] Fix math.h and function names that block 64-

From: Georg-Johann Lay
Subject: [avr-libc-dev] [bug #57071] Fix math.h and function names that block 64-bit double
Date: Thu, 17 Oct 2019 03:10:39 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0


                 Summary: Fix math.h and function names that block 64-bit
                 Project: AVR C Runtime Library
            Submitted by: gjlayde
            Submitted on: Thu 17 Oct 2019 07:10:37 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
        Percent Complete: 0%
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 2.0.0
           Fixed Release: None



Implementation of math.h / libm currently blocks 64-bit double, namely:

1) Function names are wrong, e.g. 32-bit implementation of sine is named
"sin", not "sinf".

2) There are "aliases" in math.h (macros actually) that define the float
version (like "sinf") to the double version (like "sin").  Problem is that

2a) This is the wrong way round ("sin" should be alias of "sinf").

2b) There are no proper prototypes.

2c) Macros are bad, e.g. in C++ when some class implements a method for which
math.h defines a macro, C++ functions / methods are silently renamed.

3) math.h is unconditional, i.e. treats double != float just like double =


Reply to this item at:


  Message sent via Savannah

reply via email to

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