Lines Matching +full:fractional +full:- +full:n

31 .Nd fixed-point math library based on the
39 data types and APIs support fixed-point math based on the
77 The fractional component is truncated to fit into the destination,
79 None of the operations is affected by the floating-point environment.
86 .Bl -column "isgreaterequal" "bessel function of the second kind of the order 0"
144 .Ss Functions which manipulate the combined integer/fractional data bits
146 .Xr Q_IFRAWMASK 3 integer/fractional bitmask
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
163 .Ss Functions which manipulate the fractional data 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
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
185 .Xr Q_SHL 3 left-shifted value
186 .Xr Q_SHR 3 right-shifted value
188 .Xr Q_DFV2BFV 3 convert decimal fractional value
193 data types and APIs support fixed-point math based on the
197 .Em Qm.n ,
203 .Em n
204 specifies the number of bits for fractional data.
207 .Bd -literal -offset indent
234 .Bl -dash
236 bits 1-2 specify the binary radix point shift index operand, with 00,01,10,11 ==
265 fractional
273 .Bd -literal -offset indent
284 Important bit counts are: total, control, control-encoded fractional, maximum
285 fractional, effective fractional and integer bits.
290 The count of control-encoded fractional bits is derived from calculating the
291 number of fractional bits per the control bit encoding scheme.
292 For example, the control bits binary value of 101 encodes a fractional bit
293 count of 2 x 16 = 32 fractional bits.
295 The count of maximum fractional bits is derived from the difference between the
297 For example, a s32q_t has a maximum of 32 - 3 - 1 = 28 fractional bits.
299 The count of effective fractional bits is derived from the minimum of the
300 control-encoded fractional bits and the maximum fractional bits.
301 For example, a s32q_t with 32 control-encoded fractional bits is effectively
302 limited to 28 fractional bits.
305 total bits and all other non-integer data bits
306 .Pq the sum of control, fractional and sign bits.
307 For example, a s32q_t with 8 effective fractional bits has 32 - 3 - 8 - 1 = 20 integer
310 been reserved for fractional data, e.g., when the number of control-encoded
311 fractional bits is greater than or equal to the underlying Q data type's maximum
312 fractional bits.
315 .Bd -literal -offset indent
327 Q_TOSTR(a, -1, 10, buf, sizeof(buf));
328 printf("%s\\n", buf);
333 initialise it with the fixed-point value for 5/3, and render a debugging
335 .Pq including its full precision decimal C-string representation ,
337 .Bd -literal -offset indent
342 Q_TOSTR(s32, -1, 10, buf, sizeof(buf));
343 printf(Q_DEBUG(s32, "", "\\n\\ttostr=%s\\n\\n", 0), buf);
347 .Bd -literal -offset indent
349 type=s32q_t, Qm.n=Q20.8, rpshft=11, imin=0xfff00001, \\
382 .An -nosplit