nvidia-texture-tools/src/nvmath/Half.h

18 lines
304 B
C
Raw Normal View History

2010-05-27 23:19:24 +00:00
#pragma once
#ifndef NV_MATH_HALF_H
#define NV_MATH_HALF_H
2010-05-27 23:19:24 +00:00
#include "nvmath.h"
2010-05-27 23:19:24 +00:00
namespace nv {
2010-05-27 23:19:24 +00:00
uint32 half_to_float( uint16 h );
uint16 half_from_float( uint32 f );
// Does not handle NaN or infinity.
uint32 fast_half_to_float( uint16 h );
} // nv namespace
#endif // NV_MATH_HALF_H