home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: Science
/
Science.zip
/
MANDELPM.ZIP
/
API2.H
next >
Wrap
C/C++ Source or Header
|
1990-08-27
|
2KB
|
69 lines
#ifdef M_I386
#define FFAARR _far16
#else
#define FFAARR _far
#endif
int pascal FFAARR cputype();
int pascal FFAARR setpal_vga(int,long);
int pascal FFAARR setpal_ega(int,int);
#ifndef INCL_OWNMATH
#if INCL_IMATHFAR
#define CALLTYPE pascal FFAARR
#define lmod32 calclmod32
#define lidivi calclidivi
#define imultl calcimultl
#define idiv(a,b) calcidiv(a,b,1)
#define imult calcimult
#define zerodivide calczerodiv
void FFAARR pascal calczerodiv();
long pascal FFAARR calclmod32(long,long);
int pascal FFAARR calclidivi(long l, int i);
long pascal FFAARR calcimultl(int i, int j);
int pascal FFAARR calcidiv(int i, int j, int dum);
int pascal FFAARR calcimult(int i, int j);
int pascal FFAARR calcsetzerodiv(void);
int pascal FFAARR calcresetzerodiv(void);
#else
#define CALLTYPE cdecl near
int near idiv(int,int); /* fast int multiply/divide routines */
int near imult(int,int);
long near imultl(int,int);
int near lidivi(long,int);
long near lmod32(long,long);
#endif
#endif
#ifdef INCL_GPI
/*
* flags & 1: transform default color table of PM to VGA specific
* when <colortable> is not NULL: copy untransformed default color table
* to it.
*/
int pascal FFAARR gpicolorinit(unsigned long FFAARR *xscreen,unsigned long FFAARR *yscreen,unsigned short FFAARR *ncolors,
unsigned long FFAARR *colortbl, unsigned long flags);
/*
* c : color table: if NULL the default table will be taken
* color : the RGB color value to be remapped (-1 for all colors)
* fl: lowest byte is the color value to be remapped (when color != -1)
* bit 16 off: call Gpirealizecolortable instead of direct palette change
*/
int pascal FFAARR gpisetpalette(void FFAARR *hps,long FFAARR *c,unsigned long rgb,
unsigned long fl);
/*
* fl == 0: convert from PM color table to real table
* fl == 1: convert from real colr table to PM table
*/
int FFAARR pascal gpiconvertcolors(COLOR FFAARR *ctbl, USHORT fl);
#endif
void pascal FFAARR cleares(void); /* clears ES register for new threads */