/* MISC (should probably have been 'Mem', but that already exists!) */

/* THESE FUNCTIONS ADDED FOR THE DeskLib 2.30 [RM/32] RELEASE.
   THEY ARE NOT PRESENT IN THE ORIGINAL v2.30 VERSION OF DESKLIB. */

extern int  Misc_WordAlign(int address);
/* This word-aligns the given address, aligning upwards (ie, 25->28 not 24).*/

extern int  Misc_PageAlign(int address);
/* This aligns the given address to a multiple of the current page size. The
   page sizes are:
     ARM2/250/3  1Mb    8K
     ARM2/250/3  2Mb   16K
     ARM2/250/3  4Mb   32K
     ARM2/250/3  8Mb   32K
     ARM600 or later    4K
*/

extern int  Misc_PageSize(void);
/* This returns the page size, in bytes: 8192, 16384, 32768, or 4096. */

extern int  Misc_PageCount(void);
/* This returns the number of pages. Old (ARM2/250/3) machines should always
   return 128. Later machines will return different values. For example, my
   RiscPC (ARM710) with 16Mb+16Mb+1MbVRAM returned '8448' as the number of
   pages (8448 * 4K = 33Mb).
*/

extern int  Misc_MemorySize(void);
/* This returns the memory size, in bytes, by multiplying the page count with
   the page size.
*/

