The implementation comes from isqrt64() in sys/cam/cam_iosched.c. It is modified to take an unsigned long and return an unsigned int.
The i915 DRM driver started to use it in Linux 6.15.
Sponsored by: The FreeBSD Foundation
Differential D58251
linuxkpi: Add `int_sqrt()` Authored by dumbbell on Jul 15 2026, 8:17 AM.
Details
The implementation comes from isqrt64() in sys/cam/cam_iosched.c. It is modified to take an unsigned long and return an unsigned int. The i915 DRM driver started to use it in Linux 6.15. Sponsored by: The FreeBSD Foundation
Diff Detail
Event Timeline
Comment Actions Based on the feedback from @bz:
| ||||||||||||||||||||||||||||||||