Skip to content

Commit

Permalink
v fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Spydr06 committed Sep 24, 2023
1 parent 0bfe60a commit 0dd9674
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
12 changes: 6 additions & 6 deletions vlib/v/gen/native/amd64.v
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ enum Amd64SSERegister {
}

enum Amd64SetOp {
e = 0x940f
e = 0x940f
ne = 0x950f
g = 0x9f0f
g = 0x9f0f
ge = 0x9d0f
l = 0x9c0f
l = 0x9c0f
le = 0x9e0f
a = 0x970f
a = 0x970f
ae = 0x930f
b = 0x920f
b = 0x920f
be = 0x960f
p = 0x9a0f
p = 0x9a0f
np = 0x9b0f
}

Expand Down
30 changes: 15 additions & 15 deletions vlib/v/gen/native/pe.v
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,21 @@ const (
)

enum PeMachine as u16 {
i386 = 0x014c
i386 = 0x014c
amd64 = 0x8664
arm64 = 0xaa64
}

enum PeMagic as u16 {
mz = 0x5a4d // dos(mz)-header magic number
pe = 0x4550 // pe-header magic number
pe32 = 0x010b // PE32 optional header magic number
mz = 0x5a4d // dos(mz)-header magic number
pe = 0x4550 // pe-header magic number
pe32 = 0x010b // PE32 optional header magic number
pe32plus = 0x020b // PE32+ optional header magic number
}

// reference: https://learn.microsoft.com/en-us/windows/win32/debug/pe-format?redirectedfrom=MSDN#windows-subsystem
enum PeSubsystem as u16 {
unknown = 0
unknown = 0
native
windows_gui
windows_cui
Expand All @@ -110,16 +110,16 @@ enum PeSubsystem as u16 {

// reference: https://learn.microsoft.com/en-us/windows/win32/debug/pe-format?redirectedfrom=MSDN#dll-characteristics
enum DllCharacteristics as u16 {
high_entropy_va = 0x0020
dynamic_base = 0x0040
force_integrity = 0x0080
nx_compat = 0x0100
no_isolation = 0x0200
no_seh = 0x0400
no_bind = 0x0800
appcontainer = 0x1000
wdm_driver = 0x2000
guard_cf = 0x4000
high_entropy_va = 0x0020
dynamic_base = 0x0040
force_integrity = 0x0080
nx_compat = 0x0100
no_isolation = 0x0200
no_seh = 0x0400
no_bind = 0x0800
appcontainer = 0x1000
wdm_driver = 0x2000
guard_cf = 0x4000
terminal_server_aware = 0x8000
}

Expand Down

0 comments on commit 0dd9674

Please sign in to comment.