From ae183bb0cf15903c4d6bf72d0c814ced9f1b261d Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 24 Jul 2017 22:29:01 +0200 Subject: [PATCH] mood: Add notice about int_sqrt(). While the algorithm probably predates Linux, the implementation was copied from the Linux source tree in 2007. The commit which introduced the function back then (f6f50d03, "Merge the new afs code.") should have mentioned this. De-doxify the function as it is static and hence not part of the html generated by doxygen. --- mood.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mood.c b/mood.c index 315ef0cb..54d7b85f 100644 --- a/mood.c +++ b/mood.c @@ -84,12 +84,11 @@ struct mood { */ static struct mood *current_mood; -/** +/* * Rough approximation to sqrt. * - * \param x Integer of which to calculate the sqrt. - * - * \return An integer res with res * res <= x. + * It returns an integer res with res * res <= x. Taken 2007 from the linux + * source tree. */ __a_const static uint64_t int_sqrt(uint64_t x) { -- 2.30.2