Add toUInt.

git-svn-id: svn://svn.valgrind.org/vex/trunk@973
This commit is contained in:
Julian Seward
2005-02-25 18:36:07 +00:00
parent 247970b6b3
commit 7e5d17bece

View File

@@ -90,6 +90,10 @@ static inline UShort toUShort ( Int x ) {
x &= 0xFFFF;
return (UShort)x;
}
static inline UInt toUInt ( Long x ) {
x &= 0xFFFFFFFFLL;
return (UInt)x;
}
/* 32/64 bit addresses. */
typedef UInt Addr32;