Skip to content

Fix negative shift left reported by UBSan#758

Merged
mayeut merged 1 commit intouclouvain:masterfrom
mayeut:neg-shift-left
Apr 27, 2016
Merged

Fix negative shift left reported by UBSan#758
mayeut merged 1 commit intouclouvain:masterfrom
mayeut:neg-shift-left

Conversation

@mayeut
Copy link
Copy Markdown
Collaborator

@mayeut mayeut commented Apr 27, 2016

Follow-up of #757

This shall have no performance impact on 2’s complement machine where
the compiler replaces the multiplication by power of two (constant) by
a left shift.
Verified at least on MacOS Xcode 7.3, same assembly generated after fix.

Update #718

Follow-up of uclouvain#757

This shall have no performance impact on 2’s complement machine where
the compiler replaces the multiplication by power of two (constant) by
a left shift.
Verified at least on MacOS Xcode 7.3, same assembly generated after fix.
@mayeut mayeut merged commit e6881e7 into uclouvain:master Apr 27, 2016
@mayeut mayeut deleted the neg-shift-left branch April 27, 2016 21:12
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.

2 participants