File: have_float16.in

package info (click to toggle)
libmath-mpfr-perl 4.45-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,716 kB
  • sloc: perl: 1,508; ansic: 517; makefile: 9
file content (15 lines) | stat: -rwxr-xr-x 199 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>
#include <gmp.h>
#include <mpfr.h>

int main(void) {
 int s;
 s = (int)sizeof(_Float16);

 if(s == 2) {
   if(mpfr_buildopt_float16_p()) s -= 4;
 }
 printf("%d", s);
 return 0;
}