Skip to main content

is_aligned_64

Function is_aligned_64 

Source
pub fn is_aligned_64<T>(ptr: *const T) -> bool
Expand description

64バイト境界メモリアライメント判定関数。

AVX-512 や AVX2 のベクトル化命令において、未アライメントアクセスによる セグメンテーション違反や性能劣化を防ぐためにアライメント状態を検証する。