home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 25
/
amigaformatcd25.iso
/
websites
/
amidoom
/
adoom_src-0.7.lha
/
ADoom_src
/
test_fixed.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-12-27
|
336b
|
17 lines
#include <stdio.h>
#include "m_fixed.h"
#include "m_swap.h"
int main (void)
{
fixed_t a, b, c;
a = 0x7fff0000;
b = 0xffffffff;
c = FixedDiv (a, b);
printf ("%08x\n", c);
printf ("%08x %08x %08x %08x\n", (int)SHORT(0x0102), (int)SHORT(0xff01),
(int)SHORT(0x7fff), (int)SHORT(0x8090));
}