|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.backend.Displacement scale.backend.FloatDisplacement
public class FloatDisplacement
This is a simple displacement where the displacement is a known floating point value.
$Id: FloatDisplacement.java,v 1.3 2007-09-20 18:57:40 burrill Exp $
Copyright 2007 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
Constructor Summary | |
---|---|
FloatDisplacement(double displacement)
|
Method Summary | |
---|---|
void |
adjust(int adjustment)
Adjust the displacement by the specified value. |
java.lang.String |
assembler(Assembler asm)
Generate a String representation that can be used by the assembly code generater. |
boolean |
equivalent(java.lang.Object o)
Return true if the displacements are equivalent. |
long |
getDisplacement()
Return the displacement using a representation of the specified floating-point value according to the IEEE 754 floating-point "double format" bit layout. |
double |
getDoubleDisplacement()
Return the displacement as the floating point value. |
boolean |
isNumeric()
Return true if the displacement can be represented as an integer. |
boolean |
isZero()
Return true if the displacement is zero. |
java.lang.String |
toString()
|
Displacement |
unique()
Returns this . |
Methods inherited from class scale.backend.Displacement |
---|
created, getBase, isStack, isSymbol, offset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FloatDisplacement(double displacement)
displacement
- is an integer value.Method Detail |
---|
public long getDisplacement()
getDisplacement
in class Displacement
Double.doubleToLongBits(double)
public double getDoubleDisplacement()
public void adjust(int adjustment)
adjust
in class Displacement
public boolean isZero()
isZero
in class Displacement
public boolean isNumeric()
isNumeric
in class Displacement
public Displacement unique()
this
.
unique
in class Displacement
SymbolDisplacement
public java.lang.String assembler(Assembler asm)
assembler
in class Displacement
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equivalent(java.lang.Object o)
equivalent
in class Displacement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |