This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[00:00:00] Build started | |
[00:00:00] git clone -q https://github.com/JuliaIO/JLD.jl.git C:\projects\jld-jl-28dqq | |
[00:00:02] git fetch -q origin +refs/pull/145/merge: | |
[00:00:02] git checkout -qf FETCH_HEAD | |
[00:00:02] Running Install scripts | |
[00:00:02] 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." } | |
[00:00:03] (new-object net.webclient).DownloadFile($("http://s3.amazonaws.com/"+$env:JULIAVERSION), "C:\projects\julia-binary.exe") | |
[00:00:05] C:\projects\julia-binary.exe /S /D=C:\projects\julia | |
[00:00:21] IF EXIST .git\shallow (git fetch --unshallow) | |
[00:00:21] C:\projects\julia\bin\julia --startup-file=yes -e "versioninfo(); Pkg.clone(pwd(), \"JLD\"); Pkg.build(\"JLD\")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using BenchmarkTools | |
using Base: sign_mask, exponent_mask | |
typealias IEEEFloat Union{Float16,Float32,Float64} | |
_isinf{T<:IEEEFloat}(x::T) = (reinterpret(Unsigned, x) & ~sign_mask(T)) == exponent_mask(T) | |
_isfinite{T<:IEEEFloat}(x::T) = (reinterpret(Unsigned, x) & exponent_mask(T)) != exponent_mask(T) | |
_isnan{T<:IEEEFloat}(x::T) = (reinterpret(Unsigned, x) & ~sign_mask(T)) > exponent_mask(T) | |
julia> @benchmark isinf(2.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# credits: @TotalVerb, @oxinabox, @musm @mbauman @quinnj | |
julia --compile=no --precompiled=no | |
(x->@inbounds(x+=[0][x])+x)(9^9^9) | |
[@inbounds([][x])for x=9^9^9] | |
run(`1`) |
NewerOlder