From 9061c8e441726a6b4a92ca3139f34bcdc05b5eba Mon Sep 17 00:00:00 2001 From: Rafal Rudnicki Date: Fri, 28 Aug 2026 15:22:24 +0200 Subject: [PATCH] [SYCL] Change return type of frexp(float) to float --- sycl/include/sycl/stl_wrappers/__sycl_cmath_wrapper_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/include/sycl/stl_wrappers/__sycl_cmath_wrapper_impl.hpp b/sycl/include/sycl/stl_wrappers/__sycl_cmath_wrapper_impl.hpp index a3fa64dd59bd8..03ec1a127f58e 100644 --- a/sycl/include/sycl/stl_wrappers/__sycl_cmath_wrapper_impl.hpp +++ b/sycl/include/sycl/stl_wrappers/__sycl_cmath_wrapper_impl.hpp @@ -389,7 +389,7 @@ __SYCL_DEVICE float nearbyint(float x) { return __builtin_nearbyintf(x); } // Floating-point manipulation functions using ::frexp; using ::frexpf; -__SYCL_DEVICE double frexp(float x, int *exp) { +__SYCL_DEVICE float frexp(float x, int *exp) { return __spirv_ocl_frexp(x, exp); } template __SYCL_DEVICE __sycl_promote_t frexp(T x, int *exp) {