public static int floatToI32(double f) { unchecked { #line 188 "/opt/haxe/std/haxe/io/FPHelper.hx" global::haxe.io._FPHelper.SingleHelper helper = new global::haxe.io._FPHelper.SingleHelper(((float)(f))); if (global::System.BitConverter.IsLittleEndian) { #line 190 "/opt/haxe/std/haxe/io/FPHelper.hx" return(helper.i); } else { #line 192 "/opt/haxe/std/haxe/io/FPHelper.hx" int i = helper.i; return((((((int)((((uint)(i)) >> 24))) & 255) | ((((i >> 16) & 255)) << 8)) | ((((i >> 8) & 255)) << 16)) | (((i & 255)) << 24)); } } #line default }
public static double i32ToFloat(int i) { unchecked { #line 150 "/opt/haxe/std/haxe/io/FPHelper.hx" global::haxe.io._FPHelper.SingleHelper helper = new global::haxe.io._FPHelper.SingleHelper(((float)(0))); if (global::System.BitConverter.IsLittleEndian) { #line 152 "/opt/haxe/std/haxe/io/FPHelper.hx" helper.i = i; } else { #line 154 "/opt/haxe/std/haxe/io/FPHelper.hx" helper.i = ((((((int)((((uint)(i)) >> 24))) & 255) | ((((i >> 16) & 255)) << 8)) | ((((i >> 8) & 255)) << 16)) | (((i & 255)) << 24)); } #line 157 "/opt/haxe/std/haxe/io/FPHelper.hx" return((double)(helper.f)); } #line default }