2006-10-05 [colin] 2.5.3cvs7
authorColin Leroy <colin@colino.net>
Thu, 5 Oct 2006 06:08:02 +0000 (06:08 +0000)
committerColin Leroy <colin@colino.net>
Thu, 5 Oct 2006 06:08:02 +0000 (06:08 +0000)
* src/common/utils.c
Faster division, thanks to Jean Diraison

ChangeLog
PATCHSETS
configure.ac
src/common/utils.c

index 1bc6ee1..98794d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-05 [colin]     2.5.3cvs7
+
+       * src/common/utils.c
+               Faster division, thanks to Jean Diraison
+
 2006-10-05 [paul]      2.5.3cvs6
 
        * src/common/utils.c
index fb513c0..55b6e62 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.52.2.26 -r 1.52.2.27 src/prefs_folder_item.c;  ) > 2.5.3cvs4.patchset
 ( cvs diff -u -r 1.213.2.121 -r 1.213.2.122 src/folder.c;  ) > 2.5.3cvs5.patchset
 ( cvs diff -u -r 1.36.2.82 -r 1.36.2.83 src/common/utils.c;  ) > 2.5.3cvs6.patchset
+( cvs diff -u -r 1.36.2.83 -r 1.36.2.84 src/common/utils.c;  ) > 2.5.3cvs7.patchset
index f13b7b3..b8253b1 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=5
 MICRO_VERSION=3
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=6
+EXTRA_VERSION=7
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index c0ef0a6..6da03ce 100644 (file)
@@ -338,7 +338,7 @@ gchar *itos(gint n)
 #define divide(num,divisor,i,d)                \
 {                                      \
        i = num >> divisor;             \
-       d = num% (1 << divisor);        \
+       d = num & ((1<<divisor)-1);     \
        d = (d*100) >> divisor;         \
 }