Add standard skeleton stuff.
authorUlrich Drepper <drepper@redhat.com>
Sun, 26 Oct 1997 19:58:40 +0000 (19:58 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 26 Oct 1997 19:58:40 +0000 (19:58 +0000)
sysdeps/m68k/fpu/s_lrint.c
sysdeps/m68k/fpu/s_lrintf.c [new file with mode: 0644]
sysdeps/m68k/fpu/s_lrintl.c [new file with mode: 0644]

index a704411..511d288 100644 (file)
 #define __LIBC_M81_MATH_INLINES
 #include <math.h>
 
+#ifndef suffix
+#define suffix /*empty*/
+#endif
+#ifndef float_type
+#define float_type double
+#endif
+
+#define CONCATX(a,b) __CONCAT(a,b)
+
 long int
-__lrint (long double x)
+CONCATX(__lrint,suffix) (float_type x)
 {
-  return __m81_u(__lrint) (x);
+  return __m81_u(CONCATX(__lrint,suffix)) (x);
 }
 
-weak_alias (__lrint, lrint)
+#define weak_aliasx(a,b) weak_alias(a,b)
+weak_aliasx (CONCATX(__lrint,suffix), CONCATX(lrint,suffix))
diff --git a/sysdeps/m68k/fpu/s_lrintf.c b/sysdeps/m68k/fpu/s_lrintf.c
new file mode 100644 (file)
index 0000000..44924cb
--- /dev/null
@@ -0,0 +1,3 @@
+#define suffix f
+#define float_type float
+#include <s_lrint.c>
diff --git a/sysdeps/m68k/fpu/s_lrintl.c b/sysdeps/m68k/fpu/s_lrintl.c
new file mode 100644 (file)
index 0000000..cd0bd23
--- /dev/null
@@ -0,0 +1,3 @@
+#define suffix l
+#define float_type long double
+#include <s_lrint.c>