about summary refs log tree commit diff
path: root/converter/ppm/ilbm.h
diff options
context:
space:
mode:
Diffstat (limited to 'converter/ppm/ilbm.h')
-rw-r--r--converter/ppm/ilbm.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/converter/ppm/ilbm.h b/converter/ppm/ilbm.h
index c0fac7d2..2f08a12f 100644
--- a/converter/ppm/ilbm.h
+++ b/converter/ppm/ilbm.h
@@ -1,9 +1,17 @@
+/*=============================================================================
+                                 ilbm.h
+===============================================================================
+  Facilities for processign IFF ILBM files
+=============================================================================*/
 #ifndef ILBM_H_INCLUDED
 #define ILBM_H_INCLUDED
 
-/* ilbm.h - definitions for IFF ILBM files */
+static __inline__ unsigned int
+ilbm_rowByteCt(unsigned int const cols) {
+
+    return (cols / 16 + (cols % 16 == 0 ? 0 : 1)) * 2;
+}
 
-#define RowBytes(cols)          ((((cols) + 15) / 16) * 2)
 
 
 /* definitions for BMHD */