home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Science / Science.zip / MANDELPM.ZIP / API2.H next >
C/C++ Source or Header  |  1990-08-27  |  2KB  |  69 lines

  1. #ifdef M_I386
  2. #define FFAARR _far16
  3. #else
  4. #define FFAARR _far
  5. #endif
  6.  
  7. int pascal FFAARR cputype();
  8. int pascal FFAARR setpal_vga(int,long);
  9. int pascal FFAARR setpal_ega(int,int);
  10.  
  11. #ifndef INCL_OWNMATH
  12. #if INCL_IMATHFAR
  13.  
  14. #define CALLTYPE pascal FFAARR
  15.  
  16. #define lmod32 calclmod32
  17. #define lidivi calclidivi
  18. #define imultl calcimultl
  19. #define idiv(a,b)   calcidiv(a,b,1)
  20. #define imult  calcimult
  21. #define zerodivide calczerodiv
  22.  
  23. void FFAARR pascal calczerodiv();
  24. long pascal FFAARR calclmod32(long,long);
  25. int  pascal FFAARR calclidivi(long l, int i);
  26. long pascal FFAARR calcimultl(int i, int j);
  27. int  pascal FFAARR calcidiv(int i, int j, int dum);
  28. int  pascal FFAARR calcimult(int i, int j);
  29. int  pascal FFAARR calcsetzerodiv(void);
  30. int  pascal FFAARR calcresetzerodiv(void);
  31.  
  32. #else
  33.  
  34. #define CALLTYPE cdecl near
  35.  
  36. int near idiv(int,int);            /* fast int multiply/divide routines */
  37. int near imult(int,int);
  38. long near imultl(int,int);
  39. int near lidivi(long,int);
  40. long near lmod32(long,long);
  41.  
  42. #endif
  43. #endif
  44. #ifdef INCL_GPI
  45.  
  46. /*
  47.  *   flags & 1:   transform default color table of PM to VGA specific
  48.  *   when <colortable> is not NULL: copy untransformed default color table
  49.  *   to it.
  50.  */
  51.  
  52. int pascal FFAARR gpicolorinit(unsigned long FFAARR *xscreen,unsigned long FFAARR *yscreen,unsigned short FFAARR *ncolors,
  53.     unsigned long FFAARR *colortbl, unsigned long flags);
  54. /*
  55.  * c :      color table: if NULL the default table will be taken
  56.  * color :  the RGB color value to be remapped (-1 for all colors)
  57.  * fl:      lowest byte is the color value to be remapped (when color != -1)
  58.  *          bit 16 off: call Gpirealizecolortable instead of direct palette change
  59.  */
  60. int pascal FFAARR gpisetpalette(void FFAARR *hps,long FFAARR *c,unsigned long rgb, 
  61.     unsigned long  fl);
  62. /*
  63.  * fl == 0: convert from PM color table to real table
  64.  * fl == 1: convert from real colr table to PM table
  65.  */
  66. int FFAARR pascal gpiconvertcolors(COLOR FFAARR *ctbl, USHORT fl);
  67. #endif
  68. void pascal FFAARR cleares(void);   /* clears ES register for new threads */
  69.