OSDN Git Service

Miscellaneous changes discovered during manual audit.
authorEarnie Boyd <earnie@users.sourceforge.net>
Thu, 6 Sep 2012 21:25:43 +0000 (17:25 -0400)
committerEarnie Boyd <earnie@users.sourceforge.net>
Thu, 6 Sep 2012 21:25:43 +0000 (17:25 -0400)
* src/libcrt/math/lgammal.c: Remove generated file preamble and move to
misc/src/libcrt/math/.
* src/libcrt/math/s_erf.c: Ditto.
* src/libcrt/math/sf_erf.c: Ditto.
* src/libcrt/math/tgammal.c: Ditto.
* src/libcrt/stdio/pformat.c: Ditto.
Define __MSVCRT_VERSION__ as 0x0800 before including headers.
* src/libcrt/stdio/pformat.h: Move to src/libcrt/include.
* src/libcrt/crt/test_headers.c: Move to tests/libcrt/.
* src/libcrt/math/lround.c: New file.
* src/libcrt/math/lroundf.c: Ditto.
* src/libcrt/math/lroundl.c: Ditto.
* src/libcrt/math/round.c: Ditto.
* src/libcrt/math/roundf.c: Ditto.
* src/libcrt/math/roundl.c: Ditto.
* Makefile.in: Modify source directory for lgammal.c, s_erf.c, sf_erf.c
and tgammal.c.
Add lround.c, lroundf.c, lroundl.c, round.c, roundf.c and roundl.c.
Remove lround_generic.c and round_generic.c.

15 files changed:
ChangeLog
Makefile.in
misc/src/libcrt/math/lgammal.c [moved from src/libcrt/math/lgammal.c with 89% similarity]
misc/src/libcrt/math/s_erf.c [moved from src/libcrt/math/s_erf.c with 90% similarity]
misc/src/libcrt/math/sf_erf.c [moved from src/libcrt/math/sf_erf.c with 86% similarity]
misc/src/libcrt/math/tgammal.c [moved from src/libcrt/math/tgammal.c with 90% similarity]
misc/src/libcrt/stdio/pformat.c [moved from src/libcrt/stdio/pformat.c with 98% similarity]
src/libcrt/include/pformat.h [moved from src/libcrt/stdio/pformat.h with 84% similarity]
src/libcrt/math/lround.c [new file with mode: 0644]
src/libcrt/math/lroundf.c [new file with mode: 0644]
src/libcrt/math/lroundl.c [new file with mode: 0644]
src/libcrt/math/round.c [new file with mode: 0644]
src/libcrt/math/roundf.c [new file with mode: 0644]
src/libcrt/math/roundl.c [new file with mode: 0644]
tests/libcrt/test_headers.c [moved from src/libcrt/crt/test_headers.c with 100% similarity]

index 161ce86..6c10141 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,29 @@
 2012-09-06  Earnie Boyd  <earnie@users.sourceforge.net>
 
+       Miscellaneous changes discovered during manual audit.
+
+       * src/libcrt/math/lgammal.c: Remove generated file preamble and move to
+       misc/src/libcrt/math/.
+       * src/libcrt/math/s_erf.c: Ditto.
+       * src/libcrt/math/sf_erf.c: Ditto.
+       * src/libcrt/math/tgammal.c: Ditto.
+       * src/libcrt/stdio/pformat.c: Ditto.
+       Define __MSVCRT_VERSION__ as 0x0800 before including headers.
+       * src/libcrt/stdio/pformat.h: Move to src/libcrt/include.
+       * src/libcrt/crt/test_headers.c: Move to tests/libcrt/.
+       * src/libcrt/math/lround.c: New file.
+       * src/libcrt/math/lroundf.c: Ditto.
+       * src/libcrt/math/lroundl.c: Ditto.
+       * src/libcrt/math/round.c: Ditto.
+       * src/libcrt/math/roundf.c: Ditto.
+       * src/libcrt/math/roundl.c: Ditto.
+       * Makefile.in: Modify source directory for lgammal.c, s_erf.c, sf_erf.c
+       and tgammal.c.
+       Add lround.c, lroundf.c, lroundl.c, round.c, roundf.c and roundl.c.
+       Remove lround_generic.c and round_generic.c.
+
+2012-09-06  Earnie Boyd  <earnie@users.sourceforge.net>
+
        Manual resolution for LICENSE for files already containing a file
        preamble as appropriate.
 
index 67b67e6..9a8d6e8 100644 (file)
@@ -400,7 +400,7 @@ math_SOURCES := \
   $(SRCDIR)/ldexpl.c \
   $(MSRCDIR)/lgamma.c \
   $(MSRCDIR)/lgammaf.c \
-  $(SRCDIR)/lgammal.c \
+  $(MSRCDIR)/lgammal.c \
   $(SRCDIR)/llrint.c \
   $(SRCDIR)/llrintf.c \
   $(SRCDIR)/llrintl.c \
@@ -420,7 +420,9 @@ math_SOURCES := \
   $(SRCDIR)/lrint.c \
   $(SRCDIR)/lrintf.c \
   $(SRCDIR)/lrintl.c \
-  $(SRCDIR)/lround_generic.c \
+  $(SRCDIR)/lround.c \
+  $(SRCDIR)/lroundl.c \
+  $(SRCDIR)/lroundf.c \
   $(SRCDIR)/modff.c \
   $(SRCDIR)/modfl.c \
   $(SRCDIR)/nearbyint.S \
@@ -445,12 +447,14 @@ math_SOURCES := \
   $(SRCDIR)/rint.c \
   $(SRCDIR)/rintf.c \
   $(SRCDIR)/rintl.c \
-  $(SRCDIR)/round_generic.c \
-  $(SRCDIR)/s_erf.c \
+  $(SRCDIR)/round.c \
+  $(SRCDIR)/roundf.c \
+  $(SRCDIR)/roundl.c \
+  $(MSRCDIR)/s_erf.c \
   $(SRCDIR)/scalbn.S \
   $(SRCDIR)/scalbnf.S \
   $(SRCDIR)/scalbnl.S \
-  $(SRCDIR)/sf_erf.c \
+  $(MSRCDIR)/sf_erf.c \
   $(SRCDIR)/signbit.c \
   $(SRCDIR)/signbitf.c \
   $(SRCDIR)/signbitl.c \
@@ -466,7 +470,7 @@ math_SOURCES := \
   $(SRCDIR)/tanl.S \
   $(MSRCDIR)/tgamma.c \
   $(MSRCDIR)/tgammaf.c \
-  $(SRCDIR)/tgammal.c \
+  $(MSRCDIR)/tgammal.c \
   $(SRCDIR)/trunc.c \
   $(SRCDIR)/truncf.c \
   $(SRCDIR)/truncl.c
@@ -500,6 +504,7 @@ search_SOURCES := \
   $(SRCDIR)/twalk.c
 
 SRCDIR := src/libcrt/stdio
+MSRCDIR := misc/src/libcrt/stdio
 stdio_SOURCES := \
   $(SRCDIR)/btowc.c \
   $(SRCDIR)/fopen64.c \
@@ -507,7 +512,7 @@ stdio_SOURCES := \
   $(SRCDIR)/fseeko64.c \
   $(SRCDIR)/ftello64.c \
   $(SRCDIR)/lseek64.c \
-  $(SRCDIR)/pformat.c \
+  $(MSRCDIR)/pformat.c \
   $(SRCDIR)/printf.c \
   $(SRCDIR)/snprintf.c \
   $(SRCDIR)/snwprintf.c \
similarity index 89%
rename from src/libcrt/math/lgammal.c
rename to misc/src/libcrt/math/lgammal.c
index 755caaf..54631fc 100644 (file)
@@ -1,26 +1,3 @@
-/**
- * @file lgammal.c
- * @copy 2012 MinGW.org project
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice (including the next
- * paragraph) shall be included in all copies or substantial portions of the
- * Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
 /*                                                     lgaml()
  *
  *     Natural logarithm of gamma function
similarity index 90%
rename from src/libcrt/math/s_erf.c
rename to misc/src/libcrt/math/s_erf.c
index b928ba8..6c5d7d3 100644 (file)
@@ -1,27 +1,3 @@
-/**
- * @file s_erf.c
- * @copy 2012 MinGW.org project
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice (including the next
- * paragraph) shall be included in all copies or substantial portions of the
- * Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-
 /* @(#)s_erf.c 1.3 95/01/18 */
 /*
  * ====================================================
similarity index 86%
rename from src/libcrt/math/sf_erf.c
rename to misc/src/libcrt/math/sf_erf.c
index ec1085c..2188539 100644 (file)
@@ -1,26 +1,3 @@
-/**
- * @file sf_erf.c
- * @copy 2012 MinGW.org project
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice (including the next
- * paragraph) shall be included in all copies or substantial portions of the
- * Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
 /* sf_erf.c -- float version of s_erf.c.
  * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
  */
similarity index 90%
rename from src/libcrt/math/tgammal.c
rename to misc/src/libcrt/math/tgammal.c
index cc740b5..f9fe285 100644 (file)
@@ -1,26 +1,3 @@
-/**
- * @file tgammal.c
- * @copy 2012 MinGW.org project
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice (including the next
- * paragraph) shall be included in all copies or substantial portions of the
- * Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
 /*                                                     gammal.c
  *
  *     Gamma function
similarity index 98%
rename from src/libcrt/stdio/pformat.c
rename to misc/src/libcrt/stdio/pformat.c
index e8d873c..cc63800 100644 (file)
@@ -1,30 +1,8 @@
-/**
- * @file pformat.c
- * @copy 2012 MinGW.org project
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice (including the next
- * paragraph) shall be included in all copies or substantial portions of the
- * Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
 /* FIXME: to be removed one day; for now we explicitly are not
  * prepared to support the POSIX-XSI additions to the C99 standard.
  */
 #undef   WITH_XSI_FEATURES
+#define __MSVCRT_VERSION__ 0x0800
 
 /* pformat.c
  *
similarity index 84%
rename from src/libcrt/stdio/pformat.h
rename to src/libcrt/include/pformat.h
index 5baac41..324004e 100644 (file)
  * DEALINGS IN THE SOFTWARE.
  */
 #ifndef PFORMAT_H
+#define PFORMAT_H
 /*
- * pformat.h
- *
- * $Id: pformat.h,v 1.1 2008/07/28 23:24:20 keithmarshall Exp $
- *
  * A private header, defining the `pformat' API; it is to be included
  * in each compilation unit implementing any of the `printf' family of
  * functions, but serves no useful purpose elsewhere.
- *
- * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
- *
- * This is free software.  You may redistribute and/or modify it as you
- * see fit, without restriction of copyright.
- *
- * This software is provided "as is", in the hope that it may be useful,
- * but WITHOUT WARRANTY OF ANY KIND, not even any implied warranty of
- * MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.  At no
- * time will the author accept any form of liability for any damages,
- * however caused, resulting from the use of this software.
  */
-#define PFORMAT_H
 
 /* The following macros reproduce definitions from _mingw.h,
  * so that compilation will not choke, if using any compiler
diff --git a/src/libcrt/math/lround.c b/src/libcrt/math/lround.c
new file mode 100644 (file)
index 0000000..e74959a
--- /dev/null
@@ -0,0 +1,25 @@
+/**
+ * @file lround.c
+ * @copy 2012 MinGW.org project
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ * 
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+#define FUNCTION lround
+#include "lround_generic.c"
diff --git a/src/libcrt/math/lroundf.c b/src/libcrt/math/lroundf.c
new file mode 100644 (file)
index 0000000..541951a
--- /dev/null
@@ -0,0 +1,25 @@
+/**
+ * @file lroundf.c
+ * @copy 2012 MinGW.org project
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ * 
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+#define FUNCTION lroundf
+#include "lround_generic.c"
diff --git a/src/libcrt/math/lroundl.c b/src/libcrt/math/lroundl.c
new file mode 100644 (file)
index 0000000..2801589
--- /dev/null
@@ -0,0 +1,25 @@
+/**
+ * @file lroundl.c
+ * @copy 2012 MinGW.org project
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ * 
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+#define FUNCTION lroundl
+#include "lround_generic.c"
diff --git a/src/libcrt/math/round.c b/src/libcrt/math/round.c
new file mode 100644 (file)
index 0000000..1b5b5ef
--- /dev/null
@@ -0,0 +1,25 @@
+/**
+ * @file round.c
+ * @copy 2012 MinGW.org project
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ * 
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+#define FUNCTION round
+#include "round_generic.c"
diff --git a/src/libcrt/math/roundf.c b/src/libcrt/math/roundf.c
new file mode 100644 (file)
index 0000000..895349b
--- /dev/null
@@ -0,0 +1,25 @@
+/**
+ * @file roundf.c
+ * @copy 2012 MinGW.org project
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ * 
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+#define FUNCTION roundf
+#include "round_generic.c"
diff --git a/src/libcrt/math/roundl.c b/src/libcrt/math/roundl.c
new file mode 100644 (file)
index 0000000..2951023
--- /dev/null
@@ -0,0 +1,25 @@
+/**
+ * @file roundl.c
+ * @copy 2012 MinGW.org project
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ * 
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+#define FUNCTION roundl
+#include "round_generic.c"