Skip to content

Commit e8f52d2

Browse files
committed
use sycl::sqrt insteadof native sqrtf function
1 parent cbbf24a commit e8f52d2

File tree

1 file changed

+1
-1
lines changed
  • DirectProgramming/C++SYCL_FPGA/Tutorials/Features/ac_fixed/src

1 file changed

+1
-1
lines changed

DirectProgramming/C++SYCL_FPGA/Tutorials/Features/ac_fixed/src/ac_fixed.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void TestCalculateWithFloat(queue &q, const float &x, float &ret) {
7575
h.single_task<CalculateWithFloat>([=] {
7676
float sin_x = sinf(x[0]);
7777
float cos_x = cosf(x[0]);
78-
res[0] = sycl::sqrtf(sin_x * sin_x + cos_x * cos_x);
78+
res[0] = sycl::sqrt(sin_x * sin_x + cos_x * cos_x);
7979
});
8080
});
8181
}

0 commit comments

Comments
 (0)