Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/asmjit/asmjit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Vogelsgesang <adrian.vogelsgesang@tum.de>2022-04-02 01:26:56 +0300
committerGitHub <noreply@github.com>2022-04-02 01:26:56 +0300
commita876e4d1cd17468ed3cf4305f0e701967601fd34 (patch)
tree857263ab0c8f5e92019de04fcb2fb8fd7393db86
parente41f1c0fd736b550328b950b3e42729058d93078 (diff)
Fixed typos in comments (#361)
-rw-r--r--src/asmjit/core/archtraits.h2
-rw-r--r--src/asmjit/core/codeholder.h2
-rw-r--r--src/asmjit/core/func.h2
-rw-r--r--src/asmjit/x86/x86emithelper.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/asmjit/core/archtraits.h b/src/asmjit/core/archtraits.h
index 4d05c11..192a826 100644
--- a/src/asmjit/core/archtraits.h
+++ b/src/asmjit/core/archtraits.h
@@ -152,7 +152,7 @@ enum class InstHints : uint8_t {
//! No feature hints.
kNoHints = 0,
- //! Architecture supports a register swap by using a single instructio.
+ //! Architecture supports a register swap by using a single instruction.
kRegSwap = 0x01u,
//! Architecture provides push/pop instructions.
kPushPop = 0x02u
diff --git a/src/asmjit/core/codeholder.h b/src/asmjit/core/codeholder.h
index e3bd0d5..6ed2ddf 100644
--- a/src/asmjit/core/codeholder.h
+++ b/src/asmjit/core/codeholder.h
@@ -356,7 +356,7 @@ struct OffsetFormat {
//! Returns the size of the region/instruction where the offset is encoded.
inline uint32_t regionSize() const noexcept { return _regionSize; }
- //! Returns the the offset of the word relative to the start of the region where the offset is.
+ //! Returns the offset of the word relative to the start of the region where the offset is.
inline uint32_t valueOffset() const noexcept { return _valueOffset; }
//! Returns the size of the data-type (word) that contains the offset, in bytes.
diff --git a/src/asmjit/core/func.h b/src/asmjit/core/func.h
index 8ecf148..78a41f9 100644
--- a/src/asmjit/core/func.h
+++ b/src/asmjit/core/func.h
@@ -1127,7 +1127,7 @@ public:
//! Tests whether the callee must adjust SP before returning (X86-STDCALL only)
inline bool hasCalleeStackCleanup() const noexcept { return _calleeStackCleanup != 0; }
- //! Returns home many bytes of the stack the the callee must adjust before returning (X86-STDCALL only)
+ //! Returns home many bytes of the stack the callee must adjust before returning (X86-STDCALL only)
inline uint32_t calleeStackCleanup() const noexcept { return _calleeStackCleanup; }
//! Returns call stack alignment.
diff --git a/src/asmjit/x86/x86emithelper.cpp b/src/asmjit/x86/x86emithelper.cpp
index cc558e0..b541c04 100644
--- a/src/asmjit/x86/x86emithelper.cpp
+++ b/src/asmjit/x86/x86emithelper.cpp
@@ -30,7 +30,7 @@ static inline uint32_t getXmmMovInst(const FuncFrame& frame) {
: (avx ? Inst::kIdVmovups : Inst::kIdMovups);
}
-//! Converts `size` to a 'kmov?' instructio.
+//! Converts `size` to a 'kmov?' instruction.
static inline uint32_t kmovInstFromSize(uint32_t size) noexcept {
switch (size) {
case 1: return Inst::kIdKmovb;