home *** CD-ROM | disk | FTP | other *** search
/ Graphics 16,000 / graphics-16000.iso / msdos / animutil / pvquan / flilib / str_low.h < prev   
C/C++ Source or Header  |  1992-11-30  |  2KB  |  36 lines

  1. #ifndef AAI86_H
  2. #define AAI86_H
  3.  
  4. #ifdef __TURBOC__
  5. int far cdecl bsame(char *d, int count);  /* how many bytes in a row the same ? */
  6. int far cdecl bcompare(char *s1,char *s2,int count); /* how many bytes match */
  7. int far cdecl wcompare(USHORT *s1,USHORT *s2,int count); /* how many words match */
  8. int far cdecl bcontrast(char *s1, char *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(USHORT *s1, USHORT *s2,int count); /* how many words match */
  24. int bcompare(char *s1,char *s2,int count); /* how many bytes match */
  25. int bcontrast(char *s1, char *s2, int count); /* bytes til 1st match? */
  26. int bsame(char *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(Pixel *s1, Pixel *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(Pixel *s, unsigned int bcount, unsigned int mustmatch);
  33.           
  34. #endif
  35. #endif /* AAI86_H */
  36.