#include <linux/types.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <asm/uaccess.h>
#include <asm/lowcore.h>
#include <asm/sfp-util.h>
#include <math-emu/soft-fp.h>
#include <math-emu/single.h>
#include <math-emu/double.h>
#include <math-emu/quad.h>
Go to the source code of this file.
|
#define | _FP_TO_FPINT_ROUND(fs, wc, X) |
|
#define | FP_TO_FPINT_ROUND_S(X) _FP_TO_FPINT_ROUND(S,1,X) |
|
#define | FP_TO_FPINT_ROUND_D(X) _FP_TO_FPINT_ROUND(D,2,X) |
|
#define | FP_TO_FPINT_ROUND_Q(X) _FP_TO_FPINT_ROUND(Q,4,X) |
|
#define | mathemu_put_user(x, p) |
|
#define | mathemu_get_user(x, p) |
|
#define | mathemu_copy_from_user(d, s, n) |
|
#define | mathemu_copy_to_user(d, s, n) |
|
#define _FP_TO_FPINT_ROUND |
( |
|
fs, |
|
|
|
wc, |
|
|
|
X |
|
) |
| |
Value:do { \
{ \
if (
X##_e > _FP_FRACBITS_##
fs + _FP_EXPBIAS_##
fs) \
{ \
} \
else
if (
X##_e <= _FP_FRACBITS_##
fs + _FP_EXPBIAS_##
fs && \
X##_e > _FP_EXPBIAS_##
fs) \
{ \
_FP_FRAC_SRS_##
wc(
X, _FP_WFRACBITS_##fs, \
X##_e - _FP_EXPBIAS_##fs \
+ _FP_FRACBITS_##fs); \
_FP_FRAC_SLL_##
wc(
X,
X##_e - _FP_EXPBIAS_##fs \
+ _FP_FRACBITS_##fs); \
} \
else \
{ \
} \
break; \
break; \
} \
} while (0)
Definition at line 26 of file math.c.
#define mathemu_copy_from_user |
( |
|
d, |
|
|
|
s, |
|
|
|
n |
|
) |
| |
Value:
Definition at line 85 of file math.c.
#define mathemu_copy_to_user |
( |
|
d, |
|
|
|
s, |
|
|
|
n |
|
) |
| |
Value:
Definition at line 91 of file math.c.
#define mathemu_get_user |
( |
|
x, |
|
|
|
p |
|
) |
| |
Value:
Definition at line 79 of file math.c.
#define mathemu_put_user |
( |
|
x, |
|
|
|
p |
|
) |
| |
Value:
Definition at line 73 of file math.c.