mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 09:48:29 +00:00
Improve dead code elimination
This commit is contained in:
parent
760db8c5ad
commit
0e36cb3ac4
6606 changed files with 9685 additions and 9854 deletions
|
@ -10,7 +10,7 @@
|
|||
* Supported Platforms Tuning Knob (Runtime & Compile-Time)
|
||||
* Tuning this bitmask will remove platform polyfills at compile-time.
|
||||
*/
|
||||
#define SUPPORT_VECTOR 0b11111111
|
||||
#define SUPPORT_VECTOR 255
|
||||
#endif
|
||||
|
||||
#define LINUX 1
|
||||
|
@ -78,7 +78,7 @@
|
|||
#define SupportsNetbsd() ((SUPPORT_VECTOR & NETBSD) == NETBSD)
|
||||
#define SupportsBsd() (!!(SUPPORT_VECTOR & (XNU | FREEBSD | OPENBSD | NETBSD)))
|
||||
#define SupportsSystemv() \
|
||||
((SUPPORT_VECTOR & (LINUX | METAL | XNU | OPENBSD | FREEBSD | NETBSD)) != 0)
|
||||
(!!(SUPPORT_VECTOR & (LINUX | XNU | OPENBSD | FREEBSD | NETBSD)))
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
#define IsLinux() (SupportsLinux() && (__hostos & LINUX))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue