X-Git-Url: https://sfsrealm.hopto.org/projects/?a=blobdiff_plain;f=SFTypes.h;h=f58bfbab8ecfa8c3665f58bc20bcc323b7546a7d;hb=a36705ea24b6ce9c6df1e070176014e9fb2394ca;hp=5758b9a13042e40c9a3d86b1f71574e48e1e04e1;hpb=e0b276afa1dc42629b6eaad3ed578c29371f065e;p=SFmpqapi.git diff --git a/SFTypes.h b/SFTypes.h index 5758b9a..f58bfba 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