From: VMware, Inc <> Date: Thu, 27 Oct 2011 18:50:04 +0000 (-0700) Subject: Changes in shared code that don't affect open-vm-tools functionality. X-Git-Tag: 2011.10.26-514583~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2def71a90774eac863ba191c0438cbbab6b4727e;p=thirdparty%2Fopen-vm-tools.git Changes in shared code that don't affect open-vm-tools functionality. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/include/vm_basic_defs.h b/open-vm-tools/lib/include/vm_basic_defs.h index e2c9d3ecb..6867c0e5a 100644 --- a/open-vm-tools/lib/include/vm_basic_defs.h +++ b/open-vm-tools/lib/include/vm_basic_defs.h @@ -166,8 +166,8 @@ Max(int a, int b) */ #define MASKRANGE64(hi, lo) (MASK64((hi) - (lo) + 1) << (lo)) -/* SIGNEXT64 sign extends a value from bit position "pos" up to bit 63. */ -#define SIGNEXT64(val, pos) (((int64)(val) << (63 - (pos))) >> (63 - (pos))) +/* SIGNEXT64 sign extends a n-bit value to 64-bits. */ +#define SIGNEXT64(val, n) (((int64)(val) << (64 - (n))) >> (64 - (n))) #define DWORD_ALIGN(x) ((((x) + 3) >> 2) << 2) #define QWORD_ALIGN(x) ((((x) + 7) >> 3) << 3)