diff options
| author | christos <christos@NetBSD.org> | 2016-01-13 19:24:59 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2016-01-13 19:24:59 +0000 |
| commit | a9cc03d5ae6c144ac3d14dbbe60d7922b532f3dc (patch) | |
| tree | 45905651b35cf9b92d48ecfed92e3c5037e7d2d9 /gnu/dist/groff/src/libs/libgroff/hypot.cpp | |
| parent | 64a6ddad5b422a192c6fc189ac147ecef15d0290 (diff) | |
groff has moved to external
Diffstat (limited to 'gnu/dist/groff/src/libs/libgroff/hypot.cpp')
| -rw-r--r-- | gnu/dist/groff/src/libs/libgroff/hypot.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/gnu/dist/groff/src/libs/libgroff/hypot.cpp b/gnu/dist/groff/src/libs/libgroff/hypot.cpp deleted file mode 100644 index 03fd400f125..00000000000 --- a/gnu/dist/groff/src/libs/libgroff/hypot.cpp +++ /dev/null @@ -1,42 +0,0 @@ -/* $NetBSD: hypot.cpp,v 1.1.1.1 2006/02/06 18:13:54 wiz Exp $ */ - -/* Copyright (C) 2005 Free Software Foundation, Inc. -This file is part of the GNU C Library. - -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. - -The GNU C Library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Library General Public License for more details. - -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include <math.h> - -#ifdef NEED_DECLARATION_HYPOT - double hypot(double, double); -#endif /* NEED_DECLARATION_HYPOT */ - -double groff_hypot(double x, double y) -{ - double result = hypot(x, y); - -#ifdef __INTERIX - /* hypot() on Interix is broken */ - if (isnan(result) && !isnan(x) && !isnan(y)) - return 0.0; -#endif - - return result; -} |
