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
| #define COBJMACROS | |
| #define WIN32_LEAN_AND_MEAN | |
| #include <windows.h> | |
| #include <mfapi.h> | |
| #include <mfidl.h> | |
| #include <mfreadwrite.h> | |
| #include <stdio.h> | |
| #include <intrin.h> |
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
| EGL_VENDOR = Mesa Project | |
| EGL_VERSION = 1.4 | |
| EGL_CLIENT_APIS = OpenGL OpenGL_ES | |
| EGL_EXTENSIONS = EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export | |
| // GLES API | |
| GL_VENDOR = Broadcom | |
| GL_RENDERER = V3D 4.2 | |
| GL_VERSION = OpenGL ES 3.0 Mesa 19.1.2 |
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 <windows.h> | |
| #include <intrin.h> | |
| #define Assert(x) do { if (!(x)) __debugbreak(); } while (0) | |
| static struct | |
| { | |
| DWORD process_id; | |
| char data[4096 - sizeof(DWORD)]; | |
| }* ods_buffer; |
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
| $ cat /etc/issue | |
| Arch Linux \r (\l) | |
| $ uname -a | |
| Linux alarm3 4.20.8-1-ARCH #1 SMP Tue Feb 12 21:12:07 MST 2019 aarch64 GNU/Linux | |
| ##### EGL info | |
| EGL client extensions = EGL_EXT_client_extensions EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug EGL_MESA_platform_gbm |
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
| $ cat /etc/issue | |
| Arch Linux \r (\l) | |
| $ uname -a | |
| Linux alarm0 4.14.98-1-ARCH #1 SMP Wed Feb 13 04:28:06 UTC 2019 armv6l GNU/Linux | |
| ##### EGL info | |
| EGL client extensions = EGL_EXT_client_extensions EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug EGL_MESA_platform_gbm |
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
| #!/usr/bin/env python3 | |
| import sys | |
| import tarfile | |
| import zipfile | |
| from pathlib import Path | |
| src = sys.argv[1] | |
| dst = Path(src).name + ".zip" |
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 <stddef.h> | |
| #include <stdint.h> | |
| #include <intrin.h> | |
| // see aeshashbody in https://github.com/golang/go/blob/master/src/runtime/asm_amd64.s | |
| // this is initialized on process startup with random from system | |
| static __declspec(align(16)) uint8_t aeskeysched[128]; | |
| static __declspec(align(16)) const uint8_t masks[16][16] = |
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
| #define WIN32_LEAN_AND_MEAN | |
| #include <windows.h> | |
| #include <dwrite.h> | |
| #include <intrin.h> | |
| #pragma comment (lib, "gdi32.lib") | |
| #pragma comment (lib, "user32.lib") | |
| #pragma comment (lib, "dwrite.lib") | |
| #define CHECK(x) do { if (!(x)) __debugbreak(); } while (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
| // floor function for floats with SSE1 or SSE2 | |
| #include <emmintrin.h> | |
| #include <smmintrin.h> | |
| #ifdef _MSC_VER | |
| #include <intrin.h> | |
| #else | |
| #define __rdtsc() __builtin_ia32_rdtsc() | |
| #endif |
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
| // compile this to hook.dll | |
| // for example, with MSVC: cl.exe /LD /MT /O2 hook.c /Fehook.dll | |
| #include <windows.h> | |
| // get this from https://github.com/kubo/plthook | |
| #include "plthook_win32.c" | |
| static plthook_t* hook; |