home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
RISC DISC 2
/
RISC_DISC_2.iso
/
pd_share
/
program
/
code
/
stubshack
/
HeapGraph
/
!HeapDisp
/
c
/
AddStep
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1994-08-29
|
256 b
|
19 lines
#include "AddStep.h"
void GetBestAddressStep( app_block *app)
{
/* Find a step which is a power of 2 */
int step, i;
step = app->words_per_os * 4*Shell_TEXTYSIZE;
for ( i=0; i<32; i++) {
step>>=1;
if (step==0) break;
}
app->address_step = 1<<i;
}