10 #if !defined __X86INTRIN_H && !defined __IMMINTRIN_H
11 #error "Never use <sgxintrin.h> directly; include <x86intrin.h> instead."
17 #if __has_extension(gnu_asm)
20 #define __DEFAULT_FN_ATTRS \
21 __attribute__((__always_inline__, __nodebug__, __target__("sgx")))
24 _enclu_u32(
unsigned int __leaf, __SIZE_TYPE__ __d[])
26 unsigned int __result;
28 :
"=a" (__result),
"=b" (__d[0]),
"=c" (__d[1]),
"=d" (__d[2])
29 :
"a" (__leaf),
"b" (__d[0]),
"c" (__d[1]),
"d" (__d[2])
35 _encls_u32(
unsigned int __leaf, __SIZE_TYPE__ __d[])
37 unsigned int __result;
39 :
"=a" (__result),
"=b" (__d[0]),
"=c" (__d[1]),
"=d" (__d[2])
40 :
"a" (__leaf),
"b" (__d[0]),
"c" (__d[1]),
"d" (__d[2])
46 _enclv_u32(
unsigned int __leaf, __SIZE_TYPE__ __d[])
48 unsigned int __result;
50 :
"=a" (__result),
"=b" (__d[0]),
"=c" (__d[1]),
"=d" (__d[2])
51 :
"a" (__leaf),
"b" (__d[0]),
"c" (__d[1]),
"d" (__d[2])
56 #undef __DEFAULT_FN_ATTRS
#define __DEFAULT_FN_ATTRS