Attached is another patch for AP26 to make it run faster on 32-bit computers.
The main changes where made in faster32.zip, here are additional changes.

This patch doesn't affect the ranges of K or SHIFT.
It doesn't interact with changes made by faster32.zip.

This patch speeds up some divisions by a large factor, but since those divisions are
not executed frequently, the speed gain of the whole program may be not very significant,
but even a few % speed gain does count.

************************

Instructions:


In AP26.h or AP26-boinc.h find the lines:

//%%%%%%%%%%%%%%%%%%
n=n59+(b+SHIFT)*MOD;

#include "IF.H"
if(n%7)
if(n%11)
if(n%13)
if(n%17)
if(n%19)
if(n%23)
//%%%%%%%%%%%%%%%%%%


and replace them with the lines:

//%%%%%%%%%%%%%%%%%%
int na, nb, nc, tmp1, tmp2;

n=n59+(b+SHIFT)*MOD;

#include "IF32.H"
//%%%%%%%%%%%%%%%%%%

***********************************

Jarek Wroblewski, Jauary 23, 2009