alternate function
parent
c2f9f4ad80
commit
4bc0c5d398
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue