SIMD.h

00001 /*
00002  * Expression Template Matrix Library
00003  *
00004  * Copyright (C) 2004 - 2006 Ricky Lung <mtlung@users.sourceforge.net>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  *
00020  */
00021 
00022 
00023 #ifdef _MSC_VER
00024 #   pragma once
00025 #endif  // _MSC_VER
00026 
00027 #ifndef _EXMAT_SIMD_SIMD_H
00028 #define _EXMAT_SIMD_SIMD_H
00029 
00030 #include "../Config.h"
00031 
00032 
00033 #if EXMAT_ENABLE_SIMD
00034 #   include "SIMDAlignment.h"
00035 #   include "SIMDContainer.h"
00036 #   include "SIMDExpression.h"
00037 
00038 namespace exmat {
00039 namespace SIMD {
00040 
00041 extern void AutoDetect();
00042 
00043 #if EXMAT_ENABLE_SSE
00044 extern void EnableSSE(bool b);
00045 extern bool IsSSEEnabled();
00046 #endif  // EXMAT_ENABLE_SSE
00047 
00048 #if EXMAT_ENABLE_SSE2
00049 extern void EnableSSE2(bool b);
00050 extern bool IsSSE2Enabled();
00051 #endif  // EXMAT_ENABLE_SSE2
00052 
00053 };  // namespace SIMD
00054 }   // namespace exmat
00055 
00056 #endif  // EXMAT_ENABLE_SIMD
00057 
00058 
00059 #endif  // _EXMAT_SIMD_SIMD_H

Generated on Sat May 6 23:12:00 2006 for Exmat by  doxygen 1.4.6-NO