# HG changeset patch # User Tero Marttila # Date 1264446339 -7200 # Node ID 84952fa708d41eab883ddd7348238f8fa094618d # Parent b7f6473c4adf7e3862821387e05d91a3f95aee2b more inlines in pt_png.. diff -r b7f6473c4adf -r 84952fa708d4 src/lib/png.c --- a/src/lib/png.c Mon Jan 25 21:05:24 2010 +0200 +++ b/src/lib/png.c Mon Jan 25 21:05:39 2010 +0200 @@ -345,7 +345,7 @@ return 0; } -static size_t scale_by_zoom_factor (size_t value, int z) +static inline size_t scale_by_zoom_factor (size_t value, int z) { if (z > 0) return value << z; @@ -359,7 +359,7 @@ #define ADD_AVG(l, r) (l) = ((l) + (r)) / 2 -static int png_pixel_data (png_color *out, const struct pt_png_header *header, const uint8_t *data, size_t row, size_t col) +static inline int png_pixel_data (png_color *out, const struct pt_png_header *header, const uint8_t *data, size_t row, size_t col) { if (header->color_type == PNG_COLOR_TYPE_PALETTE) { // palette entry number