2023-06-05 07:37:25 +00:00
|
|
|
#if defined(__x86_64__) && !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
#ifndef _X86GPRINTRIN_H_INCLUDED
|
|
|
|
# error "Never use <adxintrin.h> directly; include <x86gprintrin.h> instead."
|
2023-04-27 09:56:41 +00:00
|
|
|
#endif
|
|
|
|
#ifndef _ADXINTRIN_H_INCLUDED
|
|
|
|
#define _ADXINTRIN_H_INCLUDED
|
2023-06-05 07:37:25 +00:00
|
|
|
extern __inline unsigned char
|
|
|
|
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
|
|
|
_subborrow_u32 (unsigned char __CF, unsigned int __X,
|
|
|
|
unsigned int __Y, unsigned int *__P)
|
|
|
|
{
|
|
|
|
return __builtin_ia32_sbb_u32 (__CF, __X, __Y, __P);
|
2023-04-27 09:56:41 +00:00
|
|
|
}
|
2023-06-05 07:37:25 +00:00
|
|
|
extern __inline unsigned char
|
|
|
|
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
|
|
|
_addcarry_u32 (unsigned char __CF, unsigned int __X,
|
|
|
|
unsigned int __Y, unsigned int *__P)
|
|
|
|
{
|
|
|
|
return __builtin_ia32_addcarryx_u32 (__CF, __X, __Y, __P);
|
2023-04-27 09:56:41 +00:00
|
|
|
}
|
2023-06-05 07:37:25 +00:00
|
|
|
extern __inline unsigned char
|
|
|
|
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
|
|
|
_addcarryx_u32 (unsigned char __CF, unsigned int __X,
|
|
|
|
unsigned int __Y, unsigned int *__P)
|
|
|
|
{
|
|
|
|
return __builtin_ia32_addcarryx_u32 (__CF, __X, __Y, __P);
|
2023-04-27 09:56:41 +00:00
|
|
|
}
|
|
|
|
#ifdef __x86_64__
|
2023-06-05 07:37:25 +00:00
|
|
|
extern __inline unsigned char
|
|
|
|
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
|
|
|
_subborrow_u64 (unsigned char __CF, unsigned long long __X,
|
|
|
|
unsigned long long __Y, unsigned long long *__P)
|
|
|
|
{
|
|
|
|
return __builtin_ia32_sbb_u64 (__CF, __X, __Y, __P);
|
2023-04-27 09:56:41 +00:00
|
|
|
}
|
2023-06-05 07:37:25 +00:00
|
|
|
extern __inline unsigned char
|
|
|
|
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
|
|
|
_addcarry_u64 (unsigned char __CF, unsigned long long __X,
|
|
|
|
unsigned long long __Y, unsigned long long *__P)
|
|
|
|
{
|
|
|
|
return __builtin_ia32_addcarryx_u64 (__CF, __X, __Y, __P);
|
2023-04-27 09:56:41 +00:00
|
|
|
}
|
2023-06-05 07:37:25 +00:00
|
|
|
extern __inline unsigned char
|
|
|
|
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
|
|
|
_addcarryx_u64 (unsigned char __CF, unsigned long long __X,
|
|
|
|
unsigned long long __Y, unsigned long long *__P)
|
|
|
|
{
|
|
|
|
return __builtin_ia32_addcarryx_u64 (__CF, __X, __Y, __P);
|
2023-04-27 09:56:41 +00:00
|
|
|
}
|
|
|
|
#endif
|
2023-06-05 07:37:25 +00:00
|
|
|
#endif
|
|
|
|
#endif
|