#include "common/mathutil.h"
#include <math.h>
#include <algorithm>
namespace gl
{
namespace
{
struct RGB9E5Data
{ … };
constexpr int g_sharedexp_bias = …;
constexpr int g_sharedexp_mantissabits = …;
constexpr int g_sharedexp_biased_mantissabits = …;
constexpr int g_sharedexp_maxexponent = …;
constexpr float g_sharedexp_max = …;
}
unsigned int convertRGBFloatsTo999E5(float red, float green, float blue)
{ … }
void convert999E5toRGBFloats(unsigned int input, float *red, float *green, float *blue)
{ … }
}