diff options
| author | tgrogers <[email protected]> | 2018-04-11 15:43:49 -0400 |
|---|---|---|
| committer | tgrogers <[email protected]> | 2018-04-11 15:43:49 -0400 |
| commit | 35eb8dfa699df3bd5526d8d659ffd754d54880cc (patch) | |
| tree | bf65659a4cf398d450dc8d9127377d642219319e /src/cuda-sim/cuda-math.h | |
| parent | 913c8934d89068ea96729b238a42879d2e02e7f4 (diff) | |
| parent | 2221d208a745a098a60b0d24c05007e92aaba092 (diff) | |
Merge remote-tracking branch 'upstream/dev' into dev
Diffstat (limited to 'src/cuda-sim/cuda-math.h')
| -rw-r--r-- | src/cuda-sim/cuda-math.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuda-sim/cuda-math.h b/src/cuda-sim/cuda-math.h index 4721e8a..a3db0df 100644 --- a/src/cuda-sim/cuda-math.h +++ b/src/cuda-sim/cuda-math.h @@ -321,7 +321,7 @@ float __internal_accurate_fdividef(float a, float b) float __saturatef(float a) { float b; - if (isnan(a)) b = 0.0f; + if (std::isnan(a)) b = 0.0f; else if (a >= 1.0f) b = 1.0f; else if (a <= 0.0f) b = 0.0f; else b = a; |
