diff options
author | rillig <rillig@pkgsrc.org> | 2005-10-23 20:10:57 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-10-23 20:10:57 +0000 |
commit | c0f6a017e2f6de8a906508ec9f60a8c67bb81615 (patch) | |
tree | ce292463a5305c13ba5042a4a7fdc5007c5ef15a /misc | |
parent | 1055823904313912e421333c18936cf12aedea05 (diff) | |
download | pkgsrc-c0f6a017e2f6de8a906508ec9f60a8c67bb81615.tar.gz |
Added RCS Id to patch-aa and converted it into a unified patch. Sorted
PLIST.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/libquantum/PLIST | 8 | ||||
-rw-r--r-- | misc/libquantum/distinfo | 4 | ||||
-rw-r--r-- | misc/libquantum/patches/patch-aa | 58 |
3 files changed, 28 insertions, 42 deletions
diff --git a/misc/libquantum/PLIST b/misc/libquantum/PLIST index 4f7cb21aecb..c5c85bc18da 100644 --- a/misc/libquantum/PLIST +++ b/misc/libquantum/PLIST @@ -1,5 +1,5 @@ -@comment $NetBSD: PLIST,v 1.1 2005/02/01 20:52:38 augustss Exp $ -lib/libquantum.la -include/quantum.h -bin/quobprint +@comment $NetBSD: PLIST,v 1.2 2005/10/23 20:10:57 rillig Exp $ bin/quobdump +bin/quobprint +include/quantum.h +lib/libquantum.la diff --git a/misc/libquantum/distinfo b/misc/libquantum/distinfo index 86bc2ababb3..57640da03f1 100644 --- a/misc/libquantum/distinfo +++ b/misc/libquantum/distinfo @@ -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 --git a/misc/libquantum/patches/patch-aa b/misc/libquantum/patches/patch-aa index e6ef630fead..0c97207a3ba 100644 --- a/misc/libquantum/patches/patch-aa +++ b/misc/libquantum/patches/patch-aa @@ -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; + } + |