1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Added ALIGN_GAP(a,b) marco.

committer: mfx <mfx> 1042576135 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2003-01-14 20:28:55 +00:00
parent 9190e7d51a
commit 9511e3c9b1

View File

@ -415,6 +415,7 @@ typedef RETSIGTYPE (SIGTYPEENTRY *sig_type)(int);
#define ALIGN_DOWN(a,b) (((a) / (b)) * (b))
#define ALIGN_UP(a,b) ALIGN_DOWN((a) + ((b) - 1), b)
#define ALIGN_GAP(a,b) (ALIGN_UP(a,b) - (a))
#define UPX_MAX(a,b) ((a) >= (b) ? (a) : (b))
#define UPX_MIN(a,b) ((a) <= (b) ? (a) : (b))