avivo_reduce_ratio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… avivo_reduce_ratio πŸ’…

okay so this is avivo_reduce_ratio(9) from the Kernel API Manual, and honestly? she's a little math baddie and we're obsessed πŸŽ€


✨ NAME ✨

avivo_reduce_ratio β€” fractional number reduction, aka making your fraction live its best simplified life πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

void avivo_reduce_ratio (unsigned *nom , unsigned *den , unsigned
       nom_min , unsigned den_min );

like literally that's the whole vibe. four params, no return, no drama ✨


🌸 ARGUMENTS 🌸

  • nom β€” the nominator 🫢 (yes bestie, nominator, that's what the page says, we do not correct the manpage, we respect the manpage)
  • den β€” the denominator, her other half πŸ’œ
  • nom_min β€” the minimum value for the nominator, aka the floor she refuses to go below ⭐
  • den_min β€” the minimum value for the denominator, same energy, different variable 🌈

πŸ”₯ DESCRIPTION πŸ”₯

okay so picture this: you have a fraction, right? and it's giving unsimplified. 😭

So what this does is it finds the greatest common divisor and applies it to both the nominator and the denominator β€” divide them both, slay, reduce, periodt πŸ’… β€” BUT (and this is the main character plot twist) it makes sure the nominator and denominator are at least as large as their minimum values 🫢

so like. reduce, yes. but never below nom_min and den_min. the minimums are the boundary and she respects the boundary, no cap πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

go read those too, iykyk πŸ’–


and that's the whole page bestie 🌸 this one came out of ./drivers/gpu/drm/radeon, dated October 2026, and it's still filed under avivo_reduce_ratio(9) β€” mwah, iconic, no notes πŸ’‹βœ¨πŸ§š

πŸ“¦ where this page comes from