BoolVec.hh revision 12492
111208Sjoseph.gross@amd.com/* 211208Sjoseph.gross@amd.com * Copyright (c) 2015 Advanced Micro Devices, Inc. 311208Sjoseph.gross@amd.com * All rights reserved. 411208Sjoseph.gross@amd.com * 511208Sjoseph.gross@amd.com * The license below extends only to copyright in the software and shall 611208Sjoseph.gross@amd.com * not be construed as granting a license to any other intellectual 711208Sjoseph.gross@amd.com * property including but not limited to intellectual property relating 811208Sjoseph.gross@amd.com * to a hardware implementation of the functionality of the software 911208Sjoseph.gross@amd.com * licensed hereunder. You may use the software subject to the license 1011208Sjoseph.gross@amd.com * terms below provided that you ensure that this notice is replicated 1111208Sjoseph.gross@amd.com * unmodified and in its entirety in all distributions of the software, 1211208Sjoseph.gross@amd.com * modified or unmodified, in source code or in binary form. 1311208Sjoseph.gross@amd.com * 1411208Sjoseph.gross@amd.com * Redistribution and use in source and binary forms, with or without 1511208Sjoseph.gross@amd.com * modification, are permitted provided that the following conditions are 1611208Sjoseph.gross@amd.com * met: redistributions of source code must retain the above copyright 1711208Sjoseph.gross@amd.com * notice, this list of conditions and the following disclaimer; 1811208Sjoseph.gross@amd.com * redistributions in binary form must reproduce the above copyright 1911208Sjoseph.gross@amd.com * notice, this list of conditions and the following disclaimer in the 2011208Sjoseph.gross@amd.com * documentation and/or other materials provided with the distribution; 2111208Sjoseph.gross@amd.com * neither the name of the copyright holders nor the names of its 2211208Sjoseph.gross@amd.com * contributors may be used to endorse or promote products derived from 2311208Sjoseph.gross@amd.com * this software without specific prior written permission. 2411208Sjoseph.gross@amd.com * 2511208Sjoseph.gross@amd.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 2611208Sjoseph.gross@amd.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2711208Sjoseph.gross@amd.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2811208Sjoseph.gross@amd.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2911208Sjoseph.gross@amd.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 3011208Sjoseph.gross@amd.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 3111208Sjoseph.gross@amd.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 3211208Sjoseph.gross@amd.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 3311208Sjoseph.gross@amd.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 3411208Sjoseph.gross@amd.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 3511208Sjoseph.gross@amd.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3611208Sjoseph.gross@amd.com * 3711208Sjoseph.gross@amd.com * Authors: Brad Beckmann 3811208Sjoseph.gross@amd.com */ 3911208Sjoseph.gross@amd.com 4012492Sodanrc@yahoo.com.br#ifndef __MEM_RUBY_COMMON_BOOLVEC_HH__ 4112492Sodanrc@yahoo.com.br#define __MEM_RUBY_COMMON_BOOLVEC_HH__ 4212492Sodanrc@yahoo.com.br 4311208Sjoseph.gross@amd.com#include <ostream> 4411208Sjoseph.gross@amd.com#include <vector> 4511208Sjoseph.gross@amd.com 4611208Sjoseph.gross@amd.comtypedef std::vector<bool> BoolVec; 4711208Sjoseph.gross@amd.com 4811208Sjoseph.gross@amd.comstd::ostream& operator<<(std::ostream& os, const std::vector<bool>& myvector); 4912492Sodanrc@yahoo.com.br 5012492Sodanrc@yahoo.com.br#endif //__MEM_RUBY_COMMON_BOOLVEC_HH__ 51