summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@codelibre.net>2021-01-31 20:50:00 +0000
committerRoger Leigh <rleigh@codelibre.net>2021-01-31 20:50:00 +0000
commit1cc7a7e153877d28b605e1fdecd6ec89c8fde393 (patch)
tree91e95ccf4db97a3a9f0e771959c3ccdef6564f1d
parent7e92132f9e3aef286a2e7c658f5c0f329dec3c6a (diff)
downloadlibtiff-git-1cc7a7e153877d28b605e1fdecd6ec89c8fde393.tar.gz
tif_fax3: Use C99 inline
-rw-r--r--libtiff/tif_fax3.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/libtiff/tif_fax3.c b/libtiff/tif_fax3.c
index 49776812..736daa24 100644
--- a/libtiff/tif_fax3.c
+++ b/libtiff/tif_fax3.c
@@ -821,21 +821,11 @@ static const unsigned char oneruns[256] = {
};
/*
- * On certain systems it pays to inline
- * the routines that find pixel spans.
- */
-#ifdef VAXC
-static int32_t find0span(unsigned char*, int32_t, int32_t);
-static int32_t find1span(unsigned char*, int32_t, int32_t);
-#pragma inline(find0span,find1span)
-#endif
-
-/*
* Find a span of ones or zeros using the supplied
* table. The ``base'' of the bit string is supplied
* along with the start+end bit indices.
*/
-inline static int32_t
+static inline int32_t
find0span(unsigned char* bp, int32_t bs, int32_t be)
{
int32_t bits = be - bs;
@@ -897,7 +887,7 @@ find0span(unsigned char* bp, int32_t bs, int32_t be)
return (span);
}
-inline static int32_t
+static inline int32_t
find1span(unsigned char* bp, int32_t bs, int32_t be)
{
int32_t bits = be - bs;