diff --git a/Manifest.toml b/Manifest.toml index 5631158..c91d432 100644 --- a/Manifest.toml +++ b/Manifest.toml @@ -37,9 +37,9 @@ uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" [[SIMDPirates]] deps = ["VectorizationBase"] -git-tree-sha1 = "34dff4f4715f871e71b38f31397d96e62621f14d" +git-tree-sha1 = "9fc6737cd40087e7d486f8e81fb5be8ad18f970b" uuid = "21efa798-c60a-11e8-04d3-e1a92915a26a" -version = "0.6.5" +version = "0.7.2" [[Serialization]] uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b" @@ -53,6 +53,6 @@ uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [[VectorizationBase]] deps = ["CpuId", "LinearAlgebra"] -git-tree-sha1 = "006d7b7f276db8d728f8bfd70ebf2efd132f9548" +git-tree-sha1 = "83f073a514b5d654cc9c72ae283a33388a0d0386" uuid = "3d5dd08c-fd9d-11e8-17fa-ed2836048c2f" -version = "0.7.0" +version = "0.9.3" diff --git a/Project.toml b/Project.toml index 6a87e62..84d1807 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "VectorizedRNG" uuid = "33b4df10-0173-11e9-2a0c-851a7edac40e" authors = ["Chris Elrod "] -version = "0.1.4" +version = "0.1.5" [deps] Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b" @@ -10,8 +10,8 @@ SIMDPirates = "21efa798-c60a-11e8-04d3-e1a92915a26a" VectorizationBase = "3d5dd08c-fd9d-11e8-17fa-ed2836048c2f" [compat] -SIMDPirates = "~0.5,0.6" -VectorizationBase = "~0.5,0.6,0.7" +SIMDPirates = "~0.5,0.6,0.7" +VectorizationBase = "~0.5,0.6,0.7,0.8,0.9" julia = "1" [extras] diff --git a/src/api.jl b/src/api.jl index eb27886..7f7aeae 100644 --- a/src/api.jl +++ b/src/api.jl @@ -123,7 +123,7 @@ function random_sample!(f::typeof(random_uniform), rng::AbstractVRNG{P}, x::Abst vstore!(ptrx, z₁, n); n += W64 vstore!(ptrx, z₂, n); n += W64 end - mask = VectorizationBase.masktable(Val{W64}(), N & (W64-1)) + mask = VectorizationBase.mask(Val{W64}(), N) if n < N - 1W64 state, (z₁,z₂) = f(state, Val{2}(), Float64) vstore!(ptrx, z₁, n); n += W64 @@ -149,7 +149,7 @@ function random_sample!(f::F, rng::AbstractVRNG{P}, x::AbstractArray{Float64}) w vstore!(ptrx, z₃, n); n += W64 vstore!(ptrx, z₄, n); n += W64 end - mask = VectorizationBase.masktable(Val{W64}(), N & (W64-1)) + mask = VectorizationBase.mask(Val{W64}(), N) if n < N - 3W64 state, (z₁,z₂,z₃,z₄) = f(state, Val{4}(), Float64) vstore!(ptrx, z₁, n); n += W64