Attached is a patch for AP26 to make it run faster on 32-bit computers.

In directory "slower" you can find my first attempt, which appears to be a bit worse.

Instructions:

*** First change

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

r61=n59%61;
r67=n59%67;
r71=n59%71;
r73=n59%73;
r79=n59%79;
r83=n59%83;
r89=n59%89;
r97=n59%97;

and replace them with

#include "rep32-1a.h"

ALSO include the line

int n59a, n59b;

after the line

int r61, r67, r71, r73, r79, r83, r89, r97;

*** Second change

In SITO.H or SITO-boinc.h all the lines from

if(sito&=OKOK101[n59%101]) 

to the end of the file, which is

if(sito&=OKOK331[n59%331]) 

replace with

#include "rep32-2a.h"

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

Jarek Wroblewski, Jauary 20, 2009