unsigned width, test;
vmwareQueryBestSize(class, pwidth, pheight, pScr)    int class;    unsigned short *pwidth;    unsigned short *pheight;    ScreenPtr pScr;{    unsigned width, test;    TRACEPOINT    if (*pwidth > 0) {	switch (class) {	case CursorShape:	    if (*pwidth > 64)		*pwidth = 64;	    if (*pheight > 64)		*pheight = 64;	    break;	/* copy from mfbQueryBestSize() */	case TileShape:	case StippleShape:	    width = *pwidth;	    if (!width) break;	    /* Return the closes power of two not less than what they gave me */	    test = 0x80000000;	    /* Find the highest 1 bit in the width given */	    while(!(test & width))		test >>= 1;	    /* If their number is greater than that, bump up to the next	     *  power of two */	    if((test - 1) & width)		test <<= 1;	    *pwidth = test;	    /* We don't care what height they use */	    break;	}    }}