From f95a4a932476be2ba99e2fd081e8d2bc6ea12813 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Fri, 15 Dec 2017 09:38:53 -0500 Subject: Import newlib and create makefile --- newlib/libc/machine/h8500/shifts.c | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 newlib/libc/machine/h8500/shifts.c (limited to 'newlib/libc/machine/h8500/shifts.c') diff --git a/newlib/libc/machine/h8500/shifts.c b/newlib/libc/machine/h8500/shifts.c new file mode 100644 index 0000000..5b81069 --- /dev/null +++ b/newlib/libc/machine/h8500/shifts.c @@ -0,0 +1,45 @@ + + +int __ashrhi3(int a,int b) +{ + return a>>b; +} + +int __ashlhi3(int a,int b) +{ + return a<>b; +} + + + + +long __ashrsi3(long a, int b) +{ + return a>>b; +} + +long __ashlsi3(long a,int b) +{ + return a<>b; +} + -- cgit v1.2.3