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

Use correct calculation for Veltkamp splitting#31

Open
simonbyrne wants to merge 1 commit intomasterfrom
sb/veltkamp
Open

Use correct calculation for Veltkamp splitting#31
simonbyrne wants to merge 1 commit intomasterfrom
sb/veltkamp

Conversation

@simonbyrne
Copy link
Copy Markdown
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
Copy Markdown
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