Microsoft Visual C++ 2005 Redistributable Package (x64)
Microsoft Visual C++ 2005 Redistributable Package (x86)
Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)
from __future__ import print_function | |
import sys | |
import struct | |
rcon = [ \ | |
0x01000000, 0x02000000, 0x04000000, 0x08000000, | |
0x10000000, 0x20000000, 0x40000000, 0x80000000, | |
0x1b000000, 0x36000000, | |
] |
# Warning: this implementation doesn't check if writes or reads will happen | |
# out of input/output buffer range, so that will generate IndexError exception | |
def LZ4_decompress(source, osize): | |
isize = len(source) | |
src = bytearray(source) | |
dst = bytearray(osize) | |
si = 0 |
#pragma once | |
template <class Fun> | |
class ScopeGuard | |
{ | |
private: | |
Fun f; | |
bool active; | |
public: |
#pragma once | |
#include <exception> | |
#include <stdexcept> | |
#include <utility> | |
template <class T> | |
class Expected | |
{ | |
public: |
extern "C" | |
{ | |
int _fltused; | |
#ifdef _M_IX86 // following functions are needed only for 32-bit architecture | |
__declspec(naked) void _ftol2() | |
{ | |
__asm | |
{ |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <xmmintrin.h> // SSE | |
#include <immintrin.h> // AVX | |
#ifdef _WIN32 | |
#include <intrin.h> // for __movsb, __movsd, __movsq |
#include <stdio.h> | |
#define STR2(x) #x | |
#define STR(x) STR2(x) | |
#ifdef _WIN32 | |
#define INCBIN_SECTION ".rdata, \"dr\"" | |
#else | |
#define INCBIN_SECTION ".rodata" | |
#endif |
/* ======================================================================== | |
$File: tools/ctime/ctime.c $ | |
$Date: 2016/05/08 04:16:55PM $ | |
$Revision: 7 $ | |
$Creator: Casey Muratori $ | |
$Notice: | |
The author of this software MAKES NO WARRANTY as to the RELIABILITY, | |
SUITABILITY, or USABILITY of this software. USE IT AT YOUR OWN RISK. |
#define COBJMACROS | |
#define INITGUID | |
#include <intrin.h> | |
#include <windows.h> | |
#include <d3d11.h> | |
#include <gl/GL.h> | |
#include "glext.h" // https://www.opengl.org/registry/api/GL/glext.h | |
#include "wglext.h" // https://www.opengl.org/registry/api/GL/wglext.h |