Skip to content

Instantly share code, notes, and snippets.

View Deguerre's full-sized avatar

Andrew Bromage Deguerre

  • Keyframe.AI
  • Melbourne
View GitHub Profile
namespace detail {
constexpr uint64_t sHashLo1 = 0x124b34c732f4a485ull;
constexpr uint64_t sHashLo2 = 0x6fafc7de1f728990ull;
constexpr uint64_t sHashLo3 = 0x9299b5768ee5e36dull;
constexpr uint64_t sHashHi1 = 0x4d8271fe7646891full;
constexpr uint64_t sHashHi2 = 0x6d48b8a30939437cull;
constexpr uint64_t sHashHi3 = 0x122f44ec3b08f41cull;
}
uint64_t hash_word(uint64_t hash, uint64_t w)
#include <stdio.h>
#define WIDTH 320
#define HEIGHT 200
int main(int argc, char** argv)
{
char Pixels[HEIGHT][WIDTH] = {};
short Cx = 160;
short Cy = 100;
@Deguerre
Deguerre / GC.cc
Created July 28, 2015 01:56
Cycle-counting garbage collector
#include "GC.h"
#include <boost/foreach.hpp>
GCHeap::~GCHeap()
{
fullCollect();
}