This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# cross_compile.py - waf tool for cross-compilation | |
# Written in 2017 by William Light <wrl@workingset.de> | |
# | |
# To the extent possible under law, the author(s) have dedicated all copyright | |
# and related and neighboring rights to this software to the public domain | |
# worldwide. This software is distributed without any warranty. | |
# | |
# You should have received a copy of the CC0 Public Domain Dedication along |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* lut.c: quadrature-optimized sine lookup table | |
* written in 2014 by william light <wrl@illest.net> | |
* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* Anyone is free to copy, modify, publish, use, compile, sell, or | |
* distribute this software, either in source code form or as a compiled | |
* binary, for any purpose, commercial or non-commercial, and by any | |
* means. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdint.h> | |
#define MAX 100 | |
int | |
main(int argc, char **argv) | |
{ | |
intptr_t op[MAX + 2]; | |
int ip; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for results/control: | |
when sleeping for 3000000us: | |
samples: 6 | |
mean: 58.33ns (0.0001ms) | |
median: 63.00ns (0.0001ms) | |
min: 24.00ns (0.0000ms) | |
max: 74.00ns (0.0001ms) | |
when sleeping for 1000000us: | |
samples: 19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
/** | |
* this code has been placed into the public domain | |
*/ | |
/** | |
* ideally you'd have a hashmap (or lately i've been pretty happy with | |
* binary-trie-backed dicts), but in a pinch this sort of thing can be |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int | |
main(int argc, char **argv) | |
{ | |
int i; | |
void *jump[] = { | |
[0] = &&printn, | |
[1] = &&fizz, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# cross_compile.py - waf tool for cross-compilation | |
# Written in 2017 by William Light <wrl@workingset.de> | |
# | |
# To the extent possible under law, the author(s) have dedicated all copyright | |
# and related and neighboring rights to this software to the public domain | |
# worldwide. This software is distributed without any warranty. | |
# | |
# You should have received a copy of the CC0 Public Domain Dedication along |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
def override_find_program(prefix): | |
from waflib.Configure import find_program as orig_find | |
from waflib.Configure import conf | |
if prefix[-1] != '-': | |
prefix += '-' | |
@conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 20150319, | |
"exported": { | |
"from": "0.3.1-b9a585a", | |
"on": "2016-06-10T20:43:46+0200" | |
}, | |
"programs": [ | |
{ | |
"level": -6.0, | |
"note_logic": "poly", |
NewerOlder