commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r11387 - in gnuradio/branches/developers/jcorgan/usrp-


From: jcorgan
Subject: [Commit-gnuradio] r11387 - in gnuradio/branches/developers/jcorgan/usrp-headers/usrp/host: . lib lib-legacy
Date: Wed, 8 Jul 2009 19:30:13 -0600 (MDT)

Author: jcorgan
Date: 2009-07-08 19:30:13 -0600 (Wed, 08 Jul 2009)
New Revision: 11387

Added:
   gnuradio/branches/developers/jcorgan/usrp-headers/usrp/host/lib-legacy/
   
gnuradio/branches/developers/jcorgan/usrp-headers/usrp/host/lib-legacy/gen-ratios
Removed:
   gnuradio/branches/developers/jcorgan/usrp-headers/usrp/host/lib/gen-ratios
   gnuradio/branches/developers/jcorgan/usrp-headers/usrp/host/lib/legacy/
Log:
Step 1 of renaming legacy directory


Property changes on: 
gnuradio/branches/developers/jcorgan/usrp-headers/usrp/host/lib-legacy
___________________________________________________________________
Added: svn:ignore
   + Makefile
Makefile.in
.la
.lo
.deps
.libs
*.la
*.lo
test_fusb
std_paths.h
usrp_dbid.py
usrp_dbid.h
usrp_dbid.cc
stamp-*

Added: svn:mergeinfo
   + /gnuradio/branches/developers/eb/t348/usrp/host/lib/legacy:10638-10648
/gnuradio/branches/developers/eb/t364/usrp/host/lib/legacy:11016-11017
/gnuradio/branches/developers/eb/t367/usrp/host/lib/legacy:11021-11025
/gnuradio/branches/developers/eb/t371/usrp/host/lib/legacy:10958-10971
/gnuradio/branches/developers/eb/t378/usrp/host/lib/legacy:10683-10688
/gnuradio/branches/developers/jblum/grc/usrp/host/lib/legacy:10680-10938,11187-11273,11310-11357
/gnuradio/branches/developers/jblum/gui_guts/usrp/host/lib/legacy:10464-10658
/gnuradio/branches/developers/jblum/vlen/usrp/host/lib/legacy:10667-10677
/gnuradio/branches/developers/jblum/wxgui/usrp/host/lib/legacy:11125-11183
/gnuradio/branches/developers/jcorgan/cpphier/usrp/host/lib/legacy:10818-10858
/gnuradio/branches/developers/jcorgan/deb/usrp/host/lib/legacy:10949-10959,11013-11022,11046-11059,11075-11077
/gnuradio/branches/developers/jcorgan/fw-optimize/usrp/host/lib/legacy:10428-10429
/gnuradio/branches/developers/jcorgan/gpio2/usrp/host/lib/legacy:10713-10765
/gnuradio/branches/developers/jcorgan/iad2/usrp/host/lib/legacy:10771-10887
/gnuradio/branches/developers/jcorgan/np/usrp/host/lib/legacy:11124-11148
/gnuradio/branches/developers/jcorgan/t161/usrp/host/lib/legacy:10876-10880
/gnuradio/branches/developers/michaelld/am_swig_4/usrp/host/lib/legacy:10555-10595
/gnuradio/branches/developers/michaelld/two_mods/usrp/host/lib/legacy:10540-10546
/gnuradio/branches/developers/trondeau/qt/usrp/host/lib/legacy:11235-11360

Copied: 
gnuradio/branches/developers/jcorgan/usrp-headers/usrp/host/lib-legacy/gen-ratios
 (from rev 11384, 
gnuradio/branches/developers/jcorgan/usrp-headers/usrp/host/lib/gen-ratios)
===================================================================
--- 
gnuradio/branches/developers/jcorgan/usrp-headers/usrp/host/lib-legacy/gen-ratios
                           (rev 0)
+++ 
gnuradio/branches/developers/jcorgan/usrp-headers/usrp/host/lib-legacy/gen-ratios
   2009-07-09 01:30:13 UTC (rev 11387)
@@ -0,0 +1,48 @@
+#!/usr/bin/env python
+# -*- python -*-
+
+def how_good (x):
+    pof2 = [1,2,4,8,16]
+    if x in pof2:
+        return 0
+    if x in map (lambda x: x+1, pof2):
+        return -10
+    if x in map (lambda x: x-1, pof2):
+        return -5
+    return -2
+
+    
+def better (v1, v2):
+    return abs ((v1 & 0xf) - ((v1 >> 4) & 0xf)) < abs ((v2 & 0xf) - ((v2 >> 4) 
& 0xf))
+
+
+def foo ():
+    result = {}
+    for i in range (1,17):
+        for j in range (1,17):
+            i_goodness = how_good (i)
+            j_goodness = how_good (j)
+            goodness = i_goodness + j_goodness
+            v = ((i - 1) << 4) | (j - 1)
+
+            key = i * j
+            prev = result.get (key, None)
+            # print "i=%3d j=%3d key=%3d good=%3d v=0x%02x prev=%s" % (i, j, 
key, goodness, v, prev)
+
+            if not prev:
+                result[key] = (goodness, v)
+            elif goodness > prev[0]:
+                result[key] = (goodness, v)
+            elif goodness == prev[0] and better(v, prev[1]):
+                result[key] = (goodness, v)
+
+    r = result.items ()
+    r.sort ()
+    for k, d in r:
+        print "(%3d, 0x%02x)" % (k, d[1])
+
+    
+            
+foo ()
+
+       


Property changes on: 
gnuradio/branches/developers/jcorgan/usrp-headers/usrp/host/lib-legacy/gen-ratios
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:keywords
   + Author Date Id Revision
Added: svn:mergeinfo
   + /gnuradio/branches/developers/eb/t348/usrp/host/lib/gen-ratios:10638-10648
/gnuradio/branches/developers/eb/t364/usrp/host/lib/gen-ratios:11016-11017
/gnuradio/branches/developers/eb/t367/usrp/host/lib/gen-ratios:11021-11025
/gnuradio/branches/developers/eb/t371/usrp/host/lib/gen-ratios:10958-10971
/gnuradio/branches/developers/eb/t378/usrp/host/lib/gen-ratios:10683-10688
/gnuradio/branches/developers/jblum/grc/usrp/host/lib/gen-ratios:10680-10938,11187-11273,11310-11357
/gnuradio/branches/developers/jblum/gui_guts/usrp/host/lib/gen-ratios:10464-10658
/gnuradio/branches/developers/jblum/vlen/usrp/host/lib/gen-ratios:10667-10677
/gnuradio/branches/developers/jblum/wxgui/usrp/host/lib/gen-ratios:11125-11183
/gnuradio/branches/developers/jcorgan/cpphier/usrp/host/lib/gen-ratios:10818-10858
/gnuradio/branches/developers/jcorgan/deb/usrp/host/lib/gen-ratios:10949-10959,11013-11022,11046-11059,11075-11077
/gnuradio/branches/developers/jcorgan/fw-optimize/usrp/host/lib/gen-ratios:10428-10429
/gnuradio/branches/developers/jcorgan/gpio2/usrp/host/lib/gen-ratios:10713-10765
/gnuradio/branches/developers/jcorgan/iad2/usrp/host/lib/gen-ratios:10771-10887
/gnuradio/branches/developers/jcorgan/np/usrp/host/lib/gen-ratios:11124-11148
/gnuradio/branches/developers/jcorgan/t161/usrp/host/lib/gen-ratios:10876-10880
/gnuradio/branches/developers/michaelld/am_swig_4/usrp/host/lib/gen-ratios:10555-10595
/gnuradio/branches/developers/michaelld/two_mods/usrp/host/lib/gen-ratios:10540-10546
/gnuradio/branches/developers/trondeau/qt/usrp/host/lib/gen-ratios:11235-11360
Added: svn:eol-style
   + native





reply via email to

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