[vlc-devel] [PATCH] Tidied comments in conjunction with Code Janitorial style. Botched the first one, sorry.
Lane Kelly
lanekelly16 at gmail.com
Mon Apr 19 00:00:11 CEST 2010
static void vlc_rand_init (void)
double vlc_drand48 (void)
long vlc_lrand48 (void)
long vlc_mrand48 (void)
---
src/misc/rand.c | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/misc/rand.c b/src/misc/rand.c
index 1f0c44e..fa805c0 100644
--- a/src/misc/rand.c
+++ b/src/misc/rand.c
@@ -185,11 +185,11 @@ static void init_rand48 (void)
/*****************************************************************************
* PRNG uniformly distributed between 0.0 and 1.0 with 48-bits precision. *
- * *
+ * *
* @note Contrary to POSIX drand48(), this function is thread-safe. *
* @warning Series generated by this function are not reproducible. *
* Use erand48() if you need reproducible series. *
- * *
+ * *
* @return a double value within [0.0, 1.0] inclusive *
*****************************************************************************/
double vlc_drand48 (void)
@@ -204,13 +204,13 @@ double vlc_drand48 (void)
}
/*****************************************************************************
- * PRNG uniformly distributed between 0 and 2^32 - 1. *
- * *
+ * PRNG uniformly distributed between 0 and 2^32 - 1. *
+ * *
* @note Contrary to POSIX lrand48(), this function is thread-safe. *
* @warning Series generated by this function are not reproducible. *
- * Use nrand48() if you need reproducible series. *
- * *
- * @return a double value within [0.0, 1.0] inclusive *
+ * Use nrand48() if you need reproducible series. *
+ * *
+ * @return a double value within [0.0, 1.0] inclusive. *
*****************************************************************************/
long vlc_lrand48 (void)
{
@@ -224,13 +224,13 @@ long vlc_lrand48 (void)
}
/*****************************************************************************
- * PRNG uniformly distributed between -2^32 and 2^32 - 1. *
- * *
- * @note Contrary to POSIX mrand48(), this function is thread-safe. *
+ * PRNG uniformly distributed between -2^32 and 2^32 - 1. *
+ * *
+ * @note Contrary to POSIX mrand48(), this function is thread-safe. *
* @warning Series generated by this function are not reproducible. *
- * Use jrand48() if you need reproducible series. *
- * *
- * @return a double value within [0.0, 1.0] inclusive *
+ * Use jrand48() if you need reproducible series. *
+ * *
+ * @return a double value within [0.0, 1.0] inclusive *
*****************************************************************************/
long vlc_mrand48 (void)
{
--
1.7.0.3
More information about the vlc-devel
mailing list