Skip to content

Commit 042359a

Browse files
committed
nan: link to SO answer
1 parent 671e4c1 commit 042359a

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

c/nan.c

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* https://stackoverflow.com/questions/18118408/what-is-difference-between-quiet-nan-and-signaling-nan/55648118#55648118 */
2+
13
#include <assert.h>
24
#include <math.h> /* NAN, isnan */
35
#include <stdio.h>

cpp/nan.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// https://stackoverflow.com/questions/18118408/what-is-difference-between-quiet-nan-and-signaling-nan/55648118#55648118
2+
//
13
// C++ has some NaN functionality that C does not have,
24
// we will illustrate those here.
35

glibc/interactive/feenableexcept.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// https://stackoverflow.com/questions/18118408/what-is-difference-between-quiet-nan-and-signaling-nan/55648118#55648118
2+
//
13
// In C++ for signling_NaN.
24
//
35
// In GCC 8.2, sNaN is only done in -O0 and completely skipped in -O3.

0 commit comments

Comments
 (0)