Interface UnsignedWord
 All Superinterfaces:
ComparableWord
,WordBase
 All Known Subinterfaces:
Pointer
 Since:
 19.0

Method Summary
Modifier and TypeMethodDescriptionboolean
aboveOrEqual
(int val) Compares this Unsigned with the specified value.boolean
aboveOrEqual
(UnsignedWord val) Compares this Unsigned with the specified value.boolean
aboveThan
(int val) Compares this Unsigned with the specified value.boolean
aboveThan
(UnsignedWord val) Compares this Unsigned with the specified value.add
(int val) Returns a Unsigned whose value is(this + val)
.add
(UnsignedWord val) Returns a Unsigned whose value is(this + val)
.and
(int val) Returns a Unsigned whose value is(this & val)
.and
(UnsignedWord val) Returns a Unsigned whose value is(this & val)
.boolean
belowOrEqual
(int val) Compares this Unsigned with the specified value.boolean
belowOrEqual
(UnsignedWord val) Compares this Unsigned with the specified value.boolean
belowThan
(int val) Compares this Unsigned with the specified value.boolean
belowThan
(UnsignedWord val) Compares this Unsigned with the specified value.boolean
equal
(int val) Compares this Unsigned with the specified value.boolean
equal
(UnsignedWord val) Compares this Unsigned with the specified value.multiply
(int val) Returns a Unsigned whose value is(this * val)
.multiply
(UnsignedWord val) Returns a Unsigned whose value is(this * val)
.not()
Returns a Unsigned whose value is(~this)
.boolean
notEqual
(int val) Compares this Unsigned with the specified value.boolean
notEqual
(UnsignedWord val) Compares this Unsigned with the specified value.or
(int val) Returns a Unsigned whose value is(this  val)
.or
(UnsignedWord val) Returns a Unsigned whose value is(this  val)
.shiftLeft
(int n) Returns a Unsigned whose value is(this << n)
.Returns a Unsigned whose value is(this << n)
.subtract
(int val) Returns a Unsigned whose value is(this  val)
.subtract
(UnsignedWord val) Returns a Unsigned whose value is(this  val)
.unsignedDivide
(int val) Returns a Unsigned whose value is(this / val)
.Returns a Unsigned whose value is(this / val)
.unsignedRemainder
(int val) Returns a Unsigned whose value is(this % val)
.Returns a Unsigned whose value is(this % val)
.unsignedShiftRight
(int n) Returns a Unsigned whose value is(this >>> n)
.Returns a Unsigned whose value is(this >>> n)
.xor
(int val) Returns a Unsigned whose value is(this ^ val)
.xor
(UnsignedWord val) Returns a Unsigned whose value is(this ^ val)
.Methods inherited from interface org.graalvm.word.ComparableWord
equal, notEqual

Method Details

add
Returns a Unsigned whose value is(this + val)
. Parameters:
val
 value to be added to this Unsigned. Returns:
this + val
 Since:
 19.0

subtract
Returns a Unsigned whose value is(this  val)
. Parameters:
val
 value to be subtracted from this Unsigned. Returns:
this  val
 Since:
 19.0

multiply
Returns a Unsigned whose value is(this * val)
. Parameters:
val
 value to be multiplied by this Unsigned. Returns:
this * val
 Since:
 19.0

unsignedDivide
Returns a Unsigned whose value is(this / val)
. Parameters:
val
 value by which this Unsigned is to be divided. Returns:
this / val
 Since:
 19.0

unsignedRemainder
Returns a Unsigned whose value is(this % val)
. Parameters:
val
 value by which this Unsigned is to be divided, and the remainder computed. Returns:
this % val
 Since:
 19.0

shiftLeft
Returns a Unsigned whose value is(this << n)
. Parameters:
n
 shift distance, in bits. Returns:
this << n
 Since:
 19.0

unsignedShiftRight
Returns a Unsigned whose value is(this >>> n)
. No sign extension is performed. Parameters:
n
 shift distance, in bits. Returns:
this >> n
 Since:
 19.0

and
Returns a Unsigned whose value is(this & val)
. Parameters:
val
 value to be AND'ed with this Unsigned. Returns:
this & val
 Since:
 19.0

or
Returns a Unsigned whose value is(this  val)
. Parameters:
val
 value to be OR'ed with this Unsigned. Returns:
this  val
 Since:
 19.0

xor
Returns a Unsigned whose value is(this ^ val)
. Parameters:
val
 value to be XOR'ed with this Unsigned. Returns:
this ^ val
 Since:
 19.0

not
UnsignedWord not()Returns a Unsigned whose value is(~this)
. Returns:
~this
 Since:
 19.0

equal
Compares this Unsigned with the specified value. Parameters:
val
 value to which this Unsigned is to be compared. Returns:
this == val
 Since:
 19.0

notEqual
Compares this Unsigned with the specified value. Parameters:
val
 value to which this Unsigned is to be compared. Returns:
this != val
 Since:
 19.0

belowThan
Compares this Unsigned with the specified value. Parameters:
val
 value to which this Unsigned is to be compared. Returns:
this < val
 Since:
 19.0

belowOrEqual
Compares this Unsigned with the specified value. Parameters:
val
 value to which this Unsigned is to be compared. Returns:
this <= val
 Since:
 19.0

aboveThan
Compares this Unsigned with the specified value. Parameters:
val
 value to which this Unsigned is to be compared. Returns:
this > val
 Since:
 19.0

aboveOrEqual
Compares this Unsigned with the specified value. Parameters:
val
 value to which this Unsigned is to be compared. Returns:
this >= val
 Since:
 19.0

add
Returns a Unsigned whose value is(this + val)
.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
val
 value to be added to this Unsigned. Returns:
this + val
 Since:
 19.0

subtract
Returns a Unsigned whose value is(this  val)
.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
val
 value to be subtracted from this Unsigned. Returns:
this  val
 Since:
 19.0

multiply
Returns a Unsigned whose value is(this * val)
.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
val
 value to be multiplied by this Unsigned. Returns:
this * val
 Since:
 19.0

unsignedDivide
Returns a Unsigned whose value is(this / val)
.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
val
 value by which this Unsigned is to be divided. Returns:
this / val
 Since:
 19.0

unsignedRemainder
Returns a Unsigned whose value is(this % val)
.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
val
 value by which this Unsigned is to be divided, and the remainder computed. Returns:
this % val
 Since:
 19.0

shiftLeft
Returns a Unsigned whose value is(this << n)
.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
n
 shift distance, in bits. Returns:
this << n
 Since:
 19.0

unsignedShiftRight
Returns a Unsigned whose value is(this >>> n)
. No sign extension is performed.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
n
 shift distance, in bits. Returns:
this >> n
 Since:
 19.0

and
Returns a Unsigned whose value is(this & val)
.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
val
 value to be AND'ed with this Unsigned. Returns:
this & val
 Since:
 19.0

or
Returns a Unsigned whose value is(this  val)
.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
val
 value to be OR'ed with this Unsigned. Returns:
this  val
 Since:
 19.0

xor
Returns a Unsigned whose value is(this ^ val)
.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
val
 value to be XOR'ed with this Unsigned. Returns:
this ^ val
 Since:
 19.0

equal
boolean equal(int val) Compares this Unsigned with the specified value.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
val
 value to which this Unsigned is to be compared. Returns:
this == val
 Since:
 19.0

notEqual
boolean notEqual(int val) Compares this Unsigned with the specified value.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
val
 value to which this Unsigned is to be compared. Returns:
this != val
 Since:
 19.0

belowThan
boolean belowThan(int val) Compares this Unsigned with the specified value.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
val
 value to which this Unsigned is to be compared. Returns:
this < val
 Since:
 19.0

belowOrEqual
boolean belowOrEqual(int val) Compares this Unsigned with the specified value.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
val
 value to which this Unsigned is to be compared. Returns:
this <= val
 Since:
 19.0

aboveThan
boolean aboveThan(int val) Compares this Unsigned with the specified value.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
val
 value to which this Unsigned is to be compared. Returns:
this > val
 Since:
 19.0

aboveOrEqual
boolean aboveOrEqual(int val) Compares this Unsigned with the specified value.Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only welldefined for positive right operands.
 Parameters:
val
 value to which this Unsigned is to be compared. Returns:
this >= val
 Since:
 19.0
