Skip to content

Commit 2aaf3f2

Browse files
authored
FPGA: Remove detail::empty_properties_t and add std::log10 (oneapi-src#2356)
Remove redundant sycl::ext::oneapi::experimental::detail::empty_properties_t and replace it with sycl::ext::oneapi::experimental::empty_properties_t
1 parent 8b40cfc commit 2aaf3f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/anr/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ bool Validate(PixelT* val, PixelT* ref, int rows, int cols,
444444
mse /= count;
445445

446446
// compute the PSNR
447-
double psnr = (20 * log10(max_i)) - (10 * log10(mse));
447+
double psnr = (20 * std::log10(max_i)) - (10 * std::log10(mse));
448448

449449
// check PSNR and maximum pixel difference
450450
bool passed = true;

DirectProgramming/C++SYCL_FPGA/Tutorials/Features/experimental/annotated_class_clean_coding/src/annotated_class_util.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ struct remove_align_from {};
128128

129129
template <>
130130
struct remove_align_from<
131-
sycl::ext::oneapi::experimental::detail::empty_properties_t> {
132-
using type = sycl::ext::oneapi::experimental::detail::empty_properties_t;
131+
sycl::ext::oneapi::experimental::empty_properties_t> {
132+
using type = sycl::ext::oneapi::experimental::empty_properties_t;
133133
};
134134

135135
template <typename Prop, typename... Props>

0 commit comments

Comments
 (0)