Package zz.jinterp.JPrimitive

Examples of zz.jinterp.JPrimitive.JFloat


  }
 
    public static int __floatToRawIntBits(float value) { return 0; }
  public JObject _floatToRawIntBits(JFrame aParentFrame, JInstance aTarget, JObject[] aArgs)
  {
    JFloat value = (JFloat) aArgs[0];
    return new JInt(Float.floatToRawIntBits(value.v));
  }
View Full Code Here


  }

  public static int __floatToIntBits(float value) { return 0; }
  public JObject _floatToIntBits(JFrame aParentFrame, JInstance aTarget, JObject[] aArgs)
  {
    JFloat value = (JFloat) aArgs[0];
    return new JInt(Float.floatToIntBits(value.v));
  }
View Full Code Here

  public static float __intBitsToFloat(int bits) { return 0; }
  public JObject _intBitsToFloat(JFrame aParentFrame, JInstance aTarget, JObject[] aArgs)
  {
    JInt bits = (JInt) aArgs[0];
    return new JFloat(Float.intBitsToFloat(bits.v));
  }
View Full Code Here

        push(new JLong(i.v));
      } break;
       
      case I2F: {
        JInt i = (JInt) pop();
        push(new JFloat(i.v));
      } break;
       
      case I2D: {
        JInt i = (JInt) pop();
        push(new JDouble(i.v));
      } break;
       
      case L2I: {
        JLong i = (JLong) pop();
        push(new JInt((int) i.v));
      } break;
       
      case L2F: {
        JLong i = (JLong) pop();
        push(new JFloat(i.v));
      } break;
       
      case L2D: {
        JLong i = (JLong) pop();
        push(new JDouble(i.v));
      } break;
       
      case F2I: {
        JFloat i = (JFloat) pop();
        push(new JInt((int) i.v));
      } break;
       
      case F2L: {
        JFloat i = (JFloat) pop();
        push(new JLong((long) i.v));
      } break;
       
      case F2D: {
        JFloat i = (JFloat) pop();
        push(new JDouble(i.v));
      } break;
       
      case D2I: {
        JDouble i = (JDouble) pop();
        push(new JInt((int) i.v));
      } break;
       
      case D2L: {
        JDouble i = (JDouble) pop();
        push(new JLong((long) i.v));
      } break;
       
      case D2F: {
        JDouble i = (JDouble) pop();
        push(new JFloat((float) i.v));
      } break;
       
      case I2B: {
        JInt i = (JInt) pop();
        push(new JByte((byte) i.v));
      } break;
       
      case I2C: {
        JInt i = (JInt) pop();
        push(new JChar((char) i.v));
      } break;
       
      case I2S: {
        JInt i = (JInt) pop();
        push(new JShort((short) i.v));
      } break;
       
      case LCMP: {
        JLong l2 = (JLong) pop();
        JLong l1 = (JLong) pop();
        if (l1.v > l2.v) push(JInt._1);
        else if (l1.v == l2.v) push(JInt._0);
        else push(JInt._M1);
      } break;
       
      case FCMPL: {
        JFloat f2 = (JFloat) pop();
        JFloat f1 = (JFloat) pop();
        if (Float.isNaN(f1.v) || Float.isNaN(f2.v)) push(JInt._M1);
        else if (f1.v > f2.v) push(JInt._1);
        else if (f1.v == f2.v) push(JInt._0);
        else push(JInt._M1);
      } break;
       
      case FCMPG: {
        JFloat f2 = (JFloat) pop();
        JFloat f1 = (JFloat) pop();
        if (Float.isNaN(f1.v) || Float.isNaN(f2.v)) push(JInt._1);
        else if (f1.v > f2.v) push(JInt._1);
        else if (f1.v == f2.v) push(JInt._0);
        else push(JInt._M1);
      } break;
View Full Code Here

    {
      return new JDouble((Double) aObject);
    }
    else if (aObject instanceof Float)
    {
      return new JFloat((Float) aObject);
    }
    else if (aObject instanceof String)
    {
      return toJString((String) aObject);
    }
View Full Code Here

TOP

Related Classes of zz.jinterp.JPrimitive.JFloat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.