[Doc] Fixed documentation of SystemV X86_64 calling convention. (#417)

The first 6 arguments passed on UNIX64 platform is by RDI, RSI, RDX, RCX, R8, R9.
This commit is contained in:
Xing Guo
2023-10-06 17:06:48 +08:00
committed by GitHub
parent 917f19d940
commit c1e02dc558

View File

@@ -45,7 +45,7 @@ ASMJIT_BEGIN_SUB_NAMESPACE(x86)
//! // Decide between 32-bit CDECL, WIN64, and SysV64 calling conventions:
//! // 32-BIT - passed all arguments by stack.
//! // WIN64 - passes first 4 arguments by RCX, RDX, R8, and R9.
//! // UNIX64 - passes first 6 arguments by RDI, RSI, RCX, RDX, R8, and R9.
//! // UNIX64 - passes first 6 arguments by RDI, RSI, RDX, RCX, R8, and R9.
//! x86::Gp arr, cnt;
//! x86::Gp sum = x86::eax; // Use EAX as 'sum' as it's a return register.
//!