X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcompiler%2Fcompiler.h;fp=ccan%2Fcompiler%2Fcompiler.h;h=be229670fd127a5f89e9e9bc6b14e4a7cc48ddce;hb=c4c5fed020ba44b9930119672a36a1cb33aff090;hp=3601749003894974267a59e515db9a1cce6c8235;hpb=8201ff8eec2f44e9612fea3ec280c8bd10b7300c;p=ccan-lca-2011.git diff --git a/ccan/compiler/compiler.h b/ccan/compiler/compiler.h index 3601749..be22967 100644 --- a/ccan/compiler/compiler.h +++ b/ccan/compiler/compiler.h @@ -4,20 +4,20 @@ #if HAVE_ATTRIBUTE_COLD /** - * UNLIKELY_FUNCTION_ATTRIBUTE - a function is unlikely to be called. + * COLD_ATTRIBUTE - a function is unlikely to be called. * * Used to mark an unlikely code path and optimize appropriately. * It is usually used on logging or error routines. * * Example: - * void UNLIKELY_FUNCTION_ATTRIBUTE moan(const char *reason) + * void COLD_ATTRIBUTE moan(const char *reason) * { * fprintf(stderr, "Error: %s (%s)\n", reason, strerror(errno)); * } */ -#define UNLIKELY_FUNCTION_ATTRIBUTE __attribute__((cold)) +#define COLD_ATTRIBUTE __attribute__((cold)) #else -#define UNLIKELY_FUNCTION_ATTRIBUTE +#define COLD_ATTRIBUTE #endif #if HAVE_ATTRIBUTE_PRINTF