aboutsummaryrefslogtreecommitdiffstats
path: root/notes.txt
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-12-18 21:35:40 +0100
committerbnewbold <bnewbold@robocracy.org>2012-12-18 21:35:40 +0100
commitcd699af1e7d3e64556d2f9373db1d337cf14d2f5 (patch)
tree89e8c0ad4844a49a162ad96a12dbc9de6ba3e170 /notes.txt
parentcc6b87f6325f2138c387666d831e07ea7cfe7b1e (diff)
downloadbytetunes-cd699af1e7d3e64556d2f9373db1d337cf14d2f5.tar.gz
bytetunes-cd699af1e7d3e64556d2f9373db1d337cf14d2f5.zip
add more tests; cover ~~ case; fix bugs
Diffstat (limited to 'notes.txt')
-rw-r--r--notes.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/notes.txt b/notes.txt
index 80773b8..102da5a 100644
--- a/notes.txt
+++ b/notes.txt
@@ -29,6 +29,9 @@ bytetros?
original (to me):
echo "main(i){for(i=0;;i++)putchar((i*(i>>8|i>>9)&46&i>>8)^(i&i>>13|i>>6));}" | gcc -x c - && ./a.out | aplay
+favorite:
+ (t*9&t>>4|t*5&t>>7|t*3&t/1024)-1
+
from http://countercomplex.blogspot.de/2011/10/algorithmic-symphonies-from-one-line-of.html
main(t){for(t=0;;t++)putchar(t*(((t>>12)|(t>>8))&(63&(t>>4))));}