使用struct很好.
我会做这样的事情:
#if COMPILER_WHICH_SUPPORTS_128_BIT_TYPE typedef __uint128 u128t; #define COMPARE(a, b) ((a) == (b)) #else typedef struct { uint64_t hi; uint64_t lo; } u128t; #define COMPARE(a, b) MyCompareFunction((a), (b)) #endif