aboutsummaryrefslogtreecommitdiff
path: root/gcc/f/runtime/libF77/i_mod.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/f/runtime/libF77/i_mod.c')
-rw-r--r--gcc/f/runtime/libF77/i_mod.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/f/runtime/libF77/i_mod.c b/gcc/f/runtime/libF77/i_mod.c
new file mode 100644
index 00000000000..6937c421357
--- /dev/null
+++ b/gcc/f/runtime/libF77/i_mod.c
@@ -0,0 +1,10 @@
+#include "f2c.h"
+
+#ifdef KR_headers
+integer i_mod(a,b) integer *a, *b;
+#else
+integer i_mod(integer *a, integer *b)
+#endif
+{
+return( *a % *b);
+}