This file contains 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 <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; |
This file contains 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
/* | |
* 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> |