summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stage3/def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stage3/def.h b/stage3/def.h
index cc3c5df..0f47f51 100644
--- a/stage3/def.h
+++ b/stage3/def.h
@@ -22,4 +22,6 @@ typedef u8 bool;
#define false ((bool) 0)
#define true ((bool) 1)
+#define BITCAST(expr, from, to) (((union { from f; to t; }) { .f = expr }).t)
+
#endif