patchAVR C Runtime Library - Patches: patch #9864, Use proper float function names...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #9864: Use proper float function names and prototypes.

Submitter:  Georg-Johann Lay <gjlayde>
Submitted:  Thu 17 Oct 2019 08:27:15 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  joerg_wunsch Open/Closed:  Closed

Thu 20 May 2021 10:22:49 PM UTC, comment #1: 

applied in r2554, danke!

Joerg Wunsch <joerg_wunsch>
Group administrator
Thu 17 Oct 2019 08:27:15 AM UTC, original submission:  


        * include/math.h
        (cos, sin, tan, fmod, modf, sqrt, cbrt, hypot, square, floor, ceil)
        (frexp, ldexp, exp, cosh, sinh, tanh, asin, acos, atan, atan2)
        (log, log10, pow, isnan, isinf, signbit, fdim, fma, fmax, fmin)
        (trunc, round, lround, lrint) [double=64-bit]: Provide double
        prototypes.
        [double=32-bit]: Provide protos with assembler names which are
        the corresponding float function name.

        (cosf, sinf, tanf, fmodf, modff, sqrtf, cbrtf, hypotf, squaref)
        (floorf, ceilf, frexpf, ldexpf, expf, coshf, sinhf, tanhf, asinf)
        (acosf, atanf, atan2f, logf, log10f, powf, isnanf, isinff)
        (signbitf, fdimf, fmaf, fmaxf, fmin, truncf, roundf, lroundf)
        (lrintf):
        Turn from macro to proper prototype.
        (fabs, fabsf, isfinite, isfinitef, copysign, copysignf): Implement.

libm/fplib/
        * libm/fplib/acos.S: Use correct names for functions that deal
        with float, e.g. acosf instead of acos.  Adjust comments.
        * libm/fplib/asin.S: Same.
        * libm/fplib/atan.S: Same.
        * libm/fplib/atan2.S: Same.
        * libm/fplib/cbrt.S: Same.
        * libm/fplib/ceil.S: Same.
        * libm/fplib/copysign.S: Same.
        * libm/fplib/cos.S: Same.
        * libm/fplib/cosh.S: Same.
        * libm/fplib/exp.S: Same.
        * libm/fplib/fdim.S: Same.
        * libm/fplib/floor.S: Same.
        * libm/fplib/fma.S: Same.
        * libm/fplib/fmax.S: Same.
        * libm/fplib/fmin.S: Same.
        * libm/fplib/fmod.S: Same.
        * libm/fplib/fp_arccos.S: Same.
        * libm/fplib/frexp.S: Same.
        * libm/fplib/hypot.S: Same.
        * libm/fplib/isfinite.S: Same.
        * libm/fplib/isinf.S: Same.
        * libm/fplib/isnan.S: Same.
        * libm/fplib/ldexp.S: Same.
        * libm/fplib/log.S: Same.
        * libm/fplib/log10.S: Same.
        * libm/fplib/lrint.S: Same.
        * libm/fplib/lround.S: Same.
        * libm/fplib/modf.S: Same.
        * libm/fplib/pow.S: Same.
        * libm/fplib/round.S: Same.
        * libm/fplib/signbit.S: Same.
        * libm/fplib/sin.S: Same.
        * libm/fplib/sinh.S: Same.
        * libm/fplib/sqrt.S: Same.
        * libm/fplib/square.S: Same.
        * libm/fplib/tan.S: Same.
        * libm/fplib/tanh.S: Same.
        * libm/fplib/trunc.S: Same.


Georg-Johann Lay <gjlayde>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #47704:  math64.diff added by gjlayde (53KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by gjlayde (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-20 joerg_wunsch StatusNone Done
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
    2019-10-17 gjlayde Attached File- Added math64.diff, #47704

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code