require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_PLATFORM_X86_H)) {
    die("Never include <bits/platform/features.h> directly; use <sys/platform/x86.h> instead.");
}
eval("sub x86_feature_1_ibt () { 1U<<0; }") unless defined(&x86_feature_1_ibt);
eval("sub x86_feature_1_shstk () { 1U<<1; }") unless defined(&x86_feature_1_shstk);
# some #ifdef were dropped here -- fill in the blanks
eval 'sub x86_cpu_cet_active {
    my($__index) = @_;
	eval q({  &if ($__index ==  &x86_cpu_IBT)  &__feature_1 &  &x86_feature_1_ibt;  &else  &__feature_1 &  &x86_feature_1_shstk;  &else  &false;  &endif });
}' unless defined(&x86_cpu_cet_active);
1;
