AdamNiederer / AdamNiederer/faster
faster floor/ceil/round in pre SSE 4.1 cases
Đang mở
- Ngôn ngữ chính
- Rust
- Star
- 1.6k
- Fork
- 52
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
If I am reading the code correctly, it looks like in the case of SSE2 Faster currently falls back to calling round()/floor() etc on each individual lane via the fallback macro.
You may be able to use these methods instead:
http://dss.stephanierct.com/DevBlog/?p=8
Or Agner Fog has a different method in his vector library:
http://www.agner.org/optimize/vectorclass.zip
edit:
Agner's functions are slower but can handle floating point values that don't fit in an i32, the first functions only handle values that do fit in an i32.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.