coins.simd
Class Evaluation

java.lang.Object
  extended bycoins.simd.Evaluation

class Evaluation
extends java.lang.Object

This class is for Constant Folding. The evaluation of expressions in Constant Folding uses the method in this class. The method for evaluation is depend on the type of the expression. Then 7 types of method is in this class. Byte for I8, Short for I16, Integer for I32, Long for I64, Float for F32, Double for F64, and BigDecimal for F128.


Constructor Summary
(package private) Evaluation()
           
 
Method Summary
static java.lang.Number calc(double arg1, double arg2, java.lang.String op)
           
static java.lang.Number calc(float arg1, float arg2, java.lang.String op)
           
static java.lang.Number calc(int arg1, int arg2, java.lang.String op)
          The evaluation method for I32.
static java.lang.Number calc(long arg1, long arg2, java.lang.String op)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Evaluation

Evaluation()
Method Detail

calc

public static java.lang.Number calc(int arg1,
                                    int arg2,
                                    java.lang.String op)
The evaluation method for I32.

Returns:
Number The result of evaluation

calc

public static java.lang.Number calc(long arg1,
                                    long arg2,
                                    java.lang.String op)

calc

public static java.lang.Number calc(float arg1,
                                    float arg2,
                                    java.lang.String op)

calc

public static java.lang.Number calc(double arg1,
                                    double arg2,
                                    java.lang.String op)