/* * Non-existant functions to indicate usage errors at link time * (or compile-time if the compiler implements __compiletime_error().
*/ externvoid __cmpxchg_wrong_size(void)
__compiletime_error("Bad argument size for cmpxchg");
/* * Constants for operation sizes. On 32-bit, the 64-bit size it set to * -1 because sizeof will never return -1, thereby making those switch * case statements guaranteeed dead code which the compiler will * eliminate, and allowing the "missing symbol in the default case" to * indicate a usage error.
*/ #define __X86_CASE_B 1 #define __X86_CASE_W 2 #define __X86_CASE_L 4 #ifdef __x86_64__ #define __X86_CASE_Q 8 #else #define __X86_CASE_Q -1 /* sizeof will never return -1 */ #endif
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.