2015-12-16 00:31:54 -05:00
|
|
|
# frozen_string_literal: false
|
2013-11-18 09:19:16 -05:00
|
|
|
$srcs = %w[sizes.c]
|
2014-07-05 03:02:36 -04:00
|
|
|
$distcleanfiles.concat($srcs)
|
2015-06-16 06:22:16 -04:00
|
|
|
|
2015-06-03 08:14:21 -04:00
|
|
|
check_sizeof('int_least8_t')
|
|
|
|
check_sizeof('int_least16_t')
|
|
|
|
check_sizeof('int_least32_t')
|
|
|
|
check_sizeof('int_least64_t')
|
|
|
|
check_sizeof('int_fast8_t')
|
|
|
|
check_sizeof('int_fast16_t')
|
|
|
|
check_sizeof('int_fast32_t')
|
|
|
|
check_sizeof('int_fast64_t')
|
|
|
|
check_sizeof('intmax_t')
|
|
|
|
check_sizeof('sig_atomic_t', %w[signal.h])
|
|
|
|
check_sizeof('wchar_t')
|
|
|
|
check_sizeof('wint_t', %w[wctype.h])
|
|
|
|
check_sizeof('wctrans_t', %w[wctype.h])
|
|
|
|
check_sizeof('wctype_t', %w[wctype.h])
|
2015-06-16 06:22:16 -04:00
|
|
|
check_sizeof('_Bool')
|
|
|
|
check_sizeof('long double')
|
|
|
|
check_sizeof('float _Complex')
|
|
|
|
check_sizeof('double _Complex')
|
|
|
|
check_sizeof('long double _Complex')
|
|
|
|
check_sizeof('float _Imaginary')
|
|
|
|
check_sizeof('double _Imaginary')
|
|
|
|
check_sizeof('long double _Imaginary')
|
|
|
|
check_sizeof('__int128') # x86_64 ABI (optional)
|
|
|
|
check_sizeof('__float128') # x86_64 ABI (optional)
|
|
|
|
check_sizeof('_Decimal32') # x86_64 ABI
|
|
|
|
check_sizeof('_Decimal64') # x86_64 ABI
|
|
|
|
check_sizeof('_Decimal128') # x86_64 ABI
|
|
|
|
check_sizeof('__m64') # x86_64 ABI (optional)
|
|
|
|
check_sizeof('__m128') # x86_64 ABI (optional)
|
2015-06-17 07:24:00 -04:00
|
|
|
check_sizeof('__float80') # gcc x86
|
2015-06-16 06:22:16 -04:00
|
|
|
|
2013-11-18 09:19:16 -05:00
|
|
|
create_makefile('rbconfig/sizeof')
|