summaryrefslogtreecommitdiff
path: root/newlib/libc/machine/h8500/negsi2.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/h8500/negsi2.c')
-rw-r--r--newlib/libc/machine/h8500/negsi2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/newlib/libc/machine/h8500/negsi2.c b/newlib/libc/machine/h8500/negsi2.c
new file mode 100644
index 00000000000..c5b31b19dc6
--- /dev/null
+++ b/newlib/libc/machine/h8500/negsi2.c
@@ -0,0 +1,7 @@
+
+
+long
+__negsi2(long x)
+{
+ return ~x+1;
+}