Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • compiler
  • translator
  • ConstantUnion.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Fix constant folding right shift corner cases · 55644211
    Olli Etuaho authored Nov 08, 2016
    Right-shifting the minimum signed integer needs to be handled as a
    special case, since it can't go through the usual path that clears the
    sign bit.
    
    Code for right-shifting by zero also had a typo that resulted in
    setting the wrong value to the result.
    
    BUG=chromium:662706
    TEST=angle_unittests
    
    Change-Id: Ief24d738064906a72212242e0917ce30e45d6b25
    Reviewed-on: https://chromium-review.googlesource.com/408158Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    55644211
ConstantUnion.cpp 18 KB
EditWeb IDE
×

Replace ConstantUnion.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.