Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ShInstructions.hpp

00001 // Sh: A GPU metaprogramming language.
00002 //
00003 // Copyright 2003-2005 Serious Hack Inc.
00004 // 
00005 // This software is provided 'as-is', without any express or implied
00006 // warranty. In no event will the authors be held liable for any damages
00007 // arising from the use of this software.
00008 // 
00009 // Permission is granted to anyone to use this software for any purpose,
00010 // including commercial applications, and to alter it and redistribute it
00011 // freely, subject to the following restrictions:
00012 // 
00013 // 1. The origin of this software must not be misrepresented; you must
00014 // not claim that you wrote the original software. If you use this
00015 // software in a product, an acknowledgment in the product documentation
00016 // would be appreciated but is not required.
00017 // 
00018 // 2. Altered source versions must be plainly marked as such, and must
00019 // not be misrepresented as being the original software.
00020 // 
00021 // 3. This notice may not be removed or altered from any source
00022 // distribution.
00024 #ifndef SHINSTRUCTIONS_HPP
00025 #define SHINSTRUCTIONS_HPP
00026 
00027 #include "ShDllExport.hpp"
00028 #include "ShVariable.hpp"
00029 
00030 namespace SH {
00031 
00039 SH_DLLEXPORT
00040 void shASN(ShVariable& dest, const ShVariable& src);
00041 //void shNEG(ShVariable& dest, const ShVariable& src);
00042 SH_DLLEXPORT
00043 void shADD(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00044 SH_DLLEXPORT
00045 void shMUL(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00046 SH_DLLEXPORT
00047 void shDIV(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00048 
00049 SH_DLLEXPORT
00050 void shSLT(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00051 SH_DLLEXPORT
00052 void shSLE(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00053 SH_DLLEXPORT
00054 void shSGT(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00055 SH_DLLEXPORT
00056 void shSGE(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00057 SH_DLLEXPORT
00058 void shSEQ(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00059 SH_DLLEXPORT
00060 void shSNE(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00061 
00062 SH_DLLEXPORT
00063 void shABS(ShVariable& dest, const ShVariable& a);
00064 SH_DLLEXPORT
00065 void shACOS(ShVariable& dest, const ShVariable& a);
00066 SH_DLLEXPORT
00067 void shASIN(ShVariable& dest, const ShVariable& a);
00068 SH_DLLEXPORT
00069 void shATAN(ShVariable& dest, const ShVariable& a);
00070 SH_DLLEXPORT
00071 void shATAN2(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00072 SH_DLLEXPORT
00073 void shCBRT(ShVariable& dest, const ShVariable& a);
00074 SH_DLLEXPORT
00075 void shCEIL(ShVariable& dest, const ShVariable& a);
00076 SH_DLLEXPORT
00077 void shCOS(ShVariable& dest, const ShVariable& a);
00078 SH_DLLEXPORT
00079 void shCMUL(ShVariable& dest, const ShVariable& a);
00080 SH_DLLEXPORT
00081 void shCSUM(ShVariable& dest, const ShVariable& a);
00082 SH_DLLEXPORT
00083 void shDOT(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00084 SH_DLLEXPORT
00085 void shDX(ShVariable& dest, const ShVariable& a);
00086 SH_DLLEXPORT
00087 void shDY(ShVariable& dest, const ShVariable& a);
00088 SH_DLLEXPORT
00089 void shEXP(ShVariable& dest, const ShVariable& a);
00090 SH_DLLEXPORT
00091 void shEXP2(ShVariable& dest, const ShVariable& a);
00092 SH_DLLEXPORT
00093 void shEXP10(ShVariable& dest, const ShVariable& a);
00094 SH_DLLEXPORT
00095 void shFLR(ShVariable& dest, const ShVariable& a);
00096 SH_DLLEXPORT
00097 void shFRAC(ShVariable& dest, const ShVariable& a);
00098 SH_DLLEXPORT
00099 void shLIT(ShVariable& dest, const ShVariable& a);
00100 SH_DLLEXPORT
00101 void shLOG(ShVariable& dest, const ShVariable& a);
00102 SH_DLLEXPORT
00103 void shLOG2(ShVariable& dest, const ShVariable& a);
00104 SH_DLLEXPORT
00105 void shLOG10(ShVariable& dest, const ShVariable& a);
00106 SH_DLLEXPORT
00107 void shLRP(ShVariable& dest, const ShVariable& alpha,
00108            const ShVariable& a, const ShVariable& b);
00109 SH_DLLEXPORT
00110 void shMAD(ShVariable& dest, const ShVariable& a,
00111            const ShVariable& b, const ShVariable& c);
00112 SH_DLLEXPORT
00113 void shMAX(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00114 SH_DLLEXPORT
00115 void shMIN(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00116 SH_DLLEXPORT
00117 void shMOD(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00118 SH_DLLEXPORT
00119 void shPOW(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00120 SH_DLLEXPORT
00121 void shRCP(ShVariable& dest, const ShVariable& a);
00122 SH_DLLEXPORT
00123 void shRND(ShVariable& dest, const ShVariable& a);
00124 SH_DLLEXPORT
00125 void shRSQ(ShVariable& dest, const ShVariable& a);
00126 SH_DLLEXPORT
00127 void shSGN(ShVariable& dest, const ShVariable& a);
00128 SH_DLLEXPORT
00129 void shSIN(ShVariable& dest, const ShVariable& a);
00130 SH_DLLEXPORT
00131 void shSQRT(ShVariable& dest, const ShVariable& a);
00132 SH_DLLEXPORT
00133 void shTAN(ShVariable& dest, const ShVariable& a);
00134 
00135 SH_DLLEXPORT
00136 void shNORM(ShVariable& dest, const ShVariable& a);
00137 SH_DLLEXPORT
00138 void shXPD(ShVariable& dest, const ShVariable& a, const ShVariable& b);
00139 
00140 SH_DLLEXPORT
00141 void shCOND(ShVariable& dest, const ShVariable& cond,
00142             const ShVariable& a, const ShVariable& b);
00143 SH_DLLEXPORT
00144 void shKIL(const ShVariable& cond);
00145 SH_DLLEXPORT
00146 void shRET(const ShVariable& cond);
00147 
00150 }
00151 
00152 #endif

Generated on Thu Apr 21 17:32:47 2005 for Sh by  doxygen 1.4.2