Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

Use correct calculation for Veltkamp splitting #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simonbyrne
Copy link
Member

Should fix #30.

@simonbyrne simonbyrne changed the title Use correct calculation for Valtkamp splitting Use correct calculation for Veltkamp splitting Aug 14, 2017
# - fix overflow for large values
# - use fma when available
function halfprec{T<:AbstractFloat}(x::T)
c = T((1 << cld(precision(T),2)) + 1)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this won't work for BigFloats

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dekker multiplication isn't exact
1 participant