commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10228 - gnuradio/branches/developers/eb/gcell-wip/gce


From: eb
Subject: [Commit-gnuradio] r10228 - gnuradio/branches/developers/eb/gcell-wip/gcell/lib/runtime/spu
Date: Thu, 15 Jan 2009 00:46:59 -0700 (MST)

Author: eb
Date: 2009-01-15 00:46:58 -0700 (Thu, 15 Jan 2009)
New Revision: 10228

Modified:
   gnuradio/branches/developers/eb/gcell-wip/gcell/lib/runtime/spu/gc_main.c
   gnuradio/branches/developers/eb/gcell-wip/gcell/lib/runtime/spu/gc_random.c
Log:
fixed RNG, tweaking backoff params

Modified: 
gnuradio/branches/developers/eb/gcell-wip/gcell/lib/runtime/spu/gc_main.c
===================================================================
--- gnuradio/branches/developers/eb/gcell-wip/gcell/lib/runtime/spu/gc_main.c   
2009-01-15 06:26:56 UTC (rev 10227)
+++ gnuradio/branches/developers/eb/gcell-wip/gcell/lib/runtime/spu/gc_main.c   
2009-01-15 07:46:58 UTC (rev 10228)
@@ -166,6 +166,8 @@
 /*
  * For 3.2 GHz SPE
  *
+ * 10   1023 cycles    320 ns
+ * 11    2047 cycle     640 ns
  * 12    4095 cycles    1.3 us
  * 13    8191 cycles    2.6 us
  * 14   16383 cycles    5.1 us
@@ -180,13 +182,15 @@
 static unsigned char log2_backoff_start[16] = {
 // 1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16
 // -------------------------------------------------------------
-  12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 16, 16
+//12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 16, 16
+  11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11
 };
   
 static unsigned char log2_backoff_cap[16] = {
 // 1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16
 // -------------------------------------------------------------
-  17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 21, 21
+//17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 21, 21
+  13, 14, 14, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 21, 21
 };
   
 static void

Modified: 
gnuradio/branches/developers/eb/gcell-wip/gcell/lib/runtime/spu/gc_random.c
===================================================================
--- gnuradio/branches/developers/eb/gcell-wip/gcell/lib/runtime/spu/gc_random.c 
2009-01-15 06:26:56 UTC (rev 10227)
+++ gnuradio/branches/developers/eb/gcell-wip/gcell/lib/runtime/spu/gc_random.c 
2009-01-15 07:46:58 UTC (rev 10228)
@@ -22,12 +22,12 @@
 
 static int last_val = 0;
 
-#if 0
+#if 1
 # define M  259200     // values from Numerical Recipes in C, 1988
 # define A    7141
 # define C   54773
 #else
-# define M  714025     // values from Numerical Recipes in C, 1988
+# define M  714025     // values from Numerical Recipes in C, 1988 (too big)
 # define A    4096
 # define C  150889
 #endif





reply via email to

[Prev in Thread] Current Thread [Next in Thread]