static inline wine_get_fs etc
meissner at suse.de
Thu Aug 10 06:10:51 CDT 2006
On Thu, Aug 10, 2006 at 12:53:58PM +0200, Alexandre Julliard wrote:
> Tijl Coosemans <tijl at ulyssis.org> writes:
> > I'm looking at include/wine/library.h and was wondering why the
> > wine_get_fs/gs/... are declared extern and not static like many other
> > functions in that file. Is there any particular reason I'm not seeing?
> It's because they are exported from libwine too.
> > Their __asm__ block is also missing __volatile__ I believe.
> I don't think that's needed, the segment registers can essentially be
> considered constant in 32-bit code.
The volatile is only needed if you cannot clearly model the dependencies
of the passed in and out variables.
Since the asm is pretty clear here, it is not necessary.
More information about the wine-devel