2021-03-05 15:15:03 +00:00
|
|
|
#if IS_IN (libc)
|
2021-09-20 21:20:15 +00:00
|
|
|
# define USE_WITH_EVEX 1
|
|
|
|
|
2021-03-05 15:15:03 +00:00
|
|
|
# define VEC_SIZE 32
|
2021-09-20 21:20:15 +00:00
|
|
|
# define MOV_SIZE 6
|
|
|
|
# define RET_SIZE 1
|
|
|
|
|
2021-03-05 15:15:03 +00:00
|
|
|
# define XMM0 xmm16
|
|
|
|
# define YMM0 ymm16
|
|
|
|
# define VEC0 ymm16
|
|
|
|
# define VEC(i) VEC##i
|
2021-09-20 21:20:15 +00:00
|
|
|
|
|
|
|
# define VMOVU vmovdqu64
|
|
|
|
# define VMOVA vmovdqa64
|
|
|
|
|
2021-03-05 15:15:03 +00:00
|
|
|
# define VZEROUPPER
|
|
|
|
|
|
|
|
# define MEMSET_VDUP_TO_VEC0_AND_SET_RETURN(d, r) \
|
|
|
|
movq r, %rax; \
|
|
|
|
vpbroadcastb d, %VEC0
|
|
|
|
|
|
|
|
# define WMEMSET_VDUP_TO_VEC0_AND_SET_RETURN(d, r) \
|
|
|
|
movq r, %rax; \
|
|
|
|
vpbroadcastd d, %VEC0
|
|
|
|
|
|
|
|
# define SECTION(p) p##.evex
|
|
|
|
# define MEMSET_SYMBOL(p,s) p##_evex_##s
|
|
|
|
# define WMEMSET_SYMBOL(p,s) p##_evex_##s
|
2021-04-19 21:48:10 +00:00
|
|
|
# define USE_LESS_VEC_MASK_STORE 1
|
2021-03-05 15:15:03 +00:00
|
|
|
# include "memset-vec-unaligned-erms.S"
|
|
|
|
#endif
|