math: Move mathcommon.h to toplevel include.
[libcstd.git] / src / math / nan.c
blob68f9c0d1cf11309aa5e2bc0a0653d11ffffc579e
1 /*
2 * nan: generate quiet NaNs, if supported.
3 * Copyright (C) 2010 Nick Bowler.
5 * License LGPLv3+: GNU LGPL version 3 or later. See COPYING.LIB for terms.
6 * See <http://www.gnu.org/licenses/lgpl.html> if you did not receive a copy.
7 * This is free software: you are free to change and redistribute it.
8 * There is NO WARRANTY, to the extent permitted by law.
9 */
11 #include <cstd/mathcommon.h>
13 TYPE MF(nan)(const char *tagp)
15 #ifdef NAN
16 return NAN;
17 #else
18 return 0;
19 #endif