mi: miline.h: unexport only locally used macros

These macros are only used in one source file, so move them there.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1726>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-04-22 18:53:04 +02:00 committed by Marge Bot
parent 36dd28129b
commit c06d9da5b6
2 changed files with 13 additions and 13 deletions

View File

@ -106,14 +106,6 @@ extern _X_EXPORT void miSetZeroLineBias(ScreenPtr /* pScreen */ ,
if (y > ymax) outcode |= OUT_BELOW;\ if (y > ymax) outcode |= OUT_BELOW;\
} }
#define SWAPINT(i, j) \
{ int _t = i; i = j; j = _t; }
#define SWAPINT_PAIR(x1, y1, x2, y2)\
{ int t = x1; x1 = x2; x2 = t;\
t = y1; y1 = y2; y2 = t;\
}
#define miGetZeroLineBias(_pScreen) ((unsigned long) (unsigned long*)\ #define miGetZeroLineBias(_pScreen) ((unsigned long) (unsigned long*)\
dixLookupPrivate(&(_pScreen)->devPrivates, miZeroLineScreenKey)) dixLookupPrivate(&(_pScreen)->devPrivates, miZeroLineScreenKey))
@ -137,11 +129,6 @@ extern _X_EXPORT void miSetZeroLineBias(ScreenPtr /* pScreen */ ,
#define FIXUP_ERROR(_e, _octant, _bias) \ #define FIXUP_ERROR(_e, _octant, _bias) \
(_e) -= (((_bias) >> (_octant)) & 1) (_e) -= (((_bias) >> (_octant)) & 1)
#define IsXMajorOctant(_octant) (!((_octant) & YMAJOR))
#define IsYMajorOctant(_octant) ((_octant) & YMAJOR)
#define IsXDecreasingOctant(_octant) ((_octant) & XDECREASING)
#define IsYDecreasingOctant(_octant) ((_octant) & YDECREASING)
extern _X_EXPORT DevPrivateKeyRec miZeroLineScreenKeyRec; extern _X_EXPORT DevPrivateKeyRec miZeroLineScreenKeyRec;
#define miZeroLineScreenKey (&miZeroLineScreenKeyRec) #define miZeroLineScreenKey (&miZeroLineScreenKeyRec)

View File

@ -395,6 +395,19 @@ the numerator is therefore (2^32 - 1), which does not overflow an unsigned
#define EQN8 (T_2NDX | T_ADDDY | T_BIASSUBONE | T_DIV2DY) #define EQN8 (T_2NDX | T_ADDDY | T_BIASSUBONE | T_DIV2DY)
#define EQN8B (T_2NDX | T_ADDDY | T_BIASSUBONE | T_DIV2DY) #define EQN8B (T_2NDX | T_ADDDY | T_BIASSUBONE | T_DIV2DY)
#define SWAPINT(i, j) \
{ int _t = i; i = j; j = _t; }
#define SWAPINT_PAIR(x1, y1, x2, y2)\
{ int t = x1; x1 = x2; x2 = t;\
t = y1; y1 = y2; y2 = t;\
}
#define IsXMajorOctant(_octant) (!((_octant) & YMAJOR))
#define IsYMajorOctant(_octant) ((_octant) & YMAJOR)
#define IsXDecreasingOctant(_octant) ((_octant) & XDECREASING)
#define IsYDecreasingOctant(_octant) ((_octant) & YDECREASING)
/* miZeroClipLine /* miZeroClipLine
* *
* returns: 1 for partially clipped line * returns: 1 for partially clipped line