DECLAREContigPutFunc(put16bitbwtile)
{
    int samplesperpixel = img->samplesperpixel;
    uint32** BWmap = img->BWmap;
    (void) y;
    while (h-- > 0) {
        uint16 *wp = (uint16 *) pp;
	for (x = w; x-- > 0;)
        {
	    *cp++ = BWmap[*wp >> 8][0];
            pp += 2 * samplesperpixel;
            wp += samplesperpixel;
        }
	cp += toskew;
	pp += fromskew;
    }
}
['DECLAREContigPutFunc(put16bitbwtile)\n{\n    int samplesperpixel = img->samplesperpixel;\n    uint32** BWmap = img->BWmap;\n    (void) y;\n    while (h-- > 0) {\n        uint16 *wp = (uint16 *) pp;\n\tfor (x = w; x-- > 0;)\n        {\n\t    *cp++ = BWmap[*wp >> 8][0];\n            pp += 2 * samplesperpixel;\n            wp += samplesperpixel;\n        }\n\tcp += toskew;\n\tpp += fromskew;\n    }\n}']