Browse Source

- enable fenv

- add nearbyint, nearbyintf and nearbyintl implemented using fenv
OPENBSD_5_0
martynas 13 years ago
parent
commit
87eff3dac6
2 changed files with 5 additions and 9 deletions
  1. +3
    -3
      src/include/Makefile
  2. +2
    -6
      src/include/math.h

+ 3
- 3
src/include/Makefile View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.157 2010/10/28 08:34:37 mikeb Exp $
# $OpenBSD: Makefile,v 1.158 2011/04/28 18:05:39 martynas Exp $
# $NetBSD: Makefile,v 1.59 1996/05/15 21:36:43 jtc Exp $ # $NetBSD: Makefile,v 1.59 1996/05/15 21:36:43 jtc Exp $
# @(#)Makefile 5.45.1.1 (Berkeley) 5/6/91 # @(#)Makefile 5.45.1.1 (Berkeley) 5/6/91
@ -12,8 +12,8 @@
# Missing: mp.h # Missing: mp.h
FILES= a.out.h ar.h assert.h bitstring.h blf.h bm.h bsd_auth.h \ FILES= a.out.h ar.h assert.h bitstring.h blf.h bm.h bsd_auth.h \
complex.h cpio.h ctype.h curses.h db.h dbm.h des.h dirent.h disktab.h \ complex.h cpio.h ctype.h curses.h db.h dbm.h des.h dirent.h disktab.h \
dlfcn.h elf_abi.h err.h errno.h fnmatch.h fstab.h fts.h ftw.h getopt.h \
glob.h grp.h ifaddrs.h inttypes.h iso646.h kvm.h langinfo.h \
dlfcn.h elf_abi.h err.h errno.h fenv.h fnmatch.h fstab.h fts.h ftw.h \
getopt.h glob.h grp.h ifaddrs.h inttypes.h iso646.h kvm.h langinfo.h \
libgen.h limits.h locale.h login_cap.h malloc.h math.h md4.h \ libgen.h limits.h locale.h login_cap.h malloc.h math.h md4.h \
md5.h memory.h mpool.h ndbm.h netdb.h netgroup.h nlist.h nl_types.h \ md5.h memory.h mpool.h ndbm.h netdb.h netgroup.h nlist.h nl_types.h \
ohash.h paths.h poll.h pwd.h ranlib.h re_comp.h \ ohash.h paths.h poll.h pwd.h ranlib.h re_comp.h \


+ 2
- 6
src/include/math.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: math.h,v 1.27 2010/12/14 11:16:15 martynas Exp $ */
/* $OpenBSD: math.h,v 1.28 2011/04/28 18:05:39 martynas Exp $ */
/* /*
* ==================================================== * ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@ -201,9 +201,7 @@ double erfc(double);
double lgamma(double); double lgamma(double);
double tgamma(double); double tgamma(double);
#if 0
double nearbyint(double); double nearbyint(double);
#endif
double rint(double); double rint(double);
long int lrint(double); long int lrint(double);
long long int llrint(double); long long int llrint(double);
@ -312,9 +310,7 @@ float tgammaf(float);
float ceilf(float); float ceilf(float);
float floorf(float); float floorf(float);
#if 0
float nearbyintf(float); float nearbyintf(float);
#endif
float rintf(float); float rintf(float);
long int lrintf(float); long int lrintf(float);
long long int llrintf(float); long long int llrintf(float);
@ -444,8 +440,8 @@ long double tgammal(long double);
#if 0 #if 0
long double ceill(long double); long double ceill(long double);
long double floorl(long double); long double floorl(long double);
long double nearbyintl(long double);
#endif #endif
long double nearbyintl(long double);
long double rintl(long double); long double rintl(long double);
#if 0 #if 0
long int lrintl(long double); long int lrintl(long double);


Loading…
Cancel
Save