This file contains hidden or 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 "refrend_hls.h" | |
#include <stdio.h> | |
using namespace std; | |
int main() | |
{ | |
int err =0; | |
This file contains hidden or 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
//More details: https://github.com/FEX-Emu/fex-assorted-tests-bins/tree/main/src/copyable-functions | |
#include <cstdint> | |
#include <cstring> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <sys/mman.h> | |
// Example of creating function specializations at run time from a "canonical" template provided by the compiler |
This file contains hidden or 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
// Example of creating function specializations at run time from a "canonical" template provided by the compiler | |
// More details: https://github.com/FEX-Emu/fex-assorted-tests-bins/tree/main/src/copyable-functions | |
#include <cstdint> | |
#include <cstring> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cassert> | |
#include <tuple> |
This file contains hidden or 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
// $ gcc alloc.cpp -Wl,-esteal -static -g -fno-stack-protector | |
// | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <sys/mman.h> | |
#include <sys/syscall.h> | |
#include <cerrno> | |
#include <cstdint> |
This file contains hidden or 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
// ./a.out | aplay -r 256000 ? | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <x86intrin.h> | |
#include <atomic> | |
#include <unistd.h> | |
#include <math.h> | |
std::atomic<uint8_t> caches[128 * 512 * 64]; |
This file contains hidden or 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
template<int x, int y> | |
void DoSomething() { | |
// consume x, y as constants | |
} | |
void foo() { | |
DoSomething<0,1>(); | |
DoSomething<640,480>(); |
OlderNewer