Re: using gcc built-ins for bitops?

From: Ben Collins
Date: Thu Jun 24 2004 - 11:03:53 EST


> Perhaps. It's not impossible that say gcc 3.5 will add a few more builtins
> even that then allow more functions to be converted, otoh that shouldn't be
> impossible to cope with. I'll have a look to see how it pans out.

You could have an asm-generic/bitops-builtin.h and arch's could #include
that after defining all the HAVE_BUILTIN_xxx macros they want. I suspect
not all architectures will get the most correct built-ins (e.g. the arch
may be able to optimize better than gcc's builtin is doing).

--
Debian - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/