dc_is_fp_enabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dc_is_fp_enabled(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is the little function that tells you whether your code is already wrapped up all cozy under FPU protection or not. it's giving "are we safe rn or are we about to find out" energy 🫢


🌸 NAME 🌸

dc_is_fp_enabled β€” literally just checks if FPU protection is enabled πŸ’–


⭐ SYNOPSIS ⭐

bool dc_is_fp_enabled (void );

πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” no arguments, bestie. zero. nada. it takes nothing and it needs nothing πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so this function tells you if the code is already under FPU protection or not. that's it, that's the whole vibe check βœ…

here's the tea: a function that works as an API for a set of FPU operations can use this function for checking if the caller invoked it after DC_FP_START. if you want to see it in action, go take a look at the dcn20_fpu.c file β€” icon behaviour, honestly πŸ”₯

it's similar to dc_assert_fp_enabled, but does not assert β€” instead it just returns the status. so like, same energy, way more chill, no dramatic exit πŸ’€


🧚 SEE ALSO 🧚


ngl if you're poking around in the DC FPU code, read the whole crew above before you start anything β€” iykyk πŸ™ˆ

🌸 that's the whole page, bestie 🌸 β€” this cutie lives at ./drivers/gpu/drm/amd/display/... and the manual's dated October 2026. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from