pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/libquantum Added RCS Id to patch-aa and converted...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7b74d7004f2b
branches:  trunk
changeset: 501523:7b74d7004f2b
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Oct 23 20:10:57 2005 +0000

description:
Added RCS Id to patch-aa and converted it into a unified patch. Sorted
PLIST.

diffstat:

 misc/libquantum/PLIST            |   8 ++--
 misc/libquantum/distinfo         |   4 +-
 misc/libquantum/patches/patch-aa |  58 +++++++++++++++------------------------
 3 files changed, 28 insertions(+), 42 deletions(-)

diffs (87 lines):

diff -r 210a59bdb925 -r 7b74d7004f2b misc/libquantum/PLIST
--- a/misc/libquantum/PLIST     Sun Oct 23 20:07:19 2005 +0000
+++ b/misc/libquantum/PLIST     Sun Oct 23 20:10:57 2005 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1 2005/02/01 20:52:38 augustss Exp $
-lib/libquantum.la
+@comment $NetBSD: PLIST,v 1.2 2005/10/23 20:10:57 rillig Exp $
+bin/quobdump
+bin/quobprint
 include/quantum.h
-bin/quobprint
-bin/quobdump
+lib/libquantum.la
diff -r 210a59bdb925 -r 7b74d7004f2b misc/libquantum/distinfo
--- a/misc/libquantum/distinfo  Sun Oct 23 20:07:19 2005 +0000
+++ b/misc/libquantum/distinfo  Sun Oct 23 20:10:57 2005 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 11:02:55 agc Exp $
+$NetBSD: distinfo,v 1.4 2005/10/23 20:10:57 rillig Exp $
 
 SHA1 (libquantum-0.2.4.tar.gz) = dbd76434b7d4026db96aedcd16ae4cd01fb341cd
 RMD160 (libquantum-0.2.4.tar.gz) = d189f11d8119d71a3d443da28edfaea108b3f9b5
 Size (libquantum-0.2.4.tar.gz) = 211403 bytes
-SHA1 (patch-aa) = 734170cbc1a30815e89311f0a2d2df5a8d30b3d2
+SHA1 (patch-aa) = 6acf755bc0958577cd54db3f7c2519caf08bdbc4
diff -r 210a59bdb925 -r 7b74d7004f2b misc/libquantum/patches/patch-aa
--- a/misc/libquantum/patches/patch-aa  Sun Oct 23 20:07:19 2005 +0000
+++ b/misc/libquantum/patches/patch-aa  Sun Oct 23 20:10:57 2005 +0000
@@ -1,36 +1,22 @@
-*** measure.c.old      Tue Jan 11 22:12:21 2005
---- measure.c  Wed Feb  2 12:17:54 2005
-***************
-*** 39,45 ****
-  double 
-  quantum_frand()
-  {
-!   return (double) rand() / RAND_MAX;
-  }
-  
-  /* Measure the contents of a quantum register */
---- 39,45 ----
-  double 
-  quantum_frand()
-  {
-!   return (double) random() / RAND_MAX;
-  }
-  
-  /* Measure the contents of a quantum register */
-***************
-*** 64,70 ****
-        result. Otherwise, continue with the next base state. */
-  
-        r -= quantum_prob_inline(reg.node[i].amplitude);
-!       if(quantum_prob_inline(reg.node[i].amplitude) >= r)
-       return reg.node[i].state;
-      }
-  
---- 64,70 ----
-        result. Otherwise, continue with the next base state. */
-  
-        r -= quantum_prob_inline(reg.node[i].amplitude);
-!       if(0 >= r)
-       return reg.node[i].state;
-      }
-  
+$NetBSD: patch-aa,v 1.2 2005/10/23 20:10:57 rillig Exp $
+
+--- measure.c.old      Tue Jan 11 22:12:21 2005
++++ measure.c  Wed Feb  2 12:17:54 2005
+@@ -39,7 +39,7 @@
+ double 
+ quantum_frand()
+ {
+-  return (double) rand() / RAND_MAX;
++  return (double) random() / RAND_MAX;
+ }
+ 
+ /* Measure the contents of a quantum register */
+@@ -64,7 +64,7 @@
+        result. Otherwise, continue with the next base state. */
+ 
+       r -= quantum_prob_inline(reg.node[i].amplitude);
+-      if(quantum_prob_inline(reg.node[i].amplitude) >= r)
++      if(0 >= r)
+       return reg.node[i].state;
+     }
+ 



Home | Main Index | Thread Index | Old Index