Messages in this thread | | | Date | Thu, 24 Jun 2004 09:41:04 -0400 | From | Ben Collins <> | Subject | Re: using gcc built-ins for bitops? |
| |
> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |