X-Git-Url: https://sfsrealm.hopto.org/projects/?a=blobdiff_plain;f=SFTypes.h;h=07adb3c72d7969c7d7dbc4a565ff80e0b9335268;hb=212e7d696e798215d4cddfcb5007c212814728e6;hp=5758b9a13042e40c9a3d86b1f71574e48e1e04e1;hpb=e0b276afa1dc42629b6eaad3ed578c29371f065e;p=SFmpqapi.git diff --git a/SFTypes.h b/SFTypes.h index 5758b9a..07adb3c 100644 --- a/SFTypes.h +++ b/SFTypes.h @@ -56,5 +56,11 @@ union IntConv { UInt64 ui64; }; +#define SplitUInt64(L_Low, L_High, R) \ + L_Low = (UInt32)(R); \ + L_High = (UInt32)((R) >> 32); + +#define MakeUInt64(R_Low, R_High) ((UInt64)(R_Low) + ((UInt64)(R_High) << 32)) + #endif // #ifndef SFTYPES_INCLUDED