eliminate using namespace

This commit is contained in:
Martin Michelsen
2026-05-25 16:38:31 -07:00
parent 4503d09c77
commit e9c2ac34a3
98 changed files with 6022 additions and 6531 deletions
@@ -66,7 +66,7 @@ max_stack_size_for_tool_start:
.binary 0A 0A 01 0A 0A 0A 0A 0A 0A 01 01 01 01 01 01 01 63 01 01 01 01 01
data_end:
# eax = min<uint8_t>(data1[1], 0x15)
# eax = std::min<uint8_t>(data1[1], 0x15)
mov al, [ecx + 1]
xor edx, edx
mov dl, 0x15
+2 -2
View File
@@ -58,7 +58,7 @@ handle_6xE4_start: # (G_6xE4* cmd @ [esp + 4]) -> void
cmp ecx, edx
cmovl ecx, edx
push ecx
fild st0, dword [esp] # current_hp = static_cast<float>(max<int32_t>(cmd->max_hp - st.total_damage, 0))
fild st0, dword [esp] # current_hp = static_cast<float>(std::max<int32_t>(cmd->max_hp - st.total_damage, 0))
fld st0, dword [ebx + 0x0C]
fmulp st1, st0
fistp dword [esp], st0
@@ -68,7 +68,7 @@ handle_6xE4_start: # (G_6xE4* cmd @ [esp + 4]) -> void
inc edx
cmp ecx, edx
cmovl ecx, edx
mov [ebx + 0x04], cx # cmd->hit_amount = min<int32_t>(1, adjusted_hit_amount)
mov [ebx + 0x04], cx # cmd->hit_amount = std::min<int32_t>(1, adjusted_hit_amount)
handle_6xE4_not_proportional:
movzx edx, word [eax + 0x06] # st.total_damage
+2 -2
View File
@@ -73,7 +73,7 @@ handle_6xE4: # [std] (G_6xE4* cmd @ [esp + 4]) -> void
cmp ecx, edx
cmovl ecx, edx
push ecx
fild st0, dword [esp] # current_hp = static_cast<float>(max<int32_t>(cmd->max_hp - st.total_damage, 0))
fild st0, dword [esp] # current_hp = static_cast<float>(std::max<int32_t>(cmd->max_hp - st.total_damage, 0))
fld st0, dword [ebx + 0x0C]
fmulp st1, st0
fistp dword [esp], st0
@@ -83,7 +83,7 @@ handle_6xE4: # [std] (G_6xE4* cmd @ [esp + 4]) -> void
inc edx
cmp ecx, edx
cmovl ecx, edx
mov [ebx + 0x04], cx # cmd->hit_amount = min<int32_t>(1, adjusted_hit_amount)
mov [ebx + 0x04], cx # cmd->hit_amount = std::min<int32_t>(1, adjusted_hit_amount)
handle_6xE4_not_proportional:
movzx edx, word [eax + 0x06] # st.total_damage
@@ -51,7 +51,7 @@ send_again: # while (remaining_bytes != 0)
mov ecx, 0x550
mov edx, [esp + 4]
cmp edx, ecx
cmovg edx, ecx # this_chunk_size = min<uint32_t>(remaining_bytes, 0x550)
cmovg edx, ecx # this_chunk_size = std::min<uint32_t>(remaining_bytes, 0x550)
push edx # this_chunk_size (for after return)
push edx
push edi