Displaying 1 result from an estimated 1 matches for "dwunion".
Did you mean:
a_union
2004 Jun 23
4
CRIS port of klibc
..../klibc/libgcc/__negdi2.c Thu Jan 1 01:00:00 1970
+++ ../klibc-0.146-modified/klibc/libgcc/__negdi2.c Wed Jun 23 09:42:14
2004
@@ -0,0 +1,24 @@
+#include <stdint.h>
+#include <stddef.h>
+
+struct DWstruct {int32_t low, high;};
+
+typedef union
+{
+ struct DWstruct s;
+ int64_t ll;
+} DWunion;
+
+
+__negdi2 (int64_t u)
+{
+ DWunion w;
+ DWunion uu;
+
+ uu.ll = u;
+
+ w.s.low = -uu.s.low;
+ w.s.high = -uu.s.high - ((uint32_t) w.s.low > 0);
+
+ return w.ll;
+}
diff -urN ./klibc/libgcc/crisarith.c
../klibc-0.146-modified/klibc/libgcc/crisarith.c
--- ./klibc/libgcc/crisarith.c Thu...