• R/O
  • SSH
  • HTTPS

naniya: Commit


Commit MetaInfo

Revision160 (tree)
Zeit2007-05-24 18:11:30
Autorchapuni

Log Message

int64に関する汚い便利マクロを追加。

Ändern Zusammenfassung

Diff

--- trunk/naniya/mty/util.h (revision 159)
+++ trunk/naniya/mty/util.h (revision 160)
@@ -54,6 +54,15 @@
5454 return popcnt32(x) + popcnt32(x >> 32);
5555 }
5656
57+/***************************************************************
58+ *
59+ * uint64_t を%08X%08Xに喰わせるためのマクロ
60+ *
61+ */
62+
63+#define F016LLX "%08X%08X"
64+#define A016LLX(n) (unsigned)((uint64_t)(n) >> 32), (unsigned)(uint64_t)(n)
65+
5766 #endif /* UTIL_H__ */
5867
5968 /*
Show on old repository browser