Sha256: 91aa0f86ea9328832b4088cd6c4ebf7fbe53114bd79db30221a8b998ff6a7bfc

Contents?: true

Size: 1.51 KB

Versions: 33

Compression:

Stored size: 1.51 KB

Contents

# This file is not intended for real checks,
# but just to make happy libraries needing it.

require_relative '../rbconfig'

RbConfig::SIZEOF = {
  'clock_t'              => 8,
  'double _Complex'      => 16,
  'double'               => 8,
  'float _Complex'       => 8,
  'float'                => 4,
  'int'                  => 4,
  'int128_t'             => 16,
  'int16_t'              => 2,
  'int32_t'              => 4,
  'int64_t'              => 8,
  'int8_t'               => 1,
  'intmax_t'             => 8,
  'intptr_t'             => 8,
  'int_fast16_t'         => 2,
  'int_fast32_t'         => 4,
  'int_fast64_t'         => 8,
  'int_fast8_t'          => 1,
  'int_least16_t'        => 2,
  'int_least32_t'        => 4,
  'int_least64_t'        => 8,
  'int_least8_t'         => 1,
  'long double _Complex' => 32,
  'long double'          => 16,
  'long long'            => 8,
  'long'                 => 8,
  'off_t'                => 8,
  'ptrdiff_t'            => 8,
  'short'                => 2,
  'sig_atomic_t'         => 4,
  'size_t'               => 8,
  'ssize_t'              => 8,
  'time_t'               => 8,
  'uint128_t'            => 16,
  'uint16_t'             => 2,
  'uint32_t'             => 4,
  'uint64_t'             => 8,
  'uint8_t'              => 1,
  'uintptr_t'            => 8,
  'void*'                => 8,
  'wchar_t'              => 4,
  'wctrans_t'            => 4,
  'wctype_t'             => 4,
  'wint_t'               => 4,
  '_Bool'                => 1,
  '__int128'             => 16,
}

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
opal-1.8.3.rc1 stdlib/rbconfig/sizeof.rb
opal-1.8.2 stdlib/rbconfig/sizeof.rb
opal-1.8.1 stdlib/rbconfig/sizeof.rb
opal-1.8.0 stdlib/rbconfig/sizeof.rb
opal-1.8.0.beta1 stdlib/rbconfig/sizeof.rb
opal-1.7.4 stdlib/rbconfig/sizeof.rb
opal-1.8.0.alpha1 stdlib/rbconfig/sizeof.rb
opal-1.7.3 stdlib/rbconfig/sizeof.rb
opal-1.7.2 stdlib/rbconfig/sizeof.rb
opal-1.7.1 stdlib/rbconfig/sizeof.rb
opal-1.7.0 stdlib/rbconfig/sizeof.rb
opal-1.7.0.rc1 stdlib/rbconfig/sizeof.rb
opal-1.6.1 stdlib/rbconfig/sizeof.rb
opal-1.6.0 stdlib/rbconfig/sizeof.rb
opal-1.6.0.rc1 stdlib/rbconfig/sizeof.rb
opal-1.6.0.alpha1 stdlib/rbconfig/sizeof.rb
opal-1.5.1 stdlib/rbconfig/sizeof.rb
opal-1.5.0 stdlib/rbconfig/sizeof.rb
opal-1.5.0.rc1 stdlib/rbconfig/sizeof.rb
opal-1.4.1 stdlib/rbconfig/sizeof.rb