bit fields
max haughton
maxhaton at gmail.com
Mon Aug 30 22:48:37 UTC 2021
On Monday, 30 August 2021 at 22:45:36 UTC, TheGag96 wrote:
> On Saturday, 28 August 2021 at 08:20:25 UTC, Walter Bright
> wrote:
>> 3. DasBetterC is not in a great place since it can't do
>> matching bit fields.
>
> I think I may be experiencing a bug in a betterC project of
> mine as a result of me assuming that `bitfields` is doing the
> same thing as gcc would...! Is there a way I can get things
> synced up on at least one platform in the meantime?
>
> I feel pretty in favor of having bit fields as a language
> feature, warts and all!
Read the assembly code/print bit patterns and make sure your code
is doing the right shifts.
The write unittests.
More information about the Digitalmars-d
mailing list