@Test
public void testConvertFloatToHalf() {

    assertEquals((short)-1024, FastMath.convertFloatToHalf(Float.NEGATIVE_INFINITY));
    assertEquals((short)31744, FastMath.convertFloatToHalf(Float.POSITIVE_INFINITY));
    assertEquals((short)-1025, FastMath.convertFloatToHalf(-131328.0f));
    assertEquals((short)-32767, FastMath.convertFloatToHalf(-0x1p-135f));
    assertEquals((short)1, FastMath.convertFloatToHalf(0x1.008p-71f));
    assertEquals((short)31743, FastMath.convertFloatToHalf(0x1.008p+121f));
    assertEquals((short)0, FastMath.convertFloatToHalf(0.0f));
}