Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/epiphany/machine/stdlib.h')
-rw-r--r--newlib/libc/machine/epiphany/machine/stdlib.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/newlib/libc/machine/epiphany/machine/stdlib.h b/newlib/libc/machine/epiphany/machine/stdlib.h
new file mode 100644
index 000000000..95b4063b0
--- /dev/null
+++ b/newlib/libc/machine/epiphany/machine/stdlib.h
@@ -0,0 +1,15 @@
+static __inline__ long int
+random (void)
+{
+ extern int rand(void);
+
+ return rand ();
+}
+
+static __inline__ void
+srandom (unsigned int seed)
+{
+ void srand(unsigned int seed);
+
+ srand (seed);
+}