Implement Various Math Optimizations #219
Replies: 5 comments
-
In regards to integers, all such optimization can be done without issues, in case of floating point operations I suggest to enable all this with a -ffast-math option, that in C compilers allows among other things to break IEEE compliance, ignore math with infinites/NaN or "negative zero", and relax rounding behavior |
Beta Was this translation helpful? Give feedback.
-
Per #57 |
Beta Was this translation helpful? Give feedback.
-
More math fun 😏 |
Beta Was this translation helpful? Give feedback.
-
Implement comparison operators using adders: so a > b is the same as !sign(a + ~b) then Thus all comparisons will use just an adder |
Beta Was this translation helpful? Give feedback.
-
Karatsuba for multiplication when not using DSPs |
Beta Was this translation helpful? Give feedback.
-
For example:
Im sure @suarezvictor will continue with more 🤓
Beta Was this translation helpful? Give feedback.
All reactions