Re: autoconf macro to get integer sizes in bits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



johnwohlbier@xxxxxxxxx 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 (rra@xxxxxxxxxxxx)             <http://www.eyrie.org/~eagle/>


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux