[Top][All Lists]

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

[bug #57071] Fix math.h and function names that block 64-bit double

From: Georg-Johann Lay
Subject: [bug #57071] Fix math.h and function names that block 64-bit double
Date: Wed, 27 Nov 2019 11:51:30 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0

Follow-up Comment #10, bug #57071 (project avr-libc):

Here is an updated version of the patch with the following changes:

* It also defines alias symbols for long double provided long double = float.
* It provides long double prototypes in math.h.
* Adds a new file common/alias.h which defines layout-dependent alias macros
(C + Asm).
* Turns double into float in the C-part of the lib (dtostr[ef], vfprintf,
atof, ...).
* vfprintf depends on sizeof ([long] double) and distinguishes between %lf and
%f if their layouts differ.  However, we are running out of flags (which are
currently 8 at most).
* It fixes abs / labs implementation so they do no more conflict with
* Fixes a bunch of unrelated build warnings so it can be built with

(file #47938)

Additional Item Attachment:

File name: math64-2.diff                  Size:71 KB


Reply to this item at:


  Message sent via Savannah

reply via email to

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