* [gentoo-commits] gentoo-x86 commit in sci-biology/bowtie/files: bowtie-0.12.8-gcc-47.patch
@ 2012-06-19 11:34 Justin Lecher (jlec)
0 siblings, 0 replies; only message in thread
From: Justin Lecher (jlec) @ 2012-06-19 11:34 UTC (permalink / raw
To: gentoo-commits
jlec 12/06/19 11:34:11
Added: bowtie-0.12.8-gcc-47.patch
Log:
sci-biology/bowtie: Version Bump, Fix compilation with gcc-4.7, #421919
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
Revision Changes Path
1.1 sci-biology/bowtie/files/bowtie-0.12.8-gcc-47.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/bowtie/files/bowtie-0.12.8-gcc-47.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/bowtie/files/bowtie-0.12.8-gcc-47.patch?rev=1.1&content-type=text/plain
Index: bowtie-0.12.8-gcc-47.patch
===================================================================
alphabet.h | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/alphabet.h b/alphabet.h
index b464ddf..08d0281 100644
--- a/alphabet.h
+++ b/alphabet.h
@@ -38,6 +38,18 @@ static inline TStr reverseComplement(const TStr& s, bool color) {
return s_rc;
}
+/// Reverse a string in-place
+template <typename TStr>
+static inline void reverseInPlace(TStr& s) {
+ typedef typename Value<TStr>::Type TVal;
+ size_t len = length(s);
+ for(size_t i = 0; i < (len>>1); i++) {
+ TVal tmp = s[i];
+ s[i] = s[len-i-1];
+ s[len-i-1] = tmp;
+ }
+}
+
/**
* Reverse-complement s in-place. Ns go to Ns.
*/
@@ -69,18 +81,6 @@ static inline void reverseComplementInPlace(TStr& s, bool color) {
}
}
-/// Reverse a string in-place
-template <typename TStr>
-static inline void reverseInPlace(TStr& s) {
- typedef typename Value<TStr>::Type TVal;
- size_t len = length(s);
- for(size_t i = 0; i < (len>>1); i++) {
- TVal tmp = s[i];
- s[i] = s[len-i-1];
- s[len-i-1] = tmp;
- }
-}
-
/**
* Return the reverse-complement of s.
*/
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-19 11:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-19 11:34 [gentoo-commits] gentoo-x86 commit in sci-biology/bowtie/files: bowtie-0.12.8-gcc-47.patch Justin Lecher (jlec)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox