fb: move FbStipStrideToBitsStride() to fbblt.c
It's only consumer is fbblt.c, so move it there. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
e85e8fae56
commit
514a142ab0
1
fb/fb.h
1
fb/fb.h
|
@ -75,7 +75,6 @@
|
||||||
#define FB_STIP_UNIT (1 << FB_STIP_SHIFT)
|
#define FB_STIP_UNIT (1 << FB_STIP_SHIFT)
|
||||||
#define FB_STIP_MASK (FB_STIP_UNIT - 1)
|
#define FB_STIP_MASK (FB_STIP_UNIT - 1)
|
||||||
#define FB_STIP_ALLONES ((FbStip) -1)
|
#define FB_STIP_ALLONES ((FbStip) -1)
|
||||||
#define FbStipStrideToBitsStride(s) (((s) >> (FB_SHIFT - FB_STIP_SHIFT)))
|
|
||||||
#define FbBitsStrideToStipStride(s) (((s) << (FB_SHIFT - FB_STIP_SHIFT)))
|
#define FbBitsStrideToStipStride(s) (((s) << (FB_SHIFT - FB_STIP_SHIFT)))
|
||||||
#define FbFullMask(n) ((n) == FB_UNIT ? FB_ALLONES : ((((FbBits) 1) << n) - 1))
|
#define FbFullMask(n) ((n) == FB_UNIT ? FB_ALLONES : ((((FbBits) 1) << n) - 1))
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,8 @@
|
||||||
|
|
||||||
#endif /* FB_ACCESS_WRAPPER */
|
#endif /* FB_ACCESS_WRAPPER */
|
||||||
|
|
||||||
|
#define FbStipStrideToBitsStride(s) (((s) >> (FB_SHIFT - FB_STIP_SHIFT)))
|
||||||
|
|
||||||
#define InitializeShifts(sx,dx,ls,rs) { \
|
#define InitializeShifts(sx,dx,ls,rs) { \
|
||||||
if (sx != dx) { \
|
if (sx != dx) { \
|
||||||
if (sx > dx) { \
|
if (sx > dx) { \
|
||||||
|
|
Loading…
Reference in New Issue