mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
dsp/cpu: NaCl has no support for xgetbv
or the raw opcode; fixes: 934ed4: unrecognized instruction Change-Id: I981870baf0e8b03bf40144ea8ec25eff140d5bc3
This commit is contained in:
parent
4c398699ef
commit
4dfa86b29c
@ -44,7 +44,8 @@ static WEBP_INLINE void GetCPUInfo(int cpu_info[4], int info_type) {
|
||||
#define GetCPUInfo __cpuid
|
||||
#endif
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
// NaCl has no support for xgetbv or the raw opcode.
|
||||
#if !defined(__native_client__) && (defined(__i386__) || defined(__x86_64__))
|
||||
static WEBP_INLINE uint64_t xgetbv(void) {
|
||||
const uint32_t ecx = 0;
|
||||
uint32_t eax, edx;
|
||||
|
Loading…
Reference in New Issue
Block a user