MCPcopy Create free account
hub / github.com/DentonW/DevIL / ilFloatToHalfOverflow

Function ilFloatToHalfOverflow

DevIL/src-IL/src/il_manip.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include "il_internal.h"
15
16ILfloat /*ILAPIENTRY*/ ilFloatToHalfOverflow() {
17 ILfloat f = 1e10;
18 ILint j;
19 for (j = 0; j < 10; j++)
20 f *= f; // this will overflow before
21 // the for loop terminates
22 return f;
23}
24
25//-----------------------------------------------------
26// Float-to-half conversion -- general case, including

Callers 1

ILAPIENTRY ilFloatToHalfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected