updates.
[silc.git] / lib / silcmath / mp_mpi.c
index 09f1ae9711f7644147fd3679bbd0c014c2b18d1c..56d2730aa8d9b2466fc11f7291ea923d3b2c8452 100644 (file)
@@ -1,16 +1,15 @@
 /*
 
-  mp_mpi.c
+  mp_mpi.c 
 
-  Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
+  Author: Pekka Riikonen <priikone@silcnet.org>
 
   Copyright (C) 2001 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
-  the Free Software Foundation; either version 2 of the License, or
-  (at your option) any later version.
-  
+  the Free Software Foundation; version 2 of the License.
+
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
@@ -40,13 +39,11 @@ size_t silc_mp_size(SilcMPInt *mp)
 
 size_t silc_mp_sizeinbase(SilcMPInt *mp, int base)
 {
-  return mp_radix_size(mp, base) - 2; /* XXX this is wrong but it looks like
-                                        the MPI always returns the correct
-                                        value plus one as opposed what the
-                                        GMP does, it returns always one less,
-                                        and SILC code expects that. Bad thing
-                                        is that the condition "returns always
-                                        correct value" cannot be trusted! */
+  return mp_radix_size(mp, base) - 2; /* XXX This is actually wrong since
+                                        this might produce wrong balue.
+                                        But, it looks like MPI always returns
+                                        correct value plus one, whereas
+                                        GMP returns always the right value. */
 }
 
 void silc_mp_set(SilcMPInt *dst, SilcMPInt *src)