docs: @SuppressWarnings("checkstyle:magicnumber")
      public static boolean equalLongAndDouble(long l, double d) {
          // see compareLongWithDouble for more details on what is going on here
  
          if (d > -0x1p53 && d < +0x1p53) {
              return equalDoubles((double) l, d);
          }
  
          if (d <= -0x1p63) {
              return false;
          }
  
          if (d >= +0x1p63) {
              return false;
          }
  
          if (Double.isNaN(d)) {
              return false;
          }
  
          return l == (long) d;
      }