asm vs __asm__
Torbjorn Granlund
tg at swox.com
Thu Dec 11 16:58:07 CET 2003
nisse at lysator.liu.se (Niels Möller) writes:
When GMP uses gcc style inline assembler in C files, like in
gmp-impl.h, "__asm__" is used in most places, but some use just "asm".
One reason for using __asm__ is that it makes it possible to compile
the code with gcc -std=c89 (which is useful for finding accidental
uses of Gnu C or c99 features). I don't know if there are any
drawbacks to "__asm__".
The idea is to use __asm__ consistently.
I'll fix the places I find with plain "asm".
--
Torbjörn
More information about the gmp-devel
mailing list