-#ifndef FUNC
-# define FUNC __ieee754_fmodl
-# define FUNC_FINITE __fmodl
-#endif
-#define float_type long double
-#include <e_fmod.c>
+/* Fmod function, m68k double version.
+ Copyright (C) 1996-2025 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library. If not, see
+ <https://www.gnu.org/licenses/>. */
+
+#include <math.h>
+#include <libm-alias-finite.h>
+#include "mathimpl.h"
+
+long double
+__ieee754_fmodl (long double x, long double y)
+{
+ return __m81_u(__ieee754_fmodl)(x, y);
+}
+libm_alias_finite (__ieee754_fmodl, __fmodl)
-#define FUNC __ieee754_remainder
-#define FUNC_FINITE __remainder
-#include <e_fmod.c>
+/* Remainder function, m68k double version.
+ Copyright (C) 1996-2025 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library. If not, see
+ <https://www.gnu.org/licenses/>. */
+
+#include <math.h>
+#include <libm-alias-finite.h>
+#include "mathimpl.h"
+
+double
+__ieee754_remainder (double x, double y)
+{
+ return __m81_u(__ieee754_remainder)(x, y);
+}
+libm_alias_finite (__ieee754_remainder, __remainder)
-#define FUNC __ieee754_remainderf
-#define FUNC_FINITE __remainderf
-#define float_type float
-#include <e_fmod.c>
+/* Remainder function, m68k float version.
+ Copyright (C) 1996-2025 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library. If not, see
+ <https://www.gnu.org/licenses/>. */
+
+
+#include <math.h>
+#include <libm-alias-finite.h>
+#include "mathimpl.h"
+
+float
+__ieee754_remainderf (float x, float y)
+{
+ return __m81_u(__ieee754_remainderf)(x, y);
+}
+libm_alias_finite (__ieee754_remainderf, __remainderf)
-#define FUNC __ieee754_remainderl
-#define FUNC_FINITE __remainderl
-#include <e_fmodl.c>
+/* Remainder function, m68k long double version.
+ Copyright (C) 1996-2025 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library. If not, see
+ <https://www.gnu.org/licenses/>. */
+
+
+#include <math.h>
+#include <libm-alias-finite.h>
+#include "mathimpl.h"
+
+long double
+__ieee754_remainderl (long double x, long double y)
+{
+ return __m81_u(__ieee754_remainderl)(x, y);
+}
+libm_alias_finite (__ieee754_remainderl, __remainderl)