MCPcopy Create free account
hub / github.com/LibRaw/LibRaw / libraw_int_to_float

Function libraw_int_to_float

src/utils/read_utils.cpp:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73unsigned LibRaw::getint(int type) { return tagtypeIs(LIBRAW_EXIFTAG_TYPE_SHORT) ? get2() : get4(); }
74
75float libraw_int_to_float(int i)
76{
77 union {
78 int i;
79 float f;
80 } u;
81 u.i = i;
82 return u.f;
83}
84
85float LibRaw::int_to_float(int i) { return libraw_int_to_float(i); }
86

Callers 2

int_to_floatMethod · 0.85
libraw_sgetreal_staticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected