2 .\" Copyright (c) 2018 Netflix, Inc.
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions, and the following disclaimer,
10 .\" without modification, immediately at the beginning of the file.
11 .\" 2. The name of the author may not be used to endorse or promote products
12 .\" derived from this software without specific prior written permission.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
18 .\" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
40 .Nd fixed-point math functions which manipulate the combined integer/fractional
45 .Fn Q_IFRAWMASK "QTYPE q"
47 .Fn Q_IFVALIMASK "QTYPE q"
49 .Fn Q_IFVALFMASK "QTYPE q"
51 .Fn Q_GIFRAW "QTYPE q"
53 .Fn Q_GIFABSVAL "QTYPE q"
55 .Fn Q_GIFVAL "QTYPE q"
57 .Fn Q_SIFVAL "QTYPE q" "ITYPE ifv"
59 .Fn Q_SIFVALS "QTYPE q" "ITYPE iv" "ITYPE fv"
66 combined integer and fractional data bits.
73 bit masks for the integer and fractional bits of
75 combined integer and fractional data bits value, i.e., are applicable to the
84 raw masked integer/fractional data bits.
89 return the absolute and real values of
91 integer/fractional data bits respectively.
96 combined integer/fractional data bits to the value
102 integer and fractional data bits to the separate values
107 All of those functions operate on
108 the following data types:
118 which are referred to generically as
126 For more details, see
138 return their respective values as integers of the same underlying ITYPE as
154 functions first appeared in
160 functions and this manual page were written by
161 .An Lawrence Stewart Aq Mt lstewart@FreeBSD.org
162 and sponsored by Netflix, Inc.