This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 8-bit math using -O3, compared to -O2, gives different results. | |
| * Using both `gcc` and `clang` and both -Ox, i've see three (four) | |
| * different values. Which one is correct? | |
| * | |
| * NOTE code is extremely fragile: Even uncomment printf() | |
| * below, hides the "bug", makes all results same. Same is when | |
| * trying shrink the code even a bit. | |
| * | |
| * gcc -O2 ./test_uint8.c # prints ... ffffd565 | |
| * gcc -O3 ./test_uint8.c # prints ... ff80d565 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // jpka, 2025: Q&D example to make glBars transparent, | |
| // this is impossible with glut. And make it pure C. | |
| // Note, there will be no MSAA using integrated GPU. | |
| // The fun fact is all colors were already made correctly | |
| // using alpha, as if it was already transparent years ago. | |
| // Tested w/ Archlinux. | |
| // gcc -g -Wall -lm -lX11 -lXrender -lGL -ljack -DHAS_GL jack_glbars.c -o jack_glbars | |
| /* XMMS - Cross-platform multimedia player | |
| * Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies |