10#ifndef __CLANG_HIP_LIBDEVICE_DECLARES_H__
11#define __CLANG_HIP_LIBDEVICE_DECLARES_H__
20__device__
__attribute__((const))
float __ocml_asin_f32(
float);
21__device__
__attribute__((pure))
float __ocml_asinh_f32(
float);
23__device__
__attribute__((const))
float __ocml_atan_f32(
float);
24__device__
__attribute__((pure))
float __ocml_atanh_f32(
float);
26__device__
__attribute__((const))
float __ocml_ceil_f32(
float);
27__device__
__attribute__((const)) __device__
float __ocml_copysign_f32(
float,
31__device__
__attribute__((pure)) __device__
float __ocml_cosh_f32(
float);
36__device__
__attribute__((pure))
float __ocml_erfcinv_f32(
float);
37__device__
__attribute__((pure))
float __ocml_erfcx_f32(
float);
39__device__
__attribute__((pure))
float __ocml_erfinv_f32(
float);
40__device__
__attribute__((pure))
float __ocml_exp10_f32(
float);
41__device__
__attribute__((pure))
float __ocml_native_exp10_f32(
float);
44__device__
__attribute__((pure))
float __ocml_native_exp_f32(
float);
45__device__
__attribute__((pure))
float __ocml_expm1_f32(
float);
46__device__
__attribute__((const))
float __ocml_fabs_f32(
float);
47__device__
__attribute__((const))
float __ocml_fdim_f32(
float,
float);
48__device__
__attribute__((const))
float __ocml_floor_f32(
float);
49__device__
__attribute__((const))
float __ocml_fma_f32(
float,
float,
float);
50__device__
__attribute__((const))
float __ocml_fmax_f32(
float,
float);
51__device__
__attribute__((const))
float __ocml_fmin_f32(
float,
float);
52__device__
__attribute__((const)) __device__
float __ocml_fmod_f32(
float,
56__device__
__attribute__((const))
float __ocml_hypot_f32(
float,
float);
58__device__
__attribute__((const))
int __ocml_isfinite_f32(
float);
65__device__
__attribute__((pure))
float __ocml_log10_f32(
float);
66__device__
__attribute__((pure))
float __ocml_native_log10_f32(
float);
67__device__
__attribute__((pure))
float __ocml_log1p_f32(
float);
69__device__
__attribute__((pure))
float __ocml_native_log2_f32(
float);
70__device__
__attribute__((const))
float __ocml_logb_f32(
float);
72__device__
__attribute__((pure))
float __ocml_native_log_f32(
float);
75__device__
__attribute__((const))
float __ocml_nearbyint_f32(
float);
76__device__
__attribute__((const))
float __ocml_nextafter_f32(
float,
float);
77__device__
__attribute__((const))
float __ocml_len3_f32(
float,
float,
float);
78__device__
__attribute__((const))
float __ocml_len4_f32(
float,
float,
float,
81__device__
__attribute__((pure))
float __ocml_ncdfinv_f32(
float);
82__device__
__attribute__((pure))
float __ocml_pow_f32(
float,
float);
83__device__
__attribute__((pure))
float __ocml_pown_f32(
float,
int);
84__device__
__attribute__((pure))
float __ocml_rcbrt_f32(
float);
85__device__
__attribute__((const))
float __ocml_remainder_f32(
float,
float);
88__device__
__attribute__((const))
float __ocml_rhypot_f32(
float,
float);
89__device__
__attribute__((const))
float __ocml_rint_f32(
float);
90__device__
__attribute__((const))
float __ocml_rlen3_f32(
float,
float,
float);
91__device__
__attribute__((const))
float __ocml_rlen4_f32(
float,
float,
float,
93__device__
__attribute__((const))
float __ocml_round_f32(
float);
94__device__
__attribute__((pure))
float __ocml_rsqrt_f32(
float);
95__device__
__attribute__((const))
float __ocml_scalb_f32(
float,
float);
96__device__
__attribute__((const))
float __ocml_scalbn_f32(
float,
int);
97__device__
__attribute__((const))
int __ocml_signbit_f32(
float);
104__device__
__attribute__((pure))
float __ocml_sinh_f32(
float);
106__device__
__attribute__((const))
float __ocml_sqrt_f32(
float);
107__device__
__attribute__((const))
float __ocml_native_sqrt_f32(
float);
109__device__
__attribute__((pure))
float __ocml_tanh_f32(
float);
111__device__
__attribute__((const))
float __ocml_trunc_f32(
float);
116__device__
__attribute__((const))
float __ocml_add_rte_f32(
float,
float);
117__device__
__attribute__((const))
float __ocml_add_rtn_f32(
float,
float);
118__device__
__attribute__((const))
float __ocml_add_rtp_f32(
float,
float);
119__device__
__attribute__((const))
float __ocml_add_rtz_f32(
float,
float);
120__device__
__attribute__((const))
float __ocml_sub_rte_f32(
float,
float);
121__device__
__attribute__((const))
float __ocml_sub_rtn_f32(
float,
float);
122__device__
__attribute__((const))
float __ocml_sub_rtp_f32(
float,
float);
123__device__
__attribute__((const))
float __ocml_sub_rtz_f32(
float,
float);
124__device__
__attribute__((const))
float __ocml_mul_rte_f32(
float,
float);
125__device__
__attribute__((const))
float __ocml_mul_rtn_f32(
float,
float);
126__device__
__attribute__((const))
float __ocml_mul_rtp_f32(
float,
float);
127__device__
__attribute__((const))
float __ocml_mul_rtz_f32(
float,
float);
128__device__
__attribute__((const))
float __ocml_div_rte_f32(
float,
float);
129__device__
__attribute__((const))
float __ocml_div_rtn_f32(
float,
float);
130__device__
__attribute__((const))
float __ocml_div_rtp_f32(
float,
float);
131__device__
__attribute__((const))
float __ocml_div_rtz_f32(
float,
float);
132__device__
__attribute__((const))
float __ocml_sqrt_rte_f32(
float);
133__device__
__attribute__((const))
float __ocml_sqrt_rtn_f32(
float);
134__device__
__attribute__((const))
float __ocml_sqrt_rtp_f32(
float);
135__device__
__attribute__((const))
float __ocml_sqrt_rtz_f32(
float);
136__device__
__attribute__((const))
float __ocml_fma_rte_f32(
float,
float,
float);
137__device__
__attribute__((const))
float __ocml_fma_rtn_f32(
float,
float,
float);
138__device__
__attribute__((const))
float __ocml_fma_rtp_f32(
float,
float,
float);
139__device__
__attribute__((const))
float __ocml_fma_rtz_f32(
float,
float,
float);
142__llvm_amdgcn_cos_f32(
float __x) {
143 return __builtin_amdgcn_cosf(
__x);
146__llvm_amdgcn_rcp_f32(
float __x) {
147 return __builtin_amdgcn_rcpf(
__x);
150__llvm_amdgcn_rsq_f32(
float __x) {
151 return __builtin_amdgcn_rsqf(
__x);
154__llvm_amdgcn_sin_f32(
float __x) {
155 return __builtin_amdgcn_sinf(
__x);
162__device__
__attribute__((pure))
double __ocml_acosh_f64(
double);
163__device__
__attribute__((const))
double __ocml_asin_f64(
double);
164__device__
__attribute__((pure))
double __ocml_asinh_f64(
double);
166__device__
__attribute__((const))
double __ocml_atan_f64(
double);
167__device__
__attribute__((pure))
double __ocml_atanh_f64(
double);
168__device__
__attribute__((pure))
double __ocml_cbrt_f64(
double);
169__device__
__attribute__((const))
double __ocml_ceil_f64(
double);
170__device__
__attribute__((const))
double __ocml_copysign_f64(
double,
double);
172__device__
__attribute__((pure))
double __ocml_cosh_f64(
double);
176__device__
__attribute__((pure))
double __ocml_erfc_f64(
double);
177__device__
__attribute__((pure))
double __ocml_erfcinv_f64(
double);
178__device__
__attribute__((pure))
double __ocml_erfcx_f64(
double);
179__device__
__attribute__((pure))
double __ocml_erf_f64(
double);
180__device__
__attribute__((pure))
double __ocml_erfinv_f64(
double);
181__device__
__attribute__((pure))
double __ocml_exp10_f64(
double);
182__device__
__attribute__((pure))
double __ocml_exp2_f64(
double);
183__device__
__attribute__((pure))
double __ocml_exp_f64(
double);
184__device__
__attribute__((pure))
double __ocml_expm1_f64(
double);
185__device__
__attribute__((const))
double __ocml_fabs_f64(
double);
186__device__
__attribute__((const))
double __ocml_fdim_f64(
double,
double);
187__device__
__attribute__((const))
double __ocml_floor_f64(
double);
188__device__
__attribute__((const))
double __ocml_fma_f64(
double,
double,
double);
189__device__
__attribute__((const))
double __ocml_fmax_f64(
double,
double);
190__device__
__attribute__((const))
double __ocml_fmin_f64(
double,
double);
191__device__
__attribute__((const))
double __ocml_fmod_f64(
double,
double);
194__device__
__attribute__((const))
double __ocml_hypot_f64(
double,
double);
195__device__
__attribute__((const))
int __ocml_ilogb_f64(
double);
196__device__
__attribute__((const))
int __ocml_isfinite_f64(
double);
197__device__
__attribute__((const))
int __ocml_isinf_f64(
double);
198__device__
__attribute__((const))
int __ocml_isnan_f64(
double);
201__device__
__attribute__((const))
double __ocml_ldexp_f64(
double,
int);
203__device__
__attribute__((pure))
double __ocml_log10_f64(
double);
204__device__
__attribute__((pure))
double __ocml_log1p_f64(
double);
205__device__
__attribute__((pure))
double __ocml_log2_f64(
double);
206__device__
__attribute__((const))
double __ocml_logb_f64(
double);
207__device__
__attribute__((pure))
double __ocml_log_f64(
double);
210__device__
__attribute__((const))
double __ocml_nearbyint_f64(
double);
211__device__
__attribute__((const))
double __ocml_nextafter_f64(
double,
double);
212__device__
__attribute__((const))
double __ocml_len3_f64(
double,
double,
214__device__
__attribute__((const))
double __ocml_len4_f64(
double,
double,
double,
216__device__
__attribute__((pure))
double __ocml_ncdf_f64(
double);
217__device__
__attribute__((pure))
double __ocml_ncdfinv_f64(
double);
218__device__
__attribute__((pure))
double __ocml_pow_f64(
double,
double);
219__device__
__attribute__((pure))
double __ocml_pown_f64(
double,
int);
220__device__
__attribute__((pure))
double __ocml_rcbrt_f64(
double);
221__device__
__attribute__((const))
double __ocml_remainder_f64(
double,
double);
224__device__
__attribute__((const))
double __ocml_rhypot_f64(
double,
double);
225__device__
__attribute__((const))
double __ocml_rint_f64(
double);
226__device__
__attribute__((const))
double __ocml_rlen3_f64(
double,
double,
228__device__
__attribute__((const))
double __ocml_rlen4_f64(
double,
double,
230__device__
__attribute__((const))
double __ocml_round_f64(
double);
231__device__
__attribute__((pure))
double __ocml_rsqrt_f64(
double);
232__device__
__attribute__((const))
double __ocml_scalb_f64(
double,
double);
233__device__
__attribute__((const))
double __ocml_scalbn_f64(
double,
int);
234__device__
__attribute__((const))
int __ocml_signbit_f64(
double);
240__device__
__attribute__((pure))
double __ocml_sinh_f64(
double);
242__device__
__attribute__((const))
double __ocml_sqrt_f64(
double);
244__device__
__attribute__((pure))
double __ocml_tanh_f64(
double);
246__device__
__attribute__((const))
double __ocml_trunc_f64(
double);
251__device__
__attribute__((const))
double __ocml_add_rte_f64(
double,
double);
252__device__
__attribute__((const))
double __ocml_add_rtn_f64(
double,
double);
253__device__
__attribute__((const))
double __ocml_add_rtp_f64(
double,
double);
254__device__
__attribute__((const))
double __ocml_add_rtz_f64(
double,
double);
255__device__
__attribute__((const))
double __ocml_sub_rte_f64(
double,
double);
256__device__
__attribute__((const))
double __ocml_sub_rtn_f64(
double,
double);
257__device__
__attribute__((const))
double __ocml_sub_rtp_f64(
double,
double);
258__device__
__attribute__((const))
double __ocml_sub_rtz_f64(
double,
double);
259__device__
__attribute__((const))
double __ocml_mul_rte_f64(
double,
double);
260__device__
__attribute__((const))
double __ocml_mul_rtn_f64(
double,
double);
261__device__
__attribute__((const))
double __ocml_mul_rtp_f64(
double,
double);
262__device__
__attribute__((const))
double __ocml_mul_rtz_f64(
double,
double);
263__device__
__attribute__((const))
double __ocml_div_rte_f64(
double,
double);
264__device__
__attribute__((const))
double __ocml_div_rtn_f64(
double,
double);
265__device__
__attribute__((const))
double __ocml_div_rtp_f64(
double,
double);
266__device__
__attribute__((const))
double __ocml_div_rtz_f64(
double,
double);
267__device__
__attribute__((const))
double __ocml_sqrt_rte_f64(
double);
268__device__
__attribute__((const))
double __ocml_sqrt_rtn_f64(
double);
269__device__
__attribute__((const))
double __ocml_sqrt_rtp_f64(
double);
270__device__
__attribute__((const))
double __ocml_sqrt_rtz_f64(
double);
271__device__
__attribute__((const))
double __ocml_fma_rte_f64(
double,
double,
273__device__
__attribute__((const))
double __ocml_fma_rtn_f64(
double,
double,
275__device__
__attribute__((const))
double __ocml_fma_rtp_f64(
double,
double,
277__device__
__attribute__((const))
double __ocml_fma_rtz_f64(
double,
double,
281__llvm_amdgcn_rcp_f64(
double __x) {
282 return __builtin_amdgcn_rcp(
__x);
285__llvm_amdgcn_rsq_f64(
double __x) {
286 return __builtin_amdgcn_rsq(
__x);
338 return (
__2f16)(__llvm_amdgcn_rcp_f16(
__x.x), __llvm_amdgcn_rcp_f16(
__x.y));
__device__ double __ocml_i0_f64(double)
__device__ float __ocml_j1_f32(float)
__device__ double __ocml_remquo_f64(double, double, __attribute__((address_space(5))) int *)
__device__ double __ocml_modf_f64(double, __attribute__((address_space(5))) double *)
__device__ float __ocml_cospi_f32(float)
__device__ float __ocml_i0_f32(float)
__device__ double __ocml_lgamma_f64(double)
__device__ float __ocml_sincos_f32(float, __attribute__((address_space(5))) float *)
__device__ float __ocml_remquo_f32(float, float, __attribute__((address_space(5))) int *)
_Float16 __2f16 __attribute__((ext_vector_type(2)))
Zeroes the upper 128 bits (bits 255:128) of all YMM registers.
__device__ _Float16 __ocml_sin_f16(_Float16)
__device__ float __ocml_y0_f32(float)
__device__ float __ocml_modf_f32(float, __attribute__((address_space(5))) float *)
__device__ float __ocml_i1_f32(float)
__device__ __2f16 __ocml_cos_2f16(__2f16)
__device__ float __ocml_lgamma_f32(float)
__device__ float __ocml_frexp_f32(float, __attribute__((address_space(5))) int *)
__device__ double __ocml_sinpi_f64(double)
__device__ double __ocml_cospi_f64(double)
__device__ __2f16 __ocml_sin_2f16(__2f16)
__device__ double __ocml_frexp_f64(double, __attribute__((address_space(5))) int *)
__device__ double __ocml_tgamma_f64(double)
__device__ float __ocml_tan_f32(float)
__device__ float __ocml_tgamma_f32(float)
__device__ double __ocml_sincos_f64(double, __attribute__((address_space(5))) double *)
__device__ float __ocml_sinpi_f32(float)
__device__ double __ocml_j1_f64(double)
__device__ double __ocml_y1_f64(double)
__device__ double __ocml_j0_f64(double)
__device__ float __ocml_cos_f32(float)
__device__ float __ocml_y1_f32(float)
__device__ _Float16 __ocml_cos_f16(_Float16)
__device__ float __ocml_j0_f32(float)
__device__ double __ocml_cos_f64(double)
__device__ double __ocml_i1_f64(double)
__device__ double __ocml_sin_f64(double)
__device__ __2f16 float c
__device__ double __ocml_sincospi_f64(double, __attribute__((address_space(5))) double *)
__device__ float __ocml_sin_f32(float)
__device__ float __ocml_sincospi_f32(float, __attribute__((address_space(5))) float *)
__device__ __2f16 __llvm_amdgcn_rcp_2f16(__2f16 __x)
__device__ float __ocml_native_sin_f32(float)
__device__ float __ocml_native_cos_f32(float)
__device__ __2f16 float bool s
__device__ double __ocml_y0_f64(double)
__device__ double __ocml_tan_f64(double)
static __inline unsigned char unsigned int __x