From abaf9376938de9d4b5a3014ed1b70a820165cda0 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 5 May 2025 13:22:09 +0200 Subject: [PATCH] fb: drop obsolete FbLaneCase*() macros They haven't been used for over a decade now, so no need to keem'em any longer. (note: xf86-video-intel has it's own copy of them) --- fb/fb.h | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/fb/fb.h b/fb/fb.h index 45735adc1..9f584f83b 100644 --- a/fb/fb.h +++ b/fb/fb.h @@ -270,41 +270,6 @@ extern _X_EXPORT void fbSetBits(FbStip * bits, int stride, FbStip data); } \ } -/* - * These macros are used to transparently stipple - * in copy mode; the expected usage is with 'n' constant - * so all of the conditional parts collapse into a minimal - * sequence of partial word writes - * - * 'n' is the bytemask of which bytes to store, 'a' is the address - * of the FbBits base unit, 'o' is the offset within that unit - * - * The term "lane" comes from the hardware term "byte-lane" which - */ - -#define FbLaneCase1(n,a,o) \ - if ((n) == 0x01) { \ - WRITE((CARD8 *) ((a)+FbPatternOffset(o,CARD8)), fgxor); \ - } - -#define FbLaneCase2(n,a,o) \ - if ((n) == 0x03) { \ - WRITE((CARD16 *) ((a)+FbPatternOffset(o,CARD16)), fgxor); \ - } else { \ - FbLaneCase1((n)&1,a,o) \ - FbLaneCase1((n)>>1,a,(o)+1) \ - } - -#define FbLaneCase4(n,a,o) \ - if ((n) == 0x0f) { \ - WRITE((CARD32 *) ((a)+FbPatternOffset(o,CARD32)), fgxor); \ - } else { \ - FbLaneCase2((n)&3,a,o) \ - FbLaneCase2((n)>>2,a,(o)+2) \ - } - -#define FbLaneCase(n,a) FbLaneCase4(n,(CARD8 *) (a),0) - /* Macros for dealing with dashing */ #define FbDashDeclare \