stdfix.h

ISO/IEC TR 18037
85 / 94 (90.4%)
ISO/IEC TR 18037
81 / 86 (94.2%)
Base Families
11 / 16 (68.8%)
Functions
2 / 2 (100.0%)
Macros
60 / 64 (93.8%)
Types
12 / 12 (100.0%)
Precision Coverage
uhr
5 / 11 (45.5%)
hr
5 / 12 (41.7%)
ur
9 / 15 (60.0%)
r
9 / 16 (56.2%)
ulr
9 / 15 (60.0%)
lr
9 / 16 (56.2%)
uhk
6 / 11 (54.5%)
hk
6 / 12 (50.0%)
uk
10 / 15 (66.7%)
k
10 / 16 (62.5%)
ulk
8 / 15 (53.3%)
lk
9 / 16 (56.2%)

Columns list the 12 fixed-point suffixes: uhr/hr (unsigned/signed short fract), ur/r (unsigned/signed fract), ulr/lr (unsigned/signed long fract), and uhk/hk, uk/k, ulk/lk for the corresponding accum types. See Fixed-Point Arithmetic for compiler requirements, precision macros, formatted I/O specifiers, and ABI notes.

Fixed-point Arithmetics

FamilyuhrhrurrulrlruhkhkukkulklkC23 SectionPOSIX Docs
*bitsImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedTR 18037 7.18a.6.6–
*diviN/AN/AImplementedImplementedImplementedImplementedN/AN/AImplementedImplementedImplementedImplementedTR 18037 7.18a.6.1–
absN/AImplementedN/AImplementedN/AImplementedN/AImplementedN/AImplementedN/AImplementedTR 18037 7.18a.6.2–
bits*ImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedTR 18037 7.18a.6.5–
countlsImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedTR 18037 7.18a.6.4–
divi*N/AN/AImplementedImplementedImplementedImplementedN/AN/AImplementedImplementedImplementedImplementedTR 18037 7.18a.6.1–
idiv*N/AN/AImplementedImplementedImplementedImplementedN/AN/AImplementedImplementedImplementedImplementedTR 18037 7.18a.6.1–
muli*N/AN/AImplementedImplementedImplementedImplementedN/AN/AImplementedImplementedImplementedImplementedTR 18037 7.18a.6.1–
roundImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedImplementedTR 18037 7.18a.6.3–

Higher Math Functions

FamilyuhrhrurrulrlruhkhkukkulklkC23 SectionPOSIX Docs
cosNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot Implemented––
expNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedImplementedImplementedImplementedImplementedNot ImplementedNot Implemented––
logNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot Implemented––
sinNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot Implemented––
sqrtImplementedNot ImplementedImplementedNot ImplementedImplementedNot ImplementedImplementedNot ImplementedImplementedNot ImplementedNot ImplementedNot Implemented––
tanNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot Implemented––

Conversion Functions

FamilyuhrhrurrulrlruhkhkukkulklkC23 SectionPOSIX Docs
strtofxNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedNot ImplementedTR 18037 7.18a.6.8–

Types

TypeStatusC23 SectionPOSIX Docs
int_hk_tImplementedTR 18037 7.18a.2–
int_hr_tImplementedTR 18037 7.18a.2–
int_k_tImplementedTR 18037 7.18a.2–
int_lk_tImplementedTR 18037 7.18a.2–
int_lr_tImplementedTR 18037 7.18a.2–
int_r_tImplementedTR 18037 7.18a.2–
uint_uhk_tImplementedTR 18037 7.18a.2–
uint_uhr_tImplementedTR 18037 7.18a.2–
uint_uk_tImplementedTR 18037 7.18a.2–
uint_ulk_tImplementedTR 18037 7.18a.2–
uint_ulr_tImplementedTR 18037 7.18a.2–
uint_ur_tImplementedTR 18037 7.18a.2–

Macros

MacroStatusC23 SectionPOSIX Docs
ACCUM_EPSILONImplementedTR 18037 7.18a.3–
ACCUM_FBITImplementedTR 18037 7.18a.3–
ACCUM_IBITImplementedTR 18037 7.18a.3–
ACCUM_MAXImplementedTR 18037 7.18a.3–
ACCUM_MINImplementedTR 18037 7.18a.3–
FRACT_EPSILONImplementedTR 18037 7.18a.3–
FRACT_FBITImplementedTR 18037 7.18a.3–
FRACT_MAXImplementedTR 18037 7.18a.3–
FRACT_MINImplementedTR 18037 7.18a.3–
LACCUM_EPSILONImplementedTR 18037 7.18a.3–
LACCUM_FBITImplementedTR 18037 7.18a.3–
LACCUM_IBITImplementedTR 18037 7.18a.3–
LACCUM_MAXImplementedTR 18037 7.18a.3–
LACCUM_MINImplementedTR 18037 7.18a.3–
LFRACT_EPSILONImplementedTR 18037 7.18a.3–
LFRACT_FBITImplementedTR 18037 7.18a.3–
LFRACT_MAXImplementedTR 18037 7.18a.3–
LFRACT_MINImplementedTR 18037 7.18a.3–
SACCUM_EPSILONImplementedTR 18037 7.18a.3–
SACCUM_FBITImplementedTR 18037 7.18a.3–
SACCUM_IBITImplementedTR 18037 7.18a.3–
SACCUM_MAXImplementedTR 18037 7.18a.3–
SACCUM_MINImplementedTR 18037 7.18a.3–
SFRACT_EPSILONImplementedTR 18037 7.18a.3–
SFRACT_FBITImplementedTR 18037 7.18a.3–
SFRACT_MAXImplementedTR 18037 7.18a.3–
SFRACT_MINImplementedTR 18037 7.18a.3–
UACCUM_EPSILONImplementedTR 18037 7.18a.3–
UACCUM_FBITImplementedTR 18037 7.18a.3–
UACCUM_IBITImplementedTR 18037 7.18a.3–
UACCUM_MAXImplementedTR 18037 7.18a.3–
UACCUM_MINImplementedTR 18037 7.18a.3–
UFRACT_EPSILONImplementedTR 18037 7.18a.3–
UFRACT_FBITImplementedTR 18037 7.18a.3–
UFRACT_MAXImplementedTR 18037 7.18a.3–
UFRACT_MINImplementedTR 18037 7.18a.3–
ULACCUM_EPSILONImplementedTR 18037 7.18a.3–
ULACCUM_FBITImplementedTR 18037 7.18a.3–
ULACCUM_IBITImplementedTR 18037 7.18a.3–
ULACCUM_MAXImplementedTR 18037 7.18a.3–
ULACCUM_MINImplementedTR 18037 7.18a.3–
ULFRACT_EPSILONImplementedTR 18037 7.18a.3–
ULFRACT_FBITImplementedTR 18037 7.18a.3–
ULFRACT_MAXImplementedTR 18037 7.18a.3–
ULFRACT_MINImplementedTR 18037 7.18a.3–
USACCUM_EPSILONImplementedTR 18037 7.18a.3–
USACCUM_FBITImplementedTR 18037 7.18a.3–
USACCUM_IBITImplementedTR 18037 7.18a.3–
USACCUM_MAXImplementedTR 18037 7.18a.3–
USACCUM_MINImplementedTR 18037 7.18a.3–
USFRACT_EPSILONImplementedTR 18037 7.18a.3–
USFRACT_FBITImplementedTR 18037 7.18a.3–
USFRACT_MAXImplementedTR 18037 7.18a.3–
USFRACT_MINImplementedTR 18037 7.18a.3–
absfxImplementedTR 18037 7.18a.6.7–
accumImplementedTR 18037 7.18a.1–
countlsfxImplementedTR 18037 7.18a.6.7–
divifxNot ImplementedTR 18037 7.18a.6.7–
fractImplementedTR 18037 7.18a.1–
fxdiviNot ImplementedTR 18037 7.18a.6.7–
idivfxNot ImplementedTR 18037 7.18a.6.7–
mulifxNot ImplementedTR 18037 7.18a.6.7–
roundfxImplementedTR 18037 7.18a.6.7–
satImplementedTR 18037 7.18a.1–

Functions

FunctionStatusC23 SectionPOSIX Docs
uhksqrtusImplemented––
uksqrtuiImplemented––