UNW_IS_FPREG(3libunwind)
π unw_is_fpreg β the libunwind glow-up check for floaty registers π
okay bestie, so you're deep in libunwind(3libunwind) land (that's the programming library, section 3, iykyk) and you need to know: is this register a floating-point register or not? That's literally it. That's the whole assignment. And unw_is_fpreg() eats that question for breakfast. π
β¨ SYNOPSIS β¨
#include <libunwind.h>
int unw_is_fpreg(unw_regnum_t reg);
like, one include, one function, zero drama. we love a low-maintenance icon. π
πΈ DESCRIPTION πΈ
The unw_is_fpreg() routine checks whether register number reg is a floating-point register. That's the vibe check. Floaty or not floaty. π
π heads up bestie: this routine is normally implemented as a macro, so applications should not attempt to take its address. Not its address, not its hand in marriage, none of that. just don't. π
β RETURN VALUE β
- If
regis a floating-point register βunw_is_fpreg()returns a non-zero value. slay. π₯ - Otherwise β it returns a value of
0. not a floaty reg, not today. π
π¦ THREAD AND SIGNAL SAFETY π¦
unw_is_fpreg() is thread safe as well as safe to use from a signal handler. so go off, call it from literally anywhere, it's giving main character energy and it will not fold. π
π SEE ALSO π
libunwind(3libunwind)unw_get_reg(3libunwind)unw_set_reg(3libunwind)unw_get_fpreg(3libunwind)unw_set_fpreg(3libunwind)
the whole friend group fr fr π«Ά
π AUTHOR π
David Mosberger-Tang Email: dmosberger@gmail.com WWW: http://www.nongnu.org/libunwind/
and that's the tea, bestie π§ this lil page came straight out of the Programming Library era, dated 29 August 2023 β so go check your registers, stay floaty, and don't take the macro's address. mwah. π β¨π
π¦ where this page comes from
- debian trixie: libunwind-dev 1.8.1-0.1 Β· MIT
- ubuntu questing: libunwind-dev 1.8.1-0.1ubuntu1
- ubuntu resolute: libunwind-dev 1.8.3-0ubuntu1 Β· MIT
- ubuntu stonking: libunwind-dev 1.8.3-0ubuntu1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms