MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / IsNaN

Function IsNaN

test/core/test_isnan.c:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <stdio.h>
9
10int IsNaN(double x) {
11 int rc; /* The value return */
12 volatile double y = x;
13 volatile double z = y;
14 rc = (y != z);
15 return rc;
16}
17
18int main() {
19 double tests[] = {1.0, 3.333, 1.0 / 0.0, 0.0 / 0.0, -1.0 / 0.0,

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected