Skip to content

Upstream local modifications to openlibm.#124

Merged
ViralBShah merged 2 commits intoJuliaMath:masterfrom
NuxiNL:cloudabi-fixes
Feb 27, 2016
Merged

Upstream local modifications to openlibm.#124
ViralBShah merged 2 commits intoJuliaMath:masterfrom
NuxiNL:cloudabi-fixes

Conversation

@EdSchouten
Copy link
Copy Markdown
Contributor

I currently have a small number of local changes that I need to apply on top of openlibm to properly integrate it into CloudABI's C library. It would be nice if I could get rid of them. ;-)

The current tradition of openlibm is to hide all of its internal symbols
into the reserved system namespace. CloudABI has a check in place to
ensure that its C library (which contains openlibm) to not place any
unwanted symbols into the public namespace. openlibm seems to leak
_scan_nan() in there, so we'd better add an additional underscore.
@nalimilan
Copy link
Copy Markdown
Contributor

I must say this sentence is confusing to me "Clang doesn't dislike it if you bitshift negative numbers, as the behaviour of it is undefined." :-)

Clang doesn't like it if you bitshift negative numbers, as the behaviour
of it is undefined. Solve this by first shifting, followed by negating.
This was fixed similarly in FreeBSD.
@EdSchouten
Copy link
Copy Markdown
Contributor Author

Oh, sorry about that. Fixed!

ViralBShah added a commit that referenced this pull request Feb 27, 2016
Upstream local modifications to openlibm.
@ViralBShah ViralBShah merged commit 1bba495 into JuliaMath:master Feb 27, 2016
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.

3 participants