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 1bc6ee17ae81acd023b81e09334dd4590d880599..98794d3fa54425edec7351ec05a37ad8865ddc25 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 fb513c0560110238fc4ae24259662e8ffb4fc713..55b6e620f971a993ca91ac002ea0712bb05506a5 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 f13b7b3e1fcfc6dd90ade0d7ceae5cf72ee4dfcd..b8253b14fbf758c10fb60e55d7c5a4ab61885441 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 c0ef0a6f734a28e6f4c4ed7a2fb63bc840410af3..6da03ce634057e146c2f943ccef4f26f190d50c3 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;         \
 }