537a15a2fc7772a63e66d8f1320b81b946a200e8
Building glide3x/cvg, gcc emits the following warning: gglide.c: In function `grBufferClear': gglide.c:733: warning: suggest parentheses around arithmetic in operand of | ... but glide2x/cvg is silent for it, because commitdf4085a80from about 18 years ago added parentheses to silence it, like: GR_SET(BROADCAST_ID, hw, bltSize, - ( ((((tileHi - tileLow) * gc->hwDep.cvgDep.xTilePages) - 1) << 16) | (0x1000 >> 3) - 1)); + ((((((tileHi - tileLow) * gc->hwDep.cvgDep.xTilePages) - 1) << 16) | (0x1000 >> 3)) - 1)); ... which seems wrong. Substraction has precedence, therefore the original code OR'ed the size by 511, but the fixed code OR'ed the size by 512 and then substracted 1 from the result. Looking at sst1InitVideoBuffers() init/video.c: it sets sst->bltSize like: ISET(sst->bltSize, ((pagesToFill-1)<<16) | 511); Therefore, reverting this part ofdf4085a80now. We can live with the warning.
This is the source code to 3Dfx Glide for Voodoo graphics accelerators. It's forked from the original CVS repo of Glide open source project at sourceforge: https://sourceforge.net/projects/glide/ Source is licensed under 3DFX GLIDE Source Code General Public License: see 'glide_license.txt' under the glide2x, glide3x or swlibs directory.
Languages
C
81.1%
Roff
8.2%
Assembly
8%
C++
1.8%
Makefile
0.5%
Other
0.3%