FloatSort constructor

FloatSort(
  1. int ebits,
  2. int sbits
)

Implementation

factory FloatSort(int ebits, int sbits) {
  if (ebits == 5 && sbits == 11) {
    return Float16Sort();
  } else if (ebits == 8 && sbits == 24) {
    return Float32Sort();
  } else if (ebits == 11 && sbits == 53) {
    return Float64Sort();
  } else if (ebits == 15 && sbits == 113) {
    return Float128Sort();
  } else {
    return FloatSort._(ebits, sbits);
  }
}