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 <Windows.h> | |
#include <atlbase.h> | |
#include <mmdeviceapi.h> | |
#include <audiopolicy.h> | |
#define AUDCLNT_S_NO_SINGLE_PROCESS AUDCLNT_SUCCESS (0x00d) | |
#include "include/print.h" |
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
#pragma once | |
#include <iostream> | |
#include <string_view> | |
#include <format> | |
#include <utility> | |
// 1 : intermediate string | |
template <typename ...ARGS> | |
void print(std::string_view format, ARGS &&...args) |
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 <iostream> | |
#include <format> | |
#include <vector> | |
#include <sstream> | |
#include <string_view> | |
#include <set> | |
#include <map> | |
extern std::map<std::string_view,std::string_view> elementNames; |
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
xmm 128-bit 4 floats | |
ymm 256-bit 8 floats | |
zmm 512-bit 16 floats | |
float data[4096]; { a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p} 256 times | |
sum of all values | |
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 <Windows.h> | |
#include <iostream> | |
#include <thread> | |
struct pipe | |
{ | |
pipe() | |
{ | |
SECURITY_ATTRIBUTES sa = { sizeof(sa), nullptr,true}; | |
CreatePipe(&read, &write, &sa, 0); |
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 <windows.h> | |
#include <iostream> | |
#include <sstream> | |
#include <iomanip> | |
#include <limits> | |
std::ostream &operator<<(std::ostream &out,const MEMORY_BASIC_INFORMATION ®ion) | |
{ | |
std::ostringstream string; |
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
struct Edge; | |
struct Vertex; | |
void enqueue(Edge *, double); | |
double someHeuristic(Vertex*, Vertex *); | |
// ----------------- | |