FreshRSS

πŸ”’
❌ Secure Planet Training Courses Updated For 2019 - Click Here
There are new available articles, click to refresh the page.
Before yesterdayYour RSS feeds

My Favorite Exclusive-Or

I took a bunch of bits and spread them out into ARM's neon registers and then did cool math on them to replicate the effects of an exclusive-or. It turned out to be way faster than I anticipated.

I then wrote unit tests that take advantage of generative testing with Quickcheck to make sure it actually works. I had never seen Quickcheck used to unit test inline assembly but it seems like no function using in-line assembly should ever not be covered by generative testing.

I love how readable this is. Honestly, the Rust tooling is so good that I never have to write assembly outside of Rust again.

I can't really think of a reason not to, don't say file sizes 😩.

submitted by /u/sqli
[link] [comments]
❌