narray_ffi 1.4.3 → 1.4.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ba8bece2398d19e91abc4666527fc47e36b273d5
4
- data.tar.gz: 7cacec50d65c5fdb6786d38dc835cd633cc37fec
2
+ SHA256:
3
+ metadata.gz: 721a24211495ce94483138eb689880ec4ab659650738d8a6a8710c1de924a88c
4
+ data.tar.gz: 91f9a5614528d2a660ea82a650fe16b71a455828914451cb3089841f2ff34425
5
5
  SHA512:
6
- metadata.gz: b16d3570c7153ada98239bc19bf5b73c39c67702af0bb8b7326b516f47fa6c523935be4f9cbd285ecacc4bb04d43aa5c4979dcbefe6499c2c24196df0d126645
7
- data.tar.gz: 2ad856f2c581ee8f7455ca12bbecb7df62b57a0fd9d71382b81c7881525be55a49e2649e8db585a2fcce1811ecdcff7e4b11485be18dc6c611355bdc30f5ff66
6
+ metadata.gz: 20d06d641b2870014242f55037ceedb319fe4517bf992bf9812d77c4f028d953e054b5a633c023bd4729eac420aaba3cc70343c11c92cab8f4851dac5ff75b54
7
+ data.tar.gz: 0fc6ab638484f39cf54be0fa7fe5f0c839759ffbe3b5c8c9c987c20d9beaaa19a0390607ae8b4417741add953ef9e421c828fa2f82abe4019bce260a0d3d36f1
@@ -19,7 +19,7 @@ unless have_header("narray.h")
19
19
  end
20
20
  $CPPFLAGS = "-I" << path << "/ " << $CPPFLAGS
21
21
  if /cygwin|mingw/ =~ RUBY_PLATFORM then
22
- $LDFLAGS = "-L" << path << "/" << $LDFLAGS
22
+ $LDFLAGS = "-L" << path << "/ " << $LDFLAGS
23
23
  end
24
24
  end
25
25
  rescue LoadError
@@ -17,8 +17,7 @@ class ANArray < NArray
17
17
  def self.new(typecode, alignment, *size)
18
18
  raise "Wrong type code" if not FFITYPECODES[typecode]
19
19
  raise "Invalid alignment" unless alignment > 0 and ( alignment & (alignment - 1) == 0 )
20
- total = size[0]
21
- size[1..-1].each { |sz| total = total * sz }
20
+ total = size.reduce(:*)
22
21
  total = 2*total if typecode == NArray::COMPLEX or typecode == NArray::SCOMPLEX
23
22
  mem = FFI::MemoryPointer::new( FFITYPECODES[typecode], total + alignment - 1 )
24
23
  address = mem.address
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'narray_ffi'
3
- s.version = "1.4.3"
3
+ s.version = "1.4.4"
4
4
  s.author = "Brice Videau"
5
5
  s.email = "brice.videau@imag.fr"
6
6
  s.homepage = "https://forge.imag.fr/projects/opencl-ruby/"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: narray_ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice Videau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-15 00:00:00.000000000 Z
11
+ date: 2018-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: narray
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.5.2
85
+ rubygems_version: 2.7.6
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Ruby narray_ffi