Revision: 52879
http://brlcad.svn.sourceforge.net/brlcad/?rev=52879&view=rev
Author: brlcad
Date: 2012-10-08 15:11:56 +0000 (Mon, 08 Oct 2012)
Log Message:
-----------
apply sf patch 3575361 (Moved comments from rand.c to bn.h) from Max ( wmaanxg
).
Modified Paths:
--------------
brlcad/trunk/include/bn.h
brlcad/trunk/src/libbn/rand.c
Modified: brlcad/trunk/include/bn.h
===================================================================
--- brlcad/trunk/include/bn.h 2012-10-05 20:30:54 UTC (rev 52878)
+++ brlcad/trunk/include/bn.h 2012-10-08 15:11:56 UTC (rev 52879)
@@ -1166,6 +1166,13 @@
#define BN_RANDHALFTABSIZE 16535 /* Powers of two give streaking */
BN_EXPORT extern int bn_randhalftabsize;
+
+/**
+ * The actual table of random floating point numbers with values in
+ * the closed interval (i.e. inclusive) -0.5 to +0.5 range.
+ *
+ * For benchmarking purposes, this table is zeroed.
+ */
BN_EXPORT extern float bn_rand_halftab[BN_RANDHALFTABSIZE];
/**
@@ -1199,6 +1206,12 @@
(-bn_sin_table[(int)((0.5-
(_a)*bn_sin_scale))&(BN_SINTABSIZE-1)]))
BN_EXPORT extern const float bn_sin_table[BN_SINTABSIZE];
+/**
+ * M A T H T A B _ C O N S T A N T
+ *@brief
+ * For benchmarking purposes, make the random number table predictable.
+ * Setting to all zeros keeps dithered values at their original values.
+ */
BN_EXPORT extern void bn_mathtab_constant();
/** @} */
Modified: brlcad/trunk/src/libbn/rand.c
===================================================================
--- brlcad/trunk/src/libbn/rand.c 2012-10-05 20:30:54 UTC (rev 52878)
+++ brlcad/trunk/src/libbn/rand.c 2012-10-08 15:11:56 UTC (rev 52879)
@@ -1250,12 +1250,6 @@
int bn_randhalftabsize = BN_RANDHALFTABSIZE;
-/**
- * The actual table of random floating point numbers with values in
- * the closed interval (i.e. inclusive) -0.5 to +0.5 range.
- *
- * For benchmarking purposes, this table is zeroed.
- */
float bn_rand_halftab[BN_RANDHALFTABSIZE] = {
-0.500000f, -0.499015f, -0.458369f, -0.323357f, -0.135398f, -0.408669f,
-0.407702f,
-0.012783f, 0.026750f, -0.045567f, -0.266822f, 0.331292f, 0.431731f,
0.068060f,
@@ -3634,12 +3628,6 @@
9e20f, 9e20f, 9e20f, 9e20f, 9e20f, 9e20f, 9e20f, 9e20f, 9e20f, 9e20f
};
-/**
- * M A T H T A B _ C O N S T A N T
- *@brief
- * For benchmarking purposes, make the random number table predictable.
- * Setting to all zeros keeps dithered values at their original values.
- */
void
bn_mathtab_constant(void)
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits