Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: checked integer conversions #8420

Merged
merged 17 commits into from
Sep 29, 2014
Merged

WIP: checked integer conversions #8420

merged 17 commits into from
Sep 29, 2014

Commits on Sep 17, 2014

  1. check integer truncation (#5413) and make more operators follow T+T =…

    …> T (#3759)
    
    the sysimg builds, but still need to:
      - check same-size signed<->unsigned conversion
      - make tests pass
    JeffBezanson committed Sep 17, 2014
    Configuration menu
    Copy the full SHA
    effff39 View commit details
    Browse the repository at this point in the history
  2. 2 Configuration menu
    Copy the full SHA
    1d5050b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8495944 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2014

  1. check signed<->unsigned conversions

    this would be a bit cleaner without the code in intfuncs that dispatches
    on Unsigned.
    
    signed() and unsigned() are convenient for testing bit patterns in the
    test suite. for now replace with assigned() and asunsigned().
    
    uint8(x) is convenient for moving bytes around, so it remains unchecked.
    we should perhaps rename this to byte(), and either eliminate uint8()
    entirely, or make it checked.
    JeffBezanson committed Sep 18, 2014
    Configuration menu
    Copy the full SHA
    e1690fc View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2014

  1. 1 Configuration menu
    Copy the full SHA
    c67837c View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' of github.com:JuliaLang/julia into jb/checked_i…

    …nt_trunc
    
    Conflicts:
    	base/number.jl
    JeffBezanson committed Sep 19, 2014
    Configuration menu
    Copy the full SHA
    06241fe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ec607da View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2014

  1. Merge branch 'master' of github.com:JuliaLang/julia into jb/checked_i…

    …nt_trunc
    
    Conflicts:
    	base/intfuncs.jl
    JeffBezanson committed Sep 25, 2014
    Configuration menu
    Copy the full SHA
    50f1d10 View commit details
    Browse the repository at this point in the history
  2. make signed() and unsigned() unchecked. check only in convert()

    a few fixes in base for the convert and arithmetic changes
    
    get all tests passing
    JeffBezanson committed Sep 25, 2014
    1 Configuration menu
    Copy the full SHA
    16c2330 View commit details
    Browse the repository at this point in the history
  3. add a bit of widening to reductions, to make up for the new

    type-preserving arithmetic.
    
    allow reducedim(+, A, 2), which previously gave
    ```
    ERROR: `reducedim_init` has no method matching reducedim_init(::IdFun, ::Function, ::Array{Uint8,2}, ::Int64)
     in reducedim at reducedim.jl:217
    ```
    JeffBezanson committed Sep 25, 2014
    Configuration menu
    Copy the full SHA
    9f0ef0d View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2014

  1. Merge branch 'master' of github.com:JuliaLang/julia into jb/checked_i…

    …nt_trunc
    
    Conflicts:
    	base/reduce.jl
    JeffBezanson committed Sep 26, 2014
    Configuration menu
    Copy the full SHA
    b3e30f9 View commit details
    Browse the repository at this point in the history
  2. fix more cases of widening in reductions

    also fix sum_kbn on empty input
    JeffBezanson committed Sep 26, 2014
    Configuration menu
    Copy the full SHA
    3336fbc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4d1c138 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    000f41e View commit details
    Browse the repository at this point in the history
  5. Merge branch 'master' of github.com:JuliaLang/julia into jb/checked_i…

    …nt_trunc
    
    Conflicts:
    	base/reduce.jl
    JeffBezanson committed Sep 26, 2014
    Configuration menu
    Copy the full SHA
    8c39ad2 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2014

  1. Configuration menu
    Copy the full SHA
    8321a9e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    53b6dee View commit details
    Browse the repository at this point in the history