Skip to content

Conversation

le-jzr
Copy link
Contributor

@le-jzr le-jzr commented Aug 29, 2018

libmath is mostly unused (except for trunc(), sin() and cos()), and most functions in it are either very imprecise or downright broken. Additionally, it is implemented in manner that conflicts with C standard. Instead of trying to fix all the shortcomings while maintaining unused functionality, I'm opting to simply remove most of it and only keep the parts that are currently necessary.

Later readdition of the removed functions is possible, but there needs to be a reliable way to evaluate their quality first.

Jiří Zárevúcky added 6 commits August 29, 2018 22:05
These are just performance optimizations and also currently using just the obsolete slow x87 instructions on x86 platforms. These also hide the brokenness of the soft-implementations on the most used platforms. In principle, complicating the build with optimizations of a broken library doesn't make sense.
@le-jzr le-jzr merged commit 516e780 into HelenOS:master Aug 31, 2018
@le-jzr le-jzr deleted the math branch August 31, 2018 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant