1*8e54f10bSkleink /* $NetBSD: isnan.c,v 1.3 2004/03/04 23:42:39 kleink Exp $ */
2a8151a52Sthorpej
3a8151a52Sthorpej /*-
4a8151a52Sthorpej * Copyright (c) 1991, 1993
5a8151a52Sthorpej * The Regents of the University of California. All rights reserved.
6a8151a52Sthorpej *
7a8151a52Sthorpej * Redistribution and use in source and binary forms, with or without
8a8151a52Sthorpej * modification, are permitted provided that the following conditions
9a8151a52Sthorpej * are met:
10a8151a52Sthorpej * 1. Redistributions of source code must retain the above copyright
11a8151a52Sthorpej * notice, this list of conditions and the following disclaimer.
12a8151a52Sthorpej * 2. Redistributions in binary form must reproduce the above copyright
13a8151a52Sthorpej * notice, this list of conditions and the following disclaimer in the
14a8151a52Sthorpej * documentation and/or other materials provided with the distribution.
15eb7c1594Sagc * 3. Neither the name of the University nor the names of its contributors
16a8151a52Sthorpej * may be used to endorse or promote products derived from this software
17a8151a52Sthorpej * without specific prior written permission.
18a8151a52Sthorpej *
19a8151a52Sthorpej * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20a8151a52Sthorpej * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21a8151a52Sthorpej * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22a8151a52Sthorpej * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23a8151a52Sthorpej * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24a8151a52Sthorpej * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25a8151a52Sthorpej * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26a8151a52Sthorpej * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27a8151a52Sthorpej * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28a8151a52Sthorpej * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29a8151a52Sthorpej * SUCH DAMAGE.
30a8151a52Sthorpej */
31a8151a52Sthorpej
32a8151a52Sthorpej #include <sys/cdefs.h>
33a8151a52Sthorpej #if defined(LIBC_SCCS) && !defined(lint)
34a8151a52Sthorpej #if 0
35a8151a52Sthorpej static char sccsid[] = "@(#)isinf.c 8.1 (Berkeley) 6/4/93";
36a8151a52Sthorpej #else
37*8e54f10bSkleink __RCSID("$NetBSD: isnan.c,v 1.3 2004/03/04 23:42:39 kleink Exp $");
38a8151a52Sthorpej #endif
39a8151a52Sthorpej #endif /* LIBC_SCCS and not lint */
40a8151a52Sthorpej
41a8151a52Sthorpej #include "namespace.h"
42a8151a52Sthorpej #include <math.h>
43a8151a52Sthorpej
44*8e54f10bSkleink #undef isnan
45*8e54f10bSkleink int isnan __P((double));
46a8151a52Sthorpej
47a8151a52Sthorpej /* ARGSUSED */
48a8151a52Sthorpej int
isnan(double d)49a8151a52Sthorpej isnan(double d)
50a8151a52Sthorpej {
51a8151a52Sthorpej return (0);
52a8151a52Sthorpej }
53