diff options
author | Kian Meng Ang <kianmeng.ang@gmail.com> | 2021-11-13 11:24:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-13 11:24:21 +0300 |
commit | 4ec760a3d1f69e32ba460ecd2513f29b8428700b (patch) | |
tree | 9d128ba1e4ba8b25fe5f43caf54e2c8673833125 | |
parent | d0d14ac774977d0060a351f66e35cb57ba0bf59c (diff) |
Fixed typos in documentation (#348)
-rw-r--r-- | src/asmjit/core.h | 4 | ||||
-rw-r--r-- | src/asmjit/core/codeholder.h | 2 | ||||
-rw-r--r-- | src/asmjit/core/compiler.h | 4 | ||||
-rw-r--r-- | src/asmjit/core/emitter.h | 2 | ||||
-rw-r--r-- | src/asmjit/core/environment.h | 2 | ||||
-rw-r--r-- | src/asmjit/core/errorhandler.h | 2 | ||||
-rw-r--r-- | src/asmjit/core/inst.h | 2 | ||||
-rw-r--r-- | src/asmjit/core/operand.h | 2 | ||||
-rw-r--r-- | src/asmjit/core/rabuilders_p.h | 2 | ||||
-rw-r--r-- | src/asmjit/core/zonevector.cpp | 4 | ||||
-rw-r--r-- | src/asmjit/x86/x86compiler.h | 2 | ||||
-rw-r--r-- | src/asmjit/x86/x86operand.h | 2 |
12 files changed, 15 insertions, 15 deletions
diff --git a/src/asmjit/core.h b/src/asmjit/core.h index 28f5613..7620343 100644 --- a/src/asmjit/core.h +++ b/src/asmjit/core.h @@ -1129,7 +1129,7 @@ namespace asmjit { //! Mem g = ptr(rax, xmm1, 2); // g = [rax + xmm1 << 2] //! Mem h = ptr(rax, xmm1, 2, 15); // h = [rax + xmm1 << 2 + 15] //! -//! // Absolute adddress: +//! // Absolute address: //! uint64_t addr = (uint64_t)0x1234; //! Mem i = ptr(addr); // i = [0x1234] //! Mem j = ptr(addr, rbx); // j = [0x1234 + rbx] @@ -1452,7 +1452,7 @@ namespace asmjit { //! AsmJit's \ref Logger serves the following purposes: //! - Provides a basic foundation for logging. //! - Abstract class leaving the implementation on users. The following built-in -//! inplementations are provided for simplicty: +//! implementations are provided for simplicity: //! - \ref FileLogger implements logging into a standard `FILE` stream. //! - \ref StringLogger serializes all logs into a \ref String instance. //! diff --git a/src/asmjit/core/codeholder.h b/src/asmjit/core/codeholder.h index 06bf3f9..2a6ee49 100644 --- a/src/asmjit/core/codeholder.h +++ b/src/asmjit/core/codeholder.h @@ -108,7 +108,7 @@ struct Expression { uint64_t constant; //! Pointer to another expression. Expression* expression; - //! Poitner to \ref LabelEntry. + //! Pointer to \ref LabelEntry. LabelEntry* label; }; diff --git a/src/asmjit/core/compiler.h b/src/asmjit/core/compiler.h index eb2a5aa..4c4cd33 100644 --- a/src/asmjit/core/compiler.h +++ b/src/asmjit/core/compiler.h @@ -589,9 +589,9 @@ public: ASMJIT_NONCOPYABLE(InvokeNode) //! Operand pack provides multiple operands that can be associated with a - //! single return value of function argument. Sometims this is necessary to + //! single return value of function argument. Sometimes this is necessary to //! express an argument or return value that requires multiple registers, for - //! example 64-bit value in 32-bit mode or passing / returning homogenous data + //! example 64-bit value in 32-bit mode or passing / returning homogeneous data //! structures. struct OperandPack { //! Operands. diff --git a/src/asmjit/core/emitter.h b/src/asmjit/core/emitter.h index fcb9bb5..44cda70 100644 --- a/src/asmjit/core/emitter.h +++ b/src/asmjit/core/emitter.h @@ -685,7 +685,7 @@ public: //! //! \note This function is virtual and can be overridden, however, if you //! do so, always call \ref BaseEmitter::onSettingsUpdated() within your - //! own implementation to ensure that the emitter is in a consisten state. + //! own implementation to ensure that the emitter is in a consistent state. ASMJIT_API virtual void onSettingsUpdated() noexcept; //! \} diff --git a/src/asmjit/core/environment.h b/src/asmjit/core/environment.h index 79e6f7c..58e8734 100644 --- a/src/asmjit/core/environment.h +++ b/src/asmjit/core/environment.h @@ -355,7 +355,7 @@ public: return _packed() == 0; } - //! Tests whether the environment is intialized, which means it must have + //! Tests whether the environment is initialized, which means it must have //! a valid architecture. inline bool isInitialized() const noexcept { return _arch != kArchUnknown; diff --git a/src/asmjit/core/errorhandler.h b/src/asmjit/core/errorhandler.h index 2337cd8..b26a654 100644 --- a/src/asmjit/core/errorhandler.h +++ b/src/asmjit/core/errorhandler.h @@ -68,7 +68,7 @@ class BaseEmitter; //! the error, but lets AsmJit continue: //! //! ``` -//! // Error Handling #1 - Logging and returing Error. +//! // Error Handling #1 - Logging and returning Error. //! #include <asmjit/x86.h> //! #include <stdio.h> //! diff --git a/src/asmjit/core/inst.h b/src/asmjit/core/inst.h index bc3708d..e803647 100644 --- a/src/asmjit/core/inst.h +++ b/src/asmjit/core/inst.h @@ -134,7 +134,7 @@ public: //! Creates a new BaseInst instance with `id` and `options` set. //! - //! Default values of `id` and `options` are zero, which means none instruciton. + //! Default values of `id` and `options` are zero, which means none instruction. //! Such instruction is guaranteed to never exist for any architecture supported //! by AsmJit. inline explicit BaseInst(uint32_t id = 0, uint32_t options = 0) noexcept diff --git a/src/asmjit/core/operand.h b/src/asmjit/core/operand.h index 05e4c0f..61a81bd 100644 --- a/src/asmjit/core/operand.h +++ b/src/asmjit/core/operand.h @@ -139,7 +139,7 @@ struct Operand_ { //! Data specific to the operand type. //! //! The reason we don't use union is that we have `constexpr` constructors that - //! construct operands and other `constexpr` functions that return wither another + //! construct operands and other `constexpr` functions that return whether another //! Operand or something else. These cannot generally work with unions so we also //! cannot use `union` if we want to be standard compliant. uint32_t _data[2]; diff --git a/src/asmjit/core/rabuilders_p.h b/src/asmjit/core/rabuilders_p.h index 290839f..3d387a0 100644 --- a/src/asmjit/core/rabuilders_p.h +++ b/src/asmjit/core/rabuilders_p.h @@ -508,7 +508,7 @@ public: // [Utilities] // -------------------------------------------------------------------------- - //! Called when a `node` is removed, e.g. bacause of a dead code elimination. + //! Called when a `node` is removed, e.g. because of a dead code elimination. void removeNode(BaseNode* node) noexcept { logNode(node, kRootIndentation, "<Removed>"); cc()->removeNode(node); diff --git a/src/asmjit/core/zonevector.cpp b/src/asmjit/core/zonevector.cpp index 81d5d50..160ac59 100644 --- a/src/asmjit/core/zonevector.cpp +++ b/src/asmjit/core/zonevector.cpp @@ -126,7 +126,7 @@ Error ZoneBitVector::copyFrom(ZoneAllocator* allocator, const ZoneBitVector& oth } if (newSize > _capacity) { - // Realloc needed... Calculate the minimum capacity (in bytes) requied. + // Realloc needed... Calculate the minimum capacity (in bytes) required. uint32_t minimumCapacityInBits = Support::alignUp<uint32_t>(newSize, kBitWordSizeInBits); if (ASMJIT_UNLIKELY(minimumCapacityInBits < newSize)) return DebugUtils::errored(kErrorOutOfMemory); @@ -186,7 +186,7 @@ Error ZoneBitVector::_resize(ZoneAllocator* allocator, uint32_t newSize, uint32_ BitWord* data = _data; if (newSize > _capacity) { - // Realloc needed, calculate the minimum capacity (in bytes) requied. + // Realloc needed, calculate the minimum capacity (in bytes) required. uint32_t minimumCapacityInBits = Support::alignUp<uint32_t>(idealCapacity, kBitWordSizeInBits); if (ASMJIT_UNLIKELY(minimumCapacityInBits < newSize)) diff --git a/src/asmjit/x86/x86compiler.h b/src/asmjit/x86/x86compiler.h index 1dad575..7ca506a 100644 --- a/src/asmjit/x86/x86compiler.h +++ b/src/asmjit/x86/x86compiler.h @@ -460,7 +460,7 @@ ASMJIT_BEGIN_SUB_NAMESPACE(x86) //! //! // Jump annotation is a building block that allows to annotate all //! // possible targets where `jmp()` can jump. It then drives the CFG -//! // contruction and liveness analysis, which impacts register allocation. +//! // construction and liveness analysis, which impacts register allocation. //! JumpAnnotation* annotation = cc.newJumpAnnotation(); //! annotation->addLabel(L_Add); //! annotation->addLabel(L_Sub); diff --git a/src/asmjit/x86/x86operand.h b/src/asmjit/x86/x86operand.h index 5ec5cd8..917c0f9 100644 --- a/src/asmjit/x86/x86operand.h +++ b/src/asmjit/x86/x86operand.h @@ -221,7 +221,7 @@ public: kGroupBnd = BaseReg::kGroupVirt+4, //! TMM register group. kGroupTmm = BaseReg::kGroupVirt+5, - //! Instrucion pointer (IP). + //! Instruction pointer (IP). kGroupRip = BaseReg::kGroupVirt+6, //! Count of all register groups. |