diff options
author | 2008-06-21 08:26:19 +0000 | |
---|---|---|
committer | 2008-06-21 08:26:19 +0000 | |
commit | 044349e209ed7c0d938f3f207aa909b446b9de0d (patch) | |
tree | e68aabba2fd2848ea79105dcec43530648cca78d /lib/libm/noieee_src/n_cosh.c | |
parent | use optopt to get invalid flag, instead of return value of getopt, (diff) | |
download | wireguard-openbsd-044349e209ed7c0d938f3f207aa909b446b9de0d.tar.xz wireguard-openbsd-044349e209ed7c0d938f3f207aa909b446b9de0d.zip |
cleaning up, no functional changes
- no support for National 32000, removing ns32000/national ifdefs maze
- remove tahoe defs
- ansify
looks fine to millert@; who also noticed rint removal
Diffstat (limited to 'lib/libm/noieee_src/n_cosh.c')
-rw-r--r-- | lib/libm/noieee_src/n_cosh.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libm/noieee_src/n_cosh.c b/lib/libm/noieee_src/n_cosh.c index a95dd73d88a..c42daa1ac33 100644 --- a/lib/libm/noieee_src/n_cosh.c +++ b/lib/libm/noieee_src/n_cosh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_cosh.c,v 1.7 2008/06/12 22:43:36 martynas Exp $ */ +/* $OpenBSD: n_cosh.c,v 1.8 2008/06/21 08:26:19 martynas Exp $ */ /* $NetBSD: n_cosh.c,v 1.1 1995/10/10 23:36:42 ragge Exp $ */ /* * Copyright (c) 1985, 1993 @@ -97,14 +97,14 @@ ic(lnovfl, 7.0978271289338397310E2, 9, 1.62E42FEFA39EF) #define lnovfl vccast(lnovfl) #endif -#if defined(__vax__)||defined(tahoe) +#if defined(__vax__) static max = 126 ; -#else /* defined(__vax__)||defined(tahoe) */ +#else /* defined(__vax__) */ static max = 1023 ; -#endif /* defined(__vax__)||defined(tahoe) */ +#endif /* defined(__vax__) */ -double cosh(x) -double x; +double +cosh(double x) { static const double half=1.0/2.0, one=1.0, small=1.0E-18; /* fl(1+small)==1 */ |