-
Notifications
You must be signed in to change notification settings - Fork 21
update for 0.7 #74
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
update for 0.7 #74
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ os: | |
|
|
||
| julia: | ||
| - 0.6 | ||
| - 0.7 | ||
| - nightly | ||
|
|
||
| notifications: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| julia 0.6 | ||
| Compat 0.61.0 | ||
| BinaryProvider | ||
| SpecialFunctions |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,18 @@ | ||
| environment: | ||
| matrix: | ||
| - JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.6/julia-0.6-latest-win32.exe" | ||
| - JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe" | ||
| - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe" | ||
| - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe" | ||
| - julia_version: 0.6 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ooooh....fancy. |
||
| - julia_version: 0.7 | ||
| - julia_version: latest | ||
|
|
||
| platform: | ||
| - x86 | ||
| - x64 | ||
|
|
||
| ## uncomment the following lines to allow failures on nightly julia | ||
| ## (tests will run but not make your overall status red) | ||
| #matrix: | ||
| # allow_failures: | ||
| # - julia_version: latest | ||
|
|
||
| branches: | ||
| only: | ||
|
|
@@ -17,24 +26,12 @@ notifications: | |
| on_build_status_changed: false | ||
|
|
||
| install: | ||
| - ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12" | ||
| # if there's a newer build queued for the same PR, cancel this one | ||
| - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod ` | ||
| https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | ` | ||
| Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { ` | ||
| throw "There are newer queued builds for this pull request, failing early." } | ||
| # Download most recent Julia Windows binary | ||
| - ps: (new-object net.webclient).DownloadFile( | ||
| $env:JULIA_URL, | ||
| "C:\projects\julia-binary.exe") | ||
| # Run installer silently, output to C:\projects\julia | ||
| - C:\projects\julia-binary.exe /S /D=C:\projects\julia | ||
| - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/master/bin/install.ps1')) | ||
|
|
||
| build_script: | ||
| # Need to convert from shallow to complete for Pkg.clone to work | ||
| - IF EXIST .git\shallow (git fetch --unshallow) | ||
| - C:\projects\julia\bin\julia -e "versioninfo(); | ||
| Pkg.clone(pwd(), \"DecFP\"); Pkg.build(\"DecFP\")" | ||
| - echo "%JL_BUILD_SCRIPT%" | ||
| - julia -e "%JL_BUILD_SCRIPT%" | ||
|
|
||
| test_script: | ||
| - C:\projects\julia\bin\julia -e "Pkg.test(\"DecFP\")" | ||
| - echo "%JL_TEST_SCRIPT%" | ||
| - julia -e "%JL_TEST_SCRIPT%" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,6 +20,10 @@ using Compat, Compat.Printf, Compat.Unicode | |
| export GC | ||
| end | ||
|
|
||
| @static if VERSION >= v"0.7.0-alpha.69" | ||
| import SpecialFunctions | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't this need to be in REQUIRE?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's there. |
||
| end | ||
|
|
||
| export Dec32, Dec64, Dec128, @d_str, @d32_str, @d64_str, @d128_str, exponent10, ldexp10 | ||
|
|
||
| # Load libbid from our deps.jl | ||
|
|
@@ -368,18 +372,26 @@ for w in (32,64,128) | |
| @eval Base.$f(x::$BID) = ccall(($(bidsym(w,c)), libbid), Cint, ($BID,), x) != 0 | ||
| end | ||
|
|
||
| for (f,c) in ((:+,"add"), (:-,"sub"), (:*,"mul"), (:/, "div"), (:hypot,"hypot"), (:atan2,"atan2"), (:^,"pow"), (:copysign,"copySign")) | ||
| for (f,c) in ((:+,"add"), (:-,"sub"), (:*,"mul"), (:/, "div"), (:hypot,"hypot"), (VERSION >= v"0.7.0-alpha.44" ? :atan : :atan2,"atan2"), (:^,"pow"), (:copysign,"copySign")) | ||
| @eval Base.$f(x::$BID, y::$BID) = nox(ccall(($(bidsym(w,c)), libbid), $BID, ($BID,$BID), x, y)) | ||
| end | ||
|
|
||
| for f in (:exp,:log,:sin,:cos,:tan,:asin,:acos,:atan,:sinh,:cosh,:tanh,:asinh,:acosh,:atanh,:log1p,:expm1,:log10,:log2,:exp2,:exp10,:lgamma,:sqrt,:cbrt,:abs) | ||
| for f in (:exp,:log,:sin,:cos,:tan,:asin,:acos,:atan,:sinh,:cosh,:tanh,:asinh,:acosh,:atanh,:log1p,:expm1,:log10,:log2,:exp2,:exp10,:sqrt,:cbrt,:abs) | ||
| @eval Base.$f(x::$BID) = @xchk(ccall(($(bidsym(w,f)), libbid), $BID, ($BID,), x), DomainError, x, mask=INVALID) | ||
| end | ||
|
|
||
| for (f,c) in ((:gamma,"tgamma"), (:-,"negate"), (:trunc,"round_integral_zero"), (:floor,"round_integral_negative"), (:ceil,"round_integral_positive"), (:round,"nearbyint")) | ||
| for (f,c) in ((:-,"negate"), (:trunc,"round_integral_zero"), (:floor,"round_integral_negative"), (:ceil,"round_integral_positive"), (:round,"nearbyint")) | ||
| @eval Base.$f(x::$BID) = @xchk(ccall(($(bidsym(w,c)), libbid), $BID, ($BID,), x), DomainError, x, mask=INVALID) | ||
| end | ||
|
|
||
| @static if VERSION >= v"0.7.0-alpha.69" | ||
| @eval SpecialFunctions.lgamma(x::$BID) = @xchk(ccall(($(bidsym(w,:lgamma)), libbid), $BID, ($BID,), x), DomainError, x, mask=INVALID) | ||
| @eval SpecialFunctions.gamma(x::$BID) = @xchk(ccall(($(bidsym(w,:tgamma)), libbid), $BID, ($BID,), x), DomainError, x, mask=INVALID) | ||
| else | ||
| @eval Base.lgamma(x::$BID) = @xchk(ccall(($(bidsym(w,:lgamma)), libbid), $BID, ($BID,), x), DomainError, x, mask=INVALID) | ||
| @eval Base.gamma(x::$BID) = @xchk(ccall(($(bidsym(w,:tgamma)), libbid), $BID, ($BID,), x), DomainError, x, mask=INVALID) | ||
| end | ||
|
|
||
| for (r,c) in ((RoundingMode{:Nearest},"round_integral_nearest_even"), (RoundingMode{:NearestTiesAway},"round_integral_nearest_away"), (RoundingMode{:ToZero},"round_integral_zero"), (RoundingMode{:Up},"round_integral_positive"), (RoundingMode{:Down},"round_integral_negative")) | ||
| @eval Base.round(x::$BID, ::$r) = @xchk(ccall(($(bidsym(w,c)), libbid), $BID, ($BID,), x), DomainError, x, mask=INVALID) | ||
| end | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this start working as of alpha/beta?