From 87eff3dac6f997597a435ab5c4443e862e0dccb7 Mon Sep 17 00:00:00 2001 From: martynas <> Date: Thu, 28 Apr 2011 18:05:39 +0000 Subject: [PATCH] - enable fenv - add nearbyint, nearbyintf and nearbyintl implemented using fenv --- src/include/Makefile | 6 +++--- src/include/math.h | 8 ++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/include/Makefile b/src/include/Makefile index bc46796c..a42662f0 100644 --- a/src/include/Makefile +++ b/src/include/Makefile @@ -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 $ # @(#)Makefile 5.45.1.1 (Berkeley) 5/6/91 @@ -12,8 +12,8 @@ # Missing: mp.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 \ - 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 \ 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 \ diff --git a/src/include/math.h b/src/include/math.h index c03e466c..769659e0 100644 --- a/src/include/math.h +++ b/src/include/math.h @@ -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. @@ -201,9 +201,7 @@ double erfc(double); double lgamma(double); double tgamma(double); -#if 0 double nearbyint(double); -#endif double rint(double); long int lrint(double); long long int llrint(double); @@ -312,9 +310,7 @@ float tgammaf(float); float ceilf(float); float floorf(float); -#if 0 float nearbyintf(float); -#endif float rintf(float); long int lrintf(float); long long int llrintf(float); @@ -444,8 +440,8 @@ long double tgammal(long double); #if 0 long double ceill(long double); long double floorl(long double); -long double nearbyintl(long double); #endif +long double nearbyintl(long double); long double rintl(long double); #if 0 long int lrintl(long double);