Fix divistion by 2^bits-1 is not equivalent to shift by bits svn path=/trunk/koffice/; revision=1179733