public static double AsDouble(ulong a) { Debug.Assert(sizeof(ulong) == sizeof(double)); UnsafeScalarCastLong cast = new UnsafeScalarCastLong(); cast._ulong = a; return cast._double; }
public static ulong AsULong(double a) { Debug.Assert(sizeof(ulong) == sizeof(double)); UnsafeScalarCastLong cast = new UnsafeScalarCastLong(); cast._double = a; return cast._ulong; }