return CstDouble.make(Double.doubleToLongBits((Double) value)); } else if (value instanceof Float) { return CstFloat.make(Float.floatToIntBits((Float) value)); } else if (value instanceof Integer) { return CstInteger.make((Integer) value);
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param bits the {@code float} value as {@code int} bits */ public static CstFloat make(int bits) { /* * Note: Javadoc notwithstanding, this implementation always * allocates. */ return new CstFloat(bits); }
/** * Gets the {@code float} value. * * @return the value */ public float getValue() { return Float.intBitsToFloat(getIntBits()); } }
long value = ((CstFloat) cst).getLongBits() << 32; EncodedValueCodec.writeRightZeroExtendedValue(out, type, value); break;
long value = ((CstFloat) cst).getLongBits() << 32; writeRightZeroExtendedValue(type, value); break;
/** * Gets the {@code float} value. * * @return the value */ public float getValue() { return Float.intBitsToFloat(getIntBits()); } }
return CstDouble.make(Double.doubleToLongBits((Double) value)); } else if (value instanceof Float) { return CstFloat.make(Float.floatToIntBits((Float) value)); } else if (value instanceof Integer) { return CstInteger.make((Integer) value);
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param bits the {@code float} value as {@code int} bits */ public static CstFloat make(int bits) { /* * Note: Javadoc notwithstanding, this implementation always * allocates. */ return new CstFloat(bits); }
long value = ((CstFloat) cst).getLongBits() << 32; writeRightZeroExtendedValue(type, value); break;
/** * Gets the {@code float} value. * * @return the value */ public float getValue() { return Float.intBitsToFloat(getIntBits()); } }
return CstDouble.make(Double.doubleToLongBits((Double) value)); } else if (value instanceof Float) { return CstFloat.make(Float.floatToIntBits((Float) value)); } else if (value instanceof Integer) { return CstInteger.make((Integer) value);
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param bits the {@code float} value as {@code int} bits */ public static CstFloat make(int bits) { /* * Note: Javadoc notwithstanding, this implementation always * allocates. */ return new CstFloat(bits); }
long value = ((CstFloat) cst).getLongBits() << 32; writeRightZeroExtendedValue(type, value); break;
/** * Gets the {@code float} value. * * @return the value */ public float getValue() { return Float.intBitsToFloat(getIntBits()); } }
return CstDouble.make(Double.doubleToLongBits((Double) value)); } else if (value instanceof Float) { return CstFloat.make(Float.floatToIntBits((Float) value)); } else if (value instanceof Integer) { return CstInteger.make((Integer) value);
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param bits the {@code float} value as {@code int} bits */ public static CstFloat make(int bits) { /* * Note: Javadoc notwithstanding, this implementation always * allocates. */ return new CstFloat(bits); }
long value = ((CstFloat) cst).getLongBits() << 32; EncodedValueCodec.writeRightZeroExtendedValue(out, type, value); break;
/** * Gets the {@code float} value. * * @return the value */ public float getValue() { return Float.intBitsToFloat(getIntBits()); } }
cst = CstFloat.make(bits); break;
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param bits the {@code float} value as {@code int} bits */ public static CstFloat make(int bits) { /* * Note: Javadoc notwithstanding, this implementation always * allocates. */ return new CstFloat(bits); }