summaryrefslogtreecommitdiff
authorsandman <sandman>2002-05-23 20:09:42 (UTC)
committer sandman <sandman>2002-05-23 20:09:42 (UTC)
commit582f7e6b7da49b90d2cfccd638bccd4ca279da37 (patch) (side-by-side diff)
tree703fb12864b2efa611a280b15890a0b94530dc35
parent343f008ab9a6905ff6f9c953279e84cc581ea8b6 (diff)
downloadopie-582f7e6b7da49b90d2cfccd638bccd4ca279da37.zip
opie-582f7e6b7da49b90d2cfccd638bccd4ca279da37.tar.gz
opie-582f7e6b7da49b90d2cfccd638bccd4ca279da37.tar.bz2
Removed unused operator<<(ostream&)
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/qpdf/fixed.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/unsupported/qpdf/fixed.h b/noncore/unsupported/qpdf/fixed.h
index e42aea0..d073421 100644
--- a/noncore/unsupported/qpdf/fixed.h
+++ b/noncore/unsupported/qpdf/fixed.h
@@ -167,23 +167,25 @@ template <unsigned int SH> inline fixed<SH> fabs ( const fixed<SH> &f )
template <unsigned int SH> inline fixed<SH> sqrt ( const fixed<SH> &f )
{
if ( f. m_f <= 0 )
return fixed<SH> ( 0, true );
fixed<SH>::fix_t a0 = 0;
fixed<SH>::fix_t a1 = f. m_f; // take value as first approximation
do {
a0 = a1;
a1 = ( a0 + fixed<SH>::div ( f. m_f, a0 )) >> 1;
} while ( abs ( fixed<SH>::div ( a1 - a0, a1 )) > 1 );
return fixed<SH> ( a1, true );
}
+#if 0 // no std::ostream needed in OPIE
template <unsigned int SH> inline std::ostream &operator << ( std::ostream &o, const fixed<SH> &f )
{
o << double( f );
return o;
}
+#endif
#endif