Lines Matching +full:3 +full:a
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
60 is used to refer to any numeric type and is therefore a superset of
89 .Ss Functions which create/initialise a Q number
91 .Xr Q_INI 3 initialise a Q number
95 .Xr Q_QADDQ 3 addition
96 .Xr Q_QDIVQ 3 division
97 .Xr Q_QMULQ 3 multiplication
98 .Xr Q_QSUBQ 3 subtraction
99 .Xr Q_NORMPREC 3 normalisation
100 .Xr Q_QMAXQ 3 maximum function
101 .Xr Q_QMINQ 3 minimum function
102 .Xr Q_QCLONEQ 3 identical copy
103 .Xr Q_QCPYVALQ 3 representational copy
105 .Ss Numeric functions which apply integers to a Q number
107 .Xr Q_QADDI 3 addition
108 .Xr Q_QDIVI 3 division
109 .Xr Q_QMULI 3 multiplication
110 .Xr Q_QSUBI 3 subtraction
111 .Xr Q_QFRACI 3 fraction
112 .Xr Q_QCPYVALI 3 overwrite
114 .Ss Numeric functions which operate on a single Q number
116 .Xr Q_QABS 3 absolute value
117 .Xr Q_Q2D 3 double representation
118 .Xr Q_Q2F 3 float representation
122 .Xr Q_SIGNED 3 determine sign
123 .Xr Q_LTZ 3 less than zero
124 .Xr Q_PRECEQ 3 compare bits
125 .Xr Q_QLTQ 3 less than
126 .Xr Q_QLEQ 3 less or equal
127 .Xr Q_QGTQ 3 greater than
128 .Xr Q_QGEQ 3 greater or equal
129 .Xr Q_QEQ 3 equal
130 .Xr Q_QNEQ 3 not equal
131 .Xr Q_OFLOW 3 would overflow
132 .Xr Q_RELPREC 3 relative precision
136 .Xr Q_SIGNSHFT 3 sign bit position
137 .Xr Q_SSIGN 3 sign bit
138 .Xr Q_CRAWMASK 3 control bitmask
139 .Xr Q_SRAWMASK 3 sign bitmask
140 .Xr Q_GCRAW 3 raw control bits
141 .Xr Q_GCVAL 3 value of control bits
142 .Xr Q_SCVAL 3 set control bits
146 .Xr Q_IFRAWMASK 3 integer/fractional bitmask
147 .Xr Q_IFVALIMASK 3 value of integer bits
148 .Xr Q_IFVALFMASK 3 value of fractional bits
149 .Xr Q_GIFRAW 3 raw integer/fractional bits
150 .Xr Q_GIFABSVAL 3 absolute value of fractional bits
151 .Xr Q_GIFVAL 3 real value of fractional bits
152 .Xr Q_SIFVAL 3 set integer/fractional bits
153 .Xr Q_SIFVALS 3 set separate integer/fractional values
157 .Xr Q_IRAWMASK 3 integer bitmask
158 .Xr Q_GIRAW 3 raw integer bits
159 .Xr Q_GIABSVAL 3 absolute value of integer bits
160 .Xr Q_GIVAL 3 real value of integer bits
161 .Xr Q_SIVAL 3 set integer bits
165 .Xr Q_FRAWMASK 3 fractional bitmask
166 .Xr Q_GFRAW 3 raw fractional bits
167 .Xr Q_GFABSVAL 3 absolute value of fractional bits
168 .Xr Q_GFVAL 3 real value of fractional bits
169 .Xr Q_SFVAL 3 set fractional bits
173 .Xr Q_NCBITS 3 number of reserved control bits
174 .Xr Q_BT 3 C data type
175 .Xr Q_TC 3 casted data type
176 .Xr Q_NTBITS 3 number of total bits
177 .Xr Q_NFCBITS 3 number of control-encoded fractional bits
178 .Xr Q_MAXNFBITS 3 number of maximum fractional bits
179 .Xr Q_NFBITS 3 number of effective fractional bits
180 .Xr Q_NIBITS 3 number of integer bits
181 .Xr Q_RPSHFT 3 bit position of radix point
182 .Xr Q_ABS 3 absolute value
183 .Xr Q_MAXSTRLEN 3 number of characters to render string
184 .Xr Q_TOSTR 3 render string
185 .Xr Q_SHL 3 left-shifted value
186 .Xr Q_SHR 3 right-shifted value
187 .Xr Q_DEBUG 3 render debugging information
188 .Xr Q_DFV2BFV 3 convert decimal fractional value
226 is used to refer to any numeric type and is therefore a superset of
231 The 3 least significant bits
237 1,2,3,4.
239 bit 3 specifies the radix point shift index operand multiplier as 2
254 of signed Q types stores the sign bit, with bit value 0 representing a positive
255 number and bit value 1 representing a negative number.
261 This binary representation used for Q numbers therefore comprises a set of
271 The following example illustrates the binary representation of a Q20.8 number
272 represented using a s32q_t variable:
278 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
279 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
288 For example, a s32q_t has 32 total bits.
292 For example, the control bits binary value of 101 encodes a fractional bit
297 For example, a s32q_t has a maximum of 32 - 3 - 1 = 28 fractional bits.
301 For example, a s32q_t with 32 control-encoded fractional bits is effectively
307 For example, a s32q_t with 8 effective fractional bits has 32 - 3 - 8 - 1 = 20 integer
314 .Ss Calculating area of a circle with r=4.2 and rpshft=16
316 u64q_t a, pi, r;
319 Q_INI(&a, 0, 0, 16);
320 Q_INI(&pi, 3, 14159, 16);
323 Q_QCLONEQ(&a, r);
324 Q_QMULQ(&a, r);
325 Q_QMULQ(&a, pi);
327 Q_TOSTR(a, -1, 10, buf, sizeof(buf));
331 Declare a Q20.8 s32q_t number
333 initialise it with the fixed-point value for 5/3, and render a debugging
340 Q_QFRACI(&s32, 5, 3);
361 present in the rendered output above indicates a manual line break inserted to
365 .Xr math 3 ,
366 .Xr Q_FRAWMASK 3 ,
367 .Xr Q_IFRAWMASK 3 ,
368 .Xr Q_INI 3 ,
369 .Xr Q_IRAWMASK 3 ,
370 .Xr Q_QABS 3 ,
371 .Xr Q_QADDI 3 ,
372 .Xr Q_QADDQ 3 ,
373 .Xr Q_SIGNED 3 ,
374 .Xr Q_SIGNSHFT 3 ,