svn commit: trunk/uClibc/libm
aldot at uclibc.org
aldot at uclibc.org
Sat Sep 6 16:39:39 UTC 2008
Author: aldot
Date: 2008-09-06 09:39:39 -0700 (Sat, 06 Sep 2008)
New Revision: 23337
Log:
- fix indentation
Modified:
trunk/uClibc/libm/nan.c
Changeset:
Modified: trunk/uClibc/libm/nan.c
===================================================================
--- trunk/uClibc/libm/nan.c 2008-09-06 14:52:28 UTC (rev 23336)
+++ trunk/uClibc/libm/nan.c 2008-09-06 16:39:39 UTC (rev 23337)
@@ -1,3 +1,10 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * Copyright (C) 2002 by Erik Andersen <andersen at uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
/***********************************************************************
nan, nanf, nanl - return quiet NaN
@@ -17,32 +24,32 @@
double nan (const char *tagp)
{
- if (tagp[0] != '\0') {
- char buf[6 + strlen (tagp)];
- sprintf (buf, "NAN(%s)", tagp);
- return strtod (buf, NULL);
- }
- return NAN;
+ if (tagp[0] != '\0') {
+ char buf[6 + strlen (tagp)];
+ sprintf (buf, "NAN(%s)", tagp);
+ return strtod (buf, NULL);
+ }
+ return NAN;
}
float nanf (const char *tagp)
{
- if (tagp[0] != '\0') {
- char buf[6 + strlen (tagp)];
- sprintf (buf, "NAN(%s)", tagp);
- return strtof (buf, NULL);
- }
- return NAN;
+ if (tagp[0] != '\0') {
+ char buf[6 + strlen (tagp)];
+ sprintf (buf, "NAN(%s)", tagp);
+ return strtof (buf, NULL);
+ }
+ return NAN;
}
#if 0
long double nanl (const char *tagp)
{
- if (tagp[0] != '\0') {
- char buf[6 + strlen (tagp)];
- sprintf (buf, "NAN(%s)", tagp);
- return strtold (buf, NULL);
- }
- return NAN;
+ if (tagp[0] != '\0') {
+ char buf[6 + strlen (tagp)];
+ sprintf (buf, "NAN(%s)", tagp);
+ return strtold (buf, NULL);
+ }
+ return NAN;
}
#endif
More information about the uClibc-cvs
mailing list