Skip to content

Implement most of missing functionality for fixed point - #48

Closed
richardhozak wants to merge 3 commits into
dimforge:masterfrom
richardhozak:fixed-point-i32f32
Closed

Implement most of missing functionality for fixed point#48
richardhozak wants to merge 3 commits into
dimforge:masterfrom
richardhozak:fixed-point-i32f32

Conversation

@richardhozak

@richardhozak richardhozak commented Aug 7, 2023

Copy link
Copy Markdown

This PR implements missing functionality for fixed point numbers that is needed for parry to use fixed point numbers as reals instead of f32 or f64.

Some of the functionality is generalized and some of it is implemented only for FixedI32F32 fixed point number, as that is what I used to test this with parry.

I would like to get this completed for all fixed point numbers, so parry or other crates can use arbitrary fixed point numbers, but I am not sure how to continue (there is some From conversions in fixed_point.rs that I know how to generalize, but I am not sure how to impl_float_simd! for all fixed point numbers).

Could anyone point me in correct direction in order for me to complete this?

This makes it so simd_horizontal_sum and simd_horizontal_product can be implemented for fixed point numbers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant