notaz.gp2x.de
/
ia32rtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
translate: more float stuff
[ia32rtools.git]
/
c_auto.h
diff --git
a/c_auto.h
b/c_auto.h
index
31e89e1
..
9b34f88
100644
(file)
--- a/
c_auto.h
+++ b/
c_auto.h
@@
-45,6
+45,16
@@
static inline BOOL PtInRect_sa(LPCRECT r, int x, int y)
return PtInRect(r, p);
}
return PtInRect(r, p);
}
+static inline int do_parity(unsigned int v)
+{
+ v ^= v >> 4;
+ v ^= v >> 2;
+ v ^= v >> 1;
+ return (v ^ 1) & 1;
+}
+
#define do_skip_code_abort() \
printf("%s:%d: skip_code_abort\n", __FILE__, __LINE__); \
*(volatile int *)0 = 1
#define do_skip_code_abort() \
printf("%s:%d: skip_code_abort\n", __FILE__, __LINE__); \
*(volatile int *)0 = 1
+
+// vim:ts=2:sw=2:expandtab