#include <asm/math-emu.h>
Go to the source code of this file.
#define fp_conv_ext2long |
( |
|
src | ) |
|
Value:({ \
register
struct fp_ext *__src
asm (
"a0") =
src; \
register int __res asm ("d0"); \
\
asm volatile ("jsr fp_conv_ext2long" \
: "=d" (__res) : "a" (__src) \
: "a1", "d1", "d2", "memory"); \
__res; \
})
Definition at line 108 of file fp_emu.h.
#define fp_conv_long2ext |
( |
|
dest, |
|
|
|
src |
|
) |
| |
Value:({ \
register
struct fp_ext *__dest
asm (
"a0") =
dest; \
register
int __src
asm (
"d0") =
src; \
\
asm volatile ("jsr fp_conv_ext2long" \
: : "d" (__src), "a" (__dest) \
: "a1", "d1", "d2", "memory"); \
})
Definition at line 118 of file fp_emu.h.
#define fp_dyadic_check |
( |
|
dest, |
|
|
|
src |
|
) |
| |
Value:({ \
fp_copy_ext(dest,
src); \
} \
})
Definition at line 84 of file fp_emu.h.
#define fp_monadic_check |
( |
|
dest, |
|
|
|
src |
|
) |
| |
#define fp_normalize_ext |
( |
|
fpreg | ) |
|
Value:({ \
register
int res asm (
"d0"); \
\
asm volatile ("jsr fp_conv_ext2ext" \
: "a1", "d1", "d2", "memory"); \
res; \
})
Definition at line 64 of file fp_emu.h.
#define fp_set_nan |
( |
|
dest | ) |
|
#define fp_set_ovrflw |
( |
|
dest | ) |
|
Value:({ \
dest->exp = 0x7fff; \
dest->mant.m64 = 0; \
})
Definition at line 102 of file fp_emu.h.
#define fp_set_quotient |
( |
|
quotient | ) |
|
Value:({ \
FPDATA->fpsr &= 0xff00ffff; \
FPDATA->fpsr |= ((quotient) & 0xff) << 16; \
})
Definition at line 56 of file fp_emu.h.
Value:({ \
FPDATA->fpsr |= 1 << (
bit); \
})
Definition at line 52 of file fp_emu.h.
#define IS_INF |
( |
|
a | ) |
((a)->exp == 0x7fff) |
#define IS_ZERO |
( |
|
a | ) |
((a)->mant.m64 == 0) |