-
Notifications
You must be signed in to change notification settings - Fork 1
/
notes
23 lines (21 loc) · 828 Bytes
/
notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
TODO:
- STRATEGY
- RUN-TIME PERFORMANCE
- Verify that correct asm instructions are being used
- http://llvm.org/docs/LangRef.html#inline-assembler-expressions
- Looking at assembly:
http://huonw.github.io/blog/2015/08/simd-in-rust/
$ rustc -L ../rust-minimax/target/debug/ --crate-type=lib -g -o board src/board.rs
$ objdump -d board
- Do some profiling
- Cut down on unnecessary copying of memory (use copy instead of clone? measure the effect)
- Use smaller types instead of u64?
- https://github.com/huonw/llvmint
- has a simd instruction for 8 cttz at once!
- http://huonw.github.io/llvmint/llvmint/fn.cttz_v8i16.html
- CODE CLEAN UP
- add init board with random rocks
-
SIMD crate
[dependencies.simd]
git = "https://github.com/huonw/simd"