diff options
| author | aamir <[email protected]> | 2018-06-06 16:31:03 -0700 |
|---|---|---|
| committer | aamir <[email protected]> | 2018-06-06 16:31:03 -0700 |
| commit | a089ac9ed1c798108bd0866e422392d6873f6681 (patch) | |
| tree | 4e7da79beed2270f1ba8095154a49ef7489591f3 /src/cuda-sim/cuda-math.h | |
| parent | 4161ccba0d4a99157afed3cdccef0e9c2a6d89e6 (diff) | |
added profilling xls and changes for regression
Diffstat (limited to 'src/cuda-sim/cuda-math.h')
| -rw-r--r-- | src/cuda-sim/cuda-math.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cuda-sim/cuda-math.h b/src/cuda-sim/cuda-math.h index e38e499..314f813 100644 --- a/src/cuda-sim/cuda-math.h +++ b/src/cuda-sim/cuda-math.h @@ -322,7 +322,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; @@ -358,7 +358,7 @@ int __signbitd(double d) #ifdef __APPLE__ int isnanf(float a) { - return (isnan(a)); + return (std::isnan(a)); } #endif |
