package com.google.common.math; import com.google.common.base.Preconditions; /* loaded from: classes.dex */ final class DoubleUtils { static { Double.doubleToRawLongBits(1.0d); } static double a(double d) { Preconditions.a(!Double.isNaN(d)); if (d > 0.0d) { return d; } return 0.0d; } static long b(double d) { Preconditions.a(c(d), "not a normal value"); int exponent = Math.getExponent(d); long doubleToRawLongBits = Double.doubleToRawLongBits(d) & 4503599627370495L; return exponent == -1023 ? doubleToRawLongBits << 1 : doubleToRawLongBits | 4503599627370496L; } static boolean c(double d) { return Math.getExponent(d) <= 1023; } }