mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 07:20:11 +00:00
c0dde15b5d
32bit memset-sse2.S assumes cache size is multiple of 128 bytes. If it isn't true, memset-sse2.S will fail. For example, a processor can have 24576 KB L3 cache and 20 cores. That is 2516582 byte per core. Half of it is 1258291, which isn't helpful for vector instructions. This patch rounds cache sizes to multiple of 256 bytes and adds "raw" cache sizes.
14 lines
639 B
C
14 lines
639 B
C
#define __x86_64_data_cache_size __x86_data_cache_size
|
|
#define __x86_64_raw_data_cache_size __x86_raw_data_cache_size
|
|
#define __x86_64_data_cache_size_half __x86_data_cache_size_half
|
|
#define __x86_64_raw_data_cache_size_half __x86_raw_data_cache_size_half
|
|
#define __x86_64_shared_cache_size __x86_shared_cache_size
|
|
#define __x86_64_raw_shared_cache_size __x86_raw_shared_cache_size
|
|
#define __x86_64_shared_cache_size_half __x86_shared_cache_size_half
|
|
#define __x86_64_raw_shared_cache_size_half __x86_raw_shared_cache_size_half
|
|
|
|
#define DISABLE_PREFETCHW
|
|
#define DISABLE_PREFERRED_MEMORY_INSTRUCTION
|
|
|
|
#include <sysdeps/x86_64/cacheinfo.c>
|