 
| Main index | Section 3 | Options | 
#include <sys/qmath.h>
The Q_NORMPREC() function attempts to normalise the precision of a and b if they differ. The greater of the two precisions is preferred if possible, unless that would truncate integer component data for the other operand, in which case the highest precision that preserves the integer component of both a and b is selected.
The Q_QMAXQ() and Q_QMINQ() functions return the larger or smaller of a and b respectively.
The Q_QCLONEQ() and Q_QCPYVALQ() functions attempt to store identical or representational copies of r, in l respectively. An identical Q number produced by cloning copies the control bits as well as the verbatim integer/fractional bits. A representational copy only copies the values of r, Ap, s integer and fractional bits, representing them in the bits available per l, Ap, s Q format.
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.
For more details, see qmath(3).
The Q_QMAXQ() and Q_QMINQ() functions return the numerically larger or smaller of their two inputs respectively.
| Q_QADDQ (3) | July 8, 2018 | 
 
| Main index | Section 3 | Options | 
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Like a classics radio station whose play list spans decades, Unix simultaneously exhibits its mixed and dated heritage. There's Clash-era graphics interfaces; Beatles-era two-letter command names; and systems programs (for example, ps) whose terse and obscure output was designed for slow teletypes; Bing Crosby-era command editing (# and @ are still the default line editing commands), and Scott Joplin-era core dumps. | ” | 
| — The Unix Haters' handbook | ||