#
✕ nick:yrlf
#asahi-gpu · 2021-05-30 16:59
yrlfoh, so you just translate/scale it to [0, 1] before clipping
#asahi-gpu · 2021-05-30 16:57
yrlfnice, 97%!
#asahi-gpu · 2021-05-30 16:56
yrlfwhat did you do for clipping?
#asahi-gpu · 2021-05-24 14:19
yrlfon something with structured control-flow just jumping into the middle of something won't work I presume
#asahi-gpu · 2021-05-24 14:19
yrlfon non-structured architectures you can avoid the duplicated condition by just jumping forward into the condition part of the loop (at the cost of an additional branch)
#asahi-gpu · 2021-05-24 14:18
yrlfoh, that is... very interesting
#asahi-gpu · 2021-05-24 11:44
yrlf(then again: I have no GPU experience, that is all transferred knowledge from regular CPU asm stuff)
#asahi-gpu · 2021-05-24 11:44
yrlfare there any situations where a `while (x) { ... }` loop would be beneficial in asm? I currently don't see a reason to generate one, ever, and I have the feeling I'm overlooking something here
#asahi-gpu · 2021-05-24 11:41
yrlfthen you can just do a conditional branch to the top instead of doing an unconditional one to the top and having the conditional branch there
#asahi-gpu · 2021-05-24 11:40
yrlfbloom: yeah, checking the condition on the tail end of the loop saves you one branch in most instruction sets
#asahi-gpu · 2021-05-21 20:24
yrlfoh, I noticed bloom did not make the jump to OFTC yet -- or uses a different name here
#asahi-gpu · 2021-01-17 22:05
yrlftriangle let's go :D