/*
 * ANSI/POSIX
 */
#ifndef HUGE_VAL
#ifdef __HAVE_68881__
#define HUGE_VAL                                                        \
({                                                                      \
  double huge_val;                                                      \
                                                                        \
  __asm ("fmove%.d #0x7ff0000000000000,%0"      /* Infinity */          \
         : "=f" (huge_val)                                              \
         : /* no inputs */);                                            \
  huge_val;                                                             \
})
#else
#define HUGE_VAL MAXFLOAT
#endif
#endif

