alternate function

main
Henri Vasserman 2025-01-07 18:54:07 +02:00
parent c2f9f4ad80
commit 4bc0c5d398
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ void Picture_render(Picture *p, SDL_Renderer *rend) {
for (int i = 0; i < w; i += 8, r += 8, x += 8) {
uint32_8 z = (x ^ y) % 9;
uint32_8 f = (z==0) & c;
//uint32_8 z = (-((~(x & y)) + (~(-y)))) % 7;
//uint32_8 f = (z==0) ^ c;
memcpy(&p->pixels[r], (uint32_t*)&f, sizeof(f));
}
}