Fix up mix of man(7)/mdoc(7).
[netbsd-mini2440.git] / sys / arch / pmax / test / fp1.c
blob87db1453ca705079511bb13ff25eb6c7ce5016d9
1 #include <stdio.h>
2 #include <stdlib.h>
4 union {
5 unsigned w;
6 float f;
7 } uf;
9 union {
10 unsigned w[2];
11 double d;
12 } ud;
15 * Read test vectors from file and test the fp emulation by
16 * comparing it with the hardware.
18 main(argc, argv)
19 int argc;
20 char **argv;
22 char buf[1024];
24 while (fgets(buf, sizeof(buf), stdin) != NULL) {
25 ud.d = atof(buf);
26 uf.f = ud.d;
27 printf("'%s' (%x,%x) (%x)\n", buf, ud.w[1], ud.w[0], uf.w);
29 exit(0);