> > >   mReservedMemBitmap &= (UINT32)(~MapInfo->ReservedMemBitmap);
> >
> > I'd expect modern compilers optimize that to a single instruction,
> 
> You mean something along the lines of
> 
>   andl %reg, mReservedMemBitmap(%rip)
> 
> right?

Yes.

> > but
> > yes, it's not guaranteed to happen, the compiler can choose to generate
> > a series of load + and + store instructions instead.
> 
> That is sadly all we have on ARM, unless you use LSE atomics, which
> are optional in the architecture so we never use those in EDK2.

ARM means v7 only or both v7+v8?

take care,
  Gerd



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#107089): https://edk2.groups.io/g/devel/message/107089
Mute This Topic: https://groups.io/mt/100233359/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to