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>
next in thread | raw e-mail | index | archive | help
--=-mSKrG9YxHr1qj7qSXapG Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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" : "=3Dq" (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 --=-mSKrG9YxHr1qj7qSXapG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBByx0LyQsGN30uGE4RAlB9AJ9ioAMpi7hPFrSt2LiNp5f+XCXD1wCgxVED QSimioBcab3D1zJvh7XlOww= =p3sd -----END PGP SIGNATURE----- --=-mSKrG9YxHr1qj7qSXapG--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1103830283.53421.3.camel>