Files
ports/misc/bb/files/patch-tex.c
T
Robert Clausecker 5cc28c8ebd misc/bb: patch properly
- remove REGPARM entirely, it doesn't do any good these days and
   blocks portability
 - remove use of gcc, no longer needed
 - patch some portability issues

MFH:		2026Q1
Sponsored by:	Raptor Computing Systems, LLC
2026-02-14 15:19:56 +01:00

14 lines
442 B
C

--- tex.c.orig 2026-02-12 17:46:39 UTC
+++ tex.c
@@ -128,8 +128,8 @@ static inline void makej(long x1, long x2, long n1z, l
off1 = off + x2 - x1;
for (; off <= off1;) {
- ry = (abs(n3y) >> 7) + 64;
- rx = (abs(n3x) >> 7) + 64;
+ ry = (labs(n3y) >> 7) + 64;
+ rx = (labs(n3x) >> 7) + 64;
if (((n3z >> 8) - *zbptr) < 500) {
*off = *(envmapa + (((unsigned int) ((ry << 7) + rx)) & (128 * 128 - 1)));
*zbptr = n3z >> 8;