1/* 2 * Copyright 2010-2013 Intel Corporation. 3 * 4 * This library is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU Lesser General Public License as published 6 * by the Free Software Foundation, version 2.1. 7 * 8 * This library is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * Lesser General Public License for more details. 12 * 13 * You should have received a copy of the GNU Lesser General Public 14 * License along with this library; if not, write to the Free Software 15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 16 * 02110-1301 USA. 17 * 18 * Disclaimer: The codes contained in these modules may be specific 19 * to the Intel Software Development Platform codenamed Knights Ferry, 20 * and the Intel product codenamed Knights Corner, and are not backward 21 * compatible with other Intel products. Additionally, Intel will NOT 22 * support the codes or instruction set in future products. 23 * 24 * Intel offers no warranty of any kind regarding the code. This code is 25 * licensed on an "AS IS" basis and Intel is not obligated to provide 26 * any support, assistance, installation, training, or other services 27 * of any kind. Intel is also not obligated to provide any updates, 28 * enhancements or extensions. Intel specifically disclaims any warranty 29 * of merchantability, non-infringement, fitness for any particular 30 * purpose, and any other warranty. 31 * 32 * Further, Intel disclaims all liability of any kind, including but 33 * not limited to liability for infringement of any proprietary rights, 34 * relating to the use of the code, even if Intel is notified of the 35 * possibility of such liability. Except as expressly stated in an Intel 36 * license agreement provided with this code and agreed upon with Intel, 37 * no license, express or implied, by estoppel or otherwise, to any 38 * intellectual property rights is granted herein. 39 */ 40 41#ifndef _COIMACROS_COMMON_H 42#define _COIMACROS_COMMON_H 43 44/// @file common/COIMacros_common.h 45/// Commonly used macros 46 47// Note that UNUSUED_ATTR means that it is "possibly" unused, not "definitely". 48// This should compile out in release mode if indeed it is unused. 49 #define UNUSED_ATTR __attribute__((unused)) 50#ifndef UNREFERENCED_CONST_PARAM 51#define UNREFERENCED_CONST_PARAM(P) { void* x UNUSED_ATTR = \ 52 (void*)(uint64_t)P; \ 53 } 54#endif 55 56// This seems to work on everything. 57#ifndef UNREFERENCED_PARAM 58#define UNREFERENCED_PARAM(P) (P = P) 59#endif 60 61#ifndef SYMBOL_VERSION 62 63/* Linux support: */ 64 65 #define SYMBOL_VERSION( SYMBOL , VERSION ) SYMBOL ## VERSION 66 67#endif 68 69#endif /* _COIMACROS_COMMON_H */ 70