From 9746c2044125787274d3c78a0ba681e54baedae2 Mon Sep 17 00:00:00 2001 From: IoIxD Date: Sat, 1 Nov 2025 05:18:53 +0000 Subject: [PATCH] missing padding in cpu features git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@547 b9cfdab3-6d41-4d17-bbe4-086880011989 --- src/math/math_internal.h | 45 ++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/src/math/math_internal.h b/src/math/math_internal.h index 025a33d..1ce48da 100644 --- a/src/math/math_internal.h +++ b/src/math/math_internal.h @@ -10,16 +10,17 @@ #if defined(__WATCOMC__) || defined(__i386__) || defined(__amd64__) typedef struct _cpuFeatures cpuFeatures; struct _cpuFeatures { - MwBool fpu : 1; /* x87 FPU on chip */ - MwBool vme : 1; /* Virtual-8086 Mode Enhancement */ - MwBool de : 1; /* Debugging Extensions */ - MwBool pse : 1; /* Page Size Extensions */ - MwBool tsc : 1; /* Time Stamp Counter */ - MwBool msr : 1; /* RDMSR and WRMSR Support */ - MwBool pae : 1; /* Physical Address Extensions */ - MwBool mce : 1; /* Machine Check Exception */ - MwBool cx8 : 1; /* CMPXCHG8B instr */ - MwBool apic : 1; /* APIC on Chip */ + MwBool fpu : 1; /* x87 FPU on chip */ + MwBool vme : 1; /* Virtual-8086 Mode Enhancement */ + MwBool de : 1; /* Debugging Extensions */ + MwBool pse : 1; /* Page Size Extensions */ + MwBool tsc : 1; /* Time Stamp Counter */ + MwBool msr : 1; /* RDMSR and WRMSR Support */ + MwBool pae : 1; /* Physical Address Extensions */ + MwBool mce : 1; /* Machine Check Exception */ + MwBool cx8 : 1; /* CMPXCHG8B instr */ + MwBool apic : 1; /* APIC on Chip */ + MwBool pad1 : 1; MwBool sep : 1; /* SYSENTER and SYSEXIT instrs */ MwBool mtrr : 1; /* Memory Type Range Registers */ MwBool pge : 1; /* Page Global Bit */ @@ -29,18 +30,18 @@ struct _cpuFeatures { MwBool pse36 : 1; /* 36-Bit Page Size Extension */ MwBool psn : 1; /* Processor Serial Number */ MwBool clflush : 1; /* CLFLUSH instr */ - MwBool pad1 : 1; - MwBool ds : 1; /* Debug Store */ - MwBool acpi : 1; /* Thermal Monitor and Software Controlled Clock Facilities */ - MwBool mmx : 1; /* Intel MMX Technology */ - MwBool fxsr : 1; /* XSAVE and FXRSTOR Instrs */ - MwBool sse : 1; /* SSE */ - MwBool sse2 : 1; /* SSE2 */ - MwBool ss : 1; /* Self Snoop */ - MwBool hit : 1; /* Max APIC IDs */ - MwBool tm : 1; /* Thermal Monitor */ MwBool pad2 : 1; - MwBool pbe : 1; /* Pending Break Enable */ + MwBool ds : 1; /* Debug Store */ + MwBool acpi : 1; /* Thermal Monitor and Software Controlled Clock Facilities */ + MwBool mmx : 1; /* Intel MMX Technology */ + MwBool fxsr : 1; /* XSAVE and FXRSTOR Instrs */ + MwBool sse : 1; /* SSE */ + MwBool sse2 : 1; /* SSE2 */ + MwBool ss : 1; /* Self Snoop */ + MwBool hit : 1; /* Max APIC IDs */ + MwBool tm : 1; /* Thermal Monitor */ + MwBool pad3 : 1; + MwBool pbe : 1; /* Pending Break Enable */ }; #endif #include "nbsd_math.h" @@ -64,6 +65,6 @@ typedef struct _MwLLMathVTable MwLLMathVTable; MwLLMathVTable** default_multi_table(void); void mmx_apply(MwLLMathVTable**); -double nbsd_pow(double a, double b); +double nbsd_pow(double a, double b); #endif