frysk.value
Class FloatingPointType

java.lang.Object
  extended by frysk.value.Type
      extended by frysk.value.ArithmeticType
          extended by frysk.value.FloatingPointType

public class FloatingPointType
extends ArithmeticType

Type for a floating-point value.


Constructor Summary
FloatingPointType(String name, ByteOrder order, int size)
           
 
Method Summary
 ArithmeticUnit getALU(FloatingPointType type, int wordSize)
           
 ArithmeticUnit getALU(int wordSize)
           
 ArithmeticUnit getALU(IntegerType type, int wordSize)
           
 ArithmeticUnit getALU(PointerType type, int wordSize)
           
 ArithmeticUnit getALU(Type type, int wordSize)
           
 void printAsHexConstant(PrintWriter writer, Location loc)
          Prints value as a hexadecimal float constant.
 void toPrint(PrintWriter writer, Location location, ByteBuffer memory, Format format, int indent)
          Print Location as Type in user-readable form; use Format to print basic types.
 
Methods inherited from class frysk.value.ArithmeticType
assign, createValue, createValue, createValue, order, toPrint, toString
 
Methods inherited from class frysk.value.Type
addressOf, completeFollowSym, completeMember, dereference, getALU, getName, getSize, getSliceType, getType, getUltimateType, index, member, pack, slice, toPrint, toPrintBrief
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FloatingPointType

public FloatingPointType(String name,
                         ByteOrder order,
                         int size)
Method Detail

toPrint

public void toPrint(PrintWriter writer,
                    Location location,
                    ByteBuffer memory,
                    Format format,
                    int indent)
Description copied from class: Type
Print Location as Type in user-readable form; use Format to print basic types. If needed, and when memory is non-NULL, it can be used for dereferencing pointers. Indent before printing.


printAsHexConstant

public void printAsHexConstant(PrintWriter writer,
                               Location loc)
Prints value as a hexadecimal float constant. eg. double value 9.0 --> 0x1.2p+0


getALU

public ArithmeticUnit getALU(Type type,
                             int wordSize)
Overrides:
getALU in class Type

getALU

public ArithmeticUnit getALU(IntegerType type,
                             int wordSize)
Overrides:
getALU in class Type

getALU

public ArithmeticUnit getALU(FloatingPointType type,
                             int wordSize)
Overrides:
getALU in class Type

getALU

public ArithmeticUnit getALU(PointerType type,
                             int wordSize)
Overrides:
getALU in class Type

getALU

public ArithmeticUnit getALU(int wordSize)
Overrides:
getALU in class Type