kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

ldbl128_01_layout_macros.c (420B)


      1 #include <float.h>
      2 
      3 int test_main(void) {
      4   if (__LDBL_MANT_DIG__ != 113) return 0;
      5   if (sizeof(long double) != 16) return 11;
      6   if (_Alignof(long double) != 16) return 12;
      7   if (LDBL_MANT_DIG != 113) return 13;
      8   if (LDBL_MAX_EXP != 16384) return 14;
      9   if (LDBL_MIN_EXP != (-16381)) return 15;
     10   if (LDBL_DIG != 33) return 16;
     11   if (LDBL_DECIMAL_DIG != 36) return 17;
     12   if (DECIMAL_DIG != 36) return 18;
     13   return 0;
     14 }