[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf macro to get integer sizes in bits
From: |
Russ Allbery |
Subject: |
Re: autoconf macro to get integer sizes in bits |
Date: |
Tue, 30 Jun 2009 16:20:36 -0700 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) |
address@hidden writes:
> I'm wondering about the existence of a macro that sets integer sizes
> in bits. We'd like to define variables to AC_SUBST into header.in
> files to set int32_t, int64_t, etc. based on the results of the
> desired macro.
>
> I'm aware of the existence of AC_CHECK_SIZEOF that returns integer
> sizes in bytes. If we have to write the macro ourselves we'd probably
> use these. I'm just wondering if someone has already done the work to
> get the bit sizes back. One macro call that sets results for long,
> long long, etc. would be ideal.
Are AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, etc. what you
want? They're regular macros in the current version of Autoconf.
--
Russ Allbery (address@hidden) <http://www.eyrie.org/~eagle/>