Top Description Methods
org.graalvm.word

public Interface SignedWord

extends ComparableWord

Represents a signed word-sized value.
Since
19.0

Method Summary

Modifier and TypeMethod and Description
public SignedWord

Returns:

this + val
add
(SignedWord
value to be added to this Signed.
val
)

Returns a Signed whose value is (this + val).

public SignedWord

Returns:

this + val
add
(int
value to be added to this Signed.
val
)

Returns a Signed whose value is (this + val).

public SignedWord

Returns:

this & val
and
(SignedWord
value to be AND'ed with this Signed.
val
)

Returns a Signed whose value is (this & val).

public SignedWord

Returns:

this & val
and
(int
value to be AND'ed with this Signed.
val
)

Returns a Signed whose value is (this & val).

public boolean

Returns:

this == val
equal
(SignedWord
value to which this Signed is to be compared.
val
)

Compares this Signed with the specified value.

public boolean

Returns:

this == val
equal
(int
value to which this Signed is to be compared.
val
)

Compares this Signed with the specified value.

public boolean

Returns:

this >= val
greaterOrEqual
(SignedWord
value to which this Signed is to be compared.
val
)

Compares this Signed with the specified value.

public boolean

Returns:

this >= val
greaterOrEqual
(int
value to which this Signed is to be compared.
val
)

Compares this Signed with the specified value.

public boolean

Returns:

this > val
greaterThan
(SignedWord
value to which this Signed is to be compared.
val
)

Compares this Signed with the specified value.

public boolean

Returns:

this > val
greaterThan
(int
value to which this Signed is to be compared.
val
)

Compares this Signed with the specified value.

public boolean

Returns:

this <= val
lessOrEqual
(SignedWord
value to which this Signed is to be compared.
val
)

Compares this Signed with the specified value.

public boolean

Returns:

this <= val
lessOrEqual
(int
value to which this Signed is to be compared.
val
)

Compares this Signed with the specified value.

public boolean

Returns:

this < val
lessThan
(SignedWord
value to which this Signed is to be compared.
val
)

Compares this Signed with the specified value.

public boolean

Returns:

this < val
lessThan
(int
value to which this Signed is to be compared.
val
)

Compares this Signed with the specified value.

public SignedWord

Returns:

this * val
multiply
(SignedWord
value to be multiplied by this Signed.
val
)

Returns a Signed whose value is (this * val).

public SignedWord

Returns:

this * val
multiply
(int
value to be multiplied by this Signed.
val
)

Returns a Signed whose value is (this * val).

public SignedWord

Returns:

~this
not
()

Returns a Signed whose value is (~this).

public boolean

Returns:

this != val
notEqual
(SignedWord
value to which this Signed is to be compared.
val
)

Compares this Signed with the specified value.

public boolean

Returns:

this != val
notEqual
(int
value to which this Signed is to be compared.
val
)

Compares this Signed with the specified value.

public SignedWord

Returns:

this | val
or
(SignedWord
value to be OR'ed with this Signed.
val
)

Returns a Signed whose value is (this | val).

public SignedWord

Returns:

this | val
or
(int
value to be OR'ed with this Signed.
val
)

Returns a Signed whose value is (this | val).

public SignedWord

Returns:

this << n
shiftLeft
(UnsignedWord
shift distance, in bits.
n
)

Returns a Signed whose value is (this << n).

public SignedWord

Returns:

this << n
shiftLeft
(int
shift distance, in bits.
n
)

Returns a Signed whose value is (this << n).

public SignedWord

Returns:

this / val
signedDivide
(SignedWord
value by which this Signed is to be divided.
val
)

Returns a Signed whose value is (this / val).

public SignedWord

Returns:

this / val
signedDivide
(int
value by which this Signed is to be divided.
val
)

Returns a Signed whose value is (this / val).

public SignedWord

Returns:

this % val
signedRemainder
(SignedWord
value by which this Signed is to be divided, and the remainder computed.
val
)

Returns a Signed whose value is (this % val).

public SignedWord

Returns:

this % val
signedRemainder
(int
value by which this Signed is to be divided, and the remainder computed.
val
)

Returns a Signed whose value is (this % val).

public SignedWord

Returns:

this >> n
signedShiftRight
(UnsignedWord
shift distance, in bits.
n
)

Returns a Signed whose value is (this >> n).

public SignedWord

Returns:

this >> n
signedShiftRight
(int
shift distance, in bits.
n
)

Returns a Signed whose value is (this >> n).

public SignedWord

Returns:

this - val
subtract
(SignedWord
value to be subtracted from this Signed.
val
)

Returns a Signed whose value is (this - val).

public SignedWord

Returns:

this - val
subtract
(int
value to be subtracted from this Signed.
val
)

Returns a Signed whose value is (this - val).

public SignedWord

Returns:

this ^ val
xor
(SignedWord
value to be XOR'ed with this Signed.
val
)

Returns a Signed whose value is (this ^ val).

public SignedWord

Returns:

this ^ val
xor
(int
value to be XOR'ed with this Signed.
val
)

Returns a Signed whose value is (this ^ val).

Inherited from org.graalvm.word.ComparableWord:
equalnotEqual

Method Detail

addback to summary
public SignedWord add(SignedWord val)

Returns a Signed whose value is (this + val).

Parameters
val:SignedWord

value to be added to this Signed.

Returns:SignedWord

this + val

Since
19.0
addback to summary
public SignedWord add(int val)

Returns a Signed whose value is (this + val).

Parameters
val:int

value to be added to this Signed.

Returns:SignedWord

this + val

Since
19.0
andback to summary
public SignedWord and(SignedWord val)

Returns a Signed whose value is (this & val). (This method returns a negative Signed if and only if this and val are both negative.)

Parameters
val:SignedWord

value to be AND'ed with this Signed.

Returns:SignedWord

this & val

Since
19.0
andback to summary
public SignedWord and(int val)

Returns a Signed whose value is (this & val). (This method returns a negative Signed if and only if this and val are both negative.)

Parameters
val:int

value to be AND'ed with this Signed.

Returns:SignedWord

this & val

Since
19.0
equalback to summary
public boolean equal(SignedWord val)

Compares this Signed with the specified value.

Parameters
val:SignedWord

value to which this Signed is to be compared.

Returns:boolean

this == val

Since
19.0
equalback to summary
public boolean equal(int val)

Compares this Signed with the specified value.

Parameters
val:int

value to which this Signed is to be compared.

Returns:boolean

this == val

Since
19.0
greaterOrEqualback to summary
public boolean greaterOrEqual(SignedWord val)

Compares this Signed with the specified value.

Parameters
val:SignedWord

value to which this Signed is to be compared.

Returns:boolean

this >= val

Since
19.0
greaterOrEqualback to summary
public boolean greaterOrEqual(int val)

Compares this Signed with the specified value.

Parameters
val:int

value to which this Signed is to be compared.

Returns:boolean

this >= val

Since
19.0
greaterThanback to summary
public boolean greaterThan(SignedWord val)

Compares this Signed with the specified value.

Parameters
val:SignedWord

value to which this Signed is to be compared.

Returns:boolean

this > val

Since
19.0
greaterThanback to summary
public boolean greaterThan(int val)

Compares this Signed with the specified value.

Parameters
val:int

value to which this Signed is to be compared.

Returns:boolean

this > val

Since
19.0
lessOrEqualback to summary
public boolean lessOrEqual(SignedWord val)

Compares this Signed with the specified value.

Parameters
val:SignedWord

value to which this Signed is to be compared.

Returns:boolean

this <= val

Since
19.0
lessOrEqualback to summary
public boolean lessOrEqual(int val)

Compares this Signed with the specified value.

Parameters
val:int

value to which this Signed is to be compared.

Returns:boolean

this <= val

Since
19.0
lessThanback to summary
public boolean lessThan(SignedWord val)

Compares this Signed with the specified value.

Parameters
val:SignedWord

value to which this Signed is to be compared.

Returns:boolean

this < val

Since
19.0
lessThanback to summary
public boolean lessThan(int val)

Compares this Signed with the specified value.

Parameters
val:int

value to which this Signed is to be compared.

Returns:boolean

this < val

Since
19.0
multiplyback to summary
public SignedWord multiply(SignedWord val)

Returns a Signed whose value is (this * val).

Parameters
val:SignedWord

value to be multiplied by this Signed.

Returns:SignedWord

this * val

Since
19.0
multiplyback to summary
public SignedWord multiply(int val)

Returns a Signed whose value is (this * val).

Parameters
val:int

value to be multiplied by this Signed.

Returns:SignedWord

this * val

Since
19.0
notback to summary
public SignedWord not()

Returns a Signed whose value is (~this). (This method returns a negative value if and only if this Signed is non-negative.)

Returns:SignedWord

~this

Since
19.0
notEqualback to summary
public boolean notEqual(SignedWord val)

Compares this Signed with the specified value.

Parameters
val:SignedWord

value to which this Signed is to be compared.

Returns:boolean

this != val

Since
19.0
notEqualback to summary
public boolean notEqual(int val)

Compares this Signed with the specified value.

Parameters
val:int

value to which this Signed is to be compared.

Returns:boolean

this != val

Since
19.0
orback to summary
public SignedWord or(SignedWord val)

Returns a Signed whose value is (this | val). (This method returns a negative Signed if and only if either this or val is negative.)

Parameters
val:SignedWord

value to be OR'ed with this Signed.

Returns:SignedWord

this | val

Since
19.0
orback to summary
public SignedWord or(int val)

Returns a Signed whose value is (this | val). (This method returns a negative Signed if and only if either this or val is negative.)

Parameters
val:int

value to be OR'ed with this Signed.

Returns:SignedWord

this | val

Since
19.0
shiftLeftback to summary
public SignedWord shiftLeft(UnsignedWord n)

Returns a Signed whose value is (this << n).

Parameters
n:UnsignedWord

shift distance, in bits.

Returns:SignedWord

this << n

Since
19.0
shiftLeftback to summary
public SignedWord shiftLeft(int n)

Returns a Signed whose value is (this << n).

Parameters
n:int

shift distance, in bits.

Returns:SignedWord

this << n

Since
19.0
signedDivideback to summary
public SignedWord signedDivide(SignedWord val)

Returns a Signed whose value is (this / val).

Parameters
val:SignedWord

value by which this Signed is to be divided.

Returns:SignedWord

this / val

Since
19.0
signedDivideback to summary
public SignedWord signedDivide(int val)

Returns a Signed whose value is (this / val).

Parameters
val:int

value by which this Signed is to be divided.

Returns:SignedWord

this / val

Since
19.0
signedRemainderback to summary
public SignedWord signedRemainder(SignedWord val)

Returns a Signed whose value is (this % val).

Parameters
val:SignedWord

value by which this Signed is to be divided, and the remainder computed.

Returns:SignedWord

this % val

Since
19.0
signedRemainderback to summary
public SignedWord signedRemainder(int val)

Returns a Signed whose value is (this % val).

Parameters
val:int

value by which this Signed is to be divided, and the remainder computed.

Returns:SignedWord

this % val

Since
19.0
signedShiftRightback to summary
public SignedWord signedShiftRight(UnsignedWord n)

Returns a Signed whose value is (this >> n). Sign extension is performed.

Parameters
n:UnsignedWord

shift distance, in bits.

Returns:SignedWord

this >> n

Since
19.0
signedShiftRightback to summary
public SignedWord signedShiftRight(int n)

Returns a Signed whose value is (this >> n). Sign extension is performed.

Parameters
n:int

shift distance, in bits.

Returns:SignedWord

this >> n

Since
19.0
subtractback to summary
public SignedWord subtract(SignedWord val)

Returns a Signed whose value is (this - val).

Parameters
val:SignedWord

value to be subtracted from this Signed.

Returns:SignedWord

this - val

Since
19.0
subtractback to summary
public SignedWord subtract(int val)

Returns a Signed whose value is (this - val).

Parameters
val:int

value to be subtracted from this Signed.

Returns:SignedWord

this - val

Since
19.0
xorback to summary
public SignedWord xor(SignedWord val)

Returns a Signed whose value is (this ^ val). (This method returns a negative Signed if and only if exactly one of this and val are negative.)

Parameters
val:SignedWord

value to be XOR'ed with this Signed.

Returns:SignedWord

this ^ val

Since
19.0
xorback to summary
public SignedWord xor(int val)

Returns a Signed whose value is (this ^ val). (This method returns a negative Signed if and only if exactly one of this and val are negative.)

Parameters
val:int

value to be XOR'ed with this Signed.

Returns:SignedWord

this ^ val

Since
19.0