diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/INSTALLER b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/INSTALLER
new file mode 100644
index 0000000000000000000000000000000000000000..a1b589e38a32041e49332e5e81c2d363dc418d68
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/INSTALLER
@@ -0,0 +1 @@
+pip
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/METADATA b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/METADATA
new file mode 100644
index 0000000000000000000000000000000000000000..a08929b568d7f1c9e31054b7944a4aa62802974a
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/METADATA
@@ -0,0 +1,46 @@
+Metadata-Version: 2.4
+Name: triton
+Version: 3.6.0
+Summary: A language and compiler for custom Deep Learning operations
+Home-page: https://github.com/triton-lang/triton/
+Author: Philippe Tillet
+Author-email: phil@openai.com
+Keywords: Compiler,Deep Learning
+Classifier: Development Status :: 4 - Beta
+Classifier: Intended Audience :: Developers
+Classifier: Topic :: Software Development :: Build Tools
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
+Classifier: Programming Language :: Python :: 3.12
+Classifier: Programming Language :: Python :: 3.13
+Classifier: Programming Language :: Python :: 3.14
+Requires-Python: >=3.10,<3.15
+License-File: LICENSE
+Requires-Dist: importlib-metadata; python_version < "3.10"
+Provides-Extra: build
+Requires-Dist: cmake<4.0,>=3.20; extra == "build"
+Requires-Dist: lit; extra == "build"
+Provides-Extra: tests
+Requires-Dist: autopep8; extra == "tests"
+Requires-Dist: isort; extra == "tests"
+Requires-Dist: numpy; extra == "tests"
+Requires-Dist: pytest; extra == "tests"
+Requires-Dist: pytest-forked; extra == "tests"
+Requires-Dist: pytest-xdist; extra == "tests"
+Requires-Dist: scipy>=1.7.1; extra == "tests"
+Requires-Dist: llnl-hatchet; extra == "tests"
+Provides-Extra: tutorials
+Requires-Dist: matplotlib; extra == "tutorials"
+Requires-Dist: pandas; extra == "tutorials"
+Requires-Dist: tabulate; extra == "tutorials"
+Dynamic: author
+Dynamic: author-email
+Dynamic: classifier
+Dynamic: home-page
+Dynamic: keywords
+Dynamic: license-file
+Dynamic: provides-extra
+Dynamic: requires-dist
+Dynamic: requires-python
+Dynamic: summary
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/RECORD b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/RECORD
new file mode 100644
index 0000000000000000000000000000000000000000..b8c686f0299dde6ac8c7572e144795eda39e5b85
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/RECORD
@@ -0,0 +1,468 @@
+../../../bin/proton,sha256=9kGWY-skHgepyDWNvisL-0Y5WG1IqPulvAdOSPXfnII,219
+../../../bin/proton-viewer,sha256=55s59q0jvmeBJI3lzZIcvFHbnyQn6a7CUgKmcSvDU3k,219
+triton-3.6.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
+triton-3.6.0.dist-info/METADATA,sha256=XJBx25sFe-yJzW1_dvYeXyil6NNxf_bIVCDPgBXuAyE,1663
+triton-3.6.0.dist-info/RECORD,,
+triton-3.6.0.dist-info/WHEEL,sha256=Obtqci3x5vy5ZivY2BiOH9GHO8-xQ0d4HFhTOtXMNhw,152
+triton-3.6.0.dist-info/entry_points.txt,sha256=js6289FRk18_JLmbNfGsmtKP77D6aYawJOSIHv3X89I,176
+triton-3.6.0.dist-info/licenses/LICENSE,sha256=kmQPuXIi_Qppj_KM4MN4LBcmI_jWxgm1V2NqgPKPuUY,1132
+triton-3.6.0.dist-info/top_level.txt,sha256=WBiIZyv6n9Y7MIh-HPHSv2w1RDk7EFL__7ZgQRrmHYs,7
+triton/FileCheck,sha256=RuSjRod4j3qusHirPi_lw_LUqhFJi_bAVINOUxk-3S0,1087824
+triton/_C/libproton.so,sha256=h28LFUAt0ygMCCUJck5GBhkF5ZVwD2W7zUXiO515kkU,19354728
+triton/_C/libtriton.so,sha256=dUbB1zHe0hXZZHFwnCi1HAJoR28fq9gj0rrrVGoBVno,415012112
+triton/_C/libtriton/linear_layout.pyi,sha256=W6ebLarvNBCOkf2XLyao8r8xkUPCPVe66yV52Fz178k,2054
+triton/__init__.py,sha256=luaBksq13RH6MNXcldVsKc7s2lNHf8Ovjze-4Ca3oCE,1661
+triton/__pycache__/__init__.cpython-310.pyc,,
+triton/__pycache__/_filecheck.cpython-310.pyc,,
+triton/__pycache__/_internal_testing.cpython-310.pyc,,
+triton/__pycache__/_utils.cpython-310.pyc,,
+triton/__pycache__/errors.cpython-310.pyc,,
+triton/__pycache__/knobs.cpython-310.pyc,,
+triton/__pycache__/testing.cpython-310.pyc,,
+triton/_filecheck.py,sha256=wUYaN_dlm57TuAWnRVUV4vzALLPyVD2x1o8_VSf05_M,3137
+triton/_internal_testing.py,sha256=o_E1dnddiYl0kh0pSQYTjyUBXjsbRft1EygGgWYGHhk,8800
+triton/_utils.py,sha256=Yx34bOz5Cl-_IQOy0dPQ8L3F_GjX5XHfmnbjrpedk24,3825
+triton/backends/__init__.py,sha256=yL1El3IOc2ovinwBZnqALUlFCDpK7nfTrEv-QwXEeok,2554
+triton/backends/__pycache__/__init__.cpython-310.pyc,,
+triton/backends/__pycache__/compiler.cpython-310.pyc,,
+triton/backends/__pycache__/driver.cpython-310.pyc,,
+triton/backends/amd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
+triton/backends/amd/__pycache__/__init__.cpython-310.pyc,,
+triton/backends/amd/__pycache__/compiler.cpython-310.pyc,,
+triton/backends/amd/__pycache__/driver.cpython-310.pyc,,
+triton/backends/amd/compiler.py,sha256=YlVvkFNJzu1ihvmSb3LO2cXpkIB-B5GHOUXpPKjih9I,22981
+triton/backends/amd/driver.c,sha256=4drnvEqTrPG86P2ErUyBQe299Q1i7MqW--EtkuFkRHk,18123
+triton/backends/amd/driver.py,sha256=j2Vpo1dUUIsn0qcOEDTTPuGfDvnySp6qXk_5mc3fIEQ,32542
+triton/backends/amd/include/hip/amd_detail/amd_channel_descriptor.h,sha256=vtPhkbVsVETTmNsAbxe9ZrAw0x0uehymm14ETYaxKH4,11574
+triton/backends/amd/include/hip/amd_detail/amd_device_functions.h,sha256=TEndX0aKosjoo70nVwMm1fuQZUvnPSejVytf4GfjFn0,31924
+triton/backends/amd/include/hip/amd_detail/amd_hip_atomic.h,sha256=bz1Vxv2ijOY2FODLQ6cDGKVz8rQAeLbgzvSB5idoXww,29043
+triton/backends/amd/include/hip/amd_detail/amd_hip_common.h,sha256=snManECE3JbCl7YYKV3VyUdLTOeszT9zUt2CtNlLQtE,1371
+triton/backends/amd/include/hip/amd_detail/amd_hip_gl_interop.h,sha256=VmiBrEVZcPaPA0I8bJR70gYAps_YkmZrW4uh7VeUR3M,3976
+triton/backends/amd/include/hip/amd_detail/amd_hip_runtime.h,sha256=5RqXP9XdngcwDLfFpR-9IFlTGrwz9npF1_583veVUsg,14276
+triton/backends/amd/include/hip/amd_detail/amd_hip_runtime_pt_api.h,sha256=voQP0IJlaAvPj8YsPGKTR54kx8v2F7RrAabH7lNt1jw,10359
+triton/backends/amd/include/hip/amd_detail/amd_hip_unsafe_atomics.h,sha256=teqqASYBdrZB6cjCWgqPyVJzGNzRHMR1TgvRSC3e3Zc,25567
+triton/backends/amd/include/hip/amd_detail/amd_hip_vector_types.h,sha256=YR8uozOKmRHjZSff9CLfpYKba8zmhYiL8Y8NnYKEoVY,56477
+triton/backends/amd/include/hip/amd_detail/amd_math_functions.h,sha256=WFUwJdsr9otWS7jqQHHTEkEmtgzeiIx7NlVgovTnvv8,3048
+triton/backends/amd/include/hip/amd_detail/amd_surface_functions.h,sha256=9GhglyiG94nDH0CiTmoK7dgCbBnfPtjk6h3QyYw9o8w,18608
+triton/backends/amd/include/hip/amd_detail/amd_warp_functions.h,sha256=o8guSyIFursD0kHy9s56j0iYgAR887N0YPUtAHwp11w,22072
+triton/backends/amd/include/hip/amd_detail/amd_warp_sync_functions.h,sha256=EZVx4RQ0L36iN_JWBOjAjOyoIbEgAUmWTvfOXj-MSiE,30172
+triton/backends/amd/include/hip/amd_detail/device_library_decls.h,sha256=_IKANb9bN46MiU4tsT-ZY3VjT3SRQqL95jgz1ynkho4,7396
+triton/backends/amd/include/hip/amd_detail/hip_assert.h,sha256=GZkGAptK0ZkyDXOEGdu00ys3paNhnnqy48OULLsVyqo,4360
+triton/backends/amd/include/hip/amd_detail/hip_fp16_math_fwd.h,sha256=5u1Z_BWZlZ59jYOvXbWsgsPWO9kQGPH0jNliK5RxtAo,4923
+triton/backends/amd/include/hip/amd_detail/hip_ldg.h,sha256=KAEZb9H4z4DDrkaloMOeWzahiDfI2V6c68vWT3jb5fU,3652
+triton/backends/amd/include/hip/amd_detail/hip_prof_str.h,sha256=P3s3HmKJ_CGUoBDeh1dbGcA6hzgiNIx-ZTxr7WeVECk,738681
+triton/backends/amd/include/hip/amd_detail/hip_runtime_prof.h,sha256=9u5l0FtaYCEKKSYLec2jVcie1edy6xyCcsmlN0Eb2Vs,2696
+triton/backends/amd/include/hip/amd_detail/host_defines.h,sha256=w6H10dznswMgXo6jJBTIvhjOOQGznhgNrHm5R_hMv7U,10131
+triton/backends/amd/include/hip/amd_detail/math_fwd.h,sha256=GgWSJPI_qWGfd50oPIhk95lZiHdkjrpWkTR7ddwpEB4,17219
+triton/backends/amd/include/hip/amd_detail/ockl_image.h,sha256=yzE8YZpmpWJEs-ZpOAGEtDYDm3gEpY02hZVHcpRJf2c,14969
+triton/backends/amd/include/hip/amd_detail/texture_fetch_functions.h,sha256=wOrUmdco-etPqO5QlKlUP0-SpFwUV3w_dfxuPsBCplU,18998
+triton/backends/amd/include/hip/amd_detail/texture_indirect_functions.h,sha256=JWs-5xj-ubwOzNEp6QJI7kuAsqfxKthkwRvOKXTH3qM,23136
+triton/backends/amd/include/hip/channel_descriptor.h,sha256=1tWF4ITCAYKWndpEigF5pwFUwkmYIknaW_ffi4JO8WI,1774
+triton/backends/amd/include/hip/driver_types.h,sha256=0fnfIiFFbBV-jcDY0VRgYnanTDK-0f8cdNhJ4ccTIE8,31339
+triton/backends/amd/include/hip/hip_common.h,sha256=QeUd37rxYiDd4Cfp4OI8O6TwGeG1GC34SOI_9bqgZUU,3430
+triton/backends/amd/include/hip/hip_deprecated.h,sha256=kzTJMz9uKKPDhbYrKdAD1p7XmMPzpr-Uyk1vO37Zsz0,7758
+triton/backends/amd/include/hip/hip_runtime.h,sha256=p_vihvfN-dHeztb7bWY7SJUDFfwyyuyWQ1v3hZnDuvo,2869
+triton/backends/amd/include/hip/hip_runtime_api.h,sha256=8O2BTE-c2Lz4kF81is2jl_-8u4OVuxpllzxbVH7EVcA,444378
+triton/backends/amd/include/hip/hip_texture_types.h,sha256=AhkvjG4cDjf_ZFLg5SsSTfBnXG614PBK1XVPa7irZbk,1237
+triton/backends/amd/include/hip/hip_vector_types.h,sha256=wVhfPuNZ4wNsq2X_fWXrLgWCt6QyXuhkAGFMO5K6IEE,1631
+triton/backends/amd/include/hip/hip_version.h,sha256=8vSeRMzQUJWCVmoy_5zxsQTkWzpd_CNWIIuPUre2w94,408
+triton/backends/amd/include/hip/library_types.h,sha256=2ahq0onhFBlpb3iRf7loed4vqZY8J_vS1BQWqf8yfxE,2433
+triton/backends/amd/include/hip/linker_types.h,sha256=BXq6VlLniYTCzypCz0yWuay2ucZzqxNek7onllpifXs,6691
+triton/backends/amd/include/hip/surface_types.h,sha256=5e3ceH_JBjhxO8c0HiLS7iMBEFGWK1DcjDOQCixsnxU,1953
+triton/backends/amd/include/hip/texture_types.h,sha256=8lyBxvKtY1QFURKN1pK2yngRvAwS2YGgrSDOH6HgTSw,6499
+triton/backends/amd/include/hipblas-common/hipblas-common.h,sha256=nZLH2WYrcDDFefz9a08p2ygP-YaYIOuxUiObGvwXPTs,5450
+triton/backends/amd/include/hsa/amd_hsa_kernel_code.h,sha256=L0ix__VDL7lqpGDTxawLzLLomWrfpezbUIci85Ef-dA,12754
+triton/backends/amd/include/hsa/hsa.h,sha256=8NxQmaFcgSy2zfM89n7DXxOGviIqbQ8FiWz_8WkW5RQ,191415
+triton/backends/amd/include/hsa/hsa_ext_amd.h,sha256=sVr04PILBcYLiyGdFf2UnBMsnZm66WxIU16bTsaerKo,136290
+triton/backends/amd/include/hsa/hsa_ext_image.h,sha256=DFLmv3Z5C00pZ4hrKlAZleDwjXigU7I2IBdKuXS3txw,56383
+triton/backends/amd/include/hsa/hsa_ven_amd_loader.h,sha256=c6cxPAzAox7u6IbFzEkQZfCuRl-Kr39WhY2_w23X1R4,26146
+triton/backends/amd/include/hsa/hsa_ven_amd_pc_sampling.h,sha256=1jQvi96s94-GjOGktmvpqjVRsTGANugOsV6XmgMfivk,18767
+triton/backends/amd/include/roctracer/ext/prof_protocol.h,sha256=6FAcvVD-dNM7uulFs2B-aTxw5xOAWGy6evdD4yUaebA,3849
+triton/backends/amd/include/roctracer/roctracer.h,sha256=B8sHz2DMNprP7EqNWIGwVLY1KQMpxmhfVy4UoR8dzzY,23849
+triton/backends/amd/include/roctracer/roctracer_ext.h,sha256=vLaZ8peAxSy0cwrdEalKnUApkKspfa04iw1Mr_Zcio0,2940
+triton/backends/amd/include/roctracer/roctracer_hip.h,sha256=RCzYuNw1vLR7xK4rb06TtM9TU546UYKHJ83IMHmZEm8,1432
+triton/backends/amd/include/roctracer/roctracer_roctx.h,sha256=gBjBk5vb0l3PbBSQ7V9iFtaM_RzkIDJEW1A_PXBihBM,2014
+triton/backends/amd/include/roctracer/roctx.h,sha256=RhJXUXRhSJ5LRE_1gm7E6-bjEMrfcFBLDLuf3UxAIh8,6717
+triton/backends/amd/lib/asanrtl.bc,sha256=1xv2RlU3WvbdsghHlmhwiHewGM2B5dKts5bERM6S89o,24508
+triton/backends/amd/lib/ockl.bc,sha256=wQKCzkKukIHbu0lyjKUYlhndc7S27xto6L54J0Bn-C0,246124
+triton/backends/amd/lib/ocml.bc,sha256=UPNTXW0gCXUNB-c6orSYwb-mz9_mjUc7zny_vfFza44,205964
+triton/backends/compiler.py,sha256=xdNAO4i1u3KPiseMVRYxmOQYQw8SbIQoksaMtLa6qng,2834
+triton/backends/driver.py,sha256=JcsL7pVHSIM13i1JWvc4KYum1MIPHTeUHcF3UcV6IR4,1802
+triton/backends/nvidia/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
+triton/backends/nvidia/__pycache__/__init__.cpython-310.pyc,,
+triton/backends/nvidia/__pycache__/compiler.cpython-310.pyc,,
+triton/backends/nvidia/__pycache__/driver.cpython-310.pyc,,
+triton/backends/nvidia/bin/cuobjdump,sha256=rR0PBpn0ZgNBbrWOe5_fmik-lfkxLJ33_W_aVqbDDUE,569008
+triton/backends/nvidia/bin/nvdisasm,sha256=EIC8kJowIHYf9MeKm3vZtJN725wJeHCcvlI4HeYSofI,5894744
+triton/backends/nvidia/bin/ptxas,sha256=yWCk8jixfVxdPAGtK7wevSxa7MRZy00iO_8QtF-bj8o,31912192
+triton/backends/nvidia/bin/ptxas-blackwell,sha256=mDsOkoOFWXn0LOv9gNQ_m254brhPA_dXC_lBxNOjxGE,34931056
+triton/backends/nvidia/compiler.py,sha256=7qVWmLqwDHJrPR1JWzkLcqY6qo0Wd4GmXqUhLTlNdvY,23589
+triton/backends/nvidia/driver.c,sha256=Q5weiG-p6sc0bXUj0DugpMUqpMm1GOqG2GWbXAfrfck,19555
+triton/backends/nvidia/driver.py,sha256=StS0RAqkpe4VrCOCrninqoApmGwi7CrL0HKpGBDoXpQ,25625
+triton/backends/nvidia/include/Openacc/cupti_openacc.h,sha256=Z0OM5e_hbd3cxdXyn3SCHqBBQawLg4QORnlm57Cr2-M,3513
+triton/backends/nvidia/include/Openmp/cupti_openmp.h,sha256=E1WNmeb_7HaUSmBegtUNe4IV1i7pXeNxgzIlyKn1zrM,3491
+triton/backends/nvidia/include/Openmp/omp-tools.h,sha256=AmuC_xPC7VPu3B-W4PmXuCNufFawhY8PjNXePaQFAOg,37403
+triton/backends/nvidia/include/builtin_types.h,sha256=JxT9Vf2q2snxTBOL9ACzNmYzTWACO2VOVUu1KdFt7_g,3150
+triton/backends/nvidia/include/channel_descriptor.h,sha256=oZIDO1kdexPb9jltUx1AsXAFknvRWAAr1456925Pqig,21846
+triton/backends/nvidia/include/common_functions.h,sha256=22LTZRVcPZzEH6MJda7nNMCvMgIjSTe0OKR7sEQj6kc,3410
+triton/backends/nvidia/include/cooperative_groups.h,sha256=y2cFxa6e-saEFA9aW22ZuTwi0wud7eEHq7XN3v30LT0,60684
+triton/backends/nvidia/include/cooperative_groups/details/async.h,sha256=xsEHCZP3nuEY3l2p8SU2d1226XiXumUvDP_Gyh8PdVY,19122
+triton/backends/nvidia/include/cooperative_groups/details/coalesced_reduce.h,sha256=pBQgFY7i64V87XNATg1UEIQHVNYOItQtHjS5B4yn8pc,4257
+triton/backends/nvidia/include/cooperative_groups/details/coalesced_scan.h,sha256=DfZv5d5W0XJv-tZVhgrIdjLjs6aCx_u0oy1lDIpjo1Q,7314
+triton/backends/nvidia/include/cooperative_groups/details/driver_abi.h,sha256=v-ZUb4UgGKJk6NR2WCWHD3x_42y-togI1urFn70Gi-g,3964
+triton/backends/nvidia/include/cooperative_groups/details/functional.h,sha256=2BV8i8Bidz0kgxuYkJCAbwFxOIZRyzHgG-c_rVKhRzc,8905
+triton/backends/nvidia/include/cooperative_groups/details/helpers.h,sha256=K9jvxnXc5-6Fum1KG4EQKJJrVZ4BhHOSAJbZR4uDL0c,26476
+triton/backends/nvidia/include/cooperative_groups/details/info.h,sha256=FOrp3Ltt4PcbK2fAM5UX9jssFZtj_LqVShzLFcKiSaY,12465
+triton/backends/nvidia/include/cooperative_groups/details/invoke.h,sha256=Osq3K-tZuXHVCMQJ708PjPo-BwMhjhjApO4b0TYLFJg,8616
+triton/backends/nvidia/include/cooperative_groups/details/memory.h,sha256=hES3SfgXIBsj2MFrC_M5COXlOirSBuuhPMAJnWoI92w,5606
+triton/backends/nvidia/include/cooperative_groups/details/partitioning.h,sha256=AQz-TheqX3onqX2RmIUipzYUVB273zhLlHJw_kX9D2U,7153
+triton/backends/nvidia/include/cooperative_groups/details/reduce.h,sha256=MjqMDwT0TyWZk4JWcF3WHw8xtwMqyizA4C3zy7f8ee0,23296
+triton/backends/nvidia/include/cooperative_groups/details/scan.h,sha256=-Ttwb2AfEEY_tsmqJjR2dojkPpoRx387SoqxgvfdBtQ,17166
+triton/backends/nvidia/include/cooperative_groups/details/sync.h,sha256=Ed4K9QrPZi43ddSqZwv1X8NG_CTsXUowSQndoUv82LU,10795
+triton/backends/nvidia/include/cooperative_groups/memcpy_async.h,sha256=erOIHuObdfxRhBWfrXE3wsZF4B2GUuqwzQrsPwKPpbg,2960
+triton/backends/nvidia/include/cooperative_groups/reduce.h,sha256=B0hgDkqM-6ueqTTgb3b34A0RH4vGz8mBf5e2jT1dJ1o,2949
+triton/backends/nvidia/include/cooperative_groups/scan.h,sha256=2EU6T5cWNwftm2B7FicV31PojoI61yo5fHXGRYkGk40,2940
+triton/backends/nvidia/include/crt/common_functions.h,sha256=-U44f4yUGmwDPwd7Q_3Cz5if05xHGPSlAzz5zMylLSQ,13559
+triton/backends/nvidia/include/crt/cudacc_ext.h,sha256=KW6n0ImOZKS0VqVmBHWTXtHI816hh88YeEgUg2aYdVU,3224
+triton/backends/nvidia/include/crt/device_double_functions.h,sha256=A1vB3g0qwnNEfcpT1d9RiGDaxqPXXgYr-Vxe2oMHyxY,39938
+triton/backends/nvidia/include/crt/device_double_functions.hpp,sha256=YYIbqYhb5Qmf8c4YfcC_jytg4FRwcXPjv3TFTwhb24E,8568
+triton/backends/nvidia/include/crt/device_fp128_functions.h,sha256=3iCKrdmPp1NIjrlGR47dCZOgV9X6MmdfmjugrF6DEts,51047
+triton/backends/nvidia/include/crt/device_functions.h,sha256=T4INuRBIlLmd3JEA8H6B5XHVANGV6j8gwyUTj5h_F18,137919
+triton/backends/nvidia/include/crt/device_functions.hpp,sha256=OVHiqBjday_aUFnDKJxTeI0VDZI8ZA6JIdUKeAKR4pA,37991
+triton/backends/nvidia/include/crt/func_macro.h,sha256=EOpDlaM917bh9cwBiFBPF689DCMBw5hFarxLxFt-i74,1755
+triton/backends/nvidia/include/crt/host_config.h,sha256=1eki3w5xuY00gIkdYbmSfZO2SoI8giZWYSTRIL2uFs0,12169
+triton/backends/nvidia/include/crt/host_defines.h,sha256=fDU_0cQdtIvEdM0zZFKY0OboMANEMgHLblifPalPGLk,10102
+triton/backends/nvidia/include/crt/host_runtime.h,sha256=lOpmkxFZVkEp8dcMAGEZRITsh-19o9jy39kdSNLc3Ng,10284
+triton/backends/nvidia/include/crt/math_functions.h,sha256=LyGJ0XUthi6WEi-YVITInha9A6SFoB4fEUUU9zii7U8,238284
+triton/backends/nvidia/include/crt/math_functions.hpp,sha256=u-CGbd0R2FZWdKG-6bdmGSor9KT_wnmISj63lPQKASM,100207
+triton/backends/nvidia/include/crt/mma.h,sha256=BooWALDWATvZupJaL7-GFQRQYOotNe_Fy11I5NGh2FA,62695
+triton/backends/nvidia/include/crt/mma.hpp,sha256=spo0LX71tUCipxK517Bssj0nc-ZHf8oMWzvHoYYB_6I,66599
+triton/backends/nvidia/include/crt/nvfunctional,sha256=FDM0zqWO6bl9jpJKz9U8CMbjt6iTKh18tQalxAvRsag,16900
+triton/backends/nvidia/include/crt/sm_100_rt.h,sha256=3cBiCU11OcjGYpr85edCN1q4m2z91FaGhBtuO0is4To,8987
+triton/backends/nvidia/include/crt/sm_100_rt.hpp,sha256=vbI2CNCY08dDI7zXwp6BNceZKl0ceXG1lveq4w-VNao,6855
+triton/backends/nvidia/include/crt/sm_70_rt.h,sha256=Kf830xymA-zmF7LsunFHLSNyhhT5UiJMocgoHBQeNns,6837
+triton/backends/nvidia/include/crt/sm_70_rt.hpp,sha256=3a_rU-Y0MSB4htBDFY4PCQ_jXiWFTe7WT1ZyhMuCJOA,7837
+triton/backends/nvidia/include/crt/sm_80_rt.h,sha256=MdJHWCRzLM__nDDf1go61rDsl9ydOW3oi6SZBfjUyc8,7743
+triton/backends/nvidia/include/crt/sm_80_rt.hpp,sha256=o-rJu-jpehCeyABGgv-8dYRB7oJTCwuNdvSCq0VURdE,6705
+triton/backends/nvidia/include/crt/sm_90_rt.h,sha256=an47m0XFBaJ3pUX9MlE4-nktP1jb3eJUXhQ3ntZtzc8,11445
+triton/backends/nvidia/include/crt/sm_90_rt.hpp,sha256=YuqVygGV6rgtWtx1J9cPpEI3BXKQBII-Ez6oZFP3wrE,9228
+triton/backends/nvidia/include/crt/storage_class.h,sha256=dzcOZ16pLaN8ejqHaXw4iHbBJ6fXWxfaU-sj2QjYzzg,4791
+triton/backends/nvidia/include/cuComplex.h,sha256=WpcgpaiPhU_o9sTPMcNTEZuyXDIc8x3sz4dUWSztL2g,12186
+triton/backends/nvidia/include/cuda.h,sha256=RWjMnnoyHkdwfNZAOYDyGsLi5VFwUA0OCj9U_rA6mss,1156988
+triton/backends/nvidia/include/cudaEGL.h,sha256=iruZU9xSGAcJ29OEX4K_Uo1o4NGP9hggv2fiOZOfDQo,39955
+triton/backends/nvidia/include/cudaEGLTypedefs.h,sha256=xF_FAN1Kar9oyHJ3cCU7jztTpxX8WylpiuYyYpGGHek,5645
+triton/backends/nvidia/include/cudaGL.h,sha256=gMT1HPGa-siuji0gAsKYr4X45Lc29HKglC_ttNSGyUM,22501
+triton/backends/nvidia/include/cudaGLTypedefs.h,sha256=dClpQI-LuXgF9rPSBsj7OkIg8g_fXDjT0hLZS8TGpOg,6576
+triton/backends/nvidia/include/cudaProfilerTypedefs.h,sha256=F2aWLIKv_AhNbxNOaZVcRsxIh0kuscnV8UMWWxkBAlY,3297
+triton/backends/nvidia/include/cudaTypedefs.h,sha256=SKfAvTOj19zxsiLGKhoxXPiopKqoe5hjj5iXkR2_v6E,115169
+triton/backends/nvidia/include/cudaVDPAU.h,sha256=Np7Nc2Wjaz--hkpbhW6f9aapr-NbcPDAgkot0sJerco,12694
+triton/backends/nvidia/include/cudaVDPAUTypedefs.h,sha256=wz8nyOUdwM9mH9JO3QZW-A9dyxt-IufSX7nggSXpCNs,4144
+triton/backends/nvidia/include/cuda_awbarrier.h,sha256=3ZH-ZlXODhSiwSY9rqSni_EQwi25QMHP6Tm-zOdxBwE,9340
+triton/backends/nvidia/include/cuda_awbarrier_helpers.h,sha256=OCskCts5bCKl_RKBe9M74zKSIsVpePn44S_aJp1tFXE,12489
+triton/backends/nvidia/include/cuda_awbarrier_primitives.h,sha256=n5__E1jYYDhlgH-f3u8MQjtz57UZ7v5VshhMye1eicM,4699
+triton/backends/nvidia/include/cuda_bf16.h,sha256=TVoq2IrbF5g67wUF7W7SoGA0l8ecEDu6gskoMB6hIxA,204512
+triton/backends/nvidia/include/cuda_bf16.hpp,sha256=OukWXoN6bgRlC-p8CFbhUN0G0uAJb_zos1mCPagscnI,136544
+triton/backends/nvidia/include/cuda_device_runtime_api.h,sha256=54l66QbwerX0wPKoJC2y7qCdGP8nv1_GgdmMV8A0x4k,46986
+triton/backends/nvidia/include/cuda_egl_interop.h,sha256=awWBBEYvUFM7AURNp2mND8H7_5kGQLRswRveXYBy-3s,37509
+triton/backends/nvidia/include/cuda_fp16.h,sha256=jrFgCo4uM9QFcr_-cAGif2BGp0lJ2ANT_gLPiLJWPdo,206851
+triton/backends/nvidia/include/cuda_fp16.hpp,sha256=o1ITDmuN67N8YUGUcvTpV3IdpS-6wwlm65M_H-8LYKs,120927
+triton/backends/nvidia/include/cuda_fp4.h,sha256=pTEQf5rLfiaU_UMXgnnsS13NH5H9FtHgdeiNuW_NkHY,13823
+triton/backends/nvidia/include/cuda_fp4.hpp,sha256=YYaUu-YRgYdj9xYu4ZDh_uPVffxkDlEr0CD_bhlF8BE,35423
+triton/backends/nvidia/include/cuda_fp6.h,sha256=6xh0E4SNmjmJZD3H5_HoZe08bQ0loUE8y3cbO19-Ad4,13963
+triton/backends/nvidia/include/cuda_fp6.hpp,sha256=qa838buZeLP32xBVqbo71uFSW5RnBWx9qp5D-SR_xc0,56455
+triton/backends/nvidia/include/cuda_fp8.h,sha256=QSTMRb9l7I9mnvT1_8KXNqLO48wWaWEgG97bDjEh1ic,18072
+triton/backends/nvidia/include/cuda_fp8.hpp,sha256=6AABZPfPlK-jmQyMdbTEE0PZTlULjuLOrsQ0Z_cubBw,97230
+triton/backends/nvidia/include/cuda_gl_interop.h,sha256=VQEswFeOBF6JN6Q0pdlkvc5WT7bD1FnTfKewvANulCc,19150
+triton/backends/nvidia/include/cuda_occupancy.h,sha256=0HavrMIWXGxIujaq72iX31-73Zprx0WBYdiln3ZNP2w,71302
+triton/backends/nvidia/include/cuda_pipeline.h,sha256=0enXG49wN4JajlQi3ahbp2ei_ufTY_Mznic7zfWmKHM,8130
+triton/backends/nvidia/include/cuda_pipeline_helpers.h,sha256=bo1L7e6vCuM-K3Il8K1z4wJUja5DyXQKdo_hSWUME-E,13852
+triton/backends/nvidia/include/cuda_pipeline_primitives.h,sha256=FnJJtuV6rHr6LgL56XDwilcSbFr6W1Hj6mf1AJaMI20,8675
+triton/backends/nvidia/include/cuda_runtime.h,sha256=GqqE7SrECGrN-Qg5Dk90LSjs-xvKlHZpRLlpH7LUehM,98570
+triton/backends/nvidia/include/cuda_runtime_api.h,sha256=EWhSESFT_vV5eYZpTBEu4EvgNtE9rhmHP503XnIGHIs,655943
+triton/backends/nvidia/include/cuda_stdint.h,sha256=XbFOk9CtJjKqk7PpYNqbSVsDxAsVM8avA4rWpPi0BjQ,4093
+triton/backends/nvidia/include/cuda_surface_types.h,sha256=Mw5Lo4b8Q-f9mogOvATGyHhu9d2t2K6XOxuqtZrSh3A,3688
+triton/backends/nvidia/include/cuda_texture_types.h,sha256=ITbX-JNnP7Rm-JSgNVdJ9pq6k8FVor8RbnruDsKq6sk,3688
+triton/backends/nvidia/include/cuda_vdpau_interop.h,sha256=bXQanWc2IFXZAKWNGl2xAz9nLvFmQpWyGrsDvfeS9FA,7727
+triton/backends/nvidia/include/cudart_platform.h,sha256=YN6sKhB0b9w5tGX1IYL7ulJVPrWAiX9A44qLv4EtW5Q,2717
+triton/backends/nvidia/include/cupti.h,sha256=JkVyAGTIMYzwm62dfVqas3nMcILhgP_Wdz6fh4_NED0,4697
+triton/backends/nvidia/include/cupti_activity.h,sha256=gJKGlG2JifW36Lx-ujJcKBlnUrNOoTxar51k28GrUtU,229848
+triton/backends/nvidia/include/cupti_activity_deprecated.h,sha256=B0p4zbll2vUn1j0ImTG6QIbpp6Hiw8y-X021Zmf7flE,137602
+triton/backends/nvidia/include/cupti_callbacks.h,sha256=aZ-SE0YMFfT9R-Uh5MHboPg0ypHMjeSSAJw3zdP7OCs,29689
+triton/backends/nvidia/include/cupti_checkpoint.h,sha256=rTz8JoWxqESBXyZWUhZJGm4xeYcx4OJOtJ7Ld13T_b0,5264
+triton/backends/nvidia/include/cupti_common.h,sha256=85m74bxUgXp3tEaPQpezeazmpsNMw41PsjNSYmQdT20,3514
+triton/backends/nvidia/include/cupti_driver_cbid.h,sha256=mkBNPYkLfcExhQZFDo0iYHlaHJWGD2vOMdtzaV-lEUk,77280
+triton/backends/nvidia/include/cupti_events.h,sha256=81wcvFvvHj8RmECbbEp5FfgjJIQDoC_81FhvqznFupY,51923
+triton/backends/nvidia/include/cupti_metrics.h,sha256=zmfZxq5VkUJp6Tj7oXEkP9oycRNw1zB9VNhoQlbhiN4,32175
+triton/backends/nvidia/include/cupti_nvtx_cbid.h,sha256=_azPtR1g4qivvX7qbvHRUg0RHCWF7iEOJyHMN9qZe9E,5912
+triton/backends/nvidia/include/cupti_pcsampling.h,sha256=ycJHT36DmPIaVzHsB3xxjXkhFyEfMCJOl3LbCsHFgyA,32144
+triton/backends/nvidia/include/cupti_pcsampling_util.h,sha256=lx8CaNXowJe5Zvc06LE-u_Zry_jODs1mM6j9Q5WIX9E,12430
+triton/backends/nvidia/include/cupti_pmsampling.h,sha256=U95hKOwIkZSbGNVP11QSmMawB8qdJsljY_tUJY4vedc,20440
+triton/backends/nvidia/include/cupti_profiler_host.h,sha256=MkkfXlKBRrRL4NfaPFiuE4D4z_gpmxiBWWTBixyyMTk,22155
+triton/backends/nvidia/include/cupti_profiler_target.h,sha256=MdLutIefwdMTI7wsce0LO3NuCm3FRgFR3GxAkqadMs4,32294
+triton/backends/nvidia/include/cupti_range_profiler.h,sha256=ue5bUA-3xCwAtQGyDe5O1d5rAmRbVbcrXKfITd4xM1I,18779
+triton/backends/nvidia/include/cupti_result.h,sha256=xQqBsZRoicBSWdk1lZAE_WeZj88MLH6ClTo58oshx-8,13114
+triton/backends/nvidia/include/cupti_runtime_cbid.h,sha256=BZJnzsvf2RjRlHKEhPjCk0CdjLI9_L-nClTwe4v9NUc,48372
+triton/backends/nvidia/include/cupti_sass_metrics.h,sha256=3RW9snJuFQdOhrEn3wDJOru05q0V_zssWrqD7tvVJKw,19674
+triton/backends/nvidia/include/cupti_target.h,sha256=x4Vz1Upb6m9ixmVpmGaKQldDWYQI3OZ-ocEXGzNK0EE,1263
+triton/backends/nvidia/include/cupti_version.h,sha256=KFXmjB4o-iZGvO8la9Sf9Urg4q4srmEimnxbPCyd2N8,4506
+triton/backends/nvidia/include/device_atomic_functions.h,sha256=OR2jNSfSKzaFri74zh4Vtz5M0z9UDBU3rKeC1rYaVQs,9500
+triton/backends/nvidia/include/device_atomic_functions.hpp,sha256=0e7MOiNNUnnloXpB_r9WT5YOws5cxgzQQAzRCYvgaFA,10486
+triton/backends/nvidia/include/device_double_functions.h,sha256=KUxId5Z1fx8SWfLRTxPD7RB-zN7zslzb4n7JaJLfL3I,3452
+triton/backends/nvidia/include/device_functions.h,sha256=bWSrhTYE9NQlss7xMSMEVusvto9j2fgUDXWVH2W_cOA,3410
+triton/backends/nvidia/include/device_launch_parameters.h,sha256=H1_CC-vvAaS26ys4XsTFkMgTxUTciAjdjswjizkisvQ,3846
+triton/backends/nvidia/include/device_types.h,sha256=2LFxoZBJPoA5V0H1EbKTEaXDi3GDJPtzOPdRHDaucIQ,3588
+triton/backends/nvidia/include/driver_functions.h,sha256=cN3IjRAz2Mj2Pj35SyxJIkZNDDusnJqaqzBdMzpQKbA,4625
+triton/backends/nvidia/include/driver_types.h,sha256=mMNbiIwg5E3k7Sk685YCSvnKYmfQ3bxWv3bkEgzOtNU,200083
+triton/backends/nvidia/include/fatbinary_section.h,sha256=NnuUfy358yGJx4enq0pBnetjv17UWa-nOlgYToUitrw,1809
+triton/backends/nvidia/include/generated_cudaGL_meta.h,sha256=dfd2QuaRdEjbStOKvaQLi1Md_qrpRQh8PfyZznJ8bWY,3115
+triton/backends/nvidia/include/generated_cudaVDPAU_meta.h,sha256=fAedsoQxaU3hIAApAWDOKsa9kgcuQw4tdyf8klLm-3k,1453
+triton/backends/nvidia/include/generated_cuda_gl_interop_meta.h,sha256=LXOqvQCej0sCgAT1LUKKYZ466EFxN4hIwf9oIhXOLF0,2250
+triton/backends/nvidia/include/generated_cuda_meta.h,sha256=DDdgfW84GVtsGbr7daNJchmmZDS_xfvDHvFCm3I1OEc,98664
+triton/backends/nvidia/include/generated_cuda_runtime_api_meta.h,sha256=CuziaDwO2Mh33paCLGKqi73PQfYNmzp38wYrhAK-fng,72208
+triton/backends/nvidia/include/generated_cuda_vdpau_interop_meta.h,sha256=8OLqWN26aEYpTWUXtbHJvA5GYhVv3ybYVOTW7yK37z8,1367
+triton/backends/nvidia/include/generated_cudart_removed_meta.h,sha256=X3I5WXmhtsJNNlgY7coJ5vg4t11G5FRR6Xo7MboIeck,5172
+triton/backends/nvidia/include/generated_nvtx_meta.h,sha256=YHb_RD8g3s4m8PJn7Z0wnxvUHarl7BOAX5ADr-BL3HI,7513
+triton/backends/nvidia/include/host_config.h,sha256=BscH_GazAZbbotddVzL5RmafbQ-QjRx8f-I1O01IBW8,3380
+triton/backends/nvidia/include/host_defines.h,sha256=bBQwQF5C1N1c2qpLV56g1c-weu9Ysgz-gIf2Kn3uz_A,3386
+triton/backends/nvidia/include/library_types.h,sha256=i-GFcw92wvcixs2bQjOj4I_q26HYY_VY4DpDvHWQCjY,5156
+triton/backends/nvidia/include/math_constants.h,sha256=cV6hAyQe8X7f7MBtaKjjIJq3BycOUDp6I5cizJX5HLw,7608
+triton/backends/nvidia/include/math_functions.h,sha256=5XcC6j-fJKttvhwc4hZNoLHNw808a2ZYIOtZ7ry7yd0,3398
+triton/backends/nvidia/include/mma.h,sha256=IY_VenxuEncwGq92MhrWUb-Xswh0ekAXLy9Rbxhxa2Y,2932
+triton/backends/nvidia/include/nvPTXCompiler.h,sha256=lF1ssKlrjsNWCsp0UdhbB6GyOgFCDO1q0ZBDzOswlj0,14471
+triton/backends/nvidia/include/nvfunctional,sha256=IkFoCi_Q4OhP9nEuBI-5jWwFlR_PfG05hJH7lSMsfWc,2975
+triton/backends/nvidia/include/nvperf_common.h,sha256=ykeTJ5I6c0z8KqMQh13hlJaMaHiqqVUB60oGXOCu7Bg,17255
+triton/backends/nvidia/include/nvperf_cuda_host.h,sha256=gC0JWoUdTyAOJs8y4uoJIhie9Xq4yF4HzoumLsYNVzU,7562
+triton/backends/nvidia/include/nvperf_host.h,sha256=wCB4mR8aIHWiqT1TsxztQgWBRh_yiq5ABFm8sb3_jwg,49197
+triton/backends/nvidia/include/nvperf_target.h,sha256=jRqQtuNLTrCzPDdyeANkTrPEijSCTjLy2A1qjKu0SdM,23607
+triton/backends/nvidia/include/sm_20_atomic_functions.h,sha256=x4ycINVq__l9B4SQPD-I48jQbKxxdBmgp8Vf2GO0Qfg,4478
+triton/backends/nvidia/include/sm_20_atomic_functions.hpp,sha256=1l5NLM8DhDbqYZ_E51LoqElQJXObkbwo57d3r-4uEbE,4107
+triton/backends/nvidia/include/sm_20_intrinsics.h,sha256=axeDr7y6nT1V6LzrSWNSaHUwXgiNjPbXn1T6Uh7hlNM,57702
+triton/backends/nvidia/include/sm_20_intrinsics.hpp,sha256=mJTejRhw1prNiP_ax1OPbkYlhEqBqO4nVI3DRDXIzpo,8392
+triton/backends/nvidia/include/sm_30_intrinsics.h,sha256=b6W8Vxp9vD9OCJI6lZuGyZYXEdQ3Ei8PTAloHNkwCcQ,16978
+triton/backends/nvidia/include/sm_30_intrinsics.hpp,sha256=yX0ebd265tJ-BDhvluP2BhadPuWXpRZPI2eeQFFt5ys,24567
+triton/backends/nvidia/include/sm_32_atomic_functions.h,sha256=HGnZgQHACE2AAb6zabGUURc53IsVZelc2BSJqvs9OgY,5703
+triton/backends/nvidia/include/sm_32_atomic_functions.hpp,sha256=CQTTvOEYp-s5hqAgLvAon11vLYDrDp8cTHdel-XRzBQ,6592
+triton/backends/nvidia/include/sm_32_intrinsics.h,sha256=Xdkogdsjy1vh8u3eGu0i5xTmHxBGAjj6_vVGR-spdOE,33539
+triton/backends/nvidia/include/sm_32_intrinsics.hpp,sha256=Gl8aSLDLcit4W3pKQS19GsDG8RYcwD65HwYB_CeZe8M,70616
+triton/backends/nvidia/include/sm_35_atomic_functions.h,sha256=a3XoEsKRCEOf0Q_5Y__rMfmC4pScv4VkUggVgVJVn44,2909
+triton/backends/nvidia/include/sm_35_intrinsics.h,sha256=0mS5-LCgvZiTvL7-MG_4YwI-zWGvM-s4xyRuMkunMC8,2664
+triton/backends/nvidia/include/sm_60_atomic_functions.h,sha256=_anfNaJsvQpDEorYeUKIkbizYkwrinBcG_ZCiECtLqI,13178
+triton/backends/nvidia/include/sm_60_atomic_functions.hpp,sha256=cgIKddDn2B3QzYlzeBILAP1IRys74QCCxsH0QqaVGls,22903
+triton/backends/nvidia/include/sm_61_intrinsics.h,sha256=h_MBL1UUDxQX_qOddSImzqyFjcrhhm_63G97pGDyreU,10902
+triton/backends/nvidia/include/sm_61_intrinsics.hpp,sha256=N-nQvcBsPMT2Umy5zR69c9K1q366W-Jqe7NpoLTqTmg,6787
+triton/backends/nvidia/include/surface_functions.h,sha256=b1O82SAvEgWWxA9uZTWQcGimzZUoem2QbAET3wh3fZc,6782
+triton/backends/nvidia/include/surface_indirect_functions.h,sha256=vy9QuFVV-ezZP-x2RT9RLp2qIUgdngACOCmalSfVFPA,10877
+triton/backends/nvidia/include/surface_types.h,sha256=XkFXD1nHbeSMgajR-UJE9uQ7TByzJnjdnUL4-yGiufk,4530
+triton/backends/nvidia/include/texture_fetch_functions.h,sha256=KLCmUxf5aY5_UalX8tSFB6e4TrjA8hyUPxLOkMFltAo,12468
+triton/backends/nvidia/include/texture_indirect_functions.h,sha256=lH_y3Ni-hq4RZ0_PMFbBM0th5-OmTn3TtqtpkHHhA8w,21163
+triton/backends/nvidia/include/texture_types.h,sha256=73ntVyg8r8fzKy5VIk6yuvC45GDeWepaLIqIk-M3Ri8,6360
+triton/backends/nvidia/include/vector_functions.h,sha256=WypGkL-IDbGOlay7g_G0p3HO7OLGRE0Do__JtiFoWxY,8003
+triton/backends/nvidia/include/vector_functions.hpp,sha256=afXhNSd3LFTZo96EPtesTLfvxd4nTmLVzgkj967rTRg,10060
+triton/backends/nvidia/include/vector_types.h,sha256=6CJ4yt3KD7zQVfm1NhrgqNYYEDEIZWwaivlFx12nhNg,13396
+triton/backends/nvidia/lib/cupti/libcheckpoint.so,sha256=BrqCvQkje5NM8W2iFy7VlDxYLKo1x5tSz8_rD_cfclA,1644872
+triton/backends/nvidia/lib/cupti/libcupti.so,sha256=_M3F_MfDL4z0s-2bF_fxh6GFpvoKW8wG40NMvRaHyAg,7595792
+triton/backends/nvidia/lib/cupti/libcupti.so.12,sha256=_M3F_MfDL4z0s-2bF_fxh6GFpvoKW8wG40NMvRaHyAg,7595792
+triton/backends/nvidia/lib/cupti/libcupti.so.2025.1.1,sha256=_M3F_MfDL4z0s-2bF_fxh6GFpvoKW8wG40NMvRaHyAg,7595792
+triton/backends/nvidia/lib/cupti/libcupti_static.a,sha256=q22dskj52HUn40wsJ6-5g9AFD_aYtOSqIlNJrbRqOko,43563448
+triton/backends/nvidia/lib/cupti/libnvperf_host.so,sha256=YJ9UBjwlPa_277p5_kklL90jJDCKsP-5kcwSXT6aHqs,25825936
+triton/backends/nvidia/lib/cupti/libnvperf_host_static.a,sha256=sTLoX5YG81JXBoSKm3fLo0RAdP3HqISmgtx8L47XF-4,33480030
+triton/backends/nvidia/lib/cupti/libnvperf_target.so,sha256=LxDhEJ_DQaV0NMKOQAa0WokkeAHiD1rOE1wwLBc-B3A,5275312
+triton/backends/nvidia/lib/cupti/libpcsamplingutil.so,sha256=5vongwd5dPsnZb-py66_mAc233Tuv5lMWcdZaYiuyDs,970064
+triton/backends/nvidia/lib/libdevice.10.bc,sha256=XC-uN8huaMOjhgWpX1EtfRLV89uYYxC-R_VzBKpype4,473728
+triton/compiler/__init__.py,sha256=S0iIXHTRJL8MUqThupDtPyJVT0PA882c2dN5VwqOGxE,284
+triton/compiler/__pycache__/__init__.cpython-310.pyc,,
+triton/compiler/__pycache__/code_generator.cpython-310.pyc,,
+triton/compiler/__pycache__/compiler.cpython-310.pyc,,
+triton/compiler/__pycache__/errors.cpython-310.pyc,,
+triton/compiler/__pycache__/make_launcher.cpython-310.pyc,,
+triton/compiler/code_generator.py,sha256=yLgvcMg60QvAGQ-meGQ0i4lfcz1nZYo77K8TdGGY93g,72793
+triton/compiler/compiler.py,sha256=KgY7t5CXd9NlmUUkQnfpANn3z8Nd6adYV4Rp7kuQ_Ok,20548
+triton/compiler/errors.py,sha256=I9Y15pDWcL9heY4SWWdLeMDtW6Iiq2pFXzKfJ6dY_C0,1732
+triton/compiler/make_launcher.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
+triton/errors.py,sha256=8WfnuRKLG578mgY6cBA3ECruVMf9ULEKFNgRcJ6IhWM,89
+triton/experimental/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
+triton/experimental/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/__init__.py,sha256=lcSGCgXqtSNqQxDuZhP4s7BStqgb81AULbtKY_nEjv4,211
+triton/experimental/gluon/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/__pycache__/_compiler.cpython-310.pyc,,
+triton/experimental/gluon/__pycache__/_runtime.cpython-310.pyc,,
+triton/experimental/gluon/_compiler.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
+triton/experimental/gluon/_runtime.py,sha256=AVoWQuzXSKD02gZLAzbZ6iHw4uccf0rH-KpWVH-7ceI,3461
+triton/experimental/gluon/amd/__init__.py,sha256=s4d3xgEuuCxSAA-0whosZP1av9RpDfiJjq-73B8mdlc,45
+triton/experimental/gluon/amd/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/amd/__pycache__/gfx1250.cpython-310.pyc,,
+triton/experimental/gluon/amd/gfx1250.py,sha256=vltp7sQ3yydl42yTaK9wLt_inGtkVoVLblxzHuPp5rU,2005
+triton/experimental/gluon/language/__init__.py,sha256=EWaK8cYuu82grq_CZtrIskXSYmLoojjHcGZKiep1Xto,2056
+triton/experimental/gluon/language/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/language/__pycache__/_core.cpython-310.pyc,,
+triton/experimental/gluon/language/__pycache__/_layouts.cpython-310.pyc,,
+triton/experimental/gluon/language/__pycache__/_math.cpython-310.pyc,,
+triton/experimental/gluon/language/__pycache__/_semantic.cpython-310.pyc,,
+triton/experimental/gluon/language/__pycache__/_standard.cpython-310.pyc,,
+triton/experimental/gluon/language/_core.py,sha256=rfN2Wi6cHc5YmL5Q6ZUQAfJARYSAcu6LEODopT_0jeA,19736
+triton/experimental/gluon/language/_layouts.py,sha256=mvf1zlM_ADn3TdUQS9atvRb0oGuxXq3ltwihI-l-P4w,24444
+triton/experimental/gluon/language/_math.py,sha256=MN9Fvt8FaQTpxEUCKhw83IGbkwBD2Whdp686av4vv04,564
+triton/experimental/gluon/language/_semantic.py,sha256=JGrIMOK0U_Og3NDDJJ4TJsB51Cuh49I47hzZ6GleQlk,28303
+triton/experimental/gluon/language/_standard.py,sha256=378S3ehrgIBfyhIHD4vzyaEf-3OIBNURMHgtQg4Oou8,2765
+triton/experimental/gluon/language/amd/__init__.py,sha256=80NUK1RoDQdRMbwJIqK79asQadcCI5rD2TlO3-H9F8o,220
+triton/experimental/gluon/language/amd/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/language/amd/__pycache__/_layouts.cpython-310.pyc,,
+triton/experimental/gluon/language/amd/__pycache__/_ops.cpython-310.pyc,,
+triton/experimental/gluon/language/amd/_layouts.py,sha256=i6S0zl-8ZpR6Ns6YKNPOiVPLB-FWwZr_QtQY2aDjgKs,7244
+triton/experimental/gluon/language/amd/_ops.py,sha256=l5PInTbyrBIp3IkGAoQj7IVLNz8fD6JAsq8936Q-2js,3373
+triton/experimental/gluon/language/amd/cdna3/__init__.py,sha256=DVt8NOVa6LY08fapFqrYoMNXYON90iVx_b9_8VVEx1o,10397
+triton/experimental/gluon/language/amd/cdna3/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/language/amd/cdna4/__init__.py,sha256=0e7PtofvZc1Ye5lXoCL-KdFez-TDbj5mtUue3ffH4os,5163
+triton/experimental/gluon/language/amd/cdna4/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/language/amd/cdna4/__pycache__/async_copy.cpython-310.pyc,,
+triton/experimental/gluon/language/amd/cdna4/async_copy.py,sha256=5U-g1PxqJAbYdv_YZZ3g0z8C94WkoZ35gPGqZCe6JJg,7994
+triton/experimental/gluon/language/amd/gfx1250/__init__.py,sha256=PXAxGE6lou0tKUS6zEA99x0eGPkJzHRaJg5cMDDB-j4,3622
+triton/experimental/gluon/language/amd/gfx1250/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/language/amd/gfx1250/__pycache__/async_copy.cpython-310.pyc,,
+triton/experimental/gluon/language/amd/gfx1250/__pycache__/mbarrier.cpython-310.pyc,,
+triton/experimental/gluon/language/amd/gfx1250/__pycache__/tdm.cpython-310.pyc,,
+triton/experimental/gluon/language/amd/gfx1250/async_copy.py,sha256=XiVdff5KahNi7vR0YJBRvA7wUhfo9kRttU_W9sA52B0,2589
+triton/experimental/gluon/language/amd/gfx1250/mbarrier.py,sha256=i1AbMgNiCdJDMJTI5iHtCRIECX0qD8g3s5c6jrqeCZg,2631
+triton/experimental/gluon/language/amd/gfx1250/tdm.py,sha256=MR55lnc_Am4kGTMFqYP8W6xy0sguTRUBjlKj9KjhaDQ,7383
+triton/experimental/gluon/language/amd/rdna3/__init__.py,sha256=J9a-Pw7Y86qewAvjahhG1UU3QDHKwOMVlSZeW0SiaIU,419
+triton/experimental/gluon/language/amd/rdna3/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/language/amd/rdna4/__init__.py,sha256=s5_7PQYh0m1YZN9NPr_eDYckIr-jrPDobsVl3DU9jJM,419
+triton/experimental/gluon/language/amd/rdna4/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/language/extra/__init__.py,sha256=FaDqvKRb8M8K47C3YceyfF3ZiZayLC8xZN248jNlxeQ,69
+triton/experimental/gluon/language/extra/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/language/nvidia/__init__.py,sha256=SFBuACK5P2XoYcutHEnKjqgRTboU4CPDmJz0hT6dFRQ,80
+triton/experimental/gluon/language/nvidia/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/language/nvidia/ampere/__init__.py,sha256=TZtb8V4yjN_ee7R5BPTbp7Qx7fPeYcaJBgl6EPlH0eU,1605
+triton/experimental/gluon/language/nvidia/ampere/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/language/nvidia/ampere/__pycache__/async_copy.cpython-310.pyc,,
+triton/experimental/gluon/language/nvidia/ampere/__pycache__/mbarrier.cpython-310.pyc,,
+triton/experimental/gluon/language/nvidia/ampere/async_copy.py,sha256=YfB0AN1hcEKWU2WTyef4ggWtp-HBnoSHJGoWhUTMmis,2817
+triton/experimental/gluon/language/nvidia/ampere/mbarrier.py,sha256=UznWgajIlkZzk3Jf0T_elJR9f8BUX-y2qJ1Ee_pqv7Q,2455
+triton/experimental/gluon/language/nvidia/blackwell/__init__.py,sha256=KlGdHEU7KugJ8xBwkACEUui4UKvqk9pKtMI0Wqp8VOI,17858
+triton/experimental/gluon/language/nvidia/blackwell/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/language/nvidia/blackwell/__pycache__/float2.cpython-310.pyc,,
+triton/experimental/gluon/language/nvidia/blackwell/__pycache__/tma.cpython-310.pyc,,
+triton/experimental/gluon/language/nvidia/blackwell/float2.py,sha256=WoFL-wMhsBTgHXyJhvjhbEOhF1NeiPdYOeardZGkWdM,3926
+triton/experimental/gluon/language/nvidia/blackwell/tma.py,sha256=wlBEA-dfP6zhz-5TBFTH9xVN0vePt2vlXEBj9z37d7g,2065
+triton/experimental/gluon/language/nvidia/hopper/__init__.py,sha256=6GVGQn67Di7YA5uH4Pu6iOS66S3P20fltFOKYvl4MZY,5369
+triton/experimental/gluon/language/nvidia/hopper/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/language/nvidia/hopper/__pycache__/mbarrier.cpython-310.pyc,,
+triton/experimental/gluon/language/nvidia/hopper/__pycache__/tma.cpython-310.pyc,,
+triton/experimental/gluon/language/nvidia/hopper/mbarrier.py,sha256=NF2dvXMKWzQ0mtWZQpCWKJKZzkINCZ24d8cKdqDT60Q,1339
+triton/experimental/gluon/language/nvidia/hopper/tma.py,sha256=QRIK0Gb_QI3Al0ra4chyTK8xFFCWBoEkYxQjDyI_Uxc,6463
+triton/experimental/gluon/nvidia/__init__.py,sha256=ISXB4RV7RcCLsU-JhcRFeA29gCBDVk8cTwO2j99ivLc,80
+triton/experimental/gluon/nvidia/__pycache__/__init__.cpython-310.pyc,,
+triton/experimental/gluon/nvidia/__pycache__/blackwell.cpython-310.pyc,,
+triton/experimental/gluon/nvidia/__pycache__/hopper.cpython-310.pyc,,
+triton/experimental/gluon/nvidia/blackwell.py,sha256=cllwlUCE5_YKWqySQZk7wt7Fierz345E5VwztxNRGMs,69
+triton/experimental/gluon/nvidia/hopper.py,sha256=sGuSjjCjuKaefhW-tBcyQZUNCum-7-7TwmG0gy0h8X8,1925
+triton/instrumentation/libGPUInstrumentationTestLib.so,sha256=0rA-19tttn3X5AQ92ztC1_Y1HsMijAAwrNmAGrRxn_M,6526160
+triton/instrumentation/libPrintLoadStoreMemSpaces.so,sha256=02KBRgFQRYYk4YV1ELLY1ijPec2DOLcuj_ABrjN8LgY,9017144
+triton/knobs.py,sha256=2EvaZk9zPwVH-fQ5fC2rEdofnFj5dKhAo_HGHqSMdvo,17262
+triton/language/__init__.py,sha256=WOurIQ31Sk6pYA0FbEnUNrKkPgIxO_OdmQ1sT9SSdyg,6986
+triton/language/__pycache__/__init__.cpython-310.pyc,,
+triton/language/__pycache__/core.cpython-310.pyc,,
+triton/language/__pycache__/math.cpython-310.pyc,,
+triton/language/__pycache__/random.cpython-310.pyc,,
+triton/language/__pycache__/semantic.cpython-310.pyc,,
+triton/language/__pycache__/standard.cpython-310.pyc,,
+triton/language/__pycache__/target_info.cpython-310.pyc,,
+triton/language/core.py,sha256=k5TGAHHqC7ymwpDESlo3G4tKAmg9Up3rw74EQB2T4Zg,123101
+triton/language/extra/__init__.py,sha256=XRXFvr7416pRsh_Rh-X6qV66SiEyVDVbxp4GSAE1mfc,655
+triton/language/extra/__pycache__/__init__.cpython-310.pyc,,
+triton/language/extra/__pycache__/libdevice.cpython-310.pyc,,
+triton/language/extra/cuda/__init__.py,sha256=MBBu2EUYxsp6ygjiwO4Yh1X1EswMstfaiRTMSMGtbcw,407
+triton/language/extra/cuda/__pycache__/__init__.cpython-310.pyc,,
+triton/language/extra/cuda/__pycache__/gdc.cpython-310.pyc,,
+triton/language/extra/cuda/__pycache__/libdevice.cpython-310.pyc,,
+triton/language/extra/cuda/__pycache__/utils.cpython-310.pyc,,
+triton/language/extra/cuda/gdc.py,sha256=rbVOcdD_w72sQ3-8l5KXafu-Tr0D5jYcY1fyok98WVQ,2193
+triton/language/extra/cuda/libdevice.py,sha256=J7Kl0ejbAIus7-YBn2OSK71lkm3pC7G1J-5ZdHfS82U,56764
+triton/language/extra/cuda/utils.py,sha256=phDcXCFViaq3p4ThwHrO8-FtU-8A8I3nk4mZZJVvTio,4426
+triton/language/extra/hip/__init__.py,sha256=GFcuM-R0qCB5kDbysvjD5U2KUmOGNWcWzM8r8yqDI3Y,96
+triton/language/extra/hip/__pycache__/__init__.cpython-310.pyc,,
+triton/language/extra/hip/__pycache__/libdevice.cpython-310.pyc,,
+triton/language/extra/hip/__pycache__/utils.cpython-310.pyc,,
+triton/language/extra/hip/libdevice.py,sha256=LNynTEKXgE3PSZp-nUMVq4ft_i1y9Tao_cAvKKPn2s0,17542
+triton/language/extra/hip/utils.py,sha256=tTq-k0c-s32IvDeGkgZcmosb9UtkF8sZEaE9EJGMbSA,877
+triton/language/extra/libdevice.py,sha256=9gwrstjuvhwZH0uLgZhEQU3RvOJDZFY1oJT5-SZlpY4,6350
+triton/language/math.py,sha256=CKvuIc5iMKhz7Qgx9w-VcLfOOZadv5svKK4aGZLuHMc,7399
+triton/language/random.py,sha256=9EpDURuXQg6CQ4dG0XMNtq6jEmGQMgd2h_s2_-I3J7o,7116
+triton/language/semantic.py,sha256=vjQp9tBpoi3cLKBI2A4WFt-F3lGksOHiDjBUJkpY8fg,101212
+triton/language/standard.py,sha256=Gip7Fwb-mWWd2Gsp1jl9YD19DP70-Cf-kCpJRyjM3cE,16041
+triton/language/target_info.py,sha256=UwWJDDsTPe9E4vPTQF4Psf1s540KKLISdnChlbvhHGY,1364
+triton/profiler/__init__.py,sha256=b0XtXi8lPkxUEhD9DHkS9Rzi2JvWj57RbakLGui1jA8,284
+triton/profiler/__pycache__/__init__.cpython-310.pyc,,
+triton/profiler/__pycache__/context.cpython-310.pyc,,
+triton/profiler/__pycache__/flags.cpython-310.pyc,,
+triton/profiler/__pycache__/language.cpython-310.pyc,,
+triton/profiler/__pycache__/mode.cpython-310.pyc,,
+triton/profiler/__pycache__/profile.cpython-310.pyc,,
+triton/profiler/__pycache__/proton.cpython-310.pyc,,
+triton/profiler/__pycache__/scope.cpython-310.pyc,,
+triton/profiler/__pycache__/specs.cpython-310.pyc,,
+triton/profiler/__pycache__/state.cpython-310.pyc,,
+triton/profiler/__pycache__/viewer.cpython-310.pyc,,
+triton/profiler/context.py,sha256=JGQ1C2bPwpPvva3eITd8RxEgWcmvAkxAuB1mlKz9Jo0,506
+triton/profiler/flags.py,sha256=5GBc3Oi-d9mWY0Sq3hAadARmv4TDNtAZ64hTO5vkoag,663
+triton/profiler/hooks/__init__.py,sha256=qwb8ypLQ0oOFA3h9M3RtU1OhJR_wd2EZTKJ2pFNHeuo,123
+triton/profiler/hooks/__pycache__/__init__.cpython-310.pyc,,
+triton/profiler/hooks/__pycache__/hook.cpython-310.pyc,,
+triton/profiler/hooks/__pycache__/instrumentation.cpython-310.pyc,,
+triton/profiler/hooks/__pycache__/launch.cpython-310.pyc,,
+triton/profiler/hooks/hook.py,sha256=7x5SI016VKj5a8t3LsO8tnFRR8OVN-p8E0aE_6VQnlo,4793
+triton/profiler/hooks/instrumentation.py,sha256=2oYy9FXGU478a0zVxWWcU9ZSuIVzDfLA5JyIg0_HJOU,14849
+triton/profiler/hooks/launch.py,sha256=PTKrBs85fGT-19soqcPg0DtefAYEi95T8BCEXdktOQU,1493
+triton/profiler/language.py,sha256=u3JSs5YHQOS2uBZ-jEb2yDEo6iyuLmkTZKgLQlyOvl4,2116
+triton/profiler/mode.py,sha256=-7P8jeG7SiEUOmBuAfQWv3nzTvmsHJBvgYUh-FJXD4Y,4367
+triton/profiler/profile.py,sha256=wYXUmmEVpUEjdtdDWyp4r3FUnjjsx7Gz3m1eRxO6Jsg,8823
+triton/profiler/proton.py,sha256=9SI06y225SFh-VrPwfDoU2B78Cy4GpWe1vGlMDOY32Y,3086
+triton/profiler/scope.py,sha256=3GrGLominS6TjdfAJJyc1Gqgo0Nh--A0avskGDxwmls,3831
+triton/profiler/specs.py,sha256=3v554WIsHHREMFxofDSMEQz18i0g0W_MJZKh6Op3nqM,2341
+triton/profiler/state.py,sha256=SyXdwGYvKdpAOfFpW3OU0MVklnhPXHAX9yoIbvb26wA,1335
+triton/profiler/viewer.py,sha256=zvnpPQbUfKyfyYDqr7wKKLgFAVJhSswxqHE_W_taK0s,18191
+triton/runtime/__init__.py,sha256=mKL5cqIBDUw2WO80NRCh4s1G8KYaqgM59TTAbTkPPjQ,621
+triton/runtime/__pycache__/__init__.cpython-310.pyc,,
+triton/runtime/__pycache__/_allocation.cpython-310.pyc,,
+triton/runtime/__pycache__/_async_compile.cpython-310.pyc,,
+triton/runtime/__pycache__/autotuner.cpython-310.pyc,,
+triton/runtime/__pycache__/build.cpython-310.pyc,,
+triton/runtime/__pycache__/cache.cpython-310.pyc,,
+triton/runtime/__pycache__/driver.cpython-310.pyc,,
+triton/runtime/__pycache__/errors.cpython-310.pyc,,
+triton/runtime/__pycache__/interpreter.cpython-310.pyc,,
+triton/runtime/__pycache__/jit.cpython-310.pyc,,
+triton/runtime/_allocation.py,sha256=XnujNofa5UAFq5D7r0APY6sOf9dDekoKSD7h14NohCk,1846
+triton/runtime/_async_compile.py,sha256=JwPgzz-ofKn8TaNfMhR1agnCyDk_w27hzC-n63qsHRw,1953
+triton/runtime/autotuner.py,sha256=QPXhQoBiGZQlhaFnQunzch1b_viBRbVxzzifmuxkYLs,20692
+triton/runtime/build.py,sha256=Jsbd1NujU0zlR5DxLSt1cp9R5GfEiy90DdYrfHWoWzk,3928
+triton/runtime/cache.py,sha256=A1XD40UvpFABIiRLj_-IZPIrwFxBej1vXa2p8ukvgEA,11041
+triton/runtime/driver.py,sha256=2qxsJH3SFxYDSIffj2wXMGSviEatUQLkHFcmVboeK-A,1025
+triton/runtime/errors.py,sha256=oM0HonEnBlnOx8e8XZidoAVQZ2Pg_YrA1NmIXAQxf6g,1325
+triton/runtime/interpreter.py,sha256=PLbtL9oHDkshHy_2X93vhCKHvzIaYeiHTryT9sVwyVM,65073
+triton/runtime/jit.py,sha256=C3A1jZAa_XCTejRKeBHkorzRDtyop8JB5HhC3JrGYMg,41084
+triton/testing.py,sha256=ROP657TMQbTbO4tBpPCoGNf-nQNs_k4PTwgDanXqr-Q,20476
+triton/tools/__init__.py,sha256=N18MiJ8bxNa1Odq3YjYSAFtAV35Vs4R87c2O8QwCamM,59
+triton/tools/__pycache__/__init__.cpython-310.pyc,,
+triton/tools/__pycache__/build_extern.cpython-310.pyc,,
+triton/tools/__pycache__/compile.cpython-310.pyc,,
+triton/tools/__pycache__/disasm.cpython-310.pyc,,
+triton/tools/__pycache__/link.cpython-310.pyc,,
+triton/tools/__pycache__/mxfp.cpython-310.pyc,,
+triton/tools/__pycache__/ragged_tma.cpython-310.pyc,,
+triton/tools/__pycache__/tensor_descriptor.cpython-310.pyc,,
+triton/tools/build_extern.py,sha256=jCr-2hu3nLGBIJhCGUQ1jAyzLttughjkiPGEwRFjLR0,13673
+triton/tools/compile.py,sha256=WpJ8HZlDaR3OGvrT3XSFlGdUyInd4g9EqsL2rXBGZ-Y,8786
+triton/tools/disasm.py,sha256=T9jiTkdK_0nI3R_4uea0zvfioYdcR-zIZwTfuucgw6g,5026
+triton/tools/extra/cuda/compile.c,sha256=F3K725kTI03oATPBdRbSnGHpOo11fGbE1aOelPTcRD8,2172
+triton/tools/extra/cuda/compile.h,sha256=n9QKIFZTL4RSsiXtAxBP9XGSnxjyaevQQ9bBpwDsvAg,332
+triton/tools/extra/hip/compile.cpp,sha256=IGdoA-52Nrk4S87Va6WJOIIi7G_4lhWZ6yjq8wkgG7k,1862
+triton/tools/extra/hip/compile.h,sha256=BIRh2lo4kKXWcsomk89DKx3sY3_XLMGoCyJ5HYvl3GU,348
+triton/tools/link.py,sha256=u7qtfZRLriZkAMEGNvj8YF-k1cthmLL7BwHYqBgT63E,11871
+triton/tools/mxfp.py,sha256=YQdpBrGkOVNOtnLeRjMCeVFHWkSwUubGeWsItIjO8TU,11737
+triton/tools/ragged_tma.py,sha256=KXiAhMTmyEclFHoUa92yQWdfHLYd1c8HyG1JTIZnEGM,3782
+triton/tools/tensor_descriptor.py,sha256=1uA6pZF8j7W0BLXcv4KOfSdh7BLY_7VN5Kk3XGG2vlM,1562
+triton/tools/triton_to_gluon_translater/__pycache__/translator.cpython-310.pyc,,
+triton/tools/triton_to_gluon_translater/__pycache__/translator_helpers.cpython-310.pyc,,
+triton/tools/triton_to_gluon_translater/translator.py,sha256=YQeCu6pROgo9m7ONdl5XSSrrJ0atzGQCC603vjlmHog,19912
+triton/tools/triton_to_gluon_translater/translator_helpers.py,sha256=Hc1lUVwnyOtgdPziBLb9ybxNvVnB8pkGpEHvREQQs7w,26428
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/WHEEL b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/WHEEL
new file mode 100644
index 0000000000000000000000000000000000000000..12e67ca29ff180ca4133d9ec4769226edb266ce4
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/WHEEL
@@ -0,0 +1,6 @@
+Wheel-Version: 1.0
+Generator: setuptools (80.9.0)
+Root-Is-Purelib: false
+Tag: cp310-cp310-manylinux_2_27_x86_64
+Tag: cp310-cp310-manylinux_2_28_x86_64
+
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/entry_points.txt b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/entry_points.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d8d06486be664b9cd4a7e4e0fddbc18703fed64a
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/entry_points.txt
@@ -0,0 +1,7 @@
+[console_scripts]
+proton = triton.profiler.proton:main
+proton-viewer = triton.profiler.viewer:main
+
+[triton.backends]
+amd = triton.backends.amd
+nvidia = triton.backends.nvidia
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/licenses/LICENSE b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/licenses/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..1d0238e86b1b43e123c9eb136eb0b2c0e1658d63
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/licenses/LICENSE
@@ -0,0 +1,23 @@
+/*
+* Copyright 2018-2020 Philippe Tillet
+* Copyright 2020-2022 OpenAI
+*
+* Permission is hereby granted, free of charge, to any person obtaining
+* a copy of this software and associated documentation files
+* (the "Software"), to deal in the Software without restriction,
+* including without limitation the rights to use, copy, modify, merge,
+* publish, distribute, sublicense, and/or sell copies of the Software,
+* and to permit persons to whom the Software is furnished to do so,
+* subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be
+* included in all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+*/
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/top_level.txt b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/top_level.txt
new file mode 100644
index 0000000000000000000000000000000000000000..a59a965090a6473278f0cf9e7fd1d3cb9cb385c9
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton-3.6.0.dist-info/top_level.txt
@@ -0,0 +1 @@
+triton
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/device_double_functions.hpp b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/device_double_functions.hpp
new file mode 100644
index 0000000000000000000000000000000000000000..f63063689d65c4a1dffb9a823ddaf6a5b353cba3
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/device_double_functions.hpp
@@ -0,0 +1,197 @@
+/*
+ * Copyright 1993-2017 NVIDIA Corporation. All rights reserved.
+ *
+ * NOTICE TO LICENSEE:
+ *
+ * This source code and/or documentation ("Licensed Deliverables") are
+ * subject to NVIDIA intellectual property rights under U.S. and
+ * international Copyright laws.
+ *
+ * These Licensed Deliverables contained herein is PROPRIETARY and
+ * CONFIDENTIAL to NVIDIA and is being provided under the terms and
+ * conditions of a form of NVIDIA software license agreement by and
+ * between NVIDIA and Licensee ("License Agreement") or electronically
+ * accepted by Licensee. Notwithstanding any terms or conditions to
+ * the contrary in the License Agreement, reproduction or disclosure
+ * of the Licensed Deliverables to any third party without the express
+ * written consent of NVIDIA is prohibited.
+ *
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
+ * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
+ * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
+ * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
+ * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
+ * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
+ * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
+ * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+ * OF THESE LICENSED DELIVERABLES.
+ *
+ * U.S. Government End Users. These Licensed Deliverables are a
+ * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
+ * 1995), consisting of "commercial computer software" and "commercial
+ * computer software documentation" as such terms are used in 48
+ * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
+ * only as a commercial end item. Consistent with 48 C.F.R.12.212 and
+ * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
+ * U.S. Government End Users acquire the Licensed Deliverables with
+ * only those rights set forth herein.
+ *
+ * Any use of the Licensed Deliverables in individual and commercial
+ * software must include, in the user documentation and internal
+ * comments to the code, the above Disclaimer and U.S. Government End
+ * Users Notice.
+ */
+
+#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
+#if defined(_MSC_VER)
+#pragma message("crt/device_double_functions.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
+#else
+#warning "crt/device_double_functions.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
+#endif
+#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_DOUBLE_FUNCTIONS_HPP__
+#endif
+
+#if !defined(__DEVICE_DOUBLE_FUNCTIONS_HPP__)
+#define __DEVICE_DOUBLE_FUNCTIONS_HPP__
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#if defined(__cplusplus) && defined(__CUDACC__)
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#if defined(__CUDACC_RTC__)
+#define __DEVICE_DOUBLE_FUNCTIONS_DECL__ __device__
+#else
+#define __DEVICE_DOUBLE_FUNCTIONS_DECL__ static __inline__ __device__
+#endif /* __CUDACC_RTC__ */
+
+#include "builtin_types.h"
+#include "device_types.h"
+#include "host_defines.h"
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+__DEVICE_DOUBLE_FUNCTIONS_DECL__ double fma(double a, double b, double c, enum cudaRoundMode mode)
+{
+ return mode == cudaRoundZero ? __fma_rz(a, b, c) :
+ mode == cudaRoundPosInf ? __fma_ru(a, b, c) :
+ mode == cudaRoundMinInf ? __fma_rd(a, b, c) :
+ __fma_rn(a, b, c);
+}
+
+__DEVICE_DOUBLE_FUNCTIONS_DECL__ double dmul(double a, double b, enum cudaRoundMode mode)
+{
+ return mode == cudaRoundZero ? __dmul_rz(a, b) :
+ mode == cudaRoundPosInf ? __dmul_ru(a, b) :
+ mode == cudaRoundMinInf ? __dmul_rd(a, b) :
+ __dmul_rn(a, b);
+}
+
+__DEVICE_DOUBLE_FUNCTIONS_DECL__ double dadd(double a, double b, enum cudaRoundMode mode)
+{
+ return mode == cudaRoundZero ? __dadd_rz(a, b) :
+ mode == cudaRoundPosInf ? __dadd_ru(a, b) :
+ mode == cudaRoundMinInf ? __dadd_rd(a, b) :
+ __dadd_rn(a, b);
+}
+
+__DEVICE_DOUBLE_FUNCTIONS_DECL__ double dsub(double a, double b, enum cudaRoundMode mode)
+{
+ return mode == cudaRoundZero ? __dsub_rz(a, b) :
+ mode == cudaRoundPosInf ? __dsub_ru(a, b) :
+ mode == cudaRoundMinInf ? __dsub_rd(a, b) :
+ __dsub_rn(a, b);
+}
+
+__DEVICE_DOUBLE_FUNCTIONS_DECL__ int double2int(double a, enum cudaRoundMode mode)
+{
+ return mode == cudaRoundNearest ? __double2int_rn(a) :
+ mode == cudaRoundPosInf ? __double2int_ru(a) :
+ mode == cudaRoundMinInf ? __double2int_rd(a) :
+ __double2int_rz(a);
+}
+
+__DEVICE_DOUBLE_FUNCTIONS_DECL__ unsigned int double2uint(double a, enum cudaRoundMode mode)
+{
+ return mode == cudaRoundNearest ? __double2uint_rn(a) :
+ mode == cudaRoundPosInf ? __double2uint_ru(a) :
+ mode == cudaRoundMinInf ? __double2uint_rd(a) :
+ __double2uint_rz(a);
+}
+
+__DEVICE_DOUBLE_FUNCTIONS_DECL__ long long int double2ll(double a, enum cudaRoundMode mode)
+{
+ return mode == cudaRoundNearest ? __double2ll_rn(a) :
+ mode == cudaRoundPosInf ? __double2ll_ru(a) :
+ mode == cudaRoundMinInf ? __double2ll_rd(a) :
+ __double2ll_rz(a);
+}
+
+__DEVICE_DOUBLE_FUNCTIONS_DECL__ unsigned long long int double2ull(double a, enum cudaRoundMode mode)
+{
+ return mode == cudaRoundNearest ? __double2ull_rn(a) :
+ mode == cudaRoundPosInf ? __double2ull_ru(a) :
+ mode == cudaRoundMinInf ? __double2ull_rd(a) :
+ __double2ull_rz(a);
+}
+
+__DEVICE_DOUBLE_FUNCTIONS_DECL__ double ll2double(long long int a, enum cudaRoundMode mode)
+{
+ return mode == cudaRoundZero ? __ll2double_rz(a) :
+ mode == cudaRoundPosInf ? __ll2double_ru(a) :
+ mode == cudaRoundMinInf ? __ll2double_rd(a) :
+ __ll2double_rn(a);
+}
+
+__DEVICE_DOUBLE_FUNCTIONS_DECL__ double ull2double(unsigned long long int a, enum cudaRoundMode mode)
+{
+ return mode == cudaRoundZero ? __ull2double_rz(a) :
+ mode == cudaRoundPosInf ? __ull2double_ru(a) :
+ mode == cudaRoundMinInf ? __ull2double_rd(a) :
+ __ull2double_rn(a);
+}
+
+__DEVICE_DOUBLE_FUNCTIONS_DECL__ double int2double(int a, enum cudaRoundMode mode)
+{
+ return (double)a;
+}
+
+__DEVICE_DOUBLE_FUNCTIONS_DECL__ double uint2double(unsigned int a, enum cudaRoundMode mode)
+{
+ return (double)a;
+}
+
+__DEVICE_DOUBLE_FUNCTIONS_DECL__ double float2double(float a, enum cudaRoundMode mode)
+{
+ return (double)a;
+}
+
+#undef __DEVICE_DOUBLE_FUNCTIONS_DECL__
+
+#endif /* __cplusplus && __CUDACC__ */
+
+#endif /* !__DEVICE_DOUBLE_FUNCTIONS_HPP__ */
+
+#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_DOUBLE_FUNCTIONS_HPP__)
+#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_DOUBLE_FUNCTIONS_HPP__
+#endif
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/device_fp128_functions.h b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/device_fp128_functions.h
new file mode 100644
index 0000000000000000000000000000000000000000..715220e121f790ab8ff2aeaed25620fe9759236f
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/device_fp128_functions.h
@@ -0,0 +1,1217 @@
+/*
+ * Copyright 2024 NVIDIA Corporation. All rights reserved.
+ *
+ * NOTICE TO LICENSEE:
+ *
+ * This source code and/or documentation ("Licensed Deliverables") are
+ * subject to NVIDIA intellectual property rights under U.S. and
+ * international Copyright laws.
+ *
+ * These Licensed Deliverables contained herein is PROPRIETARY and
+ * CONFIDENTIAL to NVIDIA and is being provided under the terms and
+ * conditions of a form of NVIDIA software license agreement by and
+ * between NVIDIA and Licensee ("License Agreement") or electronically
+ * accepted by Licensee. Notwithstanding any terms or conditions to
+ * the contrary in the License Agreement, reproduction or disclosure
+ * of the Licensed Deliverables to any third party without the express
+ * written consent of NVIDIA is prohibited.
+ *
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
+ * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
+ * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
+ * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
+ * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
+ * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
+ * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
+ * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+ * OF THESE LICENSED DELIVERABLES.
+ *
+ * U.S. Government End Users. These Licensed Deliverables are a
+ * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
+ * 1995), consisting of "commercial computer software" and "commercial
+ * computer software documentation" as such terms are used in 48
+ * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
+ * only as a commercial end item. Consistent with 48 C.F.R.12.212 and
+ * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
+ * U.S. Government End Users acquire the Licensed Deliverables with
+ * only those rights set forth herein.
+ *
+ * Any use of the Licensed Deliverables in individual and commercial
+ * software must include, in the user documentation and internal
+ * comments to the code, the above Disclaimer and U.S. Government End
+ * Users Notice.
+ */
+
+// to easily switch off fp128 device functions if needed
+#ifndef __NV_DISABLE_DEVICE_FP128_FUNCTIONS__
+
+#if !defined(__DEVICE_FP128_FUNCTIONS_H__)
+#define __DEVICE_FP128_FUNCTIONS_H__
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#if defined(__cplusplus) && defined(__CUDACC__)
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#include "builtin_types.h"
+#include "device_types.h"
+
+#if !defined(__CUDA_ARCH__) && !defined(_NVHPC_CUDA)
+#define __DEF_IF_HOST { }
+#define __INLINE_IF_HOST__ __inline__
+#else /* !__CUDA_ARCH__ */
+#define __DEF_IF_HOST ;
+#define __INLINE_IF_HOST__
+#endif /* __CUDA_ARCH__ */
+
+#define __DEVICE_FP128_FUNCTIONS_DECL__ __device__ __cudart_builtin__ __INLINE_IF_HOST__
+
+/*******************************************************************************
+* *
+* Support for __float128 on: *
+* - NVRTC on Linux *
+* - GCC version 4.1 or later on x86_64/amd64 *
+* - Clang version 3.9 or later on x86_64/amd64 *
+* - NVHPC version 21.1 or later on x86_64/amd64 *
+* *
+*******************************************************************************/
+#if defined(__CUDACC_RTC__)
+#if !_WIN64
+#define __FLOAT128_CPP_SPELLING_ENABLED__
+#endif
+#else /* !__CUDACC_RTC__ */
+
+#if (defined __NVCOMPILER_MAJOR__)
+ #if (defined(__x86_64__) || defined(__amd64__)) && \
+ ((__NVCOMPILER_MAJOR__ > 21) || \
+ (__NVCOMPILER_MAJOR__ == 21 && __NVCOMPILER_MINOR__ >= 1))
+ #define __FLOAT128_CPP_SPELLING_ENABLED__
+ #endif
+#elif defined(__clang__)
+ #if (defined(__x86_64__) || defined(__amd64__)) && \
+ ((__clang_major__ > 3) || \
+ (__clang_major__ == 3 && __clang_minor__ >= 9))
+ #define __FLOAT128_CPP_SPELLING_ENABLED__
+ #endif
+#elif defined(__GNUC__)
+ // check gcc version if no other host compiler is used
+ #if (defined(__x86_64__) || defined(__amd64__)) && \
+ ((__GNUC__ > 4) || \
+ (__GNUC__ == 4 && __GNUC_MINOR__ >= 1))
+ #define __FLOAT128_CPP_SPELLING_ENABLED__
+ #endif
+#endif /* (defined __NVCOMPILER_MAJOR__) */
+
+#endif /* !__CUDACC_RTC__ */
+
+/*******************************************************************************
+* *
+* Support for _Float128 on: *
+* - GCC version 13.1 or later on x86_64/amd64/aarch64 *
+* *
+*******************************************************************************/
+#if defined(__GNUC__) && !defined(__clang__) && !defined(__NVCOMPILER_MAJOR__)
+ // check gcc version if no other host compiler is used
+ #if (defined(__x86_64__) || defined(__amd64__) || defined(__aarch64__)) && \
+ ((__GNUC__ > 13) || \
+ (__GNUC__ == 13 && __GNUC_MINOR__ >= 1))
+ #define __FLOAT128_C_SPELLING_ENABLED__
+ #endif
+#endif /* defined(__GNUC__) && !defined(__clang__) && !defined(__NVCOMPILER_MAJOR__) */
+
+/**
+ * \defgroup CUDA_MATH_QUAD FP128 Quad Precision Mathematical Functions
+ * This section describes quad precision mathematical functions.
+ * To use these functions, include the header file \p device_fp128_functions.h in your program.
+ *
+ * Functions declared here have \p __nv_fp128_ prefix to distinguish them
+ * from other global namespace symbols.
+ *
+ * Note that FP128 CUDA Math functions are only available to device programs
+ * on platforms where host compiler supports the basic quad precision datatype
+ * \p __float128 or \p _Float128.
+ *
+ * Every FP128 CUDA Math function name is overloaded to support either of these
+ * host-compiler-specific types, whenever the types are available. See for example:
+ * \code
+ * #ifdef __FLOAT128_CPP_SPELLING_ENABLED__
+ * __float128 __nv_fp128_sqrt(__float128 x);
+ * #endif
+ * #ifdef __FLOAT128_C_SPELLING_ENABLED__
+ * _Float128 __nv_fp128_sqrt(_Float128 x);
+ * #endif
+ * \endcode
+ *
+ * \note_fp128_target_arch
+ */
+
+#ifdef __FLOAT128_CPP_SPELLING_ENABLED__
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \sqrt{x} \end_cuda_math_formula, the square root of the input argument.
+ *
+ * \return
+ * \cuda_math_formula \sqrt{x} \end_cuda_math_formula.
+ * - __nv_fp128_sqrt(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_sqrt(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __nv_fp128_sqrt(\p x) returns NaN if \p x is less than 0.
+ * - __nv_fp128_sqrt(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_sqrt(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \sin{x} \end_cuda_math_formula, the sine of input argument (measured in radians).
+ *
+ * \return
+ * \cuda_math_formula \sin{x} \end_cuda_math_formula.
+ * - __nv_fp128_sin(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_sin(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns NaN.
+ * - __nv_fp128_sin(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_sin(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \cos{x} \end_cuda_math_formula, the cosine of input argument (measured in radians).
+ *
+ * \return
+ * \cuda_math_formula \cos{x} \end_cuda_math_formula.
+ * - __nv_fp128_cos(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula 1 \end_cuda_math_formula.
+ * - __nv_fp128_cos(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns NaN.
+ * - __nv_fp128_cos(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_cos(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \tan{x} \end_cuda_math_formula, the tangent of input argument (measured in radians).
+ *
+ * \return
+ * \cuda_math_formula \tan{x} \end_cuda_math_formula.
+ * - __nv_fp128_tan(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_tan(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns NaN.
+ * - __nv_fp128_tan(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_tan(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \sin^{-1}{x} \end_cuda_math_formula, the arc sine of input argument.
+ *
+ * \return
+ * The principal value of the arc sine of the input argument \p x.
+ * Result will be in radians, in the interval [-
+ * \cuda_math_formula \pi/2 \end_cuda_math_formula
+ * , +
+ * \cuda_math_formula \pi/2 \end_cuda_math_formula
+ * ] for \p x inside [-1, +1].
+ * - __nv_fp128_asin(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_asin(\p x) returns NaN for \p x outside [-1, +1].
+ * - __nv_fp128_asin(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_asin(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \cos^{-1}{x} \end_cuda_math_formula, the arc cosine of input argument.
+ *
+ * \return
+ * The principal value of the arc cosine of the input argument \p x.
+ * Result will be in radians, in the interval [0,
+ * \cuda_math_formula \pi \end_cuda_math_formula
+ * ] for \p x inside [-1, +1].
+ * - __nv_fp128_acos(1) returns +0.
+ * - __nv_fp128_acos(\p x) returns NaN for \p x outside [-1, +1].
+ * - __nv_fp128_acos(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_acos(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \tan^{-1}{x} \end_cuda_math_formula, the arc tangent of input argument.
+ *
+ * \return
+ * The principal value of the arc tangent of the input argument \p x.
+ * Result will be in radians, in the interval [-
+ * \cuda_math_formula \pi/2 \end_cuda_math_formula
+ * , +
+ * \cuda_math_formula \pi/2 \end_cuda_math_formula
+ * ].
+ * - __nv_fp128_atan(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_atan(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \pi \end_cuda_math_formula
+ * /2.
+ * - __nv_fp128_atan(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_atan(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula e^x \end_cuda_math_formula, the base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * exponential of the input argument.
+ *
+ * \return
+ * - __nv_fp128_exp(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - __nv_fp128_exp(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - __nv_fp128_exp(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __nv_fp128_exp(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_exp(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula 2^x \end_cuda_math_formula, the base 2 exponential of the input argument.
+ *
+ * \return
+ * - __nv_fp128_exp2(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - ex__nv_fp128_exp2p2f(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - __nv_fp128_exp2(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __nv_fp128_exp2(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_exp2(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula 10^x \end_cuda_math_formula, the base 10 exponential of the input argument.
+ *
+ * \return
+ * - __nv_fp128_exp10(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - __nv_fp128_exp10(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - __nv_fp128_exp10(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __nv_fp128_exp10(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_exp10(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate
+ * \cuda_math_formula e^x - 1 \end_cuda_math_formula,
+ * the base e exponential of the input argument, minus 1.
+ *
+ * \return
+ * - __nv_fp128_expm1(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_expm1(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns -1.
+ * - __nv_fp128_expm1(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __nv_fp128_expm1(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_expm1(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \log_{e}{x} \end_cuda_math_formula, the base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * logarithm of the input argument.
+ *
+ * \return
+ * - __nv_fp128_log(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - __nv_fp128_log(1) returns +0.
+ * - __nv_fp128_log(\p x) returns NaN for \p x < 0.
+ * - __nv_fp128_log(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __nv_fp128_log(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_log(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \log_{2}{x} \end_cuda_math_formula, the base 2 logarithm of the input argument.
+ *
+ * \return
+ * - __nv_fp128_log2(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - __nv_fp128_log2(1) returns +0.
+ * - __nv_fp128_log2(\p x) returns NaN for \p x < 0.
+ * - __nv_fp128_log2(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __nv_fp128_log2(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_log2(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \log_{10}{x} \end_cuda_math_formula, the base 10 logarithm of the input argument.
+ *
+ * \return
+ * - __nv_fp128_log10(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - __nv_fp128_log10(1) returns +0.
+ * - __nv_fp128_log10(\p x) returns NaN for \p x < 0.
+ * - __nv_fp128_log10(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __nv_fp128_log10(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_log10(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate the value of
+ * \cuda_math_formula \log_{e}(1+x) \end_cuda_math_formula.
+ *
+ * \return
+ * - __nv_fp128_log1p(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_log1p(-1) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - __nv_fp128_log1p(\p x) returns NaN for \p x < -1.
+ * - __nv_fp128_log1p(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __nv_fp128_log1p(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_log1p(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate the value of \cuda_math_formula x^{y} \end_cuda_math_formula, first argument to the power of second argument.
+ *
+ * \return
+ * - __nv_fp128_pow(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * for \p y an odd integer less than 0.
+ * - __nv_fp128_pow(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * for \p y less than 0 and not an odd integer.
+ * - __nv_fp128_pow(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * for \p y an odd integer greater than 0.
+ * - __nv_fp128_pow(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p y) returns +0 for \p y > 0 and not an odd integer.
+ * - __nv_fp128_pow(-1,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns 1.
+ * - __nv_fp128_pow(+1, \p y) returns 1 for any \p y, even a NaN.
+ * - __nv_fp128_pow(\p x,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1 for any \p x, even a NaN.
+ * - __nv_fp128_pow(\p x, \p y) returns a NaN for finite \p x < 0 and finite non-integer \p y.
+ * - __nv_fp128_pow(\p x,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * for
+ * \cuda_math_formula | x | < 1 \end_cuda_math_formula.
+ * - __nv_fp128_pow(\p x,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns +0 for
+ * \cuda_math_formula | x | > 1 \end_cuda_math_formula.
+ * - __nv_fp128_pow(\p x,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0 for
+ * \cuda_math_formula | x | < 1 \end_cuda_math_formula.
+ * - __nv_fp128_pow(\p x,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * for
+ * \cuda_math_formula | x | > 1 \end_cuda_math_formula.
+ * - __nv_fp128_pow(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * , \p y) returns -0 for \p y an odd integer less than 0.
+ * - __nv_fp128_pow(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * , \p y) returns +0 for \p y < 0 and not an odd integer.
+ * - __nv_fp128_pow(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * for \p y an odd integer greater than 0.
+ * - __nv_fp128_pow(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * for \p y > 0 and not an odd integer.
+ * - __nv_fp128_pow(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * , \p y) returns +0 for \p y < 0.
+ * - __nv_fp128_pow(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * for \p y > 0.
+ * - __nv_fp128_pow(\p x, \p y) returns NaN if either \p x or \p y or both are NaN and \p x \cuda_math_formula \neq \end_cuda_math_formula +1 and \p y \cuda_math_formula \neq\pm 0 \end_cuda_math_formula.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_pow(__float128 x, __float128 y) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \sinh{x} \end_cuda_math_formula, the hyperbolic sine of the input argument.
+ *
+ * Calculate \cuda_math_formula \sinh{x} \end_cuda_math_formula, the hyperbolic sine of the input argument \p x.
+ *
+ * \return
+ * - __nv_fp128_sinhinh(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_sinh(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - __nv_fp128_sinh(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_sinh(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \cosh{x} \end_cuda_math_formula, the hyperbolic cosine of the input argument.
+ *
+ * \return
+ * - __nv_fp128_cosh(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - __nv_fp128_cosh(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __nv_fp128_cosh(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_cosh(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \tanh{x} \end_cuda_math_formula, the hyperbolic tangent of the input argument.
+ *
+ * \return
+ * - __nv_fp128_tanh(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_tanh(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 1 \end_cuda_math_formula.
+ * - __nv_fp128_tanh(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_tanh(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \sinh^{-1}{x} \end_cuda_math_formula, the inverse hyperbolic sine of the input argument.
+ *
+ * \return
+ * - __nv_fp128_asinh(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_asinh(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - __nv_fp128_asinh(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_asinh(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \cosh^{-1}{x} \end_cuda_math_formula, the nonnegative inverse hyperbolic cosine of the input argument.
+ *
+ * \return
+ * Result will be in the interval [0,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ].
+ * - __nv_fp128_acosh(1) returns 0.
+ * - __nv_fp128_acosh(\p x) returns NaN for \p x in the interval [
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * , 1).
+ * - __nv_fp128_acosh(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __nv_fp128_acosh(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_acosh(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \tanh^{-1}{x} \end_cuda_math_formula, the inverse hyperbolic tangent of the input argument.
+ *
+ * \return
+ * - __nv_fp128_atanh(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_atanh(
+ * \cuda_math_formula \pm 1 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - __nv_fp128_atanh(\p x) returns NaN for \p x outside interval [-1, 1].
+ * - __nv_fp128_atanh(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_atanh(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Truncate input argument to the integral part.
+ *
+ * \return
+ * Rounded \p x to the nearest integer value in floating-point format, that does not exceed \p x in
+ * magnitude.
+ * - __nv_fp128_trunc(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_trunc(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - __nv_fp128_trunc(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_trunc(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \lfloor x \rfloor \end_cuda_math_formula, the largest integer less than or equal to \p x.
+ *
+ * \return
+ * \cuda_math_formula \lfloor x \rfloor \end_cuda_math_formula
+ * expressed as a floating-point number.
+ * - __nv_fp128_floor(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - __nv_fp128_floor(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_floor(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_floor(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \lceil x \rceil \end_cuda_math_formula, the smallest integer greater than or equal to \p x.
+ *
+ * \return
+ * \cuda_math_formula \lceil x \rceil \end_cuda_math_formula
+ * expressed as a floating-point number.
+ * - __nv_fp128_ceil(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - __nv_fp128_ceil(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_ceil(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_ceil(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Round to nearest integer value in floating-point format,
+ * with halfway cases rounded away from zero.
+ *
+ * \return
+ * - __nv_fp128_round(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_round(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - __nv_fp128_round(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_round(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Round to nearest integer value in floating-point format,
+ * with halfway cases rounded to the nearest even integer value.
+ *
+ * \return
+ * - __nv_fp128_rint(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_rint(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - __nv_fp128_rint(NaN) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_rint(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula |x| \end_cuda_math_formula, the absolute value of the input argument.
+ *
+ * \return
+ * - __nv_fp128_fabs(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __nv_fp128_fabs(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns +0.
+ * - __nv_fp128_fabs(NaN) returns an unspecified NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_fabs(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Create value with the magnitude of the first agument \p x, and the sign of the second argument \p y.
+ *
+ * \return
+ * - copysign(\p NaN, \p y) returns a \p NaN with the sign of \p y.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_copysign(__float128 x, __float128 y) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Determine the maximum numeric value of the arguments.
+ *
+ * \return
+ * The maximum numeric value of the arguments \p x and \p y. Treats NaN
+ * arguments as missing data.
+ * - If both arguments are NaN, returns NaN.
+ * - If one argument is NaN, returns the numeric argument.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_fmax(__float128 x, __float128 y) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Determine the minimum numeric value of the arguments.
+ *
+ * \return
+ * The minimum numeric value of the arguments \p x and \p y. Treats NaN
+ * arguments as missing data.
+ * - If both arguments are NaN, returns NaN.
+ * - If one argument is NaN, returns the numeric argument.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_fmin(__float128 x, __float128 y) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Compute the positive difference between \p x and \p y.
+ *
+ * \return
+ * - __nv_fp128_fdim(\p x, \p y) returns \p x - \p y if \cuda_math_formula x > y \end_cuda_math_formula.
+ * - __nv_fp128_fdim(\p x, \p y) returns +0 if \cuda_math_formula x \leq y \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_fdim(__float128 x, __float128 y) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate the floating-point remainder of \p x / \p y.
+ *
+ * \return
+ * The floating-point remainder of the division operation \p x / \p y calculated
+ * by this function is exactly the value x - n*y, where \p n is \p x / \p y with its fractional part truncated.
+ * - The computed value will have the same sign as \p x, and its magnitude will be less than the magnitude of \p y.
+ * - __nv_fp128_fmod(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * if \p y is not zero.
+ * - __nv_fp128_fmod(\p x,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns \p x if \p x is finite.
+ * - __nv_fp128_fmod(\p x, \p y) returns NaN if \p x is
+ * \cuda_math_formula \pm\infty \end_cuda_math_formula
+ * or \p y is zero.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_fmod(__float128 x, __float128 y) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Compute the floating-point remainder function.
+ *
+ * \return
+ * The floating-point remainder \p r of dividing
+ * \p x by \p y for nonzero \p y is defined as
+ * \cuda_math_formula r = x - n y \end_cuda_math_formula.
+ * The value \p n is the integer value nearest
+ * \cuda_math_formula \frac{x}{y} \end_cuda_math_formula.
+ * In the halfway cases when
+ * \cuda_math_formula | n -\frac{x}{y} | = \frac{1}{2} \end_cuda_math_formula
+ * , the
+ * even \p n value is chosen.
+ * - __nv_fp128_remainder(\p x,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns NaN.
+ * - __nv_fp128_remainder(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p y) returns NaN.
+ * - __nv_fp128_remainder(\p x,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns \p x for finite \p x.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_remainder(__float128 x, __float128 y) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Extract mantissa and exponent of the floating-point input argument.
+ *
+ * Decompose the floating-point value \p x into a component \p m for the
+ * normalized fraction element and an integral term \p n for the exponent.
+ * The absolute value of \p m will be greater than or equal to 0.5 and
+ * less than 1.0 or it will be equal to 0;
+ * \cuda_math_formula x = m\cdot 2^n \end_cuda_math_formula.
+ * The integer exponent \p n will be stored in the location to which \p nptr points.
+ *
+ * \return
+ * The fractional component \p m.
+ * - __nv_fp128_frexp(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p nptr) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * and stores zero in the location pointed to by \p nptr.
+ * - __nv_fp128_frexp(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p nptr) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * and stores an unspecified value in the
+ * location to which \p nptr points.
+ * - __nv_fp128_frexp(NaN, \p y) returns a NaN and stores an unspecified value in the location to which \p nptr points.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_frexp(__float128 x, int* nptr) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Break down the input argument into fractional and integral parts.
+ *
+ * Break down the argument \p x into fractional and integral parts. The
+ * integral part is stored in floating-point format in the location to which \p iptr points.
+ * Fractional and integral parts are given the same sign as the argument \p x.
+ *
+ * \return
+ * - __nv_fp128_modf(
+ * \cuda_math_formula \pm x \end_cuda_math_formula
+ * , \p iptr) returns a result with the same sign as \p x.
+ * - __nv_fp128_modf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p iptr) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * and stores
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * in the object pointed to by \p iptr.
+ * - __nv_fp128_modf(NaN, \p iptr) stores a NaN in the object pointed to by \p iptr and returns a NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_modf(__float128 x, __float128* iptr) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate \cuda_math_formula \sqrt{x^2+y^2} \end_cuda_math_formula, the square root of the sum of squares of two arguments.
+ *
+ * \return
+ * The length of the hypotenuse of a right triangle whose two sides have lengths
+ * \cuda_math_formula |x| \end_cuda_math_formula and \cuda_math_formula |y| \end_cuda_math_formula without undue overflow or underflow.
+ * - __nv_fp128_hypot(\p x,\p y), __nv_fp128_hypot(\p y,\p x), and __nv_fp128_hypot(\p x, \p -y) are equivalent.
+ * - __nv_fp128_hypot(\p x,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) is equivalent to __nv_fp128_fabs(\p x).
+ * - __nv_fp128_hypot(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,\p y) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula,
+ * even if \p y is a NaN.
+ * - __nv_fp128_hypot(NaN, \p y) returns NaN, when \p y is not \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_hypot(__float128 x, __float128 y) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Compute
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single operation using round-to-nearest-even rounding mode.
+ *
+ * \return
+ * The value of
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single ternary operation, rounded once using round-to-nearest,
+ * ties-to-even rounding mode.
+ * - __nv_fp128_fma(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p z) returns NaN.
+ * - __nv_fp128_fma(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p z) returns NaN.
+ * - __nv_fp128_fma(\p x, \p y,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns NaN if
+ * \cuda_math_formula x \times y \end_cuda_math_formula
+ * is an exact
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __nv_fp128_fma(\p x, \p y,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns NaN if
+ * \cuda_math_formula x \times y \end_cuda_math_formula
+ * is an exact
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - __nv_fp128_fma(\p x, \p y, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_fma(\p x, \p y, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_fma(\p x, \p y, \p z) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y + z \end_cuda_math_formula is exactly zero and \cuda_math_formula z \neq 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_fma(__float128 x, __float128 y, __float128 c) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Calculate the value of
+ * \cuda_math_formula x\cdot 2^{exp} \end_cuda_math_formula.
+ *
+ * \return
+ * - __nv_fp128_ldexp(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p exp) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_ldexp(\p x, 0) returns \p x.
+ * - __nv_fp128_ldexp(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p exp) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - __nv_fp128_ldexp(NaN, \p exp) returns NaN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_ldexp(__float128 x, int exp) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Compute the unbiased integer exponent of the input argument.
+ *
+ * \return
+ * - If successful, returns the unbiased exponent of the argument.
+ * - __nv_fp128_ilogb(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns INT_MIN.
+ * - __nv_fp128_ilogb(NaN) returns INT_MIN.
+ * - __nv_fp128_ilogb(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns INT_MAX.
+ * - Note: above behavior does not take into account FP_ILOGB0 nor FP_ILOGBNAN.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ int __nv_fp128_ilogb(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Compute \cuda_math_formula x \cdot y \end_cuda_math_formula, the product of the two floating-point inputs using round-to-nearest-even rounding mode.
+ *
+ * \return Returns \p x * \p y.
+ * - sign of the product \p x * \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
+ * - __nv_fp128_mul(\p x, \p y) is equivalent to __nv_fp128_mul(\p y, \p x).
+ * - __nv_fp128_mul(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
+ * - __nv_fp128_mul(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
+ * - __nv_fp128_mul(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p y.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_mul(__float128 x, __float128 y) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Compute \cuda_math_formula x + y \end_cuda_math_formula, the sum of the two floating-point inputs using round-to-nearest-even rounding mode.
+ *
+ * \return Returns \p x + \p y.
+ * - __nv_fp128_add(\p x, \p y) is equivalent to __nv_fp128_add(\p y, \p x).
+ * - __nv_fp128_add(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p x.
+ * - __nv_fp128_add(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - __nv_fp128_add(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns NaN.
+ * - __nv_fp128_add(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_add(\p x, \p -x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_add(__float128 x, __float128 y) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Compute \cuda_math_formula x - y \end_cuda_math_formula, the difference of the two floating-point inputs using round-to-nearest-even rounding mode.
+ *
+ * \return Returns \p x - \p y.
+ * - __nv_fp128_sub(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p y.
+ * - __nv_fp128_sub(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \mp\infty \end_cuda_math_formula for finite \p x.
+ * - __nv_fp128_sub(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
+ * - __nv_fp128_sub(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - __nv_fp128_sub(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __nv_fp128_sub(\p x, \p x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_sub(__float128 x, __float128 y) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Compute \cuda_math_formula \frac{x}{y} \end_cuda_math_formula, the quotient of the two floating-point inputs using round-to-nearest-even rounding mode.
+ *
+ * \return
+ * - sign of the quotient \p x / \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
+ * - __nv_fp128_div(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns NaN.
+ * - __nv_fp128_div(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
+ * - __nv_fp128_div(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p x.
+ * - __nv_fp128_div(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for finite \p y.
+ * - __nv_fp128_div(\p x, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
+ * - __nv_fp128_div(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for \p y \cuda_math_formula \neq 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_quad
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_div(__float128 x, __float128 y) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Determine whether the input argument is a NaN.
+ *
+ * \return
+ * A nonzero value if and only if \p x is a NaN value.
+ *
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ int __nv_fp128_isnan(__float128 x) __DEF_IF_HOST
+/**
+ * \ingroup CUDA_MATH_QUAD
+ * \brief Determine whether the pair of inputs is unordered.
+ *
+ * \return
+ * - nonzero value if at least one of input values is a NaN.
+ * - zero otherwise
+ *
+ * \note_fp128_target_arch
+ */
+__DEVICE_FP128_FUNCTIONS_DECL__ int __nv_fp128_isunordered(__float128 x, __float128 y) __DEF_IF_HOST
+#endif /* __FLOAT128_CPP_SPELLING_ENABLED__ */
+
+
+#ifdef __FLOAT128_C_SPELLING_ENABLED__
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_sqrt(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_sin(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_cos(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_tan(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_asin(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_acos(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_atan(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_exp(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_exp2(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_exp10(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_expm1(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_log(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_log2(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_log10(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_log1p(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_pow(_Float128 x, _Float128 y) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_sinh(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_cosh(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_tanh(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_asinh(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_acosh(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_atanh(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_trunc(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_floor(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_ceil(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_round(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_rint(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_fabs(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_copysign(_Float128 x, _Float128 y) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_fmax(_Float128 x, _Float128 y) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_fmin(_Float128 x, _Float128 y) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_fdim(_Float128 x, _Float128 y) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_fmod(_Float128 x, _Float128 y) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_remainder(_Float128 x, _Float128 y) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_frexp(_Float128 x, int* nptr) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_modf(_Float128 x, _Float128* iptr) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_hypot(_Float128 x, _Float128 y) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_fma(_Float128 x, _Float128 y, _Float128 c) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_ldexp(_Float128 x, int exp) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ int __nv_fp128_ilogb(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_mul(_Float128 x, _Float128 y) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_add(_Float128 x, _Float128 y) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_sub(_Float128 x, _Float128 y) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_div(_Float128 x, _Float128 y) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ int __nv_fp128_isnan(_Float128 x) __DEF_IF_HOST
+__DEVICE_FP128_FUNCTIONS_DECL__ int __nv_fp128_isunordered(_Float128 x, _Float128 y) __DEF_IF_HOST
+#endif /* __FLOAT_C_SPELLING_ENABLED */
+
+
+#undef __DEVICE_FP128_FUNCTIONS_DECL__
+
+#endif /* __cplusplus && __CUDACC__ */
+
+#endif /* !__DEVICE_FP128_FUNCTIONS_H__ */
+
+#endif /* !__NV_DISABLE_DEVICE_FP128_FUNCTIONS__ */
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/device_functions.h b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/device_functions.h
new file mode 100644
index 0000000000000000000000000000000000000000..ae9de40d680c6e50c25b0c4a01c00679bd0c8fe4
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/device_functions.h
@@ -0,0 +1,2993 @@
+/*
+ * Copyright 1993-2024 NVIDIA Corporation. All rights reserved.
+ *
+ * NOTICE TO LICENSEE:
+ *
+ * This source code and/or documentation ("Licensed Deliverables") are
+ * subject to NVIDIA intellectual property rights under U.S. and
+ * international Copyright laws.
+ *
+ * These Licensed Deliverables contained herein is PROPRIETARY and
+ * CONFIDENTIAL to NVIDIA and is being provided under the terms and
+ * conditions of a form of NVIDIA software license agreement by and
+ * between NVIDIA and Licensee ("License Agreement") or electronically
+ * accepted by Licensee. Notwithstanding any terms or conditions to
+ * the contrary in the License Agreement, reproduction or disclosure
+ * of the Licensed Deliverables to any third party without the express
+ * written consent of NVIDIA is prohibited.
+ *
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
+ * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
+ * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
+ * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
+ * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
+ * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
+ * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
+ * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+ * OF THESE LICENSED DELIVERABLES.
+ *
+ * U.S. Government End Users. These Licensed Deliverables are a
+ * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
+ * 1995), consisting of "commercial computer software" and "commercial
+ * computer software documentation" as such terms are used in 48
+ * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
+ * only as a commercial end item. Consistent with 48 C.F.R.12.212 and
+ * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
+ * U.S. Government End Users acquire the Licensed Deliverables with
+ * only those rights set forth herein.
+ *
+ * Any use of the Licensed Deliverables in individual and commercial
+ * software must include, in the user documentation and internal
+ * comments to the code, the above Disclaimer and U.S. Government End
+ * Users Notice.
+ */
+
+#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
+#if defined(_MSC_VER)
+#pragma message("crt/device_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
+#else
+#warning "crt/device_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
+#endif
+#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_FUNCTIONS_H__
+#endif
+
+#if !defined(__DEVICE_FUNCTIONS_H__)
+#define __DEVICE_FUNCTIONS_H__
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#if defined(__cplusplus) && defined(__CUDACC__)
+
+#if defined(__CUDACC_RTC__)
+#define __DEVICE_FUNCTIONS_DECL__ __device__ __cudart_builtin__
+#define __DEVICE_FUNCTIONS_STATIC_DECL__ __device__ __cudart_builtin__
+#define __DEVICE_HOST_FUNCTIONS_STATIC_DECL__ __device__ __host__ __cudart_builtin__
+#else
+#define __DEVICE_FUNCTIONS_DECL__ __device__ __cudart_builtin__
+#define __DEVICE_FUNCTIONS_STATIC_DECL__ static __inline__ __device__ __cudart_builtin__
+#define __DEVICE_HOST_FUNCTIONS_STATIC_DECL__ static __inline__ __device__ __host__ __cudart_builtin__
+#endif /* __CUDACC_RTC__ */
+
+#include "builtin_types.h"
+#include "device_types.h"
+#include "host_defines.h"
+
+
+//NOTE: For NVRTC, these declarations have been moved into the compiler (to reduce compile time)
+#define EXCLUDE_FROM_RTC
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+extern "C"
+{
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Calculate the most significant 32 bits of the product of the two 32-bit integers.
+ *
+ * Calculate the most significant 32 bits of the 64-bit product \p x * \p y, where \p x and \p y
+ * are 32-bit integers.
+ *
+ * \return Returns the most significant 32 bits of the product \p x * \p y.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __mulhi(int x, int y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Calculate the most significant 32 bits of the product of the two 32-bit unsigned integers.
+ *
+ * Calculate the most significant 32 bits of the 64-bit product \p x * \p y, where \p x and \p y
+ * are 32-bit unsigned integers.
+ *
+ * \return Returns the most significant 32 bits of the product \p x * \p y.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __umulhi(unsigned int x, unsigned int y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Calculate the most significant 64 bits of the product of the two 64-bit integers.
+ *
+ * Calculate the most significant 64 bits of the 128-bit product \p x * \p y, where \p x and \p y
+ * are 64-bit integers.
+ *
+ * \return Returns the most significant 64 bits of the product \p x * \p y.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ long long int __mul64hi(long long int x, long long int y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Calculate the most significant 64 bits of the product of the two 64 unsigned bit integers.
+ *
+ * Calculate the most significant 64 bits of the 128-bit product \p x * \p y, where \p x and \p y
+ * are 64-bit unsigned integers.
+ *
+ * \return Returns the most significant 64 bits of the product \p x * \p y.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned long long int __umul64hi(unsigned long long int x, unsigned long long int y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Reinterpret bits in an integer as a float.
+ *
+ * Reinterpret the bits in the signed integer value \p x as a single-precision
+ * floating-point value.
+ * \return Returns reinterpreted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __int_as_float(int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Reinterpret bits in a float as a signed integer.
+ *
+ * Reinterpret the bits in the single-precision floating-point value \p x
+ * as a signed integer.
+ * \return Returns reinterpreted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __float_as_int(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Reinterpret bits in an unsigned integer as a float.
+ *
+ * Reinterpret the bits in the unsigned integer value \p x as a single-precision
+ * floating-point value.
+ * \return Returns reinterpreted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __uint_as_float(unsigned int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Reinterpret bits in a float as a unsigned integer.
+ *
+ * Reinterpret the bits in the single-precision floating-point value \p x
+ * as a unsigned integer.
+ * \return Returns reinterpreted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __float_as_uint(float x);
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ void __syncthreads(void);
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ void __prof_trigger(int);
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ void __threadfence(void);
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ void __threadfence_block(void);
+__DEVICE_FUNCTIONS_DECL__
+#if defined(__GNUC__) || defined(__CUDACC_RTC__)
+__attribute__((__noreturn__))
+#elif defined(_MSC_VER)
+__declspec(noreturn)
+#endif /* defined(__GNUC__) || defined(__CUDACC_RTC__) */
+__device_builtin__ void __trap(void);
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ void __brkpt();
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Clamp the input argument to [+0.0, 1.0].
+ *
+ * Clamp the input argument \p x to be within the interval [+0.0, 1.0].
+ * \return
+ * - __saturatef(\p x) returns +0 if \cuda_math_formula x \le 0 \end_cuda_math_formula.
+ * - __saturatef(\p x) returns 1 if \cuda_math_formula x \ge 1 \end_cuda_math_formula.
+ * - __saturatef(\p x) returns \p x if \cuda_math_formula 0 < x < 1 \end_cuda_math_formula.
+ * - __saturatef(NaN) returns +0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __saturatef(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Calculate
+ * \cuda_math_formula |x - y| + z \end_cuda_math_formula
+ * , the sum of absolute difference.
+ *
+ * Calculate
+ * \cuda_math_formula |x - y| + z \end_cuda_math_formula
+ * , the 32-bit sum of the third argument \p z plus and the absolute
+ * value of the difference between the first argument, \p x, and second
+ * argument, \p y.
+ *
+ * Inputs \p x and \p y are signed 32-bit integers, input \p z is
+ * a 32-bit unsigned integer.
+ *
+ * \return Returns
+ * \cuda_math_formula |x - y| + z \end_cuda_math_formula.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __sad(int x, int y, unsigned int z);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Calculate
+ * \cuda_math_formula |x - y| + z \end_cuda_math_formula
+ * , the sum of absolute difference.
+ *
+ * Calculate
+ * \cuda_math_formula |x - y| + z \end_cuda_math_formula
+ * , the 32-bit sum of the third argument \p z plus and the absolute
+ * value of the difference between the first argument, \p x, and second
+ * argument, \p y.
+ *
+ * Inputs \p x, \p y, and \p z are unsigned 32-bit integers.
+ *
+ * \return Returns
+ * \cuda_math_formula |x - y| + z \end_cuda_math_formula.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __usad(unsigned int x, unsigned int y, unsigned int z);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Calculate the least significant 32 bits of the product of the least significant 24 bits of two integers.
+ *
+ * Calculate the least significant 32 bits of the product of the least significant 24 bits of \p x and \p y.
+ * The high order 8 bits of \p x and \p y are ignored.
+ *
+ * \return Returns the least significant 32 bits of the product \p x * \p y.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __mul24(int x, int y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Calculate the least significant 32 bits of the product of the least significant 24 bits of two unsigned integers.
+ *
+ * Calculate the least significant 32 bits of the product of the least significant 24 bits of \p x and \p y.
+ * The high order 8 bits of \p x and \p y are ignored.
+ *
+ * \return Returns the least significant 32 bits of the product \p x * \p y.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __umul24(unsigned int x, unsigned int y);
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Divide two floating-point values.
+ *
+ * Compute \p x divided by \p y.
+ *
+ * \return Returns \p x / \p y.
+ * - Follows the regular division operation behavior by default.
+ * - If \p -use_fast_math is specified and is not amended by
+ * an explicit \p -prec_div=true, uses ::__fdividef() for higher
+ * performance
+ *
+ * \note_accuracy_single
+ * \note_fastmath
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float fdividef(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Calculate the fast approximate division of the input arguments.
+ *
+ * Calculate the fast approximate division of \p x by \p y.
+ *
+ * \return Returns \p x / \p y.
+ * - __fdividef(
+ * \cuda_math_formula \infty \end_cuda_math_formula
+ * , \p y) returns NaN for
+ * \cuda_math_formula 2^{126} < |y| < 2^{128} \end_cuda_math_formula.
+ * - __fdividef(\p x, \p y) returns 0 for
+ * \cuda_math_formula 2^{126} < |y| < 2^{128} \end_cuda_math_formula
+ * and finite
+ * \cuda_math_formula x \end_cuda_math_formula.
+ * \see __fdiv_rn() for further special case behavior specification.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fdividef(float x, float y);
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ double fdivide(double x, double y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Calculate the fast approximate sine of the input argument.
+ *
+ * Calculate the fast approximate sine of the input argument \p x, measured in radians.
+ *
+ * \return Returns the approximate sine of \p x.
+ *
+ * \see sinf() for further special case behavior specification.
+ * \note_accuracy_single_intrinsic
+ * \note Output in the denormal range is flushed to sign preserving 0.0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ float __sinf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Calculate the fast approximate cosine of the input argument.
+ *
+ * Calculate the fast approximate cosine of the input argument \p x, measured in radians.
+ *
+ * \return Returns the approximate cosine of \p x.
+ *
+ * \see cosf() for further special case behavior specification.
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ float __cosf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Calculate the fast approximate tangent of the input argument.
+ *
+ * Calculate the fast approximate tangent of the input argument \p x, measured in radians.
+ *
+ * \return Returns the approximate tangent of \p x.
+ *
+ * \note_accuracy_single_intrinsic
+ * \note The result is computed as the fast divide of ::__sinf()
+ * by ::__cosf(). Denormal output is flushed to sign-preserving 0.0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ float __tanf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Calculate the fast approximate hyperbolic tangent of the input argument.
+ *
+ * Calculate the fast approximate hyperbolic tangent of the input argument \p x, measured in radians.
+ *
+ * \return Returns the approximate hyperbolic tangent of \p x.
+ *
+ * \see tanhf() for further special case behavior specification.
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ float __tanhf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Calculate the fast approximate of sine and cosine of the first input argument.
+ *
+ * Calculate the fast approximate of sine and cosine of the first input argument \p x (measured
+ * in radians). The results for sine and cosine are written into the second
+ * argument, \p sptr, and, respectively, third argument, \p cptr.
+ *
+ * \see __sinf() and __cosf().
+ * \note_accuracy_single_intrinsic
+ * \note Denorm input/output is flushed to sign preserving 0.0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ void __sincosf(float x, float *sptr, float *cptr) __THROW;
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Calculate the fast approximate base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * exponential of the input argument.
+ *
+ * Calculate the fast approximate base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * exponential of the input argument \p x,
+ * \cuda_math_formula e^x \end_cuda_math_formula.
+ *
+ * \return Returns an approximation to
+ * \cuda_math_formula e^x \end_cuda_math_formula.
+ * \see expf() for further special case behavior specification.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ float __expf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Calculate the fast approximate base 10 exponential of the input argument.
+ *
+ * Calculate the fast approximate base 10 exponential of the input argument \p x,
+ * \cuda_math_formula 10^x \end_cuda_math_formula.
+ *
+ * \return Returns an approximation to
+ * \cuda_math_formula 10^x \end_cuda_math_formula.
+ * \see exp10f() for further special case behavior specification.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ float __exp10f(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Calculate the fast approximate base 2 logarithm of the input argument.
+ *
+ * Calculate the fast approximate base 2 logarithm of the input argument \p x.
+ *
+ * \return Returns an approximation to
+ * \cuda_math_formula \log_2(x) \end_cuda_math_formula.
+ * \see log2f() for further special case behavior specification.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ float __log2f(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Calculate the fast approximate base 10 logarithm of the input argument.
+ *
+ * Calculate the fast approximate base 10 logarithm of the input argument \p x.
+ *
+ * \return Returns an approximation to
+ * \cuda_math_formula \log_{10}(x) \end_cuda_math_formula.
+ * \see log10f() for further special case behavior specification.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ float __log10f(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Calculate the fast approximate base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * logarithm of the input argument.
+ *
+ * Calculate the fast approximate base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * logarithm of the input argument \p x.
+ *
+ * \return Returns an approximation to
+ * \cuda_math_formula \log_e(x) \end_cuda_math_formula.
+ * \see logf() for further special case behavior specification.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ float __logf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Calculate the fast approximate of
+ * \cuda_math_formula x^y \end_cuda_math_formula.
+ *
+ * Calculate the fast approximate of \p x, the first input argument,
+ * raised to the power of \p y, the second input argument,
+ * \cuda_math_formula x^y \end_cuda_math_formula.
+ *
+ * \return Returns an approximation to
+ * \cuda_math_formula x^y \end_cuda_math_formula.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ float __powf(float x, float y) __THROW;
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to a signed integer in round-to-nearest-even mode.
+ *
+ * Convert the single-precision floating-point value \p x to a signed integer
+ * in round-to-nearest-even mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __float2int_rn(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to a signed integer in round-towards-zero mode.
+ *
+ * Convert the single-precision floating-point value \p x to a signed integer
+ * in round-towards-zero mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __float2int_rz(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to a signed integer in round-up mode.
+ *
+ * Convert the single-precision floating-point value \p x to a signed integer
+ * in round-up (to positive infinity) mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __float2int_ru(float);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to a signed integer in round-down mode.
+ *
+ * Convert the single-precision floating-point value \p x to a signed integer
+ * in round-down (to negative infinity) mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __float2int_rd(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to an unsigned integer in round-to-nearest-even mode.
+ *
+ * Convert the single-precision floating-point value \p x to an unsigned integer
+ * in round-to-nearest-even mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __float2uint_rn(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to an unsigned integer in round-towards-zero mode.
+ *
+ * Convert the single-precision floating-point value \p x to an unsigned integer
+ * in round-towards-zero mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __float2uint_rz(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to an unsigned integer in round-up mode.
+ *
+ * Convert the single-precision floating-point value \p x to an unsigned integer
+ * in round-up (to positive infinity) mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __float2uint_ru(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to an unsigned integer in round-down mode.
+ *
+ * Convert the single-precision floating-point value \p x to an unsigned integer
+ * in round-down (to negative infinity) mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __float2uint_rd(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a signed integer to a float in round-to-nearest-even mode.
+ *
+ * Convert the signed integer value \p x to a single-precision floating-point value
+ * in round-to-nearest-even mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __int2float_rn(int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a signed integer to a float in round-towards-zero mode.
+ *
+ * Convert the signed integer value \p x to a single-precision floating-point value
+ * in round-towards-zero mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __int2float_rz(int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a signed integer to a float in round-up mode.
+ *
+ * Convert the signed integer value \p x to a single-precision floating-point value
+ * in round-up (to positive infinity) mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __int2float_ru(int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a signed integer to a float in round-down mode.
+ *
+ * Convert the signed integer value \p x to a single-precision floating-point value
+ * in round-down (to negative infinity) mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __int2float_rd(int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert an unsigned integer to a float in round-to-nearest-even mode.
+ *
+ * Convert the unsigned integer value \p x to a single-precision floating-point value
+ * in round-to-nearest-even mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __uint2float_rn(unsigned int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert an unsigned integer to a float in round-towards-zero mode.
+ *
+ * Convert the unsigned integer value \p x to a single-precision floating-point value
+ * in round-towards-zero mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __uint2float_rz(unsigned int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert an unsigned integer to a float in round-up mode.
+ *
+ * Convert the unsigned integer value \p x to a single-precision floating-point value
+ * in round-up (to positive infinity) mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __uint2float_ru(unsigned int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert an unsigned integer to a float in round-down mode.
+ *
+ * Convert the unsigned integer value \p x to a single-precision floating-point value
+ * in round-down (to negative infinity) mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __uint2float_rd(unsigned int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to a signed 64-bit integer in round-to-nearest-even mode.
+ *
+ * Convert the single-precision floating-point value \p x to a signed 64-bit integer
+ * in round-to-nearest-even mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ long long int __float2ll_rn(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to a signed 64-bit integer in round-towards-zero mode.
+ *
+ * Convert the single-precision floating-point value \p x to a signed 64-bit integer
+ * in round-towards-zero mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ long long int __float2ll_rz(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to a signed 64-bit integer in round-up mode.
+ *
+ * Convert the single-precision floating-point value \p x to a signed 64-bit integer
+ * in round-up (to positive infinity) mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ long long int __float2ll_ru(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to a signed 64-bit integer in round-down mode.
+ *
+ * Convert the single-precision floating-point value \p x to a signed 64-bit integer
+ * in round-down (to negative infinity) mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ long long int __float2ll_rd(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to an unsigned 64-bit integer in round-to-nearest-even mode.
+ *
+ * Convert the single-precision floating-point value \p x to an unsigned 64-bit integer
+ * in round-to-nearest-even mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned long long int __float2ull_rn(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to an unsigned 64-bit integer in round-towards-zero mode.
+ *
+ * Convert the single-precision floating-point value \p x to an unsigned 64-bit integer
+ * in round-towards-zero mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned long long int __float2ull_rz(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to an unsigned 64-bit integer in round-up mode.
+ *
+ * Convert the single-precision floating-point value \p x to an unsigned 64-bit integer
+ * in round-up (to positive infinity) mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned long long int __float2ull_ru(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a float to an unsigned 64-bit integer in round-down mode.
+ *
+ * Convert the single-precision floating-point value \p x to an unsigned 64-bit integer
+ * in round-down (to negative infinity) mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned long long int __float2ull_rd(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a signed 64-bit integer to a float in round-to-nearest-even mode.
+ *
+ * Convert the signed 64-bit integer value \p x to a single-precision floating-point value
+ * in round-to-nearest-even mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __ll2float_rn(long long int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a signed integer to a float in round-towards-zero mode.
+ *
+ * Convert the signed integer value \p x to a single-precision floating-point value
+ * in round-towards-zero mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __ll2float_rz(long long int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a signed integer to a float in round-up mode.
+ *
+ * Convert the signed integer value \p x to a single-precision floating-point value
+ * in round-up (to positive infinity) mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __ll2float_ru(long long int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a signed integer to a float in round-down mode.
+ *
+ * Convert the signed integer value \p x to a single-precision floating-point value
+ * in round-down (to negative infinity) mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __ll2float_rd(long long int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert an unsigned integer to a float in round-to-nearest-even mode.
+ *
+ * Convert the unsigned integer value \p x to a single-precision floating-point value
+ * in round-to-nearest-even mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __ull2float_rn(unsigned long long int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert an unsigned integer to a float in round-towards-zero mode.
+ *
+ * Convert the unsigned integer value \p x to a single-precision floating-point value
+ * in round-towards-zero mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __ull2float_rz(unsigned long long int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert an unsigned integer to a float in round-up mode.
+ *
+ * Convert the unsigned integer value \p x to a single-precision floating-point value
+ * in round-up (to positive infinity) mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __ull2float_ru(unsigned long long int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert an unsigned integer to a float in round-down mode.
+ *
+ * Convert the unsigned integer value \p x to a single-precision floating-point value
+ * in round-down (to negative infinity) mode.
+ * \return Returns converted value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __ull2float_rd(unsigned long long int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Add two floating-point values in round-to-nearest-even mode.
+ *
+ * Compute the sum of \p x and \p y in round-to-nearest-even rounding mode.
+ *
+ * \return Returns \p x + \p y.
+ * - __fadd_rn(\p x, \p y) is equivalent to __fadd_rn(\p y, \p x).
+ * - __fadd_rn(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p x.
+ * - __fadd_rn(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - __fadd_rn(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns NaN.
+ * - __fadd_rn(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fadd_rn(\p x, \p -x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ * \note_nofma
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fadd_rn(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Add two floating-point values in round-towards-zero mode.
+ *
+ * Compute the sum of \p x and \p y in round-towards-zero mode.
+ *
+ * \return Returns \p x + \p y.
+ * - __fadd_rz(\p x, \p y) is equivalent to __fadd_rz(\p y, \p x).
+ * - __fadd_rz(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p x.
+ * - __fadd_rz(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - __fadd_rz(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns NaN.
+ * - __fadd_rz(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fadd_rz(\p x, \p -x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ * \note_nofma
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fadd_rz(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Add two floating-point values in round-up mode.
+ *
+ * Compute the sum of \p x and \p y in round-up (to positive infinity) mode.
+ *
+ * \return Returns \p x + \p y.
+ * - __fadd_ru(\p x, \p y) is equivalent to __fadd_ru(\p y, \p x).
+ * - __fadd_ru(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p x.
+ * - __fadd_ru(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - __fadd_ru(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns NaN.
+ * - __fadd_ru(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fadd_ru(\p x, \p -x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ * \note_nofma
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fadd_ru(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Add two floating-point values in round-down mode.
+ *
+ * Compute the sum of \p x and \p y in round-down (to negative infinity) mode.
+ *
+ * \return Returns \p x + \p y.
+ * - __fadd_rd(\p x, \p y) is equivalent to __fadd_rd(\p y, \p x).
+ * - __fadd_rd(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p x.
+ * - __fadd_rd(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - __fadd_rd(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns NaN.
+ * - __fadd_rd(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fadd_rd(\p x, \p -x) returns \cuda_math_formula -0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ * \note_nofma
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fadd_rd(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Subtract two floating-point values in round-to-nearest-even mode.
+ *
+ * Compute the difference of \p x and \p y in round-to-nearest-even rounding mode.
+ *
+ * \return Returns \p x - \p y.
+ * - __fsub_rn(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p y.
+ * - __fsub_rn(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \mp\infty \end_cuda_math_formula for finite \p x.
+ * - __fsub_rn(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
+ * - __fsub_rn(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - __fsub_rn(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fsub_rn(\p x, \p x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ * \note_nofma
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fsub_rn(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Subtract two floating-point values in round-towards-zero mode.
+ *
+ * Compute the difference of \p x and \p y in round-towards-zero mode.
+ *
+ * \return Returns \p x - \p y.
+ * - __fsub_rz(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p y.
+ * - __fsub_rz(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \mp\infty \end_cuda_math_formula for finite \p x.
+ * - __fsub_rz(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
+ * - __fsub_rz(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - __fsub_rz(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fsub_rz(\p x, \p x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ * \note_nofma
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fsub_rz(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Subtract two floating-point values in round-up mode.
+ *
+ * Compute the difference of \p x and \p y in round-up (to positive infinity) mode.
+ *
+ * \return Returns \p x - \p y.
+ * - __fsub_ru(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p y.
+ * - __fsub_ru(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \mp\infty \end_cuda_math_formula for finite \p x.
+ * - __fsub_ru(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
+ * - __fsub_ru(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - __fsub_ru(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fsub_ru(\p x, \p x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ * \note_nofma
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fsub_ru(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Subtract two floating-point values in round-down mode.
+ *
+ * Compute the difference of \p x and \p y in round-down (to negative infinity) mode.
+ *
+ * \return Returns \p x - \p y.
+ * - __fsub_rd(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p y.
+ * - __fsub_rd(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \mp\infty \end_cuda_math_formula for finite \p x.
+ * - __fsub_rd(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
+ * - __fsub_rd(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - __fsub_rd(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fsub_rd(\p x, \p x) returns \cuda_math_formula -0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ * \note_nofma
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fsub_rd(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Multiply two floating-point values in round-to-nearest-even mode.
+ *
+ * Compute the product of \p x and \p y in round-to-nearest-even mode.
+ *
+ * \return Returns \p x * \p y.
+ * - sign of the product \p x * \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
+ * - __fmul_rn(\p x, \p y) is equivalent to __fmul_rn(\p y, \p x).
+ * - __fmul_rn(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
+ * - __fmul_rn(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
+ * - __fmul_rn(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p y.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ * \note_nofma
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fmul_rn(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Multiply two floating-point values in round-towards-zero mode.
+ *
+ * Compute the product of \p x and \p y in round-towards-zero mode.
+ *
+ * \return Returns \p x * \p y.
+ * - sign of the product \p x * \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
+ * - __fmul_rz(\p x, \p y) is equivalent to __fmul_rz(\p y, \p x).
+ * - __fmul_rz(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
+ * - __fmul_rz(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
+ * - __fmul_rz(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p y.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ * \note_nofma
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fmul_rz(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Multiply two floating-point values in round-up mode.
+ *
+ * Compute the product of \p x and \p y in round-up (to positive infinity) mode.
+ *
+ * \return Returns \p x * \p y.
+ * - sign of the product \p x * \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
+ * - __fmul_ru(\p x, \p y) is equivalent to __fmul_ru(\p y, \p x).
+ * - __fmul_ru(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
+ * - __fmul_ru(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
+ * - __fmul_ru(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p y.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ * \note_nofma
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fmul_ru(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Multiply two floating-point values in round-down mode.
+ *
+ * Compute the product of \p x and \p y in round-down (to negative infinity) mode.
+ *
+ * \return Returns \p x * \p y.
+ * - sign of the product \p x * \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
+ * - __fmul_rd(\p x, \p y) is equivalent to __fmul_rd(\p y, \p x).
+ * - __fmul_rd(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
+ * - __fmul_rd(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
+ * - __fmul_rd(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p y.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ * \note_nofma
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fmul_rd(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Compute
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single operation, in round-to-nearest-even mode.
+ *
+ * Computes the value of
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single ternary operation, rounding the
+ * result once in round-to-nearest-even mode.
+ *
+ * \return Returns the rounded value of
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single operation.
+ * - __fmaf_rn(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p z) returns NaN.
+ * - __fmaf_rn(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p z) returns NaN.
+ * - __fmaf_rn(\p x, \p y,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns NaN if
+ * \cuda_math_formula x \times y \end_cuda_math_formula
+ * is an exact
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __fmaf_rn(\p x, \p y,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns NaN if
+ * \cuda_math_formula x \times y \end_cuda_math_formula
+ * is an exact
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - __fmaf_rn(\p x, \p y, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fmaf_rn(\p x, \p y, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fmaf_rn(\p x, \p y, \p z) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y + z \end_cuda_math_formula is exactly zero and \cuda_math_formula z \neq 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fmaf_rn(float x, float y, float z);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Compute
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single operation, in round-towards-zero mode.
+ *
+ * Computes the value of
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single ternary operation, rounding the
+ * result once in round-towards-zero mode.
+ *
+ * \return Returns the rounded value of
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single operation.
+ * - __fmaf_rz(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p z) returns NaN.
+ * - __fmaf_rz(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p z) returns NaN.
+ * - __fmaf_rz(\p x, \p y,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns NaN if
+ * \cuda_math_formula x \times y \end_cuda_math_formula
+ * is an exact
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __fmaf_rz(\p x, \p y,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns NaN if
+ * \cuda_math_formula x \times y \end_cuda_math_formula
+ * is an exact
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - __fmaf_rz(\p x, \p y, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fmaf_rz(\p x, \p y, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fmaf_rz(\p x, \p y, \p z) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y + z \end_cuda_math_formula is exactly zero and \cuda_math_formula z \neq 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fmaf_rz(float x, float y, float z);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Compute
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single operation, in round-up mode.
+ *
+ * Computes the value of
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single ternary operation, rounding the
+ * result once in round-up (to positive infinity) mode.
+ *
+ * \return Returns the rounded value of
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single operation.
+ * - __fmaf_ru(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p z) returns NaN.
+ * - __fmaf_ru(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p z) returns NaN.
+ * - __fmaf_ru(\p x, \p y,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns NaN if
+ * \cuda_math_formula x \times y \end_cuda_math_formula
+ * is an exact
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __fmaf_ru(\p x, \p y,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns NaN if
+ * \cuda_math_formula x \times y \end_cuda_math_formula
+ * is an exact
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - __fmaf_ru(\p x, \p y, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fmaf_ru(\p x, \p y, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fmaf_ru(\p x, \p y, \p z) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y + z \end_cuda_math_formula is exactly zero and \cuda_math_formula z \neq 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fmaf_ru(float x, float y, float z);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Compute
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single operation, in round-down mode.
+ *
+ * Computes the value of
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single ternary operation, rounding the
+ * result once in round-down (to negative infinity) mode.
+ *
+ * \return Returns the rounded value of
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single operation.
+ * - __fmaf_rd(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p z) returns NaN.
+ * - __fmaf_rd(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p z) returns NaN.
+ * - __fmaf_rd(\p x, \p y,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns NaN if
+ * \cuda_math_formula x \times y \end_cuda_math_formula
+ * is an exact
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __fmaf_rd(\p x, \p y,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns NaN if
+ * \cuda_math_formula x \times y \end_cuda_math_formula
+ * is an exact
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - __fmaf_rd(\p x, \p y, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fmaf_rd(\p x, \p y, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula -0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fmaf_rd(\p x, \p y, \p z) returns \cuda_math_formula -0 \end_cuda_math_formula if \cuda_math_formula x \times y + z \end_cuda_math_formula is exactly zero and \cuda_math_formula z \neq 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fmaf_rd(float x, float y, float z);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Compute
+ * \cuda_math_formula \frac{1}{x} \end_cuda_math_formula
+ * in round-to-nearest-even mode.
+ *
+ * Compute the reciprocal of \p x in round-to-nearest-even mode.
+ *
+ * \return Returns
+ * \cuda_math_formula \frac{1}{x} \end_cuda_math_formula.
+ * - __frcp_rn(\cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - __frcp_rn(\cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __frcp_rn(NaN) returns NaN.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __frcp_rn(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Compute
+ * \cuda_math_formula \frac{1}{x} \end_cuda_math_formula
+ * in round-towards-zero mode.
+ *
+ * Compute the reciprocal of \p x in round-towards-zero mode.
+ *
+ * \return Returns
+ * \cuda_math_formula \frac{1}{x} \end_cuda_math_formula.
+ * - __frcp_rz(\cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - __frcp_rz(\cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __frcp_rz(NaN) returns NaN.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __frcp_rz(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Compute
+ * \cuda_math_formula \frac{1}{x} \end_cuda_math_formula
+ * in round-up mode.
+ *
+ * Compute the reciprocal of \p x in round-up (to positive infinity) mode.
+ *
+ * \return Returns
+ * \cuda_math_formula \frac{1}{x} \end_cuda_math_formula.
+ * - __frcp_ru(\cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - __frcp_ru(\cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __frcp_ru(NaN) returns NaN.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __frcp_ru(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Compute
+ * \cuda_math_formula \frac{1}{x} \end_cuda_math_formula
+ * in round-down mode.
+ *
+ * Compute the reciprocal of \p x in round-down (to negative infinity) mode.
+ *
+ * \return Returns
+ * \cuda_math_formula \frac{1}{x} \end_cuda_math_formula.
+ * - __frcp_rd(\cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - __frcp_rd(\cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __frcp_rd(NaN) returns NaN.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __frcp_rd(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Compute
+ * \cuda_math_formula \sqrt{x} \end_cuda_math_formula
+ * in round-to-nearest-even mode.
+ *
+ * Compute the square root of \p x in round-to-nearest-even mode.
+ *
+ * \return Returns
+ * \cuda_math_formula \sqrt{x} \end_cuda_math_formula.
+ * - __fsqrt_rn(\cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fsqrt_rn(\cuda_math_formula +\infty \end_cuda_math_formula) returns \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __fsqrt_rn(\p x) returns NaN for \p x < 0.
+ * - __fsqrt_rn(NaN) returns NaN.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fsqrt_rn(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Compute
+ * \cuda_math_formula \sqrt{x} \end_cuda_math_formula
+ * in round-towards-zero mode.
+ *
+ * Compute the square root of \p x in round-towards-zero mode.
+ *
+ * \return Returns
+ * \cuda_math_formula \sqrt{x} \end_cuda_math_formula.
+ * - __fsqrt_rz(\cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fsqrt_rz(\cuda_math_formula +\infty \end_cuda_math_formula) returns \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __fsqrt_rz(\p x) returns NaN for \p x < 0.
+ * - __fsqrt_rz(NaN) returns NaN.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fsqrt_rz(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Compute
+ * \cuda_math_formula \sqrt{x} \end_cuda_math_formula
+ * in round-up mode.
+ *
+ * Compute the square root of \p x in round-up (to positive infinity) mode.
+ *
+ * \return Returns
+ * \cuda_math_formula \sqrt{x} \end_cuda_math_formula.
+ * - __fsqrt_ru(\cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fsqrt_ru(\cuda_math_formula +\infty \end_cuda_math_formula) returns \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __fsqrt_ru(\p x) returns NaN for \p x < 0.
+ * - __fsqrt_ru(NaN) returns NaN.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fsqrt_ru(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Compute
+ * \cuda_math_formula \sqrt{x} \end_cuda_math_formula
+ * in round-down mode.
+ *
+ * Compute the square root of \p x in round-down (to negative infinity) mode.
+ *
+ * \return Returns
+ * \cuda_math_formula \sqrt{x} \end_cuda_math_formula.
+ * - __fsqrt_rd(\cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - __fsqrt_rd(\cuda_math_formula +\infty \end_cuda_math_formula) returns \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - __fsqrt_rd(\p x) returns NaN for \p x < 0.
+ * - __fsqrt_rd(NaN) returns NaN.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fsqrt_rd(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Compute
+ * \cuda_math_formula 1/\sqrt{x} \end_cuda_math_formula
+ * in round-to-nearest-even mode.
+ *
+ * Compute the reciprocal square root of \p x in round-to-nearest-even mode.
+ *
+ * \return Returns
+ * \cuda_math_formula 1/\sqrt{x} \end_cuda_math_formula.
+ * - __frsqrt_rn(\cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - __frsqrt_rn(\cuda_math_formula +\infty \end_cuda_math_formula) returns \cuda_math_formula +0 \end_cuda_math_formula.
+ * - __frsqrt_rn(\p x) returns NaN for \p x < 0.
+ * - __frsqrt_rn(NaN) returns NaN.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __frsqrt_rn(float x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Divide two floating-point values in round-to-nearest-even mode.
+ *
+ * Divide two floating-point values \p x by \p y in round-to-nearest-even mode.
+ *
+ * \return Returns \p x / \p y.
+ * - sign of the quotient \p x / \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
+ * - __fdiv_rn(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns NaN.
+ * - __fdiv_rn(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
+ * - __fdiv_rn(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p x.
+ * - __fdiv_rn(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for finite \p y.
+ * - __fdiv_rn(\p x, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
+ * - __fdiv_rn(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for \p y \cuda_math_formula \neq 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fdiv_rn(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Divide two floating-point values in round-towards-zero mode.
+ *
+ * Divide two floating-point values \p x by \p y in round-towards-zero mode.
+ *
+ * \return Returns \p x / \p y.
+ * - sign of the quotient \p x / \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
+ * - __fdiv_rz(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns NaN.
+ * - __fdiv_rz(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
+ * - __fdiv_rz(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p x.
+ * - __fdiv_rz(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for finite \p y.
+ * - __fdiv_rz(\p x, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
+ * - __fdiv_rz(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for \p y \cuda_math_formula \neq 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fdiv_rz(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Divide two floating-point values in round-up mode.
+ *
+ * Divide two floating-point values \p x by \p y in round-up (to positive infinity) mode.
+ *
+ * \return Returns \p x / \p y.
+ * - sign of the quotient \p x / \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
+ * - __fdiv_ru(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns NaN.
+ * - __fdiv_ru(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
+ * - __fdiv_ru(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p x.
+ * - __fdiv_ru(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for finite \p y.
+ * - __fdiv_ru(\p x, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
+ * - __fdiv_ru(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for \p y \cuda_math_formula \neq 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fdiv_ru(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SINGLE
+ * \brief Divide two floating-point values in round-down mode.
+ *
+ * Divide two floating-point values \p x by \p y in round-down (to negative infinity) mode.
+ *
+ * \return Returns \p x / \p y.
+ * - sign of the quotient \p x / \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
+ * - __fdiv_rd(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns NaN.
+ * - __fdiv_rd(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
+ * - __fdiv_rd(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p x.
+ * - __fdiv_rd(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for finite \p y.
+ * - __fdiv_rd(\p x, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
+ * - __fdiv_rd(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for \p y \cuda_math_formula \neq 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single_intrinsic
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __fdiv_rd(float x, float y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Return the number of consecutive high-order zero bits in a 32-bit integer.
+ *
+ * Count the number of consecutive leading zero bits, starting at the most significant bit (bit 31) of \p x.
+ *
+ * \return Returns a value between 0 and 32 inclusive representing the number of zero bits.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __clz(int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Find the position of the least significant bit set to 1 in a 32-bit integer.
+ *
+ * Find the position of the first (least significant) bit set to 1 in \p x, where the least significant
+ * bit position is 1.
+ *
+ * \return Returns a value between 0 and 32 inclusive representing the position of the first bit set.
+ * - __ffs(0) returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __ffs(int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Count the number of bits that are set to 1 in a 32-bit integer.
+ *
+ * Count the number of bits that are set to 1 in \p x.
+ *
+ * \return Returns a value between 0 and 32 inclusive representing the number of set bits.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __popc(unsigned int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Reverse the bit order of a 32-bit unsigned integer.
+ *
+ * Reverses the bit order of the 32-bit unsigned integer \p x.
+ *
+ * \return Returns the bit-reversed value of \p x. i.e. bit N of the return value corresponds to bit 31-N of \p x.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __brev(unsigned int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Count the number of consecutive high-order zero bits in a 64-bit integer.
+ *
+ * Count the number of consecutive leading zero bits, starting at the most significant bit (bit 63) of \p x.
+ *
+ * \return Returns a value between 0 and 64 inclusive representing the number of zero bits.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __clzll(long long int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Find the position of the least significant bit set to 1 in a 64-bit integer.
+ *
+ * Find the position of the first (least significant) bit set to 1 in \p x, where the least significant
+ * bit position is 1.
+ *
+ * \return Returns a value between 0 and 64 inclusive representing the position of the first bit set.
+ * - __ffsll(0) returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __ffsll(long long int x);
+
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Count the number of bits that are set to 1 in a 64-bit integer.
+ *
+ * Count the number of bits that are set to 1 in \p x.
+ *
+ * \return Returns a value between 0 and 64 inclusive representing the number of set bits.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __popcll(unsigned long long int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Reverse the bit order of a 64-bit unsigned integer.
+ *
+ * Reverses the bit order of the 64-bit unsigned integer \p x.
+ *
+ * \return Returns the bit-reversed value of \p x. i.e. bit N of the return value corresponds to bit 63-N of \p x.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned long long int __brevll(unsigned long long int x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Return selected bytes from two 32-bit unsigned integers.
+ *
+ * \return Returns a 32-bit integer consisting of four bytes from eight input bytes provided in the two
+ * input integers \p x and \p y, as specified by a selector, \p s.
+ *
+ * Create 8-byte source
+ * - uint64_t \p tmp64 = ((uint64_t)\p y << 32) | \p x;
+ *
+ * Extract selector bits
+ * - \p selector0 = (\p s >> 0) & 0x7;
+ * - \p selector1 = (\p s >> 4) & 0x7;
+ * - \p selector2 = (\p s >> 8) & 0x7;
+ * - \p selector3 = (\p s >> 12) & 0x7;
+ *
+ * Return 4 selected bytes from 8-byte source:
+ * - \p res[07:00] = \p tmp64[\p selector0];
+ * - \p res[15:08] = \p tmp64[\p selector1];
+ * - \p res[23:16] = \p tmp64[\p selector2];
+ * - \p res[31:24] = \p tmp64[\p selector3];
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __byte_perm(unsigned int x, unsigned int y, unsigned int s);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Compute average of signed input arguments, avoiding overflow
+ * in the intermediate sum.
+ *
+ * Compute average of signed input arguments \p x and \p y
+ * as ( \p x + \p y ) >> 1, avoiding overflow in the intermediate sum.
+ *
+ * \return Returns a signed integer value representing the signed
+ * average value of the two inputs.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __hadd(int x, int y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Compute rounded average of signed input arguments, avoiding
+ * overflow in the intermediate sum.
+ *
+ * Compute average of signed input arguments \p x and \p y
+ * as ( \p x + \p y + 1 ) >> 1, avoiding overflow in the intermediate
+ * sum.
+ *
+ * \return Returns a signed integer value representing the signed
+ * rounded average value of the two inputs.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __rhadd(int x, int y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Compute average of unsigned input arguments, avoiding overflow
+ * in the intermediate sum.
+ *
+ * Compute average of unsigned input arguments \p x and \p y
+ * as ( \p x + \p y ) >> 1, avoiding overflow in the intermediate sum.
+ *
+ * \return Returns an unsigned integer value representing the unsigned
+ * average value of the two inputs.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __uhadd(unsigned int x, unsigned int y);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_INT
+ * \brief Compute rounded average of unsigned input arguments, avoiding
+ * overflow in the intermediate sum.
+ *
+ * Compute average of unsigned input arguments \p x and \p y
+ * as ( \p x + \p y + 1 ) >> 1, avoiding overflow in the intermediate
+ * sum.
+ *
+ * \return Returns an unsigned integer value representing the unsigned
+ * rounded average value of the two inputs.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __urhadd(unsigned int x, unsigned int y);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a double to a signed int in round-towards-zero mode.
+ *
+ * Convert the double-precision floating-point value \p x to a
+ * signed integer value in round-towards-zero mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __double2int_rz(double x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a double to an unsigned int in round-towards-zero mode.
+ *
+ * Convert the double-precision floating-point value \p x to an
+ * unsigned integer value in round-towards-zero mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __double2uint_rz(double x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a double to a signed 64-bit int in round-towards-zero mode.
+ *
+ * Convert the double-precision floating-point value \p x to a
+ * signed 64-bit integer value in round-towards-zero mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ long long int __double2ll_rz(double x);
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_CAST
+ * \brief Convert a double to an unsigned 64-bit int in round-towards-zero mode.
+ *
+ * Convert the double-precision floating-point value \p x to an
+ * unsigned 64-bit integer value in round-towards-zero mode.
+ * \return Returns converted value.
+ * \note_fp_to_int_out_of_range_undefined
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned long long int __double2ull_rz(double x);
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __pm0(void);
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __pm1(void);
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __pm2(void);
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __pm3(void);
+
+/*******************************************************************************
+ * *
+ * FP16 SIMD functions *
+ * *
+ *******************************************************************************/
+
+ // #include "fp16.h"
+
+
+/*******************************************************************************
+ * *
+ * SIMD functions *
+ * *
+ *******************************************************************************/
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-halfword absolute value: |a|.
+ *
+ * Splits 4 bytes of argument into 2 parts, each consisting of 2 bytes,
+ * then computes absolute value for each of parts.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vabs2(unsigned int a);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-halfword absolute value with signed saturation: |a|.
+ *
+ * Splits 4 bytes of argument into 2 parts, each consisting of 2 bytes,
+ * then computes absolute value with signed saturation for each of parts.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vabsss2(unsigned int a);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword (un)signed addition, with wrap-around: a + b.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes,
+ * then performs unsigned addition on corresponding parts.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vadd2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword addition with signed saturation: a + b.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes,
+ * then performs addition with signed saturation on corresponding parts.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vaddss2 (unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword addition with unsigned saturation: a + b.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes,
+ * then performs addition with unsigned saturation on corresponding parts.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vaddus2 (unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword signed rounded average computation.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes,
+ * then computes signed rounded average of corresponding parts. Partial results are
+ * recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vavgs2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword unsigned rounded average computation.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes,
+ * then computes unsigned rounded average of corresponding parts. Partial results are
+ * recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vavgu2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword unsigned average computation.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes,
+ * then computes unsigned average of corresponding parts. Partial results are
+ * recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vhaddu2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword (un)signed comparison: a == b ? 0xffff : 0.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts result is ffff if they are equal, and 0000 otherwise.
+ * For example __vcmpeq2(0x1234aba5, 0x1234aba6) returns 0xffff0000.
+ * \return Returns 0xffff computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpeq2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword signed comparison: a >= b ? 0xffff : 0.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts result is ffff if 'a' part >= 'b' part, and 0000 otherwise.
+ * For example __vcmpges2(0x1234aba5, 0x1234aba6) returns 0xffff0000.
+ * \return Returns 0xffff if a >= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpges2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword unsigned comparison: a >= b ? 0xffff : 0.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts result is ffff if 'a' part >= 'b' part, and 0000 otherwise.
+ * For example __vcmpgeu2(0x1234aba5, 0x1234aba6) returns 0xffff0000.
+ * \return Returns 0xffff if a >= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpgeu2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword signed comparison: a > b ? 0xffff : 0.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts result is ffff if 'a' part > 'b' part, and 0000 otherwise.
+ * For example __vcmpgts2(0x1234aba5, 0x1234aba6) returns 0x00000000.
+ * \return Returns 0xffff if a > b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpgts2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword unsigned comparison: a > b ? 0xffff : 0.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts result is ffff if 'a' part > 'b' part, and 0000 otherwise.
+ * For example __vcmpgtu2(0x1234aba5, 0x1234aba6) returns 0x00000000.
+ * \return Returns 0xffff if a > b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpgtu2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword signed comparison: a <= b ? 0xffff : 0.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts result is ffff if 'a' part <= 'b' part, and 0000 otherwise.
+ * For example __vcmples2(0x1234aba5, 0x1234aba6) returns 0xffffffff.
+ * \return Returns 0xffff if a <= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmples2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword unsigned comparison: a <= b ? 0xffff : 0.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts result is ffff if 'a' part <= 'b' part, and 0000 otherwise.
+ * For example __vcmpleu2(0x1234aba5, 0x1234aba6) returns 0xffffffff.
+ * \return Returns 0xffff if a <= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpleu2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword signed comparison: a < b ? 0xffff : 0.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts result is ffff if 'a' part < 'b' part, and 0000 otherwise.
+ * For example __vcmplts2(0x1234aba5, 0x1234aba6) returns 0x0000ffff.
+ * \return Returns 0xffff if a < b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmplts2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword unsigned comparison: a < b ? 0xffff : 0.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts result is ffff if 'a' part < 'b' part, and 0000 otherwise.
+ * For example __vcmpltu2(0x1234aba5, 0x1234aba6) returns 0x0000ffff.
+ * \return Returns 0xffff if a < b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpltu2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword (un)signed comparison: a != b ? 0xffff : 0.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts result is ffff if 'a' part != 'b' part, and 0000 otherwise.
+ * For example __vcmplts2(0x1234aba5, 0x1234aba6) returns 0x0000ffff.
+ * \return Returns 0xffff if a != b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpne2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-halfword absolute difference of unsigned integer: |a - b|.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function computes absolute difference. Partial results
+ * are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vabsdiffu2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword signed maximum computation.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function computes signed maximum. Partial results
+ * are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vmaxs2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword unsigned maximum computation.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function computes unsigned maximum. Partial results
+ * are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vmaxu2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword signed minimum computation.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function computes signed minimum. Partial results
+ * are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vmins2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword unsigned minimum computation.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function computes unsigned minimum. Partial results
+ * are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vminu2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword (un)signed comparison: returns 1 if both parts compare equal.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function performs comparison 'a' part == 'b' part.
+ * If both equalities are satisfied, function returns 1.
+ * \return Returns 1 if a = b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vseteq2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword signed comparison: returns 1 if both parts compare greater than or equal.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function performs comparison 'a' part >= 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a >= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetges2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword unsigned comparison: returns 1 if both parts compare greater than or equal.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function performs comparison 'a' part >= 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a >= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetgeu2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword signed comparison: returns 1 if both parts compare greater than.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function performs comparison 'a' part > 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a > b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetgts2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword unsigned comparison: returns 1 if both parts compare greater than.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function performs comparison 'a' part > 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a > b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetgtu2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword unsigned comparison: returns 1 if both parts compare less than or equal.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function performs comparison 'a' part <= 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a <= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetles2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword signed comparison: returns 1 if both parts compare less than or equal.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function performs comparison 'a' part <= 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a <= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetleu2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword signed comparison: returns 1 if both parts compare less than.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function performs comparison 'a' part <= 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a < b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetlts2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword unsigned comparison: returns 1 if both parts compare less than.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function performs comparison 'a' part <= 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a < b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetltu2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword (un)signed comparison: returns 1 if both parts compare not equal.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function performs comparison 'a' part != 'b' part.
+ * If both conditions are satisfied, function returns 1.
+ * \return Returns 1 if a != b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetne2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-halfword sum of abs diff of unsigned.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function computes absolute differences and returns
+ * sum of those differences.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsadu2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword (un)signed subtraction, with wrap-around: a - b.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function performs subtraction. Partial results
+ * are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsub2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword (un)signed subtraction, with signed saturation: a - b.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function performs subtraction with signed saturation.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsubss2 (unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword subtraction with unsigned saturation: a - b.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function performs subtraction with unsigned saturation.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsubus2 (unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-halfword negation.
+ *
+ * Splits 4 bytes of argument into 2 parts, each consisting of 2 bytes.
+ * For each part function computes negation. Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vneg2(unsigned int a);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-halfword negation with signed saturation.
+ *
+ * Splits 4 bytes of argument into 2 parts, each consisting of 2 bytes.
+ * For each part function computes negation. Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vnegss2(unsigned int a);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-halfword absolute difference of signed integer: |a - b|.
+ *
+ * Splits 4 bytes of each into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function computes absolute difference.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vabsdiffs2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword sum of absolute difference of signed.
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * For corresponding parts function computes absolute difference and sum it up.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsads2(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-byte absolute value: |a|.
+ *
+ * Splits argument by bytes. Computes absolute value of each byte.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vabs4(unsigned int a);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-byte absolute value with signed saturation: |a|.
+ *
+ * Splits 4 bytes of argument into 4 parts, each consisting of 1 byte,
+ * then computes absolute value with signed saturation for each of parts.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vabsss4(unsigned int a);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte (un)signed addition: a + b.
+ *
+ * Splits 'a' into 4 bytes, then performs unsigned addition on each of these
+ * bytes with the corresponding byte from 'b', ignoring overflow.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vadd4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte addition with signed saturation: a + b.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte,
+ * then performs addition with signed saturation on corresponding parts.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vaddss4 (unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte addition with unsigned saturation: a + b.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte,
+ * then performs addition with unsigned saturation on corresponding parts.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vaddus4 (unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-byte signed rounded average.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * then computes signed rounded average of corresponding parts. Partial results are
+ * recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vavgs4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte unsigned rounded average.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * then computes unsigned rounded average of corresponding parts. Partial results are
+ * recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vavgu4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-byte unsigned average.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * then computes unsigned average of corresponding parts. Partial results are
+ * recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vhaddu4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte (un)signed comparison: a == b ? 0xff : 0.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts result is ff if they are equal, and 00 otherwise.
+ * For example __vcmpeq4(0x1234aba5, 0x1234aba6) returns 0xffffff00.
+ * \return Returns 0xff if a = b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpeq4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte signed comparison: a >= b ? 0xff : 0.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts result is ff if 'a' part >= 'b' part, and 00 otherwise.
+ * For example __vcmpges4(0x1234aba5, 0x1234aba6) returns 0xffffff00.
+ * \return Returns 0xff if a >= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpges4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte unsigned comparison: a >= b ? 0xff : 0.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts result is ff if 'a' part >= 'b' part, and 00 otherwise.
+ * For example __vcmpgeu4(0x1234aba5, 0x1234aba6) returns 0xffffff00.
+ * \return Returns 0xff if a >= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpgeu4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte signed comparison: a > b ? 0xff : 0.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts result is ff if 'a' part > 'b' part, and 00 otherwise.
+ * For example __vcmpgts4(0x1234aba5, 0x1234aba6) returns 0x00000000.
+ * \return Returns 0xff if a > b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpgts4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte unsigned comparison: a > b ? 0xff : 0.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts result is ff if 'a' part > 'b' part, and 00 otherwise.
+ * For example __vcmpgtu4(0x1234aba5, 0x1234aba6) returns 0x00000000.
+ * \return Returns 0xff if a > b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpgtu4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte signed comparison: a <= b ? 0xff : 0.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts result is ff if 'a' part <= 'b' part, and 00 otherwise.
+ * For example __vcmples4(0x1234aba5, 0x1234aba6) returns 0xffffffff.
+ * \return Returns 0xff if a <= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmples4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte unsigned comparison: a <= b ? 0xff : 0.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts result is ff if 'a' part <= 'b' part, and 00 otherwise.
+ * For example __vcmpleu4(0x1234aba5, 0x1234aba6) returns 0xffffffff.
+ * \return Returns 0xff if a <= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpleu4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte signed comparison: a < b ? 0xff : 0.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts result is ff if 'a' part < 'b' part, and 00 otherwise.
+ * For example __vcmplts4(0x1234aba5, 0x1234aba6) returns 0x000000ff.
+ * \return Returns 0xff if a < b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmplts4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte unsigned comparison: a < b ? 0xff : 0.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts result is ff if 'a' part < 'b' part, and 00 otherwise.
+ * For example __vcmpltu4(0x1234aba5, 0x1234aba6) returns 0x000000ff.
+ * \return Returns 0xff if a < b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpltu4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte (un)signed comparison: a != b ? 0xff : 0.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts result is ff if 'a' part != 'b' part, and 00 otherwise.
+ * For example __vcmplts4(0x1234aba5, 0x1234aba6) returns 0x000000ff.
+ * \return Returns 0xff if a != b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vcmpne4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-byte absolute difference of unsigned integer: |a - b|.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function computes absolute difference. Partial results
+ * are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vabsdiffu4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-byte signed maximum.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function computes signed maximum. Partial results
+ * are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vmaxs4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-byte unsigned maximum.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function computes unsigned maximum. Partial results
+ * are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vmaxu4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-byte signed minimum.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function computes signed minimum. Partial results
+ * are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vmins4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-byte unsigned minimum.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function computes unsigned minimum. Partial results
+ * are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vminu4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte (un)signed comparison: returns 1 if all 4 pairs compare equal.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function performs comparison 'a' part == 'b' part.
+ * If both equalities are satisfied, function returns 1.
+ * \return Returns 1 if a = b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vseteq4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte signed comparison: returns 1 if all 4 pairs compare less than or equal.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function performs comparison 'a' part <= 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a <= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetles4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte unsigned comparison: returns 1 if all 4 pairs compare less than or equal.
+ *
+ * Splits 4 bytes of each argument into 4 part, each consisting of 1 byte.
+ * For corresponding parts function performs comparison 'a' part <= 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a <= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetleu4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte signed comparison: returns 1 if all 4 pairs compare less than.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function performs comparison 'a' part <= 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a < b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetlts4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte unsigned comparison: returns 1 if all 4 pairs compare less than.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function performs comparison 'a' part <= 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a < b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetltu4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte signed comparison: returns 1 if all 4 pairs compare greater than or equal.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function performs comparison 'a' part >= 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a >= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetges4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte unsigned comparison: returns 1 if all 4 pairs compare greater than or equal.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function performs comparison 'a' part >= 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a >= b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetgeu4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte signed comparison: returns 1 if all 4 pairs compare greater than.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function performs comparison 'a' part > 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a > b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetgts4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte unsigned comparison: returns 1 if all 4 pairs compare greater than.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function performs comparison 'a' part > 'b' part.
+ * If both inequalities are satisfied, function returns 1.
+ * \return Returns 1 if a > b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetgtu4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte (un)signed comparison: returns 1 if all 4 pairs compare not equal.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function performs comparison 'a' part != 'b' part.
+ * If both conditions are satisfied, function returns 1.
+ * \return Returns 1 if a != b, else returns 0.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsetne4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-byte sum of abs difference of unsigned.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function computes absolute differences and returns
+ * sum of those differences.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsadu4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte subtraction: a - b.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function performs subtraction. Partial results
+ * are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsub4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte subtraction with signed saturation: a - b.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function performs subtraction with signed saturation.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsubss4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte subtraction with unsigned saturation: a - b.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function performs subtraction with unsigned saturation.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsubus4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte negation.
+ *
+ * Splits 4 bytes of argument into 4 parts, each consisting of 1 byte.
+ * For each part function computes negation. Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vneg4(unsigned int a);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-byte negation with signed saturation.
+ *
+ * Splits 4 bytes of argument into 4 parts, each consisting of 1 byte.
+ * For each part function computes negation. Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vnegss4(unsigned int a);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-byte absolute difference of signed integer: |a - b|.
+ *
+ * Splits 4 bytes of each into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function computes absolute difference.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vabsdiffs4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes per-byte sum of abs difference of signed.
+ *
+ * Splits 4 bytes of each argument into 4 parts, each consisting of 1 byte.
+ * For corresponding parts function computes absolute difference and sum it up.
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int __vsads4(unsigned int a, unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes max(max(a, b), 0)
+ *
+ * Calculates the maximum of \p a and \p b of two signed ints, if this is less than \p 0 then \p 0 is returned.
+ * \return Returns computed value.
+ */
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimax_s32_relu(const int a, const int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword max(max(a, b), 0)
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as signed shorts.
+ * For corresponding parts function performs a max with relu ( = max(a_part, b_part, 0) ). Partial results
+ * are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimax_s16x2_relu(const unsigned int a, const unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes max(min(a, b), 0)
+ *
+ * Calculates the minimum of \p a and \p b of two signed ints, if this is less than \p 0 then \p 0 is returned.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimin_s32_relu(const int a, const int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword max(min(a, b), 0)
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as signed shorts.
+ * For corresponding parts function performs a min with relu ( = max(min(a_part, b_part), 0) ). Partial results
+ * are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimin_s16x2_relu(const unsigned int a, const unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes max(max(a, b), c)
+ *
+ * Calculates the 3-way max of signed integers \p a, \p b and \p c.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimax3_s32(const int a, const int b, const int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword max(max(a, b), c)
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as signed shorts.
+ * For corresponding parts function performs a 3-way max ( = max(max(a_part, b_part), c_part) ).
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimax3_s16x2(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes max(max(a, b), c)
+ *
+ * Calculates the 3-way max of unsigned integers \p a, \p b and \p c.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimax3_u32(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword max(max(a, b), c)
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as unsigned shorts.
+ * For corresponding parts function performs a 3-way max ( = max(max(a_part, b_part), c_part) ).
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimax3_u16x2(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes min(min(a, b), c)
+ *
+ * Calculates the 3-way min of signed integers \p a, \p b and \p c.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimin3_s32(const int a, const int b, const int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword min(min(a, b), c)
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as signed shorts.
+ * For corresponding parts function performs a 3-way min ( = min(min(a_part, b_part), c_part) ).
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimin3_s16x2(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes min(min(a, b), c)
+ *
+ * Calculates the 3-way min of unsigned integers \p a, \p b and \p c.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimin3_u32(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword min(min(a, b), c)
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as unsigned shorts.
+ * For corresponding parts function performs a 3-way min ( = min(min(a_part, b_part), c_part) ).
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimin3_u16x2(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes max(max(max(a, b), c), 0)
+ *
+ * Calculates the maximum of three signed ints, if this is less than \p 0 then \p 0 is returned.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimax3_s32_relu(const int a, const int b, const int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword max(max(max(a, b), c), 0)
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as signed shorts.
+ * For corresponding parts function performs a three-way max with relu ( = max(a_part, b_part, c_part, 0) ).
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimax3_s16x2_relu(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes max(min(min(a, b), c), 0)
+ *
+ * Calculates the minimum of three signed ints, if this is less than \p 0 then \p 0 is returned.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimin3_s32_relu(const int a, const int b, const int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword max(min(min(a, b), c), 0)
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as signed shorts.
+ * For corresponding parts function performs a three-way min with relu ( = max(min(a_part, b_part, c_part), 0) ).
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimin3_s16x2_relu(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes max(a + b, c)
+ *
+ * Calculates the sum of signed integers \p a and \p b and takes the max with \p c.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __viaddmax_s32(const int a, const int b, const int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword max(a + b, c)
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as signed shorts.
+ * For corresponding parts function performs an add and compare: max(a_part + b_part), c_part)
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmax_s16x2(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes max(a + b, c)
+ *
+ * Calculates the sum of unsigned integers \p a and \p b and takes the max with \p c.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmax_u32(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword max(a + b, c)
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as unsigned shorts.
+ * For corresponding parts function performs an add and compare: max(a_part + b_part), c_part)
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmax_u16x2(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes min(a + b, c)
+ *
+ * Calculates the sum of signed integers \p a and \p b and takes the min with \p c.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __viaddmin_s32(const int a, const int b, const int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword min(a + b, c)
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as signed shorts.
+ * For corresponding parts function performs an add and compare: min(a_part + b_part), c_part)
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmin_s16x2(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes min(a + b, c)
+ *
+ * Calculates the sum of unsigned integers \p a and \p b and takes the min with \p c.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmin_u32(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword min(a + b, c)
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as unsigned shorts.
+ * For corresponding parts function performs an add and compare: min(a_part + b_part), c_part)
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmin_u16x2(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes max(max(a + b, c), 0)
+ *
+ * Calculates the sum of signed integers \p a and \p b and takes the max with \p c.
+ * If the result is less than \p 0 then \p 0 is returned.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __viaddmax_s32_relu(const int a, const int b, const int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword max(max(a + b, c), 0)
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as signed shorts.
+ * For corresponding parts function performs an add, followed by a max with relu: max(max(a_part + b_part), c_part), 0)
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmax_s16x2_relu(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes max(min(a + b, c), 0)
+ *
+ * Calculates the sum of signed integers \p a and \p b and takes the min with \p c.
+ * If the result is less than \p 0 then \p 0 is returned.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __viaddmin_s32_relu(const int a, const int b, const int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword max(min(a + b, c), 0)
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as signed shorts.
+ * For corresponding parts function performs an add, followed by a min with relu: max(min(a_part + b_part), c_part), 0)
+ * Partial results are recombined and returned as unsigned int.
+ * \return Returns computed value.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmin_s16x2_relu(const unsigned int a, const unsigned int b, const unsigned int c);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes max(a, b), also sets the value pointed to by pred to (a >= b).
+ *
+ * Calculates the maximum of \p a and \p b of two signed ints. Also sets the value pointed to by \p pred to the value (a >= b).
+ * \return Returns computed values.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vibmax_s32(const int a, const int b, bool* const pred);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes max(a, b), also sets the value pointed to by pred to (a >= b).
+ *
+ * Calculates the maximum of \p a and \p b of two unsigned ints. Also sets the value pointed to by \p pred to the value (a >= b).
+ * \return Returns computed values.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmax_u32(const unsigned int a, const unsigned int b, bool* const pred);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes min(a, b), also sets the value pointed to by pred to (a <= b).
+ *
+ * Calculates the minimum of \p a and \p b of two signed ints. Also sets the value pointed to by \p pred to the value (a <= b).
+ * \return Returns computed values.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vibmin_s32(const int a, const int b, bool* const pred);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Computes min(a, b), also sets the value pointed to by pred to (a <= b).
+ *
+ * Calculates the minimum of \p a and \p b of two unsigned ints. Also sets the value pointed to by \p pred to the value (a <= b).
+ * \return Returns computed values.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmin_u32(const unsigned int a, const unsigned int b, bool* const pred);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword max(a, b), also sets the value pointed to by pred_hi and pred_lo to the per-halfword result of (a >= b).
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as signed shorts.
+ * For corresponding parts function performs a maximum ( = max(a_part, b_part) ).
+ * Partial results are recombined and returned as unsigned int.
+ * Sets the value pointed to by \p pred_hi to the value (a_high_part >= b_high_part).
+ * Sets the value pointed to by \p pred_lo to the value (a_low_part >= b_low_part).
+ * \return Returns computed values.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmax_s16x2(const unsigned int a, const unsigned int b, bool* const pred_hi, bool* const pred_lo);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword max(a, b), also sets the value pointed to by pred_hi and pred_lo to the per-halfword result of (a >= b).
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as unsigned shorts.
+ * For corresponding parts function performs a maximum ( = max(a_part, b_part) ).
+ * Partial results are recombined and returned as unsigned int.
+ * Sets the value pointed to by \p pred_hi to the value (a_high_part >= b_high_part).
+ * Sets the value pointed to by \p pred_lo to the value (a_low_part >= b_low_part).
+ * \return Returns computed values.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmax_u16x2(const unsigned int a, const unsigned int b, bool* const pred_hi, bool* const pred_lo);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword min(a, b), also sets the value pointed to by pred_hi and pred_lo to the per-halfword result of (a <= b).
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as signed shorts.
+ * For corresponding parts function performs a maximum ( = max(a_part, b_part) ).
+ * Partial results are recombined and returned as unsigned int.
+ * Sets the value pointed to by \p pred_hi to the value (a_high_part <= b_high_part).
+ * Sets the value pointed to by \p pred_lo to the value (a_low_part <= b_low_part).
+ * \return Returns computed values.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmin_s16x2(const unsigned int a, const unsigned int b, bool* const pred_hi, bool* const pred_lo);
+
+/**
+ * \ingroup CUDA_MATH_INTRINSIC_SIMD
+ * \brief Performs per-halfword min(a, b), also sets the value pointed to by pred_hi and pred_lo to the per-halfword result of (a <= b).
+ *
+ * Splits 4 bytes of each argument into 2 parts, each consisting of 2 bytes.
+ * These 2 byte parts are interpreted as unsigned shorts.
+ * For corresponding parts function performs a maximum ( = max(a_part, b_part) ).
+ * Partial results are recombined and returned as unsigned int.
+ * Sets the value pointed to by \p pred_hi to the value (a_high_part <= b_high_part).
+ * Sets the value pointed to by \p pred_lo to the value (a_low_part <= b_low_part).
+ * \return Returns computed values.
+ */
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmin_u16x2(const unsigned int a, const unsigned int b, bool* const pred_hi, bool* const pred_lo);
+
+/*******************************************************************************
+ * *
+ * END SIMD functions *
+ * *
+ *******************************************************************************/
+} //extern "c"
+#undef EXCLUDE_FROM_RTC
+
+#undef __DEVICE_FUNCTIONS_DECL__
+#undef __DEVICE_FUNCTIONS_STATIC_DECL__
+#undef __DEVICE_HOST_FUNCTIONS_STATIC_DECL__
+
+#endif /* __cplusplus && __CUDACC__ */
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#if !defined(__CUDACC_RTC__)
+#include "device_functions.hpp"
+#endif /* !defined(__CUDACC_RTC__) */
+
+#include "device_atomic_functions.h"
+#include "device_double_functions.h"
+#include "sm_20_atomic_functions.h"
+#include "sm_32_atomic_functions.h"
+#include "sm_35_atomic_functions.h"
+#include "sm_60_atomic_functions.h"
+#include "sm_20_intrinsics.h"
+#include "sm_30_intrinsics.h"
+#include "sm_32_intrinsics.h"
+#include "sm_35_intrinsics.h"
+#include "sm_61_intrinsics.h"
+#include "sm_70_rt.h"
+#include "sm_80_rt.h"
+#include "sm_90_rt.h"
+#include "sm_100_rt.h"
+#ifndef __CUDACC_RTC_MINIMAL__
+#include "texture_indirect_functions.h"
+#include "surface_indirect_functions.h"
+#endif /* !__CUDACC_RTC_MINIMAL__ */
+#include "cudacc_ext.h"
+
+#ifdef __CUDACC__
+extern "C" __host__ __device__ unsigned CUDARTAPI __cudaPushCallConfiguration(dim3 gridDim,
+ dim3 blockDim,
+ size_t sharedMem = 0,
+ struct CUstream_st *stream = 0);
+
+#if !defined(__CUDACC_RTC__) &&!defined(__NV_LEGACY_LAUNCH)
+extern "C" cudaError_t CUDARTAPI __cudaGetKernel(cudaKernel_t *, const void *);
+
+extern "C" cudaError_t CUDARTAPI __cudaLaunchKernel(
+ cudaKernel_t kernel,
+ dim3 gridDim,
+ dim3 blockDim,
+ void **args,
+ size_t sharedMem,
+ cudaStream_t stream
+);
+
+extern "C" cudaError_t CUDARTAPI __cudaLaunchKernel_ptsz(
+ cudaKernel_t kernel,
+ dim3 gridDim,
+ dim3 blockDim,
+ void **args,
+ size_t sharedMem,
+ cudaStream_t stream
+);
+
+//referenced from compiler generated kernel launch code
+static inline cudaError_t __cudaLaunchKernel_helper(
+ cudaKernel_t kernel,
+ dim3 gridDim,
+ dim3 blockDim,
+ void **args,
+ size_t sharedMem,
+ cudaStream_t stream)
+{
+#if defined(__CUDART_API_PER_THREAD_DEFAULT_STREAM)
+ return __cudaLaunchKernel_ptsz(kernel, gridDim, blockDim, args, sharedMem,
+ stream);
+#else /* !__CUDART_API_PER_THREAD_DEFAULT_STREAM */
+ return __cudaLaunchKernel(kernel, gridDim, blockDim, args, sharedMem,
+ stream);
+#endif /* __CUDART_API_PER_THREAD_DEFAULT_STREAM */
+}
+#endif /* !defined(__CUDACC_RTC__) && !defined(__NV_LEGACY_LAUNCH) */
+
+enum {
+ __NV_ATOMIC_RELAXED,
+ __NV_ATOMIC_CONSUME,
+ __NV_ATOMIC_ACQUIRE,
+ __NV_ATOMIC_RELEASE,
+ __NV_ATOMIC_ACQ_REL,
+ __NV_ATOMIC_SEQ_CST
+};
+
+enum {
+ __NV_THREAD_SCOPE_THREAD,
+ __NV_THREAD_SCOPE_BLOCK,
+ __NV_THREAD_SCOPE_CLUSTER,
+ __NV_THREAD_SCOPE_DEVICE,
+ __NV_THREAD_SCOPE_SYSTEM
+};
+
+#endif /* __CUDACC__ */
+
+#endif /* !__DEVICE_FUNCTIONS_H__ */
+
+#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_FUNCTIONS_H__)
+#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_FUNCTIONS_H__
+#endif
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/device_functions.hpp b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/device_functions.hpp
new file mode 100644
index 0000000000000000000000000000000000000000..429b2298a8fdd95338c132996b1d9dca74130193
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/device_functions.hpp
@@ -0,0 +1,1163 @@
+/*
+ * Copyright 1993-2024 NVIDIA Corporation. All rights reserved.
+ *
+ * NOTICE TO LICENSEE:
+ *
+ * This source code and/or documentation ("Licensed Deliverables") are
+ * subject to NVIDIA intellectual property rights under U.S. and
+ * international Copyright laws.
+ *
+ * These Licensed Deliverables contained herein is PROPRIETARY and
+ * CONFIDENTIAL to NVIDIA and is being provided under the terms and
+ * conditions of a form of NVIDIA software license agreement by and
+ * between NVIDIA and Licensee ("License Agreement") or electronically
+ * accepted by Licensee. Notwithstanding any terms or conditions to
+ * the contrary in the License Agreement, reproduction or disclosure
+ * of the Licensed Deliverables to any third party without the express
+ * written consent of NVIDIA is prohibited.
+ *
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
+ * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
+ * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
+ * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
+ * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
+ * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
+ * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
+ * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+ * OF THESE LICENSED DELIVERABLES.
+ *
+ * U.S. Government End Users. These Licensed Deliverables are a
+ * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
+ * 1995), consisting of "commercial computer software" and "commercial
+ * computer software documentation" as such terms are used in 48
+ * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
+ * only as a commercial end item. Consistent with 48 C.F.R.12.212 and
+ * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
+ * U.S. Government End Users acquire the Licensed Deliverables with
+ * only those rights set forth herein.
+ *
+ * Any use of the Licensed Deliverables in individual and commercial
+ * software must include, in the user documentation and internal
+ * comments to the code, the above Disclaimer and U.S. Government End
+ * Users Notice.
+ */
+
+#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
+#if defined(_MSC_VER)
+#pragma message("crt/device_functions.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
+#else
+#warning "crt/device_functions.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
+#endif
+#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_FUNCTIONS_HPP__
+#endif
+
+#if !defined(__DEVICE_FUNCTIONS_HPP__)
+#define __DEVICE_FUNCTIONS_HPP__
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#if defined(__cplusplus) && defined(__CUDACC__)
+
+#if defined(__CUDACC_RTC__)
+#define __DEVICE_FUNCTIONS_DECL__ __device__
+#define __DEVICE_FUNCTIONS_STATIC_DECL__ __device__
+#define __DEVICE_HOST_FUNCTIONS_STATIC_DECL__ __device__ __host__ __cudart_builtin__
+#else
+#define __DEVICE_FUNCTIONS_DECL__ __device__
+#define __DEVICE_FUNCTIONS_STATIC_DECL__ static __inline__ __device__
+#define __DEVICE_HOST_FUNCTIONS_STATIC_DECL__ static __inline__ __device__ __host__ __cudart_builtin__
+#endif /* __CUDACC_RTC__ */
+
+#include "builtin_types.h"
+#include "device_types.h"
+#include "host_defines.h"
+
+#undef __DEVICE_FUNCTIONS_DECL__
+#undef __DEVICE_FUNCTIONS_STATIC_DECL__
+
+#endif /* __cplusplus && __CUDACC__ */
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#ifdef __CUDACC__
+# if defined(__CUDA_ARCH__) && (__CUDA_ARCH__ >= 900)
+#define __CUDA_AND_AT_LEAST_SM_90__
+#endif /* defined(__CUDA_ARCH__) && (__CUDA_ARCH__ >= 900) */
+# if defined(__CUDA_ARCH__) && (__CUDA_ARCH__ >= 700)
+#define __CUDA_AND_AT_LEAST_SM_70__
+#endif /* defined(__CUDA_ARCH__) && (__CUDA_ARCH__ >= 700) */
+# if defined(__CUDA_ARCH__) && (__CUDA_ARCH__ >= 750)
+#define __CUDA_AND_AT_LEAST_SM_75__
+#endif /* defined(__CUDA_ARCH__) && (__CUDA_ARCH__ >= 750) */
+#endif /* __CUDACC__ */
+
+/* C++ header for std::memcpy (used for type punning in host-side implementations).
+ * When compiling as a CUDA source file memcpy is provided implicitly.
+ * !defined(__CUDACC__) implies !defined(__CUDACC_RTC__).
+ */
+#if defined(__cplusplus) && !defined(__CUDACC__)
+#include
+#endif /* defined(__cplusplus) && !defined(__CUDACC__) */
+
+static __host__ __device__ short __internal_cast_u2s(unsigned short x)
+{
+ short res;
+#if defined(__CUDACC__)
+ (void)memcpy(&res, &x, sizeof(x));
+#else
+ (void)std::memcpy(&res, &x, sizeof(x));
+#endif
+ return res;
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimax_s32_relu(const int a, const int b){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ int res;
+ asm("{max.s32.relu %0, %1, %2;}" : "=r"(res) : "r"(a), "r"(b));
+ return res;
+#else
+ // Host and older architecture code
+ int ans = max(a, b);
+
+ return (ans > 0) ? ans : 0;
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimax_s16x2_relu(const unsigned int a, const unsigned int b){
+ unsigned int res;
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ asm("{max.s16x2.relu %0, %1, %2;}" : "=r"(res) : "r"(a), "r"(b));
+#elif defined(__CUDA_ARCH__)
+ res = __vmaxs2(__vmaxs2(a, b), 0U);
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ //cast to signed:
+ short aS_lo = __internal_cast_u2s(aU_lo);
+ short aS_hi = __internal_cast_u2s(aU_hi);
+
+ short bS_lo = __internal_cast_u2s(bU_lo);
+ short bS_hi = __internal_cast_u2s(bU_hi);
+
+ // Get answer
+ int ansI_lo = max(aS_lo, bS_lo);
+ int ansI_hi = max(aS_hi, bS_hi);
+
+ // relu
+ if(ansI_lo < 0){ ansI_lo = 0; }
+ if(ansI_hi < 0){ ansI_hi = 0; }
+
+ // Cast back to unsigned:
+ unsigned ansU_lo = (unsigned)ansI_lo;
+ unsigned ansU_hi = (unsigned)ansI_hi;
+
+ // Put answer back together:
+ res = ansU_lo | (ansU_hi << 16);
+#endif
+
+ return res;
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimin_s32_relu(const int a, const int b){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ int res;
+ asm("{min.s32.relu %0, %1, %2;}" : "=r"(res) : "r"(a), "r"(b));
+ return res;
+#else
+ // Host and older architecture code
+ int ans = min(a, b);
+
+ return (ans > 0) ? ans : 0;
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimin_s16x2_relu(const unsigned int a, const unsigned int b){
+ unsigned int res;
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ asm("{min.s16x2.relu %0, %1, %2;}" : "=r"(res) : "r"(a), "r"(b));
+#elif defined(__CUDA_ARCH__)
+ res = __vmaxs2(__vmins2(a, b), 0U);
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ //cast to signed:
+ short aS_lo = __internal_cast_u2s(aU_lo);
+ short aS_hi = __internal_cast_u2s(aU_hi);
+
+ short bS_lo = __internal_cast_u2s(bU_lo);
+ short bS_hi = __internal_cast_u2s(bU_hi);
+
+ // Get answer
+ int ansI_lo = min(aS_lo, bS_lo);
+ int ansI_hi = min(aS_hi, bS_hi);
+
+ // relu
+ if(ansI_lo < 0){ ansI_lo = 0; }
+ if(ansI_hi < 0){ ansI_hi = 0; }
+
+ // Cast back to unsigned:
+ unsigned ansU_lo = (unsigned)ansI_lo;
+ unsigned ansU_hi = (unsigned)ansI_hi;
+
+ // Put answer back together:
+ res = ansU_lo | (ansU_hi << 16);
+#endif
+
+ return res;
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimax3_s32(const int a, const int b, const int c){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ int res;
+ asm ("{.reg .s32 t1; \n\t"
+ "max.s32 t1, %1, %2; \n\t"
+ "max.s32 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+ return res;
+#else
+ // Host and older architecture code
+ return max(max(a, b), c);
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimax3_s16x2(const unsigned int a, const unsigned int b, const unsigned int c){
+ unsigned int res;
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ // Future asm code (naming/syntax may change):
+ asm ("{.reg .b32 t1; \n\t"
+ "max.s16x2 t1, %1, %2; \n\t"
+ "max.s16x2 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+#elif defined(__CUDA_AND_AT_LEAST_SM_70__)
+ res = __vmaxs2(__vmaxs2(a, b), c);
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
+ unsigned short cU_hi = (unsigned short)(c >> 16);
+
+ //cast to signed:
+ short aS_lo = __internal_cast_u2s(aU_lo);
+ short aS_hi = __internal_cast_u2s(aU_hi);
+
+ short bS_lo = __internal_cast_u2s(bU_lo);
+ short bS_hi = __internal_cast_u2s(bU_hi);
+
+ short cS_lo = __internal_cast_u2s(cU_lo);
+ short cS_hi = __internal_cast_u2s(cU_hi);
+
+ // Get answer
+ unsigned int ansU_lo = (unsigned int)max(max(aS_lo, bS_lo), cS_lo);
+ unsigned int ansU_hi = (unsigned int)max(max(aS_hi, bS_hi), cS_hi);
+
+ // Put answer back together:
+ res = (ansU_lo & 0x0000FFFFU) | (ansU_hi << 16);
+#endif
+ return res;
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimax3_u32(const unsigned int a, const unsigned int b, const unsigned int c){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+int res;
+ asm ("{.reg .u32 t1; \n\t"
+ "max.u32 t1, %1, %2; \n\t"
+ "max.u32 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+ return res;
+#else
+ // Host and older architecture code
+ return max(max(a, b), c);
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimax3_u16x2(const unsigned int a, const unsigned int b, const unsigned int c){
+ unsigned int res;
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ asm ("{.reg .b32 t1; \n\t"
+ "max.u16x2 t1, %1, %2; \n\t"
+ "max.u16x2 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+#elif defined(__CUDA_ARCH__)
+ res = __vmaxu2(__vmaxu2(a, b), c);
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
+ unsigned short cU_hi = (unsigned short)(c >> 16);
+
+ // Get answer
+ unsigned short ansU_lo = (unsigned short)max(max(aU_lo, bU_lo), cU_lo);
+ unsigned short ansU_hi = (unsigned short)max(max(aU_hi, bU_hi), cU_hi);
+
+ // Put answer back together:
+ res = ((unsigned int) ansU_lo) | (((unsigned int) ansU_hi) << 16);
+#endif
+
+ return res;
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimin3_s32(const int a, const int b, const int c){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ int res;
+ asm ("{.reg .s32 t1; \n\t"
+ "min.s32 t1, %1, %2; \n\t"
+ "min.s32 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+ return res;
+#else
+ // Host and older architecture code
+ return min(min(a, b), c);
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimin3_s16x2(const unsigned int a, const unsigned int b, const unsigned int c){
+ unsigned int res;
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ asm ("{.reg .b32 t1; \n\t"
+ "min.s16x2 t1, %1, %2; \n\t"
+ "min.s16x2 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+#elif defined(__CUDA_AND_AT_LEAST_SM_70__)
+ res = __vmins2(__vmins2(a, b), c);
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
+ unsigned short cU_hi = (unsigned short)(c >> 16);
+
+ //cast to signed:
+ short aS_lo = __internal_cast_u2s(aU_lo);
+ short aS_hi = __internal_cast_u2s(aU_hi);
+
+ short bS_lo = __internal_cast_u2s(bU_lo);
+ short bS_hi = __internal_cast_u2s(bU_hi);
+
+ short cS_lo = __internal_cast_u2s(cU_lo);
+ short cS_hi = __internal_cast_u2s(cU_hi);
+
+ // Get answer
+ unsigned int ansU_lo = (unsigned int)min(min(aS_lo, bS_lo), cS_lo);
+ unsigned int ansU_hi = (unsigned int)min(min(aS_hi, bS_hi), cS_hi);
+
+ // Put answer back together:
+ res = (ansU_lo & 0x0000FFFFU) | (ansU_hi << 16);
+#endif
+
+ return res;
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimin3_u32(const unsigned int a, const unsigned int b, const unsigned int c){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ int res;
+ asm ("{.reg .u32 t1; \n\t"
+ "min.u32 t1, %1, %2; \n\t"
+ "min.u32 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+ return res;
+#else
+ // Host and older architecture code
+ return min(min(a, b), c);
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimin3_u16x2(const unsigned int a, const unsigned int b, const unsigned int c){
+ unsigned int res;
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ asm ("{.reg .b32 t1; \n\t"
+ "min.u16x2 t1, %1, %2; \n\t"
+ "min.u16x2 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+#elif defined(__CUDA_ARCH__)
+ res = __vminu2(__vminu2(a, b), c);
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
+ unsigned short cU_hi = (unsigned short)(c >> 16);
+
+ // Get answer
+ unsigned short ansU_lo = (unsigned short)min(min(aU_lo, bU_lo), cU_lo);
+ unsigned short ansU_hi = (unsigned short)min(min(aU_hi, bU_hi), cU_hi);
+
+ // Put answer back together:
+ res = ((unsigned int) ansU_lo) | (((unsigned int) ansU_hi) << 16);
+#endif
+
+ return res;
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimax3_s32_relu(const int a, const int b, const int c){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ int res;
+ asm ("{.reg .s32 t1; \n\t"
+ "max.s32.relu t1, %1, %2; \n\t"
+ "max.s32.relu %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+ return res;
+#else
+ // Host and older architecture code
+ int ans = max(max(a, b), c);
+
+ return (ans > 0) ? ans : 0;
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimax3_s16x2_relu(const unsigned int a, const unsigned int b, const unsigned int c){
+ unsigned int res;
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ asm ("{.reg .b32 t1; \n\t"
+ "max.s16x2.relu t1, %1, %2; \n\t"
+ "max.s16x2.relu %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+#elif defined(__CUDA_AND_AT_LEAST_SM_75__)
+ res = __vimax_s16x2_relu(__vmaxs2(a, b), c);
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
+ unsigned short cU_hi = (unsigned short)(c >> 16);
+
+ //cast to signed:
+ short aS_lo = __internal_cast_u2s(aU_lo);
+ short aS_hi = __internal_cast_u2s(aU_hi);
+
+ short bS_lo = __internal_cast_u2s(bU_lo);
+ short bS_hi = __internal_cast_u2s(bU_hi);
+
+ short cS_lo = __internal_cast_u2s(cU_lo);
+ short cS_hi = __internal_cast_u2s(cU_hi);
+
+ // Get answer
+ unsigned ansU_lo = (unsigned)max(0, max(max(aS_lo, bS_lo), cS_lo));
+ unsigned ansU_hi = (unsigned)max(0, max(max(aS_hi, bS_hi), cS_hi));
+
+ // Put answer back together:
+ res = ansU_lo | (ansU_hi << 16);
+#endif
+
+ return res;
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimin3_s32_relu(const int a, const int b, const int c){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ int res;
+ asm ("{.reg .s32 t1; \n\t"
+ "min.s32.relu t1, %1, %2; \n\t"
+ "min.s32.relu %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+ return res;
+#else
+ // Host and older architecture code
+ int ans = min(min(a, b), c);
+
+ return (ans > 0) ? ans : 0;
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimin3_s16x2_relu(const unsigned int a, const unsigned int b, const unsigned int c){
+ unsigned res;
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ asm ("{.reg .b32 t1; \n\t"
+ "min.s16x2.relu t1, %1, %2; \n\t"
+ "min.s16x2.relu %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+#elif defined(__CUDA_AND_AT_LEAST_SM_75__)
+ res = __vimin_s16x2_relu(__vmins2(a, b), c);
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
+ unsigned short cU_hi = (unsigned short)(c >> 16);
+
+ //cast to signed:
+ short aS_lo = __internal_cast_u2s(aU_lo);
+ short aS_hi = __internal_cast_u2s(aU_hi);
+
+ short bS_lo = __internal_cast_u2s(bU_lo);
+ short bS_hi = __internal_cast_u2s(bU_hi);
+
+ short cS_lo = __internal_cast_u2s(cU_lo);
+ short cS_hi = __internal_cast_u2s(cU_hi);
+
+ // Get answer
+ unsigned ansU_lo = (unsigned)max(0, min(min(aS_lo, bS_lo), cS_lo));
+ unsigned ansU_hi = (unsigned)max(0, min(min(aS_hi, bS_hi), cS_hi));
+
+ // Put answer back together:
+ res = ansU_lo | (ansU_hi << 16);
+
+#endif
+
+ return res;
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __viaddmax_s32(const int a, const int b, const int c){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ int res;
+ asm ("{.reg .s32 t1; \n\t"
+ "add.s32 t1, %1, %2; \n\t"
+ "max.s32 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+ return res;
+#else
+ // Host and older architecture code
+ return max(a + b, c);
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmax_s16x2(const unsigned int a, const unsigned int b, const unsigned int c){
+ unsigned int res;
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ asm ("{.reg .b32 t1; \n\t"
+ "add.s16x2 t1, %1, %2; \n\t"
+ "max.s16x2 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+#elif defined(__CUDA_ARCH__)
+ res = __vmaxs2(__vadd2(a, b), c);
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
+ unsigned short cU_hi = (unsigned short)(c >> 16);
+
+ aU_lo += bU_lo;
+ aU_hi += bU_hi;
+
+ //cast to signed:
+ short sS_lo = __internal_cast_u2s(aU_lo);
+ short sS_hi = __internal_cast_u2s(aU_hi);
+
+ short cS_lo = __internal_cast_u2s(cU_lo);
+ short cS_hi = __internal_cast_u2s(cU_hi);
+
+ // Get answer
+ unsigned ansU_lo = (unsigned)max(sS_lo, cS_lo);
+ unsigned ansU_hi = (unsigned)max(sS_hi, cS_hi);
+
+ // Put answer back together:
+ res = (ansU_lo & 0x0000FFFFU) | (ansU_hi << 16);
+#endif
+
+ return res;
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmax_u32(const unsigned int a, const unsigned int b, const unsigned int c){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ unsigned int res;
+ asm ("{.reg .u32 t1; \n\t"
+ "add.u32 t1, %1, %2; \n\t"
+ "max.u32 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+ return res;
+#else
+ // Host and older architecture code
+ return max(a + b, c);
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmax_u16x2(const unsigned int a, const unsigned int b, const unsigned int c){
+ unsigned int res;
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ asm ("{.reg .b32 t1; \n\t"
+ "add.u16x2 t1, %1, %2; \n\t"
+ "max.u16x2 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+#elif defined(__CUDA_ARCH__)
+ res = __vmaxu2(__vadd2(a, b), c);
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
+ unsigned short cU_hi = (unsigned short)(c >> 16);
+
+ // Get answer
+ unsigned short ansU_lo = (unsigned short)max((unsigned short)(aU_lo + bU_lo), cU_lo);
+ unsigned short ansU_hi = (unsigned short)max((unsigned short)(aU_hi + bU_hi), cU_hi);
+
+ // Put answer back together:
+ res = ((unsigned int) ansU_lo) | (((unsigned int) ansU_hi) << 16);
+#endif
+
+ return res;
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __viaddmin_s32(const int a, const int b, const int c){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ int res;
+ asm ("{.reg .s32 t1; \n\t"
+ "add.s32 t1, %1, %2; \n\t"
+ "min.s32 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+ return res;
+#else
+ // Host and older architecture code
+ return min(a + b, c);
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmin_s16x2(const unsigned int a, const unsigned int b, const unsigned int c){
+ unsigned int res;
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ asm ("{.reg .b32 t1; \n\t"
+ "add.s16x2 t1, %1, %2; \n\t"
+ "min.s16x2 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+#elif defined(__CUDA_ARCH__)
+ res = __vmins2(__vadd2(a, b), c);
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
+ unsigned short cU_hi = (unsigned short)(c >> 16);
+
+ aU_lo += bU_lo;
+ aU_hi += bU_hi;
+
+ //cast to signed:
+ short sS_lo = __internal_cast_u2s(aU_lo);
+ short sS_hi = __internal_cast_u2s(aU_hi);
+
+ short cS_lo = __internal_cast_u2s(cU_lo);
+ short cS_hi = __internal_cast_u2s(cU_hi);
+
+ // Get answer
+ unsigned ansU_lo = (unsigned)min(sS_lo, cS_lo);
+ unsigned ansU_hi = (unsigned)min(sS_hi, cS_hi);
+
+ // Put answer back together:
+ res = (ansU_lo & 0x0000FFFFU) | (ansU_hi << 16);
+#endif
+
+ return res;
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmin_u32(const unsigned int a, const unsigned int b, const unsigned int c){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ unsigned int res;
+ asm ("{.reg .u32 t1; \n\t"
+ "add.u32 t1, %1, %2; \n\t"
+ "min.u32 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+ return res;
+#else
+ // Host and older architecture code
+ return min(a + b, c);
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmin_u16x2(const unsigned int a, const unsigned int b, const unsigned int c){
+ unsigned int res;
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ asm ("{.reg .b32 t1; \n\t"
+ "add.u16x2 t1, %1, %2; \n\t"
+ "min.u16x2 %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+#elif defined(__CUDA_ARCH__)
+ res = __vminu2(__vadd2(a, b), c);
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
+ unsigned short cU_hi = (unsigned short)(c >> 16);
+
+ // Get answer
+ unsigned short ansU_lo = (unsigned short)min((unsigned short)(aU_lo + bU_lo), cU_lo);
+ unsigned short ansU_hi = (unsigned short)min((unsigned short)(aU_hi + bU_hi), cU_hi);
+
+ // Put answer back together:
+ res = ((unsigned int) ansU_lo) | (((unsigned int) ansU_hi) << 16);
+#endif
+
+ return res;
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __viaddmax_s32_relu(const int a, const int b, const int c){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ int res;
+ asm ("{.reg .s32 t1; \n\t"
+ "add.s32 t1, %1, %2; \n\t"
+ "max.s32.relu %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+ return res;
+#else
+ // Host and older architecture code
+ int ans = max(a + b, c);
+
+ return (ans > 0) ? ans : 0;
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmax_s16x2_relu(const unsigned int a, const unsigned int b, const unsigned int c){
+ unsigned int res;
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ asm ("{.reg .b32 t1; \n\t"
+ "add.s16x2 t1, %1, %2; \n\t"
+ "max.s16x2.relu %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+#elif defined(__CUDA_ARCH__)
+ res = __vimax_s16x2_relu(__vadd2(a, b), c);
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
+ unsigned short cU_hi = (unsigned short)(c >> 16);
+
+ aU_lo += bU_lo;
+ aU_hi += bU_hi;
+
+ //cast to signed:
+ short sS_lo = __internal_cast_u2s(aU_lo);
+ short sS_hi = __internal_cast_u2s(aU_hi);
+
+ short cS_lo = __internal_cast_u2s(cU_lo);
+ short cS_hi = __internal_cast_u2s(cU_hi);
+
+ // Get answer
+ unsigned ansU_lo = (unsigned)max(0, max(sS_lo, cS_lo));
+ unsigned ansU_hi = (unsigned)max(0, max(sS_hi, cS_hi));
+
+ // Put answer back together:
+ res = ansU_lo | (ansU_hi << 16);
+#endif
+
+ return res;
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __viaddmin_s32_relu(const int a, const int b, const int c){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ int res;
+ asm ("{.reg .s32 t1; \n\t"
+ "add.s32 t1, %1, %2; \n\t"
+ "min.s32.relu %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+ return res;
+#else
+ // Host and older architecture code
+ int ans = min(a + b, c);
+
+ return (ans > 0) ? ans : 0;
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmin_s16x2_relu(const unsigned int a, const unsigned int b, const unsigned int c){
+ unsigned int res;
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ asm ("{.reg .b32 t1; \n\t"
+ "add.s16x2 t1, %1, %2; \n\t"
+ "min.s16x2.relu %0, t1, %3;}\n\t"
+ : "=r"(res) : "r"(a), "r"(b), "r"(c));
+#elif defined(__CUDA_ARCH__)
+ res = __vimin_s16x2_relu(__vadd2(a, b), c);
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
+ unsigned short cU_hi = (unsigned short)(c >> 16);
+
+ aU_lo += bU_lo;
+ aU_hi += bU_hi;
+
+ //cast to signed:
+ short sS_lo = __internal_cast_u2s(aU_lo);
+ short sS_hi = __internal_cast_u2s(aU_hi);
+
+ short cS_lo = __internal_cast_u2s(cU_lo);
+ short cS_hi = __internal_cast_u2s(cU_hi);
+
+ // Get answer
+ unsigned ansU_lo = (unsigned)max(0, min(sS_lo, cS_lo));
+ unsigned ansU_hi = (unsigned)max(0, min(sS_hi, cS_hi));
+
+ // Put answer back together:
+ res = ansU_lo | (ansU_hi << 16);
+#endif
+
+ return res;
+}
+
+// vimax vimin with predicate
+// *pred gets set to '(a >= b)'
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vibmax_s32(const int a, const int b, bool* const pred){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ int val;
+ unsigned int predicate_local;
+ asm ("{ .reg .pred __$temp1;\n\t"
+ " setp.ge.s32 __$temp1, %2, %3;\n\t"
+ " selp.s32 %0, %2, %3, __$temp1;\n\t"
+ " selp.s32 %1, 1, 0, __$temp1;}\n\t"
+ : "=r"(val), "=r"(predicate_local) : "r"(a), "r"(b));
+
+ *pred = (bool)predicate_local;
+ return val;
+#else
+ // Host and older architecture code
+ int ans = max(a, b);
+
+ *pred = (a >= b);
+ return ans;
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmax_u32(const unsigned int a, const unsigned int b, bool* const pred){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ unsigned int val;
+ unsigned int predicate_local;
+ asm ("{ .reg .pred __$temp1;\n\t"
+ " setp.ge.u32 __$temp1, %2, %3;\n\t"
+ " selp.u32 %0, %2, %3, __$temp1;\n\t"
+ " selp.u32 %1, 1, 0, __$temp1;}\n\t"
+ : "=r"(val), "=r"(predicate_local) : "r"(a), "r"(b));
+
+ *pred = (bool)predicate_local;
+ return val;
+#else
+ // Host and older architecture code
+ unsigned int ans = max(a, b);
+
+ *pred = (a >= b);
+ return ans;
+#endif
+}
+
+// *pred gets set to '(a <= b)'
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vibmin_s32(const int a, const int b, bool* const pred){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ int val;
+ unsigned int predicate_local;
+ asm ("{ .reg .pred __$temp1;\n\t"
+ " setp.le.s32 __$temp1, %2, %3;\n\t"
+ " selp.s32 %0, %2, %3, __$temp1;\n\t"
+ " selp.s32 %1, 1, 0, __$temp1;}\n\t"
+ : "=r"(val), "=r"(predicate_local) : "r"(a), "r"(b));
+
+ *pred = (bool)predicate_local;
+ return val;
+#else
+ // Host and older architecture code
+ int ans = min(a, b);
+
+ *pred = (a <= b);
+ return ans;
+#endif
+}
+
+// *pred gets set to '(a <= b)'
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmin_u32(const unsigned int a, const unsigned int b, bool* const pred){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ unsigned int val;
+ unsigned int predicate_local;
+ asm ("{ .reg .pred __$temp1;\n\t"
+ " setp.le.u32 __$temp1, %2, %3;\n\t"
+ " selp.u32 %0, %2, %3, __$temp1;\n\t"
+ " selp.u32 %1, 1, 0, __$temp1;}\n\t"
+ : "=r"(val), "=r"(predicate_local) : "r"(a), "r"(b));
+
+ *pred = (bool)predicate_local;
+ return val;
+#else
+ // Host and older architecture code
+ unsigned int ans = min(a, b);
+
+ *pred = (a <= b);
+ return ans;
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmax_s16x2(const unsigned int a, const unsigned int b, bool* const pred_hi, bool* const pred_lo){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ unsigned int val;
+ unsigned int predicate_local_hi;
+ unsigned int predicate_local_lo;
+ asm ("{.reg .pred pu, pv; \n\t"
+ ".reg .s16 rs0, rs1, rs2, rs3; \n\t"
+ "max.s16x2 %0, %3, %4; \n\t"
+ "mov.b32 {rs0, rs1}, %0; \n\t"
+ "mov.b32 {rs2, rs3}, %3; \n\t"
+ "setp.eq.s16 pv, rs0, rs2; \n\t"
+ "setp.eq.s16 pu, rs1, rs3; \n\t"
+ "selp.b32 %1, 1, 0, pu; \n\t"
+ "selp.b32 %2, 1, 0, pv;} \n\t"
+ : "=r"(val), "=r"(predicate_local_hi),"=r"(predicate_local_lo) : "r"(a), "r"(b));
+
+ *pred_hi = (bool)predicate_local_hi;
+ *pred_lo = (bool)predicate_local_lo;
+ return val;
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ //cast to signed:
+ short aS_lo = __internal_cast_u2s(aU_lo);
+ short aS_hi = __internal_cast_u2s(aU_hi);
+
+ short bS_lo = __internal_cast_u2s(bU_lo);
+ short bS_hi = __internal_cast_u2s(bU_hi);
+
+ // Get answer
+ unsigned int ansU_lo = (unsigned int)max(aS_lo, bS_lo);
+ unsigned int ansU_hi = (unsigned int)max(aS_hi, bS_hi);
+
+ *pred_hi = (aS_hi >= bS_hi);
+ *pred_lo = (aS_lo >= bS_lo);
+
+ // Put answer back together:
+ unsigned int ans = (ansU_lo & 0x0000FFFFU) | (ansU_hi << 16);
+
+ return ans;
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmax_u16x2(const unsigned int a, const unsigned int b, bool* const pred_hi, bool* const pred_lo){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ unsigned int val;
+ unsigned int predicate_local_hi;
+ unsigned int predicate_local_lo;
+ asm ("{.reg .pred pu, pv; \n\t"
+ ".reg .u16 rs0, rs1, rs2, rs3; \n\t"
+ "max.u16x2 %0, %3, %4; \n\t"
+ "mov.b32 {rs0, rs1}, %0; \n\t"
+ "mov.b32 {rs2, rs3}, %3; \n\t"
+ "setp.eq.u16 pv, rs0, rs2; \n\t"
+ "setp.eq.u16 pu, rs1, rs3; \n\t"
+ "selp.b32 %1, 1, 0, pu; \n\t"
+ "selp.b32 %2, 1, 0, pv;} \n\t"
+ : "=r"(val), "=r"(predicate_local_hi),"=r"(predicate_local_lo) : "r"(a), "r"(b));
+
+ *pred_hi = (bool)predicate_local_hi;
+ *pred_lo = (bool)predicate_local_lo;
+ return val;
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ // Get answer
+ unsigned short ansU_lo = (unsigned short)max(aU_lo, bU_lo);
+ unsigned short ansU_hi = (unsigned short)max(aU_hi, bU_hi);
+
+ *pred_hi = (aU_hi >= bU_hi);
+ *pred_lo = (aU_lo >= bU_lo);
+
+ // Put answer back together:
+ unsigned int ans = ((unsigned int) ansU_lo) | (((unsigned int) ansU_hi) << 16);
+
+ return ans;
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmin_s16x2(const unsigned int a, const unsigned int b, bool* const pred_hi, bool* const pred_lo){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ unsigned int val;
+ unsigned int predicate_local_hi;
+ unsigned int predicate_local_lo;
+ asm ("{.reg .pred pu, pv; \n\t"
+ ".reg .u16 rs0, rs1, rs2, rs3; \n\t"
+ "min.s16x2 %0, %3, %4; \n\t"
+ "mov.b32 {rs0, rs1}, %0; \n\t"
+ "mov.b32 {rs2, rs3}, %3; \n\t"
+ "setp.eq.s16 pv, rs0, rs2; \n\t"
+ "setp.eq.s16 pu, rs1, rs3; \n\t"
+ "selp.b32 %1, 1, 0, pu; \n\t"
+ "selp.b32 %2, 1, 0, pv;} \n\t"
+ : "=r"(val), "=r"(predicate_local_hi),"=r"(predicate_local_lo) : "r"(a), "r"(b));
+
+ *pred_hi = (bool)predicate_local_hi;
+ *pred_lo = (bool)predicate_local_lo;
+ return val;
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ //cast to signed:
+ short aS_lo = __internal_cast_u2s(aU_lo);
+ short aS_hi = __internal_cast_u2s(aU_hi);
+
+ short bS_lo = __internal_cast_u2s(bU_lo);
+ short bS_hi = __internal_cast_u2s(bU_hi);
+
+ // Get answer
+ unsigned int ansU_lo = (unsigned int)min(aS_lo, bS_lo);
+ unsigned int ansU_hi = (unsigned int)min(aS_hi, bS_hi);
+
+ *pred_hi = (aS_hi <= bS_hi);
+ *pred_lo = (aS_lo <= bS_lo);
+
+ // Put answer back together:
+ unsigned int ans = (ansU_lo & 0x0000FFFFU) | (ansU_hi << 16);
+
+ return ans;
+#endif
+}
+
+__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmin_u16x2(const unsigned int a, const unsigned int b, bool* const pred_hi, bool* const pred_lo){
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+ unsigned int val;
+ unsigned int predicate_local_hi;
+ unsigned int predicate_local_lo;
+ asm ("{.reg .pred pu, pv; \n\t"
+ ".reg .u16 rs0, rs1, rs2, rs3; \n\t"
+ "min.u16x2 %0, %3, %4; \n\t"
+ "mov.b32 {rs0, rs1}, %0; \n\t"
+ "mov.b32 {rs2, rs3}, %3; \n\t"
+ "setp.eq.u16 pv, rs0, rs2; \n\t"
+ "setp.eq.u16 pu, rs1, rs3; \n\t"
+ "selp.b32 %1, 1, 0, pu; \n\t"
+ "selp.b32 %2, 1, 0, pv;} \n\t"
+ : "=r"(val), "=r"(predicate_local_hi),"=r"(predicate_local_lo) : "r"(a), "r"(b));
+
+ *pred_hi = (bool)predicate_local_hi;
+ *pred_lo = (bool)predicate_local_lo;
+ return val;
+#else
+ // Host and older architecture code
+ // Separate our high and low bit:
+ unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
+ unsigned short aU_hi = (unsigned short)(a >> 16);
+
+ unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
+ unsigned short bU_hi = (unsigned short)(b >> 16);
+
+ // Get answer
+ unsigned short ansU_lo = (unsigned short)min(aU_lo, bU_lo);
+ unsigned short ansU_hi = (unsigned short)min(aU_hi, bU_hi);
+
+ *pred_hi = (aU_hi <= bU_hi);
+ *pred_lo = (aU_lo <= bU_lo);
+
+ // Put answer back together:
+ unsigned int ans = ((unsigned int) ansU_lo) | (((unsigned int) ansU_hi) << 16);
+
+ return ans;
+#endif
+}
+
+#ifdef __CUDA_AND_AT_LEAST_SM_90__
+#undef __CUDA_AND_AT_LEAST_SM_90__
+#endif
+
+#undef __DEVICE_HOST_FUNCTIONS_STATIC_DECL__
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#endif /* !__DEVICE_FUNCTIONS_HPP__ */
+
+#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_FUNCTIONS_HPP__)
+#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_FUNCTIONS_HPP__
+#endif
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/func_macro.h b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/func_macro.h
new file mode 100644
index 0000000000000000000000000000000000000000..633554a01aaabd1bca5ae278c276710f323d5d7b
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/func_macro.h
@@ -0,0 +1,57 @@
+/*
+ * NVIDIA_COPYRIGHT_BEGIN
+ *
+ * Copyright (c) 2008-2018, NVIDIA CORPORATION. All rights reserved.
+ *
+ * NVIDIA CORPORATION and its licensors retain all intellectual property
+ * and proprietary rights in and to this software, related documentation
+ * and any modifications thereto. Any use, reproduction, disclosure or
+ * distribution of this software and related documentation without an express
+ * license agreement from NVIDIA CORPORATION is strictly prohibited.
+ *
+ * NVIDIA_COPYRIGHT_END
+ */
+
+#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
+#if defined(_MSC_VER)
+#pragma message("crt/func_macro.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
+#else
+#warning "crt/func_macro.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
+#endif
+#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_FUNC_MACRO_H__
+#endif
+
+#if !defined(__FUNC_MACRO_H__)
+#define __FUNC_MACRO_H__
+
+#if !defined(__CUDA_INTERNAL_COMPILATION__)
+
+#error -- incorrect inclusion of a cudart header file
+
+#endif /* !__CUDA_INTERNAL_COMPILATION__ */
+
+#if defined(__GNUC__)
+
+#define __func__(decl) \
+ inline decl
+
+#define __device_func__(decl) \
+ static __attribute__((__unused__)) decl
+
+#elif defined(_WIN32)
+
+#define __func__(decl) \
+ static inline decl
+
+#define __device_func__(decl) \
+ static decl
+
+#endif /* __GNUC__ */
+
+#endif /* __FUNC_MACRO_H__ */
+
+#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_FUNC_MACRO_H__)
+#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_FUNC_MACRO_H__
+#endif
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/host_config.h b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/host_config.h
new file mode 100644
index 0000000000000000000000000000000000000000..820b81c2945d8dcc241329673a558090a4922e52
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/host_config.h
@@ -0,0 +1,310 @@
+/*
+ * Copyright 1993-2024 NVIDIA Corporation. All rights reserved.
+ *
+ * NOTICE TO LICENSEE:
+ *
+ * This source code and/or documentation ("Licensed Deliverables") are
+ * subject to NVIDIA intellectual property rights under U.S. and
+ * international Copyright laws.
+ *
+ * These Licensed Deliverables contained herein is PROPRIETARY and
+ * CONFIDENTIAL to NVIDIA and is being provided under the terms and
+ * conditions of a form of NVIDIA software license agreement by and
+ * between NVIDIA and Licensee ("License Agreement") or electronically
+ * accepted by Licensee. Notwithstanding any terms or conditions to
+ * the contrary in the License Agreement, reproduction or disclosure
+ * of the Licensed Deliverables to any third party without the express
+ * written consent of NVIDIA is prohibited.
+ *
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
+ * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
+ * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
+ * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
+ * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
+ * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
+ * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
+ * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+ * OF THESE LICENSED DELIVERABLES.
+ *
+ * U.S. Government End Users. These Licensed Deliverables are a
+ * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
+ * 1995), consisting of "commercial computer software" and "commercial
+ * computer software documentation" as such terms are used in 48
+ * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
+ * only as a commercial end item. Consistent with 48 C.F.R.12.212 and
+ * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
+ * U.S. Government End Users acquire the Licensed Deliverables with
+ * only those rights set forth herein.
+ *
+ * Any use of the Licensed Deliverables in individual and commercial
+ * software must include, in the user documentation and internal
+ * comments to the code, the above Disclaimer and U.S. Government End
+ * Users Notice.
+ */
+
+#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
+#if defined(_MSC_VER)
+#pragma message("crt/host_config.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
+#else
+#warning "crt/host_config.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
+#endif
+#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_CONFIG_H__
+#endif
+
+#if !defined(__HOST_CONFIG_H__)
+#define __HOST_CONFIG_H__
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#if defined(__CUDACC__)
+
+#if defined(__CUDACC_RTC__)
+
+#define _CRTIMP
+#define __THROW
+
+#else /* __CUDACC_RTC__ */
+
+/* check for host compilers that are compatible with nvcc */
+#if !defined(__GNUC__) && !defined(_WIN32)
+
+#error --- !!! UNSUPPORTED COMPILER !!! ---
+
+#endif /* !__GNUC__ && !_WIN32 */
+
+/* check invalid configurations */
+#if defined(__PGIC__)
+#if !defined(__GNUC__) || !defined(__LP64__) || !defined(__linux__)
+#error -- unsupported pgc++ configuration! pgc++ is supported only on Linux x86_64!
+#endif /* !defined(__GNUC__) || !defined(__LP64__) || !defined(__linux__) */
+#endif /* defined(__PGIC__) */
+
+#if defined(__powerpc__)
+#if !defined(__powerpc64__) || !defined(__LITTLE_ENDIAN__)
+#error -- unsupported PPC platform! Only 64-bit little endian PPC is supported!
+#endif /* !__powerpc64__ || !__LITTLE_ENDIAN__ */
+#endif /* __powerpc__ */
+
+#if defined(__APPLE__) && defined(__MACH__) && !defined(__clang__)
+#error -- clang and clang++ are the only supported host compilers on Mac OS X!
+#endif /* __APPLE__ && __MACH__ && !__clang__ */
+
+
+/* check host compiler version */
+#if !__NV_NO_HOST_COMPILER_CHECK
+
+#if defined(__ICC)
+
+#if (__ICC != 1500 && __ICC != 1600 && __ICC != 1700 && __ICC != 1800 && !(__ICC >= 1900 && __ICC <= 2021)) || !defined(__GNUC__) || !defined(__LP64__)
+
+#error -- unsupported ICC configuration! Only ICC 15.0, ICC 16.0, ICC 17.0, ICC 18.0, ICC 19.x and 20.x on Linux x86_64 are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
+
+#endif /* (__ICC != 1500 && __ICC != 1600 && __ICC != 1700 && __ICC != 1800 && __ICC != 1900) || !__GNUC__ || !__LP64__ */
+
+#endif /* __ICC */
+
+#if defined(__GRCO_CLANG_COMPILER__)
+#if (__GRCO_CLANG_COMPILER__ == 1) && ((__clang_major__ < 16) || (__clang_major__ > 19))
+#error -- unsupported Grace clang version! The version must be 16.x to 19.x. The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
+#endif /* (__GRCO_CLANG_COMPILER__ == 1) && ((__clang_major__ < 16) || (__clang_major__ > 19)) */
+
+#endif /* __GRCO_CLANG_COMPILER__ */
+
+#if defined(__INTEL_CLANG_COMPILER)
+#error -- unsupported Intel ICX compiler! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
+#endif /* __INTEL_CLANG_COMPILER */
+
+#if defined(__powerpc__)
+
+#if defined(__ibmxl_vrm__) && !(__ibmxl_vrm__ >= 0x0d010000 && __ibmxl_vrm__ < 0x0d020000) && \
+ !(__ibmxl_vrm__ >= 0x10010000 && __ibmxl_vrm__ < 0x10020000)
+
+#error -- unsupported xlC version! only xlC 13.1 and 16.1 are supported. The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
+
+#endif /* __ibmxl_vrm__ && !(__ibmxl_vrm__ >= 0x0d010000 && __ibmxl_vrm__ < 0x0d020000) &&
+ !(__ibmxl_vrm__ >= 0x10010000 && __ibmxl_vrm__ < 0x10020000) */
+
+#endif /* __powerpc__ */
+
+#if defined(__GNUC__)
+
+#if __GNUC__ > 14
+
+#error -- unsupported GNU version! gcc versions later than 14 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
+
+#endif /* __GNUC__ > 14 */
+
+
+#if defined(__HORIZON__)
+#if (__clang_major__ >= 20) || (__clang_major__ < 3) || ((__clang_major__ == 3) && (__clang_minor__ < 3))
+#error -- unsupported HOS clang version! The version must be must be less than 20 and greater than 3.2 . The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
+#endif /* (__clang_major__ >= 20) || (__clang_major__ < 3) || ((__clang_major__ == 3) && (__clang_minor__ < 3)) */
+#endif /* __HORIZON__ */
+
+#if defined(__clang__) && !defined(__ibmxl_vrm__) && !defined(__ICC) && !defined(__HORIZON__) && !defined(__APPLE__) && !defined(__GRCO_CLANG_COMPILER__)
+
+#if (__clang_major__ >= 20) || (__clang_major__ < 3) || ((__clang_major__ == 3) && (__clang_minor__ < 3))
+#error -- unsupported clang version! clang version must be less than 20 and greater than 3.2 . The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
+
+#endif /* (__clang_major__ >= 20) || (__clang_major__ < 3) || ((__clang_major__ == 3) && (__clang_minor__ < 3)) */
+
+#endif /* defined(__clang__) && !defined(__ibmxl_vrm__) && !defined(__ICC) && !defined(__HORIZON__) && !defined(__APPLE__) && !defined(__GRCO_CLANG_COMPILER__) */
+
+
+#endif /* __GNUC__ */
+
+#if defined(_WIN32)
+
+#if _MSC_VER < 1910 || _MSC_VER >= 1950
+
+#error -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
+
+#elif _MSC_VER >= 1910 && _MSC_VER < 1910
+
+#pragma message("support for this version of Microsoft Visual Studio has been deprecated! Only the versions between 2017 and 2022 (inclusive) are supported!")
+
+#endif /* (_MSC_VER < 1910 || _MSC_VER >= 1950) || (_MSC_VER >= 1910 && _MSC_VER < 1910) */
+
+#endif /* _WIN32 */
+#endif /* !__NV_NO_HOST_COMPILER_CHECK */
+
+
+/* configure host compiler */
+#if defined(__APPLE__)
+
+#define _CRTIMP
+#define _ACRTIMP
+#define __THROW
+
+#if defined(__BLOCKS__) /* nvcc does not support closures */
+
+#undef __BLOCKS__
+
+#endif /* __BLOCKS__ */
+
+#elif defined(__ANDROID__)
+
+#define _CRTIMP
+#define _ACRTIMP
+#define __THROW
+
+#elif defined(__QNX__)
+
+#define _CRTIMP
+#define _ACRTIMP
+#define __THROW
+
+#elif defined(__HORIZON__)
+
+#define _CRTIMP
+#define _ACRTIMP
+#define __THROW
+
+#elif defined(__GNUC__)
+
+#define _CRTIMP
+#define _ACRTIMP
+
+#include /* for __THROW */
+
+#elif defined(_WIN32)
+
+#if _MSC_VER >= 1500
+
+#undef _USE_DECLSPECS_FOR_SAL
+#define _USE_DECLSPECS_FOR_SAL \
+ 1
+
+#endif /* _MSC_VER >= 1500 */
+
+#if !defined(_CRT_NONSTDC_NO_WARNINGS)
+
+#define _CRT_NONSTDC_NO_WARNINGS /* to suppress warnings */
+
+#endif /* !_CRT_NONSTDC_NO_WARNINGS */
+
+#if !defined(_CRT_SECURE_NO_WARNINGS)
+
+#define _CRT_SECURE_NO_WARNINGS /* to suppress warnings */
+
+#endif /* !_CRT_SECURE_NO_WARNINGS */
+
+#if !defined(NOMINMAX)
+
+#define NOMINMAX /* min and max are part of cuda runtime */
+
+#endif /* !NOMINMAX */
+
+#include /* for _CRTIMP */
+#if _MSC_VER >= 1900
+#include /* for _ACRTIMP */
+#endif /* _MSC_VER >= 1900 */
+
+#define __THROW
+
+#endif /* __APPLE__ */
+
+#endif /* __CUDACC_RTC__ */
+
+
+#if defined(__cplusplus) && defined(__CUDA_ARCH__) && (defined(__PGIC__) || defined(__CUDACC_RTC__) || (defined(_WIN32) && defined(_MSC_VER)))
+
+#if __CUDACC_RTC__
+typedef char *va_list;
+#else /* !__CUDACC_RTC__ */
+#include
+#endif /* __CUDACC_RTC__ */
+
+
+#undef va_start
+#undef va_end
+#undef va_arg
+
+#ifdef __PGIC__
+
+#undef __builtin_va_end
+
+#define va_start(v,l) __builtin_alt_va_start(v,l)
+#define va_end(v) __builtin_va_end(v)
+#define va_arg(v,l) __builtin_alt_va_arg(v,l)
+
+#if (__cplusplus >= 201103L)
+#undef va_copy
+#define va_copy(d,s) __builtin_va_copy(d,s)
+#endif
+
+#else /* !__PGIC__ */
+
+
+#define va_start(ap, x) (__cu_va_start(&ap, x))
+#define va_end(ap) (__cu_va_end(&ap))
+#define va_arg(ap, t) (*((t *)__cu_va_arg(&ap, (t *)0)))
+
+#if (_MSC_VER >= 1800) || (defined(__CUDACC_RTC__) && (__cplusplus >= 201103L))
+#undef va_copy
+#define va_copy(apd, aps) (__cu_va_copy(&(apd), &(aps)))
+#endif /* (_MSC_VER >= 1800) || (defined(__CUDACC_RTC__) && (__cplusplus >= 201103L)) */
+#endif /* __PGIC__ */
+
+#endif /* defined(__cplusplus) && (defined(__CUDACC_RTC__) || (defined(_WIN32) && defined(_MSC_VER))) */
+
+
+
+#endif /* __CUDACC__ */
+
+#endif /* !__HOST_CONFIG_H__ */
+
+#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_CONFIG_H__)
+#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_CONFIG_H__
+#endif
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/host_defines.h b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/host_defines.h
new file mode 100644
index 0000000000000000000000000000000000000000..b58cb3cc1086bdc6e0376f042c86b2755ef2ff00
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/host_defines.h
@@ -0,0 +1,283 @@
+/*
+ * Copyright 1993-2023 NVIDIA Corporation. All rights reserved.
+ *
+ * NOTICE TO LICENSEE:
+ *
+ * This source code and/or documentation ("Licensed Deliverables") are
+ * subject to NVIDIA intellectual property rights under U.S. and
+ * international Copyright laws.
+ *
+ * These Licensed Deliverables contained herein is PROPRIETARY and
+ * CONFIDENTIAL to NVIDIA and is being provided under the terms and
+ * conditions of a form of NVIDIA software license agreement by and
+ * between NVIDIA and Licensee ("License Agreement") or electronically
+ * accepted by Licensee. Notwithstanding any terms or conditions to
+ * the contrary in the License Agreement, reproduction or disclosure
+ * of the Licensed Deliverables to any third party without the express
+ * written consent of NVIDIA is prohibited.
+ *
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
+ * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
+ * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
+ * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
+ * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
+ * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
+ * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
+ * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+ * OF THESE LICENSED DELIVERABLES.
+ *
+ * U.S. Government End Users. These Licensed Deliverables are a
+ * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
+ * 1995), consisting of "commercial computer software" and "commercial
+ * computer software documentation" as such terms are used in 48
+ * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
+ * only as a commercial end item. Consistent with 48 C.F.R.12.212 and
+ * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
+ * U.S. Government End Users acquire the Licensed Deliverables with
+ * only those rights set forth herein.
+ *
+ * Any use of the Licensed Deliverables in individual and commercial
+ * software must include, in the user documentation and internal
+ * comments to the code, the above Disclaimer and U.S. Government End
+ * Users Notice.
+ */
+
+#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
+#if defined(_MSC_VER)
+#pragma message("crt/host_defines.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
+#else
+#warning "crt/host_defines.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
+#endif
+#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_DEFINES_H__
+#endif
+
+#if !defined(__HOST_DEFINES_H__)
+#define __HOST_DEFINES_H__
+
+#if defined(__CUDACC__) && !defined(__CUDACC_RTC__) && !defined(__CUDADEVRT_INTERNAL__) && !defined(_ALLOW_UNSUPPORTED_LIBCPP)
+#include
+#if ((defined(_MSC_VER ) && (defined(_M_X64) || defined(_M_AMD64))) ||\
+ (defined(__x86_64__) || defined(__amd64__))) && defined(_LIBCPP_VERSION) && !(defined(__HORIZON__) || defined(__ANDROID__) || defined(__QNX__))
+#error "libc++ is not supported on x86 system"
+#endif
+#endif
+
+/* CUDA JIT mode (__CUDACC_RTC__) also uses GNU style attributes */
+#if defined(__GNUC__) || (defined(__PGIC__) && defined(__linux__)) || defined(__CUDA_LIBDEVICE__) || defined(__CUDACC_RTC__)
+
+#if defined(__CUDACC_RTC__)
+#define __volatile__ volatile
+#endif /* __CUDACC_RTC__ */
+
+#define __no_return__ \
+ __attribute__((noreturn))
+
+#if defined(__CUDACC__) || defined(__CUDA_ARCH__) || defined(__CUDA_LIBDEVICE__)
+/* gcc allows users to define attributes with underscores,
+ e.g., __attribute__((__noinline__)).
+ Consider a non-CUDA source file (e.g. .cpp) that has the
+ above attribute specification, and includes this header file. In that case,
+ defining __noinline__ as below would cause a gcc compilation error.
+ Hence, only define __noinline__ when the code is being processed
+ by a CUDA compiler component.
+*/
+#define __noinline__ \
+ __attribute__((noinline))
+#endif /* __CUDACC__ || __CUDA_ARCH__ || __CUDA_LIBDEVICE__ */
+
+#undef __forceinline__
+#define __forceinline__ \
+ __inline__ __attribute__((always_inline))
+#define __inline_hint__ \
+ __attribute__((nv_inline_hint))
+#define __align__(n) \
+ __attribute__((aligned(n)))
+#define __maxnreg__(a) \
+ __attribute__((maxnreg(a)))
+#define __thread__ \
+ __thread
+#define __import__
+#define __export__
+#define __cdecl
+#define __annotate__(a) \
+ __attribute__((a))
+#define __location__(a) \
+ __annotate__(a)
+#define CUDARTAPI
+#define CUDARTAPI_CDECL
+
+#elif defined(_MSC_VER)
+
+#if _MSC_VER >= 1400
+
+#define __restrict__ \
+ __restrict
+
+#else /* _MSC_VER >= 1400 */
+
+#define __restrict__
+
+#endif /* _MSC_VER >= 1400 */
+
+#define __inline__ \
+ __inline
+#define __no_return__ \
+ __declspec(noreturn)
+#define __noinline__ \
+ __declspec(noinline)
+#define __forceinline__ \
+ __forceinline
+#define __inline_hint__ \
+ __declspec(nv_inline_hint)
+#define __align__(n) \
+ __declspec(align(n))
+#define __maxnreg__(n) \
+ __declspec(maxnreg(n))
+#define __thread__ \
+ __declspec(thread)
+#define __import__ \
+ __declspec(dllimport)
+#define __export__ \
+ __declspec(dllexport)
+#define __annotate__(a) \
+ __declspec(a)
+#define __location__(a) \
+ __annotate__(__##a##__)
+#define CUDARTAPI \
+ __stdcall
+#define CUDARTAPI_CDECL \
+ __cdecl
+
+#else /* __GNUC__ || __CUDA_LIBDEVICE__ || __CUDACC_RTC__ */
+
+#define __inline__
+
+#if !defined(__align__)
+
+#error --- !!! UNKNOWN COMPILER: please provide a CUDA compatible definition for '__align__' !!! ---
+
+#endif /* !__align__ */
+
+#if !defined(CUDARTAPI)
+
+#error --- !!! UNKNOWN COMPILER: please provide a CUDA compatible definition for 'CUDARTAPI' !!! ---
+
+#endif /* !CUDARTAPI */
+
+#endif /* __GNUC__ || __CUDA_LIBDEVICE__ || __CUDACC_RTC__ */
+
+#if (defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3 && !defined(__clang__)))) || \
+ (defined(_MSC_VER) && _MSC_VER < 1900) || \
+ (!defined(__GNUC__) && !defined(_MSC_VER))
+
+#define __specialization_static \
+ static
+
+#else /* (__GNUC__ && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3 && !__clang__))) ||
+ (_MSC_VER && _MSC_VER < 1900) ||
+ (!__GNUC__ && !_MSC_VER) */
+
+#define __specialization_static
+
+#endif /* (__GNUC__ && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3 && !__clang__))) ||
+ (_MSC_VER && _MSC_VER < 1900) ||
+ (!__GNUC__ && !_MSC_VER) */
+
+#if !defined(__CUDACC__) && !defined(__CUDA_LIBDEVICE__)
+
+#undef __annotate__
+#define __annotate__(a)
+
+#else /* !__CUDACC__ && !__CUDA_LIBDEVICE__ */
+
+#define __launch_bounds__(...) \
+ __annotate__(launch_bounds(__VA_ARGS__))
+
+#endif /* !__CUDACC__ && !__CUDA_LIBDEVICE__ */
+
+#if defined(__CUDACC__) || defined(__CUDA_LIBDEVICE__) || \
+ defined(__GNUC__) || defined(_WIN64)
+
+#define __builtin_align__(a) \
+ __align__(a)
+
+#else /* __CUDACC__ || __CUDA_LIBDEVICE__ || __GNUC__ || _WIN64 */
+
+#define __builtin_align__(a)
+
+#endif /* __CUDACC__ || __CUDA_LIBDEVICE__ || __GNUC__ || _WIN64 */
+
+#if defined(__CUDACC__) || !defined(__grid_constant__)
+#define __grid_constant__ \
+ __location__(grid_constant)
+#endif /* defined(__CUDACC__) || !defined(__grid_constant__) */
+
+#if defined(__CUDACC__) || !defined(__host__)
+#define __host__ \
+ __location__(host)
+#endif /* defined(__CUDACC__) || !defined(__host__) */
+#if defined(__CUDACC__) || !defined(__device__)
+#define __device__ \
+ __location__(device)
+#endif /* defined(__CUDACC__) || !defined(__device__) */
+#if defined(__CUDACC__) || !defined(__global__)
+#define __global__ \
+ __location__(global)
+#endif /* defined(__CUDACC__) || !defined(__global__) */
+#if defined(__CUDACC__) || !defined(__shared__)
+#define __shared__ \
+ __location__(shared)
+#endif /* defined(__CUDACC__) || !defined(__shared__) */
+#if defined(__CUDACC__) || !defined(__constant__)
+#define __constant__ \
+ __location__(constant)
+#endif /* defined(__CUDACC__) || !defined(__constant__) */
+#if defined(__CUDACC__) || !defined(__managed__)
+#define __managed__ \
+ __location__(managed)
+#endif /* defined(__CUDACC__) || !defined(__managed__) */
+#if defined(__CUDACC__) || !defined(__nv_pure__)
+#define __nv_pure__ \
+ __location__(nv_pure)
+#endif /* defined(__CUDACC__) || !defined(__nv_pure__) */
+#if !defined(__CUDACC__)
+#define __device_builtin__
+#define __device_builtin_texture_type__
+#define __device_builtin_surface_type__
+#define __cudart_builtin__
+#else /* defined(__CUDACC__) */
+#define __device_builtin__ \
+ __location__(device_builtin)
+#define __device_builtin_texture_type__ \
+ __location__(device_builtin_texture_type)
+#define __device_builtin_surface_type__ \
+ __location__(device_builtin_surface_type)
+#define __cudart_builtin__ \
+ __location__(cudart_builtin)
+#endif /* !defined(__CUDACC__) */
+
+#if defined(__CUDACC__) || !defined(__cluster_dims__)
+#if defined(_MSC_VER)
+#define __cluster_dims__(...) \
+ __declspec(__cluster_dims__(__VA_ARGS__))
+
+#else /* !defined(_MSC_VER) */
+#define __cluster_dims__(...) \
+ __attribute__((cluster_dims(__VA_ARGS__)))
+#endif /* defined(_MSC_VER) */
+#endif /* defined(__CUDACC__) || !defined(__cluster_dims__) */
+
+#define __CUDA_ARCH_HAS_FEATURE__(_FEAT) __CUDA_ARCH_FEAT_##_FEAT
+
+#endif /* !__HOST_DEFINES_H__ */
+
+#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_DEFINES_H__)
+#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_DEFINES_H__
+#endif
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/host_runtime.h b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/host_runtime.h
new file mode 100644
index 0000000000000000000000000000000000000000..22e3a1bea875ddb2a15075f6e0ecb10b7ce1a6a7
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/host_runtime.h
@@ -0,0 +1,306 @@
+/*
+ * NVIDIA_COPYRIGHT_BEGIN
+ *
+ * Copyright (c) 2008-2023, NVIDIA CORPORATION. All rights reserved.
+ *
+ * NVIDIA CORPORATION and its licensors retain all intellectual property
+ * and proprietary rights in and to this software, related documentation
+ * and any modifications thereto. Any use, reproduction, disclosure or
+ * distribution of this software and related documentation without an express
+ * license agreement from NVIDIA CORPORATION is strictly prohibited.
+ *
+ * NVIDIA_COPYRIGHT_END
+ */
+
+#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
+#if defined(_MSC_VER)
+#pragma message("crt/device_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
+#else
+#warning "crt/device_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
+#endif
+#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_RUNTIME_H__
+#endif
+
+#if !defined(__CUDA_INTERNAL_COMPILATION__)
+
+#define __CUDA_INTERNAL_COMPILATION__
+#define __text__
+#define __surf__
+#define __name__shadow_var(c, cpp) \
+ #c
+#define __name__text_var(c, cpp) \
+ #cpp
+#define __host__shadow_var(c, cpp) \
+ cpp
+#define __text_var(c, cpp) \
+ cpp
+#define __device_fun(fun) \
+ #fun
+#define __device_var(var) \
+ #var
+#define __device__text_var(c, cpp) \
+ #c
+#define __device__shadow_var(c, cpp) \
+ #c
+
+#if defined(_WIN32) && !defined(_WIN64)
+
+#define __pad__(f) \
+ f
+
+#else /* _WIN32 && !_WIN64 */
+
+#define __pad__(f)
+
+#endif /* _WIN32 && !_WIN64 */
+
+#include "builtin_types.h"
+#include "storage_class.h"
+
+#else /* !__CUDA_INTERNAL_COMPILATION__ */
+
+template
+static inline T *__cudaAddressOf(T &val)
+{
+ return (T *)((void *)(&(const_cast(reinterpret_cast(val)))));
+}
+
+#define __cudaRegisterBinary(X) \
+ __cudaFatCubinHandle = __cudaRegisterFatBinary((void*)&__fatDeviceText); \
+ { void (*callback_fp)(void **) = (void (*)(void **))(X); (*callback_fp)(__cudaFatCubinHandle); __cudaRegisterFatBinaryEnd(__cudaFatCubinHandle); }\
+ atexit(__cudaUnregisterBinaryUtil)
+
+#define __cudaRegisterVariable(handle, var, ext, size, constant, global) \
+ __cudaRegisterVar(handle, (char*)&__host##var, (char*)__device##var, __name##var, ext, size, constant, global)
+#define __cudaRegisterManagedVariable(handle, var, ext, size, constant, global) \
+ __cudaRegisterManagedVar(handle, (void **)&__host##var, (char*)__device##var, __name##var, ext, size, constant, global)
+
+#define __cudaRegisterGlobalTexture(handle, tex, dim, norm, ext) \
+ __cudaRegisterTexture(handle, (const struct textureReference*)&tex, (const void**)(void*)__device##tex, __name##tex, dim, norm, ext)
+#define __cudaRegisterGlobalSurface(handle, surf, dim, ext) \
+ __cudaRegisterSurface(handle, (const struct surfaceReference*)&surf, (const void**)(void*)__device##surf, __name##surf, dim, ext)
+#define __cudaRegisterEntry(handle, funptr, fun, thread_limit) \
+ __cudaRegisterFunction(handle, (const char*)funptr, (char*)__device_fun(fun), #fun, -1, (uint3*)0, (uint3*)0, (dim3*)0, (dim3*)0, (int*)0)
+
+extern "C" cudaError_t CUDARTAPI __cudaPopCallConfiguration(
+ dim3 *gridDim,
+ dim3 *blockDim,
+ size_t *sharedMem,
+ void *stream
+);
+
+#define __cudaLaunchPrologue(size) \
+ void * __args_arr[size]; \
+ int __args_idx = 0
+
+#define __cudaSetupArg(arg, offset) \
+ __args_arr[__args_idx] = (void *)__cudaAddressOf(arg); ++__args_idx
+
+#define __cudaSetupArgSimple(arg, offset) \
+ __args_arr[__args_idx] = (void *)(char *)&arg; ++__args_idx
+
+#if defined(__GNUC__)
+#define __NV_ATTR_UNUSED_FOR_LAUNCH __attribute__((unused))
+#else /* !__GNUC__ */
+#define __NV_ATTR_UNUSED_FOR_LAUNCH
+#endif /* __GNUC__ */
+
+#ifdef __NV_LEGACY_LAUNCH
+/* the use of __args_idx in the expression below avoids host compiler warning about it being an
+ unused variable when the launch has no arguments */
+#define __cudaLaunch(fun) \
+ { volatile static char *__f __NV_ATTR_UNUSED_FOR_LAUNCH; __f = fun; \
+ dim3 __gridDim, __blockDim;\
+ size_t __sharedMem; \
+ cudaStream_t __stream; \
+ if (__cudaPopCallConfiguration(&__gridDim, &__blockDim, &__sharedMem, &__stream) != cudaSuccess) \
+ return; \
+ if (__args_idx == 0) {\
+ (void)cudaLaunchKernel(fun, __gridDim, __blockDim, &__args_arr[__args_idx], __sharedMem, __stream);\
+ } else { \
+ (void)cudaLaunchKernel(fun, __gridDim, __blockDim, &__args_arr[0], __sharedMem, __stream);\
+ }\
+ }
+#else /* !__NV_LEGACY_LAUNCH */
+#define __cudaLaunch(fun) \
+ { volatile static char *__f __NV_ATTR_UNUSED_FOR_LAUNCH; __f = fun; \
+ static cudaKernel_t __handle = 0; \
+ volatile static bool __tmp __NV_ATTR_UNUSED_FOR_LAUNCH = (__cudaGetKernel(&__handle, (const void *)fun) == cudaSuccess); \
+ dim3 __gridDim, __blockDim;\
+ size_t __sharedMem; \
+ cudaStream_t __stream; \
+ if (__cudaPopCallConfiguration(&__gridDim, &__blockDim, &__sharedMem, &__stream) != cudaSuccess) \
+ return; \
+ if (__args_idx == 0) {\
+ (void)__cudaLaunchKernel_helper(__handle, __gridDim, __blockDim, &__args_arr[__args_idx], __sharedMem, __stream);\
+ } else { \
+ (void)__cudaLaunchKernel_helper(__handle, __gridDim, __blockDim, &__args_arr[0], __sharedMem, __stream);\
+ }\
+ }
+#endif /* __NV_LEGACY_LAUNCH */
+
+#if defined(__GNUC__)
+#define __nv_dummy_param_ref(param) \
+ { volatile static void **__ref __attribute__((unused)); __ref = (volatile void **)param; }
+#else /* __GNUC__ */
+#define __nv_dummy_param_ref(param) \
+ { volatile static void **__ref; __ref = (volatile void **)param; }
+#endif /* __GNUC__ */
+
+static void ____nv_dummy_param_ref(void *param) __nv_dummy_param_ref(param)
+
+#define __REGISTERFUNCNAME_CORE(X) __cudaRegisterLinkedBinary##X
+#define __REGISTERFUNCNAME(X) __REGISTERFUNCNAME_CORE(X)
+
+extern "C" {
+void __REGISTERFUNCNAME( __NV_MODULE_ID ) ( void (*)(void **), void *, void *, void (*)(void *));
+}
+
+#define __TO_STRING_CORE(X) #X
+#define __TO_STRING(X) __TO_STRING_CORE(X)
+
+extern "C" {
+#if defined(_WIN32)
+#pragma data_seg("__nv_module_id")
+ static const __declspec(allocate("__nv_module_id")) unsigned char __module_id_str[] = __TO_STRING(__NV_MODULE_ID);
+#pragma data_seg()
+#elif defined(__APPLE__)
+ static const unsigned char __module_id_str[] __attribute__((section ("__NV_CUDA,__nv_module_id"))) = __TO_STRING(__NV_MODULE_ID);
+#else
+ static const unsigned char __module_id_str[] __attribute__((section ("__nv_module_id"))) = __TO_STRING(__NV_MODULE_ID);
+#endif
+
+#undef __FATIDNAME_CORE
+#undef __FATIDNAME
+#define __FATIDNAME_CORE(X) __fatbinwrap##X
+#define __FATIDNAME(X) __FATIDNAME_CORE(X)
+
+#define ____cudaRegisterLinkedBinary(X) \
+{ __REGISTERFUNCNAME(__NV_MODULE_ID) (( void (*)(void **))(X), (void *)&__FATIDNAME(__NV_MODULE_ID), (void *)&__module_id_str, (void (*)(void *))&____nv_dummy_param_ref); }
+
+}
+
+extern "C" {
+extern void** CUDARTAPI __cudaRegisterFatBinary(
+ void *fatCubin
+);
+
+extern void CUDARTAPI __cudaRegisterFatBinaryEnd(
+ void **fatCubinHandle
+);
+
+extern void CUDARTAPI __cudaUnregisterFatBinary(
+ void **fatCubinHandle
+);
+
+extern void CUDARTAPI __cudaRegisterVar(
+ void **fatCubinHandle,
+ char *hostVar,
+ char *deviceAddress,
+ const char *deviceName,
+ int ext,
+ size_t size,
+ int constant,
+ int global
+);
+
+extern void CUDARTAPI __cudaRegisterManagedVar(
+ void **fatCubinHandle,
+ void **hostVarPtrAddress,
+ char *deviceAddress,
+ const char *deviceName,
+ int ext,
+ size_t size,
+ int constant,
+ int global
+);
+
+extern char CUDARTAPI __cudaInitModule(
+ void **fatCubinHandle
+);
+
+extern void CUDARTAPI __cudaRegisterTexture(
+ void **fatCubinHandle,
+ const struct textureReference *hostVar,
+ const void **deviceAddress,
+ const char *deviceName,
+ int dim,
+ int norm,
+ int ext
+);
+
+extern void CUDARTAPI __cudaRegisterSurface(
+ void **fatCubinHandle,
+ const struct surfaceReference *hostVar,
+ const void **deviceAddress,
+ const char *deviceName,
+ int dim,
+ int ext
+);
+
+extern void CUDARTAPI __cudaRegisterFunction(
+ void **fatCubinHandle,
+ const char *hostFun,
+ char *deviceFun,
+ const char *deviceName,
+ int thread_limit,
+ uint3 *tid,
+ uint3 *bid,
+ dim3 *bDim,
+ dim3 *gDim,
+ int *wSize
+);
+
+#if defined(__APPLE__)
+extern "C" int atexit(void (*)(void));
+
+#elif defined(__GNUC__) && !defined(__ANDROID__) && !defined(__HORIZON__)
+extern int atexit(void(*)(void)) throw();
+
+#elif defined(__HORIZON__)
+
+// __TEMP_WAR__ 200132570 HOS : Disable atexit call until it works
+#define atexit(p)
+
+#else /* __GNUC__ && !__ANDROID__ */
+extern int __cdecl atexit(void(__cdecl *)(void));
+#endif
+
+}
+
+static void **__cudaFatCubinHandle;
+
+static void __cdecl __cudaUnregisterBinaryUtil(void)
+{
+ ____nv_dummy_param_ref((void *)&__cudaFatCubinHandle);
+ __cudaUnregisterFatBinary(__cudaFatCubinHandle);
+}
+
+static char __nv_init_managed_rt_with_module(void **handle)
+{
+ return __cudaInitModule(handle);
+}
+
+#include "common_functions.h"
+
+#pragma pack()
+
+#if defined(_WIN32)
+
+#pragma warning(disable: 4099)
+
+#if !defined(_WIN64)
+
+#pragma warning(disable: 4408)
+
+#endif /* !_WIN64 */
+
+#endif /* _WIN32 */
+
+#endif /* !__CUDA_INTERNAL_COMPILATION__ */
+
+#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_RUNTIME_H__)
+#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_RUNTIME_H__
+#endif
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/math_functions.h b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/math_functions.h
new file mode 100644
index 0000000000000000000000000000000000000000..d8201f97efb3aed940f62360d90899a5171eeb0d
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/math_functions.h
@@ -0,0 +1,6257 @@
+/*
+ * Copyright 1993-2024 NVIDIA Corporation. All rights reserved.
+ *
+ * NOTICE TO LICENSEE:
+ *
+ * This source code and/or documentation ("Licensed Deliverables") are
+ * subject to NVIDIA intellectual property rights under U.S. and
+ * international Copyright laws.
+ *
+ * These Licensed Deliverables contained herein is PROPRIETARY and
+ * CONFIDENTIAL to NVIDIA and is being provided under the terms and
+ * conditions of a form of NVIDIA software license agreement by and
+ * between NVIDIA and Licensee ("License Agreement") or electronically
+ * accepted by Licensee. Notwithstanding any terms or conditions to
+ * the contrary in the License Agreement, reproduction or disclosure
+ * of the Licensed Deliverables to any third party without the express
+ * written consent of NVIDIA is prohibited.
+ *
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
+ * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
+ * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
+ * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
+ * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
+ * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
+ * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
+ * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+ * OF THESE LICENSED DELIVERABLES.
+ *
+ * U.S. Government End Users. These Licensed Deliverables are a
+ * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
+ * 1995), consisting of "commercial computer software" and "commercial
+ * computer software documentation" as such terms are used in 48
+ * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
+ * only as a commercial end item. Consistent with 48 C.F.R.12.212 and
+ * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
+ * U.S. Government End Users acquire the Licensed Deliverables with
+ * only those rights set forth herein.
+ *
+ * Any use of the Licensed Deliverables in individual and commercial
+ * software must include, in the user documentation and internal
+ * comments to the code, the above Disclaimer and U.S. Government End
+ * Users Notice.
+ */
+
+#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
+#if defined(_MSC_VER)
+#pragma message("crt/math_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
+#else
+#warning "crt/math_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
+#endif
+#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_MATH_FUNCTIONS_H__
+#endif
+
+#if !defined(__MATH_FUNCTIONS_H__)
+#define __MATH_FUNCTIONS_H__
+
+#if defined(__QNX__) && (__GNUC__ >= 5) && defined(__CUDACC__)
+#if __has_include(<__config>)
+#include <__config>
+#endif
+#endif
+
+/**
+ * \defgroup CUDA_MATH Mathematical Functions
+ *
+ * CUDA mathematical functions are always available in device code.
+ *
+ * Host implementations of the common mathematical functions are mapped
+ * in a platform-specific way to standard math library functions, provided
+ * by the host compiler and respective host libm where available.
+ * Some functions, not available with the host compilers, are implemented
+ * in crt/math_functions.hpp header file.
+ * For example, see ::erfinv(). Other, less common functions,
+ * like ::rhypot(), ::cyl_bessel_i0() are only available in device code.
+ *
+ * CUDA Math device functions are no-throw for well-formed CUDA programs.
+ *
+ * Note that many floating-point and integer functions names are
+ * overloaded for different argument types. For example, the ::log()
+ * function has the following prototypes:
+ * \code
+ * double log(double x);
+ * float log(float x);
+ * float logf(float x);
+ * \endcode
+ *
+ * Note also that due to implementation constraints, certain math functions
+ * from std:: namespace may be callable in device code even via explicitly
+ * qualified std:: names. However, such use is discouraged, since this
+ * capability is unsupported, unverified, undocumented, not portable, and
+ * may change without notice.
+ */
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#if defined(__cplusplus) && defined(__CUDACC__)
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#include "builtin_types.h"
+#include "host_defines.h"
+
+//NOTE: For NVRTC, these declarations have been moved into the compiler (to reduce compile time)
+#define EXCLUDE_FROM_RTC
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+extern "C"
+{
+
+/**
+ * @{
+ */
+
+/* Define math function DOXYGEN toplevel groups, functions will
+ be added to these groups later.
+*/
+/**
+ * \defgroup CUDA_MATH_SINGLE Single Precision Mathematical Functions
+ * This section describes single precision mathematical functions.
+ * To use these functions, you do not need to include any additional
+ * header file in your program.
+ */
+
+/**
+ * \defgroup CUDA_MATH_DOUBLE Double Precision Mathematical Functions
+ * This section describes double precision mathematical functions.
+ * To use these functions, you do not need to include any additional
+ * header file in your program.
+ */
+
+/**
+ * \defgroup CUDA_MATH_INT Integer Mathematical Functions
+ * This section describes integer mathematical functions.
+ * To use these functions, you do not need to include any additional
+ * header file in your program.
+ */
+
+/**
+ * \defgroup CUDA_MATH_INTRINSIC_SINGLE Single Precision Intrinsics
+ * This section describes single precision intrinsic functions that are
+ * only supported in device code.
+ * To use these functions, you do not need to include any additional
+ * header file in your program.
+ */
+
+/**
+ * \defgroup CUDA_MATH_INTRINSIC_DOUBLE Double Precision Intrinsics
+ * This section describes double precision intrinsic functions that are
+ * only supported in device code.
+ * To use these functions, you do not need to include any additional
+ * header file in your program.
+ */
+
+/**
+ * \defgroup CUDA_MATH_INTRINSIC_INT Integer Intrinsics
+ * This section describes integer intrinsic functions. All of these
+ * functions are supported in device code. For some of the functions,
+ * host-specific implementations are also provided. For example,
+ * see `::__nv_bswap16()`.
+ * To use these functions, you do not need to include any additional
+ * header file in your program.
+ */
+
+/**
+ * \defgroup CUDA_MATH_INTRINSIC_CAST Type Casting Intrinsics
+ * This section describes type casting intrinsic functions that are
+ * only supported in device code.
+ * To use these functions, you do not need to include any additional
+ * header file in your program.
+ */
+
+/**
+ *
+ * \defgroup CUDA_MATH_INTRINSIC_SIMD SIMD Intrinsics
+ * This section describes SIMD intrinsic functions that are
+ * only supported in device code.
+ * To use these functions, you do not need to include any additional
+ * header file in your program.
+ */
+
+
+/**
+ * @}
+ */
+#define __DEVICE_FUNCTIONS_DECL__ __host__ __device__
+#if !defined(_MSC_VER)
+#define __CUDA_MATH_CRTIMP
+#else
+#if _MSC_VER < 1900
+#define __CUDA_MATH_CRTIMP _CRTIMP
+#else
+#define __CUDA_MATH_CRTIMP _ACRTIMP
+#endif
+#endif
+
+#if defined(__ANDROID__) && (__ANDROID_API__ <= 20) && !defined(__aarch64__)
+static __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ int abs(int);
+static __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ long int labs(long int);
+static __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ long long int llabs(long long int);
+#else /* __ANDROID__ */
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the absolute value of the input \p int argument.
+ *
+ * Calculate the absolute value of the input argument \p a.
+ *
+ * \return
+ * Returns the absolute value of the input argument.
+ * - abs(\p INT_MIN) is \p Undefined
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ int __cdecl abs(int a) __THROW;
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the absolute value of the input \p long \p int argument.
+ *
+ * Calculate the absolute value of the input argument \p a.
+ *
+ * \return
+ * Returns the absolute value of the input argument.
+ * - labs(\p LONG_MIN) is \p Undefined
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ long int __cdecl labs(long int a) __THROW;
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the absolute value of the input \p long \p long \p int argument.
+ *
+ * Calculate the absolute value of the input argument \p a.
+ *
+ * \return
+ * Returns the absolute value of the input argument.
+ * - llabs(\p LLONG_MIN) is \p Undefined
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __cudart_builtin__ long long int llabs(long long int a) __THROW;
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+}
+#endif
+#endif /* __ANDROID__ */
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+/* put all math functions in std */
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the absolute value of the input argument.
+ *
+ * Calculate the absolute value of the input argument \p x.
+ *
+ * \return
+ * Returns the absolute value of the input argument.
+ * - fabs(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - fabs(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns +0.
+ * - fabs(NaN) returns an unspecified NaN.
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl fabs(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the absolute value of its argument
+ *
+ * Calculate the absolute value of the input argument \p x.
+ *
+ * \return
+ * Returns the absolute value of its argument.
+ * - fabsf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - fabsf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns +0.
+ * - fabsf(NaN) returns an unspecified NaN.
+ *
+ * \note_accuracy_single
+ */
+#if defined(_WIN32) && defined(_M_ARM64)
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl fabsf(float x) __THROW;
+#else
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float fabsf(float x) __THROW;
+#endif
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the minimum value of the input \p int arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b.
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int min(const int a, const int b);
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the minimum value of the input \p unsigned \p int arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b.
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int umin(const unsigned int a, const unsigned int b);
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the minimum value of the input \p long \p long \p int arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b.
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ long long int llmin(const long long int a, const long long int b);
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the minimum value of the input \p unsigned \p long \p long \p int arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b.
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned long long int ullmin(const unsigned long long int a, const unsigned long long int b);
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Determine the minimum numeric value of the arguments.
+ *
+ * Determines the minimum numeric value of the arguments \p x and \p y. Treats NaN
+ * arguments as missing data. If one argument is a NaN and the other is legitimate numeric
+ * value, the numeric value is chosen.
+ *
+ * \return
+ * Returns the minimum numeric value of the arguments \p x and \p y.
+ * - If both arguments are NaN, returns NaN.
+ * - If one argument is NaN, returns the numeric argument.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float fminf(float x, float y) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl fminf(float x, float y);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Determine the minimum numeric value of the arguments.
+ *
+ * Determines the minimum numeric value of the arguments \p x and \p y. Treats NaN
+ * arguments as missing data. If one argument is a NaN and the other is legitimate numeric
+ * value, the numeric value is chosen.
+ *
+ * \return
+ * Returns the minimum numeric value of the arguments \p x and \p y.
+ * - If both arguments are NaN, returns NaN.
+ * - If one argument is NaN, returns the numeric argument.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double fmin(double x, double y) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl fmin(double x, double y);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the maximum value of the input \p int arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b.
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int max(const int a, const int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the maximum value of the input \p unsigned \p int arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b.
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned int umax(const unsigned int a, const unsigned int b);
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the maximum value of the input \p long \p long \p int arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b.
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ long long int llmax(const long long int a, const long long int b);
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the maximum value of the input \p unsigned \p long \p long \p int arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b.
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ unsigned long long int ullmax(const unsigned long long int a, const unsigned long long int b);
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Determine the maximum numeric value of the arguments.
+ *
+ * Determines the maximum numeric value of the arguments \p x and \p y. Treats NaN
+ * arguments as missing data. If one argument is a NaN and the other is legitimate numeric
+ * value, the numeric value is chosen.
+ *
+ * \return
+ * Returns the maximum numeric values of the arguments \p x and \p y.
+ * - If both arguments are NaN, returns NaN.
+ * - If one argument is NaN, returns the numeric argument.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float fmaxf(float x, float y) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl fmaxf(float x, float y);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Determine the maximum numeric value of the arguments.
+ *
+ * Determines the maximum numeric value of the arguments \p x and \p y. Treats NaN
+ * arguments as missing data. If one argument is a NaN and the other is legitimate numeric
+ * value, the numeric value is chosen.
+ *
+ * \return
+ * Returns the maximum numeric values of the arguments \p x and \p y.
+ * - If both arguments are NaN, returns NaN.
+ * - If one argument is NaN, returns the numeric argument.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double fmax(double, double) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl fmax(double, double);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the sine of the input argument.
+ *
+ * Calculate the sine of the input argument \p x (measured in radians).
+ *
+ * \return
+ * - sin(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - sin(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns NaN.
+ * - sin(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl sin(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the cosine of the input argument.
+ *
+ * Calculate the cosine of the input argument \p x (measured in radians).
+ *
+ * \return
+ * - cos(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - cos(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns NaN.
+ * - cos(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl cos(double x) __THROW;
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the sine and cosine of the first input argument.
+ *
+ * Calculate the sine and cosine of the first input argument \p x (measured
+ * in radians). The results for sine and cosine are written into the
+ * second argument, \p sptr, and, respectively, third argument, \p cptr.
+ *
+ * \see ::sin() and ::cos().
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ void sincos(double x, double *sptr, double *cptr) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the sine and cosine of the first input argument.
+ *
+ * Calculate the sine and cosine of the first input argument \p x (measured
+ * in radians). The results for sine and cosine are written into the second
+ * argument, \p sptr, and, respectively, third argument, \p cptr.
+ *
+ * \see ::sinf() and ::cosf().
+ * \note_accuracy_single
+ * \note_fastmath
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ void sincosf(float x, float *sptr, float *cptr) __THROW;
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the tangent of the input argument.
+ *
+ * Calculate the tangent of the input argument \p x (measured in radians).
+ *
+ * \return
+ * - tan(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - tan(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns NaN.
+ * - tan(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl tan(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the square root of the input argument.
+ *
+ * Calculate the nonnegative square root of \p x,
+ * \cuda_math_formula \sqrt{x} \end_cuda_math_formula.
+ *
+ * \return
+ * Returns
+ * \cuda_math_formula \sqrt{x} \end_cuda_math_formula.
+ * - sqrt(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - sqrt(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - sqrt(\p x) returns NaN if \p x is less than 0.
+ * - sqrt(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl sqrt(double x) __THROW;
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the reciprocal of the square root of the input argument.
+ *
+ * Calculate the reciprocal of the nonnegative square root of \p x,
+ * \cuda_math_formula 1/\sqrt{x} \end_cuda_math_formula.
+ *
+ * \return
+ * Returns
+ * \cuda_math_formula 1/\sqrt{x} \end_cuda_math_formula.
+ * - rsqrt(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - rsqrt(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - rsqrt(\p x) returns NaN if \p x is less than 0.
+ * - rsqrt(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double rsqrt(double x);
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the reciprocal of the square root of the input argument.
+ *
+ * Calculate the reciprocal of the nonnegative square root of \p x,
+ * \cuda_math_formula 1/\sqrt{x} \end_cuda_math_formula.
+ *
+ * \return
+ * Returns
+ * \cuda_math_formula 1/\sqrt{x} \end_cuda_math_formula.
+ * - rsqrtf(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - rsqrtf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - rsqrtf(\p x) returns NaN if \p x is less than 0.
+ * - rsqrtf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float rsqrtf(float x);
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the base 2 logarithm of the input argument.
+ *
+ * Calculate the base 2 logarithm of the input argument \p x.
+ *
+ * \return
+ * - log2(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - log2(1) returns +0.
+ * - log2(\p x) returns NaN for \p x < 0.
+ * - log2(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - log2(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double log2(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl log2(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the base 2 exponential of the input argument.
+ *
+ * Calculate
+ * \cuda_math_formula 2^x \end_cuda_math_formula
+,
+ * the base 2 exponential of the input argument \p x.
+ *
+ * \return
+ * - exp2(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - exp2(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - exp2(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - exp2(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double exp2(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl exp2(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the base 2 exponential of the input argument.
+ *
+ * Calculate
+ * \cuda_math_formula 2^x \end_cuda_math_formula
+,
+ * the base 2 exponential of the input argument \p x.
+ *
+ * \return
+ * - exp2f(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - exp2f(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - exp2f(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - exp2f(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float exp2f(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl exp2f(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the base 10 exponential of the input argument.
+ *
+ * Calculate
+ * \cuda_math_formula 10^x \end_cuda_math_formula
+,
+ * the base 10 exponential of the input argument \p x.
+ *
+ * \return
+ * - exp10(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - exp10(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - exp10(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - exp10(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double exp10(double x) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the base 10 exponential of the input argument.
+ *
+ * Calculate
+ * \cuda_math_formula 10^x \end_cuda_math_formula
+,
+ * the base 10 exponential of the input argument \p x.
+ *
+ * \return
+ * - exp10f(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - exp10f(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - exp10f(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - exp10f(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ * \note_fastmath
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float exp10f(float x) __THROW;
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * exponential of the input argument, minus 1.
+ *
+ * Calculate
+ * \cuda_math_formula e^x \end_cuda_math_formula
+ * -1, the base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * exponential of the input argument \p x, minus 1.
+ *
+ * \return
+ * - expm1(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - expm1(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns -1.
+ * - expm1(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - expm1(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double expm1(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl expm1(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * exponential of the input argument, minus 1.
+ *
+ * Calculate
+ * \cuda_math_formula e^x \end_cuda_math_formula
+ * -1, the base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * exponential of the input argument \p x, minus 1.
+ *
+ * \return
+ * - expm1f(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - expm1f(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns -1.
+ * - expm1f(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - expm1f(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float expm1f(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl expm1f(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the base 2 logarithm of the input argument.
+ *
+ * Calculate the base 2 logarithm of the input argument \p x.
+ *
+ * \return
+ * - log2f(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - log2f(1) returns +0.
+ * - log2f(\p x) returns NaN for \p x < 0.
+ * - log2f(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - log2f(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ * \note_fastmath
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float log2f(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl log2f(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the base 10 logarithm of the input argument.
+ *
+ * Calculate the base 10 logarithm of the input argument \p x.
+ *
+ * \return
+ * - log10(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - log10(1) returns +0.
+ * - log10(\p x) returns NaN for \p x < 0.
+ * - log10(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - log10(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl log10(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * logarithm of the input argument.
+ *
+ * Calculate the base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * logarithm of the input argument \p x.
+ *
+ * \return
+ * - log(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - log(1) returns +0.
+ * - log(\p x) returns NaN for \p x < 0.
+ * - log(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - log(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl log(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the value of
+ * \cuda_math_formula \log_{e}(1+x) \end_cuda_math_formula.
+ *
+ * Calculate the value of
+ * \cuda_math_formula \log_{e}(1+x) \end_cuda_math_formula
+ * of the input argument \p x.
+ *
+ * \return
+ * - log1p(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - log1p(-1) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - log1p(\p x) returns NaN for \p x < -1.
+ * - log1p(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - log1p(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double log1p(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl log1p(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the value of
+ * \cuda_math_formula \log_{e}(1+x) \end_cuda_math_formula.
+ *
+ * Calculate the value of
+ * \cuda_math_formula \log_{e}(1+x) \end_cuda_math_formula
+ * of the input argument \p x.
+ *
+ * \return
+ * - log1pf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - log1pf(-1) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - log1pf(\p x) returns NaN for \p x < -1.
+ * - log1pf(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - log1pf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float log1pf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl log1pf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the largest integer less than or equal to \p x.
+ *
+ * Calculates the largest integer value which is less than or equal to \p x.
+ *
+ * \return
+ * Returns
+ * \cuda_math_formula \lfloor x \rfloor \end_cuda_math_formula
+ * expressed as a floating-point number.
+ * - floor(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - floor(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - floor(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl floor(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * exponential of the input argument.
+ *
+ * Calculate
+ * \cuda_math_formula e^x \end_cuda_math_formula
+,
+ * the base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * exponential of the input argument \p x.
+ *
+ * \return
+ * - exp(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - exp(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - exp(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - exp(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl exp(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the hyperbolic cosine of the input argument.
+ *
+ * Calculate the hyperbolic cosine of the input argument \p x.
+ *
+ * \return
+ * - cosh(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - cosh(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - cosh(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl cosh(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the hyperbolic sine of the input argument.
+ *
+ * Calculate the hyperbolic sine of the input argument \p x.
+ *
+ * \return
+ * - sinh(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - sinh(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - sinh(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl sinh(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the hyperbolic tangent of the input argument.
+ *
+ * Calculate the hyperbolic tangent of the input argument \p x.
+ *
+ * \return
+ * - tanh(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - tanh(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 1 \end_cuda_math_formula.
+ * - tanh(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl tanh(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the nonnegative inverse hyperbolic cosine of the input argument.
+ *
+ * Calculate the nonnegative inverse hyperbolic cosine of the input argument \p x.
+ *
+ * \return
+ * Result will be in the interval [0,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ].
+ * - acosh(1) returns 0.
+ * - acosh(\p x) returns NaN for \p x in the interval [
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * , 1).
+ * - acosh(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - acosh(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double acosh(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl acosh(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the nonnegative inverse hyperbolic cosine of the input argument.
+ *
+ * Calculate the nonnegative inverse hyperbolic cosine of the input argument \p x.
+ *
+ * \return
+ * Result will be in the interval [0,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ].
+ * - acoshf(1) returns 0.
+ * - acoshf(\p x) returns NaN for \p x in the interval [
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * , 1).
+ * - acoshf(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - acoshf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float acoshf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl acoshf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the inverse hyperbolic sine of the input argument.
+ *
+ * Calculate the inverse hyperbolic sine of the input argument \p x.
+ *
+ * \return
+ * - asinh(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - asinh(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - asinh(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double asinh(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl asinh(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the inverse hyperbolic sine of the input argument.
+ *
+ * Calculate the inverse hyperbolic sine of the input argument \p x.
+ *
+ * \return
+ * - asinhf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - asinhf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - asinhf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float asinhf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl asinhf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the inverse hyperbolic tangent of the input argument.
+ *
+ * Calculate the inverse hyperbolic tangent of the input argument \p x.
+ *
+ * \return
+ * - atanh(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - atanh(
+ * \cuda_math_formula \pm 1 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - atanh(\p x) returns NaN for \p x outside interval [-1, 1].
+ * - atanh(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double atanh(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl atanh(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the inverse hyperbolic tangent of the input argument.
+ *
+ * Calculate the inverse hyperbolic tangent of the input argument \p x.
+ *
+ * \return
+ * - atanhf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - atanhf(
+ * \cuda_math_formula \pm 1 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - atanhf(\p x) returns NaN for \p x outside interval [-1, 1].
+ * - atanhf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float atanhf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl atanhf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the value of
+ * \cuda_math_formula x\cdot 2^{exp} \end_cuda_math_formula.
+ *
+ * Calculate the value of
+ * \cuda_math_formula x\cdot 2^{exp} \end_cuda_math_formula
+ * of the input arguments \p x and \p exp.
+ *
+ * \return
+ * - ldexp(\p x, \p exp) is equivalent to scalbn(\p x, \p exp).
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl ldexp(double x, int exp) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the value of
+ * \cuda_math_formula x\cdot 2^{exp} \end_cuda_math_formula.
+ *
+ * Calculate the value of
+ * \cuda_math_formula x\cdot 2^{exp} \end_cuda_math_formula
+ * of the input arguments \p x and \p exp.
+ *
+ * \return
+ * - ldexpf(\p x, \p exp) is equivalent to scalbnf(\p x, \p exp).
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float ldexpf(float x, int exp) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the floating-point representation of the exponent of the input argument.
+ *
+ * Calculate the floating-point representation of the exponent of the input argument \p x.
+ *
+ * \return
+ * - logb(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - logb(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - logb(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double logb(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl logb(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the floating-point representation of the exponent of the input argument.
+ *
+ * Calculate the floating-point representation of the exponent of the input argument \p x.
+ *
+ * \return
+ * - logbf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - logbf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - logbf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float logbf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl logbf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Compute the unbiased integer exponent of the argument.
+ *
+ * Calculates the unbiased integer exponent of the input argument \p x.
+ *
+ * \return
+ * - If successful, returns the unbiased exponent of the argument.
+ * - ilogb(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns INT_MIN.
+ * - ilogb(NaN) returns INT_MIN.
+ * - ilogb(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns INT_MAX.
+ * - Note: above behavior does not take into account FP_ILOGB0 nor FP_ILOGBNAN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int ilogb(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP int __cdecl ilogb(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Compute the unbiased integer exponent of the argument.
+ *
+ * Calculates the unbiased integer exponent of the input argument \p x.
+ *
+ * \return
+ * - If successful, returns the unbiased exponent of the argument.
+ * - ilogbf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns INT_MIN.
+ * - ilogbf(NaN) returns INT_MIN.
+ * - ilogbf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns INT_MAX.
+ * - Note: above behavior does not take into account FP_ILOGB0 nor FP_ILOGBNAN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int ilogbf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP int __cdecl ilogbf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Scale floating-point input by integer power of two.
+ *
+ * Scale \p x by
+ * \cuda_math_formula 2^n \end_cuda_math_formula
+ * by efficient manipulation of the floating-point
+ * exponent.
+ *
+ * \return
+ * Returns \p x *
+ * \cuda_math_formula 2^n \end_cuda_math_formula.
+ * - scalbn(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p n) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - scalbn(\p x, 0) returns \p x.
+ * - scalbn(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p n) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - scalbn(NaN, \p n) returns NaN.
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double scalbn(double x, int n) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl scalbn(double x, int n);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Scale floating-point input by integer power of two.
+ *
+ * Scale \p x by
+ * \cuda_math_formula 2^n \end_cuda_math_formula
+ * by efficient manipulation of the floating-point
+ * exponent.
+ *
+ * \return
+ * Returns \p x *
+ * \cuda_math_formula 2^n \end_cuda_math_formula.
+ * - scalbnf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p n) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - scalbnf(\p x, 0) returns \p x.
+ * - scalbnf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p n) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - scalbnf(NaN, \p n) returns NaN.
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float scalbnf(float x, int n) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl scalbnf(float x, int n);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Scale floating-point input by integer power of two.
+ *
+ * Scale \p x by
+ * \cuda_math_formula 2^n \end_cuda_math_formula
+ * by efficient manipulation of the floating-point
+ * exponent.
+ *
+ * \return
+ * Returns \p x *
+ * \cuda_math_formula 2^n \end_cuda_math_formula.
+ * - scalbln(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p n) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - scalbln(\p x, 0) returns \p x.
+ * - scalbln(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p n) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - scalbln(NaN, \p n) returns NaN.
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double scalbln(double x, long int n) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl scalbln(double x, long int n);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Scale floating-point input by integer power of two.
+ *
+ * Scale \p x by
+ * \cuda_math_formula 2^n \end_cuda_math_formula
+ * by efficient manipulation of the floating-point
+ * exponent.
+ *
+ * \return
+ * Returns \p x *
+ * \cuda_math_formula 2^n \end_cuda_math_formula.
+ * - scalblnf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p n) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - scalblnf(\p x, 0) returns \p x.
+ * - scalblnf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p n) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - scalblnf(NaN, \p n) returns NaN.
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float scalblnf(float x, long int n) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl scalblnf(float x, long int n);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Extract mantissa and exponent of a floating-point value
+ *
+ * Decompose the floating-point value \p x into a component \p m for the
+ * normalized fraction element and another term \p n for the exponent.
+ * The absolute value of \p m will be greater than or equal to 0.5 and
+ * less than 1.0 or it will be equal to 0;
+ * \cuda_math_formula x = m\cdot 2^n \end_cuda_math_formula.
+ * The integer exponent \p n will be stored in the location to which \p nptr points.
+ *
+ * \return
+ * Returns the fractional component \p m.
+ * - frexp(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p nptr) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * and stores zero in the location pointed to by \p nptr.
+ * - frexp(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p nptr) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * and stores an unspecified value in the
+ * location to which \p nptr points.
+ * - frexp(NaN, \p y) returns a NaN and stores an unspecified value in the location to which \p nptr points.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl frexp(double x, int *nptr) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Extract mantissa and exponent of a floating-point value
+ *
+ * Decomposes the floating-point value \p x into a component \p m for the
+ * normalized fraction element and another term \p n for the exponent.
+ * The absolute value of \p m will be greater than or equal to 0.5 and
+ * less than 1.0 or it will be equal to 0;
+ * \cuda_math_formula x = m\cdot 2^n \end_cuda_math_formula.
+ * The integer exponent \p n will be stored in the location to which \p nptr points.
+ *
+ * \return
+ * Returns the fractional component \p m.
+ * - frexpf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p nptr) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * and stores zero in the location pointed to by \p nptr.
+ * - frexpf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p nptr) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * and stores an unspecified value in the
+ * location to which \p nptr points.
+ * - frexpf(NaN, \p y) returns a NaN and stores an unspecified value in the location to which \p nptr points.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float frexpf(float x, int *nptr) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Round to nearest integer value in floating-point.
+ *
+ * Round \p x to the nearest integer value in floating-point format,
+ * with halfway cases rounded away from zero.
+ *
+ * \return
+ * Returns rounded integer value.
+ * - round(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - round(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - round(NaN) returns NaN.
+ *
+ * \note_slow_round See ::rint().
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double round(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl round(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Round to nearest integer value in floating-point.
+ *
+ * Round \p x to the nearest integer value in floating-point format,
+ * with halfway cases rounded away from zero.
+ *
+ * \return
+ * Returns rounded integer value.
+ * - roundf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - roundf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - roundf(NaN) returns NaN.
+ *
+ * \note_slow_round See ::rintf().
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float roundf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl roundf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Round to nearest integer value.
+ *
+ * Round \p x to the nearest integer value, with halfway cases rounded
+ * away from zero. If the result is outside the range of the return type,
+ * the behavior is undefined.
+ *
+ * \return
+ * Returns rounded integer value.
+ *
+ * \note_slow_round See ::lrint().
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ long int lround(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP long int __cdecl lround(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Round to nearest integer value.
+ *
+ * Round \p x to the nearest integer value, with halfway cases rounded
+ * away from zero. If the result is outside the range of the return type,
+ * the behavior is undefined.
+ *
+ * \return
+ * Returns rounded integer value.
+ *
+ * \note_slow_round See ::lrintf().
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ long int lroundf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP long int __cdecl lroundf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Round to nearest integer value.
+ *
+ * Round \p x to the nearest integer value, with halfway cases rounded
+ * away from zero. If the result is outside the range of the return type,
+ * the behavior is undefined.
+ *
+ * \return
+ * Returns rounded integer value.
+ *
+ * \note_slow_round See ::llrint().
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ long long int llround(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP long long int __cdecl llround(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Round to nearest integer value.
+ *
+ * Round \p x to the nearest integer value, with halfway cases rounded
+ * away from zero. If the result is outside the range of the return type,
+ * the behavior is undefined.
+ *
+ * \return
+ * Returns rounded integer value.
+ *
+ * \note_slow_round See ::llrintf().
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ long long int llroundf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP long long int __cdecl llroundf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Round to nearest integer value in floating-point.
+ *
+ * Round \p x to the nearest integer value in floating-point format,
+ * with halfway cases rounded to the nearest even integer value.
+ *
+ * \return
+ * Returns rounded integer value.
+ * - rint(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - rint(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - rint(NaN) returns NaN.
+ */
+#if defined(__CUDA_ARCH__) || defined(__DOXYGEN_ONLY__)
+/*
+ * We don't generate the declaration of rint for host compilation.
+ * This is acaully a workaround to compile the boost header file when
+ * Clang 3.8 is used as the host compiler. The boost header file has
+ * the following example code:
+ * namespace NS { extern "C" { double rint(double); }
+ * }
+ *
+ * After preprocessing, we get something like below:
+ *
+ * extern "C" { double rint(double x) throw(); }
+ * # 30 "/usr/include/math.h" 3
+ * extern "C" { double rint(double x) throw(); }
+ * namespace NS { extern "C" { double rint(double); } }
+ *
+ * Although GCC accepts this output, Clang 3.8 doesn't.
+ * Furthermore, we cannot change the boost header file by adding "throw()"
+ * to rint's declaration there. So, as a workaround, we just don't generate
+ * our re-declaration for the host compilation.
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double rint(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl rint(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#endif /* __CUDA_ARCH__ || __DOXYGEN_ONLY__ */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Round input to nearest integer value in floating-point.
+ *
+ * Round \p x to the nearest integer value in floating-point format,
+ * with halfway cases rounded to the nearest even integer value.
+ *
+ * \return
+ * Returns rounded integer value.
+ * - rintf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - rintf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - rintf(NaN) returns NaN.
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float rintf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl rintf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Round input to nearest integer value.
+ *
+ * Round \p x to the nearest integer value,
+ * with halfway cases rounded to the nearest even integer value.
+ * If the result is outside the range of the return type,
+ * the behavior is undefined.
+ *
+ * \return
+ * Returns rounded integer value.
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ long int lrint(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP long int __cdecl lrint(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Round input to nearest integer value.
+ *
+ * Round \p x to the nearest integer value,
+ * with halfway cases rounded to the nearest even integer value.
+ * If the result is outside the range of the return type,
+ * the behavior is undefined.
+ *
+ * \return
+ * Returns rounded integer value.
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ long int lrintf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP long int __cdecl lrintf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Round input to nearest integer value.
+ *
+ * Round \p x to the nearest integer value,
+ * with halfway cases rounded to the nearest even integer value.
+ * If the result is outside the range of the return type,
+ * the behavior is undefined.
+ *
+ * \return
+ * Returns rounded integer value.
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ long long int llrint(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP long long int __cdecl llrint(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Round input to nearest integer value.
+ *
+ * Round \p x to the nearest integer value,
+ * with halfway cases rounded to the nearest even integer value.
+ * If the result is outside the range of the return type,
+ * the behavior is undefined.
+ *
+ * \return
+ * Returns rounded integer value.
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ long long int llrintf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP long long int __cdecl llrintf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Round the input argument to the nearest integer.
+ *
+ * Round argument \p x to an integer value in double precision floating-point format. Uses round to nearest rounding, with ties rounding to even.
+ *
+ * \return
+ * - nearbyint(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - nearbyint(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - nearbyint(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double nearbyint(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl nearbyint(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Round the input argument to the nearest integer.
+ *
+ * Round argument \p x to an integer value in single precision floating-point format. Uses round to nearest rounding, with ties rounding to even.
+ *
+ * \return
+ * - nearbyintf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - nearbyintf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - nearbyintf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float nearbyintf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl nearbyintf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate ceiling of the input argument.
+ *
+ * Compute the smallest integer value not less than \p x.
+ *
+ * \return
+ * Returns
+ * \cuda_math_formula \lceil x \rceil \end_cuda_math_formula
+ expressed as a floating-point number.
+ * - ceil(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - ceil(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - ceil(NaN) returns NaN.
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl ceil(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Truncate input argument to the integral part.
+ *
+ * Round \p x to the nearest integer value that does not exceed \p x in
+ * magnitude.
+ *
+ * \return
+ * Returns truncated integer value.
+ * - trunc(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - trunc(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - trunc(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double trunc(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl trunc(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Truncate input argument to the integral part.
+ *
+ * Round \p x to the nearest integer value that does not exceed \p x in
+ * magnitude.
+ *
+ * \return
+ * Returns truncated integer value.
+ * - truncf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - truncf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - truncf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float truncf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl truncf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Compute the positive difference between \p x and \p y.
+ *
+ * Compute the positive difference between \p x and \p y. The positive
+ * difference is \p x - \p y when \p x > \p y and +0 otherwise.
+ *
+ * \return
+ * Returns the positive difference between \p x and \p y.
+ * - fdim(\p x, \p y) returns \p x - \p y if \p x > \p y.
+ * - fdim(\p x, \p y) returns +0 if \p x
+ * \cuda_math_formula \leq \end_cuda_math_formula
+ \p y.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double fdim(double x, double y) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl fdim(double x, double y);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Compute the positive difference between \p x and \p y.
+ *
+ * Compute the positive difference between \p x and \p y. The positive
+ * difference is \p x - \p y when \p x > \p y and +0 otherwise.
+ *
+ * \return
+ * Returns the positive difference between \p x and \p y.
+ * - fdimf(\p x, \p y) returns \p x - \p y if \p x > \p y.
+ * - fdimf(\p x, \p y) returns +0 if \p x
+ * \cuda_math_formula \leq \end_cuda_math_formula
+ \p y.
+ * - If either argument is NaN, NaN is returned.
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float fdimf(float x, float y) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl fdimf(float x, float y);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the arc tangent of the ratio of first and second input arguments.
+ *
+ * Calculate the principal value of the arc tangent of the ratio of first
+ * and second input arguments \p y / \p x. The quadrant of the result is
+ * determined by the signs of inputs \p y and \p x.
+ *
+ * \return
+ * Result will be in radians, in the interval [-
+ * \cuda_math_formula \pi \end_cuda_math_formula
+ * , +
+ * \cuda_math_formula \pi \end_cuda_math_formula
+ * ].
+ * - atan2(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , -0) returns
+ * \cuda_math_formula \pm \pi \end_cuda_math_formula.
+ * - atan2(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , +0) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - atan2(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p x) returns
+ * \cuda_math_formula \pm \pi \end_cuda_math_formula
+ * for \p x < 0.
+ * - atan2(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p x) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * for \p x > 0.
+ * - atan2(\p y,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\pi \end_cuda_math_formula
+ * /2 for \p y < 0.
+ * - atan2(\p y,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pi \end_cuda_math_formula
+ * /2 for \p y > 0.
+ * - atan2(
+ * \cuda_math_formula \pm y \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \pi \end_cuda_math_formula
+ * for finite \p y > 0.
+ * - atan2(
+ * \cuda_math_formula \pm y \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * for finite \p y > 0.
+ * - atan2(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p x) returns
+ * \cuda_math_formula \pm \pi \end_cuda_math_formula
+ * /2 for finite \p x.
+ * - atan2(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 3\pi \end_cuda_math_formula
+ * /4.
+ * - atan2(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \pi \end_cuda_math_formula
+ * /4.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl atan2(double y, double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the arc tangent of the input argument.
+ *
+ * Calculate the principal value of the arc tangent of the input argument \p x.
+ *
+ * \return
+ * Result will be in radians, in the interval [-
+ * \cuda_math_formula \pi \end_cuda_math_formula
+ * /2, +
+ * \cuda_math_formula \pi \end_cuda_math_formula
+ * /2].
+ * - atan(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - atan(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \pi \end_cuda_math_formula
+ * /2.
+ * - atan(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl atan(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the arc cosine of the input argument.
+ *
+ * Calculate the principal value of the arc cosine of the input argument \p x.
+ *
+ * \return
+ * Result will be in radians, in the interval [0,
+ * \cuda_math_formula \pi \end_cuda_math_formula
+ * ] for \p x inside [-1, +1].
+ * - acos(1) returns +0.
+ * - acos(\p x) returns NaN for \p x outside [-1, +1].
+ * - acos(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl acos(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the arc sine of the input argument.
+ *
+ * Calculate the principal value of the arc sine of the input argument \p x.
+ *
+ * \return
+ * Result will be in radians, in the interval [-
+ * \cuda_math_formula \pi \end_cuda_math_formula
+ * /2, +
+ * \cuda_math_formula \pi \end_cuda_math_formula
+ * /2] for \p x inside [-1, +1].
+ * - asin(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - asin(\p x) returns NaN for \p x outside [-1, +1].
+ * - asin(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl asin(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the square root of the sum of squares of two arguments.
+ *
+ * Calculate the length of the hypotenuse of a right triangle whose two sides have lengths
+ * \p x and \p y without undue overflow or underflow.
+ *
+ * \return Returns the length of the hypotenuse
+ * \cuda_math_formula \sqrt{x^2+y^2} \end_cuda_math_formula.
+ * - hypot(\p x,\p y), hypot(\p y,\p x), and hypot(\p x, \p -y) are equivalent.
+ * - hypot(\p x,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) is equivalent to fabs(\p x).
+ * - hypot(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,\p y) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+,
+ * even if \p y is a NaN.
+ * - hypot(NaN, \p y) returns NaN, when \p y is not \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ *
+ * \note_accuracy_double
+ */
+#if defined(_WIN32)
+#if defined(_MSC_VER) && _MSC_VER < 1900
+static __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __CRTDECL hypot(double x, double y);
+#else
+extern _ACRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl hypot(double x, double y);
+#endif
+#else /* _WIN32 */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double hypot(double x, double y) __THROW;
+#endif /* _WIN32 */
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate one over the square root of the sum of squares of two arguments.
+ *
+ * Calculate one over the length of the hypotenuse of a right triangle whose two sides have
+ * lengths \p x and \p y without undue overflow or underflow.
+ *
+ * \return Returns one over the length of the hypotenuse
+ * \cuda_math_formula \frac{1}{\sqrt{x^2+y^2}} \end_cuda_math_formula.
+ * - rhypot(\p x,\p y), rhypot(\p y,\p x), and rhypot(\p x, \p -y) are equivalent.
+ * - rhypot(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,\p y) returns +0,
+ * even if \p y is a NaN.
+ * - rhypot(\cuda_math_formula \pm 0, \pm 0 \end_cuda_math_formula) returns \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - rhypot(NaN, \p y) returns NaN, when \p y is not \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ *
+ * \note_accuracy_double
+ */
+extern __device__ __device_builtin__ double rhypot(double x, double y) __THROW;
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the square root of the sum of squares of two arguments.
+ *
+ * Calculates the length of the hypotenuse of a right triangle whose two sides have lengths
+ * \p x and \p y without undue overflow or underflow.
+ *
+ * \return Returns the length of the hypotenuse
+ * \cuda_math_formula \sqrt{x^2+y^2} \end_cuda_math_formula.
+ * - hypotf(\p x,\p y), hypotf(\p y,\p x), and hypotf(\p x, \p -y) are equivalent.
+ * - hypotf(\p x,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) is equivalent to fabsf(\p x).
+ * - hypotf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,\p y) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+,
+ * even if \p y is a NaN.
+ * - hypotf(NaN, \p y) returns NaN, when \p y is not \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ *
+ * \note_accuracy_single
+ */
+#if defined(_WIN32)
+static __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __CRTDECL hypotf(float x, float y);
+#else /* _WIN32 */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float hypotf(float x, float y) __THROW;
+#endif /* _WIN32 */
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate one over the square root of the sum of squares of two arguments.
+ *
+ * Calculates one over the length of the hypotenuse of a right triangle whose two sides have
+ * lengths \p x and \p y without undue overflow or underflow.
+ *
+ * \return Returns one over the length of the hypotenuse
+ * \cuda_math_formula \frac{1}{\sqrt{x^2+y^2}} \end_cuda_math_formula.
+ * - rhypotf(\p x,\p y), rhypotf(\p y,\p x), and rhypotf(\p x, \p -y) are equivalent.
+ * - rhypotf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,\p y) returns +0,
+ * even if \p y is a NaN.
+ * - rhypotf(\cuda_math_formula \pm 0, \pm 0 \end_cuda_math_formula) returns \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - rhypotf(NaN, \p y) returns NaN, when \p y is not \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ *
+ * \note_accuracy_single
+ */
+extern __device__ __device_builtin__ float rhypotf(float x, float y) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the square root of the sum of squares of three coordinates of the argument.
+ *
+ * Calculate the length of three dimensional vector in Euclidean space without undue overflow or underflow.
+ *
+ * \return Returns the length of 3D vector
+ * \cuda_math_formula \sqrt{a^2+b^2+c^2} \end_cuda_math_formula.
+ * - In the presence of an exactly infinite coordinate
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * is returned, even if there are NaNs.
+ * - returns +0, when all coordinates are \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - returns NaN, when at least one of the coordinates is NaN and none are infinite.
+ *
+ * \note_accuracy_double
+ */
+extern __device__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl norm3d(double a, double b, double c) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate one over the square root of the sum of squares of three coordinates.
+ *
+ * Calculate one over the length of three dimensional vector in Euclidean space without undue overflow or underflow.
+ *
+ * \return Returns one over the length of the 3D vector
+ * \cuda_math_formula \frac{1}{\sqrt{a^2+b^2+c^2}} \end_cuda_math_formula.
+ * - In the presence of an exactly infinite coordinate
+ * \cuda_math_formula +0 \end_cuda_math_formula
+ * is returned, even if there are NaNs.
+ * - returns \cuda_math_formula +\infty \end_cuda_math_formula, when all coordinates are \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - returns NaN, when at least one of the coordinates is NaN and none are infinite.
+ *
+ * \note_accuracy_double
+ */
+extern __device__ __device_builtin__ double rnorm3d(double a, double b, double c) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the square root of the sum of squares of four coordinates of the argument.
+ *
+ * Calculate the length of four dimensional vector in Euclidean space without undue overflow or underflow.
+ *
+ * \return Returns the length of 4D vector
+ * \cuda_math_formula \sqrt{a^2+b^2+c^2+d^2} \end_cuda_math_formula.
+ * - In the presence of an exactly infinite coordinate
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * is returned, even if there are NaNs.
+ * - returns +0, when all coordinates are \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - returns NaN, when at least one of the coordinates is NaN and none are infinite.
+ *
+ * \note_accuracy_double
+ */
+extern __device__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl norm4d(double a, double b, double c, double d) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate one over the square root of the sum of squares of four coordinates.
+ *
+ * Calculate one over the length of four dimensional vector in Euclidean space without undue overflow or underflow.
+ *
+ * \return Returns one over the length of the 3D vector
+ * \cuda_math_formula \frac{1}{\sqrt{a^2+b^2+c^2+d^2}} \end_cuda_math_formula.
+ * - In the presence of an exactly infinite coordinate
+ * \cuda_math_formula +0 \end_cuda_math_formula
+ * is returned, even if there are NaNs.
+ * - returns \cuda_math_formula +\infty \end_cuda_math_formula, when all coordinates are \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - returns NaN, when at least one of the coordinates is NaN and none are infinite.
+ *
+ * \note_accuracy_double
+ */
+extern __device__ __device_builtin__ double rnorm4d(double a, double b, double c, double d) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the square root of the sum of squares of any number of coordinates.
+ *
+ * Calculate the length of a vector p, dimension of which is passed as an argument \p without undue overflow or underflow.
+ *
+ * \return Returns the length of the dim-D vector
+ * \cuda_math_formula \sqrt{\sum_{i=0}^{dim-1} p_i^2} \end_cuda_math_formula.
+ * - In the presence of an exactly infinite coordinate
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * is returned, even if there are NaNs.
+ * - returns +0, when all coordinates are \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - returns NaN, when at least one of the coordinates is NaN and none are infinite.
+ *
+ * \note_accuracy_double
+ */
+__device__ __device_builtin__ double norm(int dim, double const * p) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the reciprocal of square root of the sum of squares of any number of coordinates.
+ *
+ * Calculates one over the length of vector \p p, dimension of which is passed as an argument, in Euclidean space without undue overflow or underflow.
+ *
+ * \return Returns one over the length of the vector
+ * \cuda_math_formula \frac{1}{\sqrt{\sum_{i=0}^{dim-1} p_i^2}} \end_cuda_math_formula.
+ * - In the presence of an exactly infinite coordinate
+ * \cuda_math_formula +0 \end_cuda_math_formula
+ * is returned, even if there are NaNs.
+ * - returns \cuda_math_formula +\infty \end_cuda_math_formula, when all coordinates are \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - returns NaN, when at least one of the coordinates is NaN and none are infinite.
+ *
+ * \note_accuracy_double
+ */
+extern __device__ __device_builtin__ double rnorm(int dim, double const * p) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the reciprocal of square root of the sum of squares of any number of coordinates.
+ *
+ * Calculates one over the length of vector \p p, dimension of which is passed as an argument, in Euclidean space without undue overflow or underflow.
+ *
+ * \return Returns one over the length of the vector
+ * \cuda_math_formula \frac{1}{\sqrt{\sum_{i=0}^{dim-1} p_i^2}} \end_cuda_math_formula.
+ * - In the presence of an exactly infinite coordinate
+ * \cuda_math_formula +0 \end_cuda_math_formula
+ * is returned, even if there are NaNs.
+ * - returns \cuda_math_formula +\infty \end_cuda_math_formula, when all coordinates are \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - returns NaN, when at least one of the coordinates is NaN and none are infinite.
+ *
+ * \note_accuracy_single
+ */
+
+extern __device__ __device_builtin__ float rnormf(int dim, float const * p) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the square root of the sum of squares of any number of coordinates.
+ *
+ * Calculates the length of a vector \p p, dimension of which is passed as an argument without undue overflow or underflow.
+ *
+ * \return Returns the length of the dim-D vector
+ * \cuda_math_formula \sqrt{\sum_{i=0}^{dim-1} p_i^2} \end_cuda_math_formula.
+ * - In the presence of an exactly infinite coordinate
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * is returned, even if there are NaNs.
+ * - returns +0, when all coordinates are \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - returns NaN, when at least one of the coordinates is NaN and none are infinite.
+ *
+ * \note_accuracy_single
+ */
+__device__ __device_builtin__ float normf(int dim, float const * p) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the square root of the sum of squares of three coordinates of the argument.
+ *
+ * Calculates the length of three dimensional vector in Euclidean space without undue overflow or underflow.
+ *
+ * \return Returns the length of the 3D vector
+ * \cuda_math_formula \sqrt{a^2+b^2+c^2} \end_cuda_math_formula.
+ * - In the presence of an exactly infinite coordinate
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * is returned, even if there are NaNs.
+ * - returns +0, when all coordinates are \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - returns NaN, when at least one of the coordinates is NaN and none are infinite.
+ *
+ * \note_accuracy_single
+ */
+
+extern __device__ __device_builtin__ float norm3df(float a, float b, float c) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate one over the square root of the sum of squares of three coordinates.
+ *
+ * Calculates one over the length of three dimension vector in Euclidean space without undue overflow or underflow.
+ *
+ * \return Returns one over the length of the 3D vector
+ * \cuda_math_formula \frac{1}{\sqrt{a^2+b^2+c^2}} \end_cuda_math_formula.
+ * - In the presence of an exactly infinite coordinate
+ * \cuda_math_formula +0 \end_cuda_math_formula
+ * is returned, even if there are NaNs.
+ * - returns \cuda_math_formula +\infty \end_cuda_math_formula, when all coordinates are \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - returns NaN, when at least one of the coordinates is NaN and none are infinite.
+ *
+ * \note_accuracy_single
+ */
+extern __device__ __device_builtin__ float rnorm3df(float a, float b, float c) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the square root of the sum of squares of four coordinates of the argument.
+ *
+ * Calculates the length of four dimensional vector in Euclidean space without undue overflow or underflow.
+ *
+ * \return Returns the length of the 4D vector
+ * \cuda_math_formula \sqrt{a^2+b^2+c^2+d^2} \end_cuda_math_formula.
+ * - In the presence of an exactly infinite coordinate
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * is returned, even if there are NaNs.
+ * - returns +0, when all coordinates are \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - returns NaN, when at least one of the coordinates is NaN and none are infinite.
+ *
+ * \note_accuracy_single
+ */
+extern __device__ __device_builtin__ float norm4df(float a, float b, float c, float d) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate one over the square root of the sum of squares of four coordinates.
+ *
+ * Calculates one over the length of four dimension vector in Euclidean space without undue overflow or underflow.
+ *
+ * \return Returns one over the length of the 3D vector
+ * \cuda_math_formula \frac{1}{\sqrt{a^2+b^2+c^2+d^2}} \end_cuda_math_formula.
+ * - In the presence of an exactly infinite coordinate
+ * \cuda_math_formula +0 \end_cuda_math_formula
+ * is returned, even if there are NaNs.
+ * - returns \cuda_math_formula +\infty \end_cuda_math_formula, when all coordinates are \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - returns NaN, when at least one of the coordinates is NaN and none are infinite.
+ *
+ * \note_accuracy_single
+ */
+extern __device__ __device_builtin__ float rnorm4df(float a, float b, float c, float d) __THROW;
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the cube root of the input argument.
+ *
+ * Calculate the cube root of \p x,
+ * \cuda_math_formula x^{1/3} \end_cuda_math_formula.
+ *
+ * \return
+ * Returns
+ * \cuda_math_formula x^{1/3} \end_cuda_math_formula.
+ * - cbrt(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - cbrt(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - cbrt(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double cbrt(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl cbrt(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the cube root of the input argument.
+ *
+ * Calculate the cube root of \p x,
+ * \cuda_math_formula x^{1/3} \end_cuda_math_formula.
+ *
+ * \return
+ * Returns
+ * \cuda_math_formula x^{1/3} \end_cuda_math_formula.
+ * - cbrtf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - cbrtf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - cbrtf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float cbrtf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl cbrtf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate reciprocal cube root function.
+ *
+ * Calculate reciprocal cube root function of \p x.
+ *
+ * \return
+ * - rcbrt(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - rcbrt(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - rcbrt(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double rcbrt(double x);
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate reciprocal cube root function.
+ *
+ * Calculate reciprocal cube root function of \p x.
+ *
+ * \return
+ * - rcbrtf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - rcbrtf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - rcbrtf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float rcbrtf(float x);
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the sine of the input argument
+ * \cuda_math_formula \times \pi \end_cuda_math_formula.
+ *
+ * Calculate the sine of \p x
+ * \cuda_math_formula \times \pi \end_cuda_math_formula
+ * (measured in radians),
+ * where \p x is the input argument.
+ *
+ * \return
+ * - sinpi(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - sinpi(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns NaN.
+ * - sinpi(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double sinpi(double x);
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the sine of the input argument
+ * \cuda_math_formula \times \pi \end_cuda_math_formula.
+ *
+ * Calculate the sine of \p x
+ * \cuda_math_formula \times \pi \end_cuda_math_formula
+ * (measured in radians),
+ * where \p x is the input argument.
+ *
+ * \return
+ * - sinpif(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - sinpif(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns NaN.
+ * - sinpif(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float sinpif(float x);
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the cosine of the input argument
+ * \cuda_math_formula \times \pi \end_cuda_math_formula.
+ *
+ * Calculate the cosine of \p x
+ * \cuda_math_formula \times \pi \end_cuda_math_formula
+ * (measured in radians),
+ * where \p x is the input argument.
+ *
+ * \return
+ * - cospi(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - cospi(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns NaN.
+ * - cospi(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double cospi(double x);
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the cosine of the input argument
+ * \cuda_math_formula \times \pi \end_cuda_math_formula.
+ *
+ * Calculate the cosine of \p x
+ * \cuda_math_formula \times \pi \end_cuda_math_formula
+ * (measured in radians),
+ * where \p x is the input argument.
+ *
+ * \return
+ * - cospif(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - cospif(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns NaN.
+ * - cospif(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float cospif(float x);
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the sine and cosine of the first input argument
+ * \cuda_math_formula \times \pi \end_cuda_math_formula.
+ *
+ * Calculate the sine and cosine of the first input argument, \p x (measured in radians),
+ * \cuda_math_formula \times \pi \end_cuda_math_formula. The results for sine and cosine are written into the
+ * second argument, \p sptr, and, respectively, third argument, \p cptr.
+ *
+ * \see ::sinpi() and ::cospi().
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ void sincospi(double x, double *sptr, double *cptr);
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the sine and cosine of the first input argument
+ * \cuda_math_formula \times \pi \end_cuda_math_formula.
+ *
+ * Calculate the sine and cosine of the first input argument, \p x (measured in radians),
+ * \cuda_math_formula \times \pi \end_cuda_math_formula. The results for sine and cosine are written into the
+ * second argument, \p sptr, and, respectively, third argument, \p cptr.
+ *
+ * \see ::sinpif() and ::cospif().
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ void sincospif(float x, float *sptr, float *cptr);
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the value of first argument to the power of second argument.
+ *
+ * Calculate the value of \p x to the power of \p y.
+ *
+ * \return
+ * - pow(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * for \p y an odd integer less than 0.
+ * - pow(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * for \p y less than 0 and not an odd integer.
+ * - pow(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * for \p y an odd integer greater than 0.
+ * - pow(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p y) returns +0 for \p y > 0 and not an odd integer.
+ * - pow(-1,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns 1.
+ * - pow(+1, \p y) returns 1 for any \p y, even a NaN.
+ * - pow(\p x,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1 for any \p x, even a NaN.
+ * - pow(\p x, \p y) returns a NaN for finite \p x < 0 and finite non-integer \p y.
+ * - pow(\p x,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * for
+ * \cuda_math_formula | x | < 1 \end_cuda_math_formula.
+ * - pow(\p x,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns +0 for
+ * \cuda_math_formula | x | > 1 \end_cuda_math_formula.
+ * - pow(\p x,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0 for
+ * \cuda_math_formula | x | < 1 \end_cuda_math_formula.
+ * - pow(\p x,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * for
+ * \cuda_math_formula | x | > 1 \end_cuda_math_formula.
+ * - pow(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * , \p y) returns -0 for \p y an odd integer less than 0.
+ * - pow(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * , \p y) returns +0 for \p y < 0 and not an odd integer.
+ * - pow(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * for \p y an odd integer greater than 0.
+ * - pow(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * for \p y > 0 and not an odd integer.
+ * - pow(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * , \p y) returns +0 for \p y < 0.
+ * - pow(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * for \p y > 0.
+ * - pow(\p x, \p y) returns NaN if either \p x or \p y or both are NaN and \p x \cuda_math_formula \neq \end_cuda_math_formula +1 and \p y \cuda_math_formula \neq\pm 0 \end_cuda_math_formula.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl pow(double x, double y) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Break down the input argument into fractional and integral parts.
+ *
+ * Break down the argument \p x into fractional and integral parts. The
+ * integral part is stored in the argument \p iptr.
+ * Fractional and integral parts are given the same sign as the argument \p x.
+ *
+ * \return
+ * - modf(
+ * \cuda_math_formula \pm x \end_cuda_math_formula
+ * , \p iptr) returns a result with the same sign as \p x.
+ * - modf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p iptr) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * and stores
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * in the object pointed to by \p iptr.
+ * - modf(NaN, \p iptr) stores a NaN in the object pointed to by \p iptr and returns a NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl modf(double x, double *iptr) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the double-precision floating-point remainder of \p x / \p y.
+ *
+ * Calculate the double-precision floating-point remainder of \p x / \p y.
+ * The floating-point remainder of the division operation \p x / \p y calculated
+ * by this function is exactly the value x - n*y, where \p n is \p x / \p y with its fractional part truncated.
+ * The computed value will have the same sign as \p x, and its magnitude will be less than the magnitude of \p y.
+ *
+ * \return
+ * - Returns the floating-point remainder of \p x / \p y.
+ * - fmod(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * if \p y is not zero.
+ * - fmod(\p x,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns \p x if \p x is finite.
+ * - fmod(\p x, \p y) returns NaN if \p x is
+ * \cuda_math_formula \pm\infty \end_cuda_math_formula
+ * or \p y is zero.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double __cdecl fmod(double x, double y) __THROW;
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Compute double-precision floating-point remainder.
+ *
+ * Compute double-precision floating-point remainder \p r of dividing
+ * \p x by \p y for nonzero \p y. Thus
+ * \cuda_math_formula r = x - n y \end_cuda_math_formula.
+ * The value \p n is the integer value nearest
+ * \cuda_math_formula \frac{x}{y} \end_cuda_math_formula.
+ * In the case when
+ * \cuda_math_formula | n -\frac{x}{y} | = \frac{1}{2} \end_cuda_math_formula
+ * , the
+ * even \p n value is chosen.
+ *
+ * \return
+ * - remainder(\p x,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns NaN.
+ * - remainder(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p y) returns NaN.
+ * - remainder(\p x,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns \p x for finite \p x.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double remainder(double x, double y) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl remainder(double x, double y);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Compute single-precision floating-point remainder.
+ *
+ * Compute single-precision floating-point remainder \p r of dividing
+ * \p x by \p y for nonzero \p y. Thus
+ * \cuda_math_formula r = x - n y \end_cuda_math_formula.
+ * The value \p n is the integer value nearest
+ * \cuda_math_formula \frac{x}{y} \end_cuda_math_formula.
+ * In the case when
+ * \cuda_math_formula | n -\frac{x}{y} | = \frac{1}{2} \end_cuda_math_formula
+ * , the
+ * even \p n value is chosen.
+ *
+ * \return
+ * - remainderf(\p x,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns NaN.
+ * - remainderf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p y) returns NaN.
+ * - remainderf(\p x,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns \p x for finite \p x.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float remainderf(float x, float y) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl remainderf(float x, float y);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Compute double-precision floating-point remainder and part of quotient.
+ *
+ * Compute a double-precision floating-point remainder in the same way as the
+ * ::remainder() function. Argument \p quo returns part of quotient upon
+ * division of \p x by \p y. Value \p quo has the same sign as
+ * \cuda_math_formula \frac{x}{y} \end_cuda_math_formula
+ * and may not be the exact quotient but agrees with the exact quotient
+ * in the low order 3 bits.
+ *
+ * \return
+ * Returns the remainder.
+ * - remquo(\p x,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p quo) returns NaN
+ * and stores an unspecified value in the
+ * location to which \p quo points.
+ * - remquo(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p y, \p quo) returns NaN
+ * and stores an unspecified value in the
+ * location to which \p quo points.
+ * - remquo(\p x, \p y, \p quo) returns NaN
+ * and stores an unspecified value in the
+ * location to which \p quo points if either of \p x or \p y is NaN.
+ * - remquo(\p x,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p quo) returns \p x and stores zero
+ * in the location to which \p quo points for finite \p x.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double remquo(double x, double y, int *quo) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl remquo(double x, double y, int *quo);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Compute single-precision floating-point remainder and part of quotient.
+ *
+ * Compute a single-precision floating-point remainder in the same way as the
+ * ::remainderf() function. Argument \p quo returns part of quotient upon
+ * division of \p x by \p y. Value \p quo has the same sign as
+ * \cuda_math_formula \frac{x}{y} \end_cuda_math_formula
+ * and may not be the exact quotient but agrees with the exact quotient
+ * in the low order 3 bits.
+ *
+ * \return
+ * Returns the remainder.
+ * - remquof(\p x,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p quo) returns NaN
+ * and stores an unspecified value in the
+ * location to which \p quo points.
+ * - remquof(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p y, \p quo) returns NaN
+ * and stores an unspecified value in the
+ * location to which \p quo points.
+ * - remquof(\p x, \p y, \p quo) returns NaN
+ * and stores an unspecified value in the
+ * location to which \p quo points if either of \p x or \p y is NaN.
+ * - remquof(\p x,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p quo) returns \p x and stores zero
+ * in the location to which \p quo points for finite \p x.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float remquof(float x, float y, int *quo) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl remquof(float x, float y, int *quo);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the value of the Bessel function of the first kind of order 0 for the input argument.
+ *
+ * Calculate the value of the Bessel function of the first kind of order 0 for
+ * the input argument \p x,
+ * \cuda_math_formula J_0(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the Bessel function of the first kind of order 0.
+ * - j0(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns +0.
+ * - j0(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl j0(double x) __THROW;
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the value of the Bessel function of the first kind of order 0 for the input argument.
+ *
+ * Calculate the value of the Bessel function of the first kind of order 0 for
+ * the input argument \p x,
+ * \cuda_math_formula J_0(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the Bessel function of the first kind of order 0.
+ * - j0f(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns +0.
+ * - j0f(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float j0f(float x) __THROW;
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the value of the Bessel function of the first kind of order 1 for the input argument.
+ *
+ * Calculate the value of the Bessel function of the first kind of order 1 for
+ * the input argument \p x,
+ * \cuda_math_formula J_1(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the Bessel function of the first kind of order 1.
+ * - j1(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - j1(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - j1(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl j1(double x) __THROW;
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the value of the Bessel function of the first kind of order 1 for the input argument.
+ *
+ * Calculate the value of the Bessel function of the first kind of order 1 for
+ * the input argument \p x,
+ * \cuda_math_formula J_1(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the Bessel function of the first kind of order 1.
+ * - j1f(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - j1f(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - j1f(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float j1f(float x) __THROW;
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the value of the Bessel function of the first kind of order n for the input argument.
+ *
+ * Calculate the value of the Bessel function of the first kind of order \p n for
+ * the input argument \p x,
+ * \cuda_math_formula J_n(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the Bessel function of the first kind of order \p n.
+ * - jn(\p n, NaN) returns NaN.
+ * - jn(\p n, \p x) returns NaN for \p n < 0.
+ * - jn(\p n,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl jn(int n, double x) __THROW;
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the value of the Bessel function of the first kind of order n for the input argument.
+ *
+ * Calculate the value of the Bessel function of the first kind of order \p n for
+ * the input argument \p x,
+ * \cuda_math_formula J_n(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the Bessel function of the first kind of order \p n.
+ * - jnf(\p n, NaN) returns NaN.
+ * - jnf(\p n, \p x) returns NaN for \p n < 0.
+ * - jnf(\p n,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float jnf(int n, float x) __THROW;
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the value of the Bessel function of the second kind of order 0 for the input argument.
+ *
+ * Calculate the value of the Bessel function of the second kind of order 0 for
+ * the input argument \p x,
+ * \cuda_math_formula Y_0(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the Bessel function of the second kind of order 0.
+ * - y0(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - y0(\p x) returns NaN for \p x < 0.
+ * - y0(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - y0(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl y0(double x) __THROW;
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the value of the Bessel function of the second kind of order 0 for the input argument.
+ *
+ * Calculate the value of the Bessel function of the second kind of order 0 for
+ * the input argument \p x,
+ * \cuda_math_formula Y_0(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the Bessel function of the second kind of order 0.
+ * - y0f(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - y0f(\p x) returns NaN for \p x < 0.
+ * - y0f(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - y0f(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float y0f(float x) __THROW;
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the value of the Bessel function of the second kind of order 1 for the input argument.
+ *
+ * Calculate the value of the Bessel function of the second kind of order 1 for
+ * the input argument \p x,
+ * \cuda_math_formula Y_1(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the Bessel function of the second kind of order 1.
+ * - y1(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - y1(\p x) returns NaN for \p x < 0.
+ * - y1(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - y1(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl y1(double x) __THROW;
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the value of the Bessel function of the second kind of order 1 for the input argument.
+ *
+ * Calculate the value of the Bessel function of the second kind of order 1 for
+ * the input argument \p x,
+ * \cuda_math_formula Y_1(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the Bessel function of the second kind of order 1.
+ * - y1f(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - y1f(\p x) returns NaN for \p x < 0.
+ * - y1f(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - y1f(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float y1f(float x) __THROW;
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the value of the Bessel function of the second kind of order n for the input argument.
+ *
+ * Calculate the value of the Bessel function of the second kind of order \p n for
+ * the input argument \p x,
+ * \cuda_math_formula Y_n(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the Bessel function of the second kind of order \p n.
+ * - yn(\p n, \p x) returns NaN for \p n < 0.
+ * - yn(\p n,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ *) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - yn(\p n, \p x) returns NaN for \p x < 0.
+ * - yn(\p n,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - yn(\p n, NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl yn(int n, double x) __THROW;
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the value of the Bessel function of the second kind of order n for the input argument.
+ *
+ * Calculate the value of the Bessel function of the second kind of order \p n for
+ * the input argument \p x,
+ * \cuda_math_formula Y_n(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the Bessel function of the second kind of order \p n.
+ * - ynf(\p n, \p x) returns NaN for \p n < 0.
+ * - ynf(\p n,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - ynf(\p n, \p x) returns NaN for \p x < 0.
+ * - ynf(\p n,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - ynf(\p n, NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float ynf(int n, float x) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the value of the regular modified cylindrical Bessel function of order 0 for the input argument.
+ *
+ * Calculate the value of the regular modified cylindrical Bessel function of order 0 for
+ * the input argument \p x,
+ * \cuda_math_formula I_0(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the regular modified cylindrical Bessel function of order 0.
+ * - cyl_bessel_i0(\cuda_math_formula \pm 0 \end_cuda_math_formula) returns +1.
+ * - cyl_bessel_i0(\cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - cyl_bessel_i0(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __device__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl cyl_bessel_i0(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the value of the regular modified cylindrical Bessel function of order 0 for the input argument.
+ *
+ * Calculate the value of the regular modified cylindrical Bessel function of order 0 for
+ * the input argument \p x,
+ * \cuda_math_formula I_0(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the regular modified cylindrical Bessel function of order 0.
+ * - cyl_bessel_i0f(\cuda_math_formula \pm 0 \end_cuda_math_formula) returns +1.
+ * - cyl_bessel_i0f(\cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - cyl_bessel_i0f(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __device__ __device_builtin__ float cyl_bessel_i0f(float x) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the value of the regular modified cylindrical Bessel function of order 1 for the input argument.
+ *
+ * Calculate the value of the regular modified cylindrical Bessel function of order 1 for
+ * the input argument \p x,
+ * \cuda_math_formula I_1(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the regular modified cylindrical Bessel function of order 1.
+ * - cyl_bessel_i1(\cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - cyl_bessel_i1(\cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - cyl_bessel_i1(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __device__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl cyl_bessel_i1(double x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the value of the regular modified cylindrical Bessel function of order 1 for the input argument.
+ *
+ * Calculate the value of the regular modified cylindrical Bessel function of order 1 for
+ * the input argument \p x,
+ * \cuda_math_formula I_1(x) \end_cuda_math_formula.
+ *
+ * \return
+ * Returns the value of the regular modified cylindrical Bessel function of order 1.
+ * - cyl_bessel_i1f(\cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - cyl_bessel_i1f(\cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
+ * - cyl_bessel_i1f(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __device__ __device_builtin__ float cyl_bessel_i1f(float x) __THROW;
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the error function of the input argument.
+ *
+ * Calculate the value of the error function for the input argument \p x,
+ * \cuda_math_formula \frac{2}{\sqrt \pi} \int_0^x e^{-t^2} dt \end_cuda_math_formula.
+ *
+ * \return
+ * - erf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - erf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 1 \end_cuda_math_formula.
+ * - erf(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double erf(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl erf(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the error function of the input argument.
+ *
+ * Calculate the value of the error function for the input argument \p x,
+ * \cuda_math_formula \frac{2}{\sqrt \pi} \int_0^x e^{-t^2} dt \end_cuda_math_formula.
+ *
+ * \return
+ * - erff(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - erff(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 1 \end_cuda_math_formula.
+ * - erff(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float erff(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl erff(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the inverse error function of the input argument.
+ *
+ * Calculate the inverse error function
+ * \cuda_math_formula \operatorname{erf}^{-1} \end_cuda_math_formula
+ * (\p x), of the input argument \p x in the interval [-1, 1].
+ *
+ * \return
+ * - erfinv(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - erfinv(1) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - erfinv(-1) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - erfinv(\p x) returns NaN for \p x outside [-1, +1].
+ * - erfinv(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double erfinv(double x);
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the inverse error function of the input argument.
+ *
+ * Calculate the inverse error function
+ * \cuda_math_formula \operatorname{erf}^{-1} \end_cuda_math_formula
+ * (\p x), of the input argument \p x in the interval [-1, 1].
+ *
+ * \return
+ * - erfinvf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - erfinvf(1) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - erfinvf(-1) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - erfinvf(\p x) returns NaN for \p x outside [-1, +1].
+ * - erfinvf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float erfinvf(float x);
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the complementary error function of the input argument.
+ *
+ * Calculate the complementary error function of the input argument \p x,
+ * 1 - erf(\p x).
+ *
+ * \return
+ * - erfc(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns 2.
+ * - erfc(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - erfc(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double erfc(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl erfc(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the complementary error function of the input argument.
+ *
+ * Calculate the complementary error function of the input argument \p x,
+ * 1 - erf(\p x).
+ *
+ * \return
+ * - erfcf(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns 2.
+ * - erfcf(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - erfcf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float erfcf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl erfcf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the natural logarithm of the absolute value of the gamma function of the input argument.
+ *
+ * Calculate the natural logarithm of the absolute value of the gamma function of the input argument \p x, namely the value of
+ * \cuda_math_formula \log_{e}\left|\Gamma(x)\right| \end_cuda_math_formula
+ *
+ * \return
+ * - lgamma(1) returns +0.
+ * - lgamma(2) returns +0.
+ * - lgamma(\p x) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * if \p x
+ * \cuda_math_formula \leq \end_cuda_math_formula
+ 0 and \p x is an integer.
+ * - lgamma(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - lgamma(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - lgamma(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double lgamma(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl lgamma(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the inverse complementary error function of the input argument.
+ *
+ * Calculate the inverse complementary error function
+ * \cuda_math_formula \operatorname{erfc}^{-1} \end_cuda_math_formula
+ * (\p x), of the input argument \p x in the interval [0, 2].
+ *
+ * \return
+ * - erfcinv(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - erfcinv(2) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - erfcinv(\p x) returns NaN for \p x outside [0, 2].
+ * - erfcinv(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double erfcinv(double x);
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the inverse complementary error function of the input argument.
+ *
+ * Calculate the inverse complementary error function
+ * \cuda_math_formula \operatorname{erfc}^{-1} \end_cuda_math_formula
+ * (\p x), of the input argument \p x in the interval [0, 2].
+ *
+ * \return
+ * - erfcinvf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - erfcinvf(2) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - erfcinvf(\p x) returns NaN for \p x outside [0, 2].
+ * - erfcinvf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float erfcinvf(float x);
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the inverse of the standard normal cumulative distribution function.
+ *
+ * Calculate the inverse of the standard normal cumulative distribution function for input argument \p x,
+ * \cuda_math_formula \Phi^{-1}(x) \end_cuda_math_formula. The function is defined for input values in the interval
+ * \cuda_math_formula (0, 1) \end_cuda_math_formula.
+ *
+ * \return
+ * - normcdfinv(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - normcdfinv(1) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - normcdfinv(\p x) returns NaN
+ * if \p x is not in the interval [0,1].
+ * - normcdfinv(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double normcdfinv(double x);
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the inverse of the standard normal cumulative distribution function.
+ *
+ * Calculate the inverse of the standard normal cumulative distribution function for input argument \p x,
+ * \cuda_math_formula \Phi^{-1}(x) \end_cuda_math_formula. The function is defined for input values in the interval
+ * \cuda_math_formula (0, 1) \end_cuda_math_formula.
+ *
+ * \return
+ * - normcdfinvf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - normcdfinvf(1) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - normcdfinvf(\p x) returns NaN
+ * if \p x is not in the interval [0,1].
+ * - normcdfinvf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float normcdfinvf(float x);
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the standard normal cumulative distribution function.
+ *
+ * Calculate the cumulative distribution function of the standard normal distribution for input argument \p x,
+ * \cuda_math_formula \Phi(x) \end_cuda_math_formula.
+ *
+ * \return
+ * - normcdf(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns 1.
+ * - normcdf(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - normcdf(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double normcdf(double x);
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the standard normal cumulative distribution function.
+ *
+ * Calculate the cumulative distribution function of the standard normal distribution for input argument \p x,
+ * \cuda_math_formula \Phi(x) \end_cuda_math_formula.
+ *
+ * \return
+ * - normcdff(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns 1.
+ * - normcdff(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns +0
+ * - normcdff(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float normcdff(float x);
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the scaled complementary error function of the input argument.
+ *
+ * Calculate the scaled complementary error function of the input argument \p x,
+ * \cuda_math_formula e^{x^2}\cdot \operatorname{erfc}(x) \end_cuda_math_formula.
+ *
+ * \return
+ * - erfcx(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - erfcx(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - erfcx(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double erfcx(double x);
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the scaled complementary error function of the input argument.
+ *
+ * Calculate the scaled complementary error function of the input argument \p x,
+ * \cuda_math_formula e^{x^2}\cdot \operatorname{erfc}(x) \end_cuda_math_formula.
+ *
+ * \return
+ * - erfcxf(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - erfcxf(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - erfcxf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float erfcxf(float x);
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the natural logarithm of the absolute value of the gamma function of the input argument.
+ *
+ * Calculate the natural logarithm of the absolute value of the gamma function of the input argument \p x, namely the value of
+ * \cuda_math_formula \log_{e}\left|\Gamma(x)\right| \end_cuda_math_formula
+ *
+ * \return
+ * - lgammaf(1) returns +0.
+ * - lgammaf(2) returns +0.
+ * - lgammaf(\p x) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * if \p x
+ * \cuda_math_formula \leq \end_cuda_math_formula
+ * 0 and \p x is an integer.
+ * - lgammaf(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - lgammaf(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - lgammaf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float lgammaf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl lgammaf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the gamma function of the input argument.
+ *
+ * Calculate the gamma function of the input argument \p x, namely the value of
+ * \cuda_math_formula \Gamma(x) \end_cuda_math_formula.
+ *
+ * \return
+ * - tgamma(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - tgamma(\p x) returns NaN if \p x < 0 and \p x is an integer.
+ * - tgamma(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns NaN.
+ * - tgamma(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - tgamma(NaN) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double tgamma(double x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl tgamma(double x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the gamma function of the input argument.
+ *
+ * Calculate the gamma function of the input argument \p x, namely the value of
+ * \cuda_math_formula \Gamma(x) \end_cuda_math_formula.
+ *
+ * \return
+ * - tgammaf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - tgammaf(\p x) returns NaN if \p x < 0 and \p x is an integer.
+ * - tgammaf(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns NaN.
+ * - tgammaf(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - tgammaf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float tgammaf(float x) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl tgammaf(float x);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/** \ingroup CUDA_MATH_DOUBLE
+ * \brief Create value with given magnitude, copying sign of second value.
+ *
+ * Create a floating-point value with the magnitude \p x and the sign of \p y.
+ *
+ * \return
+ * - a value with the magnitude of \p x and the sign of \p y.
+ * - copysign(\p NaN, \p y) returns a \p NaN with the sign of \p y.
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double copysign(double x, double y) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl copysign(double x, double y);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/** \ingroup CUDA_MATH_SINGLE
+ * \brief Create value with given magnitude, copying sign of second value.
+ *
+ * Create a floating-point value with the magnitude \p x and the sign of \p y.
+ *
+ * \return
+ * - a value with the magnitude of \p x and the sign of \p y.
+ * - copysignf(\p NaN, \p y) returns a \p NaN with the sign of \p y.
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float copysignf(float x, float y) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl copysignf(float x, float y);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Return next representable double-precision floating-point value after argument \p x in the direction of \p y.
+ *
+ * Calculate the next representable double-precision floating-point value
+ * following \p x in the direction of \p y. For example, if \p y is greater than \p x, ::nextafter()
+ * returns the smallest representable number greater than \p x
+ *
+ * \return
+ * - nextafter(\p x, \p y) = \p y if \p x equals \p y.
+ * - nextafter(\p x, \p y) = \p NaN if either \p x or \p y are \p NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double nextafter(double x, double y) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl nextafter(double x, double y);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Return next representable single-precision floating-point value after argument \p x in the direction of \p y.
+ *
+ * Calculate the next representable single-precision floating-point value
+ * following \p x in the direction of \p y. For example, if \p y is greater than \p x, ::nextafterf()
+ * returns the smallest representable number greater than \p x
+ *
+ * \return
+ * - nextafterf(\p x, \p y) = \p y if \p x equals \p y.
+ * - nextafterf(\p x, \p y) = \p NaN if either \p x or \p y are \p NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float nextafterf(float x, float y) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl nextafterf(float x, float y);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Returns "Not a Number" value.
+ *
+ * Return a representation of a quiet NaN. Argument \p tagp selects one of the possible representations.
+ *
+ * \return
+ * - nan(\p tagp) returns NaN.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double nan(const char *tagp) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl nan(const char *tagp);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Returns "Not a Number" value
+ *
+ * Return a representation of a quiet NaN. Argument \p tagp selects one of the possible representations.
+ *
+ * \return
+ * - nanf(\p tagp) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float nanf(const char *tagp) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl nanf(const char *tagp);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* namespace std */
+#endif
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __isinff(float) __THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __isnanf(float) __THROW;
+
+
+#if defined(__APPLE__)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __isfinited(double) __THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __isfinitef(float) __THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __signbitd(double) __THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __isnand(double) __THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __isinfd(double) __THROW;
+#else /* __APPLE__ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __finite(double) __THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __finitef(float) __THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __signbit(double) __THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __isnan(double) __THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __isinf(double) __THROW;
+#endif /* __APPLE__ */
+
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __signbitf(float) __THROW;
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Compute
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single operation.
+ *
+ * Compute the value of
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single ternary operation. After computing the value
+ * to infinite precision, the value is rounded once using round-to-nearest,
+ * ties-to-even rounding mode.
+ *
+ * \return
+ * Returns the rounded value of
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single operation.
+ * - fma(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p z) returns NaN.
+ * - fma(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p z) returns NaN.
+ * - fma(\p x, \p y,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns NaN if
+ * \cuda_math_formula x \times y \end_cuda_math_formula
+ * is an exact
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - fma(\p x, \p y,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns NaN if
+ * \cuda_math_formula x \times y \end_cuda_math_formula
+ * is an exact
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - fma(\p x, \p y, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - fma(\p x, \p y, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - fma(\p x, \p y, \p z) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y + z \end_cuda_math_formula is exactly zero and \cuda_math_formula z \neq 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_double
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double fma(double x, double y, double z) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP double __cdecl fma(double x, double y, double z);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Compute
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single operation.
+ *
+ * Compute the value of
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single ternary operation. After computing the value
+ * to infinite precision, the value is rounded once using round-to-nearest,
+ * ties-to-even rounding mode.
+ *
+ * \return
+ * Returns the rounded value of
+ * \cuda_math_formula x \times y + z \end_cuda_math_formula
+ * as a single operation.
+ * - fmaf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p z) returns NaN.
+ * - fmaf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p z) returns NaN.
+ * - fmaf(\p x, \p y,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns NaN if
+ * \cuda_math_formula x \times y \end_cuda_math_formula
+ * is an exact
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - fmaf(\p x, \p y,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns NaN if
+ * \cuda_math_formula x \times y \end_cuda_math_formula
+ * is an exact
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - fmaf(\p x, \p y, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - fmaf(\p x, \p y, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - fmaf(\p x, \p y, \p z) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y + z \end_cuda_math_formula is exactly zero and \cuda_math_formula z \neq 0 \end_cuda_math_formula.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single
+ */
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float fmaf(float x, float y, float z) __THROW;
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ __CUDA_MATH_CRTIMP float __cdecl fmaf(float x, float y, float z);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+
+
+/* these are here to avoid warnings on the call graph.
+ long double is not supported on the device */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __signbitl(long double) __THROW;
+#if defined(__APPLE__)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __isfinite(long double) __THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __isinf(long double) __THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __isnan(long double) __THROW;
+#else /* __APPLE__ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __finitel(long double) __THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __isinfl(long double) __THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int __isnanl(long double) __THROW;
+#endif /* __APPLE__ */
+
+#if defined(_WIN32) && ( defined(_M_AMD64) || defined(_M_ARM64) )
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl acosf(float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl asinf(float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl atanf(float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl atan2f(float, float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl cosf(float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl sinf(float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl tanf(float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl coshf(float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl sinhf(float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl tanhf(float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl expf(float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl logf(float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl log10f(float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl modff(float, float*) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl powf(float, float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl sqrtf(float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl ceilf(float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl floorf(float) __THROW;
+extern __CUDA_MATH_CRTIMP __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float __cdecl fmodf(float, float) __THROW;
+#else /* _WIN32 && (_M_AMD64 || _M_ARM64) */
+
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+namespace std {
+#endif
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the arc cosine of the input argument.
+ *
+ * Calculate the principal value of the arc cosine of the input argument \p x.
+ *
+ * \return
+ * Result will be in radians, in the interval [0,
+ * \cuda_math_formula \pi \end_cuda_math_formula
+ * ] for \p x inside [-1, +1].
+ * - acosf(1) returns +0.
+ * - acosf(\p x) returns NaN for \p x outside [-1, +1].
+ * - acosf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float acosf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the arc sine of the input argument.
+ *
+ * Calculate the principal value of the arc sine of the input argument \p x.
+ *
+ * \return
+ * Result will be in radians, in the interval [-
+ * \cuda_math_formula \pi/2 \end_cuda_math_formula
+ * , +
+ * \cuda_math_formula \pi/2 \end_cuda_math_formula
+ * ] for \p x inside [-1, +1].
+ * - asinf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - asinf(\p x) returns NaN for \p x outside [-1, +1].
+ * - asinf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float asinf(float x) __THROW;
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the arc tangent of the input argument.
+ *
+ * Calculate the principal value of the arc tangent of the input argument \p x.
+ *
+ * \return
+ * Result will be in radians, in the interval [-
+ * \cuda_math_formula \pi/2 \end_cuda_math_formula
+ * , +
+ * \cuda_math_formula \pi/2 \end_cuda_math_formula
+ * ].
+ * - atanf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - atanf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \pi \end_cuda_math_formula
+ * /2.
+ * - atanf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float atanf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the arc tangent of the ratio of first and second input arguments.
+ *
+ * Calculate the principal value of the arc tangent of the ratio of first
+ * and second input arguments \p y / \p x. The quadrant of the result is
+ * determined by the signs of inputs \p y and \p x.
+ *
+ * \return
+ * Result will be in radians, in the interval [-
+ * \cuda_math_formula \pi \end_cuda_math_formula
+ * , +
+ * \cuda_math_formula \pi \end_cuda_math_formula
+ * ].
+ * - atan2f(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , -0) returns
+ * \cuda_math_formula \pm \pi \end_cuda_math_formula.
+ * - atan2f(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , +0) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - atan2f(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p x) returns
+ * \cuda_math_formula \pm \pi \end_cuda_math_formula
+ * for \p x < 0.
+ * - atan2f(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p x) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * for \p x > 0.
+ * - atan2f(\p y,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\pi \end_cuda_math_formula
+ * /2 for \p y < 0.
+ * - atan2f(\p y,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pi \end_cuda_math_formula
+ * /2 for \p y > 0.
+ * - atan2f(
+ * \cuda_math_formula \pm y \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \pi \end_cuda_math_formula
+ * for finite \p y > 0.
+ * - atan2f(
+ * \cuda_math_formula \pm y \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * for finite \p y > 0.
+ * - atan2f(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p x) returns
+ * \cuda_math_formula \pm \pi \end_cuda_math_formula
+ * /2 for finite \p x.
+ * - atan2f(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 3\pi \end_cuda_math_formula
+ * /4.
+ * - atan2f(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \pi \end_cuda_math_formula
+ * /4.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float atan2f(float y, float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the cosine of the input argument.
+ *
+ * Calculate the cosine of the input argument \p x (measured in radians).
+ *
+ * \return
+ * - cosf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - cosf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns NaN.
+ * - cosf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ * \note_fastmath
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float cosf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the sine of the input argument.
+ *
+ * Calculate the sine of the input argument \p x (measured in radians).
+ *
+ * \return
+ * - sinf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - sinf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns NaN.
+ * - sinf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ * \note_fastmath
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float sinf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the tangent of the input argument.
+ *
+ * Calculate the tangent of the input argument \p x (measured in radians).
+ *
+ * \return
+ * - tanf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - tanf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns NaN.
+ * - tanf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ * \note_fastmath
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float tanf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the hyperbolic cosine of the input argument.
+ *
+ * Calculate the hyperbolic cosine of the input argument \p x.
+ *
+ * \return
+ * - coshf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - coshf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - coshf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float coshf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the hyperbolic sine of the input argument.
+ *
+ * Calculate the hyperbolic sine of the input argument \p x.
+ *
+ * \return
+ * - sinhf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - sinhf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - sinhf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float sinhf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the hyperbolic tangent of the input argument.
+ *
+ * Calculate the hyperbolic tangent of the input argument \p x.
+ *
+ * \return
+ * - tanhf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - tanhf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 1 \end_cuda_math_formula.
+ * - tanhf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float tanhf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the natural logarithm of the input argument.
+ *
+ * Calculate the natural logarithm of the input argument \p x.
+ *
+ * \return
+ * - logf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - logf(1) returns +0.
+ * - logf(\p x) returns NaN for \p x < 0.
+ * - logf(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - logf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ * \note_fastmath
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float logf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * exponential of the input argument.
+ *
+ * Calculate
+ * \cuda_math_formula e^x \end_cuda_math_formula
+,
+ * the base
+ * \cuda_math_formula e \end_cuda_math_formula
+ * exponential of the input argument \p x.
+ *
+ * \return
+ * - expf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1.
+ * - expf(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns +0.
+ * - expf(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - expf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ * \note_fastmath
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float expf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the base 10 logarithm of the input argument.
+ *
+ * Calculate the base 10 logarithm of the input argument \p x.
+ *
+ * \return
+ * - log10f(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula.
+ * - log10f(1) returns +0.
+ * - log10f(\p x) returns NaN for \p x < 0.
+ * - log10f(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - log10f(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ * \note_fastmath
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float log10f(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Break down the input argument into fractional and integral parts.
+ *
+ * Break down the argument \p x into fractional and integral parts. The integral part is stored in the argument \p iptr.
+ * Fractional and integral parts are given the same sign as the argument \p x.
+ *
+ * \return
+ * - modff(
+ * \cuda_math_formula \pm x \end_cuda_math_formula
+ * , \p iptr) returns a result with the same sign as \p x.
+ * - modff(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * , \p iptr) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * and stores
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * in the object pointed to by \p iptr.
+ * - modff(NaN, \p iptr) stores a NaN in the object pointed to by \p iptr and returns a NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float modff(float x, float *iptr) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the value of first argument to the power of second argument.
+ *
+ * Calculate the value of \p x to the power of \p y.
+ *
+ * \return
+ * - powf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * for \p y an odd integer less than 0.
+ * - powf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * for \p y less than 0 and not an odd integer.
+ * - powf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * for \p y an odd integer greater than 0.
+ * - powf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p y) returns +0 for \p y > 0 and not an odd integer.
+ * - powf(-1,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns 1.
+ * - powf(+1, \p y) returns 1 for any \p y, even a NaN.
+ * - powf(\p x,
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns 1 for any \p x, even a NaN.
+ * - powf(\p x, \p y) returns a NaN for finite \p x < 0 and finite non-integer \p y.
+ * - powf(\p x,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * for
+ * \cuda_math_formula | x | < 1 \end_cuda_math_formula.
+ * - powf(\p x,
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * ) returns +0 for
+ * \cuda_math_formula | x | > 1 \end_cuda_math_formula.
+ * - powf(\p x,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns +0 for
+ * \cuda_math_formula | x | < 1 \end_cuda_math_formula.
+ * - powf(\p x,
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * for
+ * \cuda_math_formula | x | > 1 \end_cuda_math_formula.
+ * - powf(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * , \p y) returns -0 for \p y an odd integer less than 0.
+ * - powf(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * , \p y) returns +0 for \p y < 0 and not an odd integer.
+ * - powf(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * for \p y an odd integer greater than 0.
+ * - powf(
+ * \cuda_math_formula -\infty \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * for \p y > 0 and not an odd integer.
+ * - powf(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * , \p y) returns +0 for \p y < 0.
+ * - powf(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * for \p y > 0.
+ * - powf(\p x, \p y) returns NaN if either \p x or \p y or both are NaN and \p x \cuda_math_formula \neq \end_cuda_math_formula +1 and \p y \cuda_math_formula \neq\pm 0 \end_cuda_math_formula.
+ *
+ * \note_accuracy_single
+ * \note_fastmath
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float powf(float x, float y) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the square root of the input argument.
+ *
+ * Calculate the nonnegative square root of \p x,
+ * \cuda_math_formula \sqrt{x} \end_cuda_math_formula.
+ *
+ * \return
+ * Returns
+ * \cuda_math_formula \sqrt{x} \end_cuda_math_formula.
+ * - sqrtf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - sqrtf(
+ * \cuda_math_formula +\infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula +\infty \end_cuda_math_formula.
+ * - sqrtf(\p x) returns NaN if \p x is less than 0.
+ * - sqrtf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float sqrtf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate ceiling of the input argument.
+ *
+ * Compute the smallest integer value not less than \p x.
+ *
+ * \return
+ * Returns
+ * \cuda_math_formula \lceil x \rceil \end_cuda_math_formula
+ * expressed as a floating-point number.
+ * - ceilf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - ceilf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - ceilf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float ceilf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the largest integer less than or equal to \p x.
+ *
+ * Calculate the largest integer value which is less than or equal to \p x.
+ *
+ * \return
+ * Returns
+ * \cuda_math_formula \lfloor x \rfloor \end_cuda_math_formula
+ * expressed as a floating-point number.
+ * - floorf(
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula.
+ * - floorf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * ) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula.
+ * - floorf(NaN) returns NaN.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float floorf(float x) __THROW;
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the floating-point remainder of \p x / \p y.
+ *
+ * Calculate the floating-point remainder of \p x / \p y.
+ * The floating-point remainder of the division operation \p x / \p y calculated
+ * by this function is exactly the value x - n*y, where \p n is \p x / \p y with its fractional part truncated.
+ * The computed value will have the same sign as \p x, and its magnitude will be less than the magnitude of \p y.
+ * \return
+ * - Returns the floating-point remainder of \p x / \p y.
+ * - fmodf(
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * , \p y) returns
+ * \cuda_math_formula \pm 0 \end_cuda_math_formula
+ * if \p y is not zero.
+ * - fmodf(\p x,
+ * \cuda_math_formula \pm \infty \end_cuda_math_formula
+ * ) returns \p x if \p x is finite.
+ * - fmodf(\p x, \p y) returns NaN if \p x is
+ * \cuda_math_formula \pm\infty \end_cuda_math_formula
+ * or \p y is zero.
+ * - If either argument is NaN, NaN is returned.
+ *
+ * \note_accuracy_single
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float fmodf(float x, float y) __THROW;
+#if defined(__QNX__)
+/* redeclare some builtins that QNX uses */
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float _FLog(float, int);
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float _FCosh(float, float);
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float _FSinh(float, float);
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float _FSinx(float, unsigned int, int);
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int _FDsign(float);
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ int _Dsign(double);
+#endif
+#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
+} /* std */
+#endif
+#endif /* _WIN32 && (_M_AMD64 || _M_ARM64) */
+
+}
+
+#if !defined(__CUDACC_RTC__)
+#include
+#include
+
+#ifndef __CUDA_INTERNAL_SKIP_CPP_HEADERS__
+#include
+#include
+#endif /* __CUDA_INTERNAL_SKIP_CPP_HEADERS__ */
+#endif /* __CUDACC_RTC__ */
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#if defined(__CUDACC_RTC__)
+
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int signbit(float x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int signbit(double x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int signbit(long double x);
+
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isfinite(float x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isfinite(double x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isfinite(long double x);
+
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isnan(float x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isnan(double x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isnan(long double x);
+
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isinf(float x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isinf(double x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isinf(long double x);
+
+#elif defined(__GNUC__)
+
+#undef signbit
+#undef isfinite
+#undef isnan
+#undef isinf
+
+#if defined(__APPLE__)
+
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int signbit(float x);
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int signbit(double x);
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int signbit(long double x);
+
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isfinite(float x);
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isfinite(double x);
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isfinite(long double x);
+
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isnan(double x) throw();
+#if !defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 7000
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isnan(float x);
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isnan(long double x);
+#else /* !(!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 7000) */
+template
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool __libcpp_isnan(T) _NOEXCEPT;
+inline _LIBCPP_INLINE_VISIBILITY __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool isnan(float x) _NOEXCEPT;
+inline _LIBCPP_INLINE_VISIBILITY __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool isnan(long double x) _NOEXCEPT;
+#endif /* !defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 7000 */
+
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isinf(double x) throw();
+#if !defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 7000
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isinf(float x);
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isinf(long double x);
+#else /* !(!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 7000) */
+template
+__cudart_builtin__ __DEVICE_FUNCTIONS_DECL__ bool __libcpp_isinf(T) _NOEXCEPT;
+inline _LIBCPP_INLINE_VISIBILITY __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool isinf(float x) _NOEXCEPT;
+inline _LIBCPP_INLINE_VISIBILITY __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool isinf(long double x) _NOEXCEPT;
+#endif /* !defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 7000 */
+
+#else /* __APPLE__ */
+
+#if ((defined _GLIBCXX_MATH_H) && _GLIBCXX_MATH_H) && (__cplusplus >= 201103L)
+#if !defined(_NVHPC_CUDA)
+namespace std {
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ constexpr bool signbit(float x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ constexpr bool signbit(double x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ constexpr bool signbit(long double x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ constexpr bool isfinite(float x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ constexpr bool isfinite(double x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ constexpr bool isfinite(long double x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ constexpr bool isnan(float x);
+/* GCC 6.1 uses ::isnan(double x) for isnan(double x) if the condition is true */
+#if _GLIBCXX_HAVE_OBSOLETE_ISNAN && !_GLIBCXX_NO_OBSOLETE_ISINF_ISNAN_DYNAMIC
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isnan(double x) throw();
+#else /* !(_GLIBCXX_HAVE_OBSOLETE_ISNAN && !_GLIBCXX_NO_OBSOLETE_ISINF_ISNAN_DYNAMIC) */
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ constexpr bool isnan(double x);
+#endif /* _GLIBCXX_HAVE_OBSOLETE_ISNAN && !_GLIBCXX_NO_OBSOLETE_ISINF_ISNAN_DYNAMIC */
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ constexpr bool isnan(long double x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ constexpr bool isinf(float x);
+/* GCC 6.1 uses ::isinf(double x) for isinf(double x) if the condition is true. */
+#if _GLIBCXX_HAVE_OBSOLETE_ISINF && !_GLIBCXX_NO_OBSOLETE_ISINF_ISNAN_DYNAMIC
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isinf(double x) throw();
+#else /* !(_GLIBCXX_HAVE_OBSOLETE_ISINF && !_GLIBCXX_NO_OBSOLETE_ISINF_ISNAN_DYNAMIC) */
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ constexpr bool isinf(double x);
+#endif /* _GLIBCXX_HAVE_OBSOLETE_ISINF && !_GLIBCXX_NO_OBSOLETE_ISINF_ISNAN_DYNAMIC */
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ constexpr bool isinf(long double x);
+}
+#endif
+
+#else /* !(((defined _GLIBCXX_MATH_H) && _GLIBCXX_MATH_H) && (__cplusplus >= 201103L)) */
+
+#if defined(__QNX__)
+#if (__QNX__) && !defined(_LIBCPP_VERSION)
+/* QNX defines functions in std, need to declare them here */
+namespace std {
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool signbit(float x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool signbit(double x);
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool signbit(long double x);
+}
+#else
+static __inline__ __DEVICE_FUNCTIONS_DECL__ bool signbit(const float x);
+static __inline__ __DEVICE_FUNCTIONS_DECL__ bool signbit(const double x);
+static __inline__ __DEVICE_FUNCTIONS_DECL__ bool signbit(const long double x);
+#endif
+static __inline__ __DEVICE_FUNCTIONS_DECL__ bool isfinite(const float a);
+static __inline__ __DEVICE_FUNCTIONS_DECL__ bool isfinite(const double a);
+static __inline__ __DEVICE_FUNCTIONS_DECL__ bool isfinite(const long double a);
+static __inline__ __DEVICE_FUNCTIONS_DECL__ bool isnan(const float a);
+static __inline__ __DEVICE_FUNCTIONS_DECL__ bool isnan(const double a);
+static __inline__ __DEVICE_FUNCTIONS_DECL__ bool isnan(const long double a);
+static __inline__ __DEVICE_FUNCTIONS_DECL__ bool isinf(const float a);
+static __inline__ __DEVICE_FUNCTIONS_DECL__ bool isinf(const double a);
+static __inline__ __DEVICE_FUNCTIONS_DECL__ bool isinf(const long double a);
+#else /* ! __QNX__ */
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int signbit(const float x);
+#if defined(__ICC)
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int signbit(const double x) throw();
+#else /* !__ICC */
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int signbit(const double x);
+#endif /* __ICC */
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int signbit(const long double x);
+
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isfinite(const float x);
+#if defined(__ICC)
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isfinite(const double x) throw();
+#else /* !__ICC */
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isfinite(const double x);
+#endif /* __ICC */
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isfinite(const long double x);
+
+#if (defined(__ANDROID__) || defined(__HORIZON__)) && _LIBCPP_VERSION >= 8000
+template
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool __libcpp_isnan(T) _NOEXCEPT;
+inline _LIBCPP_INLINE_VISIBILITY __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool isnan(float x) _NOEXCEPT;
+#else /* !((defined(__ANDROID__) || defined(__HORIZON__)) && _LIBCPP_VERSION >= 8000) */
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isnan(float x);
+#endif /* (defined(__ANDROID__) || defined(__HORIZON__)) && _LIBCPP_VERSION >= 8000 */
+#if defined(__ANDROID__) || defined(__HORIZON__)
+#if !defined(_LIBCPP_VERSION)
+__forceinline__
+#endif /* !defined(_LIBCPP_VERSION) */
+#if _LIBCPP_VERSION >= 7000
+#ifdef _LIBCPP_PREFERRED_OVERLOAD
+_LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool isnan(double x) _NOEXCEPT;
+#endif /* _LIBCPP_PREFERRED_OVERLOAD */
+#else /* _LIBCPP_VERSION < 7000 */
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isnan(double x);
+#endif /* _LIBCPP_VERSION >= 7000 */
+#else /* !(__ANDROID__ || __HORIZON__) */
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isnan(double x) throw();
+#endif /* __ANDROID__ */
+#if (defined(__ANDROID__) || defined(__HORIZON__)) && _LIBCPP_VERSION >= 8000
+inline _LIBCPP_INLINE_VISIBILITY __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool isnan(long double x) _NOEXCEPT;
+#else /* !( (defined(__ANDROID__) || defined(__HORIZON__)) && _LIBCPP_VERSION >= 8000) */
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isnan(long double x);
+#endif /* (defined(__ANDROID__) || defined(__HORIZON__)) && _LIBCPP_VERSION >= 8000 */
+
+#if (defined(__ANDROID__) || defined(__HORIZON__)) && _LIBCPP_VERSION >= 8000
+static __inline__ __cudart_builtin__ __DEVICE_FUNCTIONS_DECL__ unsigned __FLOAT_BITS(float __f);
+static __inline__ __cudart_builtin__ __DEVICE_FUNCTIONS_DECL__ unsigned long long __DOUBLE_BITS(double __f);
+template
+__cudart_builtin__ __DEVICE_FUNCTIONS_DECL__ bool __libcpp_isinf(T) _NOEXCEPT;
+inline _LIBCPP_INLINE_VISIBILITY __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool isinf(float x) _NOEXCEPT;
+#else /* !( (defined(__ANDROID__) || defined(__HORIZON__)) && _LIBCPP_VERSION >= 8000) */
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isinf(float x);
+#endif /* (defined(__ANDROID__) || defined(__HORIZON__)) && _LIBCPP_VERSION >= 8000 */
+
+#if defined(__ANDROID__) || defined(__HORIZON__)
+#if !defined(_LIBCPP_VERSION)
+__forceinline__
+#endif /* !defined(_LIBCPP_VERSION) */
+#if _LIBCPP_VERSION >= 7000
+#ifdef _LIBCPP_PREFERRED_OVERLOAD
+_LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool isinf(double x) _NOEXCEPT;
+#endif /* _LIBCPP_PREFERRED_OVERLOAD */
+#else /* _LIBCPP_VERSION < 7000 */
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isinf(double x);
+#endif /* _LIBCPP_VERSION >= 7000 */
+#else /* ! (__ANDROID__ || __HORIZON__) */
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isinf(double x) throw();
+#endif /* __ANDROID__ || __HORIZON__ */
+#if (defined(__ANDROID__) || defined(__HORIZON__)) && _LIBCPP_VERSION >= 8000
+inline _LIBCPP_INLINE_VISIBILITY __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool isinf(long double x) _NOEXCEPT;
+#else /* !( (defined(__ANDROID__) || defined(__HORIZON__)) && _LIBCPP_VERSION >= 8000) */
+__forceinline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isinf(long double x);
+#endif /* (defined(__ANDROID__) || defined(__HORIZON__)) && _LIBCPP_VERSION >= 8000 */
+#endif /* __QNX__ */
+
+#endif /* ((defined _GLIBCXX_MATH_H) && _GLIBCXX_MATH_H) && (__cplusplus >= 201103L) */
+#endif /* __APPLE__ */
+
+#if !defined(_LIBCPP_VERSION)
+#if defined(__clang__)
+#if __has_include()
+#define __NV_GLIBCXX_VERSION 40800
+#endif /* __has_include() */
+#endif /* __clang__ */
+
+#if !defined(__NV_GLIBCXX_VERSION)
+#define __NV_GLIBCXX_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
+#endif /* !__NV_GLIBCXX_VERSION */
+#endif /* !defined(_LIBCPP_VERSION) */
+
+#if !defined(__HORIZON__) || !defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 3800
+#if defined(__arm__) && !defined(_STLPORT_VERSION) && !_GLIBCXX_USE_C99
+#if !defined(__ANDROID__) || (defined(__NV_GLIBCXX_VERSION) && __NV_GLIBCXX_VERSION < 40800)
+
+#if defined(__QNX__)
+/* QNX defines functions in std, need to declare them here */
+namespace std {
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ long long int abs (long long int a);
+}
+#elif defined(__HORIZON__)
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#pragma GCC system_header
+#endif
+_LIBCPP_BEGIN_NAMESPACE_STD
+__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ long long int abs (long long int a) throw();
+_LIBCPP_END_NAMESPACE_STD
+#else
+static __inline__ __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ long long int abs(long long int a);
+#endif /* __QNX__ || __HORIZON__*/
+
+#endif /* !__ANDROID__ || (defined(__NV_GLIBCXX_VERSION) && __NV_GLIBCXX_VERSION < 40800) */
+#endif /* __arm__ && !_STLPORT_VERSION && !_GLIBCXX_USE_C99 */
+#endif /* !defined(__HORIZON__) || !defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 3800 */
+
+#if defined(__NV_GLIBCXX_VERSION) && __NV_GLIBCXX_VERSION < 40800 && !defined(__ibmxl__)
+
+#if !defined(_STLPORT_VERSION)
+namespace __gnu_cxx
+{
+#endif /* !_STLPORT_VERSION */
+
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ long long int abs(long long int a);
+
+#if !defined(_STLPORT_VERSION)
+}
+#endif /* !_STLPORT_VERSION */
+
+#endif /* defined(__NV_GLIBCXX_VERSION) && __NV_GLIBCXX_VERSION < 40800 && !__ibmxl__ */
+
+namespace std
+{
+ template extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ T __pow_helper(T, int);
+ template extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ T __cmath_power(T, unsigned int);
+}
+
+using std::abs;
+using std::fabs;
+using std::ceil;
+using std::floor;
+using std::sqrt;
+#if !defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 3800
+using std::pow;
+#endif /* !defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 3800 */
+using std::log;
+using std::log10;
+using std::fmod;
+using std::modf;
+using std::exp;
+using std::frexp;
+using std::ldexp;
+using std::asin;
+using std::sin;
+using std::sinh;
+using std::acos;
+using std::cos;
+using std::cosh;
+using std::atan;
+using std::atan2;
+using std::tan;
+using std::tanh;
+
+#elif defined(_WIN32)
+
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ __CUDA_MATH_CRTIMP double __cdecl _hypot(double x, double y);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ __CUDA_MATH_CRTIMP float __cdecl _hypotf(float x, float y);
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+static __inline__ __DEVICE_FUNCTIONS_DECL__ int signbit(long double a);
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#if _MSC_VER >= 1900
+#define __SIGNBIT_THROW throw()
+#else
+#define __SIGNBIT_THROW
+#endif
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ bool signbit(long double) __SIGNBIT_THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ __device_builtin__ __CUDA_MATH_CRTIMP int _ldsign(long double);
+#undef __SIGNBIT_THROW
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+#define __RETURN_TYPE int
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ *
+ * \brief Return the sign bit of the input.
+ *
+ * Determine whether the floating-point value \p a is negative.
+ *
+ * \return
+ * Reports the sign bit of all values including infinities, zeros, and NaNs.
+ * - With Visual Studio 2013 host compiler: __RETURN_TYPE is 'bool'. Returns
+ * true if and only if \p a is negative.
+ * - With other host compilers: __RETURN_TYPE is 'int'. Returns a
+ * nonzero value if and only if \p a is negative.
+ */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ __RETURN_TYPE signbit(double a);
+#undef __RETURN_TYPE
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#define __RETURN_TYPE bool
+#if _MSC_VER >= 1900
+#define __SIGNBIT_THROW throw()
+#else
+#define __SIGNBIT_THROW
+#endif
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ *
+ * \brief Return the sign bit of the input.
+ *
+ * Determine whether the floating-point value \p a is negative.
+ *
+ * \return
+ * Reports the sign bit of all values including infinities, zeros, and NaNs.
+ * - With Visual Studio 2013 host compiler: __RETURN_TYPE is 'bool'. Returns
+ * true if and only if \p a is negative.
+ * - With other host compilers: __RETURN_TYPE is 'int'. Returns a
+ * nonzero value if and only if \p a is negative.
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ __RETURN_TYPE signbit(double) __SIGNBIT_THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ __device_builtin__ __CUDA_MATH_CRTIMP int _dsign(double);
+#undef __RETURN_TYPE
+#undef __SIGNBIT_THROW
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+#define __RETURN_TYPE int
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ *
+ * \brief Return the sign bit of the input.
+ *
+ * Determine whether the floating-point value \p a is negative.
+ *
+ * \return
+ * Reports the sign bit of all values including infinities, zeros, and NaNs.
+ * - With Visual Studio 2013 host compiler: __RETURN_TYPE is 'bool'. Returns
+ * true if and only if \p a is negative.
+ * - With other host compilers: __RETURN_TYPE is 'int'. Returns a nonzero value
+ * if and only if \p a is negative.
+ */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ __RETURN_TYPE signbit(float a);
+#undef __RETURN_TYPE
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#define __RETURN_TYPE bool
+#if _MSC_VER >= 1900
+#define __SIGNBIT_THROW throw()
+#else
+#define __SIGNBIT_THROW
+#endif
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ *
+ * \brief Return the sign bit of the input.
+ *
+ * Determine whether the floating-point value \p a is negative.
+ *
+ * \return
+ * Reports the sign bit of all values including infinities, zeros, and NaNs.
+ * - With Visual Studio 2013 host compiler: __RETURN_TYPE is 'bool'. Returns
+ * true if and only if \p a is negative.
+ * - With other host compilers: __RETURN_TYPE is 'int'. Returns a nonzero value
+ * if and only if \p a is negative.
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ __RETURN_TYPE signbit(float) __SIGNBIT_THROW;
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ __device_builtin__ __CUDA_MATH_CRTIMP int _fdsign(float);
+#undef __RETURN_TYPE
+#undef __SIGNBIT_THROW
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+static __inline__ __DEVICE_FUNCTIONS_DECL__ int isinf(long double a);
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ bool isinf(long double a);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+#define __RETURN_TYPE int
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ *
+ * \brief Determine whether argument is infinite.
+ *
+ * Determine whether the floating-point value \p a is an infinite value
+ * (positive or negative).
+ * \return
+ * - With Visual Studio 2013 host compiler: Returns true if and only
+ * if \p a is an infinite value.
+ * - With other host compilers: Returns a nonzero value if and only
+ * if \p a is an infinite value.
+ */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ __RETURN_TYPE isinf(double a);
+#undef __RETURN_TYPE
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#define __RETURN_TYPE bool
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ *
+ * \brief Determine whether argument is infinite.
+ *
+ * Determine whether the floating-point value \p a is an infinite value
+ * (positive or negative).
+ * \return
+ * - With Visual Studio 2013 host compiler: Returns true if and only
+ * if \p a is an infinite value.
+ * - With other host compilers: Returns a nonzero value if and only
+ * if \p a is an infinite value.
+ */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ __RETURN_TYPE isinf(double a);
+#undef __RETURN_TYPE
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+#define __RETURN_TYPE int
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ *
+ * \brief Determine whether argument is infinite.
+ *
+ * Determine whether the floating-point value \p a is an infinite value
+ * (positive or negative).
+ *
+ * \return
+ * - With Visual Studio 2013 host compiler: __RETURN_TYPE is 'bool'. Returns
+ * true if and only if \p a is an infinite value.
+ * - With other host compilers: __RETURN_TYPE is 'int'. Returns a nonzero
+ * value if and only if \p a is an infinite value.
+ */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ __RETURN_TYPE isinf(float a);
+#undef __RETURN_TYPE
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#define __RETURN_TYPE bool
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ *
+ * \brief Determine whether argument is infinite.
+ *
+ * Determine whether the floating-point value \p a is an infinite value
+ * (positive or negative).
+ *
+ * \return
+ * - With Visual Studio 2013 host compiler: __RETURN_TYPE is 'bool'. Returns
+ * true if and only if \p a is an infinite value.
+ * - With other host compilers: __RETURN_TYPE is 'int'. Returns a nonzero
+ * value if and only if \p a is an infinite value.
+ */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ __RETURN_TYPE isinf(float a);
+#undef __RETURN_TYPE
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+static __inline__ __DEVICE_FUNCTIONS_DECL__ int isnan(long double a);
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ bool isnan(long double a);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+#define __RETURN_TYPE int
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ *
+ * \brief Determine whether argument is a NaN.
+ *
+ * Determine whether the floating-point value \p a is a NaN.
+ * \return
+ * - With Visual Studio 2013 host compiler: __RETURN_TYPE is 'bool'.
+ * Returns true if and only if \p a is a NaN value.
+ * - With other host compilers: __RETURN_TYPE is 'int'. Returns a
+ * nonzero value if and only if \p a is a NaN value.
+ */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ __RETURN_TYPE isnan(double a);
+#undef __RETURN_TYPE
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#define __RETURN_TYPE bool
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ *
+ * \brief Determine whether argument is a NaN.
+ *
+ * Determine whether the floating-point value \p a is a NaN.
+ * \return
+ * - With Visual Studio 2013 host compiler: __RETURN_TYPE is 'bool'.
+ * Returns true if and only if \p a is a NaN value.
+ * - With other host compilers: __RETURN_TYPE is 'int'. Returns a
+ * nonzero value if and only if \p a is a NaN value.
+ */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ __RETURN_TYPE isnan(double a);
+#undef __RETURN_TYPE
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+#define __RETURN_TYPE int
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ *
+ *
+ * \brief Determine whether argument is a NaN.
+ *
+ * Determine whether the floating-point value \p a is a NaN.
+ * \return
+ * - With Visual Studio 2013 host compiler: __RETURN_TYPE is 'bool'.
+ * Returns true if and only if \p a is a NaN value.
+ * - With other host compilers: __RETURN_TYPE is 'int'. Returns a
+ * nonzero value if and only if \p a is a NaN value.
+ */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ __RETURN_TYPE isnan(float a);
+#undef __RETURN_TYPE
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#define __RETURN_TYPE bool
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ *
+ *
+ * \brief Determine whether argument is a NaN.
+ *
+ * Determine whether the floating-point value \p a is a NaN.
+ * \return
+ * - With Visual Studio 2013 host compiler: __RETURN_TYPE is 'bool'.
+ * Returns true if and only if \p a is a NaN value.
+ * - With other host compilers: __RETURN_TYPE is 'int'. Returns a
+ * nonzero value if and only if \p a is a NaN value.
+ */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ __RETURN_TYPE isnan(float a);
+#undef __RETURN_TYPE
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+static __inline__ __DEVICE_FUNCTIONS_DECL__ int isfinite(long double a);
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ bool isfinite(long double a);
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+#define __RETURN_TYPE int
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ *
+ * \brief Determine whether argument is finite.
+ *
+ * Determine whether the floating-point value \p a is a finite value
+ * (zero, subnormal, or normal and not infinity or NaN).
+ *
+ * \return
+ * - With Visual Studio 2013 host compiler: __RETURN_TYPE is 'bool'. Returns
+ * true if and only if \p a is a finite value.
+ * - With other host compilers: __RETURN_TYPE is 'int'. Returns
+ * a nonzero value if and only if \p a is a finite value.
+ */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ __RETURN_TYPE isfinite(double a);
+#undef __RETURN_TYPE
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#define __RETURN_TYPE bool
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ *
+ * \brief Determine whether argument is finite.
+ *
+ * Determine whether the floating-point value \p a is a finite value
+ * (zero, subnormal, or normal and not infinity or NaN).
+ *
+ * \return
+ * - With Visual Studio 2013 host compiler: __RETURN_TYPE is 'bool'. Returns
+ * true if and only if \p a is a finite value.
+ * - With other host compilers: __RETURN_TYPE is 'int'. Returns
+ * a nonzero value if and only if \p a is a finite value.
+ */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ __RETURN_TYPE isfinite(double a);
+#undef __RETURN_TYPE
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+#define __RETURN_TYPE int
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Determine whether argument is finite.
+ *
+ * Determine whether the floating-point value \p a is a finite value
+ * (zero, subnormal, or normal and not infinity or NaN).
+ *
+ * \return
+ * - With Visual Studio 2013 host compiler: __RETURN_TYPE is 'bool'. Returns
+ * true if and only if \p a is a finite value.
+ * - With other host compilers: __RETURN_TYPE is 'int'. Returns
+ * a nonzero value if and only if \p a is a finite value.
+ */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ __RETURN_TYPE isfinite(float a);
+#undef __RETURN_TYPE
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+#define __RETURN_TYPE bool
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Determine whether argument is finite.
+ *
+ * Determine whether the floating-point value \p a is a finite value
+ * (zero, subnormal, or normal and not infinity or NaN).
+ *
+ * \return
+ * - With Visual Studio 2013 host compiler: __RETURN_TYPE is 'bool'. Returns
+ * true if and only if \p a is a finite value.
+ * - With other host compilers: __RETURN_TYPE is 'int'. Returns
+ * a nonzero value if and only if \p a is a finite value.
+ */
+static __inline__ __DEVICE_FUNCTIONS_DECL__ __RETURN_TYPE isfinite(float a);
+#undef __RETURN_TYPE
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+template extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ T _Pow_int(T, int);
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the absolute value of the input \p long \p long \p int argument.
+ *
+ * Calculate the absolute value of the input argument \p a.
+ *
+ * \return
+ * Returns the absolute value of the input argument.
+ * - abs(\p LLONG_MIN) is \p Undefined
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ long long int abs(long long int a);
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+template extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ T _Pow_int(T, int) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ long long int abs(long long int) throw();
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#endif /* __CUDACC_RTC__ */
+
+#if __cplusplus >= 201103L
+#define __NV_NOEXCEPT noexcept
+#else /* !__cplusplus >= 201103L */
+#define __NV_NOEXCEPT throw()
+#endif /* __cplusplus >= 201103L */
+
+#if defined(_LIBCPP_VERSION) && defined(_LIBCPP_BEGIN_NAMESPACE_STD) && !defined(_STLPORT_VERSION)
+#if defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wc++11-extensions"
+#endif /* __clang__ */
+#if _LIBCPP_VERSION < 3800
+_LIBCPP_BEGIN_NAMESPACE_STD
+#endif /* _LIBCPP_VERSION < 3800 */
+#elif defined(__GNUC__) && !defined(_STLPORT_VERSION)
+namespace std {
+#endif /* defined(_LIBCPP_VERSION) && defined(_LIBCPP_BEGIN_NAMESPACE_STD) && !defined(_STLPORT_VERSION) ||
+ __GNUC__ && !_STLPORT_VERSION */
+
+#if defined(__CUDACC_RTC__) || defined(__GNUC__)
+
+#if defined(__CUDACC_RTC__) || \
+ (defined(__NV_GLIBCXX_VERSION) && __NV_GLIBCXX_VERSION >= 40800) || \
+ defined(__ibmxl__)
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ long long int abs(long long int);
+#endif /* __CUDACC__RTC__ ||
+ (defined(__NV_GLIBCXX_VERSION) && __NV_GLIBCXX_VERSION >= 40800) ||
+ __ibmxl__ */
+
+#endif /* __CUDACC_RTC__ || __GNUC__ */
+
+#if defined(__CUDACC_RTC__) || \
+ (!defined(_MSC_VER) || _MSC_VER < 1800) && \
+ (!defined(_LIBCPP_VERSION) || (_LIBCPP_VERSION < 1101))
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the absolute value of the input \p long \p int argument.
+ *
+ * Calculate the absolute value of the input argument \p a.
+ *
+ * \return
+ * Returns the absolute value of the input argument.
+ * - abs(\p LONG_MIN) is \p Undefined
+ */
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ long int __cdecl abs(long int a);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl abs(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ double __cdecl abs(double);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl fabs(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl ceil(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl floor(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl sqrt(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl pow(float, float);
+
+#if !defined(__QNX__)
+
+#if defined(__GNUC__) && __cplusplus >= 201103L && !defined(_LIBCPP_VERSION)
+template
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__
+typename __gnu_cxx::__promote_2<_Tp, _Up>::__type pow(_Tp, _Up);
+#else /* !(defined(__GNUC__) && __cplusplus >= 201103L && !defined(_LIBCPP_VERSION)) */
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl pow(float, int);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ double __cdecl pow(double, int);
+#endif /* defined(__GNUC__) && __cplusplus >= 201103L && !defined(_LIBCPP_VERSION) */
+
+#endif /* !defined(__QNX__) */
+
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl log(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl log10(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl fmod(float, float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl modf(float, float*);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl exp(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl frexp(float, int*);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl ldexp(float, int);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl asin(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl sin(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl sinh(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl acos(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl cos(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl cosh(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl atan(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl atan2(float, float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl tan(float);
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl tanh(float);
+#else /* __CUDACC_RTC__ ||
+ (!defined(_MSC_VER) || _MSC_VER < 1800) &&
+ (!defined(_LIBCPP_VERSION) || (_LIBCPP_VERSION < 1101)) */
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ long int __cdecl abs(long int) throw();
+#if defined(_LIBCPP_VERSION)
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ long long int __cdecl abs(long long int) throw();
+#endif /* defined(_LIBCPP_VERSION) */
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl abs(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ double __cdecl abs(double) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl fabs(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl ceil(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl floor(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl sqrt(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl pow(float, float) throw();
+#if defined(_LIBCPP_VERSION)
+#if (defined (__ANDROID__) || defined(__HORIZON__)) && (_LIBCPP_VERSION >= 9000)
+template
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__
+#if _LIBCPP_VERSION >= 14000
+typename std::__enable_if_t
+#else /* _LIBCPP_VERSION < 14000 */
+typename std::_EnableIf
+#endif /* _LIBCPP_VERSION >= 14000 */
+<
+ std::is_arithmetic<_A1>::value &&
+ std::is_arithmetic<_A2>::value,
+ std::__promote<_A1, _A2>
+>::type pow(_A1 __lcpp_x, _A2 __lcpp_y) __NV_NOEXCEPT;
+#elif (defined(__APPLE__) && __clang_major__ >= 7) || _LIBCPP_VERSION >= 3800 || defined(__QNX__)
+template
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__
+#if defined(__QNX__) && (_LIBCPP_VERSION >= 160000)
+typename std::__enable_if_t <
+#elif _LIBCPP_VERSION >= 13000
+typename std::enable_if <
+#else /* #defined(__QNX__) && (_LIBCPP_VERSION >= 160000) */
+typename std::__lazy_enable_if <
+#endif /* _LIBCPP_VERSION >= 160000 */
+ std::is_arithmetic<_Tp>::value && std::is_arithmetic<_Up>::value,
+ std::__promote<_Tp, _Up>
+>::type pow(_Tp __x, _Up __y) __NV_NOEXCEPT;
+#else /* !((__APPLE__ && __clang_major__ >= 7) || _LIBCPP_VERSION >= 3800) */
+template
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__
+typename enable_if <
+ std::is_arithmetic<_Tp>::value && std::is_arithmetic<_Up>::value,
+ typename std::__promote<_Tp, _Up>::type
+>::type pow(_Tp __x, _Up __y) __NV_NOEXCEPT;
+#endif /* (__APPLE__ && __clang_major__ >= 7) || _LIBCPP_VERSION >= 3800 */
+#else /* !defined(_LIBCPP_VERSION) */
+#if !(defined(__GNUC__) && __cplusplus >= 201103L)
+#if (defined(_MSC_VER) && (_MSC_VER >= 1928)) && !(defined __CUDA_INTERNAL_SKIP_CPP_HEADERS__)
+template && ::std:: is_arithmetic_v<_Ty2>, int> > [[nodiscard]] __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ ::std:: _Common_float_type_t<_Ty1, _Ty2> __cdecl pow(_Ty1 _Left, _Ty2 _Right) noexcept;
+#else
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl pow(float, int) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ double __cdecl pow(double, int) throw();
+#endif /* (defined(_MSC_VER) && (_MSC_VER >= 1928)) && !(defined __CUDA_INTERNAL_SKIP_CPP_HEADERS__) */
+#endif /* !(defined(__GNUC__) && __cplusplus >= 201103L) */
+#endif /* defined(_LIBCPP_VERSION) */
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl log(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl log10(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl fmod(float, float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl modf(float, float*) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl exp(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl frexp(float, int*) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl ldexp(float, int) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl asin(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl sin(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl sinh(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl acos(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl cos(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl cosh(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl atan(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl atan2(float, float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl tan(float) throw();
+extern __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ float __cdecl tanh(float) throw();
+#endif /* __CUDACC_RTC__ ||
+ (!defined(_MSC_VER) || _MSC_VER < 1800) &&
+ (!defined(_LIBCPP_VERSION) || (_LIBCPP_VERSION < 1101)) */
+
+#if defined(_LIBCPP_VERSION) && defined(_LIBCPP_END_NAMESPACE_STD) && !defined(_STLPORT_VERSION)
+#if _LIBCPP_VERSION < 3800
+_LIBCPP_END_NAMESPACE_STD
+#endif /* _LIBCPP_VERSION < 3800 */
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#endif /* __clang__ */
+#elif defined(__GNUC__) && !defined(_STLPORT_VERSION)
+}
+#endif /* defined(_LIBCPP_VERSION) && defined(_LIBCPP_BEGIN_NAMESPACE_STD) && !defined(_STLPORT_VERSION) ||
+ __GNUC__ && !_STLPORT_VERSION */
+
+#undef __DEVICE_FUNCTIONS_DECL__
+#undef __NV_NOEXCEPT
+
+#if defined(__CUDACC_RTC__)
+#define __MATH_FUNCTIONS_DECL__ __host__ __device__
+#define __MATH_FUNCTIONS_DEVICE_DECL__ __device__
+#else /* __CUDACC_RTC__ */
+#define __MATH_FUNCTIONS_DECL__ static inline __host__ __device__ __cudart_builtin__
+#define __MATH_FUNCTIONS_DEVICE_DECL__ static inline __device__ __cudart_builtin__
+#endif /* __CUDACC_RTC__ */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+#if defined(__QNX__) || (defined(_LIBCPP_VERSION) && _LIBCPP_VERSION >= 3800)
+#if defined(__QNX__) && (!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 8000)
+#if defined(_LIBCPP_VERSION)
+#define __NV_NOEXCEPT _NOEXCEPT
+_LIBCPP_BEGIN_NAMESPACE_STD
+#else
+#define __NV_NOEXCEPT
+namespace std {
+__host__ __device__ __cudart_builtin__ int ilogbf(float a);
+#endif
+#else /* !(defined(__QNX__) && (!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 8000)) */
+#define __NV_NOEXCEPT _NOEXCEPT
+#endif /* defined(__QNX__) && (!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 8000) */
+__host__ __device__ __cudart_builtin__ float logb(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ int ilogb(float a) __NV_NOEXCEPT;
+
+__host__ __device__ __cudart_builtin__ float scalbn(float a, int b) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float scalbln(float a, long int b) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float exp2(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float expm1(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float log2(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float log1p(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float acosh(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float asinh(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float atanh(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float hypot(float a, float b) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float cbrt(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float erf(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float erfc(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float lgamma(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float tgamma(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float copysign(float a, float b) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float nextafter(float a, float b) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float remainder(float a, float b) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float remquo(float a, float b, int *quo) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float round(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ long int lround(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ long long int llround(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float trunc(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float rint(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ long int lrint(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ long long int llrint(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float nearbyint(float a) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float fdim(float a, float b) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float fma(float a, float b, float c) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float fmax(float a, float b) __NV_NOEXCEPT;
+__host__ __device__ __cudart_builtin__ float fmin(float a, float b) __NV_NOEXCEPT;
+#if defined(__QNX__) && (!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 8000)
+#if defined(_LIBCPP_VERSION)
+_LIBCPP_END_NAMESPACE_STD
+using _VSTD::logb;
+using _VSTD::ilogb;
+using _VSTD::scalbn;
+using _VSTD::scalbln;
+using _VSTD::exp2;
+using _VSTD::expm1;
+using _VSTD::log2;
+using _VSTD::log1p;
+using _VSTD::acosh;
+using _VSTD::asinh;
+using _VSTD::atanh;
+using _VSTD::hypot;
+using _VSTD::cbrt;
+using _VSTD::erf;
+using _VSTD::erfc;
+using _VSTD::lgamma;
+using _VSTD::tgamma;
+using _VSTD::copysign;
+using _VSTD::nextafter;
+using _VSTD::remainder;
+using _VSTD::remquo;
+using _VSTD::round;
+using _VSTD::lround;
+using _VSTD::llround;
+using _VSTD::trunc;
+using _VSTD::rint;
+using _VSTD::lrint;
+using _VSTD::llrint;
+using _VSTD::nearbyint;
+using _VSTD::fdim;
+using _VSTD::fma;
+using _VSTD::fmax;
+using _VSTD::fmin;
+#else
+}
+#endif
+#endif /* defined(__QNX__) && (!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 8000) */
+#undef __NV_NOEXCEPT
+#else /* !(defined(__QNX__ ) || (defined(_LIBCPP_VERSION) && _LIBCPP_VERSION >= 3800)) */
+#if ((defined _GLIBCXX_MATH_H) && _GLIBCXX_MATH_H) && (__cplusplus >= 201103L)
+namespace std {
+__host__ __device__ __cudart_builtin__ constexpr float logb(float a);
+__host__ __device__ __cudart_builtin__ constexpr int ilogb(float a);
+__host__ __device__ __cudart_builtin__ constexpr float scalbn(float a, int b);
+__host__ __device__ __cudart_builtin__ constexpr float scalbln(float a, long int b);
+__host__ __device__ __cudart_builtin__ constexpr float exp2(float a);
+__host__ __device__ __cudart_builtin__ constexpr float expm1(float a);
+__host__ __device__ __cudart_builtin__ constexpr float log2(float a);
+__host__ __device__ __cudart_builtin__ constexpr float log1p(float a);
+__host__ __device__ __cudart_builtin__ constexpr float acosh(float a);
+__host__ __device__ __cudart_builtin__ constexpr float asinh(float a);
+__host__ __device__ __cudart_builtin__ constexpr float atanh(float a);
+__host__ __device__ __cudart_builtin__ constexpr float hypot(float a, float b);
+__host__ __device__ __cudart_builtin__ constexpr float cbrt(float a);
+__host__ __device__ __cudart_builtin__ constexpr float erf(float a);
+__host__ __device__ __cudart_builtin__ constexpr float erfc(float a);
+__host__ __device__ __cudart_builtin__ constexpr float lgamma(float a);
+__host__ __device__ __cudart_builtin__ constexpr float tgamma(float a);
+__host__ __device__ __cudart_builtin__ constexpr float copysign(float a, float b);
+__host__ __device__ __cudart_builtin__ constexpr float nextafter(float a, float b);
+__host__ __device__ __cudart_builtin__ constexpr float remainder(float a, float b);
+__host__ __device__ __cudart_builtin__ float remquo(float a, float b, int *quo);
+__host__ __device__ __cudart_builtin__ constexpr float round(float a);
+__host__ __device__ __cudart_builtin__ constexpr long int lround(float a);
+__host__ __device__ __cudart_builtin__ constexpr long long int llround(float a);
+__host__ __device__ __cudart_builtin__ constexpr float trunc(float a);
+__host__ __device__ __cudart_builtin__ constexpr float rint(float a);
+__host__ __device__ __cudart_builtin__ constexpr long int lrint(float a);
+__host__ __device__ __cudart_builtin__ constexpr long long int llrint(float a);
+__host__ __device__ __cudart_builtin__ constexpr float nearbyint(float a);
+__host__ __device__ __cudart_builtin__ constexpr float fdim(float a, float b);
+__host__ __device__ __cudart_builtin__ constexpr float fma(float a, float b, float c);
+__host__ __device__ __cudart_builtin__ constexpr float fmax(float a, float b);
+__host__ __device__ __cudart_builtin__ constexpr float fmin(float a, float b);
+}
+#else /* !(((defined _GLIBCXX_MATH_H) && _GLIBCXX_MATH_H) && (__cplusplus >= 201103L)) */
+__MATH_FUNCTIONS_DECL__ float logb(float a);
+
+__MATH_FUNCTIONS_DECL__ int ilogb(float a);
+
+__MATH_FUNCTIONS_DECL__ float scalbn(float a, int b);
+
+__MATH_FUNCTIONS_DECL__ float scalbln(float a, long int b);
+
+__MATH_FUNCTIONS_DECL__ float exp2(float a);
+
+__MATH_FUNCTIONS_DECL__ float expm1(float a);
+
+__MATH_FUNCTIONS_DECL__ float log2(float a);
+
+__MATH_FUNCTIONS_DECL__ float log1p(float a);
+
+__MATH_FUNCTIONS_DECL__ float acosh(float a);
+
+__MATH_FUNCTIONS_DECL__ float asinh(float a);
+
+__MATH_FUNCTIONS_DECL__ float atanh(float a);
+
+__MATH_FUNCTIONS_DECL__ float hypot(float a, float b);
+
+__MATH_FUNCTIONS_DECL__ float cbrt(float a);
+
+__MATH_FUNCTIONS_DECL__ float erf(float a);
+
+__MATH_FUNCTIONS_DECL__ float erfc(float a);
+
+__MATH_FUNCTIONS_DECL__ float lgamma(float a);
+
+__MATH_FUNCTIONS_DECL__ float tgamma(float a);
+
+__MATH_FUNCTIONS_DECL__ float copysign(float a, float b);
+
+__MATH_FUNCTIONS_DECL__ float nextafter(float a, float b);
+
+__MATH_FUNCTIONS_DECL__ float remainder(float a, float b);
+
+__MATH_FUNCTIONS_DECL__ float remquo(float a, float b, int *quo);
+
+__MATH_FUNCTIONS_DECL__ float round(float a);
+
+__MATH_FUNCTIONS_DECL__ long int lround(float a);
+
+__MATH_FUNCTIONS_DECL__ long long int llround(float a);
+
+__MATH_FUNCTIONS_DECL__ float trunc(float a);
+
+__MATH_FUNCTIONS_DECL__ float rint(float a);
+
+__MATH_FUNCTIONS_DECL__ long int lrint(float a);
+
+__MATH_FUNCTIONS_DECL__ long long int llrint(float a);
+
+__MATH_FUNCTIONS_DECL__ float nearbyint(float a);
+
+__MATH_FUNCTIONS_DECL__ float fdim(float a, float b);
+
+__MATH_FUNCTIONS_DECL__ float fma(float a, float b, float c);
+
+__MATH_FUNCTIONS_DECL__ float fmax(float a, float b);
+
+__MATH_FUNCTIONS_DECL__ float fmin(float a, float b);
+#endif /* ((defined _GLIBCXX_MATH_H) && _GLIBCXX_MATH_H) && (__cplusplus >= 201103L) */
+#endif /* defined(__QNX__) || (defined(_LIBCPP_VERSION) && _LIBCPP_VERSION >= 3800) */
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+extern __host__ __device__ __cudart_builtin__ float __cdecl logb(float) throw();
+extern __host__ __device__ __cudart_builtin__ int __cdecl ilogb(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl scalbn(float, float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl scalbln(float, long int) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl exp2(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl expm1(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl log2(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl log1p(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl acosh(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl asinh(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl atanh(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl hypot(float, float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl cbrt(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl erf(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl erfc(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl lgamma(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl tgamma(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl copysign(float, float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl nextafter(float, float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl remainder(float, float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl remquo(float, float, int *) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl round(float) throw();
+extern __host__ __device__ __cudart_builtin__ long int __cdecl lround(float) throw();
+extern __host__ __device__ __cudart_builtin__ long long int __cdecl llround(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl trunc(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl rint(float) throw();
+extern __host__ __device__ __cudart_builtin__ long int __cdecl lrint(float) throw();
+extern __host__ __device__ __cudart_builtin__ long long int __cdecl llrint(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl nearbyint(float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl fdim(float, float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl fma(float, float, float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl fmax(float, float) throw();
+extern __host__ __device__ __cudart_builtin__ float __cdecl fmin(float, float) throw();
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+__MATH_FUNCTIONS_DECL__ float exp10(const float a);
+
+__MATH_FUNCTIONS_DECL__ float rsqrt(const float a);
+
+__MATH_FUNCTIONS_DECL__ float rcbrt(const float a);
+
+__MATH_FUNCTIONS_DECL__ float sinpi(const float a);
+
+__MATH_FUNCTIONS_DECL__ float cospi(const float a);
+
+__MATH_FUNCTIONS_DECL__ void sincospi(const float a, float *const sptr, float *const cptr);
+
+__MATH_FUNCTIONS_DECL__ void sincos(const float a, float *const sptr, float *const cptr);
+
+__MATH_FUNCTIONS_DECL__ float j0(const float a);
+
+__MATH_FUNCTIONS_DECL__ float j1(const float a);
+
+__MATH_FUNCTIONS_DECL__ float jn(const int n, const float a);
+
+__MATH_FUNCTIONS_DECL__ float y0(const float a);
+
+__MATH_FUNCTIONS_DECL__ float y1(const float a);
+
+__MATH_FUNCTIONS_DECL__ float yn(const int n, const float a);
+
+__MATH_FUNCTIONS_DEVICE_DECL__ float cyl_bessel_i0(const float a);
+
+__MATH_FUNCTIONS_DEVICE_DECL__ float cyl_bessel_i1(const float a);
+
+__MATH_FUNCTIONS_DECL__ float erfinv(const float a);
+
+__MATH_FUNCTIONS_DECL__ float erfcinv(const float a);
+
+__MATH_FUNCTIONS_DECL__ float normcdfinv(const float a);
+
+__MATH_FUNCTIONS_DECL__ float normcdf(const float a);
+
+__MATH_FUNCTIONS_DECL__ float erfcx(const float a);
+
+__MATH_FUNCTIONS_DECL__ double copysign(const double a, const float b);
+
+__MATH_FUNCTIONS_DECL__ double copysign(const float a, const double b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the minimum value of the input \p unsigned \p int arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned int min(const unsigned int a, const unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the minimum value of the input \p int and \p unsigned \p int arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b, perform integer promotion first.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned int min(const int a, const unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the minimum value of the input \p unsigned \p int and \p int arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b, perform integer promotion first.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned int min(const unsigned int a, const int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the minimum value of the input \p long \p int arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b.
+ */
+__MATH_FUNCTIONS_DECL__ long int min(const long int a, const long int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the minimum value of the input \p unsigned \p long \p int arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned long int min(const unsigned long int a, const unsigned long int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the minimum value of the input \p long \p int and \p unsigned \p long \p int arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b, perform integer promotion first.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned long int min(const long int a, const unsigned long int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the minimum value of the input \p unsigned \p long \p int and \p long \p int arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b, perform integer promotion first.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned long int min(const unsigned long int a, const long int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the minimum value of the input \p long \p long \p int arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b.
+ */
+__MATH_FUNCTIONS_DECL__ long long int min(const long long int a, const long long int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the minimum value of the input \p unsigned \p long \p long \p int arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned long long int min(const unsigned long long int a, const unsigned long long int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the minimum value of the input \p long \p long \p int and \p unsigned \p long \p long \p int arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b, perform integer promotion first.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned long long int min(const long long int a, const unsigned long long int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the minimum value of the input \p unsigned \p long \p long \p int and \p long \p long \p int arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b, perform integer promotion first.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned long long int min(const unsigned long long int a, const long long int b);
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the minimum value of the input \p float arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b.
+ * Behavior is equivalent to ::fminf() function.
+ *
+ * Note, this is different from \p std:: specification
+ */
+__MATH_FUNCTIONS_DECL__ float min(const float a, const float b);
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the minimum value of the input \p float arguments.
+ *
+ * Calculate the minimum value of the arguments \p a and \p b.
+ * Behavior is equivalent to ::fmin() function.
+ *
+ * Note, this is different from \p std:: specification
+ */
+__MATH_FUNCTIONS_DECL__ double min(const double a, const double b);
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the minimum value of the input \p float and \p double arguments.
+ *
+ * Convert \p float argument \p a to \p double, followed by ::fmin().
+ *
+ * Note, this is different from \p std:: specification
+ */
+__MATH_FUNCTIONS_DECL__ double min(const float a, const double b);
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the minimum value of the input \p double and \p float arguments.
+ *
+ * Convert \p float argument \p b to \p double, followed by ::fmin().
+ *
+ * Note, this is different from \p std:: specification
+ */
+__MATH_FUNCTIONS_DECL__ double min(const double a, const float b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the maximum value of the input \p unsigned \p int arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned int max(const unsigned int a, const unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the maximum value of the input \p int and \p unsigned \p int arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b, perform integer promotion first.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned int max(const int a, const unsigned int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the maximum value of the input \p unsigned \p int and \p int arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b, perform integer promotion first.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned int max(const unsigned int a, const int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the maximum value of the input \p long \p int arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b.
+ */
+__MATH_FUNCTIONS_DECL__ long int max(const long int a, const long int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the maximum value of the input \p unsigned \p long \p int arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned long int max(const unsigned long int a, const unsigned long int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the maximum value of the input \p long \p int and \p unsigned \p long \p int arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b, perform integer promotion first.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned long int max(const long int a, const unsigned long int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the maximum value of the input \p unsigned \p long \p int and \p long \p int arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b, perform integer promotion first.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned long int max(const unsigned long int a, const long int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the maximum value of the input \p long \p long \p int arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b.
+ */
+__MATH_FUNCTIONS_DECL__ long long int max(const long long int a, const long long int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the maximum value of the input \p unsigned \p long \p long \p int arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned long long int max(const unsigned long long int a, const unsigned long long int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the maximum value of the input \p long \p long \p int and \p unsigned \p long \p long \p int arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b, perform integer promotion first.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned long long int max(const long long int a, const unsigned long long int b);
+
+/**
+ * \ingroup CUDA_MATH_INT
+ * \brief Calculate the maximum value of the input \p unsigned \p long \p long \p int and \p long \p long \p int arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b, perform integer promotion first.
+ */
+__MATH_FUNCTIONS_DECL__ unsigned long long int max(const unsigned long long int a, const long long int b);
+
+/**
+ * \ingroup CUDA_MATH_SINGLE
+ * \brief Calculate the maximum value of the input \p float arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b.
+ * Behavior is equivalent to ::fmaxf() function.
+ *
+ * Note, this is different from \p std:: specification
+ */
+__MATH_FUNCTIONS_DECL__ float max(const float a, const float b);
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the maximum value of the input \p float arguments.
+ *
+ * Calculate the maximum value of the arguments \p a and \p b.
+ * Behavior is equivalent to ::fmax() function.
+ *
+ * Note, this is different from \p std:: specification
+ */
+__MATH_FUNCTIONS_DECL__ double max(const double a, const double b);
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the maximum value of the input \p float and \p double arguments.
+ *
+ * Convert \p float argument \p a to \p double, followed by ::fmax().
+ *
+ * Note, this is different from \p std:: specification
+ */
+__MATH_FUNCTIONS_DECL__ double max(const float a, const double b);
+
+/**
+ * \ingroup CUDA_MATH_DOUBLE
+ * \brief Calculate the maximum value of the input \p double and \p float arguments.
+ *
+ * Convert \p float argument \p b to \p double, followed by ::fmax().
+ *
+ * Note, this is different from \p std:: specification
+ */
+__MATH_FUNCTIONS_DECL__ double max(const double a, const float b);
+
+#undef __MATH_FUNCTIONS_DECL__
+#undef __MATH_FUNCTIONS_DEVICE_DECL__
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+#undef EXCLUDE_FROM_RTC
+
+extern "C"{
+inline __device__ void *__nv_aligned_device_malloc(size_t size, size_t align)
+{
+ __device__ void *__nv_aligned_device_malloc_impl(size_t, size_t);
+ return __nv_aligned_device_malloc_impl(size, align);
+}
+}
+
+#endif /* __cplusplus && __CUDACC__ */
+
+#define EXCLUDE_FROM_RTC
+
+#if !defined(__CUDACC__)
+
+/*******************************************************************************
+* *
+* ONLY FOR HOST CODE! NOT FOR DEVICE EXECUTION *
+* *
+*******************************************************************************/
+
+#include
+
+#if defined(_WIN32)
+#pragma warning (push)
+#pragma warning (disable : 4211)
+
+#endif /* _WIN32 */
+
+__func__(double rsqrt(double a));
+
+__func__(double rcbrt(double a));
+
+__func__(double sinpi(double a));
+
+__func__(double cospi(double a));
+
+__func__(void sincospi(double a, double *sptr, double *cptr));
+
+__func__(double erfinv(double a));
+
+__func__(double erfcinv(double a));
+
+__func__(double normcdfinv(double a));
+
+__func__(double normcdf(double a));
+
+__func__(double erfcx(double a));
+
+__func__(float rsqrtf(float a));
+
+__func__(float rcbrtf(float a));
+
+__func__(float sinpif(float a));
+
+__func__(float cospif(float a));
+
+__func__(void sincospif(float a, float *sptr, float *cptr));
+
+__func__(float erfinvf(float a));
+
+__func__(float erfcinvf(float a));
+
+__func__(float normcdfinvf(float a));
+
+__func__(float normcdff(float a));
+
+__func__(float erfcxf(float a));
+
+__func__(int min(int a, int b));
+
+__func__(unsigned int umin(unsigned int a, unsigned int b));
+
+__func__(long long int llmin(long long int a, long long int b));
+
+__func__(unsigned long long int ullmin(unsigned long long int a, unsigned long long int b));
+
+__func__(int max(int a, int b));
+
+__func__(unsigned int umax(unsigned int a, unsigned int b));
+
+__func__(long long int llmax(long long int a, long long int b));
+
+__func__(unsigned long long int ullmax(unsigned long long int a, unsigned long long int b));
+
+#if defined(_WIN32) || defined(__APPLE__) || defined (__ANDROID__)
+
+__func__(int __isnan(double a));
+
+#endif /* _WIN32 || __APPLE__ || __ANDROID__ */
+
+#if defined(_WIN32) || defined(__APPLE__) || defined (__QNX__)
+
+__func__(void sincos(double a, double *sptr, double *cptr));
+
+#endif /* _WIN32 || __APPLE__ || __QNX__ */
+
+#if defined(_WIN32) || defined(__APPLE__)
+
+__func__(double exp10(double a));
+
+__func__(float exp10f(float a));
+
+__func__(void sincosf(float a, float *sptr, float *cptr));
+
+__func__(int __isinf(double a));
+
+#endif /* _WIN32 || __APPLE__ */
+
+#if (defined(_WIN32) && (!defined(_MSC_VER) || _MSC_VER < 1800)) || defined (__ANDROID__)
+
+__func__(double log2(double a));
+
+#endif /* (_WIN32 && (!defined(_MSC_VER) || _MSC_VER < 1800)) || __ANDROID__ */
+
+#if defined(_WIN32)
+
+__func__(int __signbit(double a));
+
+__func__(int __finite(double a));
+
+__func__(int __signbitl(long double a));
+
+__func__(int __signbitf(float a));
+
+__func__(int __finitel(long double a));
+
+__func__(int __finitef(float a));
+
+__func__(int __isinfl(long double a));
+
+__func__(int __isinff(float a));
+
+__func__(int __isnanl(long double a));
+
+__func__(int __isnanf(float a));
+
+#endif /* _WIN32 */
+
+#if defined(_WIN32) && (!defined(_MSC_VER) || _MSC_VER < 1800)
+
+__func__(double copysign(double a, double b));
+
+__func__(double fmax(double a, double b));
+
+__func__(double fmin(double a, double b));
+
+__func__(double trunc(double a));
+
+__func__(double round(double a));
+
+__func__(long int lround(double a));
+
+__func__(long long int llround(double a));
+
+__func__(double rint(double a));
+
+__func__(double nearbyint(double a));
+
+__func__(long int lrint(double a));
+
+__func__(long long int llrint(double a));
+
+__func__(double fdim(double a, double b));
+
+__func__(double scalbn(double a, int b));
+
+__func__(double scalbln(double a, long int b));
+
+__func__(double exp2(double a));
+
+__func__(double log1p(double a));
+
+__func__(double expm1(double a));
+
+__func__(double cbrt(double a));
+
+__func__(double acosh(double a));
+
+__func__(double asinh(double a));
+
+__func__(double atanh(double a));
+
+__func__(int ilogb(double a));
+
+__func__(double logb(double a));
+
+__func__(double remquo(double a, double b, int *quo));
+
+__func__(double remainder(double a, double b));
+
+__func__(double fma (double a, double b, double c));
+
+__func__(double nextafter(double a, double b));
+
+__func__(double erf(double a));
+
+__func__(double erfc(double a));
+
+__func__(double lgamma(double a));
+
+__func__(unsigned long long int __internal_host_nan_kernel(const char *s));
+
+__func__(double nan(const char *tagp));
+
+__func__(double __host_tgamma_kernel(double a));
+
+__func__(double __host_stirling_poly(double a));
+
+__func__(double __host_tgamma_stirling(double a));
+
+__func__(double tgamma(double a));
+
+__func__(float fmaxf(float a, float b));
+
+__func__(float fminf(float a, float b));
+
+__func__(float roundf(float a));
+
+__func__(long int lroundf(float a));
+
+__func__(long long int llroundf(float a));
+
+__func__(float truncf(float a));
+
+__func__(float rintf(float a));
+
+__func__(float nearbyintf(float a));
+
+__func__(long int lrintf(float a));
+
+__func__(long long int llrintf(float a));
+
+__func__(float logbf(float a));
+
+__func__(float scalblnf(float a, long int b));
+
+__func__(float log2f(float a));
+
+__func__(float exp2f(float a));
+
+__func__(float acoshf(float a));
+
+__func__(float asinhf(float a));
+
+__func__(float atanhf(float a));
+
+__func__(float cbrtf(float a));
+
+__func__(float expm1f(float a));
+
+__func__(float fdimf(float a, float b));
+
+__func__(float log1pf(float a));
+
+__func__(float scalbnf(float a, int b));
+
+__func__(float fmaf(float a, float b, float c));
+
+__func__(int ilogbf(float a));
+
+__func__(float erff(float a));
+
+__func__(float erfcf(float a));
+
+__func__(float lgammaf(float a));
+
+__func__(float tgammaf(float a));
+
+__func__(float remquof(float a, float b, int *quo));
+
+__func__(float remainderf(float a, float b));
+
+__func__(float copysignf(float a, float b));
+
+__func__(float nextafterf(float a, float b));
+
+__func__(float nanf(const char *tagp));
+
+#endif /* _WIN32 && (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if defined(_WIN32)
+#pragma warning (pop)
+#endif /* _WIN32 */
+
+#endif /* !__CUDACC__ */
+
+#undef EXCLUDE_FROM_RTC
+
+#if !defined(__CUDACC_RTC__)
+
+#include "math_functions.hpp"
+
+#endif /* !__CUDACC_RTC__ */
+
+#endif /* !__MATH_FUNCTIONS_H__ */
+
+#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_MATH_FUNCTIONS_H__)
+#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_MATH_FUNCTIONS_H__
+#endif
diff --git a/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/math_functions.hpp b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/math_functions.hpp
new file mode 100644
index 0000000000000000000000000000000000000000..cc09b915ea07f8ef376f5c3640f963a09e86dbfd
--- /dev/null
+++ b/miniconda3/envs/ladir/lib/python3.10/site-packages/triton/backends/nvidia/include/crt/math_functions.hpp
@@ -0,0 +1,3398 @@
+/*
+ * Copyright 1993-2023 NVIDIA Corporation. All rights reserved.
+ *
+ * NOTICE TO LICENSEE:
+ *
+ * This source code and/or documentation ("Licensed Deliverables") are
+ * subject to NVIDIA intellectual property rights under U.S. and
+ * international Copyright laws.
+ *
+ * These Licensed Deliverables contained herein is PROPRIETARY and
+ * CONFIDENTIAL to NVIDIA and is being provided under the terms and
+ * conditions of a form of NVIDIA software license agreement by and
+ * between NVIDIA and Licensee ("License Agreement") or electronically
+ * accepted by Licensee. Notwithstanding any terms or conditions to
+ * the contrary in the License Agreement, reproduction or disclosure
+ * of the Licensed Deliverables to any third party without the express
+ * written consent of NVIDIA is prohibited.
+ *
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
+ * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
+ * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
+ * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
+ * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
+ * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
+ * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
+ * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
+ * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
+ * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+ * OF THESE LICENSED DELIVERABLES.
+ *
+ * U.S. Government End Users. These Licensed Deliverables are a
+ * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
+ * 1995), consisting of "commercial computer software" and "commercial
+ * computer software documentation" as such terms are used in 48
+ * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
+ * only as a commercial end item. Consistent with 48 C.F.R.12.212 and
+ * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
+ * U.S. Government End Users acquire the Licensed Deliverables with
+ * only those rights set forth herein.
+ *
+ * Any use of the Licensed Deliverables in individual and commercial
+ * software must include, in the user documentation and internal
+ * comments to the code, the above Disclaimer and U.S. Government End
+ * Users Notice.
+ */
+
+#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
+#if defined(_MSC_VER)
+#pragma message("crt/math_functions.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
+#else
+#warning "crt/math_functions.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
+#endif
+#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
+#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_MATH_FUNCTIONS_HPP__
+#endif
+
+#if !defined(__MATH_FUNCTIONS_HPP__)
+#define __MATH_FUNCTIONS_HPP__
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#if defined(__cplusplus) && defined(__CUDACC__)
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#include "builtin_types.h"
+#include "host_defines.h"
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#if defined(__CUDACC_RTC__)
+
+__host__ __device__ __cudart_builtin__ int signbit(const float x) { return __signbitf(x); }
+__host__ __device__ __cudart_builtin__ int signbit(const double x) { return __signbit(x); }
+__host__ __device__ __cudart_builtin__ int signbit(const long double x) { return __signbitl(static_cast(x));}
+
+__host__ __device__ __cudart_builtin__ int isfinite(const float x) { return __finitef(x); }
+__host__ __device__ __cudart_builtin__ int isfinite(const double x) { return __finite(x); }
+__host__ __device__ __cudart_builtin__ int isfinite(const long double x) { return __finitel(static_cast(x)); }
+
+__host__ __device__ __cudart_builtin__ int isnan(const float x) { return __isnanf(x); }
+__host__ __device__ __cudart_builtin__ int isnan(const double x) { return __isnan(x); }
+__host__ __device__ __cudart_builtin__ int isnan(const long double x) { return __isnanl(static_cast(x)); }
+
+__host__ __device__ __cudart_builtin__ int isinf(const float x) { return __isinff(x); }
+__host__ __device__ __cudart_builtin__ int isinf(const double x) { return __isinf(x); }
+__host__ __device__ __cudart_builtin__ int isinf(const long double x) { return __isinfl(static_cast(x)); }
+
+__host__ __device__ __cudart_builtin__ long long int abs(const long long int a) { return llabs(a); }
+
+__host__ __device__ __cudart_builtin__ long int abs(const long int in) { return llabs(in); }
+__host__ __device__ __cudart_builtin__ float abs(const float in) { return fabsf(in); }
+__host__ __device__ __cudart_builtin__ double abs(const double in) { return fabs(in); }
+__host__ __device__ __cudart_builtin__ float fabs(const float in) { return fabsf(in); }
+__host__ __device__ __cudart_builtin__ float ceil(const float in) { return ceilf(in); }
+__host__ __device__ __cudart_builtin__ float floor(const float in) { return floorf(in); }
+__host__ __device__ __cudart_builtin__ float sqrt(const float in) { return sqrtf(in); }
+__host__ __device__ __cudart_builtin__ float pow(const float a, const float b) { return powf(a, b); }
+extern "C" __device__ float powif(float, int);
+__host__ __device__ __cudart_builtin__ float pow(const float a, const int b) { return powif(a, b); }
+extern "C" __device__ double powi(double, int);
+__host__ __device__ __cudart_builtin__ double pow(const double a, const int b) { return powi(a, b); }
+__host__ __device__ __cudart_builtin__ float log(const float in) { return logf(in); }
+__host__ __device__ __cudart_builtin__ float log10(const float in) { return log10f(in); }
+__host__ __device__ __cudart_builtin__ float fmod(const float a, const float b) { return fmodf(a, b); }
+__host__ __device__ __cudart_builtin__ float modf(const float a, float*b) { return modff(a, b); }
+__host__ __device__ __cudart_builtin__ float exp(const float in) { return expf(in); }
+__host__ __device__ __cudart_builtin__ float frexp(const float a, int*b) { return frexpf(a, b); }
+__host__ __device__ __cudart_builtin__ float ldexp(const float a, int b) { return ldexpf(a, b); }
+__host__ __device__ __cudart_builtin__ float asin(const float in) { return asinf(in); }
+__host__ __device__ __cudart_builtin__ float sin(const float in) { return sinf(in); }
+__host__ __device__ __cudart_builtin__ float sinh(const float in) { return sinhf(in); }
+__host__ __device__ __cudart_builtin__ float acos(const float in) { return acosf(in); }
+__host__ __device__ __cudart_builtin__ float cos(const float in) { return cosf(in); }
+__host__ __device__ __cudart_builtin__ float cosh(const float in) { return coshf(in); }
+__host__ __device__ __cudart_builtin__ float atan(const float in) { return atanf(in); }
+__host__ __device__ __cudart_builtin__ float atan2(const float a, const float b) { return atan2f(a, b); }
+__host__ __device__ __cudart_builtin__ float tan(const float in) { return tanf(in); }
+__host__ __device__ __cudart_builtin__ float tanh(const float in) { return tanhf(in); }
+
+#elif defined(__GNUC__)
+
+#undef signbit
+#undef isfinite
+#undef isnan
+#undef isinf
+
+#if defined(_LIBCPP_VERSION)
+extern "C" __device__ float powif(float, int);
+extern "C" __device__ double powi(double, int);
+#endif /* _LIBCPP_VERSION */
+
+#if defined(__APPLE__)
+__forceinline__ __host__ __device__ __cudart_builtin__ int signbit(const float x) { return __signbitf(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int signbit(const double x) { return __signbitd(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int signbit(const long double x) { return __signbitl(x);}
+
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const float x) { return __isfinitef(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const double x) { return __isfinited(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const long double x) { return __isfinite(x); }
+
+__forceinline__ __host__ __device__ __cudart_builtin__ int isnan(const double x) throw() { return __isnand(x); }
+#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 7000
+__forceinline__ __host__ __device__ __cudart_builtin__ int isnan(const float x) { return __isnanf(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int isnan(const long double x) { return __isnan(x); }
+#endif /* defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 7000 */
+
+__forceinline__ __host__ __device__ __cudart_builtin__ int isinf(const double x) throw() { return __isinfd(x); }
+#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 7000
+__forceinline__ __host__ __device__ __cudart_builtin__ int isinf(const float x) { return __isinff(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int isinf(const long double x) { return __isinf(x); }
+#endif /* defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 7000 */
+#else /* __APPLE__ */
+
+#if ((defined _GLIBCXX_MATH_H) && _GLIBCXX_MATH_H) && (__cplusplus >= 201103L)
+#if defined(__CUDA_ARCH__)
+#define __NV_BUILTIN_FUNC_DECL__ __forceinline__ __host__ __device__ __cudart_builtin__
+#if _GLIBCXX_HAVE_OBSOLETE_ISNAN && !_GLIBCXX_NO_OBSOLETE_ISINF_ISNAN_DYNAMIC
+__NV_BUILTIN_FUNC_DECL__ int isnan(const double a) throw() { return __isnan(a); }
+__NV_BUILTIN_FUNC_DECL__ int isinf(const double x) throw() { return __isinf(x); }
+#endif /* _GLIBCXX_HAVE_OBSOLETE_ISNAN && !_GLIBCXX_NO_OBSOLETE_ISINF_ISNAN_DYNAMIC */
+#undef __NV_BUILTIN_FUNC_DECL__
+#endif /* __CUDA_ARCH */
+#else /* !(((defined _GLIBCXX_MATH_H) && _GLIBCXX_MATH_H) && (__cplusplus >= 201103L)) */
+
+#if defined(__QNX__)
+#if defined(__QNX__) && defined(_LIBCPP_VERSION)
+static __inline__ __host__ __device__ __cudart_builtin__ bool signbit(const float x)
+{
+#if defined(__CUDA_ARCH__)
+ return (__signbitf(x) != 0);
+#else /* !__CUDA_ARCH__ */
+ return signbit(x);
+#endif /* __CUDA_ARCH__ */
+}
+static __inline__ __host__ __device__ __cudart_builtin__ bool signbit(const double x)
+{
+#if defined(__CUDA_ARCH__)
+ return (__signbit(x) != 0);
+#else /* !__CUDA_ARCH__ */
+ return signbit(x);
+#endif /* __CUDA_ARCH__ */
+}
+static __inline__ __host__ __device__ __cudart_builtin__ bool signbit(const long double x)
+{
+#if defined(__CUDA_ARCH__)
+ return (__signbitl(x) != 0);
+#else /* !__CUDA_ARCH__ */
+ return signbit(x);
+#endif /* __CUDA_ARCH__ */
+}
+#endif /* (__QNX__ && _LIBCPP_VERSION) */
+
+static __inline__ __host__ __device__ __cudart_builtin__ bool isfinite(const long double a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__finitel(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isfinite(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+static __inline__ __host__ __device__ __cudart_builtin__ bool isfinite(const double a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__finite(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isfinite(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+static __inline__ __host__ __device__ __cudart_builtin__ bool isfinite(const float a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__finitef(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isfinite(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+
+static __inline__ __host__ __device__ __cudart_builtin__ bool isnan(const long double a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__isnanl(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isnan(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+static __inline__ __host__ __device__ __cudart_builtin__ bool isnan(const double a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__isnan(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isnan(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+static __inline__ __host__ __device__ __cudart_builtin__ bool isnan(const float a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__isnanf(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isnan(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+
+static __inline__ __host__ __device__ __cudart_builtin__ bool isinf(const long double a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__isinfl(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isinf(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+static __inline__ __host__ __device__ __cudart_builtin__ bool isinf(const double a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__isinf(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isinf(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+static __inline__ __host__ __device__ __cudart_builtin__ bool isinf(const float a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__isinff(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isinf(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+
+#elif ( (defined(__ANDROID__) || defined(__HORIZON__)) && defined(_LIBCPP_VERSION))
+#if defined(__CUDA_ARCH__)
+__forceinline__ __host__ __device__ __cudart_builtin__ int signbit(const float x) { return __signbitf(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int signbit(const double x) { return __signbit(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int signbit(const long double x) { return __signbitl(x);}
+
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const float x) { return __finitef(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const double x) { return __finite(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const long double x) { return __finitel(x); }
+
+__forceinline__ __host__ __device__ __cudart_builtin__ int isnan(const double x) { return __isnan(x); }
+#if _LIBCPP_VERSION < 8000
+__forceinline__ __host__ __device__ __cudart_builtin__ int isnan(const float x) { return __isnanf(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int isnan(const long double x) { return __isnanl(x); }
+#endif /* _LIBCPP_VERSION < 8000 */
+
+__forceinline__ __host__ __device__ __cudart_builtin__ int isinf(const double x) { return __isinf(x); }
+#if _LIBCPP_VERSION < 8000
+__forceinline__ __host__ __device__ __cudart_builtin__ int isinf(const float x) { return __isinff(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int isinf(const long double x) { return __isinfl(x); }
+#endif /* _LIBCPP_VERSION < 8000 */
+#else /* !defined(__CUDA_ARCH__) */
+__forceinline__ __host__ __device__ __cudart_builtin__ int signbit(const float x) { return signbit(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int signbit(const double x) { return signbit(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int signbit(const long double x) { return signbit(x);}
+
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const float x) { return isfinite(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const double x) { return isfinite(x); }
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const long double x) { return isfinite(x); }
+
+#if _LIBCPP_VERSION < 8000
+__forceinline__ __host__ __device__ __cudart_builtin__ int isnan(const float x) { return isnan(x); }
+/* int isnan(double) provided by math.h */
+__forceinline__ __host__ __device__ __cudart_builtin__ int isnan(const long double x) { return isnan(x); }
+
+__forceinline__ __host__ __device__ __cudart_builtin__ int isinf(const float x) { return isinf(x); }
+/* int isinf(double) provided by math.h */
+__forceinline__ __host__ __device__ __cudart_builtin__ int isinf(const long double x) { return isinf(x); }
+#endif /* _LIBCPP_VERSION < 8000 */
+
+#endif /* defined(__CUDA_ARCH__) */
+
+#else /* !__QNX__ */
+__forceinline__ __host__ __device__ __cudart_builtin__ int signbit(const float x) { return __signbitf(x); }
+#if defined(__ICC)
+__forceinline__ __host__ __device__ __cudart_builtin__ int signbit(const double x) throw() { return __signbit(x); }
+#else /* !__ICC */
+__forceinline__ __host__ __device__ __cudart_builtin__ int signbit(const double x) { return __signbit(x); }
+#endif /* __ICC */
+__forceinline__ __host__ __device__ __cudart_builtin__ int signbit(const long double x) { return __signbitl(x);}
+
+#if defined(__ANDROID__)
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const float x) {
+#if defined(__CUDA_ARCH__)
+ return __finitef(x);
+#else /* !__CUDA_ARCH__ */
+ return __isfinitef(x);
+#endif /* __CUDA_ARCH__ */
+}
+#else /* !__ANDROID__ */
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const float x) { return __finitef(x); }
+#endif /* __ANDROID__ */
+
+#if defined(__ANDROID__)
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const double x)
+{
+#ifdef __CUDA_ARCH__
+ return __finite(x);
+#else /* !__CUDA_ARCH__ */
+ return __isfinite(x);
+#endif /* __CUDA_ARCH__ */
+}
+#elif defined(__ICC)
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const double x) throw() { return __finite(x); }
+#else
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const double x) { return __finite(x); }
+#endif /* __ANDROID__ */
+
+#if defined(__ANDROID__)
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const long double x)
+{
+#ifdef __CUDA_ARCH__
+ return __finitel(x);
+#else /* !__CUDA_ARCH__ */
+ return __isfinitel(x);
+#endif /* __CUDA_ARCH__ */
+}
+#else /* !__ANDROID__ */
+__forceinline__ __host__ __device__ __cudart_builtin__ int isfinite(const long double x) { return __finitel(x); }
+#endif /* __ANDROID__ */
+
+__forceinline__ __host__ __device__ __cudart_builtin__ int isnan(const float x) { return __isnanf(x); }
+#if defined(__ANDROID__)
+__forceinline__ __host__ __device__ __cudart_builtin__ int isnan(const double x) { return __isnan(x); }
+#else /* !__ANDROID__ */
+__forceinline__ __host__ __device__ __cudart_builtin__ int isnan(const double x) throw() { return __isnan(x); }
+#endif /* __ANDROID__ */
+__forceinline__ __host__ __device__ __cudart_builtin__ int isnan(const long double x) { return __isnanl(x); }
+
+__forceinline__ __host__ __device__ __cudart_builtin__ int isinf(const float x) { return __isinff(x); }
+#if defined(__ANDROID__)
+__forceinline__ __host__ __device__ __cudart_builtin__ int isinf(const double x) { return __isinf(x); }
+#else /* !__ANDROID__ */
+__forceinline__ __host__ __device__ __cudart_builtin__ int isinf(const double x) throw() { return __isinf(x); }
+#endif /* __ANDROID__ */
+__forceinline__ __host__ __device__ __cudart_builtin__ int isinf(const long double x) { return __isinfl(x); }
+#endif /* __QNX__ || __HORIZON__ */
+
+#endif /* ((defined _GLIBCXX_MATH_H) && _GLIBCXX_MATH_H) && (__cplusplus >= 201103L) */
+#endif /* __APPLE__ */
+
+#if defined(__arm__) && !defined(_STLPORT_VERSION) && !_GLIBCXX_USE_C99
+#if !defined(__ANDROID__) || (!defined(_LIBCPP_VERSION) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8)))
+
+#if !defined(__QNX__) && !defined(__HORIZON__)
+static __inline__ __host__ __device__ __cudart_builtin__ long long int abs(const long long int a)
+{
+ return llabs(a);
+}
+#endif /* !__QNX__ && !__HORIZON__*/
+
+#endif /* !defined(__ANDROID__) || (!defined(_LIBCPP_VERSION) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8))) */
+#endif /* __arm__ && !_STLPORT_VERSION && !_GLIBCXX_USE_C99 */
+
+#elif defined(_WIN32)
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+static __inline__ __host__ __device__ __cudart_builtin__ int signbit(const long double a)
+{
+ return __signbitl(a);
+}
+
+static __inline__ __host__ __device__ __cudart_builtin__ int signbit(const double a)
+{
+ return __signbit(a);
+}
+
+static __inline__ __host__ __device__ __cudart_builtin__ int signbit(const float a)
+{
+ return __signbitf(a);
+}
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+static __inline__ __host__ __device__ __cudart_builtin__ int isinf(const long double a)
+{
+ return __isinfl(a);
+}
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+static __inline__ __host__ __device__ __cudart_builtin__ bool isinf(const long double a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__isinfl(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isinf(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+static __inline__ __host__ __device__ __cudart_builtin__ int isinf(const double a)
+{
+ return __isinf(a);
+}
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+static __inline__ __host__ __device__ __cudart_builtin__ bool isinf(const double a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__isinf(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isinf(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+static __inline__ __host__ __device__ __cudart_builtin__ int isinf(const float a)
+{
+ return __isinff(a);
+}
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+static __inline__ __host__ __device__ bool isinf(const float a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__isinff(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isinf(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+static __inline__ __host__ __device__ __cudart_builtin__ int isnan(const long double a)
+{
+ return __isnanl(a);
+}
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+static __inline__ __host__ __device__ __cudart_builtin__ bool isnan(const long double a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__isnanl(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isnan(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+static __inline__ __host__ __device__ __cudart_builtin__ int isnan(const double a)
+{
+ return __isnan(a);
+}
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+static __inline__ __host__ __device__ __cudart_builtin__ bool isnan(const double a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__isnan(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isnan(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+static __inline__ __host__ __device__ __cudart_builtin__ int isnan(const float a)
+{
+ return __isnanf(a);
+}
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+static __inline__ __host__ __device__ __cudart_builtin__ bool isnan(const float a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__isnanf(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isnan(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+static __inline__ __host__ __device__ __cudart_builtin__ int isfinite(const long double a)
+{
+ return __finitel(a);
+}
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+static __inline__ __host__ __device__ __cudart_builtin__ bool isfinite(const long double a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__finitel(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isfinite(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+static __inline__ __host__ __device__ __cudart_builtin__ int isfinite(const double a)
+{
+ return __finite(a);
+}
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+static __inline__ __host__ __device__ __cudart_builtin__ bool isfinite(const double a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__finite(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isfinite(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+static __inline__ __host__ __device__ __cudart_builtin__ int isfinite(const float a)
+{
+ return __finitef(a);
+}
+#else /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+static __inline__ __host__ __device__ __cudart_builtin__ bool isfinite(const float a)
+{
+#if defined(__CUDA_ARCH__)
+ return (__finitef(a) != 0);
+#else /* defined(__CUDA_ARCH__) */
+ return isfinite(a);
+#endif /* defined(__CUDA_ARCH__) */
+}
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#endif /* __CUDACC_RTC__ */
+
+#if defined(__CUDACC_RTC__)
+#define __MATH_FUNCTIONS_DECL__ __host__ __device__
+#define __MATH_FUNCTIONS_DEVICE_DECL__ __device__
+#else /* __CUDACC_RTC__ */
+#define __MATH_FUNCTIONS_DECL__ static inline __host__ __device__
+#define __MATH_FUNCTIONS_DEVICE_DECL__ static inline __device__
+#endif /* __CUDACC_RTC__ */
+
+#if defined(__CUDACC_RTC__) || (!defined(_MSC_VER) || _MSC_VER < 1800)
+#if defined(__QNX__) && defined(_LIBCPP_VERSION)
+_LIBCPP_BEGIN_NAMESPACE_STD
+#endif /* __QNX__ && _LIBCPP_VERSION */
+#if !defined(__QNX__) && !(defined(_LIBCPP_VERSION) && _LIBCPP_VERSION >= 3800)
+#if !(((defined _GLIBCXX_MATH_H) && _GLIBCXX_MATH_H) && (__cplusplus >= 201103L))
+__MATH_FUNCTIONS_DECL__ float logb(const float a)
+{
+ return logbf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ int ilogb(const float a)
+{
+ return ilogbf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float scalbn(const float a, const int b)
+{
+ return scalbnf(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ float scalbln(const float a, const long int b)
+{
+ return scalblnf(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ float exp2(const float a)
+{
+ return exp2f(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float expm1(const float a)
+{
+ return expm1f(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float log2(const float a)
+{
+ return log2f(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float log1p(const float a)
+{
+ return log1pf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float acosh(const float a)
+{
+ return acoshf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float asinh(const float a)
+{
+ return asinhf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float atanh(const float a)
+{
+ return atanhf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float hypot(const float a, const float b)
+{
+ return hypotf(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ float cbrt(const float a)
+{
+ return cbrtf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float erf(const float a)
+{
+ return erff(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float erfc(const float a)
+{
+ return erfcf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float lgamma(const float a)
+{
+ return lgammaf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float tgamma(const float a)
+{
+ return tgammaf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float copysign(const float a, const float b)
+{
+ return copysignf(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ float nextafter(const float a, const float b)
+{
+ return nextafterf(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ float remainder(const float a, const float b)
+{
+ return remainderf(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ float remquo(const float a, const float b, int *quo)
+{
+ return remquof(a, b, quo);
+}
+
+__MATH_FUNCTIONS_DECL__ float round(const float a)
+{
+ return roundf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ long int lround(const float a)
+{
+ return lroundf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ long long int llround(const float a)
+{
+ return llroundf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float trunc(const float a)
+{
+ return truncf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float rint(const float a)
+{
+ return rintf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ long int lrint(const float a)
+{
+ return lrintf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ long long int llrint(const float a)
+{
+ return llrintf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float nearbyint(const float a)
+{
+ return nearbyintf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float fdim(const float a, const float b)
+{
+ return fdimf(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ float fma(const float a, const float b, const float c)
+{
+ return fmaf(a, b, c);
+}
+
+__MATH_FUNCTIONS_DECL__ float fmax(const float a, const float b)
+{
+ return fmaxf(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ float fmin(const float a, const float b)
+{
+ return fminf(a, b);
+}
+#endif /* !(((defined _GLIBCXX_MATH_H) && _GLIBCXX_MATH_H) && (__cplusplus >= 201103L)) */
+#endif /* !(!defined(__QNX__) && !(defined(_LIBCPP_VERSION) && _LIBCPP_VERSION >= 3800)) */
+#if defined(__QNX__) && defined(_LIBCPP_VERSION)
+_LIBCPP_END_NAMESPACE_STD
+#endif
+#endif /* __CUDACC_RTC__ || (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+__MATH_FUNCTIONS_DECL__ float exp10(const float a)
+{
+ return exp10f(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float rsqrt(const float a)
+{
+ return rsqrtf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float rcbrt(const float a)
+{
+ return rcbrtf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float sinpi(const float a)
+{
+ return sinpif(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float cospi(const float a)
+{
+ return cospif(a);
+}
+
+__MATH_FUNCTIONS_DECL__ void sincospi(const float a, float *const sptr, float *const cptr)
+{
+ sincospif(a, sptr, cptr);
+}
+
+__MATH_FUNCTIONS_DECL__ void sincos(const float a, float *const sptr, float *const cptr)
+{
+ sincosf(a, sptr, cptr);
+}
+
+__MATH_FUNCTIONS_DECL__ float j0(const float a)
+{
+ return j0f(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float j1(const float a)
+{
+ return j1f(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float jn(const int n, const float a)
+{
+ return jnf(n, a);
+}
+
+__MATH_FUNCTIONS_DECL__ float y0(const float a)
+{
+ return y0f(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float y1(const float a)
+{
+ return y1f(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float yn(const int n, const float a)
+{
+ return ynf(n, a);
+}
+
+__MATH_FUNCTIONS_DEVICE_DECL__ float cyl_bessel_i0(const float a)
+{
+ return cyl_bessel_i0f(a);
+}
+
+__MATH_FUNCTIONS_DEVICE_DECL__ float cyl_bessel_i1(const float a)
+{
+ return cyl_bessel_i1f(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float erfinv(const float a)
+{
+ return erfinvf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float erfcinv(const float a)
+{
+ return erfcinvf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float normcdfinv(const float a)
+{
+ return normcdfinvf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float normcdf(const float a)
+{
+ return normcdff(a);
+}
+
+__MATH_FUNCTIONS_DECL__ float erfcx(const float a)
+{
+ return erfcxf(a);
+}
+
+__MATH_FUNCTIONS_DECL__ double copysign(const double a, const float b)
+{
+ return copysign(a, static_cast(b));
+}
+
+__MATH_FUNCTIONS_DECL__ double copysign(const float a, const double b)
+{
+ return copysign(static_cast(a), b);
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned int min(const unsigned int a, const unsigned int b)
+{
+ return umin(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned int min(const int a, const unsigned int b)
+{
+ return umin(static_cast(a), b);
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned int min(const unsigned int a, const int b)
+{
+ return umin(a, static_cast(b));
+}
+
+__MATH_FUNCTIONS_DECL__ long int min(const long int a, const long int b)
+{
+ long int retval;
+ /* Suppress VS warning: warning C4127: conditional expression is constant */
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (push)
+#pragma warning (disable: 4127)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ /* long can be of 32-bit type on some systems. */
+ if (sizeof(long int) == sizeof(int)) {
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (pop)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ retval = static_cast(min(static_cast(a), static_cast(b)));
+ } else {
+ retval = static_cast(llmin(static_cast(a), static_cast(b)));
+ }
+ return retval;
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned long int min(const unsigned long int a, const unsigned long int b)
+{
+ unsigned long int retval;
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (push)
+#pragma warning (disable: 4127)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ if (sizeof(unsigned long int) == sizeof(unsigned int)) {
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (pop)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ retval = static_cast(umin(static_cast(a), static_cast(b)));
+ } else {
+ retval = static_cast(ullmin(static_cast(a), static_cast(b)));
+ }
+ return retval;
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned long int min(const long int a, const unsigned long int b)
+{
+ unsigned long int retval;
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (push)
+#pragma warning (disable: 4127)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ if (sizeof(unsigned long int) == sizeof(unsigned int)) {
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (pop)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ retval = static_cast(umin(static_cast(a), static_cast(b)));
+ } else {
+ retval = static_cast(ullmin(static_cast(a), static_cast(b)));
+ }
+ return retval;
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned long int min(const unsigned long int a, const long int b)
+{
+ unsigned long int retval;
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (push)
+#pragma warning (disable: 4127)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ if (sizeof(unsigned long int) == sizeof(unsigned int)) {
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (pop)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ retval = static_cast(umin(static_cast(a), static_cast(b)));
+ } else {
+ retval = static_cast(ullmin(static_cast(a), static_cast(b)));
+ }
+ return retval;
+}
+
+__MATH_FUNCTIONS_DECL__ long long int min(const long long int a, const long long int b)
+{
+ return llmin(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned long long int min(const unsigned long long int a, const unsigned long long int b)
+{
+ return ullmin(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned long long int min(const long long int a, const unsigned long long int b)
+{
+ return ullmin(static_cast(a), b);
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned long long int min(const unsigned long long int a, const long long int b)
+{
+ return ullmin(a, static_cast(b));
+}
+
+__MATH_FUNCTIONS_DECL__ float min(const float a, const float b)
+{
+ return fminf(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ double min(const double a, const double b)
+{
+ return fmin(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ double min(const float a, const double b)
+{
+ return fmin(static_cast(a), b);
+}
+
+__MATH_FUNCTIONS_DECL__ double min(const double a, const float b)
+{
+ return fmin(a, static_cast(b));
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned int max(const unsigned int a, const unsigned int b)
+{
+ return umax(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned int max(const int a, const unsigned int b)
+{
+ return umax(static_cast(a), b);
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned int max(const unsigned int a, const int b)
+{
+ return umax(a, static_cast(b));
+}
+
+__MATH_FUNCTIONS_DECL__ long int max(const long int a, const long int b)
+{
+ long int retval;
+ /* long can be of 32-bit type on some systems. */
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (push)
+#pragma warning (disable: 4127)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ if (sizeof(long int) == sizeof(int)) {
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (pop)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ retval = static_cast(max(static_cast(a), static_cast(b)));
+ } else {
+ retval = static_cast(llmax(static_cast(a), static_cast(b)));
+ }
+ return retval;
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned long int max(const unsigned long int a, const unsigned long int b)
+{
+ unsigned long int retval;
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (push)
+#pragma warning (disable: 4127)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ if (sizeof(unsigned long int) == sizeof(unsigned int)) {
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (pop)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ retval = static_cast(umax(static_cast(a), static_cast(b)));
+ } else {
+ retval = static_cast(ullmax(static_cast(a), static_cast(b)));
+ }
+ return retval;
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned long int max(const long int a, const unsigned long int b)
+{
+ unsigned long int retval;
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (push)
+#pragma warning (disable: 4127)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ if (sizeof(unsigned long int) == sizeof(unsigned int)) {
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (pop)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ retval = static_cast(umax(static_cast(a), static_cast(b)));
+ } else {
+ retval = static_cast(ullmax(static_cast(a), static_cast(b)));
+ }
+ return retval;
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned long int max(const unsigned long int a, const long int b)
+{
+ unsigned long int retval;
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (push)
+#pragma warning (disable: 4127)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ if (sizeof(unsigned long int) == sizeof(unsigned int)) {
+#if defined(_MSC_VER) && !defined(__CUDA_ARCH__)
+#pragma warning (pop)
+#endif /* _MSC_VER && !defined(__CUDA_ARCH__) */
+ retval = static_cast(umax(static_cast(a), static_cast(b)));
+ } else {
+ retval = static_cast(ullmax(static_cast(a), static_cast(b)));
+ }
+ return retval;
+}
+
+__MATH_FUNCTIONS_DECL__ long long int max(const long long int a, const long long int b)
+{
+ return llmax(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned long long int max(const unsigned long long int a, const unsigned long long int b)
+{
+ return ullmax(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned long long int max(const long long int a, const unsigned long long int b)
+{
+ return ullmax(static_cast(a), b);
+}
+
+__MATH_FUNCTIONS_DECL__ unsigned long long int max(const unsigned long long int a, const long long int b)
+{
+ return ullmax(a, static_cast(b));
+}
+
+__MATH_FUNCTIONS_DECL__ float max(const float a, const float b)
+{
+ return fmaxf(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ double max(const double a, const double b)
+{
+ return fmax(a, b);
+}
+
+__MATH_FUNCTIONS_DECL__ double max(const float a, const double b)
+{
+ return fmax(static_cast(a), b);
+}
+
+__MATH_FUNCTIONS_DECL__ double max(const double a, const float b)
+{
+ return fmax(a, static_cast(b));
+}
+
+
+#if !defined(__CUDA_ARCH__)
+#if defined(_WIN32)
+#define __HELPER_FUNC_LINKAGE static inline __host__ __device__
+#pragma warning (push)
+#pragma warning (disable : 4211)
+#else /* !defined(_WIN32) */
+#define __HELPER_FUNC_LINKAGE inline __host__ __device__
+#endif /* defined(_WIN32) */
+
+__HELPER_FUNC_LINKAGE int min(const int a, const int b)
+{
+ return (a < b) ? a : b;
+}
+
+__HELPER_FUNC_LINKAGE unsigned int umin(const unsigned int a, const unsigned int b)
+{
+ return (a < b) ? a : b;
+}
+
+__HELPER_FUNC_LINKAGE long long int llmin(const long long int a, const long long int b)
+{
+ return (a < b) ? a : b;
+}
+
+__HELPER_FUNC_LINKAGE unsigned long long int ullmin(const unsigned long long int a,
+ const unsigned long long int b)
+{
+ return (a < b) ? a : b;
+}
+
+__HELPER_FUNC_LINKAGE int max(const int a, const int b)
+{
+ return (a > b) ? a : b;
+}
+
+__HELPER_FUNC_LINKAGE unsigned int umax(const unsigned int a, const unsigned int b)
+{
+ return (a > b) ? a : b;
+}
+
+__HELPER_FUNC_LINKAGE long long int llmax(const long long int a, const long long int b)
+{
+ return (a > b) ? a : b;
+}
+
+__HELPER_FUNC_LINKAGE unsigned long long int ullmax(const unsigned long long int a,
+ const unsigned long long int b)
+{
+ return (a > b) ? a : b;
+}
+
+#if defined(_WIN32)
+#pragma warning (pop)
+#endif /* defined(_WIN32) */
+
+#undef __HELPER_FUNC_LINKAGE
+
+#endif /* !defined(__CUDA_ARCH__) */
+
+#undef __MATH_FUNCTIONS_DECL__
+#undef __MATH_FUNCTIONS_DEVICE_DECL__
+
+/*******************************************************************************
+* *
+* *
+* *
+*******************************************************************************/
+
+#endif /* __cplusplus && __CUDACC__ */
+#if !defined(__CUDACC__)
+
+#include "host_defines.h"
+#include "math_constants.h"
+
+#define __cuda_INT_MAX \
+ ((int)((unsigned int)-1 >> 1))
+
+/*******************************************************************************
+* *
+* ONLY FOR HOST CODE! NOT FOR DEVICE EXECUTION *
+* *
+*******************************************************************************/
+
+#include
+
+#if defined(_WIN32)
+#pragma warning (push)
+#pragma warning (disable : 4211)
+
+#endif /* _WIN32 */
+
+#if defined(_WIN32) || defined(__APPLE__) || defined (__ANDROID__) || defined(__QNX__)
+
+__func__(int __isnan(const double a))
+{
+ unsigned long long int l;
+ memcpy(&l, &a, sizeof(double));
+ return (l << 1ULL) > 0xffe0000000000000ULL;
+}
+
+#endif /* _WIN32 || __APPLE__ || __ANDROID__ || __QNX__ */
+
+#if defined(_WIN32) || defined(__APPLE__) || defined(__QNX__)
+
+/*******************************************************************************
+* *
+* HOST IMPLEMENTATION FOR DOUBLE ROUTINES FOR WINDOWS & APPLE PLATFORMS *
+* *
+*******************************************************************************/
+
+__func__(double exp10(const double a))
+{
+ return pow(10.0, a);
+}
+
+__func__(float exp10f(const float a))
+{
+ return static_cast(exp10(static_cast(a)));
+}
+
+__func__(void sincos(const double a, double *sptr, double *cptr))
+{
+ *sptr = sin(a);
+ *cptr = cos(a);
+}
+
+__func__(void sincosf(const float a, float *sptr, float *cptr))
+{
+ double s, c;
+
+ sincos(static_cast(a), &s, &c);
+ *sptr = static_cast(s);
+ *cptr = static_cast(c);
+}
+
+__func__(int __isinf(const double a))
+{
+ unsigned long long int l;
+ memcpy(&l, &a, sizeof(double));
+ return (l << 1ULL) == 0xffe0000000000000ULL;
+}
+
+#endif /* _WIN32 || __APPLE__ */
+
+#if defined(_WIN32) || defined (__ANDROID__)
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+__func__(double log2(const double a))
+{
+ return log(a) * 1.44269504088896340;
+}
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#endif /* _WIN32 || __ANDROID__ */
+
+#if defined(_WIN32)
+
+/*******************************************************************************
+* *
+* HOST IMPLEMENTATION FOR DOUBLE ROUTINES FOR WINDOWS PLATFORM *
+* *
+*******************************************************************************/
+
+__func__(int __signbit(double a))
+{
+ signed long long int l;
+ memcpy(&l, &a, sizeof(double));
+ return l < 0LL;
+}
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+__func__(double copysign(double a, double b))
+{
+ unsigned long long int la, lb;
+ memcpy(&la, &a, sizeof(double));
+ memcpy(&lb, &b, sizeof(double));
+ la = (la & 0x7fffffffffffffffULL) | (lb & 0x8000000000000000ULL);
+ memcpy(&a, &la, sizeof(double));
+ return a;
+}
+#endif /* MSC_VER < 1800 */
+
+__func__(int __finite(double a))
+{
+ unsigned long long int l;
+ memcpy(&l, &a, sizeof(double));
+ return (l << 1ULL) < 0xffe0000000000000ULL;
+}
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+__func__(double fmax(double a, double b))
+{
+ if (__isnan(a) && __isnan(b)) return a + b;
+ if (__isnan(a)) return b;
+ if (__isnan(b)) return a;
+ if ((a == 0.0) && (b == 0.0) && __signbit(b)) return a;
+ return a > b ? a : b;
+}
+
+__func__(double fmin(double a, double b))
+{
+ if (__isnan(a) && __isnan(b)) return a + b;
+ if (__isnan(a)) return b;
+ if (__isnan(b)) return a;
+ if ((a == 0.0) && (b == 0.0) && __signbit(a)) return a;
+ return a < b ? a : b;
+}
+
+__func__(double trunc(double a))
+{
+ return a < 0.0 ? ceil(a) : floor(a);
+}
+
+__func__(double round(double a))
+{
+ double fa = fabs(a);
+
+ if (fa > CUDART_TWO_TO_52) {
+ return a;
+ } else {
+ double u = floor(fa + 0.5);
+ if (fa < 0.5) u = 0;
+ u = copysign (u, a);
+ return u;
+ }
+}
+
+__func__(long int lround(double a))
+{
+ return static_cast(round(a));
+}
+
+__func__(long long int llround(double a))
+{
+ return static_cast(round(a));
+}
+
+__func__(double rint(double a))
+{
+ double fa = fabs(a);
+ double u = CUDART_TWO_TO_52 + fa;
+ if (fa >= CUDART_TWO_TO_52) {
+ u = a;
+ } else {
+ u = u - CUDART_TWO_TO_52;
+ u = copysign (u, a);
+ }
+ return u;
+}
+
+__func__(double nearbyint(double a))
+{
+ return rint(a);
+}
+
+__func__(long int lrint(double a))
+{
+ return static_cast(rint(a));
+}
+
+__func__(long long int llrint(double a))
+{
+ return static_cast(rint(a));
+}
+
+__func__(double fdim(double a, double b))
+{
+ if (a > b) {
+ return (a - b);
+ } else if (a <= b) {
+ return 0.0;
+ } else if (__isnan(a)) {
+ return a;
+ } else {
+ return b;
+ }
+}
+
+__func__(double scalbn(double a, int b))
+{
+ return ldexp(a, b);
+}
+
+__func__(double scalbln(double a, long int b))
+{
+ int t;
+
+ if (b > 2147483647L) {
+ t = 2147483647;
+ } else if (b < (-2147483647 - 1)) {
+ t = (-2147483647 - 1);
+ } else {
+ t = static_cast(b);
+ }
+ return scalbn(a, t);
+}
+
+__func__(double exp2(double a))
+{
+ return pow(2.0, a);
+}
+
+/*
+ * The following is based on: David Goldberg, "What every computer scientist
+ * should know about floating-point arithmetic", ACM Computing Surveys, Volume
+ * 23, Issue 1, March 1991.
+ */
+__func__(double log1p(double a))
+{
+ volatile double u, m;
+
+ u = 1.0 + a;
+ if (u == 1.0) {
+ /* a very close to zero */
+ u = a;
+ } else {
+ m = u - 1.0;
+ u = log(u);
+ if (a < 1.0) {
+ /* a somewhat close to zero */
+ u = a * u;
+ u = u / m;
+ }
+ }
+ return u;
+}
+
+/*
+ * This code based on: http://www.cs.berkeley.edu/~wkahan/Math128/Sumnfp.pdf
+ */
+__func__(double expm1(double a))
+{
+ volatile double u, m;
+
+ u = exp(a);
+ m = u - 1.0;
+ if (m == 0.0) {
+ /* a very close zero */
+ m = a;
+ }
+ else if (fabs(a) < 1.0) {
+ /* a somewhat close zero */
+ u = log(u);
+ m = m * a;
+ m = m / u;
+ }
+ return m;
+}
+
+__func__(double cbrt(double a))
+{
+ double s, t;
+
+ if (a == 0.0 || __isinf(a)) {
+ return a;
+ }
+ s = fabs(a);
+ t = exp2(CUDART_THIRD * log2(s)); /* initial approximation */
+ t = t - (t - (s / (t * t))) * CUDART_THIRD; /* refine approximation */
+ t = copysign(t, a);
+ return t;
+}
+
+__func__(double acosh(double a))
+{
+ double s, t;
+
+ t = a - 1.0;
+ if (t == a) {
+ return log(2.0) + log(a);
+ } else {
+ s = a + 1.0;
+ t = t + sqrt(s * t);
+ return log1p(t);
+ }
+}
+
+__func__(double asinh(double a))
+{
+ double fa, oofa, t;
+
+ fa = fabs(a);
+ if (fa > 1e18) {
+ t = log(2.0) + log(fa);
+ } else {
+ oofa = 1.0 / fa;
+ t = fa + fa / (oofa + sqrt(1.0 + oofa * oofa));
+ t = log1p(t);
+ }
+ t = copysign(t, a);
+ return t;
+}
+
+__func__(double atanh(double a))
+{
+ double fa, t;
+
+ if (__isnan(a)) {
+ return a + a;
+ }
+ fa = fabs(a);
+ t = (2.0 * fa) / (1.0 - fa);
+ t = 0.5 * log1p(t);
+ if (__isnan(t) || !__signbit(a)) {
+ return t;
+ }
+ return -t;
+}
+
+__func__(int ilogb(double a))
+{
+ unsigned long long int i;
+ int expo = -1022;
+
+ if (__isnan(a)) return -__cuda_INT_MAX-1;
+ if (__isinf(a)) return __cuda_INT_MAX;
+ memcpy(&i, &a, sizeof(double));
+ i = i & 0x7fffffffffffffffULL;
+ if (i == 0) return -__cuda_INT_MAX-1;
+ if (i >= 0x0010000000000000ULL) {
+ return (int)(((i >> 52ULL) & 0x7ffU) - 1023);
+ }
+ while (i < 0x0010000000000000ULL) {
+ expo--;
+ i <<= 1;
+ }
+ return expo;
+}
+
+__func__(double logb(double a))
+{
+ unsigned long long int i;
+ int expo = -1022;
+
+ if (__isnan(a)) return a + a;
+ if (__isinf(a)) return fabs(a);
+ memcpy(&i, &a, sizeof(double));
+ i = i & 0x7fffffffffffffffULL;
+ if (i == 0) return -1.0/fabs(a);
+ if (i >= 0x0010000000000000ULL) {
+ return (double)((int)((i >> 52ULL) & 0x7ffU) - 1023);
+ }
+ while (i < 0x0010000000000000ULL) {
+ expo--;
+ i <<= 1;
+ }
+ return static_cast(expo);
+}
+
+__func__(double remquo(double a, double b, int *quo))
+{
+ unsigned long long int aa, bb;
+ int rem1 = 1; /* do FPREM1, a.k.a IEEE remainder */
+ int expo_a;
+ int expo_b;
+ unsigned long long mant_a;
+ unsigned long long mant_b;
+ unsigned long long mant_c;
+ unsigned long long temp;
+ int sign_a;
+ int sign_b;
+ int sign_c;
+ int expo_c;
+ int expodiff;
+ int quot = 0; /* initialize quotient */
+ int l;
+ int iter;
+
+ memcpy(&aa, &a, sizeof(double));
+ mant_a = (aa << 11ULL) | 0x8000000000000000ULL;
+ expo_a = (int)((aa >> 52ULL) & 0x7ffU) - 1023;
+ sign_a = (int)(aa >> 63ULL);
+
+ memcpy(&bb, &b, sizeof(double));
+ mant_b = (bb << 11ULL) | 0x8000000000000000ULL;
+ expo_b = (int)((bb >> 52ULL) & 0x7ffU) - 1023;
+ sign_b = (int)(bb >> 63ULL);
+
+ sign_c = sign_a; /* remainder has sign of dividend */
+ expo_c = expo_a; /* default */
+
+ /* handled NaNs and infinities */
+ if (__isnan(a) || __isnan(b)) {
+ *quo = quot;
+ return a + b;
+ }
+ if (__isinf(a) || (b == 0.0)) {
+ *quo = quot;
+ aa = 0xfff8000000000000ULL;
+ memcpy(&a, &aa, sizeof(double));
+ return a;
+ }
+ if ((a == 0.0) || (__isinf(b))) {
+ *quo = quot;
+ return a;
+ }
+ /* normalize denormals */
+ if (expo_a < -1022) {
+ mant_a = mant_a + mant_a;
+ while (mant_a < 0x8000000000000000ULL) {
+ mant_a = mant_a + mant_a;
+ expo_a--;
+ }
+ }
+ if (expo_b < -1022) {
+ mant_b = mant_b + mant_b;
+ while (mant_b < 0x8000000000000000ULL) {
+ mant_b = mant_b + mant_b;
+ expo_b--;
+ }
+ }
+ expodiff = expo_a - expo_b;
+ /* clamp iterations if exponent difference negative */
+ if (expodiff < 0) {
+ iter = -1;
+ } else {
+ iter = expodiff;
+ }
+ /* Shift dividend and divisor right by one bit to prevent overflow
+ during the division algorithm.
+ */
+ mant_a = mant_a >> 1ULL;
+ mant_b = mant_b >> 1ULL;
+ expo_c = expo_a - iter; /* default exponent of result */
+
+ /* Use binary longhand division (restoring) */
+ for (l = 0; l < (iter + 1); l++) {
+ mant_a = mant_a - mant_b;
+ if (mant_a & 0x8000000000000000ULL) {
+ mant_a = mant_a + mant_b;
+ quot = quot + quot;
+ } else {
+ quot = quot + quot + 1;
+ }
+ mant_a = mant_a + mant_a;
+ }
+
+ /* Save current remainder */
+ mant_c = mant_a;
+ /* If remainder's mantissa is all zeroes, final result is zero. */
+ if (mant_c == 0) {
+ quot = quot & 7;
+ *quo = (sign_a ^ sign_b) ? -quot : quot;
+ aa = static_cast(sign_c) << 63ULL;
+ memcpy(&a, &aa, sizeof(double));
+ return a;
+ }
+ /* Normalize result */
+ while (!(mant_c & 0x8000000000000000ULL)) {
+ mant_c = mant_c + mant_c;
+ expo_c--;
+ }
+ /* For IEEE remainder (quotient rounded to nearest-even we might need to
+ do a final subtraction of the divisor from the remainder.
+ */
+ if (rem1 && ((expodiff+1) >= 0)) {
+ temp = mant_a - mant_b;
+ /* round quotient to nearest even */
+ if (((temp != 0ULL) && (!(temp & 0x8000000000000000ULL))) ||
+ ((temp == 0ULL) && (quot & 1))) {
+ mant_a = mant_a >> 1ULL;
+ quot++;
+ /* Since the divisor is greater than the remainder, the result will
+ have opposite sign of the dividend. To avoid a negative mantissa
+ when subtracting the divisor from remainder, reverse subtraction
+ */
+ sign_c = 1 ^ sign_c;
+ expo_c = expo_a - iter + 1;
+ mant_c = mant_b - mant_a;
+ /* normalize result */
+ while (!(mant_c & 0x8000000000000000ULL)) {
+ mant_c = mant_c + mant_c;
+ expo_c--;
+ }
+ }
+ }
+ /* package up result */
+ if (expo_c >= -1022) { /* normal */
+ mant_c = ((mant_c >> 11ULL) +
+ (((static_cast(sign_c)) << 63ULL) +
+ (((unsigned long long)(expo_c + 1022)) << 52ULL)));
+ } else { /* denormal */
+ mant_c = (((static_cast(sign_c)) << 63ULL) +
+ (mant_c >> (unsigned long long)(11 - expo_c - 1022)));
+ }
+ quot = quot & 7; /* mask quotient down to least significant three bits */
+ *quo = (sign_a ^ sign_b) ? -quot : quot;
+ memcpy(&a, &mant_c, sizeof(double));
+ return a;
+}
+
+__func__(double remainder(double a, double b))
+{
+ int quo;
+ return remquo (a, b, &quo);
+}
+
+__func__(double fma (double a, double b, double c))
+{
+ struct {
+ unsigned int lo;
+ unsigned int hi;
+ } xx, yy, zz, ww;
+ double d;
+ unsigned int s, t, u, prod0, prod1, prod2, prod3, expo_x, expo_y, expo_z;
+
+ memcpy(&xx, &a, sizeof(double));
+ memcpy(&yy, &b, sizeof(double));
+ memcpy(&zz, &c, sizeof(double));
+
+ expo_z = 0x7FFU;
+ t = xx.hi >> 20;
+ expo_x = expo_z & t;
+ expo_x = expo_x - 1; /* expo(x) - 1 */
+ t = yy.hi >> 20;
+ expo_y = expo_z & t;
+ expo_y = expo_y - 1; /* expo(y) - 1 */
+ t = zz.hi >> 20;
+ expo_z = expo_z & t;
+ expo_z = expo_z - 1; /* expo(z) - 1 */
+
+ if (!((expo_x <= 0x7FDU) &&
+ (expo_y <= 0x7FDU) &&
+ (expo_z <= 0x7FDU))) {
+
+ /* fma (nan, y, z) --> nan
+ fma (x, nan, z) --> nan
+ fma (x, y, nan) --> nan
+ */
+ if (((yy.hi << 1) | (yy.lo != 0)) > 0xffe00000U) {
+ yy.hi |= 0x00080000U;
+ memcpy(&d, &yy, sizeof(double));
+ return d;
+ }
+ if (((zz.hi << 1) | (zz.lo != 0)) > 0xffe00000U) {
+ zz.hi |= 0x00080000U;
+ memcpy(&d, &zz, sizeof(double));
+ return d;
+ }
+ if (((xx.hi << 1) | (xx.lo != 0)) > 0xffe00000U) {
+ xx.hi |= 0x00080000U;
+ memcpy(&d, &xx, sizeof(double));
+ return d;
+ }
+
+ /* fma (0, inf, z) --> INDEFINITE
+ fma (inf, 0, z) --> INDEFINITE
+ fma (-inf,+y,+inf) --> INDEFINITE
+ fma (+x,-inf,+inf) --> INDEFINITE
+ fma (+inf,-y,+inf) --> INDEFINITE
+ fma (-x,+inf,+inf) --> INDEFINITE
+ fma (-inf,-y,-inf) --> INDEFINITE
+ fma (-x,-inf,-inf) --> INDEFINITE
+ fma (+inf,+y,-inf) --> INDEFINITE
+ fma (+x,+inf,-inf) --> INDEFINITE
+ */
+ if (((((xx.hi << 1) | xx.lo) == 0) &&
+ (((yy.hi << 1) | (yy.lo != 0)) == 0xffe00000U)) ||
+ ((((yy.hi << 1) | yy.lo) == 0) &&
+ (((xx.hi << 1) | (xx.lo != 0)) == 0xffe00000U))) {
+ xx.hi = 0xfff80000U;
+ xx.lo = 0x00000000U;
+ memcpy(&d, &xx, sizeof(double));
+ return d;
+ }
+ if (((zz.hi << 1) | (zz.lo != 0)) == 0xffe00000U) {
+ if ((((yy.hi << 1) | (yy.lo != 0)) == 0xffe00000U) ||
+ (((xx.hi << 1) | (xx.lo != 0)) == 0xffe00000U)) {
+ if ((int)(xx.hi ^ yy.hi ^ zz.hi) < 0) {
+ xx.hi = 0xfff80000U;
+ xx.lo = 0x00000000U;
+ memcpy(&d, &xx, sizeof(double));
+ return d;
+ }
+ }
+ }
+ /* fma (inf, y, z) --> inf
+ fma (x, inf, z) --> inf
+ fma (x, y, inf) --> inf
+ */
+ if (((xx.hi << 1) | (xx.lo != 0)) == 0xffe00000U) {
+ xx.hi = xx.hi ^ (yy.hi & 0x80000000U);
+ memcpy(&d, &xx, sizeof(double));
+ return d;
+ }
+ if (((yy.hi << 1) | (yy.lo != 0)) == 0xffe00000U) {
+ yy.hi = yy.hi ^ (xx.hi & 0x80000000U);
+ memcpy(&d, &yy, sizeof(double));
+ return d;
+ }
+ if (((zz.hi << 1) | (zz.lo != 0)) == 0xffe00000U) {
+ memcpy(&d, &zz, sizeof(double));
+ return d;
+ }
+ /* fma (+0, -y, -0) --> -0
+ fma (-0, +y, -0) --> -0
+ fma (+x, -0, -0) --> -0
+ fma (-x, +0, -0) --> -0
+ */
+ if ((zz.hi == 0x80000000U) && (zz.lo == 0)) {
+ if ((((xx.hi << 1) | xx.lo) == 0) ||
+ (((yy.hi << 1) | yy.lo) == 0)) {
+ if ((int)(xx.hi ^ yy.hi) < 0) {
+ memcpy(&d, &zz, sizeof(double));
+ return d;
+ }
+ }
+ }
+ /* fma (0, y, 0) --> +0 (-0 if round down and signs of addend differ)
+ fma (x, 0, 0) --> +0 (-0 if round down and signs of addend differ)
+ */
+ if ((((zz.hi << 1) | zz.lo) == 0) &&
+ ((((xx.hi << 1) | xx.lo) == 0) ||
+ (((yy.hi << 1) | yy.lo) == 0))) {
+ zz.hi &= 0x7fffffffU;
+ memcpy(&d, &zz, sizeof(double));
+ return d;
+ }
+
+ /* fma (0, y, z) --> z
+ fma (x, 0, z) --> z
+ */
+ if ((((xx.hi << 1) | xx.lo) == 0) ||
+ (((yy.hi << 1) | yy.lo) == 0)) {
+ memcpy(&d, &zz, sizeof(double));
+ return d;
+ }
+
+ if (expo_x == 0xffffffffU) {
+ expo_x++;
+ t = xx.hi & 0x80000000U;
+ s = xx.lo >> 21;
+ xx.lo = xx.lo << 11;
+ xx.hi = xx.hi << 11;
+ xx.hi = xx.hi | s;
+ if (!xx.hi) {
+ xx.hi = xx.lo;
+ xx.lo = 0;
+ expo_x -= 32;
+ }
+ while (static_cast(xx.hi) > 0) {
+ s = xx.lo >> 31;
+ xx.lo = xx.lo + xx.lo;
+ xx.hi = xx.hi + xx.hi;
+ xx.hi = xx.hi | s;
+ expo_x--;
+ }
+ xx.lo = (xx.lo >> 11);
+ xx.lo |= (xx.hi << 21);
+ xx.hi = (xx.hi >> 11) | t;
+ }
+ if (expo_y == 0xffffffffU) {
+ expo_y++;
+ t = yy.hi & 0x80000000U;
+ s = yy.lo >> 21;
+ yy.lo = yy.lo << 11;
+ yy.hi = yy.hi << 11;
+ yy.hi = yy.hi | s;
+ if (!yy.hi) {
+ yy.hi = yy.lo;
+ yy.lo = 0;
+ expo_y -= 32;
+ }
+ while (static_cast(yy.hi) > 0) {
+ s = yy.lo >> 31;
+ yy.lo = yy.lo + yy.lo;
+ yy.hi = yy.hi + yy.hi;
+ yy.hi = yy.hi | s;
+ expo_y--;
+ }
+ yy.lo = (yy.lo >> 11);
+ yy.lo |= (yy.hi << 21);
+ yy.hi = (yy.hi >> 11) | t;
+ }
+ if (expo_z == 0xffffffffU) {
+ expo_z++;
+ t = zz.hi & 0x80000000U;
+ s = zz.lo >> 21;
+ zz.lo = zz.lo << 11;
+ zz.hi = zz.hi << 11;
+ zz.hi = zz.hi | s;
+ if (!zz.hi) {
+ zz.hi = zz.lo;
+ zz.lo = 0;
+ expo_z -= 32;
+ }
+ while (static_cast(zz.hi) > 0) {
+ s = zz.lo >> 31;
+ zz.lo = zz.lo + zz.lo;
+ zz.hi = zz.hi + zz.hi;
+ zz.hi = zz.hi | s;
+ expo_z--;
+ }
+ zz.lo = (zz.lo >> 11);
+ zz.lo |= (zz.hi << 21);
+ zz.hi = (zz.hi >> 11) | t;
+ }
+ }
+
+ expo_x = expo_x + expo_y;
+ expo_y = xx.hi ^ yy.hi;
+ t = xx.lo >> 21;
+ xx.lo = xx.lo << 11;
+ xx.hi = xx.hi << 11;
+ xx.hi = xx.hi | t;
+ yy.hi = yy.hi & 0x000fffffU;
+ xx.hi = xx.hi | 0x80000000U; /* set mantissa hidden bit */
+ yy.hi = yy.hi | 0x00100000U; /* set mantissa hidden bit */
+
+ prod0 = xx.lo * yy.lo;
+ prod1 =(unsigned)((static_cast(xx.lo)*static_cast(yy.lo))>>32ULL);
+ prod2 = xx.hi * yy.lo;
+ prod3 = xx.lo * yy.hi;
+ prod1 += prod2;
+ t = (unsigned)(prod1 < prod2);
+ prod1 += prod3;
+ t += prod1 < prod3;
+ prod2 =(unsigned)((static_cast(xx.hi)*static_cast(yy.lo))>>32ULL);
+ prod3 =(unsigned)((static_cast(xx.lo)*static_cast(yy.hi))>>32ULL);
+ prod2 += prod3;
+ s = (unsigned)(prod2 < prod3);
+ prod3 = xx.hi * yy.hi;
+ prod2 += prod3;
+ s += prod2 < prod3;
+ prod2 += t;
+ s += prod2 < t;
+ prod3 =(unsigned)((static_cast(xx.hi)*static_cast(yy.hi))>>32ULL);
+ prod3 = prod3 + s;
+
+ yy.lo = prod0; /* mantissa */
+ yy.hi = prod1; /* mantissa */
+ xx.lo = prod2; /* mantissa */
+ xx.hi = prod3; /* mantissa */
+ expo_x = expo_x - (1023 - 2); /* expo-1 */
+ expo_y = expo_y & 0x80000000U; /* sign */
+
+ if (xx.hi < 0x00100000U) {
+ s = xx.lo >> 31;
+ s = (xx.hi << 1) + s;
+ xx.hi = s;
+ s = yy.hi >> 31;
+ s = (xx.lo << 1) + s;
+ xx.lo = s;
+ s = yy.lo >> 31;
+ s = (yy.hi << 1) + s;
+ yy.hi = s;
+ s = yy.lo << 1;
+ yy.lo = s;
+ expo_x--;
+ }
+
+ t = 0;
+ if (((zz.hi << 1) | zz.lo) != 0) { /* z is not zero */
+
+ s = zz.hi & 0x80000000U;
+
+ zz.hi &= 0x000fffffU;
+ zz.hi |= 0x00100000U;
+ ww.hi = 0;
+ ww.lo = 0;
+
+ /* compare and swap. put augend into xx:yy */
+ if (static_cast(expo_z) > static_cast(expo_x)) {
+ t = expo_z;
+ expo_z = expo_x;
+ expo_x = t;
+ t = zz.hi;
+ zz.hi = xx.hi;
+ xx.hi = t;
+ t = zz.lo;
+ zz.lo = xx.lo;
+ xx.lo = t;
+ t = ww.hi;
+ ww.hi = yy.hi;
+ yy.hi = t;
+ t = ww.lo;
+ ww.lo = yy.lo;
+ yy.lo = t;
+ t = expo_y;
+ expo_y = s;
+ s = t;
+ }
+
+ /* augend_sign = expo_y, augend_mant = xx:yy, augend_expo = expo_x */
+ /* addend_sign = s, addend_mant = zz:ww, addend_expo = expo_z */
+ expo_z = expo_x - expo_z;
+ u = expo_y ^ s;
+ if (expo_z <= 107) {
+ /* denormalize addend */
+ t = 0;
+ while (expo_z >= 32) {
+ t = ww.lo | (t != 0);
+ ww.lo = ww.hi;
+ ww.hi = zz.lo;
+ zz.lo = zz.hi;
+ zz.hi = 0;
+ expo_z -= 32;
+ }
+ if (expo_z) {
+ t = (t >> expo_z) | (ww.lo << (32 - expo_z)) |
+ ((t << (32 - expo_z)) != 0);
+ ww.lo = (ww.lo >> expo_z) | (ww.hi << (32 - expo_z));
+ ww.hi = (ww.hi >> expo_z) | (zz.lo << (32 - expo_z));
+ zz.lo = (zz.lo >> expo_z) | (zz.hi << (32 - expo_z));
+ zz.hi = (zz.hi >> expo_z);
+ }
+ } else {
+ t = 1;
+ ww.lo = 0;
+ ww.hi = 0;
+ zz.lo = 0;
+ zz.hi = 0;
+ }
+ if (static_cast(u) < 0) {
+ /* signs differ, effective subtraction */
+ t = (unsigned)(-static_cast(t));
+ s = (unsigned)(t != 0);
+ u = yy.lo - s;
+ s = (unsigned)(u > yy.lo);
+ yy.lo = u - ww.lo;
+ s += yy.lo > u;
+ u = yy.hi - s;
+ s = (unsigned)(u > yy.hi);
+ yy.hi = u - ww.hi;
+ s += yy.hi > u;
+ u = xx.lo - s;
+ s = (unsigned)(u > xx.lo);
+ xx.lo = u - zz.lo;
+ s += xx.lo > u;
+ xx.hi = (xx.hi - zz.hi) - s;
+ if (!(xx.hi | xx.lo | yy.hi | yy.lo | t)) {
+ /* complete cancelation, return 0 */
+ memcpy(&d, &xx, sizeof(double));
+ return d;
+ }
+ if (static_cast(xx.hi) < 0) {
+ /* Oops, augend had smaller mantissa. Negate mantissa and flip
+ sign of result
+ */
+ t = ~t;
+ yy.lo = ~yy.lo;
+ yy.hi = ~yy.hi;
+ xx.lo = ~xx.lo;
+ xx.hi = ~xx.hi;
+ if (++t == 0) {
+ if (++yy.lo == 0) {
+ if (++yy.hi == 0) {
+ if (++xx.lo == 0) {
+ ++xx.hi;
+ }
+ }
+ }
+ }
+ expo_y ^= 0x80000000U;
+ }
+
+ /* normalize mantissa, if necessary */
+ while (!(xx.hi & 0x00100000U)) {
+ xx.hi = (xx.hi << 1) | (xx.lo >> 31);
+ xx.lo = (xx.lo << 1) | (yy.hi >> 31);
+ yy.hi = (yy.hi << 1) | (yy.lo >> 31);
+ yy.lo = (yy.lo << 1);
+ expo_x--;
+ }
+ } else {
+ /* signs are the same, effective addition */
+ yy.lo = yy.lo + ww.lo;
+ s = (unsigned)(yy.lo < ww.lo);
+ yy.hi = yy.hi + s;
+ u = (unsigned)(yy.hi < s);
+ yy.hi = yy.hi + ww.hi;
+ u += yy.hi < ww.hi;
+ xx.lo = xx.lo + u;
+ s = (unsigned)(xx.lo < u);
+ xx.lo = xx.lo + zz.lo;
+ s += xx.lo < zz.lo;
+ xx.hi = xx.hi + zz.hi + s;
+ if (xx.hi & 0x00200000U) {
+ t = t | (yy.lo << 31);
+ yy.lo = (yy.lo >> 1) | (yy.hi << 31);
+ yy.hi = (yy.hi >> 1) | (xx.lo << 31);
+ xx.lo = (xx.lo >> 1) | (xx.hi << 31);
+ xx.hi = ((xx.hi & 0x80000000U) | (xx.hi >> 1)) & ~0x40000000U;
+ expo_x++;
+ }
+ }
+ }
+ t = yy.lo | (t != 0);
+ t = yy.hi | (t != 0);
+
+ xx.hi |= expo_y; /* or in sign bit */
+ if (expo_x <= 0x7FDU) {
+ /* normal */
+ xx.hi = xx.hi & ~0x00100000U; /* lop off integer bit */
+ s = xx.lo & 1; /* mantissa lsb */
+ u = xx.lo;
+ xx.lo += (t == 0x80000000U) ? s : (t >> 31);
+ xx.hi += (u > xx.lo);
+ xx.hi += ((expo_x + 1) << 20);
+ memcpy(&d, &xx, sizeof(double));
+ return d;
+ } else if (static_cast(expo_x) >= 2046) {
+ /* overflow */
+ xx.hi = (xx.hi & 0x80000000U) | 0x7ff00000U;
+ xx.lo = 0;
+ memcpy(&d, &xx, sizeof(double));
+ return d;
+ }
+ /* subnormal */
+ expo_x = (unsigned)(-static_cast(expo_x));
+ if (expo_x > 54) {
+ xx.hi = xx.hi & 0x80000000U;
+ xx.lo = 0;
+ memcpy(&d, &xx, sizeof(double));
+ return d;
+ }
+ yy.hi = xx.hi & 0x80000000U; /* save sign bit */
+ xx.hi = xx.hi & ~0xffe00000U;
+ if (expo_x >= 32) {
+ t = xx.lo | (t != 0);
+ xx.lo = xx.hi;
+ xx.hi = 0;
+ expo_x -= 32;
+ }
+ if (expo_x) {
+ t = (t >> expo_x) | (xx.lo << (32 - expo_x)) | (t != 0);
+ xx.lo = (xx.lo >> expo_x) | (xx.hi << (32 - expo_x));
+ xx.hi = (xx.hi >> expo_x);
+ }
+ expo_x = xx.lo & 1;
+ u = xx.lo;
+ xx.lo += (t == 0x80000000U) ? expo_x : (t >> 31);
+ xx.hi += (u > xx.lo);
+ xx.hi |= yy.hi;
+ memcpy(&d, &xx, sizeof(double));
+ return d;
+}
+
+__func__(double nextafter(double a, double b))
+{
+ unsigned long long int ia;
+ unsigned long long int ib;
+ memcpy(&ia, &a, sizeof(double));
+ memcpy(&ib, &b, sizeof(double));
+ if (__isnan(a) || __isnan(b)) return a + b; /* NaN */
+ if (((ia | ib) << 1ULL) == 0ULL) return b;
+ if (a == 0.0) {
+ return copysign (4.9406564584124654e-324, b); /* crossover */
+ }
+ if ((a < b) && (a < 0.0)) ia--;
+ if ((a < b) && (a > 0.0)) ia++;
+ if ((a > b) && (a < 0.0)) ia++;
+ if ((a > b) && (a > 0.0)) ia--;
+ memcpy(&a, &ia, sizeof(double));
+ return a;
+}
+
+__func__(double erf(double a))
+{
+ double t, r, q;
+
+ t = fabs(a);
+ if (t >= 1.0) {
+ r = -1.28836351230756500E-019;
+ r = r * t + 1.30597472161093370E-017;
+ r = r * t - 6.33924401259620500E-016;
+ r = r * t + 1.96231865908940140E-014;
+ r = r * t - 4.35272243559990750E-013;
+ r = r * t + 7.37083927929352150E-012;
+ r = r * t - 9.91402142550461630E-011;
+ r = r * t + 1.08817017167760820E-009;
+ r = r * t - 9.93918713097634620E-009;
+ r = r * t + 7.66739923255145500E-008;
+ r = r * t - 5.05440278302806720E-007;
+ r = r * t + 2.87474157099000620E-006;
+ r = r * t - 1.42246725399722510E-005;
+ r = r * t + 6.16994555079419460E-005;
+ r = r * t - 2.36305221938908790E-004;
+ r = r * t + 8.05032844055371070E-004;
+ r = r * t - 2.45833366629108140E-003;
+ r = r * t + 6.78340988296706120E-003;
+ r = r * t - 1.70509103597554640E-002;
+ r = r * t + 3.93322852515666300E-002;
+ r = r * t - 8.37271292613764040E-002;
+ r = r * t + 1.64870423707623280E-001;
+ r = r * t - 2.99729521787681470E-001;
+ r = r * t + 4.99394435612628580E-001;
+ r = r * t - 7.52014596480123030E-001;
+ r = r * t + 9.99933138314926250E-001;
+ r = r * t - 1.12836725321102670E+000;
+ r = r * t + 9.99998988715182450E-001;
+ q = exp (-t * t);
+ r = 1.0 - r * q;
+ if (t >= 6.5) {
+ r = 1.0;
+ }
+ a = copysign (r, a);
+ } else {
+ q = a * a;
+ r = -7.77946848895991420E-010;
+ r = r * q + 1.37109803980285950E-008;
+ r = r * q - 1.62063137584932240E-007;
+ r = r * q + 1.64471315712790040E-006;
+ r = r * q - 1.49247123020098620E-005;
+ r = r * q + 1.20552935769006260E-004;
+ r = r * q - 8.54832592931448980E-004;
+ r = r * q + 5.22397760611847340E-003;
+ r = r * q - 2.68661706431114690E-002;
+ r = r * q + 1.12837916709441850E-001;
+ r = r * q - 3.76126389031835210E-001;
+ r = r * q + 1.12837916709551260E+000;
+ a = r * a;
+ }
+ return a;
+}
+
+__func__(double erfc(double a))
+{
+ double p, q, h, l;
+
+ if (a < 0.75) {
+ return 1.0 - erf(a);
+ }
+ if (a > 27.3) {
+ return 0.0;
+ }
+ if (a < 5.0) {
+ double t;
+ t = 1.0 / a;
+ p = 1.9759923722227928E-008;
+ p = p * t - 1.0000002670474897E+000;
+ p = p * t - 7.4935303236347828E-001;
+ p = p * t - 1.5648136328071860E-001;
+ p = p * t + 1.2871196242447239E-001;
+ p = p * t + 1.1126459974811195E-001;
+ p = p * t + 4.0678642255914332E-002;
+ p = p * t + 7.9915414156678296E-003;
+ p = p * t + 7.1458332107840234E-004;
+ q = t + 2.7493547525030619E+000;
+ q = q * t + 3.3984254815725423E+000;
+ q = q * t + 2.4635304979947761E+000;
+ q = q * t + 1.1405284734691286E+000;
+ q = q * t + 3.4130157606195649E-001;
+ q = q * t + 6.2250967676044953E-002;
+ q = q * t + 5.5661370941268700E-003;
+ q = q * t + 1.0575248365468671E-009;
+ p = p / q;
+ p = p * t;
+ h = ((int)(a * 16.0)) * 0.0625;
+ l = (a - h) * (a + h);
+ q = exp(-h * h) * exp(-l);
+ q = q * 0.5;
+ p = p * q + q;
+ p = p * t;
+ } else {
+ double ooa, ooasq;
+
+ ooa = 1.0 / a;
+ ooasq = ooa * ooa;
+ p = -4.0025406686930527E+005;
+ p = p * ooasq + 1.4420582543942123E+005;
+ p = p * ooasq - 2.7664185780951841E+004;
+ p = p * ooasq + 4.1144611644767283E+003;
+ p = p * ooasq - 5.8706000519209351E+002;
+ p = p * ooasq + 9.1490086446323375E+001;
+ p = p * ooasq - 1.6659491387740221E+001;
+ p = p * ooasq + 3.7024804085481784E+000;
+ p = p * ooasq - 1.0578553994424316E+000;
+ p = p * ooasq + 4.2314218745087778E-001;
+ p = p * ooasq - 2.8209479177354962E-001;
+ p = p * ooasq + 5.6418958354775606E-001;
+ h = a * a;
+ h = ((int)(a * 16.0)) * 0.0625;
+ l = (a - h) * (a + h);
+ q = exp(-h * h) * exp(-l);
+ p = p * ooa;
+ p = p * q;
+ }
+ return p;
+}
+
+__func__(double lgamma(double a))
+{
+ double s;
+ double t;
+ double i;
+ double fa;
+ double sum;
+ long long int quot;
+ if (__isnan(a) || __isinf(a)) {
+ return a * a;
+ }
+ fa = fabs(a);
+ if (fa >= 3.0) {
+ if (fa >= 8.0) {
+ /* Stirling approximation; coefficients from Hart et al, "Computer
+ * Approximations", Wiley 1968. Approximation 5404.
+ */
+ s = 1.0 / fa;
+ t = s * s;
+ sum = -0.1633436431e-2;
+ sum = sum * t + 0.83645878922e-3;
+ sum = sum * t - 0.5951896861197e-3;
+ sum = sum * t + 0.793650576493454e-3;
+ sum = sum * t - 0.277777777735865004e-2;
+ sum = sum * t + 0.833333333333331018375e-1;
+ sum = sum * s + 0.918938533204672;
+ s = 0.5 * log (fa);
+ t = fa - 0.5;
+ s = s * t;
+ t = s - fa;
+ s = s + sum;
+ t = t + s;
+ } else {
+ i = fa - 3.0;
+ s = -4.02412642744125560E+003;
+ s = s * i - 2.97693796998962000E+005;
+ s = s * i - 6.38367087682528790E+006;
+ s = s * i - 5.57807214576539320E+007;
+ s = s * i - 2.24585140671479230E+008;
+ s = s * i - 4.70690608529125090E+008;
+ s = s * i - 7.62587065363263010E+008;
+ s = s * i - 9.71405112477113250E+008;
+ t = i - 1.02277248359873170E+003;
+ t = t * i - 1.34815350617954480E+005;
+ t = t * i - 4.64321188814343610E+006;
+ t = t * i - 6.48011106025542540E+007;
+ t = t * i - 4.19763847787431360E+008;
+ t = t * i - 1.25629926018000720E+009;
+ t = t * i - 1.40144133846491690E+009;
+ t = s / t;
+ t = t + i;
+ }
+ } else if (fa >= 1.5) {
+ i = fa - 2.0;
+ t = 9.84839283076310610E-009;
+ t = t * i - 6.69743850483466500E-008;
+ t = t * i + 2.16565148880011450E-007;
+ t = t * i - 4.86170275781575260E-007;
+ t = t * i + 9.77962097401114400E-007;
+ t = t * i - 2.03041287574791810E-006;
+ t = t * i + 4.36119725805364580E-006;
+ t = t * i - 9.43829310866446590E-006;
+ t = t * i + 2.05106878496644220E-005;
+ t = t * i - 4.49271383742108440E-005;
+ t = t * i + 9.94570466342226000E-005;
+ t = t * i - 2.23154589559238440E-004;
+ t = t * i + 5.09669559149637430E-004;
+ t = t * i - 1.19275392649162300E-003;
+ t = t * i + 2.89051032936815490E-003;
+ t = t * i - 7.38555102806811700E-003;
+ t = t * i + 2.05808084278121250E-002;
+ t = t * i - 6.73523010532073720E-002;
+ t = t * i + 3.22467033424113040E-001;
+ t = t * i + 4.22784335098467190E-001;
+ t = t * i;
+ } else if (fa >= 0.7) {
+ i = 1.0 - fa;
+ t = 1.17786911519331130E-002;
+ t = t * i + 3.89046747413522300E-002;
+ t = t * i + 5.90045711362049900E-002;
+ t = t * i + 6.02143305254344420E-002;
+ t = t * i + 5.61652708964839180E-002;
+ t = t * i + 5.75052755193461370E-002;
+ t = t * i + 6.21061973447320710E-002;
+ t = t * i + 6.67614724532521880E-002;
+ t = t * i + 7.14856037245421020E-002;
+ t = t * i + 7.69311251313347100E-002;
+ t = t * i + 8.33503129714946310E-002;
+ t = t * i + 9.09538288991182800E-002;
+ t = t * i + 1.00099591546322310E-001;
+ t = t * i + 1.11334278141734510E-001;
+ t = t * i + 1.25509666613462880E-001;
+ t = t * i + 1.44049896457704160E-001;
+ t = t * i + 1.69557177031481600E-001;
+ t = t * i + 2.07385551032182120E-001;
+ t = t * i + 2.70580808427600350E-001;
+ t = t * i + 4.00685634386517050E-001;
+ t = t * i + 8.22467033424113540E-001;
+ t = t * i + 5.77215664901532870E-001;
+ t = t * i;
+ } else {
+ t = -9.04051686831357990E-008;
+ t = t * fa + 7.06814224969349250E-007;
+ t = t * fa - 3.80702154637902830E-007;
+ t = t * fa - 2.12880892189316100E-005;
+ t = t * fa + 1.29108470307156190E-004;
+ t = t * fa - 2.15932815215386580E-004;
+ t = t * fa - 1.16484324388538480E-003;
+ t = t * fa + 7.21883433044470670E-003;
+ t = t * fa - 9.62194579514229560E-003;
+ t = t * fa - 4.21977386992884450E-002;
+ t = t * fa + 1.66538611813682460E-001;
+ t = t * fa - 4.20026350606819980E-002;
+ t = t * fa - 6.55878071519427450E-001;
+ t = t * fa + 5.77215664901523870E-001;
+ t = t * fa;
+ t = t * fa + fa;
+ t = -log (t);
+ }
+ if (a >= 0.0) return t;
+ if (fa < 1e-19) return -log(fa);
+ i = floor(fa);
+ if (fa == i) return 1.0 / (fa - i); /* a is an integer: return infinity */
+ i = rint (2.0 * fa);
+ quot = static_cast(i);
+ i = fa - 0.5 * i;
+ i = i * CUDART_PI;
+ if (quot & 1) {
+ i = cos(i);
+ } else {
+ i = sin(i);
+ }
+ i = fabs(i);
+ t = log(CUDART_PI / (i * fa)) - t;
+ return t;
+}
+
+__func__(unsigned long long int __internal_host_nan_kernel(const char *s))
+{
+ unsigned long long i = 0;
+ int c;
+ int ovfl = 0;
+ int invld = 0;
+ if (s && (*s == '0')) {
+ s++;
+ if ((*s == 'x') || (*s == 'X')) {
+ s++;
+ while (*s == '0') s++;
+ while (*s) {
+ if (i > 0x0fffffffffffffffULL) {
+ ovfl = 1;
+ }
+ c = (((*s) >= 'A') && ((*s) <= 'F')) ? (*s + 'a' - 'A') : (*s);
+ if ((c >= 'a') && (c <= 'f')) {
+ c = c - 'a' + 10;
+ i = i * 16 + c;
+ } else if ((c >= '0') && (c <= '9')) {
+ c = c - '0';
+ i = i * 16 + c;
+ } else {
+ invld = 1;
+ }
+ s++;
+ }
+ } else {
+ while (*s == '0') s++;
+ while (*s) {
+ if (i > 0x1fffffffffffffffULL) {
+ ovfl = 1;
+ }
+ c = *s;
+ if ((c >= '0') && (c <= '7')) {
+ c = c - '0';
+ i = i * 8 + c;
+ } else {
+ invld = 1;
+ }
+ s++;
+ }
+ }
+ } else if (s) {
+ while (*s) {
+ c = *s;
+ if ((i > 1844674407370955161ULL) ||
+ ((i == 1844674407370955161ULL) && (c > '5'))) {
+ ovfl = 1;
+ }
+ if ((c >= '0') && (c <= '9')) {
+ c = c - '0';
+ i = i * 10 + c;
+ } else {
+ invld = 1;
+ }
+ s++;
+ }
+ }
+ if (ovfl) {
+ i = ~0ULL;
+ }
+ if (invld) {
+ i = 0ULL;
+ }
+ i = (i & 0x000fffffffffffffULL) | 0x7ff8000000000000ULL;
+ return i;
+}
+
+__func__(double nan(const char *tagp))
+{
+ unsigned long long l;
+ double d;
+ l = __internal_host_nan_kernel(tagp);
+ memcpy(&d, &l, sizeof(double));
+ return d;
+}
+
+__func__(double __host_tgamma_kernel(double a))
+{
+ double t;
+ t = - 4.4268934071252475E-010;
+ t = t * a - 2.0266591846658954E-007;
+ t = t * a + 1.1381211721119527E-006;
+ t = t * a - 1.2507734816630748E-006;
+ t = t * a - 2.0136501740408771E-005;
+ t = t * a + 1.2805012607354486E-004;
+ t = t * a - 2.1524140811527418E-004;
+ t = t * a - 1.1651675459704604E-003;
+ t = t * a + 7.2189432248466381E-003;
+ t = t * a - 9.6219715326862632E-003;
+ t = t * a - 4.2197734554722394E-002;
+ t = t * a + 1.6653861138250356E-001;
+ t = t * a - 4.2002635034105444E-002;
+ t = t * a - 6.5587807152025712E-001;
+ t = t * a + 5.7721566490153287E-001;
+ t = t * a + 1.0000000000000000E+000;
+ return t;
+}
+
+__func__(double __host_stirling_poly(double a))
+{
+ double x = 1.0 / a;
+ double z = 0.0;
+ z = + 8.3949872067208726e-004;
+ z = z * x - 5.1717909082605919e-005;
+ z = z * x - 5.9216643735369393e-004;
+ z = z * x + 6.9728137583658571e-005;
+ z = z * x + 7.8403922172006662e-004;
+ z = z * x - 2.2947209362139917e-004;
+ z = z * x - 2.6813271604938273e-003;
+ z = z * x + 3.4722222222222220e-003;
+ z = z * x + 8.3333333333333329e-002;
+ z = z * x + 1.0000000000000000e+000;
+ return z;
+}
+
+__func__(double __host_tgamma_stirling(double a))
+{
+ double z;
+ double x;
+ z = __host_stirling_poly (a);
+ if (a < 142.0) {
+ x = pow (a, a - 0.5);
+ a = x * exp (-a);
+ a = a * CUDART_SQRT_2PI;
+ return a * z;
+ } else if (a < 172.0) {
+ x = pow (a, 0.5 * a - 0.25);
+ a = x * exp (-a);
+ a = a * CUDART_SQRT_2PI;
+ a = a * z;
+ return a * x;
+ } else {
+ return exp(1000.0); /* INF */
+ }
+}
+
+__func__(double tgamma(double a))
+{
+ double s, xx, x = a;
+ if (__isnan(a)) {
+ return a + a;
+ }
+ if (fabs(x) < 20.0) {
+ if (x >= 0.0) {
+ s = 1.0;
+ xx = x;
+ while (xx > 1.5) {
+ xx = xx - 1.0;
+ s = s * xx;
+ }
+ if (x >= 0.5) {
+ xx = xx - 1.0;
+ }
+ xx = __host_tgamma_kernel (xx);
+ if (x < 0.5) {
+ xx = xx * x;
+ }
+ s = s / xx;
+ } else {
+ xx = x;
+ s = xx;
+ if (x == floor(x)) {
+ return 0.0 / (x - floor(x));
+ }
+ while (xx < -0.5) {
+ xx = xx + 1.0;
+ s = s * xx;
+ }
+ xx = __host_tgamma_kernel (xx);
+ s = s * xx;
+ s = 1.0 / s;
+ }
+ return s;
+ } else {
+ if (x >= 0.0) {
+ return __host_tgamma_stirling (x);
+ } else {
+ double t;
+ int quot;
+ if (x == floor(x)) {
+ return 0.0 / (x - floor(x));
+ }
+ if (x < -185.0) {
+ int negative;
+ x = floor(x);
+ negative = ((x - (2.0 * floor(0.5 * x))) == 1.0);
+ return negative ? (-1.0 / 1e308 / 1e308) : CUDART_ZERO;
+ }
+ /* compute sin(pi*x) accurately */
+ xx = rint (2.0 * x);
+ quot = static_cast(xx);
+ xx = -0.5 * xx + x;
+ xx = xx * CUDART_PI;
+ if (quot & 1) {
+ xx = cos (xx);
+ } else {
+ xx = sin (xx);
+ }
+ if (quot & 2) {
+ xx = -xx;
+ }
+ x = fabs (x);
+ s = exp (-x);
+ t = x - 0.5;
+ if (x > 140.0) t = 0.5 * t;
+ t = pow (x, t);
+ if (x > 140.0) s = s * t;
+ s = s * __host_stirling_poly (x);
+ s = s * x;
+ s = s * xx;
+ s = 1.0 / s;
+ s = s * CUDART_SQRT_PIO2;
+ s = s / t;
+ return s;
+ }
+ }
+}
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+/*******************************************************************************
+* *
+* HOST IMPLEMENTATION FOR FLOAT AND LONG DOUBLE ROUTINES FOR WINDOWS PLATFORM *
+* MAP FLOAT AND LONG DOUBLE ROUTINES TO DOUBLE ROUTINES *
+* *
+*******************************************************************************/
+
+__func__(int __signbitl(const long double a))
+{
+ return __signbit(static_cast(a));
+}
+
+__func__(int __signbitf(const float a))
+{
+ return __signbit(static_cast(a));
+}
+
+__func__(int __finitel(const long double a))
+{
+ return __finite(static_cast(a));
+}
+
+__func__(int __finitef(const float a))
+{
+ return __finite(static_cast(a));
+}
+
+__func__(int __isinfl(const long double a))
+{
+ return __isinf(static_cast(a));
+}
+
+__func__(int __isinff(const float a))
+{
+ return __isinf(static_cast(a));
+}
+
+__func__(int __isnanl(const long double a))
+{
+ return __isnan(static_cast(a));
+}
+
+__func__(int __isnanf(const float a))
+{
+ return __isnan(static_cast(a));
+}
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+__func__(float fmaxf(const float a, const float b))
+{
+ return static_cast(fmax(static_cast(a), static_cast(b)));
+}
+
+__func__(float fminf(const float a, const float b))
+{
+ return static_cast(fmin(static_cast(a), static_cast(b)));
+}
+
+__func__(float roundf(const float a))
+{
+ return static_cast(round(static_cast(a)));
+}
+
+__func__(long int lroundf(const float a))
+{
+ return lround(static_cast(a));
+}
+
+__func__(long long int llroundf(const float a))
+{
+ return llround(static_cast(a));
+}
+
+__func__(float truncf(const float a))
+{
+ return static_cast(trunc(static_cast(a)));
+}
+
+__func__(float rintf(const float a))
+{
+ return static_cast(rint(static_cast(a)));
+}
+
+__func__(float nearbyintf(const float a))
+{
+ return static_cast(nearbyint(static_cast(a)));
+}
+
+__func__(long int lrintf(const float a))
+{
+ return lrint(static_cast(a));
+}
+
+__func__(long long int llrintf(const float a))
+{
+ return llrint(static_cast(a));
+}
+
+__func__(float logbf(const float a))
+{
+ return static_cast(logb(static_cast(a)));
+}
+
+__func__(float scalblnf(const float a, const long int b))
+{
+ return static_cast(scalbln(static_cast(a), b));
+}
+
+__func__(float log2f(const float a))
+{
+ return static_cast(log2(static_cast(a)));
+}
+
+__func__(float exp2f(const float a))
+{
+ return static_cast(exp2(static_cast(a)));
+}
+
+__func__(float acoshf(const float a))
+{
+ return static_cast(acosh(static_cast(a)));
+}
+
+__func__(float asinhf(const float a))
+{
+ return static_cast(asinh(static_cast(a)));
+}
+
+__func__(float atanhf(const float a))
+{
+ return static_cast(atanh(static_cast(a)));
+}
+
+__func__(float cbrtf(const float a))
+{
+ return static_cast(cbrt(static_cast(a)));
+}
+
+__func__(float expm1f(const float a))
+{
+ return static_cast(expm1(static_cast(a)));
+}
+
+__func__(float fdimf(const float a, const float b))
+{
+ return static_cast(fdim(static_cast(a), static_cast(b)));
+}
+
+__func__(float log1pf(const float a))
+{
+ return static_cast(log1p(static_cast(a)));
+}
+
+__func__(float scalbnf(const float a, const int b))
+{
+ return static_cast(scalbn(static_cast(a), b));
+}
+
+__func__(float fmaf(const float a, const float b, const float c))
+{
+ return static_cast(fma(static_cast(a), static_cast(b), static_cast(c)));
+}
+
+__func__(int ilogbf(const float a))
+{
+ return ilogb(static_cast(a));
+}
+
+__func__(float erff(const float a))
+{
+ return static_cast(erf(static_cast(a)));
+}
+
+__func__(float erfcf(const float a))
+{
+ return static_cast(erfc(static_cast(a)));
+}
+
+__func__(float lgammaf(const float a))
+{
+ return static_cast(lgamma(static_cast(a)));
+}
+
+__func__(float tgammaf(const float a))
+{
+ return static_cast(tgamma(static_cast(a)));
+}
+
+__func__(float remquof(const float a, const float b, int *quo))
+{
+ return static_cast(remquo(static_cast(a), static_cast(b), quo));
+}
+
+__func__(float remainderf(const float a, const float b))
+{
+ return static_cast(remainder(static_cast(a), static_cast(b)));
+}
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#if (defined _MSC_VER) && (_MSC_VER >= 1700)
+__func__(float j0f(const float a))
+{
+ return static_cast(_j0(static_cast(a)));
+}
+
+__func__(float j1f(const float a))
+{
+ return static_cast(_j1(static_cast(a)));
+}
+
+__func__(float jnf(const int n, const float a))
+{
+ return static_cast(_jn(n, static_cast(a)));
+}
+
+__func__(float y0f(const float a))
+{
+ return static_cast(_y0(static_cast(a)));
+}
+
+__func__(float y1f(const float a))
+{
+ return static_cast(_y1(static_cast(a)));
+}
+
+__func__(float ynf(const int n, const float a))
+{
+ return static_cast(_yn(n, static_cast(a)));
+}
+#endif /* (defined _MSC_VER) && (_MSC_VER >= 1700) */
+
+
+/*******************************************************************************
+* *
+* HOST IMPLEMENTATION FOR FLOAT ROUTINES FOR WINDOWS PLATFORM *
+* *
+*******************************************************************************/
+
+#if (!defined(_MSC_VER) || _MSC_VER < 1800)
+__func__(float copysignf(float a, const float b))
+{
+ unsigned int aa, bb;
+ memcpy(&aa, &a, sizeof(float));
+ memcpy(&bb, &b, sizeof(float));
+ aa = (aa & ~0x80000000U) | (bb & 0x80000000U);
+ memcpy(&a, &aa, sizeof(float));
+ return a;
+}
+
+__func__(float nextafterf(float a, const float b))
+{
+ unsigned int ia;
+ unsigned int ib;
+ memcpy(&ia, &a, sizeof(float));
+ memcpy(&ib, &b, sizeof(float));
+ if (__isnanf(a) || __isnanf(b)) return a + b; /*NaN*/
+ if (((ia | ib) << 1U) == 0U) return b;
+ if (a == 0.0F) {
+ return copysignf(1.401298464e-045F, b); /*crossover*/
+ }
+ if ((a < b) && (a < 0.0F)) ia--;
+ if ((a < b) && (a > 0.0F)) ia++;
+ if ((a > b) && (a < 0.0F)) ia++;
+ if ((a > b) && (a > 0.0F)) ia--;
+ memcpy(&a, &ia, sizeof(float));
+ return a;
+}
+
+__func__(float nanf(const char *tagp))
+{
+ float f;
+ unsigned int i;
+ i = static_cast(__internal_host_nan_kernel(tagp));
+ i = (i & 0x007fffffU) | 0x7fc00000U;
+ memcpy(&f, &i, sizeof(float));
+ return f;
+}
+
+#endif /* (!defined(_MSC_VER) || _MSC_VER < 1800) */
+
+#endif /* _WIN32 */
+
+/*******************************************************************************
+* *
+* HOST IMPLEMENTATION FOR DOUBLE AND FLOAT ROUTINES. ALL PLATFORMS *
+* *
+*******************************************************************************/
+
+__func__(double rsqrt(const double a))
+{
+ return 1.0 / sqrt(a);
+}
+
+__func__(double rcbrt(const double a))
+{
+ double s, t;
+
+ if (__isnan(a)) {
+ return a + a;
+ }
+ if (a == 0.0 || __isinf(a)) {
+ return 1.0 / a;
+ }
+ s = fabs(a);
+ t = exp2(-CUDART_THIRD * log2(s)); /* initial approximation */
+ t = ((t*t) * (-s*t) + 1.0) * (CUDART_THIRD*t) + t;/* refine approximation */
+#if defined(__APPLE__)
+ if (__signbitd(a))
+#else /* __APPLE__ */
+ if (__signbit(a))
+#endif /* __APPLE__ */
+ {
+ t = -t;
+ }
+ return t;
+}
+
+__func__(double sinpi(double a))
+{
+ int n;
+
+ if (__isnan(a)) {
+ return a + a;
+ }
+ if (a == 0.0 || __isinf(a)) {
+ return sin (a);
+ }
+ if (a == floor(a)) {
+ return ((a / 1.0e308) / 1.0e308) / 1.0e308;
+ }
+ double twoa = a + a;
+ double rtwoa = round(twoa);
+ long long int l = (long long int)rtwoa;
+ n = (int)l;
+ a -= rtwoa * 0.5;
+ a = a * CUDART_PI;
+ if (n & 1) {
+ a = cos (a);
+ } else {
+ a = sin (a);
+ }
+ if (n & 2) {
+ a = -a;
+ }
+ return a;
+}
+
+__func__(double cospi(double a))
+{
+ int n;
+
+ if (__isnan(a)) {
+ return a + a;
+ }
+ if (__isinf(a)) {
+ return cos (a);
+ }
+ if (fabs(a) > 9.0071992547409920e+015) {
+ a = 0.0;
+ }
+ double twoa = a + a;
+ double rtwoa = round(twoa);
+ long long int l = (long long int)rtwoa;
+ n = (int)l;
+ a -= rtwoa * 0.5;
+ a = a * CUDART_PI;
+ n++;
+ if (n & 1) {
+ a = cos (a);
+ } else {
+ a = sin (a);
+ }
+ if (n & 2) {
+ a = -a;
+ }
+ if (a == 0.0) {
+ a = fabs(a);
+ }
+ return a;
+}
+
+__func__(void sincospi(const double a, double *sptr, double *cptr))
+{
+ *sptr = sinpi(a);
+ *cptr = cospi(a);
+}
+
+__func__(double erfinv(const double a))
+{
+ double p, q, t, fa;
+ unsigned long long int l;
+
+ fa = fabs(a);
+ if (fa >= 1.0) {
+ l = 0xfff8000000000000ULL;
+ memcpy(&t, &l, sizeof(double)); /* INDEFINITE */
+ if (fa == 1.0) {
+ t = a * exp(1000.0); /* Infinity */
+ }
+ } else if (fa >= 0.9375) {
+ /* Based on: J.M. Blair, C.A. Edwards, J.H. Johnson: Rational Chebyshev
+ Approximations for the Inverse of the Error Function. Mathematics of
+ Computation, Vol. 30, No. 136 (Oct. 1976), pp. 827-830. Table 59
+ */
+ t = log1p(-fa);
+ t = 1.0 / sqrt(-t);
+ p = 2.7834010353747001060e-3;
+ p = p * t + 8.6030097526280260580e-1;
+ p = p * t + 2.1371214997265515515e+0;
+ p = p * t + 3.1598519601132090206e+0;
+ p = p * t + 3.5780402569085996758e+0;
+ p = p * t + 1.5335297523989890804e+0;
+ p = p * t + 3.4839207139657522572e-1;
+ p = p * t + 5.3644861147153648366e-2;
+ p = p * t + 4.3836709877126095665e-3;
+ p = p * t + 1.3858518113496718808e-4;
+ p = p * t + 1.1738352509991666680e-6;
+ q = t + 2.2859981272422905412e+0;
+ q = q * t + 4.3859045256449554654e+0;
+ q = q * t + 4.6632960348736635331e+0;
+ q = q * t + 3.9846608184671757296e+0;
+ q = q * t + 1.6068377709719017609e+0;
+ q = q * t + 3.5609087305900265560e-1;
+ q = q * t + 5.3963550303200816744e-2;
+ q = q * t + 4.3873424022706935023e-3;
+ q = q * t + 1.3858762165532246059e-4;
+ q = q * t + 1.1738313872397777529e-6;
+ t = p / (q * t);
+ if (a < 0.0) t = -t;
+ } else if (fa >= 0.75) {
+ /* Based on: J.M. Blair, C.A. Edwards, J.H. Johnson: Rational Chebyshev
+ Approximations for the Inverse of the Error Function. Mathematics of
+ Computation, Vol. 30, No. 136 (Oct. 1976), pp. 827-830. Table 39
+ */
+ t = a * a - .87890625;
+ p = .21489185007307062000e+0;
+ p = p * t - .64200071507209448655e+1;
+ p = p * t + .29631331505876308123e+2;
+ p = p * t - .47644367129787181803e+2;
+ p = p * t + .34810057749357500873e+2;
+ p = p * t - .12954198980646771502e+2;
+ p = p * t + .25349389220714893917e+1;
+ p = p * t - .24758242362823355486e+0;
+ p = p * t + .94897362808681080020e-2;
+ q = t - .12831383833953226499e+2;
+ q = q * t + .41409991778428888716e+2;
+ q = q * t - .53715373448862143349e+2;
+ q = q * t + .33880176779595142685e+2;
+ q = q * t - .11315360624238054876e+2;
+ q = q * t + .20369295047216351160e+1;
+ q = q * t - .18611650627372178511e+0;
+ q = q * t + .67544512778850945940e-2;
+ p = p / q;
+ t = a * p;
+ } else {
+ /* Based on: J.M. Blair, C.A. Edwards, J.H. Johnson: Rational Chebyshev
+ Approximations for the Inverse of the Error Function. Mathematics of
+ Computation, Vol. 30, No. 136 (Oct. 1976), pp. 827-830. Table 18
+ */
+ t = a * a - .5625;
+ p = - .23886240104308755900e+2;
+ p = p * t + .45560204272689128170e+3;
+ p = p * t - .22977467176607144887e+4;
+ p = p * t + .46631433533434331287e+4;
+ p = p * t - .43799652308386926161e+4;
+ p = p * t + .19007153590528134753e+4;
+ p = p * t - .30786872642313695280e+3;
+ q = t - .83288327901936570000e+2;
+ q = q * t + .92741319160935318800e+3;
+ q = q * t - .35088976383877264098e+4;
+ q = q * t + .59039348134843665626e+4;
+ q = q * t - .48481635430048872102e+4;
+ q = q * t + .18997769186453057810e+4;
+ q = q * t - .28386514725366621129e+3;
+ p = p / q;
+ t = a * p;
+ }
+ return t;
+}
+
+__func__(double erfcinv(const double a))
+{
+ double t;
+ unsigned long long int l;
+
+ if (__isnan(a)) {
+ return a + a;
+ }
+ if (a <= 0.0) {
+ l = 0xfff8000000000000ULL;
+ memcpy(&t, &l, sizeof(double)); /* INDEFINITE */
+ if (a == 0.0) {
+ t = (1.0 - a) * exp(1000.0); /* Infinity */
+ }
+ }
+ else if (a >= 0.0625) {
+ t = erfinv (1.0 - a);
+ }
+ else if (a >= 1e-100) {
+ /* Based on: J.M. Blair, C.A. Edwards, J.H. Johnson: Rational Chebyshev
+ Approximations for the Inverse of the Error Function. Mathematics of
+ Computation, Vol. 30, No. 136 (Oct. 1976), pp. 827-830. Table 59
+ */
+ double p, q;
+ t = log(a);
+ t = 1.0 / sqrt(-t);
+ p = 2.7834010353747001060e-3;
+ p = p * t + 8.6030097526280260580e-1;
+ p = p * t + 2.1371214997265515515e+0;
+ p = p * t + 3.1598519601132090206e+0;
+ p = p * t + 3.5780402569085996758e+0;
+ p = p * t + 1.5335297523989890804e+0;
+ p = p * t + 3.4839207139657522572e-1;
+ p = p * t + 5.3644861147153648366e-2;
+ p = p * t + 4.3836709877126095665e-3;
+ p = p * t + 1.3858518113496718808e-4;
+ p = p * t + 1.1738352509991666680e-6;
+ q = t + 2.2859981272422905412e+0;
+ q = q * t + 4.3859045256449554654e+0;
+ q = q * t + 4.6632960348736635331e+0;
+ q = q * t + 3.9846608184671757296e+0;
+ q = q * t + 1.6068377709719017609e+0;
+ q = q * t + 3.5609087305900265560e-1;
+ q = q * t + 5.3963550303200816744e-2;
+ q = q * t + 4.3873424022706935023e-3;
+ q = q * t + 1.3858762165532246059e-4;
+ q = q * t + 1.1738313872397777529e-6;
+ t = p / (q * t);
+ }
+ else {
+ /* Based on: J.M. Blair, C.A. Edwards, J.H. Johnson: Rational Chebyshev
+ Approximations for the Inverse of the Error Function. Mathematics of
+ Computation, Vol. 30, No. 136 (Oct. 1976), pp. 827-830. Table 82
+ */
+ double p, q;
+ t = log(a);
+ t = 1.0 / sqrt(-t);
+ p = 6.9952990607058154858e-1;
+ p = p * t + 1.9507620287580568829e+0;
+ p = p * t + 8.2810030904462690216e-1;
+ p = p * t + 1.1279046353630280005e-1;
+ p = p * t + 6.0537914739162189689e-3;
+ p = p * t + 1.3714329569665128933e-4;
+ p = p * t + 1.2964481560643197452e-6;
+ p = p * t + 4.6156006321345332510e-9;
+ p = p * t + 4.5344689563209398450e-12;
+ q = t + 1.5771922386662040546e+0;
+ q = q * t + 2.1238242087454993542e+0;
+ q = q * t + 8.4001814918178042919e-1;
+ q = q * t + 1.1311889334355782065e-1;
+ q = q * t + 6.0574830550097140404e-3;
+ q = q * t + 1.3715891988350205065e-4;
+ q = q * t + 1.2964671850944981713e-6;
+ q = q * t + 4.6156017600933592558e-9;
+ q = q * t + 4.5344687377088206783e-12;
+ t = p / (q * t);
+ }
+ return t;
+}
+
+__func__(double normcdfinv(const double a))
+{
+ return -1.4142135623730951 * erfcinv(a + a);
+}
+
+__func__(double normcdf(double a))
+{
+ double ah, al, t1, t2, u1, u2, v1, v2, z;
+ if (fabs (a) > 38.5) a = copysign (38.5, a);
+ ah = a * 134217729.0;
+ u1 = (a - ah) + ah;
+ u2 = a - u1;
+ v1 = -7.0710678398609161e-01;
+ v2 = 2.7995440410322203e-09;
+ t1 = a * -CUDART_SQRT_HALF_HI;
+ t2 = (((u1 * v1 - t1) + u1 * v2) + u2 * v1) + u2 * v2;
+ t2 = (a * -CUDART_SQRT_HALF_LO) + t2;
+ ah = t1 + t2;
+ z = erfc (ah);
+ if (a < -1.0) {
+ al = (t1 - ah) + t2;
+ t1 = -2.0 * ah * z;
+ z = t1 * al + z;
+ }
+ return 0.5 * z;
+}
+
+__func__(double erfcx(const double a))
+{
+ double x, t1, t2, t3;
+
+ if (__isnan(a)) {
+ return a + a;
+ }
+ x = fabs(a);
+ if (x < 32.0) {
+ /*
+ * This implementation of erfcx() is based on the algorithm in: M. M.
+ * Shepherd and J. G. Laframboise, "Chebyshev Approximation of (1 + 2x)
+ * exp(x^2)erfc x in 0 <= x < INF", Mathematics of Computation, Vol.
+ * 36, No. 153, January 1981, pp. 249-253. For the core approximation,
+ * the input domain [0,INF] is transformed via (x-k) / (x+k) where k is
+ * a precision-dependent constant. Here, we choose k = 4.0, so the input
+ * domain [0, 27.3] is transformed into the core approximation domain
+ * [-1, 0.744409].
+ */
+ /*
+ // Compute (1+2*x)*exp(x*x)*erfc(x)
+ */
+ /* t2 = (x-4.0)/(x+4.0), transforming [0,INF] to [-1,+1] */
+ t1 = x - 4.0;
+ t2 = x + 4.0;
+ t2 = t1 / t2;
+ /* approximate on [-1, 0.744409] */
+ t1 = - 3.5602694826817400E-010;
+ t1 = t1 * t2 - 9.7239122591447274E-009;
+ t1 = t1 * t2 - 8.9350224851649119E-009;
+ t1 = t1 * t2 + 1.0404430921625484E-007;
+ t1 = t1 * t2 + 5.8806698585341259E-008;
+ t1 = t1 * t2 - 8.2147414929116908E-007;
+ t1 = t1 * t2 + 3.0956409853306241E-007;
+ t1 = t1 * t2 + 5.7087871844325649E-006;
+ t1 = t1 * t2 - 1.1231787437600085E-005;
+ t1 = t1 * t2 - 2.4399558857200190E-005;
+ t1 = t1 * t2 + 1.5062557169571788E-004;
+ t1 = t1 * t2 - 1.9925637684786154E-004;
+ t1 = t1 * t2 - 7.5777429182785833E-004;
+ t1 = t1 * t2 + 5.0319698792599572E-003;
+ t1 = t1 * t2 - 1.6197733895953217E-002;
+ t1 = t1 * t2 + 3.7167515553018733E-002;
+ t1 = t1 * t2 - 6.6330365827532434E-002;
+ t1 = t1 * t2 + 9.3732834997115544E-002;
+ t1 = t1 * t2 - 1.0103906603555676E-001;
+ t1 = t1 * t2 + 6.8097054254735140E-002;
+ t1 = t1 * t2 + 1.5379652102605428E-002;
+ t1 = t1 * t2 - 1.3962111684056291E-001;
+ t1 = t1 * t2 + 1.2329951186255526E+000;
+ /*
+ // Note: (1+2*x)*exp(x*x)*erfc(x) / (1+2*x) = exp(x*x)*erfc(x)
+ */
+ t2 = 2.0 * x + 1.0;
+ t1 = t1 / t2;
+ } else {
+ /* asymptotic expansion for large aguments */
+ t2 = 1.0 / x;
+ t3 = t2 * t2;
+ t1 = -29.53125;
+ t1 = t1 * t3 + 6.5625;
+ t1 = t1 * t3 - 1.875;
+ t1 = t1 * t3 + 0.75;
+ t1 = t1 * t3 - 0.5;
+ t1 = t1 * t3 + 1.0;
+ t2 = t2 * 5.6418958354775628e-001;
+ t1 = t1 * t2;
+ }
+ if (a < 0.0) {
+ /*
+ // Note: erfcx(x) = 2*exp(x^2) - erfcx(|x|)
+ */
+ t2 = (static_cast(x * 16.0)) * 0.0625;
+ t3 = (x - t2) * (x + t2);
+ t3 = exp(t2 * t2) * exp(t3);
+ t3 = t3 + t3;
+ t1 = t3 - t1;
+ }
+ return t1;
+}
+
+__func__(float rsqrtf(const float a))
+{
+ return static_cast(rsqrt(static_cast(a)));
+}
+
+__func__(float rcbrtf(const float a))
+{
+ return static_cast(rcbrt(static_cast(a)));
+}
+
+__func__(float sinpif(const float a))
+{
+ return static_cast(sinpi(static_cast(a)));
+}
+
+__func__(float cospif(const float a))
+{
+ return static_cast(cospi(static_cast(a)));
+}
+
+__func__(void sincospif(const float a, float *sptr, float *cptr))
+{
+ double s, c;
+
+ sincospi(static_cast(a), &s, &c);
+ *sptr = static_cast