|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openquark.cal.module.Cal.Core.CAL_Bits.Functions
public static final class CAL_Bits.Functions
This inner class (Functions) contains constants and methods related to binding to CAL functions in the Cal.Core.Bits module.
| Field Summary | |
|---|---|
static QualifiedName |
bitwiseAnd
Name binding for function: bitwiseAnd. |
static QualifiedName |
bitwiseOr
Name binding for function: bitwiseOr. |
static QualifiedName |
bitwiseXor
Name binding for function: bitwiseXor. |
static QualifiedName |
complement
Name binding for function: complement. |
static QualifiedName |
highestBitMask
Name binding for function: highestBitMask. |
static QualifiedName |
shiftL
Name binding for function: shiftL. |
static QualifiedName |
shiftR
Name binding for function: shiftR. |
static QualifiedName |
shiftRUnsigned
Name binding for function: shiftRUnsigned. |
| Constructor Summary | |
|---|---|
CAL_Bits.Functions()
|
|
| Method Summary | |
|---|---|
static SourceModel.Expr |
bitwiseAnd(SourceModel.Expr x,
SourceModel.Expr y)
Combines its two arguments by performing a boolean AND operation on their individual bits. |
static SourceModel.Expr |
bitwiseOr(SourceModel.Expr x,
SourceModel.Expr y)
Combines its two arguments by performing a boolean OR operation on their individual bits. |
static SourceModel.Expr |
bitwiseXor(SourceModel.Expr x,
SourceModel.Expr y)
Combines its two arguments by performing a boolean XOR operation on their individual bits. |
static SourceModel.Expr |
complement(SourceModel.Expr x)
Inverts each bit of its input, converting ones to zeros and zeros to ones. |
static SourceModel.Expr |
highestBitMask(SourceModel.Expr x)
Clears all but the highest 1-bit of the input. |
static SourceModel.Expr |
shiftL(SourceModel.Expr x,
SourceModel.Expr numPlaces)
Shifts the bits of the first argument left by the number of places specified by the second argument. |
static SourceModel.Expr |
shiftR(SourceModel.Expr x,
SourceModel.Expr numPlaces)
Shifts the bits of the first argument to the right by the number of places specified by the second argument. |
static SourceModel.Expr |
shiftRUnsigned(SourceModel.Expr x,
SourceModel.Expr numPlaces)
Works like Cal.Core.Bits.shiftR, but always shifts zeros into the high-order bits of
the result, regardless of the sign of the first argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final QualifiedName bitwiseAnd
bitwiseAnd(org.openquark.cal.compiler.SourceModel.Expr, org.openquark.cal.compiler.SourceModel.Expr)public static final QualifiedName bitwiseOr
bitwiseOr(org.openquark.cal.compiler.SourceModel.Expr, org.openquark.cal.compiler.SourceModel.Expr)public static final QualifiedName bitwiseXor
bitwiseXor(org.openquark.cal.compiler.SourceModel.Expr, org.openquark.cal.compiler.SourceModel.Expr)public static final QualifiedName complement
complement(org.openquark.cal.compiler.SourceModel.Expr)public static final QualifiedName highestBitMask
highestBitMask(org.openquark.cal.compiler.SourceModel.Expr)public static final QualifiedName shiftL
shiftL(org.openquark.cal.compiler.SourceModel.Expr, org.openquark.cal.compiler.SourceModel.Expr)public static final QualifiedName shiftR
shiftR(org.openquark.cal.compiler.SourceModel.Expr, org.openquark.cal.compiler.SourceModel.Expr)public static final QualifiedName shiftRUnsigned
shiftRUnsigned(org.openquark.cal.compiler.SourceModel.Expr, org.openquark.cal.compiler.SourceModel.Expr)| Constructor Detail |
|---|
public CAL_Bits.Functions()
| Method Detail |
|---|
public static final SourceModel.Expr bitwiseAnd(SourceModel.Expr x,
SourceModel.Expr y)
bitwiseAnd(00001010, 00000111) => 00000010
x - (CAL type: Cal.Core.Bits.Bits a => a)
the first value to be bitwise ANDed.y - (CAL type: Cal.Core.Bits.Bits a => a)
the second value to be bitwise ANDed.
Cal.Core.Bits.Bits a => a)
the bitwise AND of x and y.
public static final SourceModel.Expr bitwiseOr(SourceModel.Expr x,
SourceModel.Expr y)
bitwiseOr(00001010, 00000111) => 00001111
x - (CAL type: Cal.Core.Bits.Bits a => a)
the first value to be bitwise ORed.y - (CAL type: Cal.Core.Bits.Bits a => a)
the second value to be bitwise ORed.
Cal.Core.Bits.Bits a => a)
the bitwise OR of x and y.
public static final SourceModel.Expr bitwiseXor(SourceModel.Expr x,
SourceModel.Expr y)
bitwiseXor (00001010, 00000111) => 00001101
x - (CAL type: Cal.Core.Bits.Bits a => a)
the first value to be bitwise XORed.y - (CAL type: Cal.Core.Bits.Bits a => a)
the second value to be bitwise XORed.
Cal.Core.Bits.Bits a => a)
the bitwise XOR of x and y.public static final SourceModel.Expr complement(SourceModel.Expr x)
complement(00001100) => 11110011
x - (CAL type: Cal.Core.Bits.Bits a => a)
the value to be complemented bitwise.
Cal.Core.Bits.Bits a => a)
the bitwise complement of x.public static final SourceModel.Expr highestBitMask(SourceModel.Expr x)
highestBitMask (00101101) => 00100000
highestBitMask (11111111) => 10000000
highestBitMask (00000000) => 00000000
x - (CAL type: Cal.Core.Bits.Bits a => a)
the value whose bits except for its highest 1-bit is to be cleared.
Cal.Core.Bits.Bits a => a)
a value whose bits are all zero except for the bit corresponding to x's highest 1-bit.
public static final SourceModel.Expr shiftL(SourceModel.Expr x,
SourceModel.Expr numPlaces)
shiftL(00001010, 1) => 00010100
shiftL(00000111, 3) => 00111000
x - (CAL type: Cal.Core.Bits.Bits a => a)
the value to be left-shifted.numPlaces - (CAL type: Cal.Core.Bits.Bits a => a)
the number of places by which x is left-shifted.
Cal.Core.Bits.Bits a => a)
x left-shifted by numPlaces places.
public static final SourceModel.Expr shiftR(SourceModel.Expr x,
SourceModel.Expr numPlaces)
shiftR(00001010, 1) => 00000101
shiftR(00011011, 3) => 00000011
shiftR(11001110, 2) => 11110011
x - (CAL type: Cal.Core.Bits.Bits a => a)
the value to be right-shifted.numPlaces - (CAL type: Cal.Core.Bits.Bits a => a)
the number of places by which x is right-shifted.
Cal.Core.Bits.Bits a => a)
x right-shifted by numPlaces places.
public static final SourceModel.Expr shiftRUnsigned(SourceModel.Expr x,
SourceModel.Expr numPlaces)
Cal.Core.Bits.shiftR, but always shifts zeros into the high-order bits of
the result, regardless of the sign of the first argument.
For example, shiftRUnsigned(11111111, 4) => 00001111
x - (CAL type: Cal.Core.Bits.Bits a => a)
the value to be right-shifted.numPlaces - (CAL type: Cal.Core.Bits.Bits a => a)
the number of places by which x is right-shifted.
Cal.Core.Bits.Bits a => a)
x right-shifted by numPlaces places.
|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||