Skip to content

Instantly share code, notes, and snippets.

View unknownbrackets's full-sized avatar

Unknown W. Brackets unknownbrackets

View GitHub Profile
#include <iostream>
static uint32_t bit_cast(float f) {
uint32_t x;
memcpy(&x, &f, 4);
return x;
}
static float bit_cast(uint32_t x) {
float f;
@unknownbrackets
unknownbrackets / clut.c
Last active December 20, 2015 01:29 — forked from Orphis/gist:6048978
PSP clut test
/*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* Copyright (c) 2005 Jesper Svennevid
*/
#include <common.h>
#include <pspkernel.h>