Skip to content

Commit 7bd12a0

Browse files
committed
switch to standalone boost.simd
1 parent af097d7 commit 7bd12a0

6,563 files changed

Lines changed: 130701 additions & 128405 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010
^doc$
1111
^src/.*\.o$
1212
^gen/
13+
^boost\.simd/
14+
^boost\.dispatch/

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ src-i386/
66
src-x64/
77
.Rprofile
88
inst/doc
9+
boost.simd
10+
boost.dispatch

gen/boost-simd.R

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
pathProg <- function(name) {
2+
prog <- Sys.which(name)
3+
if (!nzchar(prog))
4+
stop("No program named '", name, "' on PATH!", call. = FALSE)
5+
prog
6+
}
7+
8+
git <- pathProg("git")
9+
10+
if (!dir.exists("inst/include/boost"))
11+
dir.create("inst/include/boost")
12+
13+
BOOST_DISPATCH_URL <- "https://github.com/NumScale/boost.dispatch"
14+
BOOST_SIMD_URL <- "https://github.com/NumScale/boost.simd"
15+
16+
if (!dir.exists("boost.dispatch"))
17+
system2(git, c("clone", BOOST_DISPATCH_URL, "boost.dispatch"))
18+
files <- list.files("boost.dispatch/include/boost", full.names = TRUE)
19+
for (file in files)
20+
file.copy(file, "inst/include/boost", recursive = TRUE)
21+
22+
if (!dir.exists("boost.simd"))
23+
system2(git, c("clone", BOOST_SIMD_URL, "boost.simd"))
24+
files <- list.files("boost.simd/include/boost", full.names = TRUE)
25+
for (file in files)
26+
file.copy(file, "inst/include/boost", recursive = TRUE)

inst/include/boost/control/case.hpp

Lines changed: 0 additions & 210 deletions
This file was deleted.

0 commit comments

Comments
 (0)