Boost logo

Boost :

Subject: Re: [boost] [predef] BOOST_ARCH_BITS_* feature request
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2015-09-16 15:15:26


2015-09-16 22:09 GMT+03:00 Rene Rivera <grafikrobot_at_[hidden]>:

> On Wed, Sep 16, 2015 at 2:05 PM, Antony Polukhin <antoshkka_at_[hidden]>
> wrote:
>
> > Hi,
> >
> > It looks like for low-level programming following macro could be really
> > useful:
> >
> > BOOST_ARCH_BITS_64
> > BOOST_ARCH_BITS_32
> > BOOST_ARCH_BITS_16 ?
> >
> > Predef also missing BOOST_ARCH_ARM_64, BOOST_ARCH_PPC_64.
> >
> > Boost.DLL really needs those macro for detecting bit's dependent
> > elf/macho/pe structures layout. Is it possible to add them?
> >
>
> Maybe.. If I knew what they are supposed to mean? I.e. can you explain what
> you mean by "bits dependent structures layout"?
>

BOOST_ARCH_BITS_* is mostly a macro for sizeof(void*).

In other words:
* define BOOST_ARCH_BITS_64 to 1 on BOOST_ARCH_x86_64, BOOST_ARCH_ARM_64,
BOOST_ARCH_PPC_64
* define BOOST_ARCH_BITS_32 to 1 on all other archs.

-- 
Best regards,
Antony Polukhin

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk