From: Kruti Pendharkar Date: Wed, 6 Aug 2025 06:34:16 +0000 (-0700) Subject: Change to common header file not applicable to open-vm-tools. X-Git-Tag: stable-13.1.0~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da7d40870cbd0169ebe30ba0f0aaf6cc794e2c22;p=thirdparty%2Fopen-vm-tools.git Change to common header file not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/vm_basic_defs.h b/open-vm-tools/lib/include/vm_basic_defs.h index e13259434..af198df73 100644 --- a/open-vm-tools/lib/include/vm_basic_defs.h +++ b/open-vm-tools/lib/include/vm_basic_defs.h @@ -166,11 +166,19 @@ Max(int a, int b) #define ROUNDDOWNBITS(x, bits) ((uintptr_t)(x) & ~MASK(bits)) #define CEILING(x, y) (((x) + (y) - 1) / (y)) -#if defined VMKERNEL || defined VMKBOOT +#if !defined CEIL # define CEIL(_a, _b) CEILING(_a, _b) +#endif +#if !defined FLOOR # define FLOOR(_a, _b) ((_a)/(_b)) +#endif +#if !defined ALIGN_DOWN # define ALIGN_DOWN(_a, _b) ROUNDDOWN(_a, _b) +#endif +#if !defined(ALIGN_UP) # define ALIGN_UP(_a, _b) ROUNDUP(_a, _b) +#endif +#if !defined(IS_ALIGNED) # define IS_ALIGNED(_a, _b) (ALIGN_DOWN(_a, _b) == _a) #endif