Go to the source code of this file.
#define _FP_FRAC_HIGH_8 |
( |
|
X | ) |
(X##_f[7]) |
#define _FP_FRAC_LOW_8 |
( |
|
X | ) |
(X##_f[0]) |
#define _FP_FRAC_SLL_8 |
( |
|
X, |
|
|
|
N |
|
) |
| |
Value:do { \
_FP_I_TYPE _up, _down, _skip, _i; \
if (!_up) \
for (_i = 7; _i >= _skip; --_i) \
X##_f[_i] =
X##_f[_i-_skip]; \
else \
{ \
for (_i = 7; _i > _skip; --_i) \
X##_f[_i] =
X##_f[_i-_skip] << _up \
|
X##_f[_i-_skip-1] >> _down; \
X##_f[_i--] =
X##_f[0] << _up; \
} \
for (; _i >= 0; --_i) \
} while (0)
Definition at line 34 of file op-8.h.
#define _FP_FRAC_SRL_8 |
( |
|
X, |
|
|
|
N |
|
) |
| |
Value:do { \
_FP_I_TYPE _up, _down, _skip, _i; \
if (!_down) \
for (_i = 0; _i <= 7-_skip; ++_i) \
X##_f[_i] =
X##_f[_i+_skip]; \
else \
{ \
for (_i = 0; _i < 7-_skip; ++_i) \
X##_f[_i] =
X##_f[_i+_skip] >> _down \
|
X##_f[_i+_skip+1] << _up; \
X##_f[_i++] =
X##_f[7] >> _down; \
} \
for (; _i < 8; ++_i) \
} while (0)
Definition at line 54 of file op-8.h.
#define _FP_FRAC_SRS_8 |
( |
|
X, |
|
|
|
N, |
|
|
|
size |
|
) |
| |
Value:do { \
_FP_I_TYPE _up, _down, _skip, _i; \
_FP_W_TYPE _s; \
for (_s = _i = 0; _i < _skip; ++_i) \
_s |=
X##_f[_i] << _up; \
\
if (!_down) \
for (_i = 0; _i <= 7-_skip; ++_i) \
X##_f[_i] =
X##_f[_i+_skip]; \
else \
{ \
for (_i = 0; _i < 7-_skip; ++_i) \
X##_f[_i] =
X##_f[_i+_skip] >> _down \
|
X##_f[_i+_skip+1] << _up; \
X##_f[_i++] =
X##_f[7] >> _down; \
} \
for (; _i < 8; ++_i) \
\
X##_f[0] |= (_s != 0); \
} while (0)
Definition at line 80 of file op-8.h.
#define _FP_FRAC_WORD_8 |
( |
|
X, |
|
|
|
w |
|
) |
| (X##_f[w]) |