RTMpCpuIdToSetIndex-generic.cpp revision 5b281ba489ca18f0380d7efc7a5108b606cce449
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync/* $Id$ */
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync/** @file
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * IPRT - Multiprocessor, Generic RTMpCpuIdToSetIndex.
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync */
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync/*
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * Copyright (C) 2008 Sun Microsystems, Inc.
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync *
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * available from http://www.virtualbox.org. This file is free software;
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * you can redistribute it and/or modify it under the terms of the GNU
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * General Public License (GPL) as published by the Free Software
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync *
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * The contents of this file may alternatively be used under the terms
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * of the Common Development and Distribution License Version 1.0
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * VirtualBox OSE distribution, in which case the provisions of the
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * CDDL are applicable instead of those of the GPL.
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync *
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * You may elect to license modified versions of this file under the
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * terms and conditions of either the GPL or the CDDL or both.
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync *
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync * additional information or have any questions.
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync */
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync/*******************************************************************************
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync* Header Files *
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync*******************************************************************************/
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync#include <iprt/mp.h>
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsyncRTDECL(int) RTMpCpuIdToSetIndex(RTCPUID idCpu)
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync{
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync return idCpu != NIL_RTCPUID ? idCpu : -1;
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync}
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync
93916c9acad52e266a71eac82da1da3c2d23d4dbvboxsync