]> granicus.if.org Git - strace/commit
Simplify print_lld_from_low_high_val ifdefery
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Dec 2016 17:06:12 +0000 (17:06 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Dec 2016 17:06:12 +0000 (17:06 +0000)
commit8990b601c264e75be8e4a8f797944ca19bc40af1
tree8b96e7d4e2e6267c5ab7c1fd33ffafe86477e3e7
parent4e29ada8464ea30ae43ae42a389c5237e49e66c7
Simplify print_lld_from_low_high_val ifdefery

The demise of HAVE_STRUCT_TCB_EXT_ARG opens the way for a simpler
implementation.

* io.c (print_lld_from_low_high_val): Merge [SIZEOF_LONG > 4
&& SIZEOF_LONG == SIZEOF_LONG_LONG]
and [SIZEOF_KERNEL_LONG_T > SIZEOF_LONG] cases
into a single [SIZEOF_KERNEL_LONG_T > 4] case.
[SIZEOF_KERNEL_LONG_T == 4]: Use direct casts to long long
instead of zero_extend_signed_to_ull.
io.c