Skip to content

Instantly share code, notes, and snippets.

View dpsanders's full-sized avatar

David P. Sanders dpsanders

View GitHub Profile
This file has been truncated, but you can view the full file.
Submodule 'deps/Rmath' (git://github.com/JuliaLang/Rmath.git) registered for path 'deps/Rmath'
Submodule 'deps/libmojibake' (git://github.com/JuliaLang/libmojibake.git) registered for path 'deps/libmojibake'
Submodule 'deps/libuv' (git://github.com/JuliaLang/libuv.git) registered for path 'deps/libuv'
Submodule 'deps/openlibm' (git://github.com/JuliaLang/openlibm.git) registered for path 'deps/openlibm'
Submodule 'deps/openspecfun' (git://github.com/JuliaLang/openspecfun.git) registered for path 'deps/openspecfun'
Cloning into 'deps/Rmath'...
Submodule path 'deps/Rmath': checked out '226598f63af75e8bc3568f01e34932caebce6064'
Cloning into 'deps/libmojibake'...
Submodule path 'deps/libmojibake': checked out 'df71da45dfbdf68bcc6fd656d1260d609c728ad7'
Cloning into 'deps/libuv'...
==> Downloading https://github.com/libgit2/libgit2/archive/v0.21.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/libgit2-0.21.2.tar.gz
==> Verifying libgit2-0.21.2.tar.gz checksum
tar xf /Library/Caches/Homebrew/libgit2-0.21.2.tar.gz
==> cmake .. -DBUILD_TESTS=NO -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/libgit2/0.21.2 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev
-- The C compiler identification is AppleClang 6.0.0.6000054
-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang
-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
/Users/dsanders/development/julia-dev/julia/deps/jldownload libgit2-0.21.2.tar.gz https://github.com/libgit2/libgit2/archive/v0.21.2.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 124 0 124 0 0 157 0 --:--:-- --:--:-- --:--:-- 157
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 44217 0 0 22984 0 --:--:-- 0:00:01 --:--:-- 44663 0 0 0 539k 0 0 167k 0 --:--:-- 0:00:03 --:--:-- 236k 0 0 0 701k 0 0 179k 0 --:--:-- 0:00:03 --:--:-- 236k 0 0 0 1112k 0 0 224k 0 --:--:-- 0:00:04 --:--:-- 277k 0 0 0 1764k 0 0 297k 0 --:--:-- 0:00:05 --:--:-- 353k 0 0 0 1921k 0 0 277k 0 --:--:-- 0:00:06 --:--:-- 376k 0 0
total 109248
drwxr-xr-x 260 root admin 8840 Jun 5 2013 .
drwxr-xr-x 13 root wheel 442 Jul 16 2013 ..
drwxr-xr-x 3 root admin 102 Jun 5 2013 apt
drwxr-xr-x 5 root admin 170 Jun 5 2013 cairo
drwxr-xr-x 7 root admin 238 Jun 5 2013 dpkg
drwxr-xr-x 8 root admin 272 Jun 5 2013 emacsen-common
drwxr-xr-x 14 root admin 476 Jun 5 2013 engines100
drwxr-xr-x 8 root admin 272 Jun 5 2013 fink
drwxr-xr-x 5 root admin 170 Jun 5 2013 fontconfig2
This file has been truncated, but you can view the full file.
Submodule 'deps/Rmath' (git://github.com/JuliaLang/Rmath.git) registered for path 'deps/Rmath'
Submodule 'deps/libmojibake' (git://github.com/JuliaLang/libmojibake.git) registered for path 'deps/libmojibake'
Submodule 'deps/libuv' (git://github.com/JuliaLang/libuv.git) registered for path 'deps/libuv'
Submodule 'deps/openlibm' (git://github.com/JuliaLang/openlibm.git) registered for path 'deps/openlibm'
Submodule 'deps/openspecfun' (git://github.com/JuliaLang/openspecfun.git) registered for path 'deps/openspecfun'
Cloning into 'deps/Rmath'...
Submodule path 'deps/Rmath': checked out '226598f63af75e8bc3568f01e34932caebce6064'
Cloning into 'deps/libmojibake'...
Submodule path 'deps/libmojibake': checked out 'df71da45dfbdf68bcc6fd656d1260d609c728ad7'
Cloning into 'deps/libuv'...
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dpsanders
dpsanders / mxcsr.jl
Last active August 29, 2015 14:19 — forked from simonbyrne/mxcsr.jl
function getmxcsr()
Base.llvmcall("""%ptr = alloca i32
call void @llvm.x86.sse.stmxcsr(i32 * %ptr)
%curval = load i32 * %ptr
ret i32 %curval""", UInt32, ())
end
function setmxcsr(u::UInt32)
Base.llvmcall("""%ptr = alloca i32
store i32 %0, i32 * %ptr
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# 0.4 ONLY
type MultidimFunction
components::Vector{Function}
end
Base.getindex(f::MultidimFunction, i::Integer) = f.components[i]
Base.call(f::MultidimFunction, x) = (T=eltype(x); T[f_i(x) for f_i in f.components])