Date: Thu, 23 Dec 2004 11:31:23 -0800 From: Sean McNeil <sean@mcneil.com> To: amd64@freebsd.org Subject: what is the proper asm spec for xchg Message-ID: <1103830283.53421.3.camel@server.mcneil.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
I'm looking at why audio/sdl_mixer will not compile and I see that
devel/sdl12 has an include with
#elif defined(__GNUC__) && defined(__x86_64__)
static __inline__ Uint16 SDL_Swap16(Uint16 x)
{
__asm__("xchgb %b0,%h0" : "=q" (x) : "0" (x));
return x;
}
This appears to be incorrect as it is giving errors when compiled. Does
anyone more conversant with asm directives for amd64 have an idea what
this should be?
Thanks,
Sean
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)
iD8DBQBByx0LyQsGN30uGE4RAlB9AJ9ioAMpi7hPFrSt2LiNp5f+XCXD1wCgxVED
QSimioBcab3D1zJvh7XlOww=
=p3sd
-----END PGP SIGNATURE-----
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1103830283.53421.3.camel>
