[ruby-dev:51057] [Ruby master Bug#8744] SIZEOF_UNSIGNED___INT128

From: merch-redmine@...
Date: 2021-04-26 19:51:15 UTC
List: ruby-dev #51057
Issue #8744 has been updated by jeremyevans0 (Jeremy Evans).

Backport deleted (1.9.3: UNKNOWN, 2.0.0: UNKNOWN)
Status changed from Open to Closed

This appears to have been addressed between Ruby 2.2 and 2.3. `SIZEOF_UINT128_T` doesn't seem to be defined in Ruby 2.3, but in 2.4 and later versions, I'm seeing `#define SIZEOF_UINT128_T SIZEOF___INT128` and `#define SIZEOF___INT128 16`.

----------------------------------------
Bug #8744: SIZEOF_UNSIGNED___INT128
https://bugs.ruby-lang.org/issues/8744#change-91692

* Author: akr (Akira Tanaka)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 2.1.0dev (2013-08-06 trunk 42393) [x86_64-linux]
----------------------------------------
気がついたのですが、config.h で、SIZEOF_UINT128_T の定義として
SIZEOF_UNSIGNED___INT128 が使われるのですが、
定義されないようです。

% grep INT128 .ext/include/x86_64-linux/ruby/config.h
#define SIZEOF___INT128 16
#define HAVE_INT128_T 1
#define SIZEOF_INT128_T SIZEOF___INT128
#define HAVE_UINT128_T 1
#define SIZEOF_UINT128_T SIZEOF_UNSIGNED___INT128
% ./ruby -v
ruby 2.1.0dev (2013-08-06 trunk 42393) [x86_64-linux]




-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next