]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes in shared code that don't affect open-vm-tools functionality.
authorVMware, Inc <>
Thu, 27 Oct 2011 18:50:04 +0000 (11:50 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Thu, 27 Oct 2011 18:50:04 +0000 (11:50 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/include/vm_basic_defs.h

index e2c9d3ecbc1cb35bcc18c7406711909d36deeee8..6867c0e5a01619d8dbaef21ac55670c3fae81fb4 100644 (file)
@@ -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)