summaryrefslogtreecommitdiff
path: root/storage/xtradb/ut/ut0rnd.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/xtradb/ut/ut0rnd.c')
-rw-r--r--storage/xtradb/ut/ut0rnd.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/storage/xtradb/ut/ut0rnd.c b/storage/xtradb/ut/ut0rnd.c
index f5d6cb08b0f..cefd0990ecc 100644
--- a/storage/xtradb/ut/ut0rnd.c
+++ b/storage/xtradb/ut/ut0rnd.c
@@ -16,7 +16,8 @@ Place, Suite 330, Boston, MA 02111-1307 USA
*****************************************************************************/
-/*******************************************************************
+/***************************************************************//**
+@file ut/ut0rnd.c
Random numbers and hashing
Created 5/11/1994 Heikki Tuuri
@@ -28,23 +29,25 @@ Created 5/11/1994 Heikki Tuuri
#include "ut0rnd.ic"
#endif
-/* These random numbers are used in ut_find_prime */
+/** These random numbers are used in ut_find_prime */
+/*@{*/
#define UT_RANDOM_1 1.0412321
#define UT_RANDOM_2 1.1131347
#define UT_RANDOM_3 1.0132677
+/*@}*/
-
+/** Seed value of ut_rnd_gen_ulint(). */
UNIV_INTERN ulint ut_rnd_ulint_counter = 65654363;
-/***************************************************************
+/***********************************************************//**
Looks for a prime number slightly greater than the given argument.
-The prime is chosen so that it is not near any power of 2. */
+The prime is chosen so that it is not near any power of 2.
+@return prime */
UNIV_INTERN
ulint
ut_find_prime(
/*==========*/
- /* out: prime */
- ulint n) /* in: positive number > 100 */
+ ulint n) /*!< in: positive number > 100 */
{
ulint pow2;
ulint i;