• Show log

    Commit

  • Hash : 2cacb778
    Author : Olli Etuaho
    Date : 2016-09-26T08:50:40

    Fix folding shifts when operands have different signedness
    
    The code used to incorrectly assert that the right-hand side of shift
    should have the same signedness as the left-hand side. Instead simply
    assert that both the lhs and rhs are integer typed, and also don't
    rely on aliasing via union when accessing bit shift operands.
    
    Also disallow constant folded bit shifts where the right hand side is
    greater than 31. Shifting with values greater than the width of the
    type has undefined results in both ESSL and C++.
    
    BUG=chromium:648135
    TEST=angle_unittests
    
    Change-Id: I84a99abc55f0eeda549b4781e954d17ba7b87552
    Reviewed-on: https://chromium-review.googlesource.com/389351
    Reviewed-by: Corentin Wallez <cwallez@chromium.org>
    Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/angle.git
    Git SSH git@git.kmx.io:kc3-lang/angle.git
    Public access ? public
    Description

    A conformant OpenGL ES implementation for Windows, Mac, Linux, iOS and Android.

    Homepage

    Github

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags