branchless experiments (failed and reverted, see commented code)

This commit is contained in:
2024-06-05 23:51:55 +02:00
parent 162d141b34
commit a5dbd69976
2 changed files with 17 additions and 1 deletions

View File

@@ -252,6 +252,17 @@ func main() {
ym := y & (c - 1)
fmt.Println(xm & ym)
a := 1
b := 1
//gen := 100
hist := 0
for gen := 0; gen < 50; gen++ {
fmt.Println((a ^ (1 ^ b)) * (gen - hist))
if gen == 25 {
a = 0
}
}
}
func _main() {