modernc.org/ccgo/v3@v3.16.14/lib/testdata/bug/int.c (about)

     1  typedef long long FT_Fixed;
     2  
     3  #define af_floatToFixed( f ) \
     4            ( (FT_Fixed)( (f) * 65536.0 + 0.5 ) )
     5  
     6  int main() {
     7      long long x = af_floatToFixed( .01 );
     8      __builtin_printf("%llu\n", x);
     9      if (x != 655) {
    10  	    return __LINE__;
    11      }
    12  
    13      return 0;
    14  }