al_fixsqrt(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

hey bestie πŸ’– welcome to the al_fixsqrt(3alleg5) manual page β€” it's giving Allegro 5 API realness ✨

🌸 NAME 🌸

al_fixsqrt β€” Allegro 5 API πŸ¦‹

✨ SYNOPSIS ✨

              #include <allegro5/allegro.h>

              al_fixed al_fixsqrt(al_fixed x)

πŸ’… DESCRIPTION πŸ’…

okay so al_fixsqrt finds the non negative square root of x πŸ’–. like, that's its whole thing, and it ate ✨.

but bestie, if x is negative, Allegro's errno is set to EDOM and the function returns zero 😭. no cap. so don't be out here passing negative numbers unless you're ready for that energy πŸ’€.


Allegro reference manual β€” al_fixsqrt(3alleg5) β€” that's the sign-off, periodt πŸ’…πŸ«Άβœ¨

πŸ“¦ where this page comes from