From 7a446dcbc54ef227ffda84f6667c3205837ceea7 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Thu, 20 Jul 2017 14:41:30 +0530 Subject: [PATCH] Renable frexp(f) device math function Change-Id: I53c022b8ddf38cd17ddb42eba457b9020db66395 --- include/hip/hcc_detail/math_functions.h | 4 ++-- tests/src/deviceLib/hipDoublePrecisionMathDevice.cpp | 2 +- tests/src/deviceLib/hipSinglePrecisionMathDevice.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/hip/hcc_detail/math_functions.h b/include/hip/hcc_detail/math_functions.h index 9faff2743a..79bacf274b 100644 --- a/include/hip/hcc_detail/math_functions.h +++ b/include/hip/hcc_detail/math_functions.h @@ -60,7 +60,7 @@ __device__ float fmaf(float x, float y, float z); __device__ float fmaxf(float x, float y); __device__ float fminf(float x, float y); __device__ float fmodf(float x, float y); -//__device__ float frexpf(float x, int* nptr); +__device__ float frexpf(float x, int* nptr); __device__ float hypotf(float x, float y); __device__ float ilogbf(float x); __device__ int isfinite(float a); @@ -146,7 +146,7 @@ __device__ double fma(double x, double y, double z); __device__ double fmax(double x, double y); __device__ double fmin(double x, double y); __device__ double fmod(double x, double y); -//__device__ double frexp(double x, int *nptr); +__device__ double frexp(double x, int *nptr); __device__ double hypot(double x, double y); __device__ double ilogb(double x); __device__ int isfinite(double x); diff --git a/tests/src/deviceLib/hipDoublePrecisionMathDevice.cpp b/tests/src/deviceLib/hipDoublePrecisionMathDevice.cpp index f4f7ab0479..0a81d111c2 100644 --- a/tests/src/deviceLib/hipDoublePrecisionMathDevice.cpp +++ b/tests/src/deviceLib/hipDoublePrecisionMathDevice.cpp @@ -69,7 +69,7 @@ __device__ void double_precision_math_functions() fmax(0.0, 0.0); fmin(0.0, 0.0); fmod(0.0, 1.0); -// frexp(0.0, &iX); + frexp(0.0, &iX); hypot(1.0, 0.0); ilogb(1.0); isfinite(0.0); diff --git a/tests/src/deviceLib/hipSinglePrecisionMathDevice.cpp b/tests/src/deviceLib/hipSinglePrecisionMathDevice.cpp index de3dec35ef..a52b1a22fe 100644 --- a/tests/src/deviceLib/hipSinglePrecisionMathDevice.cpp +++ b/tests/src/deviceLib/hipSinglePrecisionMathDevice.cpp @@ -70,7 +70,7 @@ __device__ void single_precision_math_functions() fmaxf(0.0f, 0.0f); fminf(0.0f, 0.0f); fmodf(0.0f, 1.0f); - //frexpf(0.0f, &iX); + frexpf(0.0f, &iX); hypotf(1.0f, 0.0f); ilogbf(1.0f); isfinite(0.0f);