9#ifndef __CLANG_HIP_STDLIB_H__
11#if !defined(__HIP__) && !defined(__OPENMP_AMDGCN__)
12#error "This file is for HIP and OpenMP AMDGCN device compilation only."
15#if !defined(__cplusplus)
19#ifdef __OPENMP_AMDGCN__
20#define __DEVICE__ static inline __attribute__((always_inline, nothrow))
22#define __DEVICE__ static __device__ inline __attribute__((always_inline))
28 return (
__x ^ __sgn) - __sgn;
33 return (
__x ^ __sgn) - __sgn;
37 long long __sgn =
__x >> (
sizeof(
long long) *
CHAR_BIT - 1);
38 return (
__x ^ __sgn) - __sgn;
__DEVICE__ long labs(long __x)
__DEVICE__ int abs(int __x)
__DEVICE__ long long llabs(long long __x)
static __inline unsigned char unsigned int __x