home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / PVQUAN15.ZIP / FLILIB.ZIP / STR_LOW.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-30  |  1.6 KB  |  36 lines

  1. #ifndef AAI86_H
  2. #define AAI86_H
  3.  
  4. #ifdef X__TURBOC__
  5. int far cdecl bsame(void *d, int count);  /* how many bytes in a row the same ? */
  6. int far cdecl bcompare(void *s1,void *s2,int count); /* how many bytes match */
  7. int far cdecl wcompare(void *s1,void *s2,int count); /* how many words match */
  8. int far cdecl bcontrast(void *s1, void *s2, int count); /* bytes til 1st match? */
  9.  
  10. /** Low level assembler routines used by fii_lccomp to do a single line **/
  11. /* Find out how far until have the next match of mustmatch or more pixels */
  12. int far cdecl fii_tnskip(Pixel *s1,Pixel *s2,int bcount,int mustmatch);
  13. /* Find out how far until next run of identical pixels mustmatch long */
  14. int far cdecl fii_tnsame(Pixel *s,int bcount,int mustmatch);
  15.  
  16. #else
  17.  
  18. /* Overcome Intel/Motorola byte-order problems */
  19.  
  20. UBYTE *wbuf(UBYTE *p, unsigned w);
  21. UBYTE *lbuf(UBYTE *p, unsigned long l);
  22.  
  23. int wcompare(void *s1,void *s2,int count); /* how many words match */
  24. int bcompare(void *s1,void *s2,int count); /* how many bytes match */
  25. int bcontrast(void *s1, void *s2, int count); /* bytes til 1st match? */
  26. int bsame(void *d, int count);  /* how many bytes in a row the same ? */
  27.  
  28. /** Low level assembler routines used by fii_lccomp to do a single line **/
  29. /* Find out how far until have the next match of mustmatch or more pixels */
  30. unsigned int fii_tnskip(void *s1, void *s2, unsigned int bcount, unsigned int mustmatch);
  31. /* Find out how far until next run of identical pixels mustmatch long */
  32. unsigned int fii_tnsame(void *s, unsigned int bcount, unsigned int mustmatch);
  33.           
  34. #endif
  35. #endif /* AAI86_H */
  36.