mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 22:32:28 +00:00
Improve performance of bitscanning intrinsics
This change helps spectre more intelligently plan execution, by working around false output dependencies, impacting ops like popcnt bsr and bsf
This commit is contained in:
parent
29cb53881e
commit
87d7010495
13 changed files with 100 additions and 224 deletions
12
libc/testlib/blocktronics.h
Normal file
12
libc/testlib/blocktronics.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_TESTLIB_BLOCKTRONICS_H_
|
||||
#define COSMOPOLITAN_LIBC_TESTLIB_BLOCKTRONICS_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern size_t kBlocktronicsSize;
|
||||
extern char kBlocktronics[];
|
||||
extern uint8_t kBlocktronicsZip[];
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_TESTLIB_BLOCKTRONICS_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue