World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Файл intfloat.h

См. исходные тексты.

Классы

union  av_intfloat32
 
union  av_intfloat64
 

Функции

static av_always_inline float av_int2float (uint32_t i)
 
static av_always_inline uint32_t av_float2int (float f)
 
static av_always_inline double av_int2double (uint64_t i)
 
static av_always_inline uint64_t av_double2int (double f)
 

Функции

◆ av_int2float()

static av_always_inline float av_int2float ( uint32_t  i)
static

Reinterpret a 32-bit integer as a float.

См. определение в файле intfloat.h строка 40

41 {
42  union av_intfloat32 v;
43  v.i = i;
44  return v.f;
45 }

Перекрестные ссылки av_intfloat32::i.

◆ av_float2int()

static av_always_inline uint32_t av_float2int ( float  f)
static

Reinterpret a float as a 32-bit integer.

См. определение в файле intfloat.h строка 50

51 {
52  union av_intfloat32 v;
53  v.f = f;
54  return v.i;
55 }

Перекрестные ссылки av_intfloat32::f.

◆ av_int2double()

static av_always_inline double av_int2double ( uint64_t  i)
static

Reinterpret a 64-bit integer as a double.

См. определение в файле intfloat.h строка 60

61 {
62  union av_intfloat64 v;
63  v.i = i;
64  return v.f;
65 }

Перекрестные ссылки av_intfloat64::i.

◆ av_double2int()

static av_always_inline uint64_t av_double2int ( double  f)
static

Reinterpret a double as a 64-bit integer.

См. определение в файле intfloat.h строка 70

71 {
72  union av_intfloat64 v;
73  v.f = f;
74  return v.i;
75 }

Перекрестные ссылки av_intfloat64::f.

v
const GLdouble * v
Definition: SDL_opengl.h:2064
av_intfloat32::i
uint32_t i
Definition: intfloat.h:28
av_intfloat64
Definition: intfloat.h:32
av_intfloat64::i
uint64_t i
Definition: intfloat.h:33
av_intfloat32
Definition: intfloat.h:27
f
GLfloat f
Definition: SDL_opengl_glext.h:1873
av_intfloat64::f
double f
Definition: intfloat.h:34
av_intfloat32::f
float f
Definition: intfloat.h:29