lib/int_sqrt: adjust comments
[email protected]
maintainerPATCH 34/94 lib/int_sqrt: adjust comments
From: Peter Zijlstra <[email protected]>
Subject: lib/int_sqrt: adjust comments
Our current int_sqrt() is not rough nor any approximation; it calculates the exact value of: floor(sqrt()). Document this.
Signed-off-by Peter Zijlstra (Intel) <[email protected]>
Acked-by Linus Torvalds <[email protected]>
Cc Anshul Garg <[email protected]>
Cc Davidlohr Bueso <[email protected]>
Cc David Miller <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Joe Perches <[email protected]>
Cc Kees Cook <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Michael Davidson <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Will Deacon <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
lib/int_sqrt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/int_sqrt.c renamed from lib/int_sqrt.c~lib-int_sqrt-adjust-comments +2 -2
@@ -11,10 +11,10 @@#include <linux/bitops.h> /** -* int_sqrt - rough approximation to sqrt +* int_sqrt - computes the integer square root * @x: integer of which to calculate the sqrt * -* A very rough approximation to the sqrt() function. +* Computes: floor(sqrt(x)) */ unsigned long int_sqrt (unsigned long x) {
_