convolver-light 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7419c4684ba4626b2409a2f7bad35af5b704cf73f4af3e94b64074e852fd1b5
4
- data.tar.gz: c3537e495e18a2d2225d3bc147c715104db2658a76e66f952ba797b10705c45a
3
+ metadata.gz: d1eb229f744fffe9f565670e39ed3ca67a400eb0fe6b67691a40e22cbf7202c4
4
+ data.tar.gz: b3c2b1aaec07a09ff73adb5c325d403aa1bd45848b9a3aea8623a2822b631486
5
5
  SHA512:
6
- metadata.gz: a06d775493b62464f2a89baab0fa57d800415e036e226bfd751f57bf0934aa861ec236e11a49a9714ba3e98f7c4239c283a5af831e0bd381fca4cd06a2015560
7
- data.tar.gz: 8a229ee976d3c485d8c679b095031820492040798d81726246a3d31e5a86d211d535ba889b82619c3966c657b93e8ef89a480faa04c6efe8f9143dd51d7b0fe7
6
+ metadata.gz: d8bb3e75fb528f34dfb12c2adb17fa8ce00eb8206148db2781d8f610b1dfe14167c053dfe03c0eeb1230fcaaa7db341a472b6949e277e28b50d65439dae91612
7
+ data.tar.gz: 69870392395da2455600f88b7ae93eb7835250f01b080de6f00d71db06d2e42e94fe8c621e2293e8d0de732327fb668c9906d0aaa76ca5f2a5675f98b46d5b25
data/.travis.yml CHANGED
@@ -1,6 +1,5 @@
1
1
  before_install:
2
2
  - sudo apt-get update -qq
3
- - sudo apt-get install -qq libfftw3-dev
4
3
  - gem install bundler
5
4
  language: ruby
6
5
  rvm:
@@ -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 = ['dima@scriptangle.com']
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
- #include <xmmintrin.h>
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
@@ -3,7 +3,13 @@
3
3
  #include <ruby.h>
4
4
  #include "narray.h"
5
5
  #include <stdio.h>
6
- #include <xmmintrin.h>
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"