convolver-light 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/convolver-light.gemspec +1 -1
- data/ext/convolver/arch_detector.h +12 -0
- data/ext/convolver/convolve_raw.h +8 -1
- data/ext/convolver/convolver.c +7 -1
- data/ext/convolver/sse2neon.h +8803 -0
- data/lib/convolver/version.rb +1 -1
- data/spec/convolve_spec.rb +0 -8
- data/spec/helpers.rb +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1eb229f744fffe9f565670e39ed3ca67a400eb0fe6b67691a40e22cbf7202c4
|
4
|
+
data.tar.gz: b3c2b1aaec07a09ff73adb5c325d403aa1bd45848b9a3aea8623a2822b631486
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8bb3e75fb528f34dfb12c2adb17fa8ce00eb8206148db2781d8f610b1dfe14167c053dfe03c0eeb1230fcaaa7db341a472b6949e277e28b50d65439dae91612
|
7
|
+
data.tar.gz: 69870392395da2455600f88b7ae93eb7835250f01b080de6f00d71db06d2e42e94fe8c621e2293e8d0de732327fb668c9906d0aaa76ca5f2a5675f98b46d5b25
|
data/.travis.yml
CHANGED
data/convolver-light.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = 'convolver-light'
|
8
8
|
spec.version = Convolver::VERSION
|
9
9
|
spec.authors = ['Dima Ermilov']
|
10
|
-
spec.email = ['
|
10
|
+
spec.email = ['wlaer@wlaer.com']
|
11
11
|
spec.description = 'Simplification of convolver gem, FFTW removed, suitable only for smaller kernels. Convolver gem author is Neil Slater, slobo777@gmail.com, https://github.com/neilslater'
|
12
12
|
spec.summary = 'Convolution for NArray simplified.'
|
13
13
|
spec.homepage = 'http://github.com/adworse/convolver-light'
|
@@ -0,0 +1,12 @@
|
|
1
|
+
#ifndef ARCH_DETECTOR_H
|
2
|
+
#define ARCH_DETECTOR_H
|
3
|
+
|
4
|
+
#if defined(__x86_64__) || defined(_M_X64)
|
5
|
+
#define ARCH_X86
|
6
|
+
#elif defined(i386) || defined(__i386__) || defined(__i386) || defined(_M_IX86)
|
7
|
+
#define ARCH_X86
|
8
|
+
#else
|
9
|
+
#define ARCH_ARM
|
10
|
+
#endif
|
11
|
+
|
12
|
+
#endif
|
@@ -9,7 +9,14 @@
|
|
9
9
|
#define CONVOLVE_RAW_H
|
10
10
|
|
11
11
|
#include <ruby.h>
|
12
|
-
|
12
|
+
|
13
|
+
#include "arch_detector.h"
|
14
|
+
#ifdef ARCH_ARM
|
15
|
+
#include "sse2neon.h"
|
16
|
+
#else
|
17
|
+
#include <xmmintrin.h>
|
18
|
+
#endif
|
19
|
+
|
13
20
|
#include "narray_shared.h"
|
14
21
|
|
15
22
|
#define LARGEST_RANK 16
|
data/ext/convolver/convolver.c
CHANGED
@@ -3,7 +3,13 @@
|
|
3
3
|
#include <ruby.h>
|
4
4
|
#include "narray.h"
|
5
5
|
#include <stdio.h>
|
6
|
-
|
6
|
+
|
7
|
+
#include "arch_detector.h"
|
8
|
+
#ifdef ARCH_ARM
|
9
|
+
#include "sse2neon.h"
|
10
|
+
#else
|
11
|
+
#include <xmmintrin.h>
|
12
|
+
#endif
|
7
13
|
|
8
14
|
#include "narray_shared.h"
|
9
15
|
#include "convolve_raw.h"
|