| Main index | Section 3 | Options |
#include <sys/qmath.h>
Q_SSIGN() sets the sign bit of q based on the boolean isneg.
Q_CRAWMASK() and Q_SRAWMASK() return q, Ns, -specific bit masks for q, Ap, s control bits and sign bit respectively.
Q_GCRAW() and Q_GCVAL() get the raw masked control bits and value of q, Ap, s control bits respectively.
Q_SCVAL() sets q, Ap, s control bits to the value cv.
All of those functions operate on the following data types: s8q_t, u8q_t, s16q_t, u16q_t, s32q_t, u32q_t, s64q_t, and u64q_t, which are referred to generically as QTYPE. The ITYPE refers to the stdint(7) integer types.
For more details, see qmath(3).
Q_SSIGN() returns the value of q post change.
Q_CRAWMASK(), Q_SRAWMASK(), Q_GCRAW() and Q_GCVAL() return their respective values as integers of the same underlying ITYPE as q.
Q_SCVAL() returns the value of q post change.
| Q_SIGNSHFT (3) | July 8, 2018 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what's wrong.” | ” |