UNW_IS_FPREG(3libunwind)

πŸ“¦
version 1.8.3 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 reg is 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 🌟

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. πŸ’…βœ¨πŸŽ€