Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / pmax / test / fp.c
blob7a2ff0964f591afd515a721d3fe0ac0307ab97a5
1 #include <stdio.h>
3 union {
4 unsigned w;
5 float f;
6 } uf;
8 union {
9 unsigned w[2];
10 double d;
11 } ud;
14 * Read test vectors from file and test the fp emulation by
15 * comparing it with the hardware.
17 main(argc, argv)
18 int argc;
19 char **argv;
22 while (scanf("%lf", &ud.d) == 1) {
23 uf.f = ud.d;
24 printf("%g = (%x,%x) (%x)\n", ud.d, ud.w[1], ud.w[0], uf.w);
26 exit(0);