//===----------------------------------------------------------------------===// // // Part of the CUDA Toolkit, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. // //===----------------------------------------------------------------------===// #ifndef _CUDA_STD_CMATH #define _CUDA_STD_CMATH #include #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) # pragma clang system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC) # pragma system_header #endif // no system header #include #if _CCCL_COMPILER(NVHPC) # include #endif // _CCCL_COMPILER(NVHPC) #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if _CCCL_FREESTANDING() # define INFINITY ::cuda::std::numeric_limits::infinity() # define NAN ::cuda::std::numeric_limits::quiet_NaN() #endif // _CCCL_FREESTANDING() #include _CCCL_BEGIN_NAMESPACE_CUDA_STD #if _CCCL_FREESTANDING() using double_t = double; using float_t = float; #else // ^^^ _CCCL_FREESTANDING() ^^^ / vvv _CCCL_HOSTED() vvv using ::double_t; using ::float_t; #endif // _CCCL_HOSTED() _CCCL_END_NAMESPACE_CUDA_STD #include #endif // _CUDA_STD_CMATH