Harold Aptroot on Nostr: Let's say you have a 4-input ternlog that takes the LUT as a variable, let's call it ...
Let's say you have a 4-input ternlog that takes the LUT as a variable, let's call it ternlogvb.
ternlogvb(0xF0, 0xCC, 0xAA, x) just maps x (a byte) to itself. Those masks probably look familiar: 0..7 but transposed. If you permute that transposed list, you permute the bits of x.
Published at
2024-12-20 18:22:53Event JSON
{
"id": "90032c3b45aa5a2b8e73905b7dd999e6dfc7b9aa78e50e8e013dc79c20274e15",
"pubkey": "14c40e5712692b0ca0bffec9045031f095889c1061291ec3ea93f3ea6b09d77f",
"created_at": 1734718973,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.gamedev.place/users/harold/statuses/113686542617465362",
"activitypub"
]
],
"content": "Let's say you have a 4-input ternlog that takes the LUT as a variable, let's call it ternlogvb.\n\nternlogvb(0xF0, 0xCC, 0xAA, x) just maps x (a byte) to itself. Those masks probably look familiar: 0..7 but transposed. If you permute that transposed list, you permute the bits of x.",
"sig": "4868e84aab420b88d96324b2a2b204d633fa7e81e756dc9f2b594e3cf53e0718ae2fd7872f2b1e87489aaf69f46652418318ae6adb932d97da7508ca0a742ff0"
}