Skip to content

Instantly share code, notes, and snippets.

Konstantin Const-me

Block or report user

Report or block Const-me

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View memcpy.asm
page ,132
title memcpy - Copy source memory bytes to destination
;***
;memcpy.asm - contains memcpy and memmove routines
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
;Purpose:
; memcpy() copies a source memory buffer to a destination buffer.
; Overlapping buffers are not treated specially, so propogation may occur.
View fibersTest.cpp
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <windows.h>
#include <stdio.h>
#include <stdint.h>
#include <array>
#include <algorithm>
void printStack( const char* what )
{
View EastlWindows.cpp
#include "stdafx.h"
#include <EASTL/allocator.h>
namespace eastl
{
// Implement assertion failure. This version just traps to debugger.
void __cdecl AssertionFailure( const char *af )
{
OutputDebugStringA( af );
__debugbreak();
View gtengine-bug.cpp
#include "stdafx.h"
#include <SimpleMath.h>
using DirectX::SimpleMath::Vector2;
#include <Mathematics/GteIntrSegment2Segment2.h>
inline gte::Vector2<float> _gte( const Vector2& dx )
{
return gte::Vector2<float>{ dx.x, dx.y };
}
View triples.cpp
#include <iostream>
#include <array>
#include <experimental/generator>
using namespace std::experimental;
using Triple = std::array<int, 3>;
// Generate infinite sequence of Pythagorean triples
generator<Triple> triples()
{
You can’t perform that action at this time.