contributed by < h0w726 >
從前 6 週的測驗題選出 3 題改進
Week 3 測驗2
解釋程式碼運作原理
這段程式碼運用 SWAR 達到 memchr 的優化,memchr_opt 分成三個部分
先逐個 byte 檢查未對齊記憶體位置的部分
接著透過 mask 一次檢查一個 word 長度
最後檢查剩餘部分
Are you sure to leave this team?
Once you delete your team, all team notes will be deleted and cannot be recovered. Please ensure you've exported or transfered these notes.
Enter team name before deleting it:
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up