OSSP CVS Repository

ossp - Difference in ossp-pkg/ui64/ui64.c versions 1.1 and 1.2
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/ui64/ui64.c 1.1 -> 1.2

--- ui64.c       2002/04/28 13:22:49     1.1
+++ ui64.c       2002/04/28 18:58:01     1.2
@@ -37,6 +37,7 @@
 #define UI64_DIGITS 8   /* 8*8 = 64 bit */
 #define UIXX_T(n) struct { unsigned char x[n]; }
 
+/* fill an ui64_t with a sequence of a particular digit */
 #define ui64_fill(__x, __n) \
     do { int __i; \
       for (__i = 0; __i < UI64_DIGITS; __i++) \
@@ -77,7 +78,7 @@
 }
 
 /* convert internal format into ISO-C "unsigned long";
-   truncates if sizeof(unsigned long) is less than 8!) */
+   truncates if sizeof(unsigned long) is less than UI64_DIGITS! */
 unsigned long ui64_i2n(ui64_t x)
 {
     unsigned long n;
@@ -159,6 +160,7 @@
         return str;
 }
 
+/* addition of two ui64_t */
 ui64_t ui64_add(ui64_t x, ui64_t y, ui64_t *ov)
 {
     ui64_t z;
@@ -176,6 +178,7 @@
     return z;
 }
 
+/* addition of an ui64_t and a single digit */
 ui64_t ui64_addn(ui64_t x, int y, int *ov)
 {
     ui64_t z;
@@ -191,6 +194,7 @@
     return z;
 }
 
+/* subtraction of two ui64_t */
 ui64_t ui64_sub(ui64_t x, ui64_t y, ui64_t *ov)
 {
     ui64_t z;
@@ -209,6 +213,7 @@
     return z;
 }
 
+/* subtraction of an ui64_t and a single digit */
 ui64_t ui64_subn(ui64_t x, int y, int *ov)
 {
     ui64_t z;

CVSTrac 2.0.1