X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcompiler%2Fcompiler.h;h=be229670fd127a5f89e9e9bc6b14e4a7cc48ddce;hb=d7d5abe98caeec82d784ce525e0444ff438acd46;hp=3601749003894974267a59e515db9a1cce6c8235;hpb=89f1301ed2b65cdb4730bb28c42428873a69faec;p=ccan diff --git a/ccan/compiler/compiler.h b/ccan/compiler/compiler.h index 36017490..be229670 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