[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] gr-error-correcting-codes/src/lib/libecc/mld n2...
From: |
Eric Blossom |
Subject: |
[Commit-gnuradio] gr-error-correcting-codes/src/lib/libecc/mld n2... |
Date: |
Fri, 04 Aug 2006 15:45:51 +0000 |
CVSROOT: /sources/gnuradio
Module name: gr-error-correcting-codes
Changes by: Eric Blossom <eb> 06/08/04 15:45:51
Modified files:
src/lib/libecc/mld: n2bs.cc
Log message:
rolled back fix, so as not to confuse migration to subversion
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gr-error-correcting-codes/src/lib/libecc/mld/n2bs.cc?cvsroot=gnuradio&r1=1.3&r2=1.4
Patches:
Index: n2bs.cc
===================================================================
RCS file:
/sources/gnuradio/gr-error-correcting-codes/src/lib/libecc/mld/n2bs.cc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- n2bs.cc 4 Aug 2006 15:34:49 -0000 1.3
+++ n2bs.cc 4 Aug 2006 15:45:51 -0000 1.4
@@ -63,6 +63,12 @@
digits = sizeof (int32_t);
return DoIt ((int64_t) number, digits);
}
+std::string n2bs (long number, size_t digits)
+{
+ if (digits > (sizeof (long) * g_num_bits_per_byte))
+ digits = sizeof (long);
+ return DoIt ((int64_t) number, digits);
+}
std::string n2bs (u_int8_t number, size_t digits)
{
if (digits > (sizeof (u_int8_t) * g_num_bits_per_byte))
@@ -81,6 +87,12 @@
digits = sizeof (u_int32_t);
return DoIt ((int64_t) number, digits);
}
+std::string n2bs (unsigned long number, size_t digits)
+{
+ if (digits > (sizeof (unsigned long) * g_num_bits_per_byte))
+ digits = sizeof (unsigned long);
+ return DoIt ((int64_t) number, digits);
+}
std::string n2bs (u_int64_t number, size_t digits)
{
if (digits > (sizeof (u_int64_t) * g_num_bits_per_byte))