Changeset 2813 for trunk


Ignore:
Timestamp:
Sep 10, 2006, 1:36:37 AM (19 years ago)
Author:
bird
Message:

Implemented nan(), nanl(), and nanf(). Fixes #125.

Location:
trunk/libc
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/libc/ChangeLog.LIBC

    r2810 r2813  
    22
    33TODO: open replace on RAMFS fails with error 32!
     4
     52006-09-09: knut st. osmundsen <bird-gccos2-spam@anduin.net>
     6    - libc:
     7        o #125: Implemented nan(), nanl(), and nanf().
    48
    592006-09-08: knut st. osmundsen <bird-gccos2-spam@anduin.net>
  • trunk/libc/include/math.h

    r2150 r2813  
    490490long double     truncl(long double);
    491491
    492 /* bird: these were missing, gcc apparently inlines them. */
     492/* bird: start */
    493493double          nan(const char *);
    494494float           nanf(const char *);
     495long double     nanl(const char *);
     496/* bird: end */
    495497
    496498#endif /* __ISO_C_VISIBLE >= 1999 */
  • trunk/libc/src/libc/libc.def

    r2787 r2813  
    19551955    "___libc_Back_termDll" @1953
    19561956    "___libc_ForkDeregisterModule" @1954
     1957    "__std_nan" @1955
     1958    "__std_nanf" @1956
     1959    "__std_nanl" @1957
     1960
  • trunk/libc/src/libc/math/Makefile.kmk

    r2702 r2813  
    3535libc_libc_math_SOURCES = \
    3636    $(PATH_LIBC_SRC)/libc/math/cbrtl.c \
     37    $(PATH_LIBC_SRC)/libc/math/nan.c \
     38    $(PATH_LIBC_SRC)/libc/math/nanf.c \
     39    $(PATH_LIBC_SRC)/libc/math/nanl.c \
    3740
    3841libc_libc_math_SOURCES.x86 = \
Note: See TracChangeset for help on using the changeset viewer.