jcs's openbsd hax
openbsd

Add optimized character rendering case for 6 pixels wide fonts in rasops32_putchar().

From jon (at) elytron (dot) openbsd (dot) amsterdam.

fcambus 649d1e2e bc312e93

+12 -1
+12 -1
sys/dev/rasops/rasops32.c
··· 1 - /* $OpenBSD: rasops32.c,v 1.13 2023/01/18 11:08:49 nicm Exp $ */ 1 + /* $OpenBSD: rasops32.c,v 1.14 2024/07/21 13:18:15 fcambus Exp $ */ 2 2 /* $NetBSD: rasops32.c,v 1.7 2000/04/12 14:22:29 pk Exp $ */ 3 3 4 4 /*- ··· 112 112 113 113 /* double-pixel special cases for the common widths */ 114 114 switch (width) { 115 + case 6: 116 + while (height--) { 117 + fb = fr[0]; 118 + rp[0] = u.q[fb >> 6]; 119 + rp[1] = u.q[(fb >> 4) & 3]; 120 + rp[2] = u.q[(fb >> 2) & 3]; 121 + rp += step; 122 + fr += 1; 123 + } 124 + break; 125 + 115 126 case 8: 116 127 while (height--) { 117 128 fb = fr[0];