Messages in this thread | | | Date | Wed, 28 Aug 2002 10:45:19 -0500 (CDT) | From | Robin Holt <> | Subject | Re: atomic64_t proposal |
| |
I do like the atomic_inc, atomic_dec, etc being able to handle either type. While producing code, I can do a simple check at the beginning of the block and define the appropriate type for a particular architecture.
For instance:
#if ARCH_WORD_SIZE == 8 atomic64_t my_atomic; #else atomic_t my_atomic; #endif
Without it, I end up doing alot of other magic. I don't see a problem with having the #defines versus the inlines. Why have two chunks of code which do exactly the same operations with only type differences?
Robin Holt
- 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/
| |