__arm_mte_increment_tag in core::arch::aarch64 - Rust
Description: Return a pointer with the logical address tag offset by a value.

# Function __arm_mte_increment_tag

Source

    pub unsafe fn __arm_mte_increment_tag<const OFFSET: i64, T>(
        src: *const T,
    ) -> *const T

🔬This is a nightly-only experimental API. (`stdarch_aarch64_mte` #129010)
Available on (AArch64 or `target_arch="arm64ec"`) and target feature `mte` only.
Expand description

Return a pointer with the logical address tag offset by a value.

`src`: A pointer containing an address and a logical tag. `OFFSET`: A compile-time constant value in the range [0, 15].

Adds offset to the logical address tag in `src`, wrapping if the result is outside of the valid 16 tags.

SAFETY: See `__arm_mte_create_random_tag`.