blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 5
146
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
7
| license_type
stringclasses 2
values | repo_name
stringlengths 6
79
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 4
values | visit_date
timestamp[us] | revision_date
timestamp[us] | committer_date
timestamp[us] | github_id
int64 5.07k
426M
⌀ | star_events_count
int64 0
27
| fork_events_count
int64 0
12
| gha_license_id
stringclasses 3
values | gha_event_created_at
timestamp[us] | gha_created_at
timestamp[us] | gha_language
stringclasses 6
values | src_encoding
stringclasses 26
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 1
class | length_bytes
int64 20
6.28M
| extension
stringclasses 20
values | content
stringlengths 20
6.28M
| authors
listlengths 1
16
| author_lines
listlengths 1
16
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5e5cd79972be053f292e6c610a4b3d9b1d2d7af9 | 29f0a6c56e3c4528f64c3a1ad18fc5f074ae1146 | /Praktikum Info2/Aufgabenblock_3/FzgVerhalten.cpp | abd967714e7c0c12312b2f8b3cf7a8a041826945 | [] | no_license | JohN-D/Info-2-Praktikum | 8ccb0348bedf38a619a39b17b0425d6b4c16a72d | c11a274e9c4469a31f40d0abec2365545344b534 | refs/heads/master | 2021-01-01T18:34:31.347062 | 2011-10-19T20:18:47 | 2011-10-19T20:18:47 | 2,608,736 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 302 | cpp | #include "FzgVerhalten.h"
#include "Fahrzeug.h"
#include "PKW.h"
#include "Fahrrad.h"
#include "AktivesVO.h"
#include "Weg.h"
FzgVerhalten::FzgVerhalten(Weg* pWeg)
{
p_pWeg=pWeg;
}
FzgVerhalten::~FzgVerhalten(void)
{
}
Weg* FzgVerhalten::getWegpointer()
{
return p_pWeg;
} | [
"[email protected]"
] | [
[
[
1,
23
]
]
] |
8bff208a8ef5e9fcd192f8d10a43b7e7af190298 | 15732b8e4190ae526dcf99e9ffcee5171ed9bd7e | /SRC/Model/ExpressionParse.cpp | 9db7a98dcffebb1482ae1857279761fed8c44127 | [] | no_license | clovermwliu/whutnetsim | d95c07f77330af8cefe50a04b19a2d5cca23e0ae | 924f2625898c4f00147e473a05704f7b91dac0c4 | refs/heads/master | 2021-01-10T13:10:00.678815 | 2010-04-14T08:38:01 | 2010-04-14T08:38:01 | 48,568,805 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 27,556 | cpp |
#include "FileScript.h"
#include "ExpressionParse.h"
//-----------------------------------------------------------------------------------------
// CExpressionParse的实现
//-----------------------------------------------------------------------------------------
CExpressionParse::CExpressionParse()
/*
构造函数
*/
:dwCur_Value(0),Str_Cur_Identifier(""),Cur_Element_Species(BEGININI),CErrorHandler(),
RevelantToNode(false), node(NULL)
{
}
CExpressionParse::CExpressionParse(const std::string& _expression,
const map< string, double>& _parameter_table,
const map< string,void*>& _remote_call_table,
bool revelantToNode)
: parameter_table( _parameter_table ), str_expression( _expression ),pCurrent_Char(str_expression.c_str()),
dwCur_Value(0),Str_Cur_Identifier(""),Cur_Element_Species(BEGININI),CErrorHandler(),
remote_call_addrs_table( _remote_call_table), RevelantToNode(revelantToNode), node(NULL)
/*
构造函数
*/
{
ParseElementThenGotoNext();
}
CExpressionParse::~CExpressionParse(void)
{
}
CExpressionParse::CExpressionParse(const CExpressionParse& rhs)
/*
由于使用pCurrent_Char指针,表达式对象复制需要重定位该指针
*/
{
parameter_table=rhs.parameter_table;
remote_call_addrs_table=rhs.remote_call_addrs_table;
dwCur_Value=rhs.dwCur_Value;
Str_Cur_Identifier=rhs.Str_Cur_Identifier;
Cur_Element_Species=rhs.Cur_Element_Species;
SetLastError(ERROR_EXP_SUCCESS);
SetLastErrorStr("");
if (!rhs.str_expression.empty()){
str_expression=rhs.str_expression;
pCurrent_Char=str_expression.c_str();
ParseElementThenGotoNext();
}
RevelantToNode = false;
node = NULL;
}
CExpressionParse& CExpressionParse::operator=(const CExpressionParse& rhs)
/*
由于使用pCurrent_Char指针,表达式对象复制需要重定位该指针
*/
{
parameter_table=rhs.parameter_table;
remote_call_addrs_table=rhs.remote_call_addrs_table;
dwCur_Value=rhs.dwCur_Value;
Str_Cur_Identifier=rhs.Str_Cur_Identifier;
Cur_Element_Species=rhs.Cur_Element_Species;
SetLastError(ERROR_EXP_SUCCESS);
SetLastErrorStr("");
if (!rhs.str_expression.empty()){
str_expression=rhs.str_expression;
pCurrent_Char=str_expression.c_str();
ParseElementThenGotoNext();
}
RevelantToNode = false;
node = NULL;
return *this;
}
void CExpressionParse::clear()
/*
描述:初始化函数
*/
{
parameter_table.clear();
remote_call_addrs_table.clear();
str_expression="";
pCurrent_Char=NULL;
dwCur_Value=0;
Str_Cur_Identifier="";
Cur_Element_Species=BEGININI;
SetLastError(ERROR_EXP_SUCCESS);
SetLastErrorStr("");
//ParseElementThenGotoNext();
}
void CExpressionParse::Initial(const std::string& _expression ,
const map< string, double>& _parameter_table,
const map< string,void*>& _remote_call_table)
/*
描述:初始化函数
*/
{
parameter_table= _parameter_table;
remote_call_addrs_table= _remote_call_table;
str_expression= _expression;
pCurrent_Char=str_expression.c_str();
dwCur_Value=0;
Str_Cur_Identifier="";
Cur_Element_Species=BEGININI;
SetLastError(ERROR_EXP_SUCCESS);
SetLastErrorStr("");
ParseElementThenGotoNext();
}
void CExpressionParse:: ParseElementThenGotoNext()
/*
描述:分析当前元素的属性,设置Cur_Element_Species,Str_Cur_Identifier和dwCur_Value,同时使pCurrent_Char指向下一个元素的首字符
*/
{
/*if (!pCurrent_Char){
if (error_code==ERROR_EXP_SUCCESS)
SetLastError(ERROR_EXP_NO_EXP);
Cur_Element_Species = FINISHED;
return;
}*/
assert(pCurrent_Char);
while(true){
if (static_cast<int>(*pCurrent_Char)>256 || static_cast<int>(*pCurrent_Char)<0){
if (GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_NUMBER_FORMAT_INVALID);
SetErrorStr(pCurrent_Char);
}
++pCurrent_Char;
break;
}
if( isspace( *pCurrent_Char)) {
++pCurrent_Char; //当前字符是是空格、制表符或换行符,继续
continue;
}else if( *pCurrent_Char == ADD_OR_POSITIVE || *pCurrent_Char == SUBTRACT_OR_NEGATIVE ||
*pCurrent_Char == MULTIPLY || *pCurrent_Char == DIVIDE ||*pCurrent_Char == POWER ||
*pCurrent_Char == LEFT_BRACKET || *pCurrent_Char == RIGHT_BRACKET ||
*pCurrent_Char == PARAMETER_SEPERATOR ){
Cur_Element_Species = ( ElementSpecies )*pCurrent_Char; //发现运算符、括号或","
++pCurrent_Char ;
}else if( isalpha( *pCurrent_Char ) ){
Cur_Element_Species = IDENTIFIER; //当前遇到英文字母:当为英文字母a-z或A-Z时,返回非零值,否则返回零
Str_Cur_Identifier.clear();
do {
Str_Cur_Identifier += (*pCurrent_Char);
++pCurrent_Char;
if (static_cast<int>(*pCurrent_Char)>256 || static_cast<int>(*pCurrent_Char)<0){
if (GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_NUMBER_FORMAT_INVALID);
SetErrorStr(pCurrent_Char);
}
++pCurrent_Char;
break;
}
} while(isalpha( *pCurrent_Char ) || isdigit( *pCurrent_Char )|| CFileScript::isValidSymbol(*pCurrent_Char)); //取字母+数字的混合表达式,直到既非字母又非数字的符号结束
}else if( *pCurrent_Char == 0){
Cur_Element_Species = FINISHED; //遇到字符串结束符则结束
}else{
Cur_Element_Species = NUMBER; //遇到数字,将数字转为数值形式存放到mValue,包括了诸如 .3这样的小数
istringstream iss( pCurrent_Char );
iss >>dwCur_Value;
if( ! iss ){
if (GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_NUMBER_FORMAT_INVALID);
SetErrorStr(pCurrent_Char);
}
++pCurrent_Char;
break;
}
pCurrent_Char += iss.rdbuf()->pubseekoff( 0, ios::cur, ios::in );
}
break;
}
}
Error_str CExpressionParse::GetLastErrorEx()
/*
描述:取表达式计算错误的第一个触发原因,返回其原因文本解释
#define ERROR_EXP_SUCCESS 0x00000000
#define ERROR_EXP_DIVISOR_IS_ZERO 0x00000001
#define ERROR_EXP_SIGN_UNKNOWN 0x00000002
#define ERROR_EXP_INVAILD_PAPAMETER 0x00000003
#define ERROR_EXP_MISSING_RIGHT_BRACKET 0x00000004
#define ERROR_EXP_IDENTIFIER_INCLUDE_RESERVECHARS 0x00000005
#define ERROR_EXP_INVAILD_PAPAMETER_IN_SUBFUNCS 0x00000006
#define ERROR_EXP_USE_NONSUPPORT_FUNCS 0x00000007
#define ERROR_EXP_CALL_SUBFUNCS_FAIL 0x00000008
#define ERROR_EXP_NO_EXP 0x00000009
#define ERROR_EXP_MISSING_OPERATOR 0x0000000a
#define ERROR_EXP_NUMBER_FORMAT_INVALID 0x0000000b
#define ERROR_EXP_OVERFLOW 0x0000000c
*/
{
switch (GetLastError())
{
case ERROR_EXP_SUCCESS:
return "SUCCESS";
case ERROR_EXP_DIVISOR_IS_ZERO:
return "Divisor is zero. Near by:"+GetLastErrorStr();
case ERROR_EXP_SIGN_UNKNOWN:
return "Sign of expression is unknown. Near by "+GetLastErrorStr();
case ERROR_EXP_INVAILD_PAPAMETER:
return "Expression includes invalid parameter. Near by "+GetLastErrorStr();
case ERROR_EXP_MISSING_RIGHT_BRACKET:
return "Missing right bracket. Near by "+GetLastErrorStr();
case ERROR_EXP_IDENTIFIER_INCLUDE_RESERVECHARS:
return "Expression includes reserve character. Near by "+GetLastErrorStr();
case ERROR_EXP_INVAILD_PAPAMETER_IN_SUBFUNCS:
return "Sub-Functions includes invalid parameters. Near by "+GetLastErrorStr();
case ERROR_EXP_USE_NONSUPPORT_FUNCS:
return "Expression includes non-support sub-function:"+GetLastErrorStr();
case ERROR_EXP_CALL_SUBFUNCS_FAIL:
return "Parameters don't match on sub-functions's request @:"+GetLastErrorStr();
case ERROR_EXP_NO_EXP:
return "No expression in this object";
case ERROR_EXP_MISSING_OPERATOR:
return "Missing operator. Near by "+GetLastErrorStr();
case ERROR_EXP_NUMBER_FORMAT_INVALID:
return "Expression's format error. Near by "+GetLastErrorStr();
case ERROR_EXP_OVERFLOW:
return "Overflow!";
default:
return "UNKNOWN_ERROR";
}
}
void CExpressionParse::SetErrorStr (const char* p)
/*
*/
{
SetLastErrorStr("");
const char* q=p;
int i=0;
while ((q-i)!=str_expression.c_str() && (isalpha( *(q-i)) || isdigit( *(q-i) ))){
i++;
}
string s(q-i);
SetLastErrorStr(s);
}
bool CExpressionParse::SetParamValue(const string& param, double value)
/*
描述:更新参数列表的值
*/
{
map<string,double>::iterator iter=parameter_table.find( param);
if( iter == parameter_table.end() )//没有这个参数
return false;
iter->second=value;
return true;
}
bool CExpressionParse::SetRemoteCallAddrs(const string& param, void* p)
/*
描述:更新远程调用函数的地址
*/
{
map<string,void*>::iterator iter=remote_call_addrs_table.find( param);
if( iter == remote_call_addrs_table.end() )//没有这个参数
return false;
iter->second=p;
return true;
}
int CExpressionParse::GetCommonParamName(vector<string>& param_name)
/*
描述:获得当前表达式对象的普通参数个数及参数名
参数:[OUT] param_name带出初始化好的参数名
*/
{
map<string,double>::iterator iter=parameter_table.begin();
while (iter!=parameter_table.end()){
param_name.push_back(iter->first);
++iter;
}
return static_cast<int> (parameter_table.size());
}
int CExpressionParse:: GetRemoteParamName(vector<string>& param_name)
/*
描述:获得当前表达式对象的远程赋值参数个数及参数名
参数:[OUT] param_name带出初始化好的远程赋值参数名
*/
{
map<string,void*>::iterator iter=remote_call_addrs_table.begin();
while (iter!=remote_call_addrs_table.end()){
param_name.push_back(iter->first);
++iter;
}
return static_cast<int> (remote_call_addrs_table.size());
}
double CExpressionParse::GetExpValue()
/*
描述:返回一个表达式的值,是一个递归函数的入口
备注:这个入口在以下情况被触发:
(1) 完整的表达式被第一次解析时;
*/
{
if (str_expression.empty()){
SetLastError(ERROR_EXP_NO_EXP);
return DEFAULT_VALUE;
}
pCurrent_Char=str_expression.c_str();
ParseElementThenGotoNext();
SetLastError(ERROR_EXP_SUCCESS);
SetLastErrorStr("");
double result = GetExpValueByAddOrMinusExp( GetExpValueFromSubRight() );
if (Cur_Element_Species != FINISHED && GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_MISSING_OPERATOR);
SetErrorStr(pCurrent_Char-1);
}
return result;
}
double CExpressionParse::GetSubExpValue()
/*
描述:返回一个表达式的值,是一个递归函数的入口
备注:这个入口在以下情况被触发:
(1) 一个包含在( )内的子表达式时,see to GetElementValue()
(2) 一个子函数的参数是一子表达式时,see to GetParameterValueForSupportFuncs()
*/
{
if (GetLastError()==ERROR_EXP_SUCCESS){
SetErrorStr(pCurrent_Char-1);
}
double result = GetExpValueByAddOrMinusExp( GetExpValueFromSubRight() );
return result;
}
double CExpressionParse::GetExpValueByAddOrMinusExp( const double& left )
/*
描述:优先级最低的计算函数:计算加减法。传入+/-号的左值,调用GetExpValueFromSubRight()函数获得+/-号的右值,计算和或差
参数:left: +/-号的左值
*/
{
double result = left;
if( Cur_Element_Species == ADD_OR_POSITIVE ){
ParseElementThenGotoNext();
result = GetExpValueByAddOrMinusExp( left + GetExpValueFromSubRight() );
}else if( Cur_Element_Species == SUBTRACT_OR_NEGATIVE ){
ParseElementThenGotoNext();
result = GetExpValueByAddOrMinusExp( left - GetExpValueFromSubRight() );
}
return result;
}
double CExpressionParse::GetExpValueFromSubRight()
/*
描述:获得+/- 号右侧表达式的值
*/
{
if (GetLastError()==ERROR_EXP_SUCCESS){
SetErrorStr(pCurrent_Char-1);
}
return GetExpValueByMulOrDivExp( GetSingedValueFromSubRight() );
}
double CExpressionParse::GetExpValueByMulOrDivExp( const double& left )
/*
描述:优先级次低的计算函数:计算乘除法。传入*,/号的左值,调用GetSingedValueFromSubRight()函数获得*,/号的右值,计算积或商
参数:left: *,/号的左值
备注:*,/的右表达式可能带有+/-号,表明其极性,因此在乘或除运算前因先确定右值的极性
如果除数为0则返回计算结果为1.#INF
*/
{
double result = left;
if( Cur_Element_Species == MULTIPLY ){
ParseElementThenGotoNext();
if (GetLastError()==ERROR_EXP_SUCCESS){
SetErrorStr(pCurrent_Char-1);
}
result = GetExpValueByMulOrDivExp( left * GetSingedValueFromSubRight() );
}else if( Cur_Element_Species == DIVIDE ){
ParseElementThenGotoNext();
#define DIVZERO
#ifdef DIVZERO
if (GetLastError()==ERROR_EXP_SUCCESS){
SetErrorStr(pCurrent_Char-1);
}
double dwDiv=GetSingedValueFromSubRight();
if(dwDiv ==0 && GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_DIVISOR_IS_ZERO);
}
result = GetExpValueByMulOrDivExp( left / dwDiv );
#else
result = GetExpValueByMulOrDivExp( left / GetSingedValueFromSubRight() );
#endif
}
return result;
}
double CExpressionParse::GetSingedValueFromSubRight()
/*
描述:获得表达式的值并设置其极性,作为乘除法的右值
*/
{
double result;
if( Cur_Element_Species == ADD_OR_POSITIVE ){
ParseElementThenGotoNext();
result = GetSingedValueFromSubRight();
}else if( Cur_Element_Species == SUBTRACT_OR_NEGATIVE ){
ParseElementThenGotoNext();
result = - GetSingedValueFromSubRight();
}else if (Cur_Element_Species ==MULTIPLY || Cur_Element_Species ==DIVIDE || Cur_Element_Species==POWER){ //这些既非极性符号,又非参数标识符或子函数的合法字符,如果分支转到这里说明原表达式有误,如 5+*3
if (GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_SIGN_UNKNOWN);
}
ParseElementThenGotoNext();
result = GetSingedValueFromSubRight(); //当作+号处理,同时记录异常值
}else{
if (GetLastError()==ERROR_EXP_SUCCESS)
SetErrorStr(pCurrent_Char-1);
result = GetExpValueByPowerExp();
}
return result;
}
double CExpressionParse::GetExpValueByPowerExp()
/*
描述:优先级最高的计算函数:计算幂。调用 GetElementValue()获得底数的值,递归调用获得指数的值
备注:指数仍然可能是幂的形式,如a^b^c,递归调用构造堆栈,先计算b^c,在计算a^b^c;
如果取得底数后下一个运算符并非^,则意味着该底数的1次幂,则递归出口。事实上,对于+,-,*,/运算的任何一个操作数都可以看作幂表达式形式
底数可以是数字,由()标识的子表达式,参数标识符或子函数
*/
{
if (GetLastError()==ERROR_EXP_SUCCESS)
SetErrorStr(pCurrent_Char-1);
double result = GetElementValue(); //取底数
if( Cur_Element_Species == POWER ){
ParseElementThenGotoNext();
result = pow( result, GetSingedValueFromSubRight());
}
return result;
}
double CExpressionParse::GetElementValue()
/*
描述:获得当前表达式元素的值,可以是数字,由()标识的子表达式,参数标识符或子函数
*/
{
double result;
if( Cur_Element_Species == NUMBER ){
result = dwCur_Value;
ParseElementThenGotoNext();
}else if( Cur_Element_Species == LEFT_BRACKET ){ //如遇到(则优先计算整个()内表达式的值
ParseElementThenGotoNext();
//result = GetExpValue(); //当作一个新的表达式,从头计算
result=GetSubExpValue();
if (Cur_Element_Species != RIGHT_BRACKET && GetLastError()==ERROR_EXP_SUCCESS)//计算结束后一定落在右括号上,否则原表达式括号不匹配
SetLastError(ERROR_EXP_MISSING_RIGHT_BRACKET);
ParseElementThenGotoNext();
}else{
result = ParseCurIdentifier();
}
return result;
}
double CExpressionParse::ParseCurIdentifier()
/*
描述:解析参数标识符或子函数名
*/
{
if(Cur_Element_Species !=IDENTIFIER && GetLastError()==ERROR_EXP_SUCCESS ){
SetLastError(ERROR_EXP_IDENTIFIER_INCLUDE_RESERVECHARS);
SetErrorStr(pCurrent_Char-1);
}
string str = Str_Cur_Identifier;
ParseElementThenGotoNext();
return GetValueFromCurIdentifier( str);
}
double CExpressionParse::GetValueFromCurIdentifier( const string& identifier )
/*
描述:从参数列表parameter_table中获得参数标识符的值
备注:如果一段字符后紧跟(,则表明该字符串不是参数标识符,而是子函数名,比如遇到"sin(",说明sin是一个子函数
*/
{
double result;
if( Cur_Element_Species == LEFT_BRACKET ) //如果一个表达式取完发现后面紧跟一个(则说明这是一个子函数
{
ParseElementThenGotoNext();
vector<double> param = GetParameterValueForSupportFuncs();
result = GetValueFromCurSubFunc( identifier,param ); //调用支持函数库处理这个子函数
}else{ //没有紧跟(则说明这是一个参数标识符
if( parameter_table.find( identifier ) == parameter_table.end() ) {
if (remote_call_addrs_table.find(identifier) == remote_call_addrs_table.end()){
if (GetLastError()==ERROR_EXP_SUCCESS)
SetLastError(ERROR_EXP_INVAILD_PAPAMETER);
result=DEFAULT_VALUE; //说明参数列表里和程函数调用表均找不到该参数,返回默认值
}else{
pFunGet pRemoteFuncs =static_cast<pFunGet>(remote_call_addrs_table.find(identifier)->second); //去远程函数调用表调用远程函数获得参数值
result=pRemoteFuncs();
}
}else{
result = parameter_table.find( identifier )->second; //去参数列表里取参数值
}
}
return result;
}
vector<double> CExpressionParse::GetParameterValueForSupportFuncs()
/*
描述:获得子函数需要的各个参数的值
备注:子函数的每个参数都可以被看作是一个子表达式,逐步计算各个子表达式的值,放入这个vector容器
*/
{ vector<double> result;
while( true)
{
if( Cur_Element_Species == RIGHT_BRACKET ){ //遇到右括号表明子函数参数列表结束。若循环第一次及转入此分支,则表明该子函数不带参数
ParseElementThenGotoNext();
break;
}
if( Cur_Element_Species == PARAMETER_SEPERATOR ){
ParseElementThenGotoNext();
if(Cur_Element_Species ==MULTIPLY || Cur_Element_Species ==DIVIDE || Cur_Element_Species ==POWER ||
Cur_Element_Species==RIGHT_BRACKET || Cur_Element_Species==PARAMETER_SEPERATOR || Cur_Element_Species==FINISHED){
if (GetLastError()==ERROR_EXP_SUCCESS)
SetLastError(ERROR_EXP_INVAILD_PAPAMETER_IN_SUBFUNCS );
continue;
}
}
if (Cur_Element_Species == FINISHED){ //函数缺少右括号
if (GetLastError()==ERROR_EXP_SUCCESS)
SetLastError(ERROR_EXP_MISSING_RIGHT_BRACKET );
break;
}
//result.push_back( GetExpValue() );//每个参数都可以被看作是一个子表达式
result.push_back(GetSubExpValue());
}
return result;
}
double CExpressionParse::GetValueFromCurSubFunc(const string& name, const vector< double >& params)
/*
*/
{
if (name== "sum" || name== "SUM"){
return accumulate( params.begin(), params.end(), (double)0 );
}else if(name == "avg" || name == "AVG" || name == "mean" || name == "MEAN"){
if (params.size()!=0){
return accumulate( params.begin(), params.end(), (double)0 )/static_cast<double>(params.size());
}else{
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
return DEFAULT_VALUE;
}
}else if(name == "min"|| name=="MIN"){
if (params.size()==0){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
return DEFAULT_VALUE;
}
vector<double>::const_iterator it=params.begin();
double result=params[0];
while (it!=params.end()){
if (result>(*it)) result=*it;
++it;
}
return result;
}else if(name == "max"|| name=="MAX"){
if (params.size()==0){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
return DEFAULT_VALUE;
}
vector<double>::const_iterator it=params.begin();
double result=params[0];
while (it!=params.end()){
if (result<(*it)) result=*it;
++it;
}
return result;
}else if (name == "factorial" || name == "FACTORIAL" || name == "fa"){
if (params.size()!=1){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return DEFAULT_VALUE;
double dwresult= DEFAULT_VALUE;
double i= floor(params[0]);
while( i> 1 ){
dwresult *= i;
i -= 1;
}
return dwresult;
}else if (name == "sqrt" || name == "SQRT"){
if (params.size()!=1){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return exp((double)DEFAULT_VALUE);
return sqrt(params[0]);
}else if (name=="exp" || name=="EXP"){
if (params.size()!=1){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return exp((double)DEFAULT_VALUE);
return exp(params[0]);
}else if (name == "logXY" || name == "LOGXY"){
if (params.size()!=2 ){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==1 ) return log(params[0]);
if (params.size()==0 ) return DEFAULT_VALUE;
return log(params[0])/log(params[1]);
}else if (name == "ln" || name == "log"){
if (params.size()!=1){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return DEFAULT_VALUE;
return log(params[0]);
}else if (name == "lg" || name == "log10"){
if (params.size()!=1){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return DEFAULT_VALUE;
return log10(params[0]);
}else if (name == "sin" || name == "SIN"){
if (params.size()!=1){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return DEFAULT_VALUE;
return sin(params[0]);
}else if (name == "asin" || name == "ASIN"){
if (params.size()!=1){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return DEFAULT_VALUE;
return asin(params[0]);
}else if (name == "cos" || name == "COS"){
if (params.size()!=1 ){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return DEFAULT_VALUE;
return cos(params[0]);
}else if (name == "acos" || name == "ACOS"){
if (params.size()!=1 ){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return DEFAULT_VALUE;
return acos(params[0]);
}else if (name == "tan" || name == "tg" || name == "TAN" || name=="TG"){
if (params.size()!=1 ){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return DEFAULT_VALUE;
return tan(params[0]);
}else if (name == "atan" || name == "atg" || name == "ATAN" || name=="ATG"){
if (params.size()!=1 ){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return DEFAULT_VALUE;
return atan(params[0]);
}else if (name == "pi" || name == "PI"){
if (params.size()!=0 ){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
return (double)3.1415926535897932384626433832795;
}else if (name == "abs" || name == "ABS"){
if (params.size()!=1){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return DEFAULT_VALUE;
return abs(params[0]);
}else if (name == "floor" || name == "FLOOR") {
if (params.size()!=1){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return DEFAULT_VALUE;
return floor(params[0]);
}else if (name == "ceil" || name == "CEIL") {
if (params.size()!=1){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return DEFAULT_VALUE;
return ceil(params[0]);
}else if (name == "mod" || name == "MOD") {
if (params.size()!=2){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==1) return params[0];
if (params.size()==0) return DEFAULT_VALUE;
return fmod(params[0],params[1]);
}else if (name == "sinh" || name == "SINH"){
if (params.size()!=1){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return DEFAULT_VALUE;
return sinh(params[0]);
}else if (name == "cosh" || name == "COSH"){
if (params.size()!=1 ){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return DEFAULT_VALUE;
return cosh(params[0]);
}else if (name == "tanh" || name == "tgh" || name == "TANH" || name=="TGH"){
if (params.size()!=1 ){
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_CALL_SUBFUNCS_FAIL);
SetErrorStr(name.c_str());
}
}
if (params.size()==0) return DEFAULT_VALUE;
return tanh(params[0]);
}else{
if(GetLastError()==ERROR_EXP_SUCCESS){
SetLastError(ERROR_EXP_USE_NONSUPPORT_FUNCS);
SetLastErrorStr(name);
}
return DEFAULT_VALUE; //默认值返回
}
}
//end of ExpressionParse.cpp | [
"pengelmer@f37e807c-cba8-11de-937e-2741d7931076"
] | [
[
[
1,
988
]
]
] |
d6ba9744980be36d54aae4fa5c546834a6f186a2 | fad6f9883d4ad2686c196dc532a9ecb9199500ee | /NXP-LPC/CommTest/CommTest/CommTest.cpp | 4830f44c2a1bc994d1230aa7bacb69ac306f91ab | [] | no_license | aquarius20th/nxp-lpc | fe83d6a140d361a1737d950ff728c6ea9a16a1dd | 4abfb804daf0ac9c59bd90d879256e7a3c1b2f30 | refs/heads/master | 2021-01-10T13:54:40.237682 | 2009-12-22T14:54:59 | 2009-12-22T14:54:59 | 48,420,260 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,298 | cpp |
// CommTest.cpp : 定义应用程序的类行为。
//
#include "stdafx.h"
#include "afxwinappex.h"
#include "CommTest.h"
#include "MainFrm.h"
#include "ChildFrm.h"
#include "CommTestDoc.h"
#include "CommTestView.h"
#include "ClientChildFrm.h"
#include "ClientCommDoc.h"
#include "ClientOptionView.h"
#include "PingChildFrm.h"
#include "PingTestDoc.h"
#include "PingOptionView.h"
#include "SvrChildFrm.h"
#include "SvrCommDoc.h"
#include "SvrOptionView.h"
#include "LogDataApi.h"
#include "boost/memory.hpp"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CCommTestApp
BEGIN_MESSAGE_MAP(CCommTestApp, CWinApp)
ON_COMMAND(ID_APP_ABOUT, &CCommTestApp::OnAppAbout)
END_MESSAGE_MAP()
// CCommTestApp 构造
CCommTestApp::CCommTestApp() :
CBCGPWorkspace (TRUE /* m_bResourceSmartUpdate */)
{
m_bHiColorIcons = TRUE;
m_pDocTemplate = NULL;
m_pPingDocTemplate = NULL;
m_pClientDocTemplate = NULL;
m_pSvrDocTemplate = NULL;
// TODO: 在此处添加构造代码,
// 将所有重要的初始化放置在 InitInstance 中
NS_BOOST_MEMORY::enableMemoryLeakCheck();
}
// 唯一的一个 CCommTestApp 对象
CCommTestApp theApp;
// CCommTestApp 初始化
BOOL CCommTestApp::InitInstance()
{
// 如果一个运行在 Windows XP 上的应用程序清单指定要
// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
//则需要 InitCommonControlsEx()。否则,将无法创建窗口。
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// 将它设置为包括所有要在应用程序中使用的
// 公共控件类。
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
// 初始化 OLE 库
if (!AfxOleInit())
{
AfxMessageBox(IDP_OLE_INIT_FAILED);
return FALSE;
}
if (!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return FALSE;
}
AfxEnableControlContainer();
globalData.SetDPIAware ();
// 标准初始化
// 如果未使用这些功能并希望减小
// 最终可执行文件的大小,则应移除下列
// 不需要的特定初始化例程
// 更改用于存储设置的注册表项
// TODO: 应适当修改该字符串,
// 例如修改为公司或组织名
SetRegistryKey(_T("CommTestStudio"));
// LoadStdProfileSettings(4); // 加载标准 INI 文件选项(包括 MRU)
SetRegistryBase (_T("Settings"));
InitContextMenuManager();
InitKeyboardManager();
InitTooltipManager();
CBCGPToolTipParams ttParams;
ttParams.m_bVislManagerTheme = TRUE;
theApp.GetTooltipManager()->SetTooltipParams(BCGP_TOOLTIP_TYPE_ALL,
RUNTIME_CLASS(CBCGPToolTipCtrl), &ttParams);
// 注册应用程序的文档模板。文档模板
// 将用作文档、框架窗口和视图之间的连接
RegisterLog( _T("MAIN"));
m_pDocTemplate = new CMultiDocTemplate(IDR_CommTestTYPE,
RUNTIME_CLASS(CCommTestDoc),
RUNTIME_CLASS(CChildFrame), // 自定义 MDI 子框架
RUNTIME_CLASS(CCommTestView));
if (!m_pDocTemplate)
return FALSE;
AddDocTemplate(m_pDocTemplate);
m_pPingDocTemplate = new CMultiDocTemplate(IDR_PING_TEST,
RUNTIME_CLASS(CPingTestDoc),
RUNTIME_CLASS(CPingChildFrame), // 自定义 MDI 子框架
RUNTIME_CLASS(CPingOptionView));
if (!m_pPingDocTemplate)
return FALSE;
AddDocTemplate(m_pPingDocTemplate);
m_pClientDocTemplate = new CMultiDocTemplate(IDR_CLIENT_COMM,
RUNTIME_CLASS(CClientCommDoc),
RUNTIME_CLASS(CClientChildFrame), // 自定义 MDI 子框架
RUNTIME_CLASS(CClientOptionView));
if (!m_pClientDocTemplate)
return FALSE;
AddDocTemplate(m_pClientDocTemplate);
m_pSvrDocTemplate = new CMultiDocTemplate(IDR_SVR_COMM,
RUNTIME_CLASS(CSvrCommDoc),
RUNTIME_CLASS(CSvrChildFrame), // 自定义 MDI 子框架
RUNTIME_CLASS(CSvrOptionView));
if (!m_pSvrDocTemplate)
return FALSE;
AddDocTemplate(m_pSvrDocTemplate);
// 创建主 MDI 框架窗口
CMainFrame* pMainFrame = new CMainFrame;
if (!pMainFrame || !pMainFrame->LoadFrame(IDR_MAINFRAME))
{
delete pMainFrame;
return FALSE;
}
m_pMainWnd = pMainFrame;
// 仅当具有后缀时才调用 DragAcceptFiles
// 在 MDI 应用程序中,这应在设置 m_pMainWnd 之后立即发生
// 分析标准外壳命令、DDE、打开文件操作的命令行
CCommandLineInfo cmdInfo;
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
ParseCommandLine(cmdInfo);
// 调度在命令行中指定的命令。如果
// 用 /RegServer、/Register、/Unregserver 或 /Unregister 启动应用程序,则返回 FALSE。
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// 主窗口已初始化,因此显示它并对其进行更新
pMainFrame->ShowWindow(m_nCmdShow);
pMainFrame->UpdateWindow();
return TRUE;
}
// 用于应用程序“关于”菜单项的 CAboutDlg 对话框
class CAboutDlg : public CDialog
{
public:
CAboutDlg();
// 对话框数据
enum { IDD = IDD_ABOUTBOX };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
// 实现
protected:
DECLARE_MESSAGE_MAP()
};
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
}
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
END_MESSAGE_MAP()
// 用于运行对话框的应用程序命令
void CCommTestApp::OnAppAbout()
{
CAboutDlg aboutDlg;
aboutDlg.DoModal();
}
// CCommTestApp 自定义加载/保存方法
void CCommTestApp::PreLoadState()
{
// BOOL bNameValid;
// CString strName;
// bNameValid = strName.LoadString(IDS_EDIT_MENU);
// ASSERT(bNameValid);
// GetContextMenuManager()->AddMenu(strName, IDR_POPUP_EDIT);
// bNameValid = strName.LoadString(IDS_EXPLORER);
// ASSERT(bNameValid);
// GetContextMenuManager()->AddMenu(strName, IDR_POPUP_EXPLORER);
}
void CCommTestApp::LoadCustomState()
{
}
void CCommTestApp::SaveCustomState()
{
}
// CCommTestApp 消息处理程序
int CCommTestApp::ExitInstance()
{
// TODO: 在此添加专用代码和/或调用基类
BCGCBProCleanUp();
UnregisterLog( _T("MAIN"));
return __super::ExitInstance();
}
| [
"lijin.unix@13de9a6c-71d3-11de-b374-81e7cb8b6ca2"
] | [
[
[
1,
259
]
]
] |
3ae58d9e02442e904fb359cd1b9eb667f873843e | fd792229322e4042f6e88a01144665cebdb1c339 | /vc/dependencies/raknet/include/RakNet/UDPProxyServer.h | abefda574746b897eef8ae032ba5117e6ee164bb | [] | no_license | weimingtom/mmomm | 228d70d9d68834fa2470d2cd0719b9cd60f8dbcd | cab04fcad551f7f68f99fa0b6bb14cec3b962023 | refs/heads/master | 2021-01-10T02:14:31.896834 | 2010-03-15T16:15:43 | 2010-03-15T16:15:43 | 44,764,408 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,769 | h | /// \file
/// \brief A RakNet plugin performing networking to communicate with UDPProxyServer. It allows UDPProxyServer to control our instance of UDPForwarder.
///
/// This file is part of RakNet Copyright 2003 Jenkins Software LLC
///
/// Usage of RakNet is subject to the appropriate license agreement.
/// Creative Commons Licensees are subject to the
/// license found at
/// http://creativecommons.org/licenses/by-nc/2.5/
/// Single application licensees are subject to the license found at
/// http://www.jenkinssoftware.com/SingleApplicationLicense.html
/// Custom license users are subject to the terms therein.
#ifndef __UDP_PROXY_SERVER_H
#define __UDP_PROXY_SERVER_H
#include "Export.h"
#include "DS_Multilist.h"
#include "RakNetTypes.h"
#include "PluginInterface2.h"
#include "UDPForwarder.h"
#include "RakString.h"
namespace RakNet
{
class UDPProxyServer;
/// Callback to handle results of calling UDPProxyServer::LoginToCoordinator()
/// \ingroup UDP_PROXY_GROUP
struct UDPProxyServerResultHandler
{
/// Called when our login succeeds
/// \param[out] usedPassword The password we passed to UDPProxyServer::LoginToCoordinator()
/// \param[out] proxyServer The plugin calling this callback
virtual void OnLoginSuccess(RakNet::RakString usedPassword, RakNet::UDPProxyServer *proxyServerPlugin)=0;
/// We are already logged in.
/// This login failed, but the system is operational as if it succeeded
/// \param[out] usedPassword The password we passed to UDPProxyServer::LoginToCoordinator()
/// \param[out] proxyServer The plugin calling this callback
virtual void OnAlreadyLoggedIn(RakNet::RakString usedPassword, RakNet::UDPProxyServer *proxyServerPlugin)=0;
/// The coordinator operator forgot to call UDPProxyCoordinator::SetRemoteLoginPassword()
/// \param[out] usedPassword The password we passed to UDPProxyServer::LoginToCoordinator()
/// \param[out] proxyServer The plugin calling this callback
virtual void OnNoPasswordSet(RakNet::RakString usedPassword, RakNet::UDPProxyServer *proxyServerPlugin)=0;
/// The coordinator operator set a different password in UDPProxyCoordinator::SetRemoteLoginPassword() than what we passed
/// \param[out] usedPassword The password we passed to UDPProxyServer::LoginToCoordinator()
/// \param[out] proxyServer The plugin calling this callback
virtual void OnWrongPassword(RakNet::RakString usedPassword, RakNet::UDPProxyServer *proxyServerPlugin)=0;
};
/// \brief UDPProxyServer to control our instance of UDPForwarder
/// \details When NAT Punchthrough fails, it is possible to use a non-NAT system to forward messages from us to the recipient, and vice-versa.<BR>
/// The class to forward messages is UDPForwarder, and it is triggered over the network via the UDPProxyServer plugin.<BR>
/// The UDPProxyServer connects to UDPProxyServer to get a list of servers running UDPProxyServer, and the coordinator will relay our forwarding request.
/// \ingroup UDP_PROXY_GROUP
class RAK_DLL_EXPORT UDPProxyServer : public PluginInterface2
{
public:
UDPProxyServer();
~UDPProxyServer();
/// Receives the results of calling LoginToCoordinator()
/// Set before calling LoginToCoordinator or you won't know what happened
/// \param[in] resultHandler
void SetResultHandler(UDPProxyServerResultHandler *rh);
/// Before the coordinator will register the UDPProxyServer, you must login
/// \pre Must be connected to the coordinator
/// \pre Coordinator must have set a password with UDPProxyCoordinator::SetRemoteLoginPassword()
/// \returns false if already logged in, or logging in. Returns true otherwise
bool LoginToCoordinator(RakNet::RakString password, SystemAddress coordinatorAddress);
/// Operative class that performs the forwarding
/// Exposed so you can call UDPForwarder::SetMaxForwardEntries() if you want to change away from the default
/// UDPForwarder::Startup(), UDPForwarder::Shutdown(), and UDPForwarder::Update() are called automatically by the plugin
UDPForwarder udpForwarder;
virtual void OnAttach(void);
virtual void OnDetach(void);
/// \internal
virtual void Update(void);
virtual PluginReceiveResult OnReceive(Packet *packet);
virtual void OnClosedConnection(SystemAddress systemAddress, RakNetGUID rakNetGUID, PI2_LostConnectionReason lostConnectionReason );
virtual void OnStartup(void);
virtual void OnShutdown(void);
protected:
void OnForwardingRequestFromCoordinatorToServer(Packet *packet);
DataStructures::Multilist<ML_ORDERED_LIST, SystemAddress> loggingInCoordinators;
DataStructures::Multilist<ML_ORDERED_LIST, SystemAddress> loggedInCoordinators;
UDPProxyServerResultHandler *resultHandler;
};
} // End namespace
#endif
| [
"[email protected]"
] | [
[
[
1,
103
]
]
] |
8709b170709cbb68c5d511b8c6d3a41fa5efe67c | 4891542ea31c89c0ab2377428e92cc72bd1d078f | /Arcanoid/Arcanoid/LoadFilmsInfo.h | 47bc7493fb381eb502b1a7b87d45b7513ddf461a | [] | no_license | koutsop/arcanoid | aa32c46c407955a06c6d4efe34748e50c472eea8 | 5bfef14317e35751fa386d841f0f5fa2b8757fb4 | refs/heads/master | 2021-01-18T14:11:00.321215 | 2008-07-17T21:50:36 | 2008-07-17T21:50:36 | 33,115,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 970 | h | /*
* author: koutsop
*/
#ifndef LOADFIMLSINFO_H
#define LOADFIMLSINFO_H
#include <map>
#include <string>
#include <cassert>
using std::map;
using std::string;
using std::make_pair;
//to prwto string einai to id
//to deutero string einai to onoma tou arxeiou pou exei to bboxe gia auto to film
//to trito string einai to path gia to bitmap
typedef map< string, std::pair<string, string> > FilmsInfoMap;
class LoadFilmsInfo
{
private:
int filmsNo;
FilmsInfoMap filmsInfo;
/* @target: Na diavazei ena config file
*/
void LoadInfo(void);
public:
/* @return: Twn ari8mo twn films
*/
int GetFilmsNo(void) const { return filmsNo; }
/* @return: Na epistrfei thn domh pou exoume fila3ei thn pliroforia gia ta films
*/
const FilmsInfoMap GetFilmsInfo(void) const { return filmsInfo; }
//to path gia to config file me ta data giata films
LoadFilmsInfo(const char* path);
~LoadFilmsInfo(void);
};
#endif | [
"koutsop@5c4dd20e-9542-0410-abe3-ad2d610f3ba4"
] | [
[
[
1,
46
]
]
] |
22356c53d408d5c48083eae408b245c1b398ccd3 | 374f53386d36e3aadf0ed88e006394220f732f30 | /gl/GLUTtexture/main.cpp | 3d57a62e5a0eddd63f51d3133e919f16e5a84c3b | [
"MIT"
] | permissive | yatjf/sonson-code | e7edbc613f8c97be5f7c7367be2660b3cb75a61b | fbb564af37adb2305fe7d2148f8d4f5a3450f72b | refs/heads/master | 2020-06-13T08:02:38.469864 | 2010-07-01T14:20:40 | 2010-07-01T14:20:40 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 4,477 | cpp | //
// GLUTtexture
// main.cpp
//
// The MIT License
//
// Copyright (c) 2009 sonson, sonson@Picture&Software
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//#include <GL/glut.h>
#include <stdio.h>
#include <stdlib.h>
#include "Bitmap.h"
///////////////////////////////////////////////////////////////////////////////
//デフォルトウィンドウサイズ
#define WIDTH 300
#define HEIGHT 300
//リサイズ後のウィンドウサイズを保存する変数
int width;
int height;
//時間
float t=0;
//テクスチャ番号
unsigned int tex;
///////////////////////////////////////////////////////////////////////////////
//描画関数
void display(void){
//ウィンドウを塗りつぶす
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
//視点の変換行列の初期化
glLoadIdentity();
//視点の決定
gluLookAt(
0,0,4,
0,0,0,
0.0, 1.0, 0.0);
//四角形の描画
glRotatef(t,0,1,0);
glBindTexture(GL_TEXTURE_2D, tex);
//ポリゴンとテクスチャ
glPushMatrix();
glBegin(GL_QUADS);
glColor3f(0.5,0.5,0.5);
glTexCoord2f(0.0, 0.0);
glVertex3f(1.0, 1.0, 0.0);
glTexCoord2f(0.0, 1.0);
glVertex3f(1.0,-1.0, 0.0);
glTexCoord2f(1.0, 1.0);
glVertex3f(-1.0,-1.0, 0.0);
glTexCoord2f(1.0, 0.0);
glVertex3f(-1.0, 1.0, 0.0);
glEnd();
glPopMatrix();
//描画終了
glFinish();
glutSwapBuffers();
t+=1;
}
///////////////////////////////////////////////////////////////////////////////
//OpenGL初期化コマンド
void init (void){
glClearColor (1.0, 0.0, 0.0,1.0);
glEnable(GL_DEPTH_TEST);
//クライアント領域の塗りつぶし色の設定
glClearColor( 1.0, 1.0, 0.0, 1.0 );
//デプスバッファクリア値の設定
glClearDepth( 1.0 );
//テクスチャの生成
tex = GenTextureBitmap("texture.bmp");
glBindTexture(GL_TEXTURE_2D, tex);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL);
glEnable(GL_TEXTURE_2D);
}
///////////////////////////////////////////////////////////////////////////////
//リサイズ処理
void resize(int w, int h)
{
GLdouble aspect;
//それによってビューポートを設定する
glViewport(0, 0, w, h);
width = w;
height =h;
//アスペクト比の初期化
aspect = (GLdouble)w/(GLdouble)h;
//プロジェクションモードで射影
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
gluPerspective( 60.0, aspect, 1.0,100.0 );
//ノーマルのモデルビューモードへ移行
glMatrixMode( GL_MODELVIEW );
}
///////////////////////////////////////////////////////////////////////////////
//メイン関数
int main(int argc, char** argv){
//GLUT初期化
glutInit(&argc, argv);
//GLUTピクセルフォーマット
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB);
//ウィンドウの初期化と作成
glutInitWindowSize (WIDTH,HEIGHT);
glutInitWindowPosition (100, 100);
glutCreateWindow ("Bitmap Texture");
//OpenGL初期化
init();
//各処理関数の登録
glutDisplayFunc(display);
glutIdleFunc(display);
glutReshapeFunc(resize);
//メインループ
glutMainLoop();
return 0;
} | [
"yoshida.yuichi@0d0a6a56-2bd1-11de-9cad-a3574e5575ef"
] | [
[
[
1,
139
]
]
] |
13f2959d0f114381480a4e799d86e339a27748d5 | 658129adb8f10b4cccdb2e432430d67c0977d37e | /cpp/cs311/profs_examples/radix_sort.cpp | 6501bdeff0783b9ecf815fdfcd8399c1b60995ea | [] | no_license | amiel/random-useless-scripts | e2d473940bdb968ad0f8d31514654b79a760edd4 | 166195329bc93c780d7c8fd088d93e3a697062a0 | refs/heads/master | 2020-12-24T13:21:37.358940 | 2009-03-29T06:08:26 | 2009-03-29T06:14:02 | 140,835 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,949 | cpp | // radix_sort.cpp
// Glenn G. Chappell
// 18 Oct 2006
//
// For CS 311
// Radix Sort Using Forward Iterators
#include <iostream>
using std::cout;
using std::endl;
#include <vector> // for std::vector;
// radixSort
// Sorts a sequence of 5-digit nonnegative int's, using Radix Sort.
// Requirements on Types:
// FDIter must be a forward iterator type.
// FDIter::value_type must be int.
// Pre:
// [first, last) is a valid range.
// Items in [first, last) are all in [0, 99999]
// (5-digit nonnegative int's)
// Post:
// [first, last) contains the same items as it did initially,
// but now sorted by < (in a stable manner).
template <typename FDIter>
void radixSort(FDIter first, FDIter last)
{
const int RADIX_SORT_NUM_PLACES = 5; // Number of Radix Sort passes
int powerOfTen = 1; // 10 ^ place
for (int place = 0; place < RADIX_SORT_NUM_PLACES; ++place)
{
std::vector<std::vector<int> > buckets(10);
// place each item in the appropriate bucket (stable!)
for (FDIter it = first; it != last; ++it)
{
buckets[((*it)/powerOfTen) % 10].push_back(*it);
}
// Copy each bucket back to original list, one after the other
FDIter copyBack = first;
for (int i = 0; i < 10; ++i)
{
copyBack =
std::copy(buckets[i].begin(), buckets[i].end(), copyBack);
}
// Move to next power of 10
powerOfTen *= 10;
}
}
// main
// Test function radixSort (takes iterators)
int main()
{
const int SIZE = 11;
//int arr[SIZE] = { 5, 3, 2, 8, 5, 9, 10, 4, 6, 1, -4};
// Negative values not allowed
int arr[SIZE] = { 35, 1, 98, 434, 280, 281, 271, 180, 0, 50, 50 };
radixSort(arr, arr+SIZE);
for (int i = 0; i < SIZE; ++i)
cout << arr[i] << " ";
cout << endl;
return 0;
}
| [
"[email protected]"
] | [
[
[
1,
71
]
]
] |
f99188ac65f976bb521133d1f3101759bc717c32 | 95a3e8914ddc6be5098ff5bc380305f3c5bcecb2 | /src/FusionForever_lib/Sparks.h | ba94df7336b881392fd0e1a922140783749b3c21 | [] | no_license | danishcake/FusionForever | 8fc3b1a33ac47177666e6ada9d9d19df9fc13784 | 186d1426fe6b3732a49dfc8b60eb946d62aa0e3b | refs/heads/master | 2016-09-05T16:16:02.040635 | 2010-04-24T11:05:10 | 2010-04-24T11:05:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | h | #pragma once
#include "Decoration.h"
class Sparks :
public Decoration
{
protected:
virtual void InitialiseGraphics();
static bool initialised_;
static int fill_dl_;
static int fill_verts_index_;
public:
Sparks(void);
virtual ~Sparks(void);
virtual void Tick(float _timespan, Matrix4f _transform, std::vector<Decoration_ptr>& _decoration_spawn);
};
| [
"Edward Woolhouse@e6f1df29-e57c-d74d-9e6e-27e3b006b1a7",
"[email protected]"
] | [
[
[
1,
16
],
[
18,
18
]
],
[
[
17,
17
]
]
] |
3332d9430c955dad18375fdb074dc412b434f0e7 | 70ae839ba975347dc4c97ce6ff3e87056d4baa5e | /Tutorial4/Tutorial4/src/network.cpp | 451e048bfa82527181e2c06d00e2a0d138a42f58 | [] | no_license | jbreslin33/networksinbad | 63a81d9a240b517b1a631bd2173dcd0bbe8ff7cb | e9f15b83aab010bfc7ae570880c11ec6d52aadf9 | refs/heads/master | 2020-06-03T15:20:15.140383 | 2011-03-12T13:41:51 | 2011-03-12T13:41:51 | 37,391,302 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,567 | cpp | /******************************************/
/* MMOG programmer's guide */
/* Tutorial game client */
/* Programming: */
/* Teijo Hakala */
/******************************************/
#include "common.h"
//#include "Tutorial4.h"
#include "SinbadCharacterController.h"
char serverIP[32] = "127.0.0.1";
//char serverIP[32] = "192.168.1.2";
//class SinbadCharacterController;
using namespace Ogre;
//-----------------------------------------------------------------------------
// Name: empty()
// Desc:
//-----------------------------------------------------------------------------
void CArmyWar::StartConnection()
{
// LogString("StartConnection");
//gameIndex = ind;
int ret = networkClient->Initialise("", serverIP, 30004);
if(ret == DREAMSOCK_CLIENT_ERROR)
{
char text[64];
sprintf(text, "Could not open client socket");
MessageBox(NULL, text, "Error", MB_OK);
}
Connect();
}
//-----------------------------------------------------------------------------
// Name: empty()
// Desc:
//-----------------------------------------------------------------------------
void CArmyWar::ReadPackets(void)
{
char data[1400];
struct sockaddr address;
clientData *clList;
int type;
int ind;
int local;
int ret;
char name[50];
dreamMessage mes;
mes.Init(data, sizeof(data));
while(ret = networkClient->GetPacket(mes.data, &address))
{
mes.SetSize(ret);
mes.BeginReading();
type = mes.ReadByte();
switch(type)
{
case DREAMSOCK_MES_ADDCLIENT:
local = mes.ReadByte();
ind = mes.ReadByte();
strcpy(name, mes.ReadString());
AddClient(local, ind, name);
break;
case DREAMSOCK_MES_REMOVECLIENT:
ind = mes.ReadByte();
LogString("Got removeclient %d message", ind);
RemoveClient(ind);
break;
case USER_MES_FRAME:
// Skip sequences
mes.ReadShort();
mes.ReadShort();
for(clList = clientList; clList != NULL; clList = clList->next)
{
// LogString("Reading DELTAFRAME for client %d", clList->index);
ReadDeltaMoveCommand(&mes, clList);
}
break;
case USER_MES_NONDELTAFRAME:
// Skip sequences
mes.ReadShort();
mes.ReadShort();
clList = clientList;
for(clList = clientList; clList != NULL; clList = clList->next)
{
LogString("Reading NONDELTAFRAME for client %d", clList->index);
ReadMoveCommand(&mes, clList);
}
break;
case USER_MES_SERVEREXIT:
MessageBox(NULL, "Server disconnected", "Info", MB_OK);
Disconnect();
break;
}
}
}
//-----------------------------------------------------------------------------
// Name: empty()
// Desc:
//-----------------------------------------------------------------------------
void CArmyWar::AddClient(int local, int ind, char *name)
{
// First get a pointer to the beginning of client list
clientData *list = clientList;
clientData *prev;
LogString("App: Client: Adding client with index %d", ind);
// No clients yet, adding the first one
if(clientList == NULL)
{
LogString("App: Client: Adding first client");
clientList = (clientData *) calloc(1, sizeof(clientData));
if(local)
{
LogString("App: Client: This one is local");
localClient = clientList;
}
clientList->index = ind;
strcpy(clientList->nickname, name);
if(clients % 2 == 0)
createPlayer(ind);
else
createPlayer(ind);
clientList->next = NULL;
}
else
{
LogString("App: Client: Adding another client");
prev = list;
list = clientList->next;
while(list != NULL)
{
prev = list;
list = list->next;
}
list = (clientData *) calloc(1, sizeof(clientData));
if(local)
{
LogString("App: Client: This one is local");
localClient = list;
}
list->index = ind;
strcpy(list->nickname, name);
clientList->next = NULL;
list->next = NULL;
prev->next = list;
if(clients % 2 == 0)
createPlayer(ind);
else
createPlayer(ind);
}
clients++;
// If we just joined the game, request a non-delta compressed frame
if(local)
SendRequestNonDeltaFrame();
}
//-----------------------------------------------------------------------------
// Name: empty()
// Desc:
//-----------------------------------------------------------------------------
void CArmyWar::RemoveClient(int ind)
{
clientData *list = clientList;
clientData *prev = NULL;
clientData *next = NULL;
// Look for correct client and update list
for( ; list != NULL; list = list->next)
{
if(list->index == ind)
{
if(prev != NULL)
{
prev->next = list->next;
}
break;
}
prev = list;
}
// First entry
if(list == clientList)
{
if(list)
{
next = list->next;
free(list);
}
list = NULL;
clientList = next;
}
// Other
else
{
if(list)
{
next = list->next;
free(list);
}
list = next;
}
clients--;
}
//-----------------------------------------------------------------------------
// Name: empty()
// Desc:
//-----------------------------------------------------------------------------
void CArmyWar::RemoveClients(void)
{
clientData *list = clientList;
clientData *next;
while(list != NULL)
{
if(list)
{
next = list->next;
free(list);
}
list = next;
}
clientList = NULL;
clients = 0;
}
//-----------------------------------------------------------------------------
// Name: empty()
// Desc:
//-----------------------------------------------------------------------------
void CArmyWar::SendCommand(void)
{
if(networkClient->GetConnectionState() != DREAMSOCK_CONNECTED)
return;
dreamMessage message;
char data[1400];
int i = networkClient->GetOutgoingSequence() & (COMMAND_HISTORY_SIZE-1);
message.Init(data, sizeof(data));
message.WriteByte(USER_MES_FRAME); // type
message.AddSequences(networkClient); // sequences
// Build delta-compressed move command
BuildDeltaMoveCommand(&message, &inputClient);
// Send the packet
networkClient->SendPacket(&message);
// Store the command to the input client's history
memcpy(&inputClient.frame[i], &inputClient.command, sizeof(command_t));
clientData *clList = clientList;
// Store the commands to the clients' history
for( ; clList != NULL; clList = clList->next)
{
memcpy(&clList->frame[i], &clList->command, sizeof(command_t));
}
}
//-----------------------------------------------------------------------------
// Name: empty()
// Desc:
//-----------------------------------------------------------------------------
void CArmyWar::SendRequestNonDeltaFrame(void)
{
char data[1400];
dreamMessage message;
message.Init(data, sizeof(data));
message.WriteByte(USER_MES_NONDELTAFRAME);
message.AddSequences(networkClient);
networkClient->SendPacket(&message);
}
//-----------------------------------------------------------------------------
// Name: empty()
// Desc:
//-----------------------------------------------------------------------------
void CArmyWar::Connect(void)
{
if(init)
{
LogString("ArmyWar already initialised");
return;
}
LogString("CArmyWar::Connect");
init = true;
networkClient->SendConnect("myname");
}
//-----------------------------------------------------------------------------
// Name: empty()
// Desc:
//-----------------------------------------------------------------------------
void CArmyWar::Disconnect(void)
{
if(!init)
return;
LogString("CArmyWar::Disconnect");
init = false;
localClient = NULL;
memset(&inputClient, 0, sizeof(clientData));
networkClient->SendDisconnect();
}
//-----------------------------------------------------------------------------
// Name: empty()
// Desc:
//-----------------------------------------------------------------------------
void CArmyWar::ReadMoveCommand(dreamMessage *mes, clientData *client)
{
// Key
client->serverFrame.key = mes->ReadByte();
// Heading
//client->serverFrame.heading = mes->ReadShort();
// Origin
client->serverFrame.origin.x = mes->ReadFloat();
client->serverFrame.origin.y = mes->ReadFloat();
client->serverFrame.vel.x = mes->ReadFloat();
client->serverFrame.vel.y = mes->ReadFloat();
client->serverFrame.rot.w = mes->ReadFloat();
client->serverFrame.rot.y = mes->ReadFloat();
//client->serverFrame.yaw = mes->ReadFloat();
// Read time to run command
client->serverFrame.msec = mes->ReadByte();
memcpy(&client->command, &client->serverFrame, sizeof(command_t));
//client->character->mBodyNode->yaw(Degree(client->command.yaw));
//client->character->mBodyNode->yaw(Degree(45.0), Node::TS_PARENT);
//client->character->mBodyNode->yaw(Degree(90.0), Node::TS_PARENT);
//LogString("w server %f", client->serverFrame.rot.x);
//LogString("w %f", client->character->mBodyNode->getOrientation().w);
//LogString("x %f", client->character->mBodyNode->getOrientation().x);
//LogString("y server %f", client->serverFrame.rot.y);
//LogString("y %f", client->character->mBodyNode->getOrientation().y);
//LogString("z %f", client->character->mBodyNode->getOrientation().z);
// Fill the history array with the position we got
for(int f = 0; f < COMMAND_HISTORY_SIZE; f++)
{
client->frame[f].predictedOrigin.x = client->command.origin.x;
client->frame[f].predictedOrigin.y = client->command.origin.y;
client->frame[f].predictedRot.w = client->command.rot.w;
client->frame[f].predictedRot.y = client->command.rot.y;
}
}
//-----------------------------------------------------------------------------
// Name: empty()
// Desc:
//-----------------------------------------------------------------------------
void CArmyWar::ReadDeltaMoveCommand(dreamMessage *mes, clientData *client)
{
int processedFrame;
int flags = 0;
// Flags
flags = mes->ReadByte();
// Key
if(flags & CMD_KEY)
{
client->serverFrame.key = mes->ReadByte();
if (client != localClient)
{
// simulate key presses
if((client->serverFrame.key & KEY_UP) && !(client->command.key & KEY_UP))
{
client->character->simulateKeyDown(OIS::KC_W);
}
if(!(client->serverFrame.key & KEY_UP) && (client->command.key & KEY_UP))
{
client->character->simulateKeyUp(OIS::KC_W);
}
if((client->serverFrame.key & KEY_DOWN) && !(client->command.key & KEY_DOWN))
{
client->character->simulateKeyDown(OIS::KC_S);
}
if(!(client->serverFrame.key & KEY_DOWN) && (client->command.key & KEY_DOWN))
{
client->character->simulateKeyUp(OIS::KC_S);
}
if((client->serverFrame.key & KEY_LEFT) && !(client->command.key & KEY_LEFT))
{
client->character->simulateKeyDown(OIS::KC_A);
}
if(!(client->serverFrame.key & KEY_LEFT) && (client->command.key & KEY_LEFT))
{
client->character->simulateKeyUp(OIS::KC_A);
}
if((client->serverFrame.key & KEY_RIGHT) && !(client->command.key & KEY_RIGHT))
{
client->character->simulateKeyDown(OIS::KC_D);
}
if(!(client->serverFrame.key & KEY_RIGHT) && (client->command.key & KEY_RIGHT))
{
client->character->simulateKeyUp(OIS::KC_D);
}
}
client->command.key = client->serverFrame.key;
LogString("Client %d: Read key %d", client->index, client->command.key);
}
if(flags & CMD_ORIGIN)
{
processedFrame = mes->ReadByte();
}
// Origin
if(flags & CMD_ORIGIN)
{
client->serverFrame.origin.x = mes->ReadFloat();
client->serverFrame.origin.y = mes->ReadFloat();
client->serverFrame.vel.x = mes->ReadFloat();
client->serverFrame.vel.y = mes->ReadFloat();
client->serverFrame.rot.w = mes->ReadFloat();
client->serverFrame.rot.y = mes->ReadFloat();
//client->serverFrame.yaw = mes->ReadFloat();
if(client == localClient)
{
CheckPredictionError(processedFrame);
}
else
{
client->command.origin.x = client->serverFrame.origin.x;
client->command.origin.y = client->serverFrame.origin.y;
client->command.vel.x = client->serverFrame.vel.x;
client->command.vel.y = client->serverFrame.vel.y;
client->command.rot.w = client->serverFrame.rot.w;
client->command.rot.y = client->serverFrame.rot.y;
//client->command.yaw = client->serverFrame.yaw;
}
}
// Read time to run command
client->command.msec = mes->ReadByte();
}
//-----------------------------------------------------------------------------
// Name: empty()
// Desc:
//-----------------------------------------------------------------------------
void CArmyWar::BuildDeltaMoveCommand(dreamMessage *mes, clientData *theClient)
{
int flags = 0;
int last = (networkClient->GetOutgoingSequence() - 1) & (COMMAND_HISTORY_SIZE-1);
// Check what needs to be updated
if(theClient->frame[last].key != theClient->command.key)
flags |= CMD_KEY;
// Add to the message
// Flags
mes->WriteByte(flags);
// Key
if(flags & CMD_KEY)
{
mes->WriteByte(theClient->command.key);
}
mes->WriteByte(theClient->command.msec);
}
//-----------------------------------------------------------------------------
// Name: empty()
// Desc:
//-----------------------------------------------------------------------------
void CArmyWar::RunNetwork(int msec)
{
//MovePlayer();
static int time = 0;
time += msec;
// Framerate is too high
if(time < (1000 / 60)) {
//MovePlayer();
if(localClient)
localClient->character->addTime(rendertime);
return;
}
frametime = time / 1000.0f;
time = 0;
// Read packets from server, and send new commands
ReadPackets();
SendCommand();
int ack = networkClient->GetIncomingAcknowledged();
int current = networkClient->GetOutgoingSequence();
// Check that we haven't gone too far
if(current - ack > COMMAND_HISTORY_SIZE)
return;
if(!localClient)
return;
// Predict the frames that we are waiting from the server
for(int a = ack + 1; a < current; a++)
{
int prevframe = (a-1) & (COMMAND_HISTORY_SIZE-1);
int frame = a & (COMMAND_HISTORY_SIZE-1);
PredictMovement(prevframe, frame);
}
//MoveObjects();
localClient->character->updateAnimations(rendertime);
localClient->character->updateCamera(rendertime);
}
| [
"[email protected]"
] | [
[
[
1,
600
]
]
] |
00ebbfcd58ea57059d1da94d5e2188f0a77c8adc | 10c14a95421b63a71c7c99adf73e305608c391bf | /gui/painting/qpainter_p.h | 4a886bc754bef289355e394a8840d8412f36808d | [] | no_license | eaglezzb/wtlcontrols | 73fccea541c6ef1f6db5600f5f7349f5c5236daa | 61b7fce28df1efe4a1d90c0678ec863b1fd7c81c | refs/heads/master | 2021-01-22T13:47:19.456110 | 2009-05-19T10:58:42 | 2009-05-19T10:58:42 | 33,811,815 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,920 | h | /****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information ([email protected])
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial Usage
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Nokia.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain
** additional rights. These rights are described in the Nokia Qt LGPL
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
** package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
**
** If you are unsure which license is appropriate for your use, please
** contact the sales department at [email protected].
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QPAINTER_P_H
#define QPAINTER_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include "QtGui/qbrush.h"
//modify #include "QtGui/qfont.h"
#include "QtGui/qpen.h"
#include "QtGui/qregion.h"
#include "QtGui/qmatrix.h"
#include "QtGui/qpainter.h"
#include "QtGui/qpainterpath.h"
#include "QtGui/qpaintengine.h"
// #include <QtCore/qhash.h>
#include "core/qhash.h"
#include "qpen_p.h"
QT_BEGIN_NAMESPACE
class QPaintEngine;
class QEmulationPaintEngine;
class QPaintEngineEx;
struct QTLWExtra;
struct DataPtrContainer {
void *ptr;
};
inline void *data_ptr(const QTransform &t) { return (DataPtrContainer *) &t; }
inline bool qtransform_fast_equals(const QTransform &a, const QTransform &b) { return data_ptr(a) == data_ptr(b); }
// QPen inline functions...
inline QPen::DataPtr &data_ptr(const QPen &p) { return const_cast<QPen &>(p).data_ptr(); }
inline bool qpen_fast_equals(const QPen &a, const QPen &b) { return data_ptr(a) == data_ptr(b); }
inline QBrush qpen_brush(const QPen &p) { return data_ptr(p)->brush; }
inline qreal qpen_widthf(const QPen &p) { return data_ptr(p)->width; }
inline Qt::PenStyle qpen_style(const QPen &p) { return data_ptr(p)->style; }
inline Qt::PenCapStyle qpen_capStyle(const QPen &p) { return data_ptr(p)->capStyle; }
inline Qt::PenJoinStyle qpen_joinStyle(const QPen &p) { return data_ptr(p)->joinStyle; }
// QBrush inline functions...
inline QBrush::DataPtr &data_ptr(const QBrush &p) { return const_cast<QBrush &>(p).data_ptr(); }
inline bool qbrush_fast_equals(const QBrush &a, const QBrush &b) { return data_ptr(a) == data_ptr(b); }
inline Qt::BrushStyle qbrush_style(const QBrush &b) { return data_ptr(b)->style; };
inline const QColor &qbrush_color(const QBrush &b) { return data_ptr(b)->color; };
inline bool qbrush_has_transform(const QBrush &b) { return data_ptr(b)->transform.type() > QTransform::TxNone; }
class QPainterClipInfo
{
public:
enum ClipType { RegionClip, PathClip, RectClip, RectFClip };
QPainterClipInfo(const QPainterPath &p, Qt::ClipOperation op, const QTransform &m) :
clipType(PathClip), matrix(m), operation(op), path(p) { }
QPainterClipInfo(const QRegion &r, Qt::ClipOperation op, const QTransform &m) :
clipType(RegionClip), matrix(m), operation(op), region(r) { }
QPainterClipInfo(const QRect &r, Qt::ClipOperation op, const QTransform &m) :
clipType(RectClip), matrix(m), operation(op), rect(r) { }
QPainterClipInfo(const QRectF &r, Qt::ClipOperation op, const QTransform &m) :
clipType(RectFClip), matrix(m), operation(op), rectf(r) { }
ClipType clipType;
QTransform matrix;
Qt::ClipOperation operation;
QPainterPath path;
QRegion region;
QRect rect;
QRectF rectf;
// ###
// union {
// QRegionData *d;
// QPainterPathPrivate *pathData;
// struct {
// int x, y, w, h;
// } rectData;
// struct {
// qreal x, y, w, h;
// } rectFData;
// };
};
class Q_GUI_EXPORT QPainterState : public QPaintEngineState
{
public:
QPainterState();
QPainterState(const QPainterState *s);
virtual ~QPainterState();
void init(QPainter *p);
QPointF brushOrigin;
// QFont font;
// QFont deviceFont;
QPen pen;
QBrush brush;
QBrush bgBrush; // background brush
QRegion clipRegion;
QPainterPath clipPath;
Qt::ClipOperation clipOperation;
QPainter::RenderHints renderHints;
QList<QPainterClipInfo> clipInfo; // ### Make me smaller and faster to copy around...
QTransform worldMatrix; // World transformation matrix, not window and viewport
QTransform matrix; // Complete transformation matrix,
QPoint redirection_offset;
int wx, wy, ww, wh; // window rectangle
int vx, vy, vw, vh; // viewport rectangle
qreal opacity;
uint WxF:1; // World transformation
uint VxF:1; // View transformation
uint clipEnabled:1;
Qt::BGMode bgMode;
QPainter *painter;
Qt::LayoutDirection layoutDirection;
QPainter::CompositionMode composition_mode;
uint emulationSpecifier;
uint changeFlags;
};
struct QPainterDummyState
{
// QFont font;
QPen pen;
QBrush brush;
QTransform transform;
};
class QPainterPrivate
{
Q_DECLARE_PUBLIC(QPainter)
public:
QPainterPrivate(QPainter *painter)
: q_ptr(painter), d_ptrs(0), state(0), dummyState(0), txinv(0), inDestructor(false), d_ptrs_size(0),
refcount(1), device(0), original_device(0), helper_device(0), engine(0), emulationEngine(0),
extended(0)
{
}
~QPainterPrivate();
QPainter *q_ptr;
QPainterPrivate **d_ptrs;
QPainterState *state;
QVector<QPainterState*> states;
mutable QPainterDummyState *dummyState;
QTransform invMatrix;
uint txinv:1;
uint inDestructor : 1;
uint d_ptrs_size;
uint refcount;
enum DrawOperation { StrokeDraw = 0x1,
FillDraw = 0x2,
StrokeAndFillDraw = 0x3
};
QPainterDummyState *fakeState() const {
if (!dummyState)
dummyState = new QPainterDummyState();
return dummyState;
}
void updateEmulationSpecifier(QPainterState *s);
void updateStateImpl(QPainterState *state);
void updateState(QPainterState *state);
void draw_helper(const QPainterPath &path, DrawOperation operation = StrokeAndFillDraw);
void drawStretchedGradient(const QPainterPath &path, DrawOperation operation);
void drawOpaqueBackground(const QPainterPath &path, DrawOperation operation);
void updateMatrix();
void updateInvMatrix();
int rectSubtraction() const {
return state->pen.style() != Qt::NoPen && state->pen.width() == 0 ? 1 : 0;
}
void checkEmulation();
QTransform viewTransform() const;
static bool attachPainterPrivate(QPainter *q, QPaintDevice *pdev);
void detachPainterPrivate(QPainter *q);
QPaintDevice *device;
QPaintDevice *original_device;
QPaintDevice *helper_device;
QPaintEngine *engine;
QEmulationPaintEngine *emulationEngine;
QPaintEngineEx *extended;
QBrush colorBrush; // for fill with solid color
};
Q_GUI_EXPORT void qt_draw_helper(QPainterPrivate *p, const QPainterPath &path, QPainterPrivate::DrawOperation operation);
// QString qt_generate_brush_key(const QBrush &brush);
QT_END_NAMESPACE
#endif // QPAINTER_P_H
| [
"zhangyinquan@0feb242a-2539-11de-a0d7-251e5865a1c7"
] | [
[
[
1,
261
]
]
] |
fdacf2b0eb8a626fe396fe1010477346b2e551d0 | 5b3221bdc6edd8123287b2ace0a971eb979d8e2d | /Fiew/XUnrar.cpp | b7ccfb519846d800cf877b4164124bb4de713877 | [] | no_license | jackiejohn/fedit-image-editor | 0a4b67b46b88362d45db6a2ba7fa94045ad301e2 | fd6a87ed042e8adf4bf88ddbd13f2e3b475d985a | refs/heads/master | 2021-05-29T23:32:39.749370 | 2009-02-25T21:01:11 | 2009-02-25T21:01:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 43 | cpp | #include "stdafx.h"
#include "XUn.h"
| [
"[email protected]"
] | [
[
[
1,
4
]
]
] |
11fb8de2ba8a7f09e9330ff382bb2533e7844a22 | c2a70374051ef8f96105d65c84023d97c90f4806 | /bin/src/loadBmp/common/Filter/plfilterrotate.h | 172d4074008412f4cfa3a73628ff36fd41f5ac24 | [] | no_license | haselab-net/SpringheadOne | dcf6f10cb1144b17790a782f519ae25cbe522bb2 | 004335b64ec7bea748ae65a85463c0e85b98edbd | refs/heads/master | 2023-08-04T20:27:17.158435 | 2006-04-15T16:49:35 | 2006-04-15T16:49:35 | 407,701,182 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,439 | h | /*
/--------------------------------------------------------------------
|
| $Id: plfilterrotate.h,v 1.5 2004/06/15 10:26:13 uzadow Exp $
|
| Copyright (c) 1996-1998 Ulrich von Zadow
|
\--------------------------------------------------------------------
*/
#ifndef FILTERROTATE_H
#define FILTERROTATE_H
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "plfilter.h"
//! Rotates a bitmap 90, 180 or 270 degress
class PLFilterRotate : public PLFilter
{
public:
enum AngleType {ninety, oneeighty, twoseventy};
//!
PLFilterRotate(AngleType);
//!
virtual ~PLFilterRotate();
//!
virtual void Apply(PLBmpBase * pBmpSource, PLBmp * pBmpDest)
const;
private:
AngleType m_Angle;
};
#endif
/*
/--------------------------------------------------------------------
|
| $Log: /Project/Springhead/bin/src/loadBmp/common/Filter/plfilterrotate.h $
*
* 1 04/07/12 13:34 Hase
| Revision 1.5 2004/06/15 10:26:13 uzadow
| Initial nonfunctioning version of plbmpbase.
|
| Revision 1.4 2003/02/27 23:01:33 uzadow
| Linux version of PLFilterRotate, nicer test output
|
| Revision 1.3 2003/02/27 22:46:57 uzadow
| Added plfilterrotate.
|
| Revision 1.1 2002/02/05 09:40:54 david
| pavel added rotate90 filter
|
\--------------------------------------------------------------------
*/
| [
"jumius@05cee5c3-a2e9-0310-9523-9dfc2f93dbe1"
] | [
[
[
1,
57
]
]
] |
ce5f7e87bcd88ef69cce2fffc02aacff2caa5693 | 880138e13781ed13ffe6d74244c96591b42a8ffb | /tp1/main.cpp | ff9418eaee6487a1080a0c99c13c72284cdf7d06 | [] | no_license | segeschecho/metodos-numericos-2007 | 0ba107a24db85c409c0c5e7ff12e007056aa45c3 | 807cc4c785bfcf0d24820af8d3b1770b7779e967 | refs/heads/master | 2021-01-10T21:43:53.087502 | 2007-11-19T00:43:23 | 2007-11-19T00:43:23 | 32,889,591 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,512 | cpp | #include <iostream>
#include <fstream>
#include <math.h>
#include <iomanip.h>
#include "DLFloat.h"
using namespace std;
DLFloat factorial(unsigned int n, unsigned int p)
{
DLFloat res(p, 1);
DLFloat i(p, 2);
//i lo hice DLFloat por la linea: res = res*i; que viene luego
if (n == 0)
return res;
while (i.valor() <= n){
res = res*i;
i++;
}
return res;
}
/////////////////////////////////////////////////////////////////////////////
//Aproximacion de 1/(e^x) con taylor, sumando desde el mayor termino al menor
/////////////////////////////////////////////////////////////////////////////
DLFloat taylorMenorAMayorInv(long double valor, unsigned int n, unsigned int precision){
DLFloat res(precision, 1); //lo inicializo en 1 para no calcular el 1er termino de la serie
DLFloat x(precision);
x = valor;
while (n > 0){
res = res + (x^n)/factorial(n,precision);
n--;
}
return res^(-1);
}
/////////////////////////////////////////////////////////////////////////////
//Aproximacion de 1/(e^x) con taylor, sumando desde el menor termino al mayor
/////////////////////////////////////////////////////////////////////////////
DLFloat taylorMayorAMenorInv(long double valor, unsigned int n, unsigned int precision){
DLFloat res(precision, 1); //lo inicializo en 1 para no calcular el 1er termino de la serie
DLFloat x(precision);
x = valor;
unsigned int i = 1;
while (i < n){
res = res + (x^i)/factorial(i, precision);
i++;
}
return res^(-1);
}
////////////////////////////////////////////////////////////////////////////
//Aproximacion de e^(-x) con taylor, sumando desde el mayor termino al menor
////////////////////////////////////////////////////////////////////////////
DLFloat taylorMenorAMayor(long double valor, unsigned int n, unsigned int precision){
DLFloat res(precision, 1); //lo inicializo en 1 para no calcular el 1er termino de la serie
DLFloat x(precision);
DLFloat neg(1, 1);
x = valor;
while (n > 0){
neg = pow(-1,n%2);
res = res + neg*((x^n)/factorial(n,precision));
n--;
}
return res;
}
////////////////////////////////////////////////////////////////////////////
//Aproximacion de e^(-x) con taylor, sumando desde el menor termino al mayor
////////////////////////////////////////////////////////////////////////////
DLFloat taylorMayorAMenor(long double valor, unsigned int n, unsigned int precision){
DLFloat res(precision, 1); //lo inicializo en 1 para no calcular el 1er termino de la serie
DLFloat x(precision);
DLFloat neg(1, 1);
x = valor;
unsigned int i = 1;
while (i < n){
neg = pow(-1,i%2);
res = res + neg*((x^i)/factorial(i, precision));
i++;
}
return res;
}
int main()
{
unsigned int p, orden;
long double valor, e = 2.718281828459045235360287471352662497757247093699959574966967627724;
char hacerPrueba = 's';
while(hacerPrueba == 's')
{
cout << "Aproximacion de e^(-x) con presicion y orden variable" << endl;
cout << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n" << endl;
cout << "Ingresar precision con el cual quiere trabajar el punto flotante: ";
cin >> p;
cout << "\n\n";
cout << "Ingresar orden con el cual quiere aproximar a e^(-x) (1~170): ";
cin >> orden;
cout << "\n\n";
cout << "Ingresar x: ";
cin >> valor;
cout << "\n\n";
DLFloat resultado1(p);
DLFloat resultado2(p);
DLFloat resultado1Inv(p);
DLFloat resultado2Inv(p);
resultado1 = taylorMenorAMayorInv(valor, orden, p);
resultado2 = taylorMayorAMenorInv(valor, orden, p);
resultado1Inv = taylorMenorAMayor(valor, orden, p);
resultado2Inv = taylorMayorAMenor(valor, orden, p);
cout.precision(40);
cout << "Resultado verdadero de e^(-x): " << pow(e,-valor) << endl;
cout << "Resultado con taylor de mayor a menor 1/(e^x): " << resultado1 << endl;
cout << "Resultado con taylor de menor a mayor 1/(e^x): " << resultado2 << endl;
cout << "Resultado con taylor de mayor a menor e^(-x) : " << resultado1Inv << endl;
cout << "Resultado con taylor de menor a mayor e^(-x) : " << resultado2Inv << endl << endl;
cout << "Error Absoluto mayor a menor 1/(e^x): " << (fabs(pow(e,-valor) - resultado1.valor())) << endl;
cout << "Error Relativo mayor a menor 1/(e^x): " << (fabs(pow(e,-valor) - resultado1.valor()) / pow(e,-valor)) << endl << endl;
cout << "Error Absoluto menor a mayor 1/(e^x): " << (fabs(pow(e,-valor) - resultado2.valor())) << endl;
cout << "Error Relativo menor a mayor 1/(e^x): " << (fabs(pow(e,-valor) - resultado2.valor()) / pow(e,-valor)) << endl << endl << endl;
cout << "Error Absoluto mayor a menor e^(-x): " << (fabs(pow(e,-valor) - resultado1Inv.valor())) << endl;
cout << "Error Relativo mayor a menor e^(-x): " << (fabs(pow(e,-valor) - resultado1Inv.valor()) / pow(e,-valor)) << endl << endl;
cout << "Error Absoluto menor a mayor e^(-x): " << (fabs(pow(e,-valor) - resultado2Inv.valor())) << endl;
cout << "Error Relativo menor a mayor e^(-x): " << (fabs(pow(e,-valor) - resultado2Inv.valor()) / pow(e,-valor)) << endl << endl << endl;
cout << endl << endl;
cout << "Desea realizar otra prueba? (s/n)" << endl;
cin >> hacerPrueba;
}
return EXIT_SUCCESS;
}
| [
"seges.ar@85ae770f-1639-0410-9470-155aa9614729"
] | [
[
[
1,
163
]
]
] |
f9e16edd9ce3e8c63d7574ece306c4c276a22766 | f838c6ad5dd7ffa6d9687b0eb49d5381e6f2e776 | /branches/initial_debug/wavelets/devis/wavelet.cpp | 86fa020b62fab706f76206ece80904c9d9f18aa8 | [] | no_license | BackupTheBerlios/wiccoder-svn | e773acb186aa9966eaf7848cda454ab0b5d948c5 | c329182382f53d7a427caec4b86b11968d516af9 | refs/heads/master | 2021-01-11T11:09:56.248990 | 2009-08-19T11:28:23 | 2009-08-19T11:28:23 | 40,806,440 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,693 | cpp | /*---------------------------------------------------------------------------*/
// Baseline Wavelet Transform Coder Construction Kit
//
// Geoff Davis
// [email protected]
// http://www.cs.dartmouth.edu/~gdavis
//
// Copyright 1996 Geoff Davis 9/11/96
//
// Permission is granted to use this software for research purposes as
// long as this notice stays attached to this software.
//
/*---------------------------------------------------------------------------*/
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#ifndef __MATH_H
#include <math.h>
#endif
#include <assert.h>
#include "global.h"
//#include "image.hh"
#include "wavelet.h"
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
Wavelet::Wavelet (FilterSet *filterset)
{
analysisLow = filterset->analysisLow;
analysisHigh = filterset->analysisHigh;
synthesisLow = filterset->synthesisLow;
synthesisHigh = filterset->synthesisHigh;
symmetric = filterset->symmetric;
// amount of space to leave for padding vectors for symmetric extensions
npad = max(analysisLow->size, analysisHigh->size);
}
/*---------------------------------------------------------------------------*/
Wavelet::~Wavelet ()
{
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void Wavelet::transform1d (Real *input, Real *output, int size,
int nsteps, int sym_ext)
{
int i;
int currentIndex = 0;
Real *data[2];
int lowSize = size, highSize;
// If form of extension unspecified, default to symmetric
// extensions for symmetrical filters and periodic extensions for
// asymmetrical filters
if (sym_ext == -1)
sym_ext = symmetric;
// data[0] and data[1] are padded with npad entries on each end
data [0] = new Real [2*npad+size];
data [1] = new Real [2*npad+size];
for (i = 0; i < size; i++)
data[currentIndex][npad+i] = input[i];
while (nsteps--) {
/*if (lowSize <= 2 && symmetric == 1) {
warning ("Reduce # of transform steps or increase signal size");
warning (" or switch to periodic extension");
error ("Low pass subband is too small");
}*/
// Transform
printf ("transforming, size = %d\n", lowSize);
transform_step (data[currentIndex], data[1-currentIndex],
lowSize, sym_ext);
highSize = lowSize/2;
lowSize = (lowSize+1)/2;
// Copy high-pass data to output signal
copy (data[1-currentIndex] + npad + lowSize, output +
lowSize, highSize);
for (i = 0; i < lowSize+highSize; i++)
printf ("%5.2f ", data[1-currentIndex][npad+i]);
printf ("\n\n");
// Now pass low-pass data (first 1/2 of signal) back to
// transform routine
currentIndex = 1 - currentIndex;
}
// Copy low-pass data to output signal
copy (data[currentIndex] + npad, output, lowSize);
delete [] data [1];
delete [] data [0];
}
/*---------------------------------------------------------------------------*/
void Wavelet::invert1d (Real *input, Real *output, int size,
int nsteps, int sym_ext)
{
int i;
int currentIndex = 0;
Real *data[2];
// If form of extension unspecified, default to symmetric
// extensions for symmetrical filters and periodic extensions for
// asymmetrical filters
if (sym_ext == -1)
sym_ext = symmetric;
int *lowSize = new int [nsteps];
int *highSize = new int [nsteps];
lowSize[0] = (size+1)/2;
highSize[0] = size/2;
for (i = 1; i < nsteps; i++) {
lowSize[i] = (lowSize[i-1]+1)/2;
highSize[i] = lowSize[i-1]/2;
}
data [0] = new Real [2*npad+size];
data [1] = new Real [2*npad+size];
copy (input, data[currentIndex]+npad, lowSize[nsteps-1]);
while (nsteps--) {
// grab the next high-pass component
copy (input + lowSize[nsteps],
data[currentIndex]+npad+lowSize[nsteps], highSize[nsteps]);
// Combine low-pass data (first 1/2^n of signal) with high-pass
// data (next 1/2^n of signal) to get higher resolution low-pass data
invert_step (data[currentIndex], data[1-currentIndex],
lowSize[nsteps]+highSize[nsteps], sym_ext);
// Now pass low-pass data (first 1/2 of signal) back to
// transform routine
currentIndex = 1 - currentIndex;
}
// Copy inverted signal to output signal
copy (data[currentIndex]+npad, output, size);
delete [] highSize;
delete [] lowSize;
delete [] data [1];
delete [] data [0];
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void Wavelet::transform2d (Real *input, Real *output, int hsize, int vsize,
int nsteps, int sym_ext)
{
int j;
int hLowSize = hsize, hHighSize;
int vLowSize = vsize, vHighSize;
// If form of extension unspecified, default to symmetric
// extensions for symmetrical filters and periodic extensions for
// asymmetrical filters
if (sym_ext == -1)
sym_ext = symmetric;
Real *temp_in = new Real [2*npad+max(hsize,vsize)];
Real *temp_out = new Real [2*npad+max(hsize,vsize)];
copy (input, output, hsize*vsize);
while (nsteps--) {
/*if ((hLowSize <= 2 || vLowSize <= 2) && sym_ext == 1) {
warning ("Reduce # of transform steps or increase signal size");
warning (" or switch to periodic extension");
//error ("Low pass subband is too small");
}*/
// Do a convolution on the low pass portion of each row
for (j = 0; j < vLowSize; j++) {
// Copy row j to data array
copy (output+(j*hsize), temp_in+npad, hLowSize);
// Convolve with low and high pass filters
transform_step (temp_in, temp_out, hLowSize, sym_ext);
// Copy back to image
copy (temp_out+npad, output+(j*hsize), hLowSize);
}
// Now do a convolution on the low pass portion of each column
for (j = 0; j < hLowSize; j++) {
// Copy column j to data array
copy (output+j, hsize, temp_in+npad, vLowSize);
// Convolve with low and high pass filters
transform_step (temp_in, temp_out, vLowSize, sym_ext);
// Copy back to image
copy (temp_out+npad, output+j, hsize, vLowSize);
}
// Now convolve low-pass portion again
hHighSize = hLowSize/2;
hLowSize = (hLowSize+1)/2;
vHighSize = vLowSize/2;
vLowSize = (vLowSize+1)/2;
}
delete [] temp_out;
delete [] temp_in;
}
/*---------------------------------------------------------------------------*/
void Wavelet::invert2d (Real *input, Real *output, int hsize, int vsize,
int nsteps, int sym_ext)
{
int i, j;
// If form of extension unspecified, default to symmetric
// extensions for symmetrical filters and periodic extensions for
// asymmetrical filters
if (sym_ext == -1)
sym_ext = symmetric;
int *hLowSize = new int [nsteps],
*hHighSize = new int [nsteps];
int *vLowSize = new int [nsteps],
*vHighSize = new int [nsteps];
hLowSize[0] = (hsize+1)/2;
hHighSize[0] = hsize/2;
vLowSize[0] = (vsize+1)/2;
vHighSize[0] = vsize/2;
for (i = 1; i < nsteps; i++) {
hLowSize[i] = (hLowSize[i-1]+1)/2;
hHighSize[i] = hLowSize[i-1]/2;
vLowSize[i] = (vLowSize[i-1]+1)/2;
vHighSize[i] = vLowSize[i-1]/2;
}
Real *temp_in = new Real [2*npad+max(hsize,vsize)];
Real *temp_out = new Real [2*npad+max(hsize,vsize)];
copy (input, output, hsize*vsize);
while (nsteps--) {
// Do a reconstruction for each of the columns
for (j = 0; j < hLowSize[nsteps]+hHighSize[nsteps]; j++) {
// Copy column j to data array
copy (output+j, hsize, temp_in+npad,
vLowSize[nsteps]+vHighSize[nsteps]);
// Combine low-pass data (first 1/2^n of signal) with high-pass
// data (next 1/2^n of signal) to get higher resolution low-pass data
invert_step (temp_in, temp_out,
vLowSize[nsteps]+vHighSize[nsteps], sym_ext);
// Copy back to image
copy (temp_out+npad, output+j, hsize,
vLowSize[nsteps]+vHighSize[nsteps]);
}
// Now do a reconstruction pass for each row
for (j = 0; j < vLowSize[nsteps]+vHighSize[nsteps]; j++) {
// Copy row j to data array
copy (output + (j*hsize), temp_in+npad,
hLowSize[nsteps]+hHighSize[nsteps]);
// Combine low-pass data (first 1/2^n of signal) with high-pass
// data (next 1/2^n of signal) to get higher resolution low-pass data
invert_step (temp_in, temp_out,
hLowSize[nsteps]+hHighSize[nsteps], sym_ext);
// Copy back to image
copy (temp_out+npad, output + (j*hsize),
hLowSize[nsteps]+hHighSize[nsteps]);
}
}
delete [] hLowSize;
delete [] hHighSize;
delete [] vLowSize;
delete [] vHighSize;
delete [] temp_in;
delete [] temp_out;
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
// input and output are padded with npad values at the beginning and
// at the end
void Wavelet::transform_step (Real *input, Real *output, int size,
int sym_ext)
{
int i, j;
int lowSize = (size+1)/2;
int left_ext, right_ext;
if (analysisLow->size %2) {
// odd filter length
left_ext = right_ext = 1;
} else {
left_ext = right_ext = 2;
}
if (sym_ext)
symmetric_extension (input, size, left_ext, right_ext, 1);
else
periodic_extension (input, size);
// coarse detail
// xxxxxxxxxxxxxxxx --> HHHHHHHHGGGGGGGG
for (i = 0; i < lowSize; i++) {
output[npad+i] = 0.0;
for (j = 0; j < analysisLow->size; j++) {
output [npad+i] +=
input[npad + 2*i + analysisLow->firstIndex + j] *
analysisLow->coeff[j];
}
}
for (i = lowSize; i < size; i++) {
output[npad+i] = 0.0;
for (j = 0; j < analysisHigh->size; j++) {
output [npad+i] +=
input[npad + 2*(i-lowSize) + analysisHigh->firstIndex + j] *
analysisHigh->coeff[j];
}
}
}
/*---------------------------------------------------------------------------*/
void Wavelet::invert_step (Real *input, Real *output, int size, int sym_ext)
{
int i, j;
int left_ext, right_ext, symmetry;
// amount of low and high pass -- if odd # of values, extra will be
// low pass
int lowSize = (size+1)/2, highSize = size/2;
symmetry = 1;
if (analysisLow->size % 2 == 0) {
// even length filter -- do (2, X) extension
left_ext = 2;
} else {
// odd length filter -- do (1, X) extension
left_ext = 1;
}
if (size % 2 == 0) {
// even length signal -- do (X, 2) extension
right_ext = 2;
} else {
// odd length signal -- do (X, 1) extension
right_ext = 1;
}
Real *temp = new Real [2*npad+lowSize];
for (i = 0; i < lowSize; i++) {
temp[npad+i] = input[npad+i];
}
if (sym_ext)
symmetric_extension (temp, lowSize, left_ext, right_ext, symmetry);
else
periodic_extension (temp, lowSize);
// coarse detail
// HHHHHHHHGGGGGGGG --> xxxxxxxxxxxxxxxx
for (i = 0; i < 2*npad+size; i++)
output[i] = 0.0;
int firstIndex = synthesisLow->firstIndex;
int lastIndex = synthesisLow->size - 1 + firstIndex;
for (i = -lastIndex/2; i <= (size-1-firstIndex)/2; i++) {
for (j = 0; j < synthesisLow->size; j++) {
output[npad + 2*i + firstIndex + j] +=
temp[npad+i] * synthesisLow->coeff[j];
}
}
left_ext = 2;
if (analysisLow->size % 2 == 0) {
// even length filters
right_ext = (size % 2 == 0) ? 2 : 1;
symmetry = -1;
} else {
// odd length filters
right_ext = (size % 2 == 0) ? 1 : 2;
symmetry = 1;
}
for (i = 0; i < highSize; i++) {
temp[npad+i] = input[npad+lowSize+i];
}
if (sym_ext)
symmetric_extension (temp, highSize, left_ext, right_ext,
symmetry);
else
periodic_extension (temp, highSize);
firstIndex = synthesisHigh->firstIndex;
lastIndex = synthesisHigh->size - 1 + firstIndex;
for (i = -lastIndex/2; i <= (size-1-firstIndex)/2; i++) {
for (j = 0; j < synthesisHigh->size; j++) {
output[npad + 2*i + firstIndex + j] +=
temp[npad+i] * synthesisHigh->coeff[j];
}
}
delete [] temp;
}
/*---------------------------------------------------------------------------*/
// Do symmetric extension of data using prescribed symmetries
// Original values are in output[npad] through output[npad+size-1]
// New values will be placed in output[0] through output[npad] and in
// output[npad+size] through output[2*npad+size-1] (note: end values may
// not be filled in)
// left_ext = 1 -> extension at left bdry is ... 3 2 1 | 0 1 2 3 ...
// left_ext = 2 -> extension at left bdry is ... 3 2 1 0 | 0 1 2 3 ...
// right_ext = 1 or 2 has similar effects at the right boundary
//
// symmetry = 1 -> extend symmetrically
// symmetry = -1 -> extend antisymmetrically
void Wavelet::symmetric_extension (Real *output, int size, int left_ext, int
right_ext, int symmetry)
{
int i;
int first = npad, last = npad + size-1;
if (symmetry == -1) {
if (left_ext == 1)
output[--first] = 0;
if (right_ext == 1)
output[++last] = 0;
}
int originalFirst = first;
int originalLast = last;
int originalSize = originalLast-originalFirst+1;
int period = 2 * (last - first + 1) - (left_ext == 1) - (right_ext == 1);
if (left_ext == 2)
output[--first] = symmetry*output[originalFirst];
if (right_ext == 2)
output[++last] = symmetry*output[originalLast];
// extend left end
int nextend = min (originalSize-2, first);
for (i = 0; i < nextend; i++) {
output[--first] = symmetry*output[originalFirst+1+i];
}
// should have full period now -- extend periodically
while (first > 0) {
first--;
output[first] = output[first+period];
}
// extend right end
nextend = min (originalSize-2, 2*npad+size-1 - last);
for (i = 0; i < nextend; i++) {
output[++last] = symmetry*output[originalLast-1-i];
}
// should have full period now -- extend periodically
while (last < 2*npad+size-1) {
last++;
output[last] = output[last-period];
}
}
/*---------------------------------------------------------------------------*/
// Do periodic extension of data using prescribed symmetries
// Original values are in output[npad] through output[npad+size-1]
// New values will be placed in output[0] through output[npad] and in
// output[npad+size] through output[2*npad+size-1] (note: end values may
// not be filled in)
void Wavelet::periodic_extension (Real *output, int size)
{
int first = npad, last = npad + size-1;
// extend left periodically
while (first > 0) {
first--;
output[first] = output[first+size];
}
// extend right periodically
while (last < 2*npad+size-1) {
last++;
output[last] = output[last-size];
}
}
/*---------------------------------------------------------------------------*/
| [
"wonder_mice@b1028fda-012f-0410-8370-c1301273da9f"
] | [
[
[
1,
522
]
]
] |
d8d3dc3824b984dca28e73cc293223399992b960 | c307dc6026aa8294568144317923b58d71e74113 | /src/PacketAnalyzer.h | d7c99e91c5fe54622435769b2e0b75aae8dbf3f8 | [] | no_license | bLuma/PcapRRD | 724ad1bc9a349ad26d8fd357ff381b8ae49d4b0d | ccea2843015bcd7300d69007364be9f3138a9452 | refs/heads/master | 2021-01-23T07:33:51.686731 | 2011-12-04T13:53:20 | 2011-12-04T13:53:20 | 102,508,696 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,969 | h | /*
* File: PacketAnalyzer.h
* Author: roman
*
* Created on 18. říjen 2011, 8:58
*/
#ifndef PACKETANALYZER_H
#define PACKETANALYZER_H
#include <pcap.h>
#include "common.h"
// 0x0800 Internet Protocol, Version 4 (IPv4)
// 0x0806 Address Resolution Protocol (ARP)
// 0x8035 Reverse Address Resolution Protocol (RARP)
// 0x86DD Internet Protocol, Version 6 (IPv6)
#define PROTO_L2_IPV4 0x0800
#define PROTO_L2_IPV6 0x86DD
#define PROTO_L2_ARP 0x0806
#define PROTO_L2_RARP 0x8035
/*#define PROTO_L3_TCP 0x06
#define PROTO_L3_UDP 0x11
#define PROTO_L3_ICMP 0x01*/
enum L3Proto {
PROTO_L3_TCP = 0x06,
PROTO_L3_UDP = 0x11,
PROTO_L3_ICMP = 0x01
};
/**
* Analyzator paketu.
*/
class PacketAnalyzer {
public:
PacketAnalyzer(pcap_pkthdr* header, const unsigned char* data);
PacketAnalyzer(const PacketAnalyzer& orig);
virtual ~PacketAnalyzer();
void analyze();
private:
inline void doL2();
inline void doL3();
inline void doL4();
/**
* Zjistuje, je-li paket IPv4.
*
* @return true, pokud se jedna o IPv4 paket
*/
inline bool isIpv4() const {
return m_protoL3 == PROTO_L2_IPV4 && m_dataL3;
}
/**
* Vraci velikost zachyceneho paketu.
*
* @return velikost paketu
*/
inline unsigned int getPacketLen() const {
return m_header->len;
}
/**
* Prubezne kontroluje je-li velikost zachycene casti paketu dostatecna pro
* dalsi zpracovni.
*
* @param required pozadovana velikost paketu
* @return true, pokud je paket cely
*/
inline bool checkSize(unsigned int required) {
m_reqSize += required;
if (getPacketLen() < m_reqSize) {
DEBUG_PACKET("checkSize failed: " << getPacketLen() << " / " << m_reqSize << " (" << required << ")");
return false;
}
return true;
}
/**
* Potrebna velikost paketu. Viz checkSize.
*/
unsigned int m_reqSize;
/**
* Informacni hlavicka zachyceneho paketu.
*/
pcap_pkthdr* m_header;
/**
* Datova cast zachyceneho paketu.
*/
const unsigned char* m_data;
/**
* Cislo protokolu treti vrstvy.
*/
unsigned short m_protoL3;
/**
* Data protokolu treti vrstvy.
*/
const unsigned char* m_dataL3;
/**
* Cislo protokolu ctvrte vrstvy.
*/
unsigned short m_protoL4;
/**
* Data protokolu ctvrte vrstvy.
*/
const unsigned char* m_dataL4;
/**
* Zdrojova adresa, aktualni typ zalezi na analyzovane vrstve.
*/
const unsigned char* m_source;
/**
* Cilova adresa, aktualni typ zalezi na analyzovane vrstve.
*/
const unsigned char* m_destination;
};
#endif /* PACKETANALYZER_H */
| [
"[email protected]"
] | [
[
[
1,
127
]
]
] |
4b98d465babf179aa8b811407c1a5251cc38dace | 27d5670a7739a866c3ad97a71c0fc9334f6875f2 | /CPP/Modules/GpsSirf/GpsMotorola.cpp | 9c592e8da3e3b8a35fd7baff3a7d02e64c4089a9 | [
"BSD-3-Clause"
] | permissive | ravustaja/Wayfinder-S60-Navigator | ef506c418b8c2e6498ece6dcae67e583fb8a4a95 | 14d1b729b2cea52f726874687e78f17492949585 | refs/heads/master | 2021-01-16T20:53:37.630909 | 2010-06-28T09:51:10 | 2010-06-28T09:51:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,203 | cpp | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the Vodafone Group Services Ltd nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "arch.h"
#include "MsgBufferEnums.h"
#include "Module.h"
#include "Serial.h"
#include "Gps.h"
#include "GpsCommon.h"
#include "GpsMotorola.h"
#include "GpsParser.h"
#include "MotorolaParser.h"
#include "LogMacros.h"
#undef DBG
#define DBG DROP
/** Expected time between two position fixes in milliseconds */
#define EXPECTED_DATA_INTERVAL 1000
namespace isab {
GpsMotorola::GpsMotorola(class SerialProviderPublic *p)
: GpsCommon("GpsMotorolaThread", p, EXPECTED_DATA_INTERVAL)
{
DBG("GpsMotorola::GpsMotorola\n");
m_parser = new MotorolaParser(p, m_log);
}
} /* namespace isab */
| [
"[email protected]"
] | [
[
[
1,
45
]
]
] |
30236890c0b7f832fe026a96fee2e3a1918c8197 | ea12fed4c32e9c7992956419eb3e2bace91f063a | /zombie/code/conjurer/conjurer/src/conjurer/nconjurerwindowhandler_main.cc | 662657ff85ad7c72b6d4c3abc96f6bd9e974ba8a | [] | no_license | ugozapad/TheZombieEngine | 832492930df28c28cd349673f79f3609b1fe7190 | 8e8c3e6225c2ed93e07287356def9fbdeacf3d6a | refs/heads/master | 2020-04-30T11:35:36.258363 | 2011-02-24T14:18:43 | 2011-02-24T14:18:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 882 | cc | //------------------------------------------------------------------------------
// nconjurerwindowhandler_main.cc
// (C) 2005 Conjurer Services, S.A.
//------------------------------------------------------------------------------
#include "precompiled/pchconjurerapp.h"
#include "conjurer/nconjurerwindowhandler.h"
#include "conjurer/nconjurerapp.h"
//------------------------------------------------------------------------------
/**
Constructor
*/
nConjurerWindowHandler::nConjurerWindowHandler(nD3D9Server* ptr) :
nD3D9WindowHandler(ptr)
{
// Empty
}
//------------------------------------------------------------------------------
/**
Called when WM_CLOSE is received, return true if app should quit
*/
bool
nConjurerWindowHandler::OnClose()
{
nConjurerApp::Instance()->SetQuitConfirmationPending(true);
return false;
}
| [
"magarcias@c1fa4281-9647-0410-8f2c-f027dd5e0a91"
] | [
[
[
1,
28
]
]
] |
0c68cd79fd1474a2556b6f2d72ba7edae247f688 | 7347ab0d3daab6781af407d43ac29243daeae438 | /src/utilities/base64.cpp | be42fc55f64bf27357ba22e3077197d7e0b1e568 | [] | no_license | suprafun/smalltowns | e096cdfc11e329674a7f76486452f4cd58ddaace | c722da7dd3a1d210d07f22a6c322117b540e63da | refs/heads/master | 2021-01-10T03:09:47.664318 | 2011-06-03T01:22:29 | 2011-06-03T01:22:29 | 50,808,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,202 | cpp | /*********************************************
*
* Author: David Athay
*
* License: New BSD License
*
* Copyright (c) 2009, CT Games
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* - Neither the name of CT Games nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
*
* Date of file creation: 09-04-08
*
* $Id$
*
********************************************/
#include "base64.h"
#include <cstring>
namespace ST
{
int decode_value(char value)
{
static const char decoding[] = {
62, -1, -1, -1,
63, 52, 53, 54,
55, 56, 57, 58,
59, 60, 61, -1,
-1, -1, -2, -1,
-1, -1, 0, 1,
2, 3, 4, 5,
6, 7, 8, 9,
10, 11, 12, 13,
14, 15, 16, 17,
18, 19, 20, 21,
22, 23, 24, 25,
-1, -1, -1, -1,
-1, -1, 26, 27,
28, 29, 30, 31,
32, 33, 34, 35,
36, 37, 38, 39,
40, 41, 42, 43,
44, 45, 46, 47,
48, 49, 50, 51
};
static const char decoding_size = sizeof(decoding);
value -= 43;
if (value < 0 || value > decoding_size)
return -1;
return decoding[(int)value];
}
unsigned char* Base64::decode(const char *inStr, unsigned char *outStr)
{
int shift = 0;
int accum = 0;
int n = 0;
for (int i = 0; i < strlen(inStr); ++i)
{
int value = decode_value(inStr[i]);
if(value >= 0)
{
accum <<= 6;
shift += 6;
accum |= value;
if(shift >= 8)
{
shift -= 8;
outStr[n] = (char)((accum >> shift) & 0xFF);
++n;
}
}
}
return outStr;
}
int Base64::decodeSize(int stringSize)
{
// get the length
int len = stringSize;
int length = (len / 4) * 3;
// add remainder
if ((len % 4) == 3)
length += 2;
if ((len % 4) == 2)
length += 1;
return length;
}
}
| [
"ko2fan@2ae5cb60-8703-11dd-9899-c7ba65f7c4c7"
] | [
[
[
1,
120
]
]
] |
dcd57df579e4700bfdadfd49cb2a235d4f7bcbd3 | 21737c1ff12ead3baf7bcf8bedbadb69b5f7ff1a | /logger.cpp | 95263c3835684aa6a8aba3e8a6c63bf7f2ffea77 | [] | no_license | abdo5520/RTGen | 941272322e4d92b5b014a3154e53dbe6b1d7e8cf | 8d0bf859a5e601b4df775f0a21eadc07820f4414 | refs/heads/master | 2020-12-25T08:50:56.058621 | 2011-04-07T19:22:15 | 2011-04-07T19:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,299 | cpp |
#include "logger.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
using namespace std;
Logger::Logger ( string filename ) {
/**Edited by Jared on 6/27/08. This was incorrectly reading "" so changed to "\"\""
* to fix this issue.
**/
if ( filename.compare("\"\"") != 0 ) {
logToFile = true ;
logstream.open(filename.c_str()) ;
if ( logstream.bad() ) {
cout << "cannot open logfile stream. " << endl ;
exit (-1) ;
}
//microsecond timing
char buffer[30];
struct timeval tv;
time_t curtime;
gettimeofday(&tv, NULL);
curtime=tv.tv_sec;
strftime(buffer,30,"%m-%d-%Y %T.",localtime(&curtime));
//char strTime[20];
//time_t time1 = time(NULL) ;
//tm * time2 = localtime ( &time1 ) ;
//strftime( &strTime[0], 20, "%Y-%m-%dT%H:%M:%S", time2 ) ;
char hostname[20] ;
gethostname(hostname, 20) ;
logstream << "<?xml version=\"1.0\" encoding=\"ascii\"?> " << endl ;
logstream << "<log node=\"" << hostname << "\" date=\""
<< buffer << tv.tv_usec << "\">" << endl ;
}
else {
logToFile = false;
/**Added by Jared on 6/26/08. Corrected this so it will log to the console.
* As a note, printing to the console will effect efficiency so this option
* should be used with caution.
**/
logstream.copyfmt(std::cout);
logstream.clear(std::cout.rdstate());
logstream.basic_ios<char>::rdbuf(std::cout.rdbuf());
//edits end
char strTime[20];
time_t time1 = time(NULL) ;
tm * time2 = localtime ( &time1 ) ;
strftime( &strTime[0], 20, "%Y-%m-%dT%H:%M:%S", time2 ) ;
char hostname[20] ;
gethostname(hostname, 20) ;
logstream << "<?xml version=\"1.0\" encoding=\"ascii\"?> " << endl ;
logstream << "<log node=\"" << hostname << "\" date=\""
<< strTime << "\">" << endl ;
}
}
/**Print a string to the log file or console
**/
void Logger::Log ( string line ) {
pthread_mutex_lock (&mutex) ;
if ( logToFile ) {
if (!logstream.bad() )
logstream << " " << line << endl ;
else {
cout << "error logging to file." << endl ;
}
}
else
cout << " " << line << endl ;
pthread_mutex_unlock(&mutex) ;
}
/**Close Log
**/
void Logger::CloseLog ( ) {
logstream.close() ;
}
| [
"[email protected]"
] | [
[
[
1,
83
]
]
] |
cff41dc4afd4faaf39246145ad051fe1979eb6a7 | 5324f03896092ccfd3d773155123d686941e01f4 | /src/mediaserver/hmediaserver_deviceconfiguration_p.h | c55dcfa5ba04284fcc1794064c3a3651e3f73035 | [] | no_license | Kangda/Upnp-AV-Demo | 93bfad060fc8eb60a1e9e63c4edb5823d37fcef4 | 3013b0dee85a367af40a3383e6cbb5b6e7b0d928 | refs/heads/master | 2021-01-10T19:38:41.399817 | 2011-12-11T01:26:17 | 2011-12-11T01:26:17 | 2,770,068 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,681 | h | /*
* Copyright (C) 2011 Tuomo Penttinen, all rights reserved.
*
* Author: Tuomo Penttinen <[email protected]>
*
* This file is part of Herqq UPnP Av (HUPnPAv) library.
*
* Herqq UPnP Av is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Herqq UPnP Av is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Herqq UPnP Av. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HMEDIASERVER_DEVICECONFIGURATION_P_H_
#define HMEDIASERVER_DEVICECONFIGURATION_P_H_
//
// !! Warning !!
//
// This file is not part of public API and it should
// never be included in client code. The contents of this file may
// change or the file may be removed without of notice.
//
#include <HUpnpAv/HUpnpAv>
#include <QtCore/QScopedPointer>
namespace Herqq
{
namespace Upnp
{
namespace Av
{
//
//
//
class H_UPNP_AV_EXPORT HMediaServerDeviceConfigurationPrivate
{
H_DISABLE_COPY(HMediaServerDeviceConfigurationPrivate)
public:
QScopedPointer<HContentDirectoryServiceConfiguration> m_cdsConf;
HMediaServerDeviceConfigurationPrivate();
virtual ~HMediaServerDeviceConfigurationPrivate();
};
}
}
}
#endif /* HMEDIASERVER_DEVICECONFIGURATION_P_H_ */
| [
"[email protected]"
] | [
[
[
1,
64
]
]
] |
9442e24014a2816804b7343dd9263a7f88a84e46 | 4418b6f7483d42a0f9c0140a676482ee5c764a24 | /NITE/cpp/CircleDetector/main.cpp | 6b4a9bb43f0b280d8bcc2dcfc3d5020600ba70ad | [] | no_license | nsxsoft/KinectSensorProgramming | 6bbdea86f6cc1fe130c1dcdb7fd6ae6c844fb15a | 7f59d0ea7c0d9fa35f5d50aa5cf4e75cd7dd03a2 | refs/heads/master | 2021-05-27T01:06:55.699477 | 2011-10-18T07:11:05 | 2011-10-18T07:11:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,871 | cpp | #include <iostream>
#include <stdexcept>
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <XnCppWrapper.h>
#include <XnVSessionManager.h>
#include <XnVCircleDetector.h>
// 設定ファイルのパス(環境に合わせて変更してください)
#if (XN_PLATFORM == XN_PLATFORM_WIN32)
const char* CONFIG_XML_PATH = "../../../Data/SamplesConfig.xml";
#elif (XN_PLATFORM == XN_PLATFORM_MACOSX)
const char* CONFIG_XML_PATH = "../../../../../Data/SamplesConfig.xml";
#elif (XN_PLATFORM == XN_PLATFORM_LINUX_X86)
const char* CONFIG_XML_PATH = "../../../Data/SamplesConfig.xml";
#else
const char* CONFIG_XML_PATH = "Data/SamplesConfig.xml";
#endif
// セッションの開始を通知されるコールバック
void XN_CALLBACK_TYPE SessionStart(const XnPoint3D& pFocus, void* UserCxt)
{
std::cout << "SessionStart" << std::endl;
}
// セッションの終了を通知されるコールバック
void XN_CALLBACK_TYPE SessionEnd(void* UserCxt)
{
std::cout << "SessionEnd" << std::endl;
}
// 円を描いたことを通知されるコールバック
void XN_CALLBACK_TYPE Circle(XnFloat fTimes, XnBool bConfident,
const XnVCircle *pCircle, void *pUserCxt)
{
std::cout << "Circle:" << fTimes << "," << bConfident << std::endl;
}
void XN_CALLBACK_TYPE NoCircle(XnFloat fLastValue, XnVCircleDetector::XnVNoCircleReason eReason,
void *pUserCxt)
{
std::cout << "NoCircle:" << fLastValue << "," << eReason << std::endl;
}
int main (int argc, char * const argv[]) {
IplImage* camera = 0;
try {
// OpenNIのコンテキストを初期化する
xn::Context context;
XnStatus rc = context.InitFromXmlFile(CONFIG_XML_PATH);
if (rc != XN_STATUS_OK) {
throw std::runtime_error(xnGetStatusString(rc));
}
// イメージジェネレータの作成
xn::ImageGenerator image;
rc = context.FindExistingNode(XN_NODE_TYPE_IMAGE, image);
if (rc != XN_STATUS_OK) {
throw std::runtime_error(xnGetStatusString(rc));
}
// カメラサイズのイメージを作成(8bitのRGB)
XnMapOutputMode outputMode;
image.GetMapOutputMode(outputMode);
camera = ::cvCreateImage(cvSize(outputMode.nXRes, outputMode.nYRes),
IPL_DEPTH_8U, 3);
if (!camera) {
throw std::runtime_error("error : cvCreateImage");
}
// NITEのセッションマネージャーを初期化する
XnVSessionManager sessionManager;
rc = sessionManager.Initialize(&context, "Wave,Click", "RaiseHand");
if (rc != XN_STATUS_OK) {
throw std::runtime_error(xnGetStatusString(rc));
}
// セッションの開始終了を通知するコールバックを登録する
XnVHandle sessionCallnack = sessionManager.RegisterSession(
0, &SessionStart, &SessionEnd );
// 円の検出器を作成する
XnVCircleDetector circleDetector;
XnCallbackHandle circleCallback = circleDetector.RegisterCircle(0, Circle);
XnCallbackHandle noCircleCallback =
circleDetector.RegisterNoCircle(0, NoCircle);
// セッションマネージャーに検出器を登録する
sessionManager.AddListener(&circleDetector);
// ジェスチャーの検出を開始する
context.StartGeneratingAll();
std::cout << "Initialize Success" << std::endl;
// メインループ
while (1) {
// それぞれのデータを更新する
context.WaitAndUpdateAll();
sessionManager.Update(&context);
xn::ImageMetaData imageMD;
image.GetMetaData(imageMD);
// カメラ画像の表示
memcpy(camera->imageData, imageMD.RGB24Data(), camera->imageSize);
::cvCvtColor(camera, camera, CV_BGR2RGB);
::cvShowImage("KinectImage", camera);
// キーの取得
char key = cvWaitKey(10);
// 終了する
if (key == 'q') {
break;
}
}
// 登録したコールバックを削除
circleDetector.UnregisterCircle(circleCallback);
circleDetector.UnregisterNoCircle(noCircleCallback);
sessionManager.UnregisterSession(sessionCallnack);
}
catch (std::exception& ex) {
std::cout << ex.what() << std::endl;
}
::cvReleaseImage(&camera);
return 0;
}
| [
"[email protected]"
] | [
[
[
1,
135
]
]
] |
f99f098e954d6f24c8e3a56009acd581a3083f4d | 4b0f51aeecddecf3f57a29ffa7a184ae48f1dc61 | /CleanProject/ParticleUniverse/include/ParticleUniverseAttachableTokens.h | ed180dfc10e514b15b1291c8ca77cf806452ad86 | [] | no_license | bahao247/apeengine2 | 56560dbf6d262364fbc0f9f96ba4231e5e4ed301 | f2617b2a42bdf2907c6d56e334c0d027fb62062d | refs/heads/master | 2021-01-10T14:04:02.319337 | 2009-08-26T08:23:33 | 2009-08-26T08:23:33 | 45,979,392 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,458 | h | /*
-----------------------------------------------------------------------------
This source file is part of the Particle Universe product.
Copyright (c) 2006-2008 Henry van Merode
Usage of this program is free for non-commercial use and licensed under the
the terms of the GNU Lesser General Public License.
You should have received a copy of the GNU Lesser General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
http://www.gnu.org/copyleft/lesser.txt.
-----------------------------------------------------------------------------
*/
#ifndef __PU_ATTACHABLE_TOKENS_H__
#define __PU_ATTACHABLE_TOKENS_H__
#include "ParticleUniversePrerequisites.h"
#include "ParticleUniverseITokenInitialiser.h"
namespace ParticleUniverse
{
/** This class contains the tokens that are needed on a Attachable level.
*/
class _ParticleUniverseExport AttachableTokens : public ITokenInitialiser
{
public:
AttachableTokens(void) {};
virtual ~AttachableTokens(void) {};
/** @see
ITokenInitialiser::setupTokenDefinitions
*/
virtual void setupTokenDefinitions(ITokenRegister* tokenRegister);
protected:
// Tokens which get called during parsing.
class DistanceThresholdToken : public IToken {virtual void parse(ParticleScriptParser* parser);} mDistanceThresholdToken;
};
}
#endif
| [
"pablosn@06488772-1f9a-11de-8b5c-13accb87f508"
] | [
[
[
1,
44
]
]
] |
69d695e393bad77680b1d96cb83bf2de31d0dbec | 2bdc85da8ec860be41ad14fceecedef1a8efc269 | /PythonWrapper/include/PWTypeManager.h | 6836c63b76c9e7d8585549c98d15b0f2fafbf43b | [] | no_license | BackupTheBerlios/pythonwrapper-svn | 5c41a03b23690c62693c7b29e81b240ee24f1a7f | 42879461c7302755f3c803cd1314e8da5a202c68 | refs/heads/master | 2016-09-05T09:53:14.554795 | 2005-12-26T07:52:41 | 2005-12-26T07:52:41 | 40,751,088 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,181 | h | #ifndef _PWTypeManager_h_
#define _PWTypeManager_h_
#include "PWCommon.h"
#include "PWString.h"
#include "PWSingleton.h"
#include "PWConverterInterface.h"
#include <map>
namespace pw
{
class PW_EXPORT TypeManager : public Singleton<TypeManager>
{
public:
typedef std::pair<ConverterInterface *, void *> TypeInfoPair;
public:
static TypeManager &getSingleton();
static TypeManager *getSingletonPtr();
public:
TypeManager();
~TypeManager();
void addDelimitedType(const String &type, const String &delim, ConverterInterface *module, void *typeInfo);
void addType(const String &type, ConverterInterface *module, void *typeInfo);
void addType(PyTypeObject *obj, ConverterInterface *module);
const TypeInfoPair &findConverter(const String &type);
ConverterInterface *findConverter(PyTypeObject *type);
private:
typedef std::map<PyTypeObject *, ConverterInterface *> PyTypeModuleMap;
typedef std::map<String, TypeInfoPair> TypeModuleMap;
TypeModuleMap mTypes;
PyTypeModuleMap mPyTypes;
};
}
#endif
| [
"cculver@827b5c2f-c6f0-0310-96fe-c05a662c181e"
] | [
[
[
1,
41
]
]
] |
d6fece42699e4122f9d16af26580408aabeb8aef | d2a130a712db0d457afbdb5e5508fee9204015f1 | /include/Application.h | 2982ef790d51c91bfa295429aac6d2a1c05747cc | [] | no_license | Yacoby/cpp-reorder | a2cdc3cb199a50be3aa7c855697d0a25f5b9a679 | caf6a2bf0139c16c85e0bf4caba1471d2f0286ab | refs/heads/master | 2016-09-06T10:36:40.497915 | 2011-03-20T17:21:56 | 2011-03-20T17:21:56 | 1,503,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,006 | h | /*
Copyright (c) 2008 Jacob Essex
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/
#include <map>
#ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x0601
#endif
#ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
#endif
#include <Windows.h>
#include <boost/function.hpp>
class Control;
class Application{
typedef std::map<int, Control*> ControlMap;
typedef ControlMap::iterator ControlMapItr;
ControlMap mObjects;
BOOL CALLBACK _dlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam);
static Application* mApp;
protected:
template <typename T>
T* registerObject( T* c, boost::function< void ( HWND,WPARAM ) > f )
{
assert(mObjects.find(c->getIDC())==mObjects.end());
mObjects[c->getIDC()] = c;
c->setEventFunction(f);
return c;
}
public:
Application();
virtual ~Application();
static BOOL CALLBACK dlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam);
virtual void onInit(HWND hwnd);
virtual bool onClose();
}; | [
"[email protected]"
] | [
[
[
1,
68
]
]
] |
a6a76f31f4acded02ca3073055add1398af2f3db | ad80c85f09a98b1bfc47191c0e99f3d4559b10d4 | /code/src/kernel/nroot_init.cc | 6b92eccf7265a6f55d7fc558ed4b70f8ce453206 | [] | no_license | DSPNerd/m-nebula | 76a4578f5504f6902e054ddd365b42672024de6d | 52a32902773c10cf1c6bc3dabefd2fd1587d83b3 | refs/heads/master | 2021-12-07T18:23:07.272880 | 2009-07-07T09:47:09 | 2009-07-07T09:47:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,153 | cc | #define N_IMPLEMENTS nRoot
#define N_KERNEL
//--------------------------------------------------------------------
// IMPLEMENTATION
// nRoot
//
// (C) 1998 by Andre Weissflog
//--------------------------------------------------------------------
#include "kernel/nkernelserver.h"
#include "kernel/nroot.h"
//--------------------------------------------------------------------
// static nRoot Members
//--------------------------------------------------------------------
nClass *nRoot::local_cl = NULL;
nKernelServer *nRoot::ks = NULL;
extern void nroot_initcmds(nClass *);
extern char *nkernel_version;
extern "C" bool root_init(nClass *, nKernelServer *);
extern "C" void root_fini(void);
extern "C" void *root_new(void);
extern "C" char *root_version(void);
//--------------------------------------------------------------------
// root_init()
// Class Construktor
//--------------------------------------------------------------------
bool root_init(nClass *cl, nKernelServer *ks)
{
nRoot::local_cl = cl;
nRoot::ks = ks;
// nRoot Klasse hat keine Superklasse
// Scriptinterface definieren
nroot_initcmds(cl);
return TRUE;
}
//--------------------------------------------------------------------
// root_fini()
// Class Destruktor
//--------------------------------------------------------------------
void root_fini(void)
{
// nicht notwendig bei Root-Klasse: von Superclass abkoppeln
}
//--------------------------------------------------------------------
// root_new()
// Instantiate Object
//--------------------------------------------------------------------
void *root_new(void)
{
return n_new nRoot;
}
//--------------------------------------------------------------------
// root_version()
// Instantiate Object
//--------------------------------------------------------------------
char *root_version(void)
{
return nkernel_version;
}
//--------------------------------------------------------------------
// EOF
//--------------------------------------------------------------------
| [
"plushe@411252de-2431-11de-b186-ef1da62b6547"
] | [
[
[
1,
71
]
]
] |
f3816a130d730a430eecd7ba23a837c373bd06a9 | 0619c96beb1d46e813d5171755c856ea378916b5 | /Generation2/release/moc_mainwindow.cpp | 87a592ef4648f3e293ca1558cb8415e42f478382 | [] | no_license | Neuromancer2701/irrigationgui | d8f77eb299d1beadc04222e1663459fbdff123cc | 9da8610a1f81aa47506a30da0f1fc94cac447129 | refs/heads/master | 2020-04-09T02:08:11.897300 | 2011-03-17T00:11:08 | 2011-03-17T00:11:08 | 32,092,689 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,403 | cpp | /****************************************************************************
** Meta object code from reading C++ file 'mainwindow.h'
**
** Created: Tue Mar 15 21:55:41 2011
** by: The Qt Meta Object Compiler version 62 (Qt 4.7.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../mainwindow.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mainwindow.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 62
#error "This file was generated using the moc from 4.7.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
static const uint qt_meta_data_MainWindow[] = {
// content:
5, // revision
0, // classname
0, 0, // classinfo
1, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount
// slots: signature, parameters, type, tag, flags
12, 11, 11, 11, 0x08,
0 // eod
};
static const char qt_meta_stringdata_MainWindow[] = {
"MainWindow\0\0getdata()\0"
};
const QMetaObject MainWindow::staticMetaObject = {
{ &QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow,
qt_meta_data_MainWindow, 0 }
};
#ifdef Q_NO_DATA_RELOCATION
const QMetaObject &MainWindow::getStaticMetaObject() { return staticMetaObject; }
#endif //Q_NO_DATA_RELOCATION
const QMetaObject *MainWindow::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
}
void *MainWindow::qt_metacast(const char *_clname)
{
if (!_clname) return 0;
if (!strcmp(_clname, qt_meta_stringdata_MainWindow))
return static_cast<void*>(const_cast< MainWindow*>(this));
return QMainWindow::qt_metacast(_clname);
}
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QMainWindow::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
switch (_id) {
case 0: getdata(); break;
default: ;
}
_id -= 1;
}
return _id;
}
QT_END_MOC_NAMESPACE
| [
"king.seth@1baa6d84-2001-11df-aa13-c314d3631722"
] | [
[
[
1,
79
]
]
] |
eed7795e8b488c3d5754155d60ef6708913444c1 | 9a5db9951432056bb5cd4cf3c32362a4e17008b7 | /FacesCapture/branches/FaceCompare/RemoteImaging/MotionDetectWrapper/MotionDetectWrapper.h | e7a80df874dcfb670044ee24e5ed6649dfdb6d5f | [] | no_license | miaozhendaoren/appcollection | 65b0ede264e74e60b68ca74cf70fb24222543278 | f8b85af93f787fa897af90e8361569a36ff65d35 | refs/heads/master | 2021-05-30T19:27:21.142158 | 2011-06-27T03:49:22 | 2011-06-27T03:49:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,139 | h | // MotionDetectWrapper.h
#pragma once
#include "../../OutPut/PreProcess.h"
using namespace System;
namespace MotionDetectWrapper {
public ref class MotionDetector
{
// TODO: Add your methods for this class here.
public:
bool DetectFrame(ImageProcess::Frame^ next, ImageProcess::Frame^ last)
{
if (next == nullptr)
{
throw gcnew System::ArgumentException("Argument is null", "next");
}
Frame nextUf;
Frame lastUf;
ManagedFrameToUnmanaged(next, nextUf);
bool result = ::PreProcessFrame(nextUf, lastUf);
UnmanagedFrameToManaged(lastUf, last);
return result;
}
property bool DrawMotionRect
{
void set(bool draw) { ::SetDrawRect(draw); }
}
void SetAlarmArea(int leftX, int leftY, int rightX, int rightY, bool markIt)
{
::SetAlarmArea(leftX, leftY, rightX, rightY, markIt);
}
void SetRectThr(int fCount, int gCount)
{
::SetRectThr(fCount, gCount);
}
private:
void ManagedFrameToUnmanaged(ImageProcess::Frame ^managed, Frame &unmanaged)
{
unmanaged.cameraID = managed->cameraID;
unmanaged.image = (::IplImage*) managed->image->CvPtr.ToPointer();
unmanaged.searchRect.x = managed->searchRect.X;
unmanaged.searchRect.y = managed->searchRect.Y;
unmanaged.searchRect.width = managed->searchRect.Width;
unmanaged.searchRect.height = managed->searchRect.Height;
unmanaged.timeStamp = managed->timeStamp;
}
void UnmanagedFrameToManaged(const Frame &unmanaged, ImageProcess::Frame ^managed)
{
managed->cameraID = unmanaged.cameraID;
if (unmanaged.image == NULL)
{
managed->image = nullptr;
}
else
{
managed->image = gcnew OpenCvSharp::IplImage( (IntPtr) unmanaged.image);
managed->image->IsEnabledDispose = false;
}
managed->searchRect.X = unmanaged.searchRect.x;
managed->searchRect.Y = unmanaged.searchRect.y;
managed->searchRect.Width = unmanaged.searchRect.width;
managed->searchRect.Height = unmanaged.searchRect.height;
managed->timeStamp = unmanaged.timeStamp;
}
};
}
| [
"shenbinsc@cbf8b9f2-3a65-11de-be05-5f7a86268029"
] | [
[
[
1,
88
]
]
] |
bcafd41327dbfeac37e1ef44062df28c17ac968b | 27d5670a7739a866c3ad97a71c0fc9334f6875f2 | /CPP/Targets/WayFinder/symbian-r6/DrawComponent.cpp | 7dcb834a163c000ad602c33291da8734fbcb964f | [
"BSD-3-Clause"
] | permissive | ravustaja/Wayfinder-S60-Navigator | ef506c418b8c2e6498ece6dcae67e583fb8a4a95 | 14d1b729b2cea52f726874687e78f17492949585 | refs/heads/master | 2021-01-16T20:53:37.630909 | 2010-06-28T09:51:10 | 2010-06-28T09:51:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,227 | cpp | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the Vodafone Group Services Ltd nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "DrawComponent.h"
#include <eikenv.h>
CDrawComponent* CDrawComponent::NewLC(CCoeControl* aParent,
TRect aDrawRect,
const TRgb& aTextColor,
TInt aBaselineOffset,
const TDesC& aText,
CGraphicsContext::TTextAlign aAlign)
{
CDrawComponent* self = new (ELeave) CDrawComponent(aBaselineOffset,
aTextColor,
aAlign);
CleanupStack::PushL(self);
self->ConstructL(aParent, aDrawRect, aText);
return self;
}
CDrawComponent* CDrawComponent::NewL(CCoeControl* aParent,
TRect aDrawRect,
const TRgb& aTextColor,
TInt aBaselineOffset,
const TDesC& aText,
CGraphicsContext::TTextAlign aAlign)
{
CDrawComponent* self = CDrawComponent::NewLC(aParent,
aDrawRect,
aTextColor,
aBaselineOffset,
aText,
aAlign);
CleanupStack::Pop(self);
return self;
}
CDrawComponent* CDrawComponent::NewLC(CCoeControl* aParent,
const TRgb& aTextColor,
CGraphicsContext::TTextAlign aAlign)
{
CDrawComponent* self = new (ELeave) CDrawComponent(aTextColor,
aAlign);
CleanupStack::PushL(self);
self->ConstructL(aParent);
return self;
}
CDrawComponent* CDrawComponent::NewL(CCoeControl* aParent,
const TRgb& aTextColor,
CGraphicsContext::TTextAlign aAlign)
{
CDrawComponent* self = CDrawComponent::NewLC(aParent,
aTextColor,
aAlign);
CleanupStack::Pop(self);
return self;
}
CDrawComponent::CDrawComponent(TInt aBaselineOffset,
const TRgb& aTextColor,
CGraphicsContext::TTextAlign aAlign) :
iBaselineOffset(aBaselineOffset),
iTextColor(aTextColor.Internal(), aTextColor.Alpha()),
iAlign(aAlign)
{
}
CDrawComponent::CDrawComponent(const TRgb& aTextColor,
CGraphicsContext::TTextAlign aAlign) :
iBaselineOffset(0),
iTextColor(aTextColor.Internal(), aTextColor.Alpha()),
iAlign(aAlign)
{
}
CDrawComponent::~CDrawComponent()
{
delete iText;
}
void CDrawComponent::ConstructL(CCoeControl* aParent,
TRect& aDrawRect,
const TDesC& aText)
{
if (!aParent) {
CreateWindowL();
} else {
SetContainerWindowL(*aParent);
}
iText = aText.AllocL();
SetRect(aDrawRect);
if (!aParent) {
ActivateL();
}
}
void CDrawComponent::ConstructL(CCoeControl* aParent)
{
if (!aParent) {
CreateWindowL();
} else {
SetContainerWindowL(*aParent);
}
iText = KNullDesC().AllocL();
TRect rect;
SetRect(rect);
if (!aParent) {
ActivateL();
}
}
void CDrawComponent::SizeChanged()
{
}
void CDrawComponent::Draw(const TRect& /*aRect*/) const
{
// Get the standard graphics context
CWindowGc& gc = SystemGc();
TRect rect(Rect());
gc.SetClippingRect(rect);
gc.SetBrushStyle(CGraphicsContext::ENullBrush);
if (iFont) {
gc.SetPenColor(iTextColor);
gc.UseFont(iFont);
gc.DrawText(*iText, rect, iBaselineOffset, iAlign);
gc.DiscardFont();
}
//#define DRAW_BORDER_RECTS
#ifdef DRAW_BORDER_RECTS
gc.SetBrushStyle(CGraphicsContext::ENullBrush);
gc.SetPenColor(KRgbBlack);
gc.DrawRect(rect);
TInt centerY = rect.iTl.iY + (rect.Height() >> 1);
gc.DrawLine(TPoint(rect.iTl.iX, centerY),
TPoint(rect.iBr.iX, centerY));
TInt fontTopY = (rect.iTl.iY + iBaselineOffset) - iFont->HeightInPixels();
gc.DrawLine(TPoint(rect.iTl.iX, fontTopY), TPoint(rect.iBr.iX, fontTopY));
TInt baselineY = rect.iTl.iY + iBaselineOffset;
gc.DrawLine(TPoint(rect.iTl.iX, baselineY), TPoint(rect.iBr.iX, baselineY));
#endif
}
TInt CDrawComponent::BaselineOffset() const
{
return iBaselineOffset;
}
void CDrawComponent::SetBaselineOffset(TInt aBaselineOffset)
{
iBaselineOffset = aBaselineOffset;
}
TPtrC CDrawComponent::Text() const
{
return TPtrC(*iText);
}
void CDrawComponent::SetTextL(const TDesC& aText)
{
delete iText;
iText = NULL;
iText = aText.AllocL();
}
const CFont* CDrawComponent::Font() const
{
return iFont;
}
void CDrawComponent::SetFont(CFont* aFont, TBool aReleaseCurrentFont)
{
if (iFont && aReleaseCurrentFont) {
CEikonEnv::Static()->ScreenDevice()->ReleaseFont(iFont);
}
iFont = aFont;
}
void CDrawComponent::ReleaseFont()
{
CEikonEnv::Static()->ScreenDevice()->ReleaseFont(iFont);
}
void CDrawComponent::SetTextColor(TRgb aTextColor)
{
iTextColor = aTextColor;
}
void CDrawComponent::SetAlignment(CGraphicsContext::TTextAlign aAlign)
{
iAlign = aAlign;
}
| [
"[email protected]"
] | [
[
[
1,
216
]
]
] |
3fd8433567a767fed845814d260f2256730042f7 | 65dee2b7ed8a91f952831525d78bfced5abd713f | /winmob/XfMobile_WM6/Gamepe/OptionsPane.cpp | a83cfffd8a59d537fbb0d263fa43acc4d53fe0db | [] | no_license | felixnicitin1968/XFMobile | 0249f90f111f0920a423228691bcbef0ecb0ce23 | 4a442d0127366afa9f80bdcdaaa4569569604dac | refs/heads/master | 2016-09-06T05:02:18.589338 | 2011-07-05T17:25:39 | 2011-07-05T17:25:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,282 | cpp | // OptionsPane.cpp : implementation file
//
#include "stdafx.h"
#include "Gamepe.h"
#include "OptionsPane.h"
#include "Global.h"
// COptionsPane dialog
IMPLEMENT_DYNAMIC(COptionsPane, CDialog)
COptionsPane::COptionsPane(CWnd* pParent /*=NULL*/)
: CDialog(COptionsPane::IDD, pParent)
{
}
COptionsPane::~COptionsPane()
{
}
void COptionsPane::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(COptionsPane, CDialog)
ON_COMMAND(ID_CLOSE, &COptionsPane::OnClose)
ON_BN_CLICKED(IDC_CHECK_SOUND_NOTIFICATION, &COptionsPane::OnBnClickedCheckSoundNotification)
ON_BN_CLICKED(IDC_CHECK_ICON_NOTIFICATION, &COptionsPane::OnBnClickedCheckIconNotification)
ON_WM_CTLCOLOR()
END_MESSAGE_MAP()
// COptionsPane message handlers
BOOL COptionsPane::OnInitDialog()
{
AddMenuBar(GetSafeHwnd(),IDR_MENU2);
RECT rc={0,0,0,0};
::GetClientRect(GetParent()->GetSafeHwnd(),&rc);
SetWindowPos(&wndTop ,0,0,rc.right-rc.left,rc.bottom-rc.top,SWP_SHOWWINDOW );
if (g_bIsSoundNotification){
((CButton*)GetDlgItem(IDC_CHECK_SOUND_NOTIFICATION))->SetCheck(BST_CHECKED );
}else{
((CButton*)GetDlgItem(IDC_CHECK_SOUND_NOTIFICATION))->SetCheck(BST_UNCHECKED );
}
if (g_bIsIconNotification){
((CButton*)GetDlgItem(IDC_CHECK_ICON_NOTIFICATION))->SetCheck(BST_CHECKED );
}else{
((CButton*)GetDlgItem(IDC_CHECK_ICON_NOTIFICATION))->SetCheck(BST_UNCHECKED );
}
return TRUE;
}
void COptionsPane::OnClose()
{
// TODO: Add your command handler code here
EndDialog(0);
}
void COptionsPane::OnBnClickedCheckSoundNotification()
{
// TODO: Add your control notification handler code here
g_bIsSoundNotification=!g_bIsSoundNotification;
}
void COptionsPane::OnBnClickedCheckIconNotification()
{
// TODO: Add your control notification handler code here
g_bIsIconNotification=!g_bIsIconNotification;
}
HBRUSH COptionsPane::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
pDC->SetTextColor(RGB(255,255,255)); // change the text color
pDC->SetBkColor(RGB(0x12,0x28,0x3f)); // change the text color
return ::CreateSolidBrush(RGB(0x12,0x28,0x3f));
}
| [
"[email protected]"
] | [
[
[
1,
108
]
]
] |
8c6e9fff29a802199f4a63ae4ac8a86879324e94 | bd2899f474a614a306386f6b0136707dade9cfdc | /TimeControl v2/TimeControl/DlgSure.h | 35cbdf41dc5663131d3665bc18b556f3498e9689 | [] | no_license | savfod/timenavigator | 0ecc1139192240846abb323f29228539bd0ca4d5 | 1597ef9c8bfc6b42bfaad741b7d3ce72ba2927e6 | refs/heads/master | 2020-06-18T09:58:42.197260 | 2008-06-26T08:29:19 | 2008-06-26T08:29:19 | 47,466,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,226 | h | #if !defined(AFX_DLGSURE_H__26A51FFB_87E5_4401_838D_68C24DAAFAC4__INCLUDED_)
#define AFX_DLGSURE_H__26A51FFB_87E5_4401_838D_68C24DAAFAC4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgSure.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDlgSure dialog
class CDlgSure : public CDialog
{
// Construction
public:
CDlgSure(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDlgSure)
enum { IDD = IDD_SURE };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgSure)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDlgSure)
// NOTE: the ClassWizard will add member functions here
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGSURE_H__26A51FFB_87E5_4401_838D_68C24DAAFAC4__INCLUDED_)
| [
"SAVsmail@236f3714-b24e-0410-b9f0-2d080df3c2d1"
] | [
[
[
1,
46
]
]
] |
f95b734867d5374057c25fc50009f82055026e9e | 16d8b25d0d1c0f957c92f8b0d967f71abff1896d | /FakeClient/FakeEntityUpdateManager.cpp | fe8ec7db011fb124cc2af6600ebe8627eed3f4e3 | [] | no_license | wlasser/oonline | 51973b5ffec0b60407b63b010d0e4e1622cf69b6 | fd37ee6985f1de082cbc9f8625d1d9307e8801a6 | refs/heads/master | 2021-05-28T23:39:16.792763 | 2010-05-12T22:35:20 | 2010-05-12T22:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,226 | cpp | /*
Copyright(c) 2007-2010 Julian Bangert
This file is part of OblivionOnline.
OblivionOnline is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
OblivionOnline is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#include "GlobalDefines.h"
#include "Packets.h"
#include "IOSystem.h"
#include "Entity.h"
#include "FakeClient.h"
using namespace raw;
extern NetworkConnection *conn;
void FakeEntityUpdateManager::OnAnimationUpdate(Entity *ent,bool Inbound)
{
if(!Inbound)
{
Animation::Send(*conn,ent);
}
{
if(!g_plot)
return;
m_mgr->GetIO() << GameMessage << "Object";
m_mgr->GetIO() << ent->RefID() << "("<<ent->Name() << ") Animation " <<ent->AnimationStatus()<<endl;
}
}
void FakeEntityUpdateManager::OnAVModUpdate(Entity *ent,unsigned char AVCode,bool Inbound)
{
if(!Inbound)
{
ActorValueMod::Send(*conn,ent,AVCode);
}
{
if(!g_plot)
return;
m_mgr->GetIO() << GameMessage << "Object: "<< ent->Name() << " Animation " <<ent->ActorValueMod(AVCode)<<endl;
}
}
void FakeEntityUpdateManager::OnAVUpdate(Entity *ent,unsigned char AVCode,bool Inbound)
{
if(!Inbound)
{
ActorValue::Send(*conn,ent,AVCode);
}
{
if(!g_plot)
return;
m_mgr->GetIO() << GameMessage << "Object" <<
ent->RefID() << "("<< ent->Name() << ") BaseActorValue" << (unsigned int)AVCode << ": " << ent->BaseActorValue(AVCode) <<endl;
}
}
void FakeEntityUpdateManager::OnCellChange(Entity *ent,UINT32 OldCell,bool Inbound)
{
if(!Inbound)
{
CellID::Send(*conn,ent);
}
{
EntityUpdateManager::OnCellChange(ent,OldCell,Inbound);
if(!g_plot)
return;
m_mgr->GetIO() << GameMessage << "Object"<<
ent->RefID() << "("<<ent->Name() << ")Cell: " << ent->CellID() << "Worldspace:" << ent->WorldID() <<endl;
}
}
void FakeEntityUpdateManager::OnClassUpdate(Entity *ent,bool Inbound)
{
if(!Inbound)
{
Class::Send(*conn,ent);
}
{
if(!g_plot)
return;
m_mgr->GetIO() << GameMessage << "Object" <<
ent->RefID() << "("<<ent->Name() << ")Class: " << ent->ClassName() <<endl;
}
}
void FakeEntityUpdateManager::OnEquipUdate(Entity *ent,unsigned char slot,bool Inbound)
{
if(!Inbound)
{
Equip::Send(*conn,ent,slot);
}
{
if(!g_plot)
return;
m_mgr->GetIO() << GameMessage << "Object" <<
ent->RefID() << "("<<ent->Name() << ") Equip" <<(unsigned int)slot << ": " << ent->Equip(slot) <<endl;
}
}
void FakeEntityUpdateManager::OnNameUpdate(Entity *ent,bool Inbound)
{
if(!Inbound)
{
Name::Send(*conn,ent);
}
{
if(!g_plot)
return;
m_mgr->GetIO() << GameMessage << "Object" <<
ent->RefID() << "("<<ent->Name() << ")Name: " << ent->Name() <<endl;
}
}
void FakeEntityUpdateManager::OnPositionUpdate(Entity *ent,bool Inbound)
{
if(!Inbound)
{
Position::Send(*conn,ent);
}
{
if(!g_plot)
return;
m_mgr->GetIO() << GameMessage << "Object " <<
ent->RefID() << "("<<ent->Name() << ")Position: " << ent->PosX() << "Y:"<<ent->PosY() << "Z:" << ent->PosZ()
<< "rX" << ent->RotX() << "rY:" << ent->RotY() << "rZ" << ent->RotZ()<<endl;
}
}
void FakeEntityUpdateManager::OnRaceUpdate(Entity *ent,bool Inbound)
{
if(!Inbound)
{
Race::Send(*conn,ent);
}
{
if(!g_plot)
return;
m_mgr->GetIO() << GameMessage << "Object " <<
ent->RefID() << "("<<ent->Name() << ")Race: " << ent->Race() << "Gender" << ent->Gender()<<endl;
}
}
void FakeEntityUpdateManager::GlobalSend(Entity *ent, bool Inbound)
{
}
void FakeEntityUpdateManager::Chat(Entity *ent, std::string Message, bool Inbound)
{
}
void FakeEntityUpdateManager::OnCustomUpdate( Entity *ent,UINT32 Index,bool Inbound )
{
if(!Inbound)
Custom::Send(*conn,ent,Index);
else
IOStream::Instance() << GameMessage << "Custom attribute " << Index << "Value: " << ent->GetCustom(Index)<<endl;
} | [
"obliviononline@2644d07b-d655-0410-af38-4bee65694944"
] | [
[
[
1,
157
]
]
] |
97d1a9905b944485fe7169937da187e140972e20 | 5ed707de9f3de6044543886ea91bde39879bfae6 | /ASMember/ASBulkMailer/ASBulkMailer.cpp | 0a82565f62c2f871384b145682ba19b7bae61cad | [] | no_license | grtvd/asifantasysports | 9e472632bedeec0f2d734aa798b7ff00148e7f19 | 76df32c77c76a76078152c77e582faa097f127a8 | refs/heads/master | 2020-03-19T02:25:23.901618 | 1999-12-31T16:00:00 | 2018-05-31T19:48:19 | 135,627,290 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,766 | cpp | /* ASBulkMailer.cpp */
/******************************************************************************/
/******************************************************************************/
#include "CBldVCL.h"
#pragma hdrstop
#include "AppOptions.h"
#include "CommType.h"
#include "CommErr.h"
#include "ASMemberBulkMailer.h"
using namespace tag;
using namespace asmember;
/******************************************************************************/
USEUNIT("..\..\..\CBldComm\Source\CommType.cpp");
USEUNIT("..\..\..\CBldComm\Source\CommMisc.cpp");
USEUNIT("..\..\..\CBldComm\Source\CommErr.cpp");
USEUNIT("..\..\..\CBldComm\Source\CommStr.cpp");
USEUNIT("..\..\..\CBldComm\Source\CommFormat.cpp");
USEUNIT("..\..\..\CBldComm\Source\CommDB.cpp");
USEUNIT("..\..\..\CBldComm\Source\CommDir.cpp");
USEUNIT("..\..\..\CBldComm\Source\CommTick.cpp");
USEUNIT("..\..\..\CBldComm\Source\Streamable.cpp");
USEUNIT("..\..\..\CBldComm\Source\ObjectBuilder.cpp");
USEUNIT("..\..\..\CBldComm\Source\DataFiler.cpp");
USEUNIT("..\..\..\CBldComm\Source\TextFiler.cpp");
USEUNIT("..\..\..\CBldComm\Source\PipeTextFiler.cpp");
USEUNIT("..\..\..\CBldComm\Source\DataSetRecord.cpp");
USEUNIT("..\..\..\CBldComm\Source\PasswordEncode.cpp");
USEUNIT("..\..\..\CBldComm\Source\RegistryExt.cpp");
USEUNIT("..\..\..\CBldComm\Source\ErrorLog.cpp");
USEUNIT("..\..\..\CBldComm\Source\Mailer.cpp");
USEUNIT("..\..\..\CBldComm\Source\SendMail.cpp");
USEUNIT("..\..\..\CBldComm\Source\CommCon.cpp");
USEUNIT("..\..\..\CBldComm\Source\NTService.cpp");
USEUNIT("..\Shared\Source\ASMemberAppOptions.cpp");
USEUNIT("..\Shared\Source\ASMemberType.cpp");
USEUNIT("..\Shared\Source\ASMemberObjectBuilder.cpp");
USEUNIT("Source\ASMemberBulkMailer.cpp");
//---------------------------------------------------------------------------
const char* tag::GetExeDllName()
{
return("ASBulkMailer.exe");
}
/******************************************************************************/
#pragma argsused
int main(int argc, char** argv)
{
CStrVar errMsg;
int returnCode = 1;
CommErrInit("ASBulkMailer",ceo_File);
try
{
DoBulkMailer();
}
catch(Exception& e)
{
errMsg.copy("catch: Exception: ");
errMsg.concat(e.Message.c_str());
}
catch(exception& e)
{
errMsg.copy("catch: exception: ");
errMsg.concat(e.what());
}
catch(...)
{
errMsg.copy("catch: ...");
}
if(errMsg.hasLen())
{
CommErrMsg(cel_Error,errMsg);
}
else
CommErrMsg(cel_Info,"Normal Exit (%d).",returnCode);
CommErrDispose();
return(returnCode);
}
/******************************************************************************/
/******************************************************************************/
| [
"[email protected]"
] | [
[
[
1,
91
]
]
] |
c9be65768a8c75e8b27a45f5d27f57b876774e21 | 5504cdea188dd5ceec6ab38863ef4b4f72c70b21 | /pcsxrr/Win32/CWindow.h | 0b6b058aebc422e112f37ead5b3dece003b6947a | [] | no_license | mauzus/pcsxrr | 959051bed227f96045a9bba8971ba5dffc24ad33 | 1b4c66d6a2938da55761280617d288f3c65870d7 | refs/heads/master | 2021-03-12T20:00:56.954014 | 2011-03-21T01:16:35 | 2011-03-21T01:16:35 | 32,238,897 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,729 | h | //This file was copied and adapted from DeSmuME: http://sourceforge.net/projects/desmume/
//Authors: DeSmuME team
/* Copyright (C) 2006 yopyop
Copyright (C) 2006-2009 DeSmuME team
This file is part of DeSmuME
DeSmuME is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
DeSmuME is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with DeSmuME; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef CWINDOW_H
#define CWINDOW_H
#include <commctrl.h>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include "../PsxCommon.h"
extern CRITICAL_SECTION win_execute_sync;
//-----------------------------------------------------------------------------
// The Toolkit - RECT wrapper
//-----------------------------------------------------------------------------
class CRect
{
public:
CRect(int x, int y, int width, int height)
{
rcRect.left = x; rcRect.top = y;
rcRect.right = x + width;
rcRect.bottom = y + height;
}
CRect(RECT rc)
{
memcpy(&rcRect, &rc, sizeof(RECT));
//rcRect = rc;
}
~CRect() {}
RECT ToMSRect() { return rcRect; }
private:
RECT rcRect;
};
// GetFontQuality()
// Returns a font quality value that can be passed to
// CreateFont(). The value depends on whether font
// antialiasing is enabled or not.
DWORD GetFontQuality();
int DrawText(HDC hDC, char* text, int X, int Y, int Width, int Height, UINT format);
void GetFontSize(HWND hWnd, HFONT hFont, LPSIZE size);
// MakeBitmapPseudoTransparent(HBITMAP hBmp, COLORREF cKeyColor, COLORREF cNewKeyColor)
// Replaces the RGB color cKeyColor with cNewKeyColor in the bitmap hBmp.
// For use with toolbars and such. Replace a key color (like magenta) with the right
// system color to make the bitmap pseudo-transparent.
void MakeBitmapPseudoTransparent(HBITMAP hBmp, COLORREF cKeyColor, COLORREF cNewKeyColor);
//-----------------------------------------------------------------------------
// Window class handling
//-----------------------------------------------------------------------------
// RegWndClass()
// Registers a window class.
// Incase the class was already registered, the function
// just does nothing and returns true.
// Returns false if registration failed.
bool RegWndClass(std::string name, WNDPROC wndProc, UINT style, int extraSize = 0);
bool RegWndClass(std::string name, WNDPROC wndProc, UINT style, HICON icon, int extraSize = 0);
// UnregWndClass()
// Unregisters a previously registered window class.
// This function will silently fail if one or more windows
// using the class still exist.
void UnregWndClass(std::string name);
//-----------------------------------------------------------------------------
// Base toolwindow class
//-----------------------------------------------------------------------------
class CToolWindow
{
public:
// CToolWindow constructor #1
// Creates a window using CreateWindow().
// If the window creation failed for whatever reason,
// hWnd will be NULL.
CToolWindow(char* className, WNDPROC proc, char* title, int width, int height);
// CToolWindow constructor #2
// Creates a window from a dialog template resource.
// If the window creation failed for whatever reason,
// hWnd will be NULL.
CToolWindow(int ID, DLGPROC proc, char* title);
// CToolWindow destructor
// Dummy destructor. The derivated toolwindow classes must
// destroy the window in their own destructors. Thus, they
// can unregister any window classes they use.
virtual ~CToolWindow();
// this must be called by the derived class constructor. sigh.
void PostInitialize();
// Show(), Hide()
// These ones are quite self-explanatory, I guess.
void Show() { ShowWindow(hWnd, SW_SHOW); }
void Hide() { ShowWindow(hWnd, SW_HIDE); }
// SetTitle()
// Changes the title of the window.
void SetTitle(char* title) { SetWindowText(hWnd, title); }
// Refresh()
// Refreshes the window. Called by RefreshAllToolWindows().
void Refresh() { InvalidateRect(hWnd, NULL, FALSE); }
// Double-linked toolwindow list.
CToolWindow* prev;
CToolWindow* next;
// Handle to the window.
HWND hWnd;
private:
int ID;
DLGPROC proc;
std::string title;
char* className;
int width, height;
int whichInit;
};
//-----------------------------------------------------------------------------
// Toolwindow handling
//-----------------------------------------------------------------------------
// OpenToolWindow()
// Adds the CToolWindow instance to the toolwindow list.
// The instance will be deleted if its hWnd member is NULL.
bool OpenToolWindow(CToolWindow* wnd);
// CloseToolWindow()
// Removes the CToolWindow instance from the toolwindow list
// and deletes it.
void CloseToolWindow(CToolWindow* wnd);
// CloseAllToolWindows()
// Deletes all the toolwindows in the list and flushes the list.
void CloseAllToolWindows();
// RefreshAllToolWindows()
// Refreshes all the toolwindows in the list.
// Called once per frame when the emu is running.
void RefreshAllToolWindows();
//-----------------------------------------------------------------------------
// The Toolkit - Toolbar API wrapper
//-----------------------------------------------------------------------------
class CToolBar
{
public:
CToolBar(HWND hParent);
~CToolBar();
HWND GetHWnd() { return hWnd; }
void Show(bool bShow);
bool Visible() { return !hidden; }
void OnSize();
void AppendButton(int uID, int uBitmapID, DWORD dwState, bool bDropdown);
void AppendSeparator();
void EnableButton(int uID, bool bEnable) {
SendMessage(hWnd, TB_ENABLEBUTTON, uID, bEnable ? TRUE:FALSE); }
void CheckButton(int uID, bool bCheck) {
SendMessage(hWnd, TB_CHECKBUTTON, uID, bCheck ? TRUE:FALSE); }
void ChangeButtonBitmap(int uID, int uBitmapID);
void EnableButtonDropdown(int uID, bool bDropdown);
void ChangeButtonID(int uIndex, int uNewID) {
SendMessage(hWnd, TB_SETCMDID, uIndex, MAKELPARAM(uNewID, 0)); }
int GetHeight();
private:
HWND hWnd;
// We have to keep the bitmaps here because destroying them
// directly after use would also destroy the toolbar.
// They'll be destroyed when the CToolBar destructor is called.
typedef std::pair<int, HBITMAP> TBitmapPair;
typedef std::map<int, TBitmapPair> TBitmapList;
TBitmapList hBitmaps;
bool hidden;
};
class WINCLASS
{
private:
HWND hwnd;
HMENU hmenu;
HINSTANCE hInstance;
char regclass[256];
int minWidth, minHeight;
public:
WINCLASS(LPSTR rclass, HINSTANCE hInst);
~WINCLASS();
bool create(LPSTR caption, int x, int y, int width, int height, int style,
HMENU menu);
bool createEx(LPSTR caption, int x, int y, int width, int height, int style, int styleEx,
HMENU menu);
bool setMenu(HMENU menu);
bool addMenuItem(u32 item, bool byPos, LPCMENUITEMINFO info);
DWORD checkMenu(UINT idd, bool check);
void Show(int mode);
void Hide();
HWND getHWnd();
CRect GetRect()
{
RECT rc; GetWindowRect(hwnd, &rc);
return CRect(rc);
}
void setMinSize(int width, int height);
enum // keepRatio flags
{
NOKEEP = 0x0,
KEEPX = 0x1,
KEEPY = 0x2,
FULLSCREEN = 0x4,
};
void sizingMsg(WPARAM wParam, LPARAM lParam, LONG keepRatio = NOKEEP);
void setClientSize(int width, int height);
};
class THREADCLASS
{
friend DWORD WINAPI ThreadProc(LPVOID lpParameter);
HANDLE hThread;
public:
THREADCLASS();
virtual ~THREADCLASS();
bool createThread();
void closeThread();
protected:
DWORD threadID;
virtual DWORD ThreadFunc()=NULL;
};
class TOOLSCLASS : public THREADCLASS
{
private:
HWND hwnd;
HINSTANCE hInstance;
DLGPROC dlgproc;
int idd;
char class_name[256];
char class_name2[256];
DWORD doOpen();
void doClose();
protected:
DWORD ThreadFunc();
public:
TOOLSCLASS(HINSTANCE hInst, int IDD, DLGPROC wndproc);
virtual ~TOOLSCLASS();
bool open(bool useThread=true);
bool close();
void regClass(LPSTR class_name, WNDPROC wproc, bool SecondReg = false);
void unregClass();
};
#endif
| [
"gochaism@b38eb22e-9255-0410-b643-f940c3bf2d76"
] | [
[
[
1,
309
]
]
] |
0344c991586311ffbcbeb33ff97851142f7045bd | b90f7dce513fd3d13bab0b8769960dea901d4f3b | /game_client/game_client/ROG.cpp | cc18f3abc6849aeb5fab8a63aefebb1cc1cf6ceb | [] | no_license | lasti15/easygametools | f447052cd4c42609955abd76b4c8571422816b11 | 0b819c957077a4eeaf9a2492772040dafdfca4c3 | refs/heads/master | 2021-01-10T09:14:52.182154 | 2011-03-09T01:51:51 | 2011-03-09T01:51:51 | 55,684,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,202 | cpp |
#include "ROG.h"
using namespace ROG;
const static void startWinsock() {
//start up winsock
WSADATA wsadata;
int error = WSAStartup(0x0202, &wsadata);
//Did something happen?
if (error)
throw new FatalException("WSAStartup Failed");
//Did we get the right Winsock version?
if (wsadata.wVersion != 0x0202)
{
WSACleanup(); //Clean up Winsock
throw new FatalException("Wrong WSA version");
}
}
LogLevel LogConfigurator::getDefaultLogLevel(const char* newLogger) {
char nameBuf[255];
_snprintf(nameBuf, 254, "%s.logLevel", newLogger);
char* variable = (char*)(config->get(nameBuf));
if (variable != NULL) {
LogLevel newLevel = getLogLevel(variable);
return newLevel;
}
variable = (char*)(config->get("logLevel"));
if (variable != NULL) {
LogLevel newLevel = getLogLevel(variable);
return newLevel;
}
return LVL_INFO;
}
//configure the specific log levels on different components.
//Abstract this out of Logger because the config is in a Reference and i took great pains to not have
//any dependencies on reference inside logger
//not thread safe
//if a logger got removed halfway through the operation wed blow up here
const static void configureLoggers(Object<ConfigLoader> config, LogConfigurator* logConfig) {
OCArray<Logger*>* allLoggers = (OCArray<Logger*>*)Logger::getAllLoggers();
for (unsigned int i=0; i<allLoggers->length(); i++) {
Logger* logger = allLoggers->at(i);
logger->debug("Configuring");
logger->setLogLevel(logConfig->getDefaultLogLevel(logger->getName()));
}
}
const void ROGInit() {
//startWinsock();
GOOGLE_PROTOBUF_VERIFY_VERSION;
Reference::Reference_initialize();
//load the config file
Object<ConfigLoader> config = ConfigLoader::getConfigLoader();
LogConfigurator* logConfig = new LogConfigurator(config);
Logger::setLogCreationListener(logConfig);
//set the logging configuration
configureLoggers(config, logConfig);
}
const void ROGDestroy() {
Thread::CollectRemainingThreads();
Reference::CollectRemainingObjects();
Logger::CollectRemainingLoggers();
google::protobuf::ShutdownProtobufLibrary();
} | [
"[email protected]"
] | [
[
[
1,
92
]
]
] |
f1eb77b522e55af96e23df20ef1a610951a5e690 | 6bdb3508ed5a220c0d11193df174d8c215eb1fce | /Codes/Halak/EntityComponent.h | 58cedf60e2ea86d994ff2b7e4bc1e05314cb6e0e | [] | no_license | halak/halak-plusplus | d09ba78640c36c42c30343fb10572c37197cfa46 | fea02a5ae52c09ff9da1a491059082a34191cd64 | refs/heads/master | 2020-07-14T09:57:49.519431 | 2011-07-09T14:48:07 | 2011-07-09T14:48:07 | 66,716,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,420 | h | #pragma once
#ifndef __HALAK_ENTITYCOMPONENT_H__
#define __HALAK_ENTITYCOMPONENT_H__
# include <Halak/FWD.h>
# include <Halak/String.h>
namespace Halak
{
class EntityComponent
{
private:
String name;
String tag;
void* object;
SharedObjectPtr objectLifetime;
ObjectOperator* operator_;
public:
static const EntityComponent Empty;
public:
EntityComponent();
EntityComponent(const String& name, const String& tag, void* object, ObjectOperator* operator_);
EntityComponent(const String& name, const String& tag, SharedObject* object, ObjectOperator* operator_);
EntityComponent(const EntityComponent& original);
~EntityComponent();
inline const String& GetName() const;
inline const String& GetTag() const;
inline void* GetObject() const;
inline ObjectOperator* GetOperator() const;
EntityComponent& operator = (const EntityComponent& right);
bool operator == (const EntityComponent& right) const;
inline bool operator != (const EntityComponent& right) const;
};
}
# include <Halak/EntityComponent.inl>
#endif | [
"[email protected]"
] | [
[
[
1,
42
]
]
] |
82887ddf4f55268ce577a77100d1a655c9cf6320 | 1c9f99b2b2e3835038aba7ec0abc3a228e24a558 | /Projects/elastix/elastix_sources_v4/src/Common/CostFunctions/itkImageToImageMetricWithFeatures.h | 61e511c8428a55ce9cdafeed6adb7c09e023109d | [] | no_license | mijc/Diploma | 95fa1b04801ba9afb6493b24b53383d0fbd00b33 | bae131ed74f1b344b219c0ffe0fffcd90306aeb8 | refs/heads/master | 2021-01-18T13:57:42.223466 | 2011-02-15T14:19:49 | 2011-02-15T14:19:49 | 1,369,569 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,565 | h | /*======================================================================
This file is part of the elastix software.
Copyright (c) University Medical Center Utrecht. All rights reserved.
See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
======================================================================*/
#ifndef __itkImageToImageMetricWithFeatures_h
#define __itkImageToImageMetricWithFeatures_h
#include "itkAdvancedImageToImageMetric.h"
#include "itkInterpolateImageFunction.h"
namespace itk
{
/** \class ImageToImageMetricWithFeatures
* \brief Computes similarity between regions of two images.
*
* This base class adds functionality that makes it possible
* to use fixed and moving image features.
*
* \ingroup RegistrationMetrics
*
*/
template <class TFixedImage, class TMovingImage,
class TFixedFeatureImage = TFixedImage, class TMovingFeatureImage = TMovingImage>
class ImageToImageMetricWithFeatures :
public AdvancedImageToImageMetric< TFixedImage, TMovingImage >
{
public:
/** Standard class typedefs. */
typedef ImageToImageMetricWithFeatures Self;
typedef AdvancedImageToImageMetric<
TFixedImage, TMovingImage > Superclass;
typedef SmartPointer<Self> Pointer;
typedef SmartPointer<const Self> ConstPointer;
/** Run-time type information (and related methods). */
itkTypeMacro( ImageToImageMetricWithFeatures, AdvancedImageToImageMetric );
/** Typedefs from the superclass. */
typedef typename
Superclass::CoordinateRepresentationType CoordinateRepresentationType;
typedef typename Superclass::MovingImageType MovingImageType;
typedef typename Superclass::MovingImagePixelType MovingImagePixelType;
typedef typename Superclass::MovingImageConstPointer MovingImageConstPointer;
typedef typename Superclass::FixedImageType FixedImageType;
typedef typename Superclass::FixedImageConstPointer FixedImageConstPointer;
typedef typename Superclass::FixedImageRegionType FixedImageRegionType;
typedef typename Superclass::TransformType TransformType;
typedef typename Superclass::TransformPointer TransformPointer;
typedef typename Superclass::InputPointType InputPointType;
typedef typename Superclass::OutputPointType OutputPointType;
typedef typename Superclass::TransformParametersType TransformParametersType;
typedef typename Superclass::TransformJacobianType TransformJacobianType;
typedef typename Superclass::InterpolatorType InterpolatorType;
typedef typename Superclass::InterpolatorPointer InterpolatorPointer;
typedef typename Superclass::RealType RealType;
typedef typename Superclass::GradientPixelType GradientPixelType;
typedef typename Superclass::GradientImageType GradientImageType;
typedef typename Superclass::GradientImagePointer GradientImagePointer;
typedef typename Superclass::GradientImageFilterType GradientImageFilterType;
typedef typename Superclass::GradientImageFilterPointer GradientImageFilterPointer;
typedef typename Superclass::FixedImageMaskType FixedImageMaskType;
typedef typename Superclass::FixedImageMaskPointer FixedImageMaskPointer;
typedef typename Superclass::MovingImageMaskType MovingImageMaskType;
typedef typename Superclass::MovingImageMaskPointer MovingImageMaskPointer;
typedef typename Superclass::MeasureType MeasureType;
typedef typename Superclass::DerivativeType DerivativeType;
typedef typename Superclass::ParametersType ParametersType;
typedef typename Superclass::FixedImagePixelType FixedImagePixelType;
typedef typename Superclass::MovingImageRegionType MovingImageRegionType;
typedef typename Superclass::ImageSamplerType ImageSamplerType;
typedef typename Superclass::ImageSamplerPointer ImageSamplerPointer;
typedef typename Superclass::ImageSampleContainerType ImageSampleContainerType;
typedef typename
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer;
typedef typename Superclass::InternalMaskPixelType InternalMaskPixelType;
typedef typename
Superclass::InternalMovingImageMaskType InternalMovingImageMaskType;
typedef typename
Superclass::MovingImageMaskInterpolatorType MovingImageMaskInterpolatorType;
typedef typename Superclass::FixedImageLimiterType FixedImageLimiterType;
typedef typename Superclass::MovingImageLimiterType MovingImageLimiterType;
typedef typename
Superclass::FixedImageLimiterOutputType FixedImageLimiterOutputType;
typedef typename
Superclass::MovingImageLimiterOutputType MovingImageLimiterOutputType;
/** The fixed image dimension. */
itkStaticConstMacro( FixedImageDimension, unsigned int,
FixedImageType::ImageDimension );
/** The moving image dimension. */
itkStaticConstMacro( MovingImageDimension, unsigned int,
MovingImageType::ImageDimension );
/** Typedefs for the feature images. */
typedef TFixedFeatureImage FixedFeatureImageType;
typedef typename FixedFeatureImageType::Pointer FixedFeatureImagePointer;
typedef TMovingFeatureImage MovingFeatureImageType;
typedef typename MovingFeatureImageType::Pointer MovingFeatureImagePointer;
typedef std::vector<FixedFeatureImagePointer> FixedFeatureImageVectorType;
typedef std::vector<MovingFeatureImagePointer> MovingFeatureImageVectorType;
/** Typedefs for the feature images interpolators. */
typedef InterpolateImageFunction<
FixedFeatureImageType,double> FixedFeatureInterpolatorType;
typedef InterpolateImageFunction<
MovingFeatureImageType,double> MovingFeatureInterpolatorType;
typedef typename FixedFeatureInterpolatorType::Pointer FixedFeatureInterpolatorPointer;
typedef typename MovingFeatureInterpolatorType::Pointer MovingFeatureInterpolatorPointer;
typedef std::vector<FixedFeatureInterpolatorPointer> FixedFeatureInterpolatorVectorType;
typedef std::vector<MovingFeatureInterpolatorPointer> MovingFeatureInterpolatorVectorType;
/** Set the number of fixed feature images. */
void SetNumberOfFixedFeatureImages( unsigned int arg );
/** Get the number of fixed feature images. */
itkGetConstMacro( NumberOfFixedFeatureImages, unsigned int );
/** Functions to set the fixed feature images. */
void SetFixedFeatureImage( unsigned int i, FixedFeatureImageType * im );
void SetFixedFeatureImage( FixedFeatureImageType * im )
{
this->SetFixedFeatureImage( 0, im );
};
/** Functions to get the fixed feature images. */
const FixedFeatureImageType * GetFixedFeatureImage( unsigned int i ) const;
const FixedFeatureImageType * GetFixedFeatureImage( void ) const
{
return this->GetFixedFeatureImage( 0 );
};
/** Functions to set the fixed feature interpolators. */
void SetFixedFeatureInterpolator( unsigned int i, FixedFeatureInterpolatorType * interpolator );
void SetFixedFeatureInterpolator( FixedFeatureInterpolatorType * interpolator )
{
this->SetFixedFeatureInterpolator( 0, interpolator );
};
/** Functions to get the fixed feature interpolators. */
const FixedFeatureInterpolatorType * GetFixedFeatureInterpolator( unsigned int i ) const;
const FixedFeatureInterpolatorType * GetFixedFeatureInterpolator( void ) const
{
return this->GetFixedFeatureInterpolator( 0 );
};
/** Set the number of moving feature images. */
void SetNumberOfMovingFeatureImages( unsigned int arg );
/** Get the number of moving feature images. */
itkGetConstMacro( NumberOfMovingFeatureImages, unsigned int );
/** Functions to set the moving feature images. */
void SetMovingFeatureImage( unsigned int i, MovingFeatureImageType * im );
void SetMovingFeatureImage( MovingFeatureImageType * im )
{
this->SetMovingFeatureImage( 0, im );
};
/** Functions to get the moving feature images. */
const MovingFeatureImageType * GetMovingFeatureImage( unsigned int i ) const;
const MovingFeatureImageType * GetMovingFeatureImage( void ) const
{
return this->GetMovingFeatureImage( 0 );
};
/** Functions to set the moving feature interpolators. */
void SetMovingFeatureInterpolator( unsigned int i, MovingFeatureInterpolatorType * interpolator );
void SetMovingFeatureInterpolator( MovingFeatureInterpolatorType * interpolator )
{
this->SetMovingFeatureInterpolator( 0, interpolator );
};
/** Functions to get the moving feature interpolators. */
const MovingFeatureInterpolatorType * GetMovingFeatureInterpolator( unsigned int i ) const;
const MovingFeatureInterpolatorType * GetMovingFeatureInterpolator( void ) const
{
return this->GetMovingFeatureInterpolator( 0 );
};
/** Initialize the metric. */
virtual void Initialize( void ) throw ( ExceptionObject );
protected:
ImageToImageMetricWithFeatures();
virtual ~ImageToImageMetricWithFeatures() {};
void PrintSelf( std::ostream& os, Indent indent ) const;
typedef typename Superclass::BSplineInterpolatorType BSplineInterpolatorType;
typedef typename BSplineInterpolatorType::Pointer BSplineInterpolatorPointer;
typedef std::vector<BSplineInterpolatorPointer> BSplineFeatureInterpolatorVectorType;
typedef typename Superclass::FixedImagePointType FixedImagePointType;
typedef typename Superclass::MovingImagePointType MovingImagePointType;
typedef typename Superclass::MovingImageDerivativeType MovingImageDerivativeType;
typedef typename Superclass::MovingImageContinuousIndexType MovingImageContinuousIndexType;
/** Member variables. */
unsigned int m_NumberOfFixedFeatureImages;
unsigned int m_NumberOfMovingFeatureImages;
FixedFeatureImageVectorType m_FixedFeatureImages;
MovingFeatureImageVectorType m_MovingFeatureImages;
FixedFeatureInterpolatorVectorType m_FixedFeatureInterpolators;
MovingFeatureInterpolatorVectorType m_MovingFeatureInterpolators;
std::vector<bool> m_FeatureInterpolatorsIsBSpline;
bool m_FeatureInterpolatorsAreBSpline;
BSplineFeatureInterpolatorVectorType m_MovingFeatureBSplineInterpolators;
/** Initialize variables for image derivative computation; this
* method is called by Initialize.
*/
virtual void CheckForBSplineFeatureInterpolators( void );
private:
ImageToImageMetricWithFeatures(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented
}; // end class ImageToImageMetricWithFeatures
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
#include "itkImageToImageMetricWithFeatures.txx"
#endif
#endif // end #ifndef __itkImageToImageMetricWithFeatures_h
| [
"[email protected]"
] | [
[
[
1,
242
]
]
] |
d71f3d1f7c59a697d74c89667f50a39eed1d58d9 | c95a83e1a741b8c0eb810dd018d91060e5872dd8 | /Game/ClientShellDLL/ClientShellShared/NodeLinesFX.cpp | 712a2306c04e350139249898e98bd78d861e20f3 | [] | no_license | rickyharis39/nolf2 | ba0b56e2abb076e60d97fc7a2a8ee7be4394266c | 0da0603dc961e73ac734ff365bfbfb8abb9b9b04 | refs/heads/master | 2021-01-01T17:21:00.678517 | 2011-07-23T12:11:19 | 2011-07-23T12:11:19 | 38,495,312 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,912 | cpp | // ----------------------------------------------------------------------- //
//
// MODULE : NodeLinesFX.cpp
//
// PURPOSE : NodeLines special FX - Implementation
//
// CREATED : 1/21/98
//
// ----------------------------------------------------------------------- //
#include "stdafx.h"
#include "NodeLinesFX.h"
#include "iltclient.h"
#include "ClientUtilities.h"
#include "SFXMsgIds.h"
#include "GameClientShell.h"
extern CGameClientShell* g_pGameClientShell;
// ----------------------------------------------------------------------- //
//
// ROUTINE: CNodeLinesFX::Init
//
// PURPOSE: Init the node lines fx
//
// ----------------------------------------------------------------------- //
LTBOOL CNodeLinesFX::Init(SFXCREATESTRUCT* psfxCreateStruct)
{
if (!CSpecialFX::Init(psfxCreateStruct)) return LTFALSE;
NLCREATESTRUCT* pNL = (NLCREATESTRUCT*)psfxCreateStruct;
VEC_COPY(m_vSource, pNL->vSource);
VEC_COPY(m_vDestination, pNL->vDestination);
m_bFirstUpdate = LTTRUE;
return LTTRUE;
}
// ----------------------------------------------------------------------- //
//
// ROUTINE: CNodeLinesFX::RemoveFX
//
// PURPOSE: Remove all fx
//
// ----------------------------------------------------------------------- //
void CNodeLinesFX::RemoveFX()
{
if (m_pFX)
{
debug_delete(m_pFX);
m_pFX = LTNULL;
}
}
// ----------------------------------------------------------------------- //
//
// ROUTINE: CNodeLinesFX::Update
//
// PURPOSE: Update the node lines
//
// ----------------------------------------------------------------------- //
LTBOOL CNodeLinesFX::Update()
{
if(!m_pClientDE) return LTFALSE;
if (m_bFirstUpdate)
{
BSCREATESTRUCT ex;
LTVector vDirection = m_vDestination - m_vSource;
LTFLOAT fDistance = VEC_MAG(vDirection);
vDirection.Normalize();
ex.vPos = m_vSource + vDirection*fDistance/2.0f;
ex.rRot = LTRotation(vDirection, LTVector(0.0f, 1.0f, 0.0f));
VEC_SET(ex.vVel, 0.0f, 0.0f, 0.0f);
VEC_SET(ex.vInitialScale, 1.0f, 1.0f, fDistance);
VEC_SET(ex.vFinalScale, 1.0f, 1.0f, fDistance);
VEC_SET(ex.vInitialColor, 1.0f, 0.0f, 0.0f);
VEC_SET(ex.vFinalColor, 1.0f, 0.0f, 0.0f);
ex.bUseUserColors = LTTRUE;
ex.dwFlags = FLAG_VISIBLE | FLAG_NOLIGHT;
ex.fLifeTime = 500000.0f;
ex.fInitialAlpha = 1.0f;
ex.fFinalAlpha = 1.0f;
ex.pFilename = "Models\\1x1_square.ltb";
ex.nType = OT_MODEL;
//ex.pSkin = "SpecialFX\\Explosions\\Juggernaut.dtx";
m_pFX = debug_new(CBaseScaleFX);
if (!m_pFX)
{
RemoveFX();
return LTFALSE;
}
m_pFX->Init(&ex);
m_pFX->CreateObject(m_pClientDE);
m_bFirstUpdate = LTFALSE;
}
if (m_bWantRemove)
{
RemoveFX();
return LTFALSE;
}
if (m_pFX)
{
m_pFX->Update();
}
return LTTRUE;
} | [
"[email protected]"
] | [
[
[
1,
124
]
]
] |
39e9ac96883eb53aab957a3e4ffd2cd7f464dde4 | b38ab5dcfb913569fc1e41e8deedc2487b2db491 | /libraries/compromise/Registry.hpp | 5cf68a631643f1d8203acaf52103f5261b68ef0b | [] | no_license | santosh90n/Fury2 | dacec86ab3972952e4cf6442b38e66b7a67edade | 740a095c2daa32d33fdc24cc47145a1c13431889 | refs/heads/master | 2020-03-21T00:44:27.908074 | 2008-10-16T07:09:17 | 2008-10-16T07:09:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,117 | hpp | /*
Compromise (COM virtual registration library)
Copyright (C) 2006 Kevin Gadd
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
static const unsigned VirtualRegKeyBase = 0x90000000;
// Definitions
enum RegValueTypes {
RegString = REG_SZ,
RegDWord = REG_DWORD,
RegQWord = REG_QWORD
};
inline RegValueTypes getRegValueType(DWORD type) {
switch (type) {
case REG_SZ:
case REG_EXPAND_SZ:
case REG_BINARY:
return RegString;
case REG_DWORD:
case REG_DWORD_BIG_ENDIAN:
return RegDWord;
case REG_QWORD:
return RegQWord;
}
return RegDWord;
}
inline DWORD convertRegValueType(RegValueTypes type) {
switch (type) {
case RegString:
return REG_SZ;
case RegDWord:
return REG_DWORD;
case RegQWord:
return REG_QWORD;
}
return 0;
}
class VirtualRegValue {
public:
WString Name;
RegValueTypes Type;
WString Text;
unsigned DWord;
VirtualRegValue()
:Name(NullString),
Type(RegDWord),
Text(NullString),
DWord(0)
{
}
VirtualRegValue(const WString& name, RegValueTypes type, void* data, unsigned dataLength, bool wide)
:Name(name),
Type(type),
Text(NullString),
DWord(0)
{
switch (type) {
case RegString: {
if (wide) {
Text = WString((wchar_t*)data, (dataLength/2));
DebugOut_("Value(" << Text << ")\n");
} else {
Text = WString((const char*)data, dataLength);;
DebugOut_("Value(" << Text << ")\n");
}
break;
}
case RegDWord:
memcpy(&DWord, data, 4);
break;
}
}
VirtualRegValue(WString name, WString data)
:Name(name),
Type(RegString),
Text(data),
DWord(0)
{
}
VirtualRegValue(WString name, unsigned data)
:Name(name),
Type(RegDWord),
Text(NullString),
DWord(data)
{
}
VirtualRegValue(WString name, RegValueTypes type)
:Name(name),
Type(type),
Text(NullString),
DWord(0)
{
}
VirtualRegValue(RegValueTypes type, void* data)
:Name(NullString),
Type(type),
Text(NullString),
DWord(0)
{
}
VirtualRegValue(RegValueTypes type)
:Name(NullString),
Type(type),
Text(NullString),
DWord(0)
{
}
VirtualRegValue(WString data)
:Name(NullString),
Type(RegString),
Text(data),
DWord(0)
{
}
VirtualRegValue(unsigned data)
:Name(NullString),
Type(RegDWord),
Text(NullString),
DWord(data)
{
}
~VirtualRegValue() {
}
//private:
VirtualRegValue(const VirtualRegValue& other)
:Name(other.Name),
Type(other.Type),
Text(other.Text),
DWord(other.DWord)
{
}
inline const VirtualRegValue& operator=(const VirtualRegValue& rhs) {
if ((&rhs) == (this))
return *this;
Name = rhs.Name;
Text = rhs.Text;
Type = rhs.Type;
DWord = rhs.DWord;
return *this;
}
};
typedef std::map<WString, VirtualRegKey, ltwstring> VirtualRegKeys;
typedef std::map<WString, VirtualRegValue, ltwstring> VirtualRegValues;
class VirtualRegKey {
public:
WString Name;
VirtualRegKeys Children;
VirtualRegValue Default;
VirtualRegValues Values;
bool Deleted;
VirtualRegKey(WString name)
:Name(name),
Default(RegString),
Deleted(false)
{
}
VirtualRegKey()
:Name(NullString),
Default(RegString),
Deleted(false)
{
}
//private:
VirtualRegKey(const VirtualRegKey& other)
:Name(other.Name),
Default(other.Default),
Deleted(other.Deleted),
Children(other.Children),
Values(other.Values)
{
}
inline const VirtualRegKey& operator=(const VirtualRegKey& rhs) {
if ((&rhs) == (this))
return *this;
Name = rhs.Name;
Default = rhs.Default;
Children = rhs.Children;
Values = rhs.Values;
Deleted = rhs.Deleted;
return *this;
}
};
class VirtualRegistry {
public:
VirtualRegKeys Keys;
VirtualRegistry()
{
}
private:
VirtualRegistry(const VirtualRegistry& other)
:Keys(other.Keys)
{
}
inline const VirtualRegistry& operator=(const VirtualRegistry& rhs) {
if ((&rhs) == (this))
return *this;
Keys = rhs.Keys;
}
};
class RegKeyHandle {
public:
unsigned ID;
VirtualRegKey* Key;
WString Name;
HKEY RealKey;
RegKeyHandle()
:ID(0),
Key(Null),
Name(),
RealKey(Null)
{
}
RegKeyHandle(unsigned id, const WString& name)
:ID(id),
Key(Null),
Name(name),
RealKey(Null)
{
}
RegKeyHandle(unsigned id, VirtualRegKey* key, const WString& name)
:ID(id),
Key(key),
Name(name),
RealKey(Null)
{
}
RegKeyHandle(const RegKeyHandle& other)
:ID(other.ID),
Key(other.Key),
Name(other.Name),
RealKey(other.RealKey)
{
}
inline const RegKeyHandle& operator=(const RegKeyHandle& rhs) {
if ((&rhs) == (this))
return *this;
ID = rhs.ID;
Key = rhs.Key;
Name = rhs.Name;
RealKey = rhs.RealKey;
}
};
typedef std::map<unsigned, RegKeyHandle*> RegKeyHandles;
unsigned RegKeyDefine (VirtualRegKey* Key);
void RegKeyDefine (unsigned newID, unsigned oldID);
void RegKeyDefine (unsigned ID, VirtualRegKey* Key);
void RegKeyNameDefine (unsigned ID, const WString& Name);
void RegKeyNameResolve (unsigned ID, WString** Out);
bool RegKeyGetVirtual (unsigned ID);
bool RegKeyGetVirtual (HKEY Key);
VirtualRegKey* RegKeyGetPtr (unsigned ID);
bool RegKeyIsDeleted (unsigned ID);
void RegKeysInvalidate (VirtualRegKey* Key);
int RegKeyUndefine (unsigned ID);
//bool VRegGetVirtualized (HKEY Root);
//void VRegSetVirtualized (HKEY Root, bool state);
VirtualRegKey* VRegKeyCreate (const WString& Path);
int VRegKeyDelete (const WString& Path);
bool VRegKeyIsDeleted (const WString& Path);
VirtualRegKey* VRegKeyResolve (const WString& Path);
VirtualRegKey* VRegKeyResolve (VirtualRegKey* Parent, const WString& Path);
VirtualRegValue* VRegValueGet (VirtualRegKey* Key, const WString& Name);
VirtualRegValue* VRegValueSet (VirtualRegKey* Key, const VirtualRegValue& Value);
void VRegDump ();
void VRegDump (const VirtualRegKey& key);
void VRegFree (); | [
"janus@1af785eb-1c5d-444a-bf89-8f912f329d98"
] | [
[
[
1,
316
]
]
] |
b1a9b935884b6368cd8cfde55c220bfc6d7395f7 | e0ac074afcc623d4ac742db7e6375f7b8a6abfea | /widget/glwidget.h | edc31f857f364c815e87b955381bebfd0e730d60 | [] | no_license | lipixx/vig-pr1 | 03c98f1ed9dc6def405a31c44f698f8ec9f694cb | 8df844504b771a96eb20ca45c448cbd6f21f7616 | refs/heads/master | 2021-01-20T10:38:40.338350 | 2010-05-05T09:19:49 | 2010-05-05T09:19:49 | 32,142,066 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,251 | h | #ifndef _GLWIDGET_H_
#define _GLWIDGET_H_
#include <QtOpenGL/qgl.h>
#include <QKeyEvent>
#include <iostream>
#include <qstring.h>
#include <qfiledialog.h>
#include <qtimer.h>
#include <QtDesigner/QDesignerExportWidget>
#include "material_lib.h"
#include "point.h"
#include "scene.h"
#include <cmath>
//Per convertir a graus
#define PI 3.1415926535898
#define RAD2DEG 180/PI
#define DEG2RAD PI/180
class QDESIGNER_WIDGET_EXPORT GLWidget : public QGLWidget
{
Q_OBJECT
public:
GLWidget(QWidget * parent);
public slots:
// help - Ajuda per la terminal des de la que hem engegat el programa.
void help(void);
// Afegiu aquí la declaració dels slots que necessiteu
void resetCamera();
void carregaVehicle();
void orientaVehicle(int);
private slots:
void timerHandler();
protected:
// initializeGL() - Aqui incluim les inicialitzacions del contexte grafic.
virtual void initializeGL();
// paintGL - Mètode cridat cada cop que cal refrescar la finestra.
// Tot el que es dibuixa es dibuixa aqui.
virtual void paintGL( void );
// resizeGL() - Es cridat quan canvi la mida del widget
virtual void resizeGL (int width, int height);
// keyPressEvent() - Cridat quan es prem una tecla
virtual void keyPressEvent(QKeyEvent *e);
// mousePressEvent() i mouseReleaseEvent()
virtual void mousePressEvent( QMouseEvent *e);
virtual void mouseReleaseEvent( QMouseEvent *);
// mouseMoveEvent() - Cridat quan s'arrosega el ratoli amb algun botó premut.
virtual void mouseMoveEvent(QMouseEvent *e);
//Implementem zoom amb la roda del ratolí
virtual void wheelEvent(QWheelEvent *e);
void computeDefaultCamera();
//Inicialitzem les matrius ModelView i Projection
void updateModelView();
void updateProjection();
private:
typedef enum {NONE, ROTATE, ZOOM, PAN} InteractiveAction;
InteractiveAction DoingInteractive;
int xClick, yClick;
//Escena a representar en el widget
Scene scene;
//Paràmetres càmera
GLfloat fovy,dynamic_fovy;
Point VRP;
double distancia,radi,near,far;
float angleX,angleY,angleZ,ratio;
//Timer
QTimer * timer;
};
#endif
| [
"lipixx@396b600c-89ea-fd97-f049-805e878c5540",
"[email protected]@396b600c-89ea-fd97-f049-805e878c5540"
] | [
[
[
1,
40
],
[
44,
89
],
[
93,
95
]
],
[
[
41,
43
],
[
90,
92
]
]
] |
075dc7a8338457cf997d9feb7cbc66d8a52571ea | 4b0f51aeecddecf3f57a29ffa7a184ae48f1dc61 | /CleanProject/ParticleUniverse/include/ParticleObservers/ParticleUniverseOnVelocityObserverTokens.h | 6f7597873b6e1cd257428bec1ac11a6f363eee88 | [] | no_license | bahao247/apeengine2 | 56560dbf6d262364fbc0f9f96ba4231e5e4ed301 | f2617b2a42bdf2907c6d56e334c0d027fb62062d | refs/heads/master | 2021-01-10T14:04:02.319337 | 2009-08-26T08:23:33 | 2009-08-26T08:23:33 | 45,979,392 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,487 | h | /*
-----------------------------------------------------------------------------
This source file is part of the Particle Universe product.
Copyright (c) 2006-2008 Henry van Merode
Usage of this program is free for non-commercial use and licensed under the
the terms of the GNU Lesser General Public License.
You should have received a copy of the GNU Lesser General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
http://www.gnu.org/copyleft/lesser.txt.
-----------------------------------------------------------------------------
*/
#ifndef __PU_ONVELOCITY_OBSERVER_TOKENS_H__
#define __PU_ONVELOCITY_OBSERVER_TOKENS_H__
#include "ParticleUniversePrerequisites.h"
#include "ParticleUniverseITokenInitialiser.h"
namespace ParticleUniverse
{
/** This class contains the tokens that are needed for the OnVelocityObserver.
*/
class _ParticleUniverseExport OnVelocityObserverTokens : public ITokenInitialiser
{
public:
OnVelocityObserverTokens(void) {};
virtual ~OnVelocityObserverTokens(void) {};
/** @see
ITokenInitialiser::setupTokenDefinitions
*/
virtual void setupTokenDefinitions(ITokenRegister* tokenRegister);
protected:
// Tokens which get called during parsing.
class VelocityToken : public IToken {virtual void parse(ParticleScriptParser* parser);} mVelocityToken;
};
}
#endif
| [
"pablosn@06488772-1f9a-11de-8b5c-13accb87f508"
] | [
[
[
1,
44
]
]
] |
8d324112ddc54f5190cfbd0e2685a3982e36fc8c | 607bb26d6cf6254cae0eb0f1b96b0bc2d4db97d2 | /Neo/naive.cu.cpp | a7b163d990ea99886433bb90631643c140fc21cd | [] | no_license | lfpcorreia/Neo | 833caa8669506c342424383c59108508cc58cd66 | e81523814dae163ab5fb9d33ec3f72e40db85a42 | refs/heads/master | 2016-09-06T10:49:03.123067 | 2010-09-22T15:58:19 | 2010-09-22T15:58:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 681,125 | cpp | #line 1 "naive.cudafe1.cpp"
#line 1 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
#line 168 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
#pragma pack ( push, 8 )
#line 32 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\vadefs.h"
#pragma pack ( push, 8 )
#line 50 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\vadefs.h"
extern "C" { typedef unsigned __int64 uintptr_t; }
#line 61 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\vadefs.h"
extern "C" { typedef char *va_list; }
#line 125 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\vadefs.h"
extern "C" { extern void __cdecl __va_start(va_list *, ...); }
#line 151 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\vadefs.h"
#pragma pack ( pop )
#line 488 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
typedef unsigned __int64 size_t;
#line 1 "C:\\CUDA\\include\\crt/host_runtime.h"
#line 64 "C:\\CUDA\\include\\crt/host_runtime.h"
#line 68 "C:\\CUDA\\include\\crt/host_runtime.h"
#line 1 "C:\\CUDA\\include\\builtin_types.h"
#line 1 "c:\\cuda\\include\\device_types.h"
enum cudaRoundMode
{
cudaRoundNearest,
cudaRoundZero,
cudaRoundPosInf,
cudaRoundMinInf
};
#line 55 "c:\\cuda\\include\\device_types.h"
#line 43 "C:\\CUDA\\include\\builtin_types.h"
#line 1 "c:\\cuda\\include\\driver_types.h"
#line 83 "c:\\cuda\\include\\driver_types.h"
enum cudaError
{
cudaSuccess = 0,
cudaErrorMissingConfiguration = 1,
cudaErrorMemoryAllocation = 2,
cudaErrorInitializationError = 3,
cudaErrorLaunchFailure = 4,
cudaErrorPriorLaunchFailure = 5,
cudaErrorLaunchTimeout = 6,
cudaErrorLaunchOutOfResources = 7,
cudaErrorInvalidDeviceFunction = 8,
cudaErrorInvalidConfiguration = 9,
cudaErrorInvalidDevice = 10,
cudaErrorInvalidValue = 11,
cudaErrorInvalidPitchValue = 12,
cudaErrorInvalidSymbol = 13,
cudaErrorMapBufferObjectFailed = 14,
cudaErrorUnmapBufferObjectFailed = 15,
cudaErrorInvalidHostPointer = 16,
cudaErrorInvalidDevicePointer = 17,
cudaErrorInvalidTexture = 18,
cudaErrorInvalidTextureBinding = 19,
cudaErrorInvalidChannelDescriptor = 20,
cudaErrorInvalidMemcpyDirection = 21,
cudaErrorAddressOfConstant = 22,
cudaErrorTextureFetchFailed = 23,
cudaErrorTextureNotBound = 24,
cudaErrorSynchronizationError = 25,
cudaErrorInvalidFilterSetting = 26,
cudaErrorInvalidNormSetting = 27,
cudaErrorMixedDeviceExecution = 28,
cudaErrorCudartUnloading = 29,
cudaErrorUnknown = 30,
cudaErrorNotYetImplemented = 31,
cudaErrorMemoryValueTooLarge = 32,
cudaErrorInvalidResourceHandle = 33,
cudaErrorNotReady = 34,
cudaErrorInsufficientDriver = 35,
cudaErrorSetOnActiveProcess = 36,
cudaErrorInvalidSurface = 37,
cudaErrorNoDevice = 38,
cudaErrorECCUncorrectable = 39,
cudaErrorSharedObjectSymbolNotFound = 40,
cudaErrorSharedObjectInitFailed = 41,
cudaErrorUnsupportedLimit = 42,
cudaErrorDuplicateVariableName = 43,
cudaErrorDuplicateTextureName = 44,
cudaErrorDuplicateSurfaceName = 45,
cudaErrorDevicesUnavailable = 46,
cudaErrorStartupFailure = 0x7f,
cudaErrorApiFailureBase = 10000
};
enum cudaChannelFormatKind
{
cudaChannelFormatKindSigned = 0,
cudaChannelFormatKindUnsigned = 1,
cudaChannelFormatKindFloat = 2,
cudaChannelFormatKindNone = 3
};
struct cudaChannelFormatDesc
{
int x;
int y;
int z;
int w;
enum cudaChannelFormatKind f;
};
struct cudaArray;
enum cudaMemcpyKind
{
cudaMemcpyHostToHost = 0,
cudaMemcpyHostToDevice = 1,
cudaMemcpyDeviceToHost = 2,
cudaMemcpyDeviceToDevice = 3
};
struct cudaPitchedPtr
{
void *ptr;
size_t pitch;
size_t xsize;
size_t ysize;
};
struct cudaExtent
{
size_t width;
size_t height;
size_t depth;
};
struct cudaPos
{
size_t x;
size_t y;
size_t z;
};
struct cudaMemcpy3DParms
{
struct cudaArray *srcArray;
struct cudaPos srcPos;
struct cudaPitchedPtr srcPtr;
struct cudaArray *dstArray;
struct cudaPos dstPos;
struct cudaPitchedPtr dstPtr;
struct cudaExtent extent;
enum cudaMemcpyKind kind;
};
struct cudaGraphicsResource;
enum cudaGraphicsRegisterFlags
{
cudaGraphicsRegisterFlagsNone = 0
};
enum cudaGraphicsMapFlags
{
cudaGraphicsMapFlagsNone = 0,
cudaGraphicsMapFlagsReadOnly = 1,
cudaGraphicsMapFlagsWriteDiscard = 2
};
enum cudaGraphicsCubeFace {
cudaGraphicsCubeFacePositiveX = 0x00,
cudaGraphicsCubeFaceNegativeX = 0x01,
cudaGraphicsCubeFacePositiveY = 0x02,
cudaGraphicsCubeFaceNegativeY = 0x03,
cudaGraphicsCubeFacePositiveZ = 0x04,
cudaGraphicsCubeFaceNegativeZ = 0x05
};
struct cudaFuncAttributes
{
size_t sharedSizeBytes;
size_t constSizeBytes;
size_t localSizeBytes;
int maxThreadsPerBlock;
int numRegs;
int ptxVersion;
int binaryVersion;
int __cudaReserved[6];
};
enum cudaFuncCache
{
cudaFuncCachePreferNone = 0,
cudaFuncCachePreferShared = 1,
cudaFuncCachePreferL1 = 2
};
enum cudaComputeMode
{
cudaComputeModeDefault = 0,
cudaComputeModeExclusive = 1,
cudaComputeModeProhibited = 2
};
enum cudaLimit
{
cudaLimitStackSize = 0x00,
cudaLimitPrintfFifoSize = 0x01
};
struct cudaDeviceProp
{
char name[256];
size_t totalGlobalMem;
size_t sharedMemPerBlock;
int regsPerBlock;
int warpSize;
size_t memPitch;
int maxThreadsPerBlock;
int maxThreadsDim[3];
int maxGridSize[3];
int clockRate;
size_t totalConstMem;
int major;
int minor;
size_t textureAlignment;
int deviceOverlap;
int multiProcessorCount;
int kernelExecTimeoutEnabled;
int integrated;
int canMapHostMemory;
int computeMode;
int maxTexture1D;
int maxTexture2D[2];
int maxTexture3D[3];
int maxTexture2DArray[3];
size_t surfaceAlignment;
int concurrentKernels;
int ECCEnabled;
int pciBusID;
int pciDeviceID;
int __cudaReserved[22];
};
typedef enum cudaError cudaError_t;
typedef struct CUstream_st *cudaStream_t;
typedef struct CUevent_st *cudaEvent_t;
typedef struct CUuuid_st cudaUUID_t;
#line 450 "c:\\cuda\\include\\driver_types.h"
#line 44 "C:\\CUDA\\include\\builtin_types.h"
#line 1 "c:\\cuda\\include\\surface_types.h"
#line 1 "c:\\cuda\\include\\driver_types.h"
#line 450 "c:\\cuda\\include\\driver_types.h"
#line 46 "c:\\cuda\\include\\surface_types.h"
enum cudaSurfaceBoundaryMode
{
cudaBoundaryModeZero = 0,
cudaBoundaryModeClamp = 1,
cudaBoundaryModeTrap = 2
};
enum cudaSurfaceFormatMode
{
cudaFormatModeForced,
cudaFormatModeAuto
};
struct surfaceReference
{
struct cudaChannelFormatDesc channelDesc;
};
#line 75 "c:\\cuda\\include\\surface_types.h"
#line 45 "C:\\CUDA\\include\\builtin_types.h"
#line 1 "c:\\cuda\\include\\texture_types.h"
#line 1 "c:\\cuda\\include\\driver_types.h"
#line 450 "c:\\cuda\\include\\driver_types.h"
#line 46 "c:\\cuda\\include\\texture_types.h"
enum cudaTextureAddressMode
{
cudaAddressModeWrap,
cudaAddressModeClamp,
cudaAddressModeMirror
};
enum cudaTextureFilterMode
{
cudaFilterModePoint,
cudaFilterModeLinear
};
enum cudaTextureReadMode
{
cudaReadModeElementType,
cudaReadModeNormalizedFloat
};
struct textureReference
{
int normalized;
enum cudaTextureFilterMode filterMode;
enum cudaTextureAddressMode addressMode[3];
struct cudaChannelFormatDesc channelDesc;
int __cudaReserved[16];
};
#line 86 "c:\\cuda\\include\\texture_types.h"
#line 46 "C:\\CUDA\\include\\builtin_types.h"
#line 1 "c:\\cuda\\include\\vector_types.h"
#line 1 "c:\\cuda\\include\\builtin_types.h"
#line 1 "c:\\cuda\\include\\device_types.h"
#line 55 "c:\\cuda\\include\\device_types.h"
#line 43 "c:\\cuda\\include\\builtin_types.h"
#line 1 "c:\\cuda\\include\\driver_types.h"
#line 450 "c:\\cuda\\include\\driver_types.h"
#line 44 "c:\\cuda\\include\\builtin_types.h"
#line 1 "c:\\cuda\\include\\surface_types.h"
#line 75 "c:\\cuda\\include\\surface_types.h"
#line 45 "c:\\cuda\\include\\builtin_types.h"
#line 1 "c:\\cuda\\include\\texture_types.h"
#line 86 "c:\\cuda\\include\\texture_types.h"
#line 46 "c:\\cuda\\include\\builtin_types.h"
#line 1 "c:\\cuda\\include\\vector_types.h"
#line 485 "c:\\cuda\\include\\vector_types.h"
#line 47 "c:\\cuda\\include\\builtin_types.h"
#line 46 "c:\\cuda\\include\\vector_types.h"
#line 1 "c:\\cuda\\include\\host_defines.h"
#line 44 "c:\\cuda\\include\\host_defines.h"
#line 65 "c:\\cuda\\include\\host_defines.h"
#line 76 "c:\\cuda\\include\\host_defines.h"
#line 101 "c:\\cuda\\include\\host_defines.h"
#line 112 "c:\\cuda\\include\\host_defines.h"
#line 124 "c:\\cuda\\include\\host_defines.h"
#line 136 "c:\\cuda\\include\\host_defines.h"
#line 149 "c:\\cuda\\include\\host_defines.h"
#line 47 "c:\\cuda\\include\\vector_types.h"
#line 66 "c:\\cuda\\include\\vector_types.h"
#line 73 "c:\\cuda\\include\\vector_types.h"
struct char1
{
signed char x;
};
struct uchar1
{
unsigned char x;
};
struct __declspec(align(2)) char2
{
signed char x, y;
};
struct __declspec(align(2)) uchar2
{
unsigned char x, y;
};
struct char3
{
signed char x, y, z;
};
struct uchar3
{
unsigned char x, y, z;
};
struct __declspec(align(4)) char4
{
signed char x, y, z, w;
};
struct __declspec(align(4)) uchar4
{
unsigned char x, y, z, w;
};
struct short1
{
short x;
};
struct ushort1
{
unsigned short x;
};
struct __declspec(align(4)) short2
{
short x, y;
};
struct __declspec(align(4)) ushort2
{
unsigned short x, y;
};
struct short3
{
short x, y, z;
};
struct ushort3
{
unsigned short x, y, z;
};
struct __declspec(align(8)) short4 { short x; short y; short z; short w; };
struct __declspec(align(8)) ushort4 { unsigned short x; unsigned short y; unsigned short z; unsigned short w; };
struct int1
{
int x;
};
struct uint1
{
unsigned int x;
};
struct __declspec(align(8)) int2 { int x; int y; };
struct __declspec(align(8)) uint2 { unsigned int x; unsigned int y; };
struct int3
{
int x, y, z;
};
struct uint3
{
unsigned int x, y, z;
};
struct __declspec(align(16)) int4
{
int x, y, z, w;
};
struct __declspec(align(16)) uint4
{
unsigned int x, y, z, w;
};
struct long1
{
long int x;
};
struct ulong1
{
unsigned long x;
};
struct __declspec(align(8)) long2 { long int x; long int y; };
struct __declspec(align(8)) ulong2 { unsigned long int x; unsigned long int y; };
#line 241 "c:\\cuda\\include\\vector_types.h"
struct long3
{
long int x, y, z;
};
struct ulong3
{
unsigned long int x, y, z;
};
struct __declspec(align(16)) long4
{
long int x, y, z, w;
};
struct __declspec(align(16)) ulong4
{
unsigned long int x, y, z, w;
};
struct float1
{
float x;
};
struct __declspec(align(8)) float2 { float x; float y; };
struct float3
{
float x, y, z;
};
struct __declspec(align(16)) float4
{
float x, y, z, w;
};
struct longlong1
{
long long int x;
};
struct ulonglong1
{
unsigned long long int x;
};
struct __declspec(align(16)) longlong2
{
long long int x, y;
};
struct __declspec(align(16)) ulonglong2
{
unsigned long long int x, y;
};
struct longlong3
{
long long int x, y, z;
};
struct ulonglong3
{
unsigned long long int x, y, z;
};
struct __declspec(align(16)) longlong4
{
long long int x, y, z ,w;
};
struct __declspec(align(16)) ulonglong4
{
unsigned long long int x, y, z, w;
};
struct double1
{
double x;
};
struct __declspec(align(16)) double2
{
double x, y;
};
struct double3
{
double x, y, z;
};
struct __declspec(align(16)) double4
{
double x, y, z, w;
};
typedef struct char1 char1;
typedef struct uchar1 uchar1;
typedef struct char2 char2;
typedef struct uchar2 uchar2;
typedef struct char3 char3;
typedef struct uchar3 uchar3;
typedef struct char4 char4;
typedef struct uchar4 uchar4;
typedef struct short1 short1;
typedef struct ushort1 ushort1;
typedef struct short2 short2;
typedef struct ushort2 ushort2;
typedef struct short3 short3;
typedef struct ushort3 ushort3;
typedef struct short4 short4;
typedef struct ushort4 ushort4;
typedef struct int1 int1;
typedef struct uint1 uint1;
typedef struct int2 int2;
typedef struct uint2 uint2;
typedef struct int3 int3;
typedef struct uint3 uint3;
typedef struct int4 int4;
typedef struct uint4 uint4;
typedef struct long1 long1;
typedef struct ulong1 ulong1;
typedef struct long2 long2;
typedef struct ulong2 ulong2;
typedef struct long3 long3;
typedef struct ulong3 ulong3;
typedef struct long4 long4;
typedef struct ulong4 ulong4;
typedef struct float1 float1;
typedef struct float2 float2;
typedef struct float3 float3;
typedef struct float4 float4;
typedef struct longlong1 longlong1;
typedef struct ulonglong1 ulonglong1;
typedef struct longlong2 longlong2;
typedef struct ulonglong2 ulonglong2;
typedef struct longlong3 longlong3;
typedef struct ulonglong3 ulonglong3;
typedef struct longlong4 longlong4;
typedef struct ulonglong4 ulonglong4;
typedef struct double1 double1;
typedef struct double2 double2;
typedef struct double3 double3;
typedef struct double4 double4;
struct dim3
{
unsigned int x, y, z;
dim3(unsigned int vx = 1, unsigned int vy = 1, unsigned int vz = 1) : x(vx), y(vy), z(vz) {}
dim3(uint3 v) : x(v.x), y(v.y), z(v.z) {}
operator uint3(void) { uint3 t; t.x = x; t.y = y; t.z = z; return t; }
#line 477 "c:\\cuda\\include\\vector_types.h"
};
typedef struct dim3 dim3;
#line 485 "c:\\cuda\\include\\vector_types.h"
#line 47 "c:\\cuda\\include\\builtin_types.h"
#line 70 "C:\\CUDA\\include\\crt/host_runtime.h"
#line 1 "c:\\cuda\\include\\crt\\storage_class.h"
#line 44 "c:\\cuda\\include\\crt\\storage_class.h"
#line 51 "c:\\cuda\\include\\crt\\storage_class.h"
#line 55 "c:\\cuda\\include\\crt\\storage_class.h"
#line 59 "c:\\cuda\\include\\crt\\storage_class.h"
#line 63 "c:\\cuda\\include\\crt\\storage_class.h"
#line 67 "c:\\cuda\\include\\crt\\storage_class.h"
#line 71 "c:\\cuda\\include\\crt\\storage_class.h"
#line 75 "c:\\cuda\\include\\crt\\storage_class.h"
#line 79 "c:\\cuda\\include\\crt\\storage_class.h"
#line 83 "c:\\cuda\\include\\crt\\storage_class.h"
#line 87 "c:\\cuda\\include\\crt\\storage_class.h"
#line 91 "c:\\cuda\\include\\crt\\storage_class.h"
#line 95 "c:\\cuda\\include\\crt\\storage_class.h"
#line 99 "c:\\cuda\\include\\crt\\storage_class.h"
#line 103 "c:\\cuda\\include\\crt\\storage_class.h"
#line 107 "c:\\cuda\\include\\crt\\storage_class.h"
#line 111 "c:\\cuda\\include\\crt\\storage_class.h"
#line 115 "c:\\cuda\\include\\crt\\storage_class.h"
#line 119 "c:\\cuda\\include\\crt\\storage_class.h"
#line 123 "c:\\cuda\\include\\crt\\storage_class.h"
#line 127 "c:\\cuda\\include\\crt\\storage_class.h"
#line 131 "c:\\cuda\\include\\crt\\storage_class.h"
#line 135 "c:\\cuda\\include\\crt\\storage_class.h"
#line 139 "c:\\cuda\\include\\crt\\storage_class.h"
#line 143 "c:\\cuda\\include\\crt\\storage_class.h"
#line 147 "c:\\cuda\\include\\crt\\storage_class.h"
#line 149 "c:\\cuda\\include\\crt\\storage_class.h"
#line 71 "C:\\CUDA\\include\\crt/host_runtime.h"
#line 180 "C:\\CUDA\\include\\crt/host_runtime.h"
#line 490 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
#line 497 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
extern "C" { typedef size_t rsize_t; }
#line 504 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
extern "C" { typedef __int64 intptr_t; }
#line 522 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
extern "C" { typedef __int64 ptrdiff_t; }
#line 535 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
extern "C" { typedef unsigned short wint_t; }
#line 536 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
extern "C" { typedef unsigned short wctype_t; }
#line 560 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
extern "C" { typedef int errcode; }
#line 565 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
extern "C" { typedef int errno_t; }
#line 569 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
extern "C" { typedef long __time32_t; }
#line 574 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
extern "C" { typedef __int64 __time64_t; }
#line 582 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
extern "C" { typedef __time64_t time_t; }
#line 2037 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
struct threadlocaleinfostruct;
#line 2038 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
struct threadmbcinfostruct;
#line 2039 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
extern "C" { typedef threadlocaleinfostruct *pthreadlocinfo; }
#line 2040 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
extern "C" { typedef threadmbcinfostruct *pthreadmbcinfo; }
#line 2041 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
struct __lc_time_data;
#line 2047 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
extern "C" { typedef
#line 2043 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
struct localeinfo_struct {
#line 2045 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
pthreadlocinfo locinfo;
#line 2046 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
pthreadmbcinfo mbcinfo;
#line 2047 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
} _locale_tstruct, *_locale_t; }
#line 2054 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
extern "C" { typedef
#line 2050 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
struct tagLC_ID {
#line 2051 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
unsigned short wLanguage;
#line 2052 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
unsigned short wCountry;
#line 2053 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
unsigned short wCodePage;
#line 2054 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
} LC_ID, *LPLC_ID; }
#line 2083 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
extern "C" { typedef
#line 2059 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
struct threadlocaleinfostruct {
#line 2060 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
int refcount;
#line 2061 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
unsigned lc_codepage;
#line 2062 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
unsigned lc_collate_cp;
#line 2063 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
unsigned long lc_handle[6];
#line 2064 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
LC_ID lc_id[6];
#line 2065 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
struct {
#line 2066 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
char *locale;
#line 2067 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
__wchar_t *wlocale;
#line 2068 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
int *refcount;
#line 2069 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
int *wrefcount;
#line 2070 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
} lc_category[6];
#line 2071 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
int lc_clike;
#line 2072 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
int mb_cur_max;
#line 2073 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
int *lconv_intl_refcount;
#line 2074 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
int *lconv_num_refcount;
#line 2075 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
int *lconv_mon_refcount;
#line 2076 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
struct lconv *lconv;
#line 2077 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
int *ctype1_refcount;
#line 2078 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
unsigned short *ctype1;
#line 2079 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
const unsigned short *pctype;
#line 2080 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
const unsigned char *pclmap;
#line 2081 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
const unsigned char *pcumap;
#line 2082 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
__lc_time_data *lc_time_curr;
#line 2083 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
} threadlocinfo; }
#line 2121 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\crtdefs.h"
#pragma pack ( pop )
#line 46 "c:\\cuda\\include\\device_types.h"
#line 60 "c:\\cuda\\include\\device_types.h"
#line 41 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stddef.h"
extern "C" { extern int *__cdecl _errno(); }
#line 44 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stddef.h"
extern "C" { errno_t __cdecl _set_errno(int); }
#line 45 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stddef.h"
extern "C" { errno_t __cdecl _get_errno(int *); }
#line 68 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stddef.h"
extern "C" { extern unsigned long __cdecl __threadid(); }
#line 70 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stddef.h"
extern "C" { extern uintptr_t __cdecl __threadhandle(); }
#line 94 "c:\\cuda\\include\\driver_types.h"
#line 198 "c:\\cuda\\include\\driver_types.h"
#line 156 "c:\\cuda\\include\\driver_types.h"
#line 170 "c:\\cuda\\include\\driver_types.h"
#line 168 "c:\\cuda\\include\\driver_types.h"
#line 184 "c:\\cuda\\include\\driver_types.h"
#line 181 "c:\\cuda\\include\\driver_types.h"
#line 184 "c:\\cuda\\include\\driver_types.h"
#line 187 "c:\\cuda\\include\\driver_types.h"
#line 201 "c:\\cuda\\include\\driver_types.h"
#line 200 "c:\\cuda\\include\\driver_types.h"
#line 214 "c:\\cuda\\include\\driver_types.h"
#line 213 "c:\\cuda\\include\\driver_types.h"
#line 225 "c:\\cuda\\include\\driver_types.h"
#line 225 "c:\\cuda\\include\\driver_types.h"
#line 237 "c:\\cuda\\include\\driver_types.h"
#line 236 "c:\\cuda\\include\\driver_types.h"
#line 258 "c:\\cuda\\include\\driver_types.h"
#line 254 "c:\\cuda\\include\\driver_types.h"
#line 257 "c:\\cuda\\include\\driver_types.h"
#line 260 "c:\\cuda\\include\\driver_types.h"
#line 268 "c:\\cuda\\include\\driver_types.h"
#line 269 "c:\\cuda\\include\\driver_types.h"
#line 281 "c:\\cuda\\include\\driver_types.h"
#line 280 "c:\\cuda\\include\\driver_types.h"
#line 298 "c:\\cuda\\include\\driver_types.h"
#line 293 "c:\\cuda\\include\\driver_types.h"
#line 315 "c:\\cuda\\include\\driver_types.h"
#line 319 "c:\\cuda\\include\\driver_types.h"
#line 331 "c:\\cuda\\include\\driver_types.h"
#line 330 "c:\\cuda\\include\\driver_types.h"
#line 342 "c:\\cuda\\include\\driver_types.h"
#line 341 "c:\\cuda\\include\\driver_types.h"
#line 351 "c:\\cuda\\include\\driver_types.h"
#line 351 "c:\\cuda\\include\\driver_types.h"
#line 417 "c:\\cuda\\include\\driver_types.h"
#line 426 "c:\\cuda\\include\\driver_types.h"
#line 431 "c:\\cuda\\include\\driver_types.h"
#line 432 "c:\\cuda\\include\\driver_types.h"
#line 437 "c:\\cuda\\include\\driver_types.h"
#line 438 "c:\\cuda\\include\\driver_types.h"
#line 443 "c:\\cuda\\include\\driver_types.h"
#line 444 "c:\\cuda\\include\\driver_types.h"
#line 449 "c:\\cuda\\include\\driver_types.h"
#line 54 "c:\\cuda\\include\\surface_types.h"
#line 66 "c:\\cuda\\include\\surface_types.h"
#line 62 "c:\\cuda\\include\\surface_types.h"
#line 72 "c:\\cuda\\include\\surface_types.h"
#line 69 "c:\\cuda\\include\\surface_types.h"
#line 77 "c:\\cuda\\include\\surface_types.h"
#line 54 "c:\\cuda\\include\\texture_types.h"
#line 66 "c:\\cuda\\include\\texture_types.h"
#line 62 "c:\\cuda\\include\\texture_types.h"
#line 72 "c:\\cuda\\include\\texture_types.h"
#line 69 "c:\\cuda\\include\\texture_types.h"
#line 79 "c:\\cuda\\include\\texture_types.h"
#line 76 "c:\\cuda\\include\\texture_types.h"
#line 92 "c:\\cuda\\include\\texture_types.h"
#line 75 "c:\\cuda\\include\\vector_types.h"
#line 83 "c:\\cuda\\include\\vector_types.h"
#line 81 "c:\\cuda\\include\\vector_types.h"
#line 89 "c:\\cuda\\include\\vector_types.h"
#line 87 "c:\\cuda\\include\\vector_types.h"
#line 95 "c:\\cuda\\include\\vector_types.h"
#line 93 "c:\\cuda\\include\\vector_types.h"
#line 101 "c:\\cuda\\include\\vector_types.h"
#line 99 "c:\\cuda\\include\\vector_types.h"
#line 107 "c:\\cuda\\include\\vector_types.h"
#line 105 "c:\\cuda\\include\\vector_types.h"
#line 113 "c:\\cuda\\include\\vector_types.h"
#line 111 "c:\\cuda\\include\\vector_types.h"
#line 119 "c:\\cuda\\include\\vector_types.h"
#line 117 "c:\\cuda\\include\\vector_types.h"
#line 125 "c:\\cuda\\include\\vector_types.h"
#line 123 "c:\\cuda\\include\\vector_types.h"
#line 131 "c:\\cuda\\include\\vector_types.h"
#line 129 "c:\\cuda\\include\\vector_types.h"
#line 137 "c:\\cuda\\include\\vector_types.h"
#line 135 "c:\\cuda\\include\\vector_types.h"
#line 143 "c:\\cuda\\include\\vector_types.h"
#line 141 "c:\\cuda\\include\\vector_types.h"
#line 149 "c:\\cuda\\include\\vector_types.h"
#line 147 "c:\\cuda\\include\\vector_types.h"
#line 155 "c:\\cuda\\include\\vector_types.h"
#line 153 "c:\\cuda\\include\\vector_types.h"
#line 161 "c:\\cuda\\include\\vector_types.h"
#line 159 "c:\\cuda\\include\\vector_types.h"
#line 163 "c:\\cuda\\include\\vector_types.h"
#line 162 "c:\\cuda\\include\\vector_types.h"
#line 166 "c:\\cuda\\include\\vector_types.h"
#line 165 "c:\\cuda\\include\\vector_types.h"
#line 173 "c:\\cuda\\include\\vector_types.h"
#line 171 "c:\\cuda\\include\\vector_types.h"
#line 179 "c:\\cuda\\include\\vector_types.h"
#line 177 "c:\\cuda\\include\\vector_types.h"
#line 181 "c:\\cuda\\include\\vector_types.h"
#line 180 "c:\\cuda\\include\\vector_types.h"
#line 184 "c:\\cuda\\include\\vector_types.h"
#line 183 "c:\\cuda\\include\\vector_types.h"
#line 191 "c:\\cuda\\include\\vector_types.h"
#line 189 "c:\\cuda\\include\\vector_types.h"
#line 197 "c:\\cuda\\include\\vector_types.h"
#line 195 "c:\\cuda\\include\\vector_types.h"
#line 203 "c:\\cuda\\include\\vector_types.h"
#line 201 "c:\\cuda\\include\\vector_types.h"
#line 209 "c:\\cuda\\include\\vector_types.h"
#line 207 "c:\\cuda\\include\\vector_types.h"
#line 215 "c:\\cuda\\include\\vector_types.h"
#line 213 "c:\\cuda\\include\\vector_types.h"
#line 221 "c:\\cuda\\include\\vector_types.h"
#line 221 "c:\\cuda\\include\\vector_types.h"
#line 225 "c:\\cuda\\include\\vector_types.h"
#line 224 "c:\\cuda\\include\\vector_types.h"
#line 228 "c:\\cuda\\include\\vector_types.h"
#line 243 "c:\\cuda\\include\\vector_types.h"
#line 251 "c:\\cuda\\include\\vector_types.h"
#line 249 "c:\\cuda\\include\\vector_types.h"
#line 257 "c:\\cuda\\include\\vector_types.h"
#line 255 "c:\\cuda\\include\\vector_types.h"
#line 263 "c:\\cuda\\include\\vector_types.h"
#line 261 "c:\\cuda\\include\\vector_types.h"
#line 269 "c:\\cuda\\include\\vector_types.h"
#line 267 "c:\\cuda\\include\\vector_types.h"
#line 275 "c:\\cuda\\include\\vector_types.h"
#line 273 "c:\\cuda\\include\\vector_types.h"
#line 277 "c:\\cuda\\include\\vector_types.h"
#line 276 "c:\\cuda\\include\\vector_types.h"
#line 284 "c:\\cuda\\include\\vector_types.h"
#line 282 "c:\\cuda\\include\\vector_types.h"
#line 290 "c:\\cuda\\include\\vector_types.h"
#line 288 "c:\\cuda\\include\\vector_types.h"
#line 296 "c:\\cuda\\include\\vector_types.h"
#line 294 "c:\\cuda\\include\\vector_types.h"
#line 302 "c:\\cuda\\include\\vector_types.h"
#line 300 "c:\\cuda\\include\\vector_types.h"
#line 308 "c:\\cuda\\include\\vector_types.h"
#line 306 "c:\\cuda\\include\\vector_types.h"
#line 314 "c:\\cuda\\include\\vector_types.h"
#line 312 "c:\\cuda\\include\\vector_types.h"
#line 320 "c:\\cuda\\include\\vector_types.h"
#line 318 "c:\\cuda\\include\\vector_types.h"
#line 326 "c:\\cuda\\include\\vector_types.h"
#line 324 "c:\\cuda\\include\\vector_types.h"
#line 332 "c:\\cuda\\include\\vector_types.h"
#line 330 "c:\\cuda\\include\\vector_types.h"
#line 338 "c:\\cuda\\include\\vector_types.h"
#line 336 "c:\\cuda\\include\\vector_types.h"
#line 344 "c:\\cuda\\include\\vector_types.h"
#line 342 "c:\\cuda\\include\\vector_types.h"
#line 350 "c:\\cuda\\include\\vector_types.h"
#line 348 "c:\\cuda\\include\\vector_types.h"
#line 356 "c:\\cuda\\include\\vector_types.h"
#line 354 "c:\\cuda\\include\\vector_types.h"
#line 362 "c:\\cuda\\include\\vector_types.h"
#line 366 "c:\\cuda\\include\\vector_types.h"
#line 371 "c:\\cuda\\include\\vector_types.h"
#line 368 "c:\\cuda\\include\\vector_types.h"
#line 373 "c:\\cuda\\include\\vector_types.h"
#line 370 "c:\\cuda\\include\\vector_types.h"
#line 375 "c:\\cuda\\include\\vector_types.h"
#line 372 "c:\\cuda\\include\\vector_types.h"
#line 377 "c:\\cuda\\include\\vector_types.h"
#line 374 "c:\\cuda\\include\\vector_types.h"
#line 379 "c:\\cuda\\include\\vector_types.h"
#line 376 "c:\\cuda\\include\\vector_types.h"
#line 381 "c:\\cuda\\include\\vector_types.h"
#line 378 "c:\\cuda\\include\\vector_types.h"
#line 383 "c:\\cuda\\include\\vector_types.h"
#line 380 "c:\\cuda\\include\\vector_types.h"
#line 385 "c:\\cuda\\include\\vector_types.h"
#line 382 "c:\\cuda\\include\\vector_types.h"
#line 387 "c:\\cuda\\include\\vector_types.h"
#line 384 "c:\\cuda\\include\\vector_types.h"
#line 389 "c:\\cuda\\include\\vector_types.h"
#line 386 "c:\\cuda\\include\\vector_types.h"
#line 391 "c:\\cuda\\include\\vector_types.h"
#line 388 "c:\\cuda\\include\\vector_types.h"
#line 393 "c:\\cuda\\include\\vector_types.h"
#line 390 "c:\\cuda\\include\\vector_types.h"
#line 395 "c:\\cuda\\include\\vector_types.h"
#line 392 "c:\\cuda\\include\\vector_types.h"
#line 397 "c:\\cuda\\include\\vector_types.h"
#line 394 "c:\\cuda\\include\\vector_types.h"
#line 399 "c:\\cuda\\include\\vector_types.h"
#line 396 "c:\\cuda\\include\\vector_types.h"
#line 401 "c:\\cuda\\include\\vector_types.h"
#line 398 "c:\\cuda\\include\\vector_types.h"
#line 403 "c:\\cuda\\include\\vector_types.h"
#line 400 "c:\\cuda\\include\\vector_types.h"
#line 405 "c:\\cuda\\include\\vector_types.h"
#line 402 "c:\\cuda\\include\\vector_types.h"
#line 407 "c:\\cuda\\include\\vector_types.h"
#line 404 "c:\\cuda\\include\\vector_types.h"
#line 409 "c:\\cuda\\include\\vector_types.h"
#line 406 "c:\\cuda\\include\\vector_types.h"
#line 411 "c:\\cuda\\include\\vector_types.h"
#line 408 "c:\\cuda\\include\\vector_types.h"
#line 413 "c:\\cuda\\include\\vector_types.h"
#line 410 "c:\\cuda\\include\\vector_types.h"
#line 415 "c:\\cuda\\include\\vector_types.h"
#line 412 "c:\\cuda\\include\\vector_types.h"
#line 417 "c:\\cuda\\include\\vector_types.h"
#line 414 "c:\\cuda\\include\\vector_types.h"
#line 419 "c:\\cuda\\include\\vector_types.h"
#line 416 "c:\\cuda\\include\\vector_types.h"
#line 421 "c:\\cuda\\include\\vector_types.h"
#line 418 "c:\\cuda\\include\\vector_types.h"
#line 423 "c:\\cuda\\include\\vector_types.h"
#line 420 "c:\\cuda\\include\\vector_types.h"
#line 425 "c:\\cuda\\include\\vector_types.h"
#line 422 "c:\\cuda\\include\\vector_types.h"
#line 427 "c:\\cuda\\include\\vector_types.h"
#line 424 "c:\\cuda\\include\\vector_types.h"
#line 429 "c:\\cuda\\include\\vector_types.h"
#line 426 "c:\\cuda\\include\\vector_types.h"
#line 431 "c:\\cuda\\include\\vector_types.h"
#line 428 "c:\\cuda\\include\\vector_types.h"
#line 433 "c:\\cuda\\include\\vector_types.h"
#line 430 "c:\\cuda\\include\\vector_types.h"
#line 435 "c:\\cuda\\include\\vector_types.h"
#line 432 "c:\\cuda\\include\\vector_types.h"
#line 437 "c:\\cuda\\include\\vector_types.h"
#line 434 "c:\\cuda\\include\\vector_types.h"
#line 439 "c:\\cuda\\include\\vector_types.h"
#line 436 "c:\\cuda\\include\\vector_types.h"
#line 441 "c:\\cuda\\include\\vector_types.h"
#line 438 "c:\\cuda\\include\\vector_types.h"
#line 443 "c:\\cuda\\include\\vector_types.h"
#line 440 "c:\\cuda\\include\\vector_types.h"
#line 445 "c:\\cuda\\include\\vector_types.h"
#line 442 "c:\\cuda\\include\\vector_types.h"
#line 447 "c:\\cuda\\include\\vector_types.h"
#line 444 "c:\\cuda\\include\\vector_types.h"
#line 449 "c:\\cuda\\include\\vector_types.h"
#line 446 "c:\\cuda\\include\\vector_types.h"
#line 451 "c:\\cuda\\include\\vector_types.h"
#line 448 "c:\\cuda\\include\\vector_types.h"
#line 453 "c:\\cuda\\include\\vector_types.h"
#line 450 "c:\\cuda\\include\\vector_types.h"
#line 455 "c:\\cuda\\include\\vector_types.h"
#line 452 "c:\\cuda\\include\\vector_types.h"
#line 457 "c:\\cuda\\include\\vector_types.h"
#line 454 "c:\\cuda\\include\\vector_types.h"
#line 459 "c:\\cuda\\include\\vector_types.h"
#line 456 "c:\\cuda\\include\\vector_types.h"
#line 461 "c:\\cuda\\include\\vector_types.h"
#line 458 "c:\\cuda\\include\\vector_types.h"
#line 463 "c:\\cuda\\include\\vector_types.h"
#line 460 "c:\\cuda\\include\\vector_types.h"
#line 465 "c:\\cuda\\include\\vector_types.h"
#line 469 "c:\\cuda\\include\\vector_types.h"
#line 477 "c:\\cuda\\include\\vector_types.h"
#line 480 "c:\\cuda\\include\\vector_types.h"
#line 485 "c:\\cuda\\include\\vector_types.h"
#line 89 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMalloc3D(cudaPitchedPtr *, cudaExtent); }
#line 90 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMalloc3DArray(cudaArray **, const cudaChannelFormatDesc *, cudaExtent, unsigned = (0)); }
#line 91 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemset3D(cudaPitchedPtr, int, cudaExtent); }
#line 92 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpy3D(const cudaMemcpy3DParms *); }
#line 93 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpy3DAsync(const cudaMemcpy3DParms *, cudaStream_t = 0); }
#line 101 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMalloc(void **, size_t); }
#line 102 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMallocHost(void **, size_t); }
#line 103 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMallocPitch(void **, size_t *, size_t, size_t); }
#line 104 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMallocArray(cudaArray **, const cudaChannelFormatDesc *, size_t, size_t = (0), unsigned = (0)); }
#line 105 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaFree(void *); }
#line 106 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaFreeHost(void *); }
#line 107 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaFreeArray(cudaArray *); }
#line 109 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaHostAlloc(void **, size_t, unsigned); }
#line 110 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaHostGetDevicePointer(void **, void *, unsigned); }
#line 111 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaHostGetFlags(unsigned *, void *); }
#line 119 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemGetInfo(size_t *, size_t *); }
#line 120 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpy(void *, const void *, size_t, cudaMemcpyKind); }
#line 121 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpyToArray(cudaArray *, size_t, size_t, const void *, size_t, cudaMemcpyKind); }
#line 122 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpyFromArray(void *, const cudaArray *, size_t, size_t, size_t, cudaMemcpyKind); }
#line 123 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpyArrayToArray(cudaArray *, size_t, size_t, const cudaArray *, size_t, size_t, size_t, cudaMemcpyKind = cudaMemcpyDeviceToDevice); }
#line 124 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpy2D(void *, size_t, const void *, size_t, size_t, size_t, cudaMemcpyKind); }
#line 125 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpy2DToArray(cudaArray *, size_t, size_t, const void *, size_t, size_t, size_t, cudaMemcpyKind); }
#line 126 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpy2DFromArray(void *, size_t, const cudaArray *, size_t, size_t, size_t, size_t, cudaMemcpyKind); }
#line 127 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpy2DArrayToArray(cudaArray *, size_t, size_t, const cudaArray *, size_t, size_t, size_t, size_t, cudaMemcpyKind = cudaMemcpyDeviceToDevice); }
#line 128 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpyToSymbol(const char *, const void *, size_t, size_t = (0), cudaMemcpyKind = cudaMemcpyHostToDevice); }
#line 129 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpyFromSymbol(void *, const char *, size_t, size_t = (0), cudaMemcpyKind = cudaMemcpyDeviceToHost); }
#line 137 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpyAsync(void *, const void *, size_t, cudaMemcpyKind, cudaStream_t = 0); }
#line 138 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpyToArrayAsync(cudaArray *, size_t, size_t, const void *, size_t, cudaMemcpyKind, cudaStream_t = 0); }
#line 139 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpyFromArrayAsync(void *, const cudaArray *, size_t, size_t, size_t, cudaMemcpyKind, cudaStream_t = 0); }
#line 140 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpy2DAsync(void *, size_t, const void *, size_t, size_t, size_t, cudaMemcpyKind, cudaStream_t = 0); }
#line 141 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpy2DToArrayAsync(cudaArray *, size_t, size_t, const void *, size_t, size_t, size_t, cudaMemcpyKind, cudaStream_t = 0); }
#line 142 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpy2DFromArrayAsync(void *, size_t, const cudaArray *, size_t, size_t, size_t, size_t, cudaMemcpyKind, cudaStream_t = 0); }
#line 143 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpyToSymbolAsync(const char *, const void *, size_t, size_t, cudaMemcpyKind, cudaStream_t = 0); }
#line 144 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemcpyFromSymbolAsync(void *, const char *, size_t, size_t, cudaMemcpyKind, cudaStream_t = 0); }
#line 152 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemset(void *, int, size_t); }
#line 153 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaMemset2D(void *, size_t, int, size_t, size_t); }
#line 161 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGetSymbolAddress(void **, const char *); }
#line 162 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGetSymbolSize(size_t *, const char *); }
#line 170 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGetDeviceCount(int *); }
#line 171 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGetDeviceProperties(cudaDeviceProp *, int); }
#line 172 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaChooseDevice(int *, const cudaDeviceProp *); }
#line 173 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaSetDevice(int); }
#line 174 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGetDevice(int *); }
#line 175 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaSetValidDevices(int *, int); }
#line 176 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaSetDeviceFlags(int); }
#line 184 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaBindTexture(size_t *, const textureReference *, const void *, const cudaChannelFormatDesc *, size_t = (4294967295U)); }
#line 185 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaBindTexture2D(size_t *, const textureReference *, const void *, const cudaChannelFormatDesc *, size_t, size_t, size_t); }
#line 186 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaBindTextureToArray(const textureReference *, const cudaArray *, const cudaChannelFormatDesc *); }
#line 187 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaUnbindTexture(const textureReference *); }
#line 188 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGetTextureAlignmentOffset(size_t *, const textureReference *); }
#line 189 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGetTextureReference(const textureReference **, const char *); }
#line 197 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaBindSurfaceToArray(const surfaceReference *, const cudaArray *, const cudaChannelFormatDesc *); }
#line 198 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGetSurfaceAlignmentOffset(size_t *, const surfaceReference *); }
#line 199 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGetSurfaceReference(const surfaceReference **, const char *); }
#line 207 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGetChannelDesc(cudaChannelFormatDesc *, const cudaArray *); }
#line 208 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaChannelFormatDesc __stdcall cudaCreateChannelDesc(int, int, int, int, cudaChannelFormatKind); }
#line 216 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGetLastError(); }
#line 217 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaPeekAtLastError(); }
#line 218 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern const char *__stdcall cudaGetErrorString(cudaError_t); }
#line 226 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaConfigureCall(dim3, dim3, size_t = (0), cudaStream_t = 0); }
#line 227 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaSetupArgument(const void *, size_t, size_t); }
#line 228 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaFuncSetCacheConfig(const char *, cudaFuncCache); }
#line 229 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaLaunch(const char *); }
#line 230 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaFuncGetAttributes(cudaFuncAttributes *, const char *); }
#line 238 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaStreamCreate(cudaStream_t *); }
#line 239 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaStreamDestroy(cudaStream_t); }
#line 240 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaStreamSynchronize(cudaStream_t); }
#line 241 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaStreamQuery(cudaStream_t); }
#line 249 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaEventCreate(cudaEvent_t *); }
#line 250 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaEventCreateWithFlags(cudaEvent_t *, int); }
#line 251 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaEventRecord(cudaEvent_t, cudaStream_t = 0); }
#line 252 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaEventQuery(cudaEvent_t); }
#line 253 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaEventSynchronize(cudaEvent_t); }
#line 254 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaEventDestroy(cudaEvent_t); }
#line 255 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaEventElapsedTime(float *, cudaEvent_t, cudaEvent_t); }
#line 263 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaSetDoubleForDevice(double *); }
#line 264 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaSetDoubleForHost(double *); }
#line 272 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaThreadExit(); }
#line 273 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaThreadSynchronize(); }
#line 274 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaThreadSetLimit(cudaLimit, size_t); }
#line 275 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaThreadGetLimit(size_t *, cudaLimit); }
#line 283 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaDriverGetVersion(int *); }
#line 284 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaRuntimeGetVersion(int *); }
#line 285 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGetExportTable(const void **, const cudaUUID_t *); }
#line 294 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGraphicsUnregisterResource(cudaGraphicsResource *); }
#line 295 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGraphicsResourceSetMapFlags(cudaGraphicsResource *, unsigned); }
#line 296 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGraphicsMapResources(int, cudaGraphicsResource **, cudaStream_t = 0); }
#line 297 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGraphicsUnmapResources(int, cudaGraphicsResource **, cudaStream_t = 0); }
#line 298 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGraphicsResourceGetMappedPointer(void **, size_t *, cudaGraphicsResource *); }
#line 299 "c:\\cuda\\include\\cuda_runtime_api.h"
extern "C" { extern cudaError_t __stdcall cudaGraphicsSubResourceGetMappedArray(cudaArray **, cudaGraphicsResource *, unsigned, unsigned); }
#line 93 "c:\\cuda\\include\\channel_descriptor.h"
template<class T> __inline cudaChannelFormatDesc cudaCreateChannelDesc()
#line 94 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 95 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(0, 0, 0, 0, cudaChannelFormatKindNone);
#line 96 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 98 "c:\\cuda\\include\\channel_descriptor.h"
static __inline cudaChannelFormatDesc cudaCreateChannelDescHalf()
#line 99 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 100 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned short)) * 8);
#line 102 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindFloat);
#line 103 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 105 "c:\\cuda\\include\\channel_descriptor.h"
static __inline cudaChannelFormatDesc cudaCreateChannelDescHalf1()
#line 106 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 107 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned short)) * 8);
#line 109 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindFloat);
#line 110 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 112 "c:\\cuda\\include\\channel_descriptor.h"
static __inline cudaChannelFormatDesc cudaCreateChannelDescHalf2()
#line 113 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 114 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned short)) * 8);
#line 116 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindFloat);
#line 117 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 119 "c:\\cuda\\include\\channel_descriptor.h"
static __inline cudaChannelFormatDesc cudaCreateChannelDescHalf4()
#line 120 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 121 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned short)) * 8);
#line 123 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindFloat);
#line 124 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 126 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< char> ()
#line 127 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 128 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(char)) * 8);
#line 133 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned);
#line 135 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 137 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< signed char> ()
#line 138 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 139 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(signed char)) * 8);
#line 141 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindSigned);
#line 142 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 144 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< unsigned char> ()
#line 145 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 146 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned char)) * 8);
#line 148 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned);
#line 149 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 151 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< char1> ()
#line 152 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 153 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(signed char)) * 8);
#line 155 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindSigned);
#line 156 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 158 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< uchar1> ()
#line 159 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 160 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned char)) * 8);
#line 162 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned);
#line 163 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 165 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< char2> ()
#line 166 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 167 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(signed char)) * 8);
#line 169 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindSigned);
#line 170 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 172 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< uchar2> ()
#line 173 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 174 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned char)) * 8);
#line 176 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindUnsigned);
#line 177 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 179 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< char4> ()
#line 180 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 181 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(signed char)) * 8);
#line 183 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindSigned);
#line 184 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 186 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< uchar4> ()
#line 187 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 188 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned char)) * 8);
#line 190 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindUnsigned);
#line 191 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 193 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< short> ()
#line 194 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 195 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(short)) * 8);
#line 197 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindSigned);
#line 198 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 200 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< unsigned short> ()
#line 201 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 202 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned short)) * 8);
#line 204 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned);
#line 205 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 207 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< short1> ()
#line 208 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 209 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(short)) * 8);
#line 211 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindSigned);
#line 212 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 214 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< ushort1> ()
#line 215 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 216 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned short)) * 8);
#line 218 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned);
#line 219 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 221 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< short2> ()
#line 222 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 223 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(short)) * 8);
#line 225 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindSigned);
#line 226 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 228 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< ushort2> ()
#line 229 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 230 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned short)) * 8);
#line 232 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindUnsigned);
#line 233 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 235 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< short4> ()
#line 236 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 237 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(short)) * 8);
#line 239 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindSigned);
#line 240 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 242 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< ushort4> ()
#line 243 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 244 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned short)) * 8);
#line 246 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindUnsigned);
#line 247 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 249 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< int> ()
#line 250 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 251 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(int)) * 8);
#line 253 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindSigned);
#line 254 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 256 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< unsigned> ()
#line 257 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 258 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned)) * 8);
#line 260 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned);
#line 261 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 263 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< int1> ()
#line 264 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 265 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(int)) * 8);
#line 267 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindSigned);
#line 268 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 270 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< uint1> ()
#line 271 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 272 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned)) * 8);
#line 274 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned);
#line 275 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 277 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< int2> ()
#line 278 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 279 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(int)) * 8);
#line 281 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindSigned);
#line 282 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 284 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< uint2> ()
#line 285 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 286 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned)) * 8);
#line 288 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindUnsigned);
#line 289 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 291 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< int4> ()
#line 292 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 293 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(int)) * 8);
#line 295 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindSigned);
#line 296 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 298 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< uint4> ()
#line 299 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 300 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned)) * 8);
#line 302 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindUnsigned);
#line 303 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 307 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< long> ()
#line 308 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 309 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(long)) * 8);
#line 311 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindSigned);
#line 312 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 314 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< unsigned long> ()
#line 315 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 316 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned long)) * 8);
#line 318 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned);
#line 319 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 321 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< long1> ()
#line 322 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 323 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(long)) * 8);
#line 325 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindSigned);
#line 326 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 328 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< ulong1> ()
#line 329 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 330 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned long)) * 8);
#line 332 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned);
#line 333 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 335 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< long2> ()
#line 336 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 337 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(long)) * 8);
#line 339 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindSigned);
#line 340 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 342 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< ulong2> ()
#line 343 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 344 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned long)) * 8);
#line 346 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindUnsigned);
#line 347 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 349 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< long4> ()
#line 350 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 351 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(long)) * 8);
#line 353 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindSigned);
#line 354 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 356 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< ulong4> ()
#line 357 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 358 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(unsigned long)) * 8);
#line 360 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindUnsigned);
#line 361 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 365 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< float> ()
#line 366 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 367 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(float)) * 8);
#line 369 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindFloat);
#line 370 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 372 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< float1> ()
#line 373 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 374 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(float)) * 8);
#line 376 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindFloat);
#line 377 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 379 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< float2> ()
#line 380 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 381 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(float)) * 8);
#line 383 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindFloat);
#line 384 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 386 "c:\\cuda\\include\\channel_descriptor.h"
template<> __inline cudaChannelFormatDesc cudaCreateChannelDesc< float4> ()
#line 387 "c:\\cuda\\include\\channel_descriptor.h"
{
#line 388 "c:\\cuda\\include\\channel_descriptor.h"
int e = (((int)sizeof(float)) * 8);
#line 390 "c:\\cuda\\include\\channel_descriptor.h"
return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindFloat);
#line 391 "c:\\cuda\\include\\channel_descriptor.h"
}
#line 55 "c:\\cuda\\include\\driver_functions.h"
static __inline cudaPitchedPtr make_cudaPitchedPtr(void *d, size_t p, size_t xsz, size_t ysz)
#line 56 "c:\\cuda\\include\\driver_functions.h"
{
#line 57 "c:\\cuda\\include\\driver_functions.h"
cudaPitchedPtr s;
#line 59 "c:\\cuda\\include\\driver_functions.h"
(s.ptr) = d;
#line 60 "c:\\cuda\\include\\driver_functions.h"
(s.pitch) = p;
#line 61 "c:\\cuda\\include\\driver_functions.h"
(s.xsize) = xsz;
#line 62 "c:\\cuda\\include\\driver_functions.h"
(s.ysize) = ysz;
#line 64 "c:\\cuda\\include\\driver_functions.h"
return s;
#line 65 "c:\\cuda\\include\\driver_functions.h"
}
#line 67 "c:\\cuda\\include\\driver_functions.h"
static __inline cudaPos make_cudaPos(size_t x, size_t y, size_t z)
#line 68 "c:\\cuda\\include\\driver_functions.h"
{
#line 69 "c:\\cuda\\include\\driver_functions.h"
cudaPos p;
#line 71 "c:\\cuda\\include\\driver_functions.h"
(p.x) = x;
#line 72 "c:\\cuda\\include\\driver_functions.h"
(p.y) = y;
#line 73 "c:\\cuda\\include\\driver_functions.h"
(p.z) = z;
#line 75 "c:\\cuda\\include\\driver_functions.h"
return p;
#line 76 "c:\\cuda\\include\\driver_functions.h"
}
#line 78 "c:\\cuda\\include\\driver_functions.h"
static __inline cudaExtent make_cudaExtent(size_t w, size_t h, size_t d)
#line 79 "c:\\cuda\\include\\driver_functions.h"
{
#line 80 "c:\\cuda\\include\\driver_functions.h"
cudaExtent e;
#line 82 "c:\\cuda\\include\\driver_functions.h"
(e.width) = w;
#line 83 "c:\\cuda\\include\\driver_functions.h"
(e.height) = h;
#line 84 "c:\\cuda\\include\\driver_functions.h"
(e.depth) = d;
#line 86 "c:\\cuda\\include\\driver_functions.h"
return e;
#line 87 "c:\\cuda\\include\\driver_functions.h"
}
#line 55 "c:\\cuda\\include\\vector_functions.h"
static __inline char1 make_char1(signed char x)
#line 56 "c:\\cuda\\include\\vector_functions.h"
{
#line 57 "c:\\cuda\\include\\vector_functions.h"
char1 t; (t.x) = x; return t;
#line 58 "c:\\cuda\\include\\vector_functions.h"
}
#line 60 "c:\\cuda\\include\\vector_functions.h"
static __inline uchar1 make_uchar1(unsigned char x)
#line 61 "c:\\cuda\\include\\vector_functions.h"
{
#line 62 "c:\\cuda\\include\\vector_functions.h"
uchar1 t; (t.x) = x; return t;
#line 63 "c:\\cuda\\include\\vector_functions.h"
}
#line 65 "c:\\cuda\\include\\vector_functions.h"
static __inline char2 make_char2(signed char x, signed char y)
#line 66 "c:\\cuda\\include\\vector_functions.h"
{
#line 67 "c:\\cuda\\include\\vector_functions.h"
char2 t; (t.x) = x; (t.y) = y; return t;
#line 68 "c:\\cuda\\include\\vector_functions.h"
}
#line 70 "c:\\cuda\\include\\vector_functions.h"
static __inline uchar2 make_uchar2(unsigned char x, unsigned char y)
#line 71 "c:\\cuda\\include\\vector_functions.h"
{
#line 72 "c:\\cuda\\include\\vector_functions.h"
uchar2 t; (t.x) = x; (t.y) = y; return t;
#line 73 "c:\\cuda\\include\\vector_functions.h"
}
#line 75 "c:\\cuda\\include\\vector_functions.h"
static __inline char3 make_char3(signed char x, signed char y, signed char z)
#line 76 "c:\\cuda\\include\\vector_functions.h"
{
#line 77 "c:\\cuda\\include\\vector_functions.h"
char3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t;
#line 78 "c:\\cuda\\include\\vector_functions.h"
}
#line 80 "c:\\cuda\\include\\vector_functions.h"
static __inline uchar3 make_uchar3(unsigned char x, unsigned char y, unsigned char z)
#line 81 "c:\\cuda\\include\\vector_functions.h"
{
#line 82 "c:\\cuda\\include\\vector_functions.h"
uchar3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t;
#line 83 "c:\\cuda\\include\\vector_functions.h"
}
#line 85 "c:\\cuda\\include\\vector_functions.h"
static __inline char4 make_char4(signed char x, signed char y, signed char z, signed char w)
#line 86 "c:\\cuda\\include\\vector_functions.h"
{
#line 87 "c:\\cuda\\include\\vector_functions.h"
char4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t;
#line 88 "c:\\cuda\\include\\vector_functions.h"
}
#line 90 "c:\\cuda\\include\\vector_functions.h"
static __inline uchar4 make_uchar4(unsigned char x, unsigned char y, unsigned char z, unsigned char w)
#line 91 "c:\\cuda\\include\\vector_functions.h"
{
#line 92 "c:\\cuda\\include\\vector_functions.h"
uchar4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t;
#line 93 "c:\\cuda\\include\\vector_functions.h"
}
#line 95 "c:\\cuda\\include\\vector_functions.h"
static __inline short1 make_short1(short x)
#line 96 "c:\\cuda\\include\\vector_functions.h"
{
#line 97 "c:\\cuda\\include\\vector_functions.h"
short1 t; (t.x) = x; return t;
#line 98 "c:\\cuda\\include\\vector_functions.h"
}
#line 100 "c:\\cuda\\include\\vector_functions.h"
static __inline ushort1 make_ushort1(unsigned short x)
#line 101 "c:\\cuda\\include\\vector_functions.h"
{
#line 102 "c:\\cuda\\include\\vector_functions.h"
ushort1 t; (t.x) = x; return t;
#line 103 "c:\\cuda\\include\\vector_functions.h"
}
#line 105 "c:\\cuda\\include\\vector_functions.h"
static __inline short2 make_short2(short x, short y)
#line 106 "c:\\cuda\\include\\vector_functions.h"
{
#line 107 "c:\\cuda\\include\\vector_functions.h"
short2 t; (t.x) = x; (t.y) = y; return t;
#line 108 "c:\\cuda\\include\\vector_functions.h"
}
#line 110 "c:\\cuda\\include\\vector_functions.h"
static __inline ushort2 make_ushort2(unsigned short x, unsigned short y)
#line 111 "c:\\cuda\\include\\vector_functions.h"
{
#line 112 "c:\\cuda\\include\\vector_functions.h"
ushort2 t; (t.x) = x; (t.y) = y; return t;
#line 113 "c:\\cuda\\include\\vector_functions.h"
}
#line 115 "c:\\cuda\\include\\vector_functions.h"
static __inline short3 make_short3(short x, short y, short z)
#line 116 "c:\\cuda\\include\\vector_functions.h"
{
#line 117 "c:\\cuda\\include\\vector_functions.h"
short3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t;
#line 118 "c:\\cuda\\include\\vector_functions.h"
}
#line 120 "c:\\cuda\\include\\vector_functions.h"
static __inline ushort3 make_ushort3(unsigned short x, unsigned short y, unsigned short z)
#line 121 "c:\\cuda\\include\\vector_functions.h"
{
#line 122 "c:\\cuda\\include\\vector_functions.h"
ushort3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t;
#line 123 "c:\\cuda\\include\\vector_functions.h"
}
#line 125 "c:\\cuda\\include\\vector_functions.h"
static __inline short4 make_short4(short x, short y, short z, short w)
#line 126 "c:\\cuda\\include\\vector_functions.h"
{
#line 127 "c:\\cuda\\include\\vector_functions.h"
short4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t;
#line 128 "c:\\cuda\\include\\vector_functions.h"
}
#line 130 "c:\\cuda\\include\\vector_functions.h"
static __inline ushort4 make_ushort4(unsigned short x, unsigned short y, unsigned short z, unsigned short w)
#line 131 "c:\\cuda\\include\\vector_functions.h"
{
#line 132 "c:\\cuda\\include\\vector_functions.h"
ushort4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t;
#line 133 "c:\\cuda\\include\\vector_functions.h"
}
#line 135 "c:\\cuda\\include\\vector_functions.h"
static __inline int1 make_int1(int x)
#line 136 "c:\\cuda\\include\\vector_functions.h"
{
#line 137 "c:\\cuda\\include\\vector_functions.h"
int1 t; (t.x) = x; return t;
#line 138 "c:\\cuda\\include\\vector_functions.h"
}
#line 140 "c:\\cuda\\include\\vector_functions.h"
static __inline uint1 make_uint1(unsigned x)
#line 141 "c:\\cuda\\include\\vector_functions.h"
{
#line 142 "c:\\cuda\\include\\vector_functions.h"
uint1 t; (t.x) = x; return t;
#line 143 "c:\\cuda\\include\\vector_functions.h"
}
#line 145 "c:\\cuda\\include\\vector_functions.h"
static __inline int2 make_int2(int x, int y)
#line 146 "c:\\cuda\\include\\vector_functions.h"
{
#line 147 "c:\\cuda\\include\\vector_functions.h"
int2 t; (t.x) = x; (t.y) = y; return t;
#line 148 "c:\\cuda\\include\\vector_functions.h"
}
#line 150 "c:\\cuda\\include\\vector_functions.h"
static __inline uint2 make_uint2(unsigned x, unsigned y)
#line 151 "c:\\cuda\\include\\vector_functions.h"
{
#line 152 "c:\\cuda\\include\\vector_functions.h"
uint2 t; (t.x) = x; (t.y) = y; return t;
#line 153 "c:\\cuda\\include\\vector_functions.h"
}
#line 155 "c:\\cuda\\include\\vector_functions.h"
static __inline int3 make_int3(int x, int y, int z)
#line 156 "c:\\cuda\\include\\vector_functions.h"
{
#line 157 "c:\\cuda\\include\\vector_functions.h"
int3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t;
#line 158 "c:\\cuda\\include\\vector_functions.h"
}
#line 160 "c:\\cuda\\include\\vector_functions.h"
static __inline uint3 make_uint3(unsigned x, unsigned y, unsigned z)
#line 161 "c:\\cuda\\include\\vector_functions.h"
{
#line 162 "c:\\cuda\\include\\vector_functions.h"
uint3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t;
#line 163 "c:\\cuda\\include\\vector_functions.h"
}
#line 165 "c:\\cuda\\include\\vector_functions.h"
static __inline int4 make_int4(int x, int y, int z, int w)
#line 166 "c:\\cuda\\include\\vector_functions.h"
{
#line 167 "c:\\cuda\\include\\vector_functions.h"
int4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t;
#line 168 "c:\\cuda\\include\\vector_functions.h"
}
#line 170 "c:\\cuda\\include\\vector_functions.h"
static __inline uint4 make_uint4(unsigned x, unsigned y, unsigned z, unsigned w)
#line 171 "c:\\cuda\\include\\vector_functions.h"
{
#line 172 "c:\\cuda\\include\\vector_functions.h"
uint4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t;
#line 173 "c:\\cuda\\include\\vector_functions.h"
}
#line 175 "c:\\cuda\\include\\vector_functions.h"
static __inline long1 make_long1(long x)
#line 176 "c:\\cuda\\include\\vector_functions.h"
{
#line 177 "c:\\cuda\\include\\vector_functions.h"
long1 t; (t.x) = x; return t;
#line 178 "c:\\cuda\\include\\vector_functions.h"
}
#line 180 "c:\\cuda\\include\\vector_functions.h"
static __inline ulong1 make_ulong1(unsigned long x)
#line 181 "c:\\cuda\\include\\vector_functions.h"
{
#line 182 "c:\\cuda\\include\\vector_functions.h"
ulong1 t; (t.x) = x; return t;
#line 183 "c:\\cuda\\include\\vector_functions.h"
}
#line 185 "c:\\cuda\\include\\vector_functions.h"
static __inline long2 make_long2(long x, long y)
#line 186 "c:\\cuda\\include\\vector_functions.h"
{
#line 187 "c:\\cuda\\include\\vector_functions.h"
long2 t; (t.x) = x; (t.y) = y; return t;
#line 188 "c:\\cuda\\include\\vector_functions.h"
}
#line 190 "c:\\cuda\\include\\vector_functions.h"
static __inline ulong2 make_ulong2(unsigned long x, unsigned long y)
#line 191 "c:\\cuda\\include\\vector_functions.h"
{
#line 192 "c:\\cuda\\include\\vector_functions.h"
ulong2 t; (t.x) = x; (t.y) = y; return t;
#line 193 "c:\\cuda\\include\\vector_functions.h"
}
#line 195 "c:\\cuda\\include\\vector_functions.h"
static __inline long3 make_long3(long x, long y, long z)
#line 196 "c:\\cuda\\include\\vector_functions.h"
{
#line 197 "c:\\cuda\\include\\vector_functions.h"
long3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t;
#line 198 "c:\\cuda\\include\\vector_functions.h"
}
#line 200 "c:\\cuda\\include\\vector_functions.h"
static __inline ulong3 make_ulong3(unsigned long x, unsigned long y, unsigned long z)
#line 201 "c:\\cuda\\include\\vector_functions.h"
{
#line 202 "c:\\cuda\\include\\vector_functions.h"
ulong3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t;
#line 203 "c:\\cuda\\include\\vector_functions.h"
}
#line 205 "c:\\cuda\\include\\vector_functions.h"
static __inline long4 make_long4(long x, long y, long z, long w)
#line 206 "c:\\cuda\\include\\vector_functions.h"
{
#line 207 "c:\\cuda\\include\\vector_functions.h"
long4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t;
#line 208 "c:\\cuda\\include\\vector_functions.h"
}
#line 210 "c:\\cuda\\include\\vector_functions.h"
static __inline ulong4 make_ulong4(unsigned long x, unsigned long y, unsigned long z, unsigned long w)
#line 211 "c:\\cuda\\include\\vector_functions.h"
{
#line 212 "c:\\cuda\\include\\vector_functions.h"
ulong4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t;
#line 213 "c:\\cuda\\include\\vector_functions.h"
}
#line 215 "c:\\cuda\\include\\vector_functions.h"
static __inline float1 make_float1(float x)
#line 216 "c:\\cuda\\include\\vector_functions.h"
{
#line 217 "c:\\cuda\\include\\vector_functions.h"
float1 t; (t.x) = x; return t;
#line 218 "c:\\cuda\\include\\vector_functions.h"
}
#line 220 "c:\\cuda\\include\\vector_functions.h"
static __inline float2 make_float2(float x, float y)
#line 221 "c:\\cuda\\include\\vector_functions.h"
{
#line 222 "c:\\cuda\\include\\vector_functions.h"
float2 t; (t.x) = x; (t.y) = y; return t;
#line 223 "c:\\cuda\\include\\vector_functions.h"
}
#line 225 "c:\\cuda\\include\\vector_functions.h"
static __inline float3 make_float3(float x, float y, float z)
#line 226 "c:\\cuda\\include\\vector_functions.h"
{
#line 227 "c:\\cuda\\include\\vector_functions.h"
float3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t;
#line 228 "c:\\cuda\\include\\vector_functions.h"
}
#line 230 "c:\\cuda\\include\\vector_functions.h"
static __inline float4 make_float4(float x, float y, float z, float w)
#line 231 "c:\\cuda\\include\\vector_functions.h"
{
#line 232 "c:\\cuda\\include\\vector_functions.h"
float4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t;
#line 233 "c:\\cuda\\include\\vector_functions.h"
}
#line 235 "c:\\cuda\\include\\vector_functions.h"
static __inline longlong1 make_longlong1(__int64 x)
#line 236 "c:\\cuda\\include\\vector_functions.h"
{
#line 237 "c:\\cuda\\include\\vector_functions.h"
longlong1 t; (t.x) = x; return t;
#line 238 "c:\\cuda\\include\\vector_functions.h"
}
#line 240 "c:\\cuda\\include\\vector_functions.h"
static __inline ulonglong1 make_ulonglong1(unsigned __int64 x)
#line 241 "c:\\cuda\\include\\vector_functions.h"
{
#line 242 "c:\\cuda\\include\\vector_functions.h"
ulonglong1 t; (t.x) = x; return t;
#line 243 "c:\\cuda\\include\\vector_functions.h"
}
#line 245 "c:\\cuda\\include\\vector_functions.h"
static __inline longlong2 make_longlong2(__int64 x, __int64 y)
#line 246 "c:\\cuda\\include\\vector_functions.h"
{
#line 247 "c:\\cuda\\include\\vector_functions.h"
longlong2 t; (t.x) = x; (t.y) = y; return t;
#line 248 "c:\\cuda\\include\\vector_functions.h"
}
#line 250 "c:\\cuda\\include\\vector_functions.h"
static __inline ulonglong2 make_ulonglong2(unsigned __int64 x, unsigned __int64 y)
#line 251 "c:\\cuda\\include\\vector_functions.h"
{
#line 252 "c:\\cuda\\include\\vector_functions.h"
ulonglong2 t; (t.x) = x; (t.y) = y; return t;
#line 253 "c:\\cuda\\include\\vector_functions.h"
}
#line 255 "c:\\cuda\\include\\vector_functions.h"
static __inline longlong3 make_longlong3(__int64 x, __int64 y, __int64 z)
#line 256 "c:\\cuda\\include\\vector_functions.h"
{
#line 257 "c:\\cuda\\include\\vector_functions.h"
longlong3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t;
#line 258 "c:\\cuda\\include\\vector_functions.h"
}
#line 260 "c:\\cuda\\include\\vector_functions.h"
static __inline ulonglong3 make_ulonglong3(unsigned __int64 x, unsigned __int64 y, unsigned __int64 z)
#line 261 "c:\\cuda\\include\\vector_functions.h"
{
#line 262 "c:\\cuda\\include\\vector_functions.h"
ulonglong3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t;
#line 263 "c:\\cuda\\include\\vector_functions.h"
}
#line 265 "c:\\cuda\\include\\vector_functions.h"
static __inline longlong4 make_longlong4(__int64 x, __int64 y, __int64 z, __int64 w)
#line 266 "c:\\cuda\\include\\vector_functions.h"
{
#line 267 "c:\\cuda\\include\\vector_functions.h"
longlong4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t;
#line 268 "c:\\cuda\\include\\vector_functions.h"
}
#line 270 "c:\\cuda\\include\\vector_functions.h"
static __inline ulonglong4 make_ulonglong4(unsigned __int64 x, unsigned __int64 y, unsigned __int64 z, unsigned __int64 w)
#line 271 "c:\\cuda\\include\\vector_functions.h"
{
#line 272 "c:\\cuda\\include\\vector_functions.h"
ulonglong4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t;
#line 273 "c:\\cuda\\include\\vector_functions.h"
}
#line 275 "c:\\cuda\\include\\vector_functions.h"
static __inline double1 make_double1(double x)
#line 276 "c:\\cuda\\include\\vector_functions.h"
{
#line 277 "c:\\cuda\\include\\vector_functions.h"
double1 t; (t.x) = x; return t;
#line 278 "c:\\cuda\\include\\vector_functions.h"
}
#line 280 "c:\\cuda\\include\\vector_functions.h"
static __inline double2 make_double2(double x, double y)
#line 281 "c:\\cuda\\include\\vector_functions.h"
{
#line 282 "c:\\cuda\\include\\vector_functions.h"
double2 t; (t.x) = x; (t.y) = y; return t;
#line 283 "c:\\cuda\\include\\vector_functions.h"
}
#line 285 "c:\\cuda\\include\\vector_functions.h"
static __inline double3 make_double3(double x, double y, double z)
#line 286 "c:\\cuda\\include\\vector_functions.h"
{
#line 287 "c:\\cuda\\include\\vector_functions.h"
double3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t;
#line 288 "c:\\cuda\\include\\vector_functions.h"
}
#line 290 "c:\\cuda\\include\\vector_functions.h"
static __inline double4 make_double4(double x, double y, double z, double w)
#line 291 "c:\\cuda\\include\\vector_functions.h"
{
#line 292 "c:\\cuda\\include\\vector_functions.h"
double4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t;
#line 293 "c:\\cuda\\include\\vector_functions.h"
}
#line 48 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { void *__cdecl _memccpy(void *, const void *, int, size_t); }
#line 49 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { const void *__cdecl memchr(const void *, int, size_t); }
#line 50 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _memicmp(const void *, const void *, size_t); }
#line 51 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _memicmp_l(const void *, const void *, size_t, _locale_t); }
#line 52 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl memcmp(const void *, const void *, size_t); }
#line 53 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { void *__cdecl memcpy(void *, const void *, size_t); }
#line 55 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl memcpy_s(void *, rsize_t, const void *, rsize_t); }
#line 57 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { void *__cdecl memset(void *, int, size_t); }
#line 61 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { void *__cdecl memccpy(void *, const void *, int, size_t); }
#line 62 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl memicmp(const void *, const void *, size_t); }
#line 67 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl _strset_s(char *, size_t, int); }
#line 68 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl _strset_s ( char ( & _Dest ) [ _Size ], int _Value ) { return _strset_s ( _Dest, _Size, _Value ); }
#line 69 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl _strset(char *, int); }
#line 71 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl strcpy_s(char *, rsize_t, const char *); }
#line 73 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl strcpy_s ( char ( & _Dest ) [ _Size ], const char * _Source ) { return strcpy_s ( _Dest, _Size, _Source ); }
#line 74 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl strcpy(char *, const char *); }
#line 76 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl strcat_s(char *, rsize_t, const char *); }
#line 78 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl strcat_s ( char ( & _Dest ) [ _Size ], const char * _Source ) { return strcat_s ( _Dest, _Size, _Source ); }
#line 79 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl strcat(char *, const char *); }
#line 80 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl strcmp(const char *, const char *); }
#line 81 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { size_t __cdecl strlen(const char *); }
#line 82 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { size_t __cdecl strnlen(const char *, size_t); }
#line 84 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { static __inline size_t __cdecl strnlen_s(const char *_Str, size_t _MaxCount)
#line 85 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
{
#line 86 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
return (_Str == (0)) ? (0) : strnlen(_Str, _MaxCount);
#line 87 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
} }
#line 90 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl memmove_s(void *, rsize_t, const void *, rsize_t); }
#line 96 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { void *__cdecl memmove(void *, const void *, size_t); }
#line 104 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl _strdup(const char *); }
#line 110 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { const char *__cdecl strchr(const char *, int); }
#line 111 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _stricmp(const char *, const char *); }
#line 112 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _strcmpi(const char *, const char *); }
#line 113 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _stricmp_l(const char *, const char *, _locale_t); }
#line 114 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl strcoll(const char *, const char *); }
#line 115 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _strcoll_l(const char *, const char *, _locale_t); }
#line 116 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _stricoll(const char *, const char *); }
#line 117 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _stricoll_l(const char *, const char *, _locale_t); }
#line 118 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _strncoll(const char *, const char *, size_t); }
#line 119 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _strncoll_l(const char *, const char *, size_t, _locale_t); }
#line 120 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _strnicoll(const char *, const char *, size_t); }
#line 121 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _strnicoll_l(const char *, const char *, size_t, _locale_t); }
#line 122 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { size_t __cdecl strcspn(const char *, const char *); }
#line 123 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl _strerror(const char *); }
#line 124 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl _strerror_s(char *, size_t, const char *); }
#line 125 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl _strerror_s ( char ( & _Buffer ) [ _Size ], const char * _ErrorMessage ) { return _strerror_s ( _Buffer, _Size, _ErrorMessage ); }
#line 126 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl strerror(int); }
#line 128 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl strerror_s(char *, size_t, int); }
#line 130 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl strerror_s ( char ( & _Buffer ) [ _Size ], int _ErrorMessage ) { return strerror_s ( _Buffer, _Size, _ErrorMessage ); }
#line 131 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl _strlwr_s(char *, size_t); }
#line 132 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl _strlwr_s ( char ( & _String ) [ _Size ] ) { return _strlwr_s ( _String, _Size ); }
#line 133 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl _strlwr(char *); }
#line 134 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl _strlwr_s_l(char *, size_t, _locale_t); }
#line 135 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl _strlwr_s_l ( char ( & _String ) [ _Size ], _locale_t _Locale ) { return _strlwr_s_l ( _String, _Size, _Locale ); }
#line 136 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl _strlwr_l(char *, _locale_t); }
#line 138 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl strncat_s(char *, rsize_t, const char *, rsize_t); }
#line 140 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl strncat_s ( char ( & _Dest ) [ _Size ], const char * _Source, size_t _Count ) { return strncat_s ( _Dest, _Size, _Source, _Count ); }
#pragma warning(push)
#pragma warning(disable:6059)
#line 144 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl strncat(char *, const char *, size_t); }
#pragma warning(pop)
#line 149 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl strncmp(const char *, const char *, size_t); }
#line 151 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _strnicmp(const char *, const char *, size_t); }
#line 152 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _strnicmp_l(const char *, const char *, size_t, _locale_t); }
#line 154 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl strncpy_s(char *, rsize_t, const char *, rsize_t); }
#line 156 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl strncpy_s ( char ( & _Dest ) [ _Size ], const char * _Source, size_t _Count ) { return strncpy_s ( _Dest, _Size, _Source, _Count ); }
#line 157 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl strncpy(char *, const char *, size_t); }
#line 158 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl _strnset_s(char *, size_t, int, size_t); }
#line 159 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl _strnset_s ( char ( & _Dest ) [ _Size ], int _Val, size_t _Count ) { return _strnset_s ( _Dest, _Size, _Val, _Count ); }
#line 160 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl _strnset(char *, int, size_t); }
#line 161 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { const char *__cdecl strpbrk(const char *, const char *); }
#line 162 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { const char *__cdecl strrchr(const char *, int); }
#line 163 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl _strrev(char *); }
#line 164 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { size_t __cdecl strspn(const char *, const char *); }
#line 165 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { const char *__cdecl strstr(const char *, const char *); }
#line 166 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl strtok(char *, const char *); }
#line 168 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl strtok_s(char *, const char *, char **); }
#line 170 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl _strupr_s(char *, size_t); }
#line 171 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl _strupr_s ( char ( & _String ) [ _Size ] ) { return _strupr_s ( _String, _Size ); }
#line 172 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl _strupr(char *); }
#line 173 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl _strupr_s_l(char *, size_t, _locale_t); }
#line 174 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl _strupr_s_l ( char ( & _String ) [ _Size ], _locale_t _Locale ) { return _strupr_s_l ( _String, _Size, _Locale ); }
#line 175 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl _strupr_l(char *, _locale_t); }
#line 176 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { size_t __cdecl strxfrm(char *, const char *, size_t); }
#line 177 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { size_t __cdecl _strxfrm_l(char *, const char *, size_t, _locale_t); }
#line 183 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
inline char *__cdecl strchr(char *_Str, int _Ch)
#line 184 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
{ return (char *)strchr((const char *)_Str, _Ch); }
#line 185 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
inline char *__cdecl strpbrk(char *_Str, const char *_Control)
#line 186 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
{ return (char *)strpbrk((const char *)_Str, _Control); }
#line 187 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
inline char *__cdecl strrchr(char *_Str, int _Ch)
#line 188 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
{ return (char *)strrchr((const char *)_Str, _Ch); }
#line 189 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
inline char *__cdecl strstr(char *_Str, const char *_SubStr)
#line 190 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
{ return (char *)strstr((const char *)_Str, _SubStr); }
#line 194 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
inline void *__cdecl memchr(void *_Pv, int _C, size_t _N)
#line 195 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
{ return (void *)memchr((const void *)_Pv, _C, _N); }
#line 207 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl strdup(const char *); }
#line 214 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl strcmpi(const char *, const char *); }
#line 215 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl stricmp(const char *, const char *); }
#line 216 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl strlwr(char *); }
#line 217 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl strnicmp(const char *, const char *, size_t); }
#line 218 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl strnset(char *, int, size_t); }
#line 219 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl strrev(char *); }
#line 220 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl strset(char *, int); }
#line 221 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { char *__cdecl strupr(char *); }
#line 235 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl _wcsdup(const __wchar_t *); }
#line 242 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl wcscat_s(__wchar_t *, rsize_t, const __wchar_t *); }
#line 244 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl wcscat_s ( wchar_t ( & _Dest ) [ _Size ], const wchar_t * _Source ) { return wcscat_s ( _Dest, _Size, _Source ); }
#line 245 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl wcscat(__wchar_t *, const __wchar_t *); }
#line 246 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { const __wchar_t *__cdecl wcschr(const __wchar_t *, __wchar_t); }
#line 247 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl wcscmp(const __wchar_t *, const __wchar_t *); }
#line 249 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl wcscpy_s(__wchar_t *, rsize_t, const __wchar_t *); }
#line 251 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl wcscpy_s ( wchar_t ( & _Dest ) [ _Size ], const wchar_t * _Source ) { return wcscpy_s ( _Dest, _Size, _Source ); }
#line 252 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl wcscpy(__wchar_t *, const __wchar_t *); }
#line 253 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { size_t __cdecl wcscspn(const __wchar_t *, const __wchar_t *); }
#line 254 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { size_t __cdecl wcslen(const __wchar_t *); }
#line 255 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { size_t __cdecl wcsnlen(const __wchar_t *, size_t); }
#line 257 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { static __inline size_t __cdecl wcsnlen_s(const __wchar_t *_Src, size_t _MaxCount)
#line 258 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
{
#line 259 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
return (_Src == (0)) ? (0) : wcsnlen(_Src, _MaxCount);
#line 260 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
} }
#line 263 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl wcsncat_s(__wchar_t *, rsize_t, const __wchar_t *, rsize_t); }
#line 265 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl wcsncat_s ( wchar_t ( & _Dest ) [ _Size ], const wchar_t * _Source, size_t _Count ) { return wcsncat_s ( _Dest, _Size, _Source, _Count ); }
#pragma warning(push)
#pragma warning(disable:6059)
extern "C" { __wchar_t *__cdecl wcsncat(__wchar_t *, const __wchar_t *, size_t); }
#pragma warning(pop)
extern "C" { int __cdecl wcsncmp(const __wchar_t *, const __wchar_t *, size_t); }
#line 272 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl wcsncpy_s(__wchar_t *, rsize_t, const __wchar_t *, rsize_t); }
#line 274 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl wcsncpy_s ( wchar_t ( & _Dest ) [ _Size ], const wchar_t * _Source, size_t _Count ) { return wcsncpy_s ( _Dest, _Size, _Source, _Count ); }
#line 275 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl wcsncpy(__wchar_t *, const __wchar_t *, size_t); }
#line 276 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { const __wchar_t *__cdecl wcspbrk(const __wchar_t *, const __wchar_t *); }
#line 277 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { const __wchar_t *__cdecl wcsrchr(const __wchar_t *, __wchar_t); }
#line 278 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { size_t __cdecl wcsspn(const __wchar_t *, const __wchar_t *); }
#line 279 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { const __wchar_t *__cdecl wcsstr(const __wchar_t *, const __wchar_t *); }
#line 280 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl wcstok(__wchar_t *, const __wchar_t *); }
#line 282 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl wcstok_s(__wchar_t *, const __wchar_t *, __wchar_t **); }
#line 284 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl _wcserror(int); }
#line 285 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl _wcserror_s(__wchar_t *, size_t, int); }
#line 286 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl _wcserror_s ( wchar_t ( & _Buffer ) [ _Size ], int _Error ) { return _wcserror_s ( _Buffer, _Size, _Error ); }
#line 287 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl __wcserror(const __wchar_t *); }
#line 288 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl __wcserror_s(__wchar_t *, size_t, const __wchar_t *); }
#line 289 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl __wcserror_s ( wchar_t ( & _Buffer ) [ _Size ], const wchar_t * _ErrorMessage ) { return __wcserror_s ( _Buffer, _Size, _ErrorMessage ); }
#line 291 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _wcsicmp(const __wchar_t *, const __wchar_t *); }
#line 292 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _wcsicmp_l(const __wchar_t *, const __wchar_t *, _locale_t); }
#line 293 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _wcsnicmp(const __wchar_t *, const __wchar_t *, size_t); }
#line 294 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _wcsnicmp_l(const __wchar_t *, const __wchar_t *, size_t, _locale_t); }
#line 295 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl _wcsnset_s(__wchar_t *, size_t, __wchar_t, size_t); }
#line 296 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl _wcsnset_s ( wchar_t ( & _Dst ) [ _Size ], wchar_t _Val, size_t _MaxCount ) { return _wcsnset_s ( _Dst, _Size, _Val, _MaxCount ); }
#line 297 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl _wcsnset(__wchar_t *, __wchar_t, size_t); }
#line 298 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl _wcsrev(__wchar_t *); }
#line 299 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl _wcsset_s(__wchar_t *, size_t, __wchar_t); }
#line 300 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl _wcsset_s ( wchar_t ( & _Str ) [ _Size ], wchar_t _Val ) { return _wcsset_s ( _Str, _Size, _Val ); }
#line 301 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl _wcsset(__wchar_t *, __wchar_t); }
#line 303 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl _wcslwr_s(__wchar_t *, size_t); }
#line 304 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl _wcslwr_s ( wchar_t ( & _String ) [ _Size ] ) { return _wcslwr_s ( _String, _Size ); }
#line 305 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl _wcslwr(__wchar_t *); }
#line 306 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl _wcslwr_s_l(__wchar_t *, size_t, _locale_t); }
#line 307 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl _wcslwr_s_l ( wchar_t ( & _String ) [ _Size ], _locale_t _Locale ) { return _wcslwr_s_l ( _String, _Size, _Locale ); }
#line 308 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl _wcslwr_l(__wchar_t *, _locale_t); }
#line 309 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl _wcsupr_s(__wchar_t *, size_t); }
#line 310 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl _wcsupr_s ( wchar_t ( & _String ) [ _Size ] ) { return _wcsupr_s ( _String, _Size ); }
#line 311 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl _wcsupr(__wchar_t *); }
#line 312 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { errno_t __cdecl _wcsupr_s_l(__wchar_t *, size_t, _locale_t); }
#line 313 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
template < size_t _Size > inline errno_t __cdecl _wcsupr_s_l ( wchar_t ( & _String ) [ _Size ], _locale_t _Locale ) { return _wcsupr_s_l ( _String, _Size, _Locale ); }
#line 314 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl _wcsupr_l(__wchar_t *, _locale_t); }
#line 315 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { size_t __cdecl wcsxfrm(__wchar_t *, const __wchar_t *, size_t); }
#line 316 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { size_t __cdecl _wcsxfrm_l(__wchar_t *, const __wchar_t *, size_t, _locale_t); }
#line 317 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl wcscoll(const __wchar_t *, const __wchar_t *); }
#line 318 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _wcscoll_l(const __wchar_t *, const __wchar_t *, _locale_t); }
#line 319 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _wcsicoll(const __wchar_t *, const __wchar_t *); }
#line 320 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _wcsicoll_l(const __wchar_t *, const __wchar_t *, _locale_t); }
#line 321 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _wcsncoll(const __wchar_t *, const __wchar_t *, size_t); }
#line 322 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _wcsncoll_l(const __wchar_t *, const __wchar_t *, size_t, _locale_t); }
#line 323 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _wcsnicoll(const __wchar_t *, const __wchar_t *, size_t); }
#line 324 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl _wcsnicoll_l(const __wchar_t *, const __wchar_t *, size_t, _locale_t); }
#line 330 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
inline __wchar_t *__cdecl wcschr(__wchar_t *_Str, __wchar_t _Ch)
#line 331 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
{ return (__wchar_t *)wcschr((const __wchar_t *)_Str, _Ch); }
#line 332 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
inline __wchar_t *__cdecl wcspbrk(__wchar_t *_Str, const __wchar_t *_Control)
#line 333 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
{ return (__wchar_t *)wcspbrk((const __wchar_t *)_Str, _Control); }
#line 334 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
inline __wchar_t *__cdecl wcsrchr(__wchar_t *_Str, __wchar_t _Ch)
#line 335 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
{ return (__wchar_t *)wcsrchr((const __wchar_t *)_Str, _Ch); }
#line 336 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
inline __wchar_t *__cdecl wcsstr(__wchar_t *_Str, const __wchar_t *_SubStr)
#line 337 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
{ return (__wchar_t *)wcsstr((const __wchar_t *)_Str, _SubStr); }
#line 349 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl wcsdup(const __wchar_t *); }
#line 359 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl wcsicmp(const __wchar_t *, const __wchar_t *); }
#line 360 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl wcsnicmp(const __wchar_t *, const __wchar_t *, size_t); }
#line 361 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl wcsnset(__wchar_t *, __wchar_t, size_t); }
#line 362 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl wcsrev(__wchar_t *); }
#line 363 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl wcsset(__wchar_t *, __wchar_t); }
#line 364 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl wcslwr(__wchar_t *); }
#line 365 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { __wchar_t *__cdecl wcsupr(__wchar_t *); }
#line 366 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\string.h"
extern "C" { int __cdecl wcsicoll(const __wchar_t *, const __wchar_t *); }
#line 35 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
#pragma pack ( push, 8 )
#line 93 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { typedef long clock_t; }
#line 117 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { struct tm {
#line 118 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
int tm_sec;
#line 119 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
int tm_min;
#line 120 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
int tm_hour;
#line 121 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
int tm_mday;
#line 122 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
int tm_mon;
#line 123 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
int tm_year;
#line 124 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
int tm_wday;
#line 125 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
int tm_yday;
#line 126 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
int tm_isdst;
#line 127 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
}; }
#line 142 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { int *__cdecl __daylight(); }
#line 146 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { long *__cdecl __dstbias(); }
#line 150 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { long *__cdecl __timezone(); }
#line 154 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { char **__cdecl __tzname(); }
#line 157 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _get_daylight(int *); }
#line 158 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _get_dstbias(long *); }
#line 159 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _get_timezone(long *); }
#line 160 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _get_tzname(size_t *, char *, size_t, int); }
#line 164 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { char *__cdecl asctime(const tm *); }
#line 166 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl asctime_s(char *, size_t, const tm *); }
#line 168 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
template < size_t _Size > inline errno_t __cdecl asctime_s ( char ( & _Buffer ) [ _Size ], const struct tm * _Time ) { return asctime_s ( _Buffer, _Size, _Time ); }
#line 170 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { char *__cdecl _ctime32(const __time32_t *); }
#line 171 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _ctime32_s(char *, size_t, const __time32_t *); }
#line 172 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
template < size_t _Size > inline errno_t __cdecl _ctime32_s ( char ( & _Buffer ) [ _Size ], const __time32_t * _Time ) { return _ctime32_s ( _Buffer, _Size, _Time ); }
#line 174 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { clock_t __cdecl clock(); }
#line 175 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { double __cdecl _difftime32(__time32_t, __time32_t); }
#line 177 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { tm *__cdecl _gmtime32(const __time32_t *); }
#line 178 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _gmtime32_s(tm *, const __time32_t *); }
#line 180 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { tm *__cdecl _localtime32(const __time32_t *); }
#line 181 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _localtime32_s(tm *, const __time32_t *); }
#line 183 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { size_t __cdecl strftime(char *, size_t, const char *, const tm *); }
#line 184 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { size_t __cdecl _strftime_l(char *, size_t, const char *, const tm *, _locale_t); }
#line 186 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _strdate_s(char *, size_t); }
#line 187 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
template < size_t _Size > inline errno_t __cdecl _strdate_s ( char ( & _Buffer ) [ _Size ] ) { return _strdate_s ( _Buffer, _Size ); }
#line 188 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { char *__cdecl _strdate(char *); }
#line 190 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _strtime_s(char *, size_t); }
#line 191 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
template < size_t _Size > inline errno_t __cdecl _strtime_s ( char ( & _Buffer ) [ _Size ] ) { return _strtime_s ( _Buffer, _Size ); }
#line 192 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { char *__cdecl _strtime(char *); }
#line 194 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { __time32_t __cdecl _time32(__time32_t *); }
#line 195 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { __time32_t __cdecl _mktime32(tm *); }
#line 196 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { __time32_t __cdecl _mkgmtime32(tm *); }
#line 201 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { void __cdecl _tzset(); }
#line 204 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { double __cdecl _difftime64(__time64_t, __time64_t); }
#line 205 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { char *__cdecl _ctime64(const __time64_t *); }
#line 206 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _ctime64_s(char *, size_t, const __time64_t *); }
#line 207 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
template < size_t _Size > inline errno_t __cdecl _ctime64_s ( char ( & _Buffer ) [ _Size ], const __time64_t * _Time ) { return _ctime64_s ( _Buffer, _Size, _Time ); }
#line 209 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { tm *__cdecl _gmtime64(const __time64_t *); }
#line 210 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _gmtime64_s(tm *, const __time64_t *); }
#line 212 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { tm *__cdecl _localtime64(const __time64_t *); }
#line 213 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _localtime64_s(tm *, const __time64_t *); }
#line 215 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { __time64_t __cdecl _mktime64(tm *); }
#line 216 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { __time64_t __cdecl _mkgmtime64(tm *); }
#line 217 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { __time64_t __cdecl _time64(__time64_t *); }
#line 220 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { __declspec(deprecated("This function or variable has been superceded by newer library or operating system functionality. Consider using GetLocalTime instead. See online help for details.")) unsigned __cdecl _getsystime(tm *); }
#line 221 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { __declspec(deprecated("This function or variable has been superceded by newer library or operating system functionality. Consider using SetLocalTime instead. See online help for details.")) unsigned __cdecl _setsystime(tm *, unsigned); }
#line 233 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { __wchar_t *__cdecl _wasctime(const tm *); }
#line 234 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _wasctime_s(__wchar_t *, size_t, const tm *); }
#line 235 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
template < size_t _Size > inline errno_t __cdecl _wasctime_s ( wchar_t ( & _Buffer ) [ _Size ], const struct tm * _Time ) { return _wasctime_s ( _Buffer, _Size, _Time ); }
#line 237 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { __wchar_t *__cdecl _wctime32(const __time32_t *); }
#line 238 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _wctime32_s(__wchar_t *, size_t, const __time32_t *); }
#line 239 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
template < size_t _Size > inline errno_t __cdecl _wctime32_s ( wchar_t ( & _Buffer ) [ _Size ], const __time32_t * _Time ) { return _wctime32_s ( _Buffer, _Size, _Time ); }
#line 241 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { size_t __cdecl wcsftime(__wchar_t *, size_t, const __wchar_t *, const tm *); }
#line 242 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { size_t __cdecl _wcsftime_l(__wchar_t *, size_t, const __wchar_t *, const tm *, _locale_t); }
#line 244 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _wstrdate_s(__wchar_t *, size_t); }
#line 245 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
template < size_t _Size > inline errno_t __cdecl _wstrdate_s ( wchar_t ( & _Buffer ) [ _Size ] ) { return _wstrdate_s ( _Buffer, _Size ); }
#line 246 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { __wchar_t *__cdecl _wstrdate(__wchar_t *); }
#line 248 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _wstrtime_s(__wchar_t *, size_t); }
#line 249 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
template < size_t _Size > inline errno_t __cdecl _wstrtime_s ( wchar_t ( & _Buffer ) [ _Size ] ) { return _wstrtime_s ( _Buffer, _Size ); }
#line 250 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { __wchar_t *__cdecl _wstrtime(__wchar_t *); }
#line 252 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { __wchar_t *__cdecl _wctime64(const __time64_t *); }
#line 253 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { errno_t __cdecl _wctime64_s(__wchar_t *, size_t, const __time64_t *); }
#line 254 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
template < size_t _Size > inline errno_t __cdecl _wctime64_s ( wchar_t ( & _Buffer ) [ _Size ], const __time64_t * _Time ) { return _wctime64_s ( _Buffer, _Size, _Time ); }
#line 29 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\wtime.inl"
#pragma warning(push)
#pragma warning(disable:4996)
#line 46 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\wtime.inl"
extern "C" { static __inline __wchar_t *__cdecl _wctime(const time_t *_Time)
#line 47 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\wtime.inl"
{
#pragma warning( push )
#pragma warning( disable : 4996 )
return _wctime64(_Time);
#pragma warning( pop )
} }
#line 54 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\wtime.inl"
extern "C" { static __inline errno_t __cdecl _wctime_s(__wchar_t *_Buffer, size_t _SizeInWords, const time_t *_Time)
#line 55 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\wtime.inl"
{
#line 56 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\wtime.inl"
return _wctime64_s(_Buffer, _SizeInWords, _Time);
#line 57 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\wtime.inl"
} }
#line 60 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\wtime.inl"
#pragma warning(pop)
#line 84 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
extern "C" { static __inline double __cdecl difftime(time_t _Time1, time_t _Time2)
#line 85 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
{
#line 86 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
return _difftime64(_Time1, _Time2);
#line 87 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
} }
#line 88 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
extern "C" { static __inline char *__cdecl ctime(const time_t *_Time)
#line 89 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
{
#pragma warning( push )
#pragma warning( disable : 4996 )
return _ctime64(_Time);
#pragma warning( pop )
} }
#line 96 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
extern "C" { static __inline errno_t __cdecl ctime_s(char *_Buffer, size_t _SizeInBytes, const time_t *_Time)
#line 97 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
{
#line 98 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
return _ctime64_s(_Buffer, _SizeInBytes, _Time);
#line 99 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
} }
#line 101 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
extern "C" { static __inline tm *__cdecl gmtime(const time_t *_Time)
#line 102 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
{
#pragma warning( push )
#pragma warning( disable : 4996 )
return _gmtime64(_Time);
#pragma warning( pop )
} }
#line 109 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
extern "C" { static __inline errno_t __cdecl gmtime_s(tm *_Tm, const time_t *_Time)
#line 110 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
{
#line 111 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
return _gmtime64_s(_Tm, _Time);
#line 112 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
} }
#line 114 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
extern "C" { static __inline tm *__cdecl localtime(const time_t *_Time)
#line 115 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
{
#pragma warning( push )
#pragma warning( disable : 4996 )
return _localtime64(_Time);
#pragma warning( pop )
} }
#line 121 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
extern "C" { static __inline errno_t __cdecl localtime_s(tm *_Tm, const time_t *_Time)
#line 122 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
{
#line 123 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
return _localtime64_s(_Tm, _Time);
#line 124 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
} }
#line 125 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
extern "C" { static __inline time_t __cdecl mktime(tm *_Tm)
#line 126 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
{
#line 127 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
return _mktime64(_Tm);
#line 128 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
} }
#line 129 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
extern "C" { static __inline time_t __cdecl _mkgmtime(tm *_Tm)
#line 130 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
{
#line 131 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
return _mkgmtime64(_Tm);
#line 132 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
} }
#line 133 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
extern "C" { static __inline time_t __cdecl time(time_t *_Time)
#line 134 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
{
#line 135 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
return _time64(_Time);
#line 136 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.inl"
} }
#line 279 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" int daylight;
#line 280 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" long timezone;
#line 281 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" char *tzname[2];
#line 284 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
extern "C" { void __cdecl tzset(); }
#line 294 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\time.h"
#pragma pack ( pop )
#line 57 "c:\\cuda\\include\\common_functions.h"
extern "C" { extern clock_t __cdecl clock(); }
#line 59 "c:\\cuda\\include\\common_functions.h"
extern "C" { extern void *__cdecl memset(void *, int, size_t); }
#line 61 "c:\\cuda\\include\\common_functions.h"
extern "C" { extern void *__cdecl memcpy(void *, const void *, size_t); }
#line 66 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern int __cdecl abs(int); }
#line 68 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern long __cdecl labs(long); }
#line 70 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern __int64 llabs(__int64); }
#line 72 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl fabs(double); }
#line 74 "c:\\cuda\\include\\math_functions.h"
extern "C" { inline float fabsf(float); }
#line 77 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern int min(int, int); }
#line 79 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern unsigned umin(unsigned, unsigned); }
#line 81 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern __int64 llmin(__int64, __int64); }
#line 83 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern unsigned __int64 ullmin(unsigned __int64, unsigned __int64); }
#line 85 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float fminf(float, float); }
#line 87 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double fmin(double, double); }
#line 90 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern int max(int, int); }
#line 92 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern unsigned umax(unsigned, unsigned); }
#line 94 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern __int64 llmax(__int64, __int64); }
#line 96 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern unsigned __int64 ullmax(unsigned __int64, unsigned __int64); }
#line 98 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float fmaxf(float, float); }
#line 100 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double fmax(double, double); }
#line 103 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl sin(double); }
#line 105 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float sinf(float); }
#line 108 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl cos(double); }
#line 110 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float cosf(float); }
#line 113 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern void sincos(double, double *, double *); }
#line 115 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern void sincosf(float, float *, float *); }
#line 118 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl tan(double); }
#line 120 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float tanf(float); }
#line 123 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl sqrt(double); }
#line 125 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float sqrtf(float); }
#line 128 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double rsqrt(double); }
#line 130 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float rsqrtf(float); }
#line 133 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double exp2(double); }
#line 135 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float exp2f(float); }
#line 138 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double exp10(double); }
#line 140 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float exp10f(float); }
#line 143 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double expm1(double); }
#line 145 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float expm1f(float); }
#line 148 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double log2(double); }
#line 150 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float log2f(float); }
#line 153 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl log10(double); }
#line 155 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float log10f(float); }
#line 158 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl log(double); }
#line 160 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float logf(float); }
#line 163 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double log1p(double); }
#line 165 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float log1pf(float); }
#line 168 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl floor(double); }
#line 170 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float floorf(float); }
#line 173 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl exp(double); }
#line 175 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float expf(float); }
#line 178 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl cosh(double); }
#line 180 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float coshf(float); }
#line 183 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl sinh(double); }
#line 185 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float sinhf(float); }
#line 188 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl tanh(double); }
#line 190 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float tanhf(float); }
#line 193 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double acosh(double); }
#line 195 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float acoshf(float); }
#line 198 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double asinh(double); }
#line 200 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float asinhf(float); }
#line 203 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double atanh(double); }
#line 205 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float atanhf(float); }
#line 208 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl ldexp(double, int); }
#line 210 "c:\\cuda\\include\\math_functions.h"
extern "C" { inline float ldexpf(float, int); }
#line 213 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double logb(double); }
#line 215 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float logbf(float); }
#line 218 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern int ilogb(double); }
#line 220 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern int ilogbf(float); }
#line 223 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double scalbn(double, int); }
#line 225 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float scalbnf(float, int); }
#line 228 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double scalbln(double, long); }
#line 230 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float scalblnf(float, long); }
#line 233 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl frexp(double, int *); }
#line 235 "c:\\cuda\\include\\math_functions.h"
extern "C" { inline float frexpf(float, int *); }
#line 238 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double round(double); }
#line 240 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float roundf(float); }
#line 243 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern long lround(double); }
#line 245 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern long lroundf(float); }
#line 248 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern __int64 llround(double); }
#line 250 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern __int64 llroundf(float); }
#line 253 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double rint(double); }
#line 255 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float rintf(float); }
#line 258 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern long lrint(double); }
#line 260 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern long lrintf(float); }
#line 263 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern __int64 llrint(double); }
#line 265 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern __int64 llrintf(float); }
#line 268 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double nearbyint(double); }
#line 270 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float nearbyintf(float); }
#line 273 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl ceil(double); }
#line 275 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float ceilf(float); }
#line 278 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double trunc(double); }
#line 280 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float truncf(float); }
#line 283 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double fdim(double, double); }
#line 285 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float fdimf(float, float); }
#line 288 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl atan2(double, double); }
#line 290 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float atan2f(float, float); }
#line 293 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl atan(double); }
#line 295 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float atanf(float); }
#line 298 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl asin(double); }
#line 300 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float asinf(float); }
#line 303 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl acos(double); }
#line 305 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float acosf(float); }
#line 308 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl hypot(double, double); }
#line 310 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float hypotf(float, float); }
#line 313 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double cbrt(double); }
#line 315 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float cbrtf(float); }
#line 318 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double rcbrt(double); }
#line 320 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float rcbrtf(float); }
#line 323 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double sinpi(double); }
#line 325 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float sinpif(float); }
#line 328 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl pow(double, double); }
#line 330 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float powf(float, float); }
#line 333 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl modf(double, double *); }
#line 335 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float modff(float, float *); }
#line 338 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double __cdecl fmod(double, double); }
#line 340 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float fmodf(float, float); }
#line 343 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double remainder(double, double); }
#line 345 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float remainderf(float, float); }
#line 348 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double remquo(double, double, int *); }
#line 350 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float remquof(float, float, int *); }
#line 353 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double erf(double); }
#line 355 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float erff(float); }
#line 358 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double erfinv(double); }
#line 360 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float erfinvf(float); }
#line 363 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double erfc(double); }
#line 365 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float erfcf(float); }
#line 368 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double erfcinv(double); }
#line 370 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float erfcinvf(float); }
#line 373 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double lgamma(double); }
#line 375 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float lgammaf(float); }
#line 378 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double tgamma(double); }
#line 380 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float tgammaf(float); }
#line 383 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double copysign(double, double); }
#line 385 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float copysignf(float, float); }
#line 388 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double nextafter(double, double); }
#line 390 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float nextafterf(float, float); }
#line 393 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double nan(const char *); }
#line 395 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float nanf(const char *); }
#line 398 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern int __isinf(double); }
#line 400 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern int __isinff(float); }
#line 403 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern int __isnan(double); }
#line 405 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern int __isnanf(float); }
#line 419 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern int __finite(double); }
#line 421 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern int __finitef(float); }
#line 423 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern int __signbit(double); }
#line 428 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern int __signbitf(float); }
#line 431 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern double fma(double, double, double); }
#line 433 "c:\\cuda\\include\\math_functions.h"
extern "C" { extern float fmaf(float, float, float); }
#line 25 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
#pragma pack ( push, 8 )
#line 39 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { struct _exception {
#line 40 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
int type;
#line 41 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
char *name;
#line 42 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
double arg1;
#line 43 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
double arg2;
#line 44 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
double retval;
#line 45 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
}; }
#line 56 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { struct _complex {
#line 57 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
double x, y;
#line 58 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
}; }
#line 90 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" double _HUGE;
#line 103 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { int __cdecl abs(int); }
#line 104 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { long __cdecl labs(long); }
#line 107 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl acos(double); }
#line 108 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl asin(double); }
#line 109 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl atan(double); }
#line 110 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl atan2(double, double); }
#line 112 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl _copysign(double, double); }
#line 113 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl _chgsign(double); }
#line 116 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl cos(double); }
#line 117 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl cosh(double); }
#line 118 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl exp(double); }
#line 119 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl fabs(double); }
#line 120 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl fmod(double, double); }
#line 121 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl log(double); }
#line 122 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl log10(double); }
#line 123 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl pow(double, double); }
#line 124 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl sin(double); }
#line 125 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl sinh(double); }
#line 126 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl tan(double); }
#line 127 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl tanh(double); }
#line 128 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl sqrt(double); }
#line 131 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl atof(const char *); }
#line 132 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl _atof_l(const char *, _locale_t); }
#line 135 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl _cabs(_complex); }
#line 136 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl ceil(double); }
#line 137 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl floor(double); }
#line 138 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl frexp(double, int *); }
#line 139 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl _hypot(double, double); }
#line 140 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl _j0(double); }
#line 141 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl _j1(double); }
#line 142 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl _jn(int, double); }
#line 143 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl ldexp(double, int); }
#line 149 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { int __cdecl _matherr(_exception *); }
#line 152 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl modf(double, double *); }
#line 154 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl _y0(double); }
#line 155 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl _y1(double); }
#line 156 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl _yn(int, double); }
#line 212 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl acosf(float); }
#line 213 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl asinf(float); }
#line 214 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl atanf(float); }
#line 215 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl atan2f(float, float); }
#line 216 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl cosf(float); }
#line 217 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl sinf(float); }
#line 218 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl tanf(float); }
#line 221 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl coshf(float); }
#line 222 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl sinhf(float); }
#line 223 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl tanhf(float); }
#line 226 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl expf(float); }
#line 227 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl logf(float); }
#line 228 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl log10f(float); }
#line 229 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl modff(float, float *); }
#line 232 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl powf(float, float); }
#line 233 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl sqrtf(float); }
#line 236 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl ceilf(float); }
#line 237 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl floorf(float); }
#line 238 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl fmodf(float, float); }
#line 240 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl _hypotf(float, float); }
#line 242 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl _copysignf(float, float); }
#line 243 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl _chgsignf(float); }
#line 244 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl _logbf(float); }
#line 245 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { float __cdecl _nextafterf(float, float); }
#line 246 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { int __cdecl _finitef(float); }
#line 247 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { int __cdecl _isnanf(float); }
#line 248 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { int __cdecl _fpclassf(float); }
#line 317 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double acosl(long double _X)
#line 318 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return acos((double)_X); } }
#line 319 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double asinl(long double _X)
#line 320 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return asin((double)_X); } }
#line 321 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double atanl(long double _X)
#line 322 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return atan((double)_X); } }
#line 323 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double atan2l(long double _Y, long double _X)
#line 324 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return atan2((double)_Y, (double)_X); } }
#line 325 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double ceill(long double _X)
#line 326 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return ceil((double)_X); } }
#line 327 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double cosl(long double _X)
#line 328 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return cos((double)_X); } }
#line 329 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double coshl(long double _X)
#line 330 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return cosh((double)_X); } }
#line 331 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double expl(long double _X)
#line 332 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return exp((double)_X); } }
#line 333 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double fabsl(long double _X)
#line 334 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return fabs((double)_X); } }
#line 335 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double floorl(long double _X)
#line 336 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return floor((double)_X); } }
#line 337 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double fmodl(long double _X, long double _Y)
#line 338 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return fmod((double)_X, (double)_Y); } }
#line 339 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double frexpl(long double _X, int *_Y)
#line 340 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return frexp((double)_X, _Y); } }
#line 341 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double ldexpl(long double _X, int _Y)
#line 342 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return ldexp((double)_X, _Y); } }
#line 343 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double logl(long double _X)
#line 344 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return log((double)_X); } }
#line 345 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double log10l(long double _X)
#line 346 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return log10((double)_X); } }
#line 347 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double modfl(long double _X, long double *_Y)
#line 348 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ double _Di, _Df = modf((double)_X, &_Di);
#line 349 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
(*_Y) = ((long double)_Di);
#line 350 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
return _Df; } }
#line 351 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double powl(long double _X, long double _Y)
#line 352 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return pow((double)_X, (double)_Y); } }
#line 353 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double sinl(long double _X)
#line 354 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return sin((double)_X); } }
#line 355 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double sinhl(long double _X)
#line 356 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return sinh((double)_X); } }
#line 357 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double sqrtl(long double _X)
#line 358 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return sqrt((double)_X); } }
#line 360 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double tanl(long double _X)
#line 361 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return tan((double)_X); } }
#line 366 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double tanhl(long double _X)
#line 367 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return tanh((double)_X); } }
#line 369 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double _chgsignl(long double _Number)
#line 370 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{
#line 371 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
return _chgsign(static_cast< double>(_Number));
#line 372 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
} }
#line 374 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline long double _copysignl(long double _Number, long double _Sign)
#line 375 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{
#line 376 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
return _copysign(static_cast< double>(_Number), static_cast< double>(_Sign));
#line 377 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
} }
#line 379 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline float frexpf(float _X, int *_Y)
#line 380 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return (float)frexp((double)_X, _Y); } }
#line 383 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline float fabsf(float _X)
#line 384 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return (float)fabs((double)_X); } }
#line 385 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { inline float ldexpf(float _X, int _Y)
#line 386 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return (float)ldexp((double)_X, _Y); } }
#line 449 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" double HUGE;
#line 454 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl cabs(_complex); }
#line 455 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl hypot(double, double); }
#line 456 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl j0(double); }
#line 457 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl j1(double); }
#line 458 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl jn(int, double); }
#line 459 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl y0(double); }
#line 460 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl y1(double); }
#line 461 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
extern "C" { double __cdecl yn(int, double); }
#line 472 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
template < class _Ty > inline
_Ty _Pow_int ( _Ty _X, int _Y )
{ unsigned int _N;
if ( _Y >= 0 )
_N = ( unsigned int ) _Y;
else
_N = ( unsigned int ) ( - _Y );
for ( _Ty _Z = _Ty ( 1 );; _X *= _X )
{ if ( ( _N & 1 ) != 0 )
_Z *= _X;
if ( ( _N >>= 1 ) == 0 )
return ( _Y < 0 ? _Ty ( 1 ) / _Z : _Z ); } }
#line 485 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long __cdecl abs(long _X)
#line 486 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return labs(_X); }
#line 487 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline double __cdecl abs(double _X)
#line 488 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return fabs(_X); }
#line 489 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline double __cdecl pow(double _X, int _Y)
#line 490 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return _Pow_int(_X, _Y); }
#line 491 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl abs(float _X)
#line 492 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return fabsf(_X); }
#line 493 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl acos(float _X)
#line 494 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return acosf(_X); }
#line 495 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl asin(float _X)
#line 496 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return asinf(_X); }
#line 497 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl atan(float _X)
#line 498 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return atanf(_X); }
#line 499 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl atan2(float _Y, float _X)
#line 500 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return atan2f(_Y, _X); }
#line 501 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl ceil(float _X)
#line 502 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return ceilf(_X); }
#line 503 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl cos(float _X)
#line 504 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return cosf(_X); }
#line 505 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl cosh(float _X)
#line 506 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return coshf(_X); }
#line 507 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl exp(float _X)
#line 508 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return expf(_X); }
#line 509 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl fabs(float _X)
#line 510 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return fabsf(_X); }
#line 511 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl floor(float _X)
#line 512 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return floorf(_X); }
#line 513 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl fmod(float _X, float _Y)
#line 514 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return fmodf(_X, _Y); }
#line 515 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl frexp(float _X, int *_Y)
#line 516 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return frexpf(_X, _Y); }
#line 517 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl ldexp(float _X, int _Y)
#line 518 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return ldexpf(_X, _Y); }
#line 519 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl log(float _X)
#line 520 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return logf(_X); }
#line 521 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl log10(float _X)
#line 522 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return log10f(_X); }
#line 523 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl modf(float _X, float *_Y)
#line 524 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return modff(_X, _Y); }
#line 525 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl pow(float _X, float _Y)
#line 526 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return powf(_X, _Y); }
#line 527 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl pow(float _X, int _Y)
#line 528 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return _Pow_int(_X, _Y); }
#line 529 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl sin(float _X)
#line 530 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return sinf(_X); }
#line 531 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl sinh(float _X)
#line 532 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return sinhf(_X); }
#line 533 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl sqrt(float _X)
#line 534 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return sqrtf(_X); }
#line 535 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl tan(float _X)
#line 536 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return tanf(_X); }
#line 537 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline float __cdecl tanh(float _X)
#line 538 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return tanhf(_X); }
#line 539 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl abs(long double _X)
#line 540 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return fabsl(_X); }
#line 541 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl acos(long double _X)
#line 542 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return acosl(_X); }
#line 543 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl asin(long double _X)
#line 544 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return asinl(_X); }
#line 545 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl atan(long double _X)
#line 546 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return atanl(_X); }
#line 547 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl atan2(long double _Y, long double _X)
#line 548 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return atan2l(_Y, _X); }
#line 549 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl ceil(long double _X)
#line 550 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return ceill(_X); }
#line 551 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl cos(long double _X)
#line 552 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return cosl(_X); }
#line 553 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl cosh(long double _X)
#line 554 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return coshl(_X); }
#line 555 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl exp(long double _X)
#line 556 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return expl(_X); }
#line 557 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl fabs(long double _X)
#line 558 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return fabsl(_X); }
#line 559 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl floor(long double _X)
#line 560 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return floorl(_X); }
#line 561 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl fmod(long double _X, long double _Y)
#line 562 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return fmodl(_X, _Y); }
#line 563 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl frexp(long double _X, int *_Y)
#line 564 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return frexpl(_X, _Y); }
#line 565 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl ldexp(long double _X, int _Y)
#line 566 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return ldexpl(_X, _Y); }
#line 567 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl log(long double _X)
#line 568 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return logl(_X); }
#line 569 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl log10(long double _X)
#line 570 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return log10l(_X); }
#line 571 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl modf(long double _X, long double *_Y)
#line 572 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return modfl(_X, _Y); }
#line 573 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl pow(long double _X, long double _Y)
#line 574 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return powl(_X, _Y); }
#line 575 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl pow(long double _X, int _Y)
#line 576 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return _Pow_int(_X, _Y); }
#line 577 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl sin(long double _X)
#line 578 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return sinl(_X); }
#line 579 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl sinh(long double _X)
#line 580 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return sinhl(_X); }
#line 581 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl sqrt(long double _X)
#line 582 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return sqrtl(_X); }
#line 583 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl tan(long double _X)
#line 584 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return tanl(_X); }
#line 585 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
inline long double __cdecl tanh(long double _X)
#line 586 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
{ return tanhl(_X); }
#line 592 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\math.h"
#pragma pack ( pop )
#line 31 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
#pragma pack ( push, 8 )
#line 56 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { typedef int (__cdecl *_onexit_t)(void); }
#line 82 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { typedef
#line 79 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
struct _div_t {
#line 80 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
int quot;
#line 81 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
int rem;
#line 82 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
} div_t; }
#line 87 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { typedef
#line 84 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
struct _ldiv_t {
#line 85 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
long quot;
#line 86 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
long rem;
#line 87 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
} ldiv_t; }
#line 101 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
#pragma pack ( 4 )
#line 104 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { typedef
#line 102 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
struct {
#line 103 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
unsigned char ld[10];
#line 104 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
} _LDOUBLE; }
#pragma pack ( )
#line 123 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { typedef
#line 121 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
struct {
#line 122 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
double x;
#line 123 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
} _CRT_DOUBLE; }
#line 127 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { typedef
#line 125 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
struct {
#line 126 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
float f;
#line 127 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
} _CRT_FLOAT; }
#line 138 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { typedef
#line 133 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
struct {
#line 137 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
long double x;
#line 138 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
} _LONGDOUBLE; }
#line 142 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
#pragma pack ( 4 )
#line 145 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { typedef
#line 143 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
struct {
#line 144 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
unsigned char ld12[12];
#line 145 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
} _LDBL12; }
#pragma pack ( )
#line 166 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" int __mb_cur_max;
#line 171 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl ___mb_cur_max_func(); }
#line 172 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl ___mb_cur_max_l_func(_locale_t); }
#line 211 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { typedef void (__cdecl *_purecall_handler)(void); }
#line 214 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { _purecall_handler __cdecl _set_purecall_handler(_purecall_handler); }
#line 215 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { _purecall_handler __cdecl _get_purecall_handler(); }
#line 239 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { typedef void (__cdecl *_invalid_parameter_handler)(const __wchar_t *, const __wchar_t *, const __wchar_t *, unsigned, uintptr_t); }
#line 242 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { _invalid_parameter_handler __cdecl _set_invalid_parameter_handler(_invalid_parameter_handler); }
#line 243 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { _invalid_parameter_handler __cdecl _get_invalid_parameter_handler(); }
#line 274 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned long *__cdecl __doserrno(); }
#line 277 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _set_doserrno(unsigned long); }
#line 278 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _get_doserrno(unsigned long *); }
#line 281 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char **__cdecl __sys_errlist(); }
#line 284 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int *__cdecl __sys_nerr(); }
#line 301 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" int __argc;
#line 302 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" char **__argv;
#line 303 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" __wchar_t **__wargv;
#line 317 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" char **_environ;
#line 318 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" __wchar_t **_wenviron;
#line 321 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" char *_pgmptr;
#line 322 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" __wchar_t *_wpgmptr;
#line 339 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _get_pgmptr(char **); }
#line 340 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _get_wpgmptr(__wchar_t **); }
#line 344 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" int _fmode;
#line 350 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _set_fmode(int); }
#line 351 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _get_fmode(int *); }
#line 360 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template<class _CountofType, size_t _SizeOfArray> char (*__countof_helper(__unaligned _CountofType (&)[_SizeOfArray]))[_SizeOfArray];
#line 371 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec( noreturn ) void __cdecl exit(int); }
#line 372 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec( noreturn ) void __cdecl _exit(int); }
#line 373 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void __cdecl abort(); }
#line 376 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned __cdecl _set_abort_behavior(unsigned, unsigned); }
#line 384 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __int64 __cdecl _abs64(__int64); }
#line 412 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl atexit(void (__cdecl *)(void)); }
#line 419 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl atoi(const char *); }
#line 420 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl _atoi_l(const char *, _locale_t); }
#line 421 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { long __cdecl atol(const char *); }
#line 422 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { long __cdecl _atol_l(const char *, _locale_t); }
#line 426 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void *__cdecl bsearch_s(const void *, const void *, rsize_t, rsize_t, int (__cdecl *)(void *, const void *, const void *), void *); }
#line 430 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void *__cdecl bsearch(const void *, const void *, size_t, size_t, int (__cdecl *)(const void *, const void *)); }
#line 435 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void __cdecl qsort_s(void *, rsize_t, rsize_t, int (__cdecl *)(void *, const void *, const void *), void *); }
#line 439 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void __cdecl qsort(void *, size_t, size_t, int (__cdecl *)(const void *, const void *)); }
#line 443 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned short __cdecl _byteswap_ushort(unsigned short); }
#line 444 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned long __cdecl _byteswap_ulong(unsigned long); }
#line 445 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned __int64 __cdecl _byteswap_uint64(unsigned __int64); }
#line 446 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { div_t __cdecl div(int, int); }
#line 447 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char *__cdecl getenv(const char *); }
#line 449 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl getenv_s(size_t *, char *, rsize_t, const char *); }
#line 451 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl getenv_s ( size_t * _ReturnSize, char ( & _Dest ) [ _Size ], const char * _VarName ) { return getenv_s ( _ReturnSize, _Dest, _Size, _VarName ); }
#line 457 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _dupenv_s(char **, size_t *, const char *); }
#line 463 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _itoa_s(int, char *, size_t, int); }
#line 464 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _itoa_s ( int _Value, char ( & _Dest ) [ _Size ], int _Radix ) { return _itoa_s ( _Value, _Dest, _Size, _Radix ); }
#line 465 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char *__cdecl _itoa(int, char *, int); }
#line 466 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _i64toa_s(__int64, char *, size_t, int); }
#line 467 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char *__cdecl _i64toa(__int64, char *, int); }
#line 468 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _ui64toa_s(unsigned __int64, char *, size_t, int); }
#line 469 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char *__cdecl _ui64toa(unsigned __int64, char *, int); }
#line 470 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __int64 __cdecl _atoi64(const char *); }
#line 471 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __int64 __cdecl _atoi64_l(const char *, _locale_t); }
#line 472 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __int64 __cdecl _strtoi64(const char *, char **, int); }
#line 473 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __int64 __cdecl _strtoi64_l(const char *, char **, int, _locale_t); }
#line 474 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned __int64 __cdecl _strtoui64(const char *, char **, int); }
#line 475 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned __int64 __cdecl _strtoui64_l(const char *, char **, int, _locale_t); }
#line 476 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { ldiv_t __cdecl ldiv(long, long); }
#line 480 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
inline ldiv_t div(long _A1, long _A2)
#line 481 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
{
#line 482 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
return ldiv(_A1, _A2);
#line 483 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
}
#line 486 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _ltoa_s(long, char *, size_t, int); }
#line 487 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _ltoa_s ( long _Value, char ( & _Dest ) [ _Size ], int _Radix ) { return _ltoa_s ( _Value, _Dest, _Size, _Radix ); }
#line 488 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char *__cdecl _ltoa(long, char *, int); }
#line 489 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl mblen(const char *, size_t); }
#line 490 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl _mblen_l(const char *, size_t, _locale_t); }
#line 491 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { size_t __cdecl _mbstrlen(const char *); }
#line 492 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { size_t __cdecl _mbstrlen_l(const char *, _locale_t); }
#line 493 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { size_t __cdecl _mbstrnlen(const char *, size_t); }
#line 494 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { size_t __cdecl _mbstrnlen_l(const char *, size_t, _locale_t); }
#line 495 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl mbtowc(__wchar_t *, const char *, size_t); }
#line 496 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl _mbtowc_l(__wchar_t *, const char *, size_t, _locale_t); }
#line 497 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl mbstowcs_s(size_t *, __wchar_t *, size_t, const char *, size_t); }
#line 498 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl mbstowcs_s ( size_t * _PtNumOfCharConverted, wchar_t ( & _Dest ) [ _Size ], const char * _Source, size_t _MaxCount ) { return mbstowcs_s ( _PtNumOfCharConverted, _Dest, _Size, _Source, _MaxCount ); }
#line 499 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { size_t __cdecl mbstowcs(__wchar_t *, const char *, size_t); }
#line 501 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _mbstowcs_s_l(size_t *, __wchar_t *, size_t, const char *, size_t, _locale_t); }
#line 502 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _mbstowcs_s_l ( size_t * _PtNumOfCharConverted, wchar_t ( & _Dest ) [ _Size ], const char * _Source, size_t _MaxCount, _locale_t _Locale ) { return _mbstowcs_s_l ( _PtNumOfCharConverted, _Dest, _Size, _Source, _MaxCount, _Locale ); }
#line 503 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { size_t __cdecl _mbstowcs_l(__wchar_t *, const char *, size_t, _locale_t); }
#line 505 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl rand(); }
#line 510 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl _set_error_mode(int); }
#line 512 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void __cdecl srand(unsigned); }
#line 513 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { double __cdecl strtod(const char *, char **); }
#line 514 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { double __cdecl _strtod_l(const char *, char **, _locale_t); }
#line 515 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { long __cdecl strtol(const char *, char **, int); }
#line 516 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { long __cdecl _strtol_l(const char *, char **, int, _locale_t); }
#line 517 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned long __cdecl strtoul(const char *, char **, int); }
#line 518 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned long __cdecl _strtoul_l(const char *, char **, int, _locale_t); }
#line 521 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl system(const char *); }
#line 523 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _ultoa_s(unsigned long, char *, size_t, int); }
#line 524 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _ultoa_s ( unsigned long _Value, char ( & _Dest ) [ _Size ], int _Radix ) { return _ultoa_s ( _Value, _Dest, _Size, _Radix ); }
#line 525 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char *__cdecl _ultoa(unsigned long, char *, int); }
#line 526 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl wctomb(char *, __wchar_t); }
#line 527 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl _wctomb_l(char *, __wchar_t, _locale_t); }
#line 529 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl wctomb_s(int *, char *, rsize_t, __wchar_t); }
#line 531 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _wctomb_s_l(int *, char *, size_t, __wchar_t, _locale_t); }
#line 532 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl wcstombs_s(size_t *, char *, size_t, const __wchar_t *, size_t); }
#line 533 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl wcstombs_s ( size_t * _PtNumOfCharConverted, char ( & _Dest ) [ _Size ], const wchar_t * _Source, size_t _MaxCount ) { return wcstombs_s ( _PtNumOfCharConverted, _Dest, _Size, _Source, _MaxCount ); }
#line 534 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { size_t __cdecl wcstombs(char *, const __wchar_t *, size_t); }
#line 535 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _wcstombs_s_l(size_t *, char *, size_t, const __wchar_t *, size_t, _locale_t); }
#line 536 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _wcstombs_s_l ( size_t * _PtNumOfCharConverted, char ( & _Dest ) [ _Size ], const wchar_t * _Source, size_t _MaxCount, _locale_t _Locale ) { return _wcstombs_s_l ( _PtNumOfCharConverted, _Dest, _Size, _Source, _MaxCount, _Locale ); }
#line 537 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { size_t __cdecl _wcstombs_l(char *, const __wchar_t *, size_t, _locale_t); }
#line 599 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec( noalias restrict ) void *__cdecl calloc(size_t, size_t); }
#line 600 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec( noalias ) void __cdecl free(void *); }
#line 601 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec( noalias restrict ) void *__cdecl malloc(size_t); }
#line 602 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec( noalias restrict ) void *__cdecl realloc(void *, size_t); }
#line 603 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec( noalias restrict ) void *__cdecl _recalloc(void *, size_t, size_t); }
#line 604 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec( noalias ) void __cdecl _aligned_free(void *); }
#line 605 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec( noalias restrict ) void *__cdecl _aligned_malloc(size_t, size_t); }
#line 606 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec( noalias restrict ) void *__cdecl _aligned_offset_malloc(size_t, size_t, size_t); }
#line 607 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec( noalias restrict ) void *__cdecl _aligned_realloc(void *, size_t, size_t); }
#line 608 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec( noalias restrict ) void *__cdecl _aligned_recalloc(void *, size_t, size_t, size_t); }
#line 609 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec( noalias restrict ) void *__cdecl _aligned_offset_realloc(void *, size_t, size_t, size_t); }
#line 610 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec( noalias restrict ) void *__cdecl _aligned_offset_recalloc(void *, size_t, size_t, size_t, size_t); }
#line 611 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { size_t __cdecl _aligned_msize(void *, size_t, size_t); }
#line 638 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _itow_s(int, __wchar_t *, size_t, int); }
#line 639 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _itow_s ( int _Value, wchar_t ( & _Dest ) [ _Size ], int _Radix ) { return _itow_s ( _Value, _Dest, _Size, _Radix ); }
#line 640 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __wchar_t *__cdecl _itow(int, __wchar_t *, int); }
#line 641 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _ltow_s(long, __wchar_t *, size_t, int); }
#line 642 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _ltow_s ( long _Value, wchar_t ( & _Dest ) [ _Size ], int _Radix ) { return _ltow_s ( _Value, _Dest, _Size, _Radix ); }
#line 643 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __wchar_t *__cdecl _ltow(long, __wchar_t *, int); }
#line 644 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _ultow_s(unsigned long, __wchar_t *, size_t, int); }
#line 645 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _ultow_s ( unsigned long _Value, wchar_t ( & _Dest ) [ _Size ], int _Radix ) { return _ultow_s ( _Value, _Dest, _Size, _Radix ); }
#line 646 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __wchar_t *__cdecl _ultow(unsigned long, __wchar_t *, int); }
#line 647 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { double __cdecl wcstod(const __wchar_t *, __wchar_t **); }
#line 648 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { double __cdecl _wcstod_l(const __wchar_t *, __wchar_t **, _locale_t); }
#line 649 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { long __cdecl wcstol(const __wchar_t *, __wchar_t **, int); }
#line 650 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { long __cdecl _wcstol_l(const __wchar_t *, __wchar_t **, int, _locale_t); }
#line 651 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned long __cdecl wcstoul(const __wchar_t *, __wchar_t **, int); }
#line 652 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned long __cdecl _wcstoul_l(const __wchar_t *, __wchar_t **, int, _locale_t); }
#line 653 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __wchar_t *__cdecl _wgetenv(const __wchar_t *); }
#line 654 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _wgetenv_s(size_t *, __wchar_t *, size_t, const __wchar_t *); }
#line 655 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _wgetenv_s ( size_t * _ReturnSize, wchar_t ( & _Dest ) [ _Size ], const wchar_t * _VarName ) { return _wgetenv_s ( _ReturnSize, _Dest, _Size, _VarName ); }
#line 662 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _wdupenv_s(__wchar_t **, size_t *, const __wchar_t *); }
#line 670 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl _wsystem(const __wchar_t *); }
#line 672 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { double __cdecl _wtof(const __wchar_t *); }
#line 673 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { double __cdecl _wtof_l(const __wchar_t *, _locale_t); }
#line 674 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl _wtoi(const __wchar_t *); }
#line 675 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl _wtoi_l(const __wchar_t *, _locale_t); }
#line 676 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { long __cdecl _wtol(const __wchar_t *); }
#line 677 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { long __cdecl _wtol_l(const __wchar_t *, _locale_t); }
#line 679 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _i64tow_s(__int64, __wchar_t *, size_t, int); }
#line 680 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __wchar_t *__cdecl _i64tow(__int64, __wchar_t *, int); }
#line 681 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _ui64tow_s(unsigned __int64, __wchar_t *, size_t, int); }
#line 682 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __wchar_t *__cdecl _ui64tow(unsigned __int64, __wchar_t *, int); }
#line 683 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __int64 __cdecl _wtoi64(const __wchar_t *); }
#line 684 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __int64 __cdecl _wtoi64_l(const __wchar_t *, _locale_t); }
#line 685 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __int64 __cdecl _wcstoi64(const __wchar_t *, __wchar_t **, int); }
#line 686 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __int64 __cdecl _wcstoi64_l(const __wchar_t *, __wchar_t **, int, _locale_t); }
#line 687 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned __int64 __cdecl _wcstoui64(const __wchar_t *, __wchar_t **, int); }
#line 688 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned __int64 __cdecl _wcstoui64_l(const __wchar_t *, __wchar_t **, int, _locale_t); }
#line 708 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char *__cdecl _fullpath(char *, const char *, size_t); }
#line 716 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _ecvt_s(char *, size_t, double, int, int *, int *); }
#line 717 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _ecvt_s ( char ( & _Dest ) [ _Size ], double _Value, int _NumOfDigits, int * _PtDec, int * _PtSign ) { return _ecvt_s ( _Dest, _Size, _Value, _NumOfDigits, _PtDec, _PtSign ); }
#line 718 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char *__cdecl _ecvt(double, int, int *, int *); }
#line 719 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _fcvt_s(char *, size_t, double, int, int *, int *); }
#line 720 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _fcvt_s ( char ( & _Dest ) [ _Size ], double _Value, int _NumOfDigits, int * _PtDec, int * _PtSign ) { return _fcvt_s ( _Dest, _Size, _Value, _NumOfDigits, _PtDec, _PtSign ); }
#line 721 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char *__cdecl _fcvt(double, int, int *, int *); }
#line 722 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _gcvt_s(char *, size_t, double, int); }
#line 723 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _gcvt_s ( char ( & _Dest ) [ _Size ], double _Value, int _NumOfDigits ) { return _gcvt_s ( _Dest, _Size, _Value, _NumOfDigits ); }
#line 724 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char *__cdecl _gcvt(double, int, char *); }
#line 726 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl _atodbl(_CRT_DOUBLE *, char *); }
#line 727 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl _atoldbl(_LDOUBLE *, char *); }
#line 728 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl _atoflt(_CRT_FLOAT *, char *); }
#line 729 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl _atodbl_l(_CRT_DOUBLE *, char *, _locale_t); }
#line 730 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl _atoldbl_l(_LDOUBLE *, char *, _locale_t); }
#line 731 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl _atoflt_l(_CRT_FLOAT *, char *, _locale_t); }
#line 732 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned long __cdecl _lrotl(unsigned long, int); }
#line 733 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned long __cdecl _lrotr(unsigned long, int); }
#line 734 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _makepath_s(char *, size_t, const char *, const char *, const char *, const char *); }
#line 736 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _makepath_s ( char ( & _Path ) [ _Size ], const char * _Drive, const char * _Dir, const char * _Filename, const char * _Ext ) { return _makepath_s ( _Path, _Size, _Drive, _Dir, _Filename, _Ext ); }
#line 737 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void __cdecl _makepath(char *, const char *, const char *, const char *, const char *); }
#line 764 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { _onexit_t __cdecl _onexit(_onexit_t); }
#line 769 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void __cdecl perror(const char *); }
#line 772 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
#pragma warning (push)
#pragma warning (disable:6540)
extern "C" { int __cdecl _putenv(const char *); }
#line 775 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _putenv_s(const char *, const char *); }
#line 776 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned __cdecl _rotl(unsigned, int); }
#line 777 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned __int64 __cdecl _rotl64(unsigned __int64, int); }
#line 778 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned __cdecl _rotr(unsigned, int); }
#line 779 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { unsigned __int64 __cdecl _rotr64(unsigned __int64, int); }
#pragma warning (pop)
#line 782 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _searchenv_s(const char *, const char *, char *, size_t); }
#line 783 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _searchenv_s ( const char * _Filename, const char * _EnvVar, char ( & _ResultPath ) [ _Size ] ) { return _searchenv_s ( _Filename, _EnvVar, _ResultPath, _Size ); }
#line 784 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void __cdecl _searchenv(const char *, const char *, char *); }
#line 786 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void __cdecl _splitpath(const char *, char *, char *, char *, char *); }
#line 787 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _splitpath_s(const char *, char *, size_t, char *, size_t, char *, size_t, char *, size_t); }
#line 792 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _DriveSize, size_t _DirSize, size_t _NameSize, size_t _ExtSize > inline errno_t __cdecl _splitpath_s ( const char * _Dest, char ( & _Drive ) [ _DriveSize ], char ( & _Dir ) [ _DirSize ], char ( & _Name ) [ _NameSize ], char ( & _Ext ) [ _ExtSize ] ) { return _splitpath_s ( _Dest, _Drive, _DriveSize, _Dir, _DirSize, _Name, _NameSize, _Ext, _ExtSize ); }
#line 794 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void __cdecl _swab(char *, char *, int); }
#line 805 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __wchar_t *__cdecl _wfullpath(__wchar_t *, const __wchar_t *, size_t); }
#line 811 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _wmakepath_s(__wchar_t *, size_t, const __wchar_t *, const __wchar_t *, const __wchar_t *, const __wchar_t *); }
#line 813 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _wmakepath_s ( wchar_t ( & _ResultPath ) [ _Size ], const wchar_t * _Drive, const wchar_t * _Dir, const wchar_t * _Filename, const wchar_t * _Ext ) { return _wmakepath_s ( _ResultPath, _Size, _Drive, _Dir, _Filename, _Ext ); }
#line 814 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void __cdecl _wmakepath(__wchar_t *, const __wchar_t *, const __wchar_t *, const __wchar_t *, const __wchar_t *); }
#line 817 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void __cdecl _wperror(const __wchar_t *); }
#line 819 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl _wputenv(const __wchar_t *); }
#line 820 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _wputenv_s(const __wchar_t *, const __wchar_t *); }
#line 821 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _wsearchenv_s(const __wchar_t *, const __wchar_t *, __wchar_t *, size_t); }
#line 822 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _Size > inline errno_t __cdecl _wsearchenv_s ( const wchar_t * _Filename, const wchar_t * _EnvVar, wchar_t ( & _ResultPath ) [ _Size ] ) { return _wsearchenv_s ( _Filename, _EnvVar, _ResultPath, _Size ); }
#line 823 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void __cdecl _wsearchenv(const __wchar_t *, const __wchar_t *, __wchar_t *); }
#line 824 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void __cdecl _wsplitpath(const __wchar_t *, __wchar_t *, __wchar_t *, __wchar_t *, __wchar_t *); }
#line 825 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { errno_t __cdecl _wsplitpath_s(const __wchar_t *, __wchar_t *, size_t, __wchar_t *, size_t, __wchar_t *, size_t, __wchar_t *, size_t); }
#line 830 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
template < size_t _DriveSize, size_t _DirSize, size_t _NameSize, size_t _ExtSize > inline errno_t __cdecl _wsplitpath_s ( const wchar_t * _Path, wchar_t ( & _Drive ) [ _DriveSize ], wchar_t ( & _Dir ) [ _DirSize ], wchar_t ( & _Name ) [ _NameSize ], wchar_t ( & _Ext ) [ _ExtSize ] ) { return _wsplitpath_s ( _Path, _Drive, _DriveSize, _Dir, _DirSize, _Name, _NameSize, _Ext, _ExtSize ); }
#line 836 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec(deprecated("This function or variable has been superceded by newer library or operating system functionality. Consider using SetErrorMode instead. See online help for details.")) void __cdecl _seterrormode(int); }
#line 837 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec(deprecated("This function or variable has been superceded by newer library or operating system functionality. Consider using Beep instead. See online help for details.")) void __cdecl _beep(unsigned, unsigned); }
#line 838 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { __declspec(deprecated("This function or variable has been superceded by newer library or operating system functionality. Consider using Sleep instead. See online help for details.")) void __cdecl _sleep(unsigned long); }
#line 857 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
#pragma warning(push)
#pragma warning(disable: 4141)
extern "C" { char *__cdecl ecvt(double, int, int *, int *); }
#line 860 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char *__cdecl fcvt(double, int, int *, int *); }
#line 861 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char *__cdecl gcvt(double, int, char *); }
#line 862 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char *__cdecl itoa(int, char *, int); }
#line 863 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char *__cdecl ltoa(long, char *, int); }
#line 864 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { int __cdecl putenv(const char *); }
#line 865 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { void __cdecl swab(char *, char *, int); }
#line 866 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
extern "C" { char *__cdecl ultoa(unsigned long, char *, int); }
#pragma warning(pop)
extern "C" { _onexit_t __cdecl onexit(_onexit_t); }
#line 114 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\use_ansi.h"
#pragma comment(lib,"libcpmt")
#line 880 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdlib.h"
#pragma pack ( pop )
#line 9 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
#pragma pack ( push, 8 )
#line 528 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
namespace std {
#line 529 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
typedef bool _Bool;
#line 530 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
}
#line 546 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
typedef __int64 _Longlong;
#line 547 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
typedef unsigned __int64 _ULonglong;
#line 569 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
namespace std {
#line 573 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
#pragma warning(push)
#pragma warning(disable:4412)
class _Lockit {
#line 595 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
public: explicit __thiscall _Lockit();
#line 596 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
explicit __thiscall _Lockit(int);
#line 597 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
__thiscall ~_Lockit();
#line 600 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
static void __cdecl _Lockit_ctor(int);
#line 601 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
static void __cdecl _Lockit_dtor(int);
#line 604 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
private: static void __cdecl _Lockit_ctor(_Lockit *);
#line 605 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
static void __cdecl _Lockit_ctor(_Lockit *, int);
#line 606 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
static void __cdecl _Lockit_dtor(_Lockit *);
#line 608 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
_Lockit(const _Lockit &);
#line 609 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
_Lockit &operator=(const _Lockit &);
#line 611 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
int _Locktype;
#line 628 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
};
#line 722 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
class _Mutex {
#line 746 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
public: __thiscall _Mutex();
#line 747 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
__thiscall ~_Mutex();
#line 748 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
void __thiscall _Lock();
#line 749 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
void __thiscall _Unlock();
#line 753 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
private: static void __cdecl _Mutex_ctor(_Mutex *);
#line 754 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
static void __cdecl _Mutex_dtor(_Mutex *);
#line 755 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
static void __cdecl _Mutex_Lock(_Mutex *);
#line 756 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
static void __cdecl _Mutex_Unlock(_Mutex *);
#line 758 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
_Mutex(const _Mutex &);
#line 759 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
_Mutex &operator=(const _Mutex &);
#line 760 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
void *_Mtx;
#line 772 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
};
#line 774 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
class _Init_locks {
#line 790 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
public: __thiscall _Init_locks();
#line 791 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
__thiscall ~_Init_locks();
#line 795 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
private: static void __cdecl _Init_locks_ctor(_Init_locks *);
#line 796 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
static void __cdecl _Init_locks_dtor(_Init_locks *);
#line 808 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
};
#pragma warning(pop)
}
#line 819 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
void __cdecl _Atexit(void (__cdecl *)(void));
#line 821 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
typedef int _Mbstatet;
#line 830 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\yvals.h"
#pragma pack ( pop )
#line 20 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
namespace std {
#line 21 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::acosf;using ::asinf;
#line 22 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::atanf;using ::atan2f;using ::ceilf;
#line 23 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::cosf;using ::coshf;using ::expf;
#line 24 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::fabsf;using ::floorf;using ::fmodf;
#line 25 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::frexpf;using ::ldexpf;using ::logf;
#line 26 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::log10f;using ::modff;using ::powf;
#line 27 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::sinf;using ::sinhf;using ::sqrtf;
#line 28 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::tanf;using ::tanhf;
#line 30 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::acosl;using ::asinl;
#line 31 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::atanl;using ::atan2l;using ::ceill;
#line 32 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::cosl;using ::coshl;using ::expl;
#line 33 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::fabsl;using ::floorl;using ::fmodl;
#line 34 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::frexpl;using ::ldexpl;using ::logl;
#line 35 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::log10l;using ::modfl;using ::powl;
#line 36 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::sinl;using ::sinhl;using ::sqrtl;
#line 37 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::tanl;using ::tanhl;
#line 39 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::abs;
#line 41 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::acos;using ::asin;
#line 42 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::atan;using ::atan2;using ::ceil;
#line 43 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::cos;using ::cosh;using ::exp;
#line 44 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::fabs;using ::floor;using ::fmod;
#line 45 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::frexp;using ::ldexp;using ::log;
#line 46 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::log10;using ::modf;using ::pow;
#line 47 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::sin;using ::sinh;using ::sqrt;
#line 48 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
using ::tan;using ::tanh;
#line 51 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cmath"
}
#line 19 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cstdlib"
namespace std {
#line 21 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cstdlib"
using ::size_t;using ::div_t;using ::ldiv_t;
#line 23 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cstdlib"
using ::abort;using ::atexit;
#line 24 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cstdlib"
using ::atof;using ::atoi;using ::atol;
#line 25 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cstdlib"
using ::bsearch;using ::calloc;using ::div;
#line 26 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cstdlib"
using ::exit;using ::free;using ::getenv;
#line 27 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cstdlib"
using ::labs;using ::ldiv;using ::malloc;
#line 28 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cstdlib"
using ::mblen;using ::mbstowcs;using ::mbtowc;
#line 29 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cstdlib"
using ::qsort;using ::rand;using ::realloc;
#line 30 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cstdlib"
using ::srand;using ::strtod;using ::strtol;
#line 31 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cstdlib"
using ::strtoul;using ::system;
#line 32 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cstdlib"
using ::wcstombs;using ::wctomb;
#line 35 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\cstdlib"
}
#line 534 "c:\\cuda\\include\\math_functions.h"
static __inline __int64 abs(__int64 a)
#line 535 "c:\\cuda\\include\\math_functions.h"
{
#line 536 "c:\\cuda\\include\\math_functions.h"
return llabs(a);
#line 537 "c:\\cuda\\include\\math_functions.h"
}
#line 539 "c:\\cuda\\include\\math_functions.h"
static __inline int signbit(double a)
#line 540 "c:\\cuda\\include\\math_functions.h"
{
#line 541 "c:\\cuda\\include\\math_functions.h"
return __signbit(a);
#line 542 "c:\\cuda\\include\\math_functions.h"
}
#line 544 "c:\\cuda\\include\\math_functions.h"
static __inline int signbit(float a)
#line 545 "c:\\cuda\\include\\math_functions.h"
{
#line 546 "c:\\cuda\\include\\math_functions.h"
return __signbitf(a);
#line 547 "c:\\cuda\\include\\math_functions.h"
}
#line 549 "c:\\cuda\\include\\math_functions.h"
static __inline int isinf(double a)
#line 550 "c:\\cuda\\include\\math_functions.h"
{
#line 551 "c:\\cuda\\include\\math_functions.h"
return __isinf(a);
#line 552 "c:\\cuda\\include\\math_functions.h"
}
#line 554 "c:\\cuda\\include\\math_functions.h"
static __inline int isinf(float a)
#line 555 "c:\\cuda\\include\\math_functions.h"
{
#line 556 "c:\\cuda\\include\\math_functions.h"
return __isinff(a);
#line 557 "c:\\cuda\\include\\math_functions.h"
}
#line 559 "c:\\cuda\\include\\math_functions.h"
static __inline int isnan(double a)
#line 560 "c:\\cuda\\include\\math_functions.h"
{
#line 561 "c:\\cuda\\include\\math_functions.h"
return __isnan(a);
#line 562 "c:\\cuda\\include\\math_functions.h"
}
#line 564 "c:\\cuda\\include\\math_functions.h"
static __inline int isnan(float a)
#line 565 "c:\\cuda\\include\\math_functions.h"
{
#line 566 "c:\\cuda\\include\\math_functions.h"
return __isnanf(a);
#line 567 "c:\\cuda\\include\\math_functions.h"
}
#line 569 "c:\\cuda\\include\\math_functions.h"
static __inline int isfinite(double a)
#line 570 "c:\\cuda\\include\\math_functions.h"
{
#line 571 "c:\\cuda\\include\\math_functions.h"
return __finite(a);
#line 572 "c:\\cuda\\include\\math_functions.h"
}
#line 574 "c:\\cuda\\include\\math_functions.h"
static __inline int isfinite(float a)
#line 575 "c:\\cuda\\include\\math_functions.h"
{
#line 576 "c:\\cuda\\include\\math_functions.h"
return __finitef(a);
#line 577 "c:\\cuda\\include\\math_functions.h"
}
#line 579 "c:\\cuda\\include\\math_functions.h"
template<class T> inline T _Pow_int(T, int);
#line 587 "c:\\cuda\\include\\math_functions.h"
inline long __cdecl abs(long);
#line 588 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl abs(float);
#line 589 "c:\\cuda\\include\\math_functions.h"
inline double __cdecl abs(double);
#line 590 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl fabs(float);
#line 591 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl ceil(float);
#line 592 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl floor(float);
#line 593 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl sqrt(float);
#line 594 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl pow(float, float);
#line 595 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl pow(float, int);
#line 596 "c:\\cuda\\include\\math_functions.h"
inline double __cdecl pow(double, int);
#line 597 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl log(float);
#line 598 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl log10(float);
#line 599 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl fmod(float, float);
#line 600 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl modf(float, float *);
#line 601 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl exp(float);
#line 602 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl frexp(float, int *);
#line 603 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl ldexp(float, int);
#line 604 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl asin(float);
#line 605 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl sin(float);
#line 606 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl sinh(float);
#line 607 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl acos(float);
#line 608 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl cos(float);
#line 609 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl cosh(float);
#line 610 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl atan(float);
#line 611 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl atan2(float, float);
#line 612 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl tan(float);
#line 613 "c:\\cuda\\include\\math_functions.h"
inline float __cdecl tanh(float);
#line 619 "c:\\cuda\\include\\math_functions.h"
static __inline float logb(float a)
#line 620 "c:\\cuda\\include\\math_functions.h"
{
#line 621 "c:\\cuda\\include\\math_functions.h"
return logbf(a);
#line 622 "c:\\cuda\\include\\math_functions.h"
}
#line 624 "c:\\cuda\\include\\math_functions.h"
static __inline int ilogb(float a)
#line 625 "c:\\cuda\\include\\math_functions.h"
{
#line 626 "c:\\cuda\\include\\math_functions.h"
return ilogbf(a);
#line 627 "c:\\cuda\\include\\math_functions.h"
}
#line 629 "c:\\cuda\\include\\math_functions.h"
static __inline float scalbn(float a, int b)
#line 630 "c:\\cuda\\include\\math_functions.h"
{
#line 631 "c:\\cuda\\include\\math_functions.h"
return scalbnf(a, b);
#line 632 "c:\\cuda\\include\\math_functions.h"
}
#line 634 "c:\\cuda\\include\\math_functions.h"
static __inline float scalbln(float a, long b)
#line 635 "c:\\cuda\\include\\math_functions.h"
{
#line 636 "c:\\cuda\\include\\math_functions.h"
return scalblnf(a, b);
#line 637 "c:\\cuda\\include\\math_functions.h"
}
#line 639 "c:\\cuda\\include\\math_functions.h"
static __inline float exp2(float a)
#line 640 "c:\\cuda\\include\\math_functions.h"
{
#line 641 "c:\\cuda\\include\\math_functions.h"
return exp2f(a);
#line 642 "c:\\cuda\\include\\math_functions.h"
}
#line 644 "c:\\cuda\\include\\math_functions.h"
static __inline float exp10(float a)
#line 645 "c:\\cuda\\include\\math_functions.h"
{
#line 646 "c:\\cuda\\include\\math_functions.h"
return exp10f(a);
#line 647 "c:\\cuda\\include\\math_functions.h"
}
#line 649 "c:\\cuda\\include\\math_functions.h"
static __inline float expm1(float a)
#line 650 "c:\\cuda\\include\\math_functions.h"
{
#line 651 "c:\\cuda\\include\\math_functions.h"
return expm1f(a);
#line 652 "c:\\cuda\\include\\math_functions.h"
}
#line 654 "c:\\cuda\\include\\math_functions.h"
static __inline float log2(float a)
#line 655 "c:\\cuda\\include\\math_functions.h"
{
#line 656 "c:\\cuda\\include\\math_functions.h"
return log2f(a);
#line 657 "c:\\cuda\\include\\math_functions.h"
}
#line 659 "c:\\cuda\\include\\math_functions.h"
static __inline float log1p(float a)
#line 660 "c:\\cuda\\include\\math_functions.h"
{
#line 661 "c:\\cuda\\include\\math_functions.h"
return log1pf(a);
#line 662 "c:\\cuda\\include\\math_functions.h"
}
#line 664 "c:\\cuda\\include\\math_functions.h"
static __inline float rsqrt(float a)
#line 665 "c:\\cuda\\include\\math_functions.h"
{
#line 666 "c:\\cuda\\include\\math_functions.h"
return rsqrtf(a);
#line 667 "c:\\cuda\\include\\math_functions.h"
}
#line 669 "c:\\cuda\\include\\math_functions.h"
static __inline float acosh(float a)
#line 670 "c:\\cuda\\include\\math_functions.h"
{
#line 671 "c:\\cuda\\include\\math_functions.h"
return acoshf(a);
#line 672 "c:\\cuda\\include\\math_functions.h"
}
#line 674 "c:\\cuda\\include\\math_functions.h"
static __inline float asinh(float a)
#line 675 "c:\\cuda\\include\\math_functions.h"
{
#line 676 "c:\\cuda\\include\\math_functions.h"
return asinhf(a);
#line 677 "c:\\cuda\\include\\math_functions.h"
}
#line 679 "c:\\cuda\\include\\math_functions.h"
static __inline float atanh(float a)
#line 680 "c:\\cuda\\include\\math_functions.h"
{
#line 681 "c:\\cuda\\include\\math_functions.h"
return atanhf(a);
#line 682 "c:\\cuda\\include\\math_functions.h"
}
#line 684 "c:\\cuda\\include\\math_functions.h"
static __inline float hypot(float a, float b)
#line 685 "c:\\cuda\\include\\math_functions.h"
{
#line 686 "c:\\cuda\\include\\math_functions.h"
return hypotf(a, b);
#line 687 "c:\\cuda\\include\\math_functions.h"
}
#line 689 "c:\\cuda\\include\\math_functions.h"
static __inline float cbrt(float a)
#line 690 "c:\\cuda\\include\\math_functions.h"
{
#line 691 "c:\\cuda\\include\\math_functions.h"
return cbrtf(a);
#line 692 "c:\\cuda\\include\\math_functions.h"
}
#line 694 "c:\\cuda\\include\\math_functions.h"
static __inline float rcbrt(float a)
#line 695 "c:\\cuda\\include\\math_functions.h"
{
#line 696 "c:\\cuda\\include\\math_functions.h"
return rcbrtf(a);
#line 697 "c:\\cuda\\include\\math_functions.h"
}
#line 699 "c:\\cuda\\include\\math_functions.h"
static __inline float sinpi(float a)
#line 700 "c:\\cuda\\include\\math_functions.h"
{
#line 701 "c:\\cuda\\include\\math_functions.h"
return sinpif(a);
#line 702 "c:\\cuda\\include\\math_functions.h"
}
#line 704 "c:\\cuda\\include\\math_functions.h"
static __inline void sincos(float a, float *sptr, float *cptr)
#line 705 "c:\\cuda\\include\\math_functions.h"
{
#line 706 "c:\\cuda\\include\\math_functions.h"
sincosf(a, sptr, cptr);
#line 707 "c:\\cuda\\include\\math_functions.h"
}
#line 709 "c:\\cuda\\include\\math_functions.h"
static __inline float erf(float a)
#line 710 "c:\\cuda\\include\\math_functions.h"
{
#line 711 "c:\\cuda\\include\\math_functions.h"
return erff(a);
#line 712 "c:\\cuda\\include\\math_functions.h"
}
#line 714 "c:\\cuda\\include\\math_functions.h"
static __inline float erfinv(float a)
#line 715 "c:\\cuda\\include\\math_functions.h"
{
#line 716 "c:\\cuda\\include\\math_functions.h"
return erfinvf(a);
#line 717 "c:\\cuda\\include\\math_functions.h"
}
#line 719 "c:\\cuda\\include\\math_functions.h"
static __inline float erfc(float a)
#line 720 "c:\\cuda\\include\\math_functions.h"
{
#line 721 "c:\\cuda\\include\\math_functions.h"
return erfcf(a);
#line 722 "c:\\cuda\\include\\math_functions.h"
}
#line 724 "c:\\cuda\\include\\math_functions.h"
static __inline float erfcinv(float a)
#line 725 "c:\\cuda\\include\\math_functions.h"
{
#line 726 "c:\\cuda\\include\\math_functions.h"
return erfcinvf(a);
#line 727 "c:\\cuda\\include\\math_functions.h"
}
#line 729 "c:\\cuda\\include\\math_functions.h"
static __inline float lgamma(float a)
#line 730 "c:\\cuda\\include\\math_functions.h"
{
#line 731 "c:\\cuda\\include\\math_functions.h"
return lgammaf(a);
#line 732 "c:\\cuda\\include\\math_functions.h"
}
#line 734 "c:\\cuda\\include\\math_functions.h"
static __inline float tgamma(float a)
#line 735 "c:\\cuda\\include\\math_functions.h"
{
#line 736 "c:\\cuda\\include\\math_functions.h"
return tgammaf(a);
#line 737 "c:\\cuda\\include\\math_functions.h"
}
#line 739 "c:\\cuda\\include\\math_functions.h"
static __inline float copysign(float a, float b)
#line 740 "c:\\cuda\\include\\math_functions.h"
{
#line 741 "c:\\cuda\\include\\math_functions.h"
return copysignf(a, b);
#line 742 "c:\\cuda\\include\\math_functions.h"
}
#line 744 "c:\\cuda\\include\\math_functions.h"
static __inline double copysign(double a, float b)
#line 745 "c:\\cuda\\include\\math_functions.h"
{
#line 746 "c:\\cuda\\include\\math_functions.h"
return copysign(a, (double)b);
#line 747 "c:\\cuda\\include\\math_functions.h"
}
#line 749 "c:\\cuda\\include\\math_functions.h"
static __inline float copysign(float a, double b)
#line 750 "c:\\cuda\\include\\math_functions.h"
{
#line 751 "c:\\cuda\\include\\math_functions.h"
return copysignf(a, (float)b);
#line 752 "c:\\cuda\\include\\math_functions.h"
}
#line 754 "c:\\cuda\\include\\math_functions.h"
static __inline float nextafter(float a, float b)
#line 755 "c:\\cuda\\include\\math_functions.h"
{
#line 756 "c:\\cuda\\include\\math_functions.h"
return nextafterf(a, b);
#line 757 "c:\\cuda\\include\\math_functions.h"
}
#line 759 "c:\\cuda\\include\\math_functions.h"
static __inline float remainder(float a, float b)
#line 760 "c:\\cuda\\include\\math_functions.h"
{
#line 761 "c:\\cuda\\include\\math_functions.h"
return remainderf(a, b);
#line 762 "c:\\cuda\\include\\math_functions.h"
}
#line 764 "c:\\cuda\\include\\math_functions.h"
static __inline float remquo(float a, float b, int *quo)
#line 765 "c:\\cuda\\include\\math_functions.h"
{
#line 766 "c:\\cuda\\include\\math_functions.h"
return remquof(a, b, quo);
#line 767 "c:\\cuda\\include\\math_functions.h"
}
#line 769 "c:\\cuda\\include\\math_functions.h"
static __inline float round(float a)
#line 770 "c:\\cuda\\include\\math_functions.h"
{
#line 771 "c:\\cuda\\include\\math_functions.h"
return roundf(a);
#line 772 "c:\\cuda\\include\\math_functions.h"
}
#line 774 "c:\\cuda\\include\\math_functions.h"
static __inline long lround(float a)
#line 775 "c:\\cuda\\include\\math_functions.h"
{
#line 776 "c:\\cuda\\include\\math_functions.h"
return lroundf(a);
#line 777 "c:\\cuda\\include\\math_functions.h"
}
#line 779 "c:\\cuda\\include\\math_functions.h"
static __inline __int64 llround(float a)
#line 780 "c:\\cuda\\include\\math_functions.h"
{
#line 781 "c:\\cuda\\include\\math_functions.h"
return llroundf(a);
#line 782 "c:\\cuda\\include\\math_functions.h"
}
#line 784 "c:\\cuda\\include\\math_functions.h"
static __inline float trunc(float a)
#line 785 "c:\\cuda\\include\\math_functions.h"
{
#line 786 "c:\\cuda\\include\\math_functions.h"
return truncf(a);
#line 787 "c:\\cuda\\include\\math_functions.h"
}
#line 789 "c:\\cuda\\include\\math_functions.h"
static __inline float rint(float a)
#line 790 "c:\\cuda\\include\\math_functions.h"
{
#line 791 "c:\\cuda\\include\\math_functions.h"
return rintf(a);
#line 792 "c:\\cuda\\include\\math_functions.h"
}
#line 794 "c:\\cuda\\include\\math_functions.h"
static __inline long lrint(float a)
#line 795 "c:\\cuda\\include\\math_functions.h"
{
#line 796 "c:\\cuda\\include\\math_functions.h"
return lrintf(a);
#line 797 "c:\\cuda\\include\\math_functions.h"
}
#line 799 "c:\\cuda\\include\\math_functions.h"
static __inline __int64 llrint(float a)
#line 800 "c:\\cuda\\include\\math_functions.h"
{
#line 801 "c:\\cuda\\include\\math_functions.h"
return llrintf(a);
#line 802 "c:\\cuda\\include\\math_functions.h"
}
#line 804 "c:\\cuda\\include\\math_functions.h"
static __inline float nearbyint(float a)
#line 805 "c:\\cuda\\include\\math_functions.h"
{
#line 806 "c:\\cuda\\include\\math_functions.h"
return nearbyintf(a);
#line 807 "c:\\cuda\\include\\math_functions.h"
}
#line 809 "c:\\cuda\\include\\math_functions.h"
static __inline float fdim(float a, float b)
#line 810 "c:\\cuda\\include\\math_functions.h"
{
#line 811 "c:\\cuda\\include\\math_functions.h"
return fdimf(a, b);
#line 812 "c:\\cuda\\include\\math_functions.h"
}
#line 814 "c:\\cuda\\include\\math_functions.h"
static __inline float fma(float a, float b, float c)
#line 815 "c:\\cuda\\include\\math_functions.h"
{
#line 816 "c:\\cuda\\include\\math_functions.h"
return fmaf(a, b, c);
#line 817 "c:\\cuda\\include\\math_functions.h"
}
#line 819 "c:\\cuda\\include\\math_functions.h"
static __inline float fmax(float a, float b)
#line 820 "c:\\cuda\\include\\math_functions.h"
{
#line 821 "c:\\cuda\\include\\math_functions.h"
return fmaxf(a, b);
#line 822 "c:\\cuda\\include\\math_functions.h"
}
#line 824 "c:\\cuda\\include\\math_functions.h"
static __inline float fmin(float a, float b)
#line 825 "c:\\cuda\\include\\math_functions.h"
{
#line 826 "c:\\cuda\\include\\math_functions.h"
return fminf(a, b);
#line 827 "c:\\cuda\\include\\math_functions.h"
}
#line 829 "c:\\cuda\\include\\math_functions.h"
static __inline unsigned min(unsigned a, unsigned b)
#line 830 "c:\\cuda\\include\\math_functions.h"
{
#line 831 "c:\\cuda\\include\\math_functions.h"
return umin(a, b);
#line 832 "c:\\cuda\\include\\math_functions.h"
}
#line 834 "c:\\cuda\\include\\math_functions.h"
static __inline unsigned min(int a, unsigned b)
#line 835 "c:\\cuda\\include\\math_functions.h"
{
#line 836 "c:\\cuda\\include\\math_functions.h"
return umin((unsigned)a, b);
#line 837 "c:\\cuda\\include\\math_functions.h"
}
#line 839 "c:\\cuda\\include\\math_functions.h"
static __inline unsigned min(unsigned a, int b)
#line 840 "c:\\cuda\\include\\math_functions.h"
{
#line 841 "c:\\cuda\\include\\math_functions.h"
return umin(a, (unsigned)b);
#line 842 "c:\\cuda\\include\\math_functions.h"
}
#line 844 "c:\\cuda\\include\\math_functions.h"
static __inline __int64 min(__int64 a, __int64 b)
#line 845 "c:\\cuda\\include\\math_functions.h"
{
#line 846 "c:\\cuda\\include\\math_functions.h"
return llmin(a, b);
#line 847 "c:\\cuda\\include\\math_functions.h"
}
#line 849 "c:\\cuda\\include\\math_functions.h"
static __inline unsigned __int64 min(unsigned __int64 a, unsigned __int64 b)
#line 850 "c:\\cuda\\include\\math_functions.h"
{
#line 851 "c:\\cuda\\include\\math_functions.h"
return ullmin(a, b);
#line 852 "c:\\cuda\\include\\math_functions.h"
}
#line 854 "c:\\cuda\\include\\math_functions.h"
static __inline unsigned __int64 min(__int64 a, unsigned __int64 b)
#line 855 "c:\\cuda\\include\\math_functions.h"
{
#line 856 "c:\\cuda\\include\\math_functions.h"
return ullmin((unsigned __int64)a, b);
#line 857 "c:\\cuda\\include\\math_functions.h"
}
#line 859 "c:\\cuda\\include\\math_functions.h"
static __inline unsigned __int64 min(unsigned __int64 a, __int64 b)
#line 860 "c:\\cuda\\include\\math_functions.h"
{
#line 861 "c:\\cuda\\include\\math_functions.h"
return ullmin(a, (unsigned __int64)b);
#line 862 "c:\\cuda\\include\\math_functions.h"
}
#line 864 "c:\\cuda\\include\\math_functions.h"
static __inline float min(float a, float b)
#line 865 "c:\\cuda\\include\\math_functions.h"
{
#line 866 "c:\\cuda\\include\\math_functions.h"
return fminf(a, b);
#line 867 "c:\\cuda\\include\\math_functions.h"
}
#line 869 "c:\\cuda\\include\\math_functions.h"
static __inline double min(double a, double b)
#line 870 "c:\\cuda\\include\\math_functions.h"
{
#line 871 "c:\\cuda\\include\\math_functions.h"
return fmin(a, b);
#line 872 "c:\\cuda\\include\\math_functions.h"
}
#line 874 "c:\\cuda\\include\\math_functions.h"
static __inline double min(float a, double b)
#line 875 "c:\\cuda\\include\\math_functions.h"
{
#line 876 "c:\\cuda\\include\\math_functions.h"
return fmin((double)a, b);
#line 877 "c:\\cuda\\include\\math_functions.h"
}
#line 879 "c:\\cuda\\include\\math_functions.h"
static __inline double min(double a, float b)
#line 880 "c:\\cuda\\include\\math_functions.h"
{
#line 881 "c:\\cuda\\include\\math_functions.h"
return fmin(a, (double)b);
#line 882 "c:\\cuda\\include\\math_functions.h"
}
#line 884 "c:\\cuda\\include\\math_functions.h"
static __inline unsigned max(unsigned a, unsigned b)
#line 885 "c:\\cuda\\include\\math_functions.h"
{
#line 886 "c:\\cuda\\include\\math_functions.h"
return umax(a, b);
#line 887 "c:\\cuda\\include\\math_functions.h"
}
#line 889 "c:\\cuda\\include\\math_functions.h"
static __inline unsigned max(int a, unsigned b)
#line 890 "c:\\cuda\\include\\math_functions.h"
{
#line 891 "c:\\cuda\\include\\math_functions.h"
return umax((unsigned)a, b);
#line 892 "c:\\cuda\\include\\math_functions.h"
}
#line 894 "c:\\cuda\\include\\math_functions.h"
static __inline unsigned max(unsigned a, int b)
#line 895 "c:\\cuda\\include\\math_functions.h"
{
#line 896 "c:\\cuda\\include\\math_functions.h"
return umax(a, (unsigned)b);
#line 897 "c:\\cuda\\include\\math_functions.h"
}
#line 899 "c:\\cuda\\include\\math_functions.h"
static __inline __int64 max(__int64 a, __int64 b)
#line 900 "c:\\cuda\\include\\math_functions.h"
{
#line 901 "c:\\cuda\\include\\math_functions.h"
return llmax(a, b);
#line 902 "c:\\cuda\\include\\math_functions.h"
}
#line 904 "c:\\cuda\\include\\math_functions.h"
static __inline unsigned __int64 max(unsigned __int64 a, unsigned __int64 b)
#line 905 "c:\\cuda\\include\\math_functions.h"
{
#line 906 "c:\\cuda\\include\\math_functions.h"
return ullmax(a, b);
#line 907 "c:\\cuda\\include\\math_functions.h"
}
#line 909 "c:\\cuda\\include\\math_functions.h"
static __inline unsigned __int64 max(__int64 a, unsigned __int64 b)
#line 910 "c:\\cuda\\include\\math_functions.h"
{
#line 911 "c:\\cuda\\include\\math_functions.h"
return ullmax((unsigned __int64)a, b);
#line 912 "c:\\cuda\\include\\math_functions.h"
}
#line 914 "c:\\cuda\\include\\math_functions.h"
static __inline unsigned __int64 max(unsigned __int64 a, __int64 b)
#line 915 "c:\\cuda\\include\\math_functions.h"
{
#line 916 "c:\\cuda\\include\\math_functions.h"
return ullmax(a, (unsigned __int64)b);
#line 917 "c:\\cuda\\include\\math_functions.h"
}
#line 919 "c:\\cuda\\include\\math_functions.h"
static __inline float max(float a, float b)
#line 920 "c:\\cuda\\include\\math_functions.h"
{
#line 921 "c:\\cuda\\include\\math_functions.h"
return fmaxf(a, b);
#line 922 "c:\\cuda\\include\\math_functions.h"
}
#line 924 "c:\\cuda\\include\\math_functions.h"
static __inline double max(double a, double b)
#line 925 "c:\\cuda\\include\\math_functions.h"
{
#line 926 "c:\\cuda\\include\\math_functions.h"
return fmax(a, b);
#line 927 "c:\\cuda\\include\\math_functions.h"
}
#line 929 "c:\\cuda\\include\\math_functions.h"
static __inline double max(float a, double b)
#line 930 "c:\\cuda\\include\\math_functions.h"
{
#line 931 "c:\\cuda\\include\\math_functions.h"
return fmax((double)a, b);
#line 932 "c:\\cuda\\include\\math_functions.h"
}
#line 934 "c:\\cuda\\include\\math_functions.h"
static __inline double max(double a, float b)
#line 935 "c:\\cuda\\include\\math_functions.h"
{
#line 936 "c:\\cuda\\include\\math_functions.h"
return fmax(a, (double)b);
#line 937 "c:\\cuda\\include\\math_functions.h"
}
#line 60 "c:\\cuda\\include\\cuda_surface_types.h"
template<class T, int dim = 1>
#line 61 "c:\\cuda\\include\\cuda_surface_types.h"
struct surface : public surfaceReference {
#line 63 "c:\\cuda\\include\\cuda_surface_types.h"
surface()
#line 64 "c:\\cuda\\include\\cuda_surface_types.h"
{
#line 65 "c:\\cuda\\include\\cuda_surface_types.h"
(channelDesc) = cudaCreateChannelDesc< T> ();
#line 66 "c:\\cuda\\include\\cuda_surface_types.h"
}
#line 68 "c:\\cuda\\include\\cuda_surface_types.h"
surface(cudaChannelFormatDesc desc)
#line 69 "c:\\cuda\\include\\cuda_surface_types.h"
{
#line 70 "c:\\cuda\\include\\cuda_surface_types.h"
(channelDesc) = desc;
#line 71 "c:\\cuda\\include\\cuda_surface_types.h"
}
#line 72 "c:\\cuda\\include\\cuda_surface_types.h"
};
#line 75 "c:\\cuda\\include\\cuda_surface_types.h"
template<int dim>
#line 76 "c:\\cuda\\include\\cuda_surface_types.h"
struct surface< void, dim> : public surfaceReference {
#line 78 "c:\\cuda\\include\\cuda_surface_types.h"
surface()
#line 79 "c:\\cuda\\include\\cuda_surface_types.h"
{
#line 80 "c:\\cuda\\include\\cuda_surface_types.h"
(channelDesc) = cudaCreateChannelDesc< void> ();
#line 81 "c:\\cuda\\include\\cuda_surface_types.h"
}
#line 82 "c:\\cuda\\include\\cuda_surface_types.h"
};
#line 60 "c:\\cuda\\include\\cuda_texture_types.h"
template<class T, int dim = 1, cudaTextureReadMode mode = cudaReadModeElementType>
#line 61 "c:\\cuda\\include\\cuda_texture_types.h"
struct texture : public textureReference {
#line 63 "c:\\cuda\\include\\cuda_texture_types.h"
texture(int norm = 0, cudaTextureFilterMode
#line 64 "c:\\cuda\\include\\cuda_texture_types.h"
fMode = cudaFilterModePoint, cudaTextureAddressMode
#line 65 "c:\\cuda\\include\\cuda_texture_types.h"
aMode = cudaAddressModeClamp)
#line 66 "c:\\cuda\\include\\cuda_texture_types.h"
{
#line 67 "c:\\cuda\\include\\cuda_texture_types.h"
(normalized) = norm;
#line 68 "c:\\cuda\\include\\cuda_texture_types.h"
(filterMode) = fMode;
#line 69 "c:\\cuda\\include\\cuda_texture_types.h"
((addressMode)[0]) = aMode;
#line 70 "c:\\cuda\\include\\cuda_texture_types.h"
((addressMode)[1]) = aMode;
#line 71 "c:\\cuda\\include\\cuda_texture_types.h"
((addressMode)[2]) = aMode;
#line 72 "c:\\cuda\\include\\cuda_texture_types.h"
(channelDesc) = cudaCreateChannelDesc< T> ();
#line 73 "c:\\cuda\\include\\cuda_texture_types.h"
}
#line 75 "c:\\cuda\\include\\cuda_texture_types.h"
texture(int norm, cudaTextureFilterMode
#line 76 "c:\\cuda\\include\\cuda_texture_types.h"
fMode, cudaTextureAddressMode
#line 77 "c:\\cuda\\include\\cuda_texture_types.h"
aMode, cudaChannelFormatDesc
#line 78 "c:\\cuda\\include\\cuda_texture_types.h"
desc)
#line 79 "c:\\cuda\\include\\cuda_texture_types.h"
{
#line 80 "c:\\cuda\\include\\cuda_texture_types.h"
(normalized) = norm;
#line 81 "c:\\cuda\\include\\cuda_texture_types.h"
(filterMode) = fMode;
#line 82 "c:\\cuda\\include\\cuda_texture_types.h"
((addressMode)[0]) = aMode;
#line 83 "c:\\cuda\\include\\cuda_texture_types.h"
((addressMode)[1]) = aMode;
#line 84 "c:\\cuda\\include\\cuda_texture_types.h"
((addressMode)[2]) = aMode;
#line 85 "c:\\cuda\\include\\cuda_texture_types.h"
(channelDesc) = desc;
#line 86 "c:\\cuda\\include\\cuda_texture_types.h"
}
#line 87 "c:\\cuda\\include\\cuda_texture_types.h"
};
#line 329 "c:\\cuda\\include\\device_functions.h"
static __inline int mulhi(int a, int b)
#line 330 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 332 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 341 "c:\\cuda\\include\\device_functions.h"
#line 334 "c:\\cuda\\include\\device_functions.h"
static __inline unsigned mulhi(unsigned a, unsigned b)
#line 335 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 337 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 346 "c:\\cuda\\include\\device_functions.h"
#line 339 "c:\\cuda\\include\\device_functions.h"
static __inline unsigned mulhi(int a, unsigned b)
#line 340 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 342 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 351 "c:\\cuda\\include\\device_functions.h"
#line 344 "c:\\cuda\\include\\device_functions.h"
static __inline unsigned mulhi(unsigned a, int b)
#line 345 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 347 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 356 "c:\\cuda\\include\\device_functions.h"
#line 349 "c:\\cuda\\include\\device_functions.h"
static __inline __int64 mul64hi(__int64 a, __int64 b)
#line 350 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 352 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 361 "c:\\cuda\\include\\device_functions.h"
#line 354 "c:\\cuda\\include\\device_functions.h"
static __inline unsigned __int64 mul64hi(unsigned __int64 a, unsigned __int64 b)
#line 355 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 357 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 366 "c:\\cuda\\include\\device_functions.h"
#line 359 "c:\\cuda\\include\\device_functions.h"
static __inline unsigned __int64 mul64hi(__int64 a, unsigned __int64 b)
#line 360 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 362 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 371 "c:\\cuda\\include\\device_functions.h"
#line 364 "c:\\cuda\\include\\device_functions.h"
static __inline unsigned __int64 mul64hi(unsigned __int64 a, __int64 b)
#line 365 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 367 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 376 "c:\\cuda\\include\\device_functions.h"
#line 369 "c:\\cuda\\include\\device_functions.h"
static __inline int float_as_int(float a)
#line 370 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 372 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 381 "c:\\cuda\\include\\device_functions.h"
#line 374 "c:\\cuda\\include\\device_functions.h"
static __inline float int_as_float(int a)
#line 375 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 377 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 386 "c:\\cuda\\include\\device_functions.h"
#line 379 "c:\\cuda\\include\\device_functions.h"
static __inline float saturate(float a)
#line 380 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 382 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 391 "c:\\cuda\\include\\device_functions.h"
#line 384 "c:\\cuda\\include\\device_functions.h"
static __inline int mul24(int a, int b)
#line 385 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 387 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 396 "c:\\cuda\\include\\device_functions.h"
#line 389 "c:\\cuda\\include\\device_functions.h"
static __inline unsigned umul24(unsigned a, unsigned b)
#line 390 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 392 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 401 "c:\\cuda\\include\\device_functions.h"
#line 394 "c:\\cuda\\include\\device_functions.h"
static __inline void trap()
#line 395 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 397 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 406 "c:\\cuda\\include\\device_functions.h"
#line 399 "c:\\cuda\\include\\device_functions.h"
static __inline void brkpt(int c)
#line 400 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 402 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 411 "c:\\cuda\\include\\device_functions.h"
#line 404 "c:\\cuda\\include\\device_functions.h"
static __inline void syncthreads()
#line 405 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 407 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 416 "c:\\cuda\\include\\device_functions.h"
#line 409 "c:\\cuda\\include\\device_functions.h"
static __inline void prof_trigger(int e)
#line 410 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 427 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 466 "c:\\cuda\\include\\device_functions.h"
#line 429 "c:\\cuda\\include\\device_functions.h"
static __inline void threadfence(bool global)
#line 430 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 432 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 441 "c:\\cuda\\include\\device_functions.h"
#line 434 "c:\\cuda\\include\\device_functions.h"
static __inline int float2int(float a, cudaRoundMode mode)
#line 435 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 440 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 449 "c:\\cuda\\include\\device_functions.h"
#line 442 "c:\\cuda\\include\\device_functions.h"
static __inline unsigned float2uint(float a, cudaRoundMode mode)
#line 443 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 448 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 457 "c:\\cuda\\include\\device_functions.h"
#line 450 "c:\\cuda\\include\\device_functions.h"
static __inline float int2float(int a, cudaRoundMode mode)
#line 451 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 456 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 465 "c:\\cuda\\include\\device_functions.h"
#line 458 "c:\\cuda\\include\\device_functions.h"
static __inline float uint2float(unsigned a, cudaRoundMode mode)
#line 459 "c:\\cuda\\include\\device_functions.h"
{int volatile ___ = 1;
#line 464 "c:\\cuda\\include\\device_functions.h"
exit(___);}
#line 473 "c:\\cuda\\include\\device_functions.h"
#line 102 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline int atomicAdd(int *address, int val)
#line 103 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 105 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 114 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 107 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline unsigned atomicAdd(unsigned *address, unsigned val)
#line 108 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 110 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 119 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 112 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline int atomicSub(int *address, int val)
#line 113 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 115 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 124 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 117 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline unsigned atomicSub(unsigned *address, unsigned val)
#line 118 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 120 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 129 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 122 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline int atomicExch(int *address, int val)
#line 123 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 125 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 134 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 127 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline unsigned atomicExch(unsigned *address, unsigned val)
#line 128 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 130 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 139 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 132 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline float atomicExch(float *address, float val)
#line 133 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 135 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 144 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 137 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline int atomicMin(int *address, int val)
#line 138 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 140 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 149 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 142 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline unsigned atomicMin(unsigned *address, unsigned val)
#line 143 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 145 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 154 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 147 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline int atomicMax(int *address, int val)
#line 148 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 150 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 159 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 152 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline unsigned atomicMax(unsigned *address, unsigned val)
#line 153 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 155 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 164 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 157 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline unsigned atomicInc(unsigned *address, unsigned val)
#line 158 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 160 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 169 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 162 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline unsigned atomicDec(unsigned *address, unsigned val)
#line 163 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 165 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 174 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 167 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline int atomicAnd(int *address, int val)
#line 168 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 170 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 179 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 172 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline unsigned atomicAnd(unsigned *address, unsigned val)
#line 173 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 175 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 184 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 177 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline int atomicOr(int *address, int val)
#line 178 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 180 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 189 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 182 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline unsigned atomicOr(unsigned *address, unsigned val)
#line 183 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 185 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 194 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 187 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline int atomicXor(int *address, int val)
#line 188 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 190 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 199 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 192 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline unsigned atomicXor(unsigned *address, unsigned val)
#line 193 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 195 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 204 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 197 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline int atomicCAS(int *address, int compare, int val)
#line 198 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 200 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 209 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 202 "c:\\cuda\\include\\sm_11_atomic_functions.h"
static __inline unsigned atomicCAS(unsigned *address, unsigned compare, unsigned val)
#line 203 "c:\\cuda\\include\\sm_11_atomic_functions.h"
{int volatile ___ = 1;
#line 205 "c:\\cuda\\include\\sm_11_atomic_functions.h"
exit(___);}
#line 214 "c:\\cuda\\include\\sm_11_atomic_functions.h"
#line 75 "c:\\cuda\\include\\sm_12_atomic_functions.h"
static __inline unsigned __int64 atomicAdd(unsigned __int64 *address, unsigned __int64 val)
#line 76 "c:\\cuda\\include\\sm_12_atomic_functions.h"
{int volatile ___ = 1;
#line 78 "c:\\cuda\\include\\sm_12_atomic_functions.h"
exit(___);}
#line 87 "c:\\cuda\\include\\sm_12_atomic_functions.h"
#line 80 "c:\\cuda\\include\\sm_12_atomic_functions.h"
static __inline unsigned __int64 atomicExch(unsigned __int64 *address, unsigned __int64 val)
#line 81 "c:\\cuda\\include\\sm_12_atomic_functions.h"
{int volatile ___ = 1;
#line 83 "c:\\cuda\\include\\sm_12_atomic_functions.h"
exit(___);}
#line 92 "c:\\cuda\\include\\sm_12_atomic_functions.h"
#line 85 "c:\\cuda\\include\\sm_12_atomic_functions.h"
static __inline unsigned __int64 atomicCAS(unsigned __int64 *address, unsigned __int64 compare, unsigned __int64 val)
#line 86 "c:\\cuda\\include\\sm_12_atomic_functions.h"
{int volatile ___ = 1;
#line 88 "c:\\cuda\\include\\sm_12_atomic_functions.h"
exit(___);}
#line 97 "c:\\cuda\\include\\sm_12_atomic_functions.h"
#line 90 "c:\\cuda\\include\\sm_12_atomic_functions.h"
static __inline bool any(bool cond)
#line 91 "c:\\cuda\\include\\sm_12_atomic_functions.h"
{int volatile ___ = 1;
#line 93 "c:\\cuda\\include\\sm_12_atomic_functions.h"
exit(___);}
#line 102 "c:\\cuda\\include\\sm_12_atomic_functions.h"
#line 95 "c:\\cuda\\include\\sm_12_atomic_functions.h"
static __inline bool all(bool cond)
#line 96 "c:\\cuda\\include\\sm_12_atomic_functions.h"
{int volatile ___ = 1;
#line 98 "c:\\cuda\\include\\sm_12_atomic_functions.h"
exit(___);}
#line 107 "c:\\cuda\\include\\sm_12_atomic_functions.h"
#line 170 "c:\\cuda\\include\\sm_13_double_functions.h"
static __inline double fma(double a, double b, double c, cudaRoundMode mode)
#line 171 "c:\\cuda\\include\\sm_13_double_functions.h"
{int volatile ___ = 1;
#line 176 "c:\\cuda\\include\\sm_13_double_functions.h"
exit(___);}
#line 185 "c:\\cuda\\include\\sm_13_double_functions.h"
#line 178 "c:\\cuda\\include\\sm_13_double_functions.h"
static __inline double dmul(double a, double b, cudaRoundMode mode)
#line 179 "c:\\cuda\\include\\sm_13_double_functions.h"
{int volatile ___ = 1;
#line 184 "c:\\cuda\\include\\sm_13_double_functions.h"
exit(___);}
#line 193 "c:\\cuda\\include\\sm_13_double_functions.h"
#line 186 "c:\\cuda\\include\\sm_13_double_functions.h"
static __inline double dadd(double a, double b, cudaRoundMode mode)
#line 187 "c:\\cuda\\include\\sm_13_double_functions.h"
{int volatile ___ = 1;
#line 192 "c:\\cuda\\include\\sm_13_double_functions.h"
exit(___);}
#line 201 "c:\\cuda\\include\\sm_13_double_functions.h"
#line 194 "c:\\cuda\\include\\sm_13_double_functions.h"
static __inline int double2int(double a, cudaRoundMode mode)
#line 195 "c:\\cuda\\include\\sm_13_double_functions.h"
{int volatile ___ = 1;
#line 200 "c:\\cuda\\include\\sm_13_double_functions.h"
exit(___);}
#line 209 "c:\\cuda\\include\\sm_13_double_functions.h"
#line 202 "c:\\cuda\\include\\sm_13_double_functions.h"
static __inline unsigned double2uint(double a, cudaRoundMode mode)
#line 203 "c:\\cuda\\include\\sm_13_double_functions.h"
{int volatile ___ = 1;
#line 208 "c:\\cuda\\include\\sm_13_double_functions.h"
exit(___);}
#line 217 "c:\\cuda\\include\\sm_13_double_functions.h"
#line 210 "c:\\cuda\\include\\sm_13_double_functions.h"
static __inline __int64 double2ll(double a, cudaRoundMode mode)
#line 211 "c:\\cuda\\include\\sm_13_double_functions.h"
{int volatile ___ = 1;
#line 216 "c:\\cuda\\include\\sm_13_double_functions.h"
exit(___);}
#line 225 "c:\\cuda\\include\\sm_13_double_functions.h"
#line 218 "c:\\cuda\\include\\sm_13_double_functions.h"
static __inline unsigned __int64 double2ull(double a, cudaRoundMode mode)
#line 219 "c:\\cuda\\include\\sm_13_double_functions.h"
{int volatile ___ = 1;
#line 224 "c:\\cuda\\include\\sm_13_double_functions.h"
exit(___);}
#line 233 "c:\\cuda\\include\\sm_13_double_functions.h"
#line 226 "c:\\cuda\\include\\sm_13_double_functions.h"
static __inline double ll2double(__int64 a, cudaRoundMode mode)
#line 227 "c:\\cuda\\include\\sm_13_double_functions.h"
{int volatile ___ = 1;
#line 232 "c:\\cuda\\include\\sm_13_double_functions.h"
exit(___);}
#line 241 "c:\\cuda\\include\\sm_13_double_functions.h"
#line 234 "c:\\cuda\\include\\sm_13_double_functions.h"
static __inline double ull2double(unsigned __int64 a, cudaRoundMode mode)
#line 235 "c:\\cuda\\include\\sm_13_double_functions.h"
{int volatile ___ = 1;
#line 240 "c:\\cuda\\include\\sm_13_double_functions.h"
exit(___);}
#line 249 "c:\\cuda\\include\\sm_13_double_functions.h"
#line 242 "c:\\cuda\\include\\sm_13_double_functions.h"
static __inline double int2double(int a, cudaRoundMode mode)
#line 243 "c:\\cuda\\include\\sm_13_double_functions.h"
{int volatile ___ = 1;
#line 245 "c:\\cuda\\include\\sm_13_double_functions.h"
exit(___);}
#line 254 "c:\\cuda\\include\\sm_13_double_functions.h"
#line 247 "c:\\cuda\\include\\sm_13_double_functions.h"
static __inline double uint2double(unsigned a, cudaRoundMode mode)
#line 248 "c:\\cuda\\include\\sm_13_double_functions.h"
{int volatile ___ = 1;
#line 250 "c:\\cuda\\include\\sm_13_double_functions.h"
exit(___);}
#line 259 "c:\\cuda\\include\\sm_13_double_functions.h"
#line 252 "c:\\cuda\\include\\sm_13_double_functions.h"
static __inline double float2double(float a, cudaRoundMode mode)
#line 253 "c:\\cuda\\include\\sm_13_double_functions.h"
{int volatile ___ = 1;
#line 255 "c:\\cuda\\include\\sm_13_double_functions.h"
exit(___);}
#line 264 "c:\\cuda\\include\\sm_13_double_functions.h"
#line 66 "c:\\cuda\\include\\sm_20_atomic_functions.h"
static __inline float atomicAdd(float *address, float val)
#line 67 "c:\\cuda\\include\\sm_20_atomic_functions.h"
{int volatile ___ = 1;
#line 69 "c:\\cuda\\include\\sm_20_atomic_functions.h"
exit(___);}
#line 78 "c:\\cuda\\include\\sm_20_atomic_functions.h"
#line 124 "c:\\cuda\\include\\sm_20_intrinsics.h"
static __inline unsigned ballot(bool pred)
#line 125 "c:\\cuda\\include\\sm_20_intrinsics.h"
{int volatile ___ = 1;
#line 127 "c:\\cuda\\include\\sm_20_intrinsics.h"
exit(___);}
#line 136 "c:\\cuda\\include\\sm_20_intrinsics.h"
#line 129 "c:\\cuda\\include\\sm_20_intrinsics.h"
static __inline int syncthreads_count(bool pred)
#line 130 "c:\\cuda\\include\\sm_20_intrinsics.h"
{int volatile ___ = 1;
#line 132 "c:\\cuda\\include\\sm_20_intrinsics.h"
exit(___);}
#line 141 "c:\\cuda\\include\\sm_20_intrinsics.h"
#line 134 "c:\\cuda\\include\\sm_20_intrinsics.h"
static __inline bool syncthreads_and(bool pred)
#line 135 "c:\\cuda\\include\\sm_20_intrinsics.h"
{int volatile ___ = 1;
#line 137 "c:\\cuda\\include\\sm_20_intrinsics.h"
exit(___);}
#line 146 "c:\\cuda\\include\\sm_20_intrinsics.h"
#line 139 "c:\\cuda\\include\\sm_20_intrinsics.h"
static __inline bool syncthreads_or(bool pred)
#line 140 "c:\\cuda\\include\\sm_20_intrinsics.h"
{int volatile ___ = 1;
#line 142 "c:\\cuda\\include\\sm_20_intrinsics.h"
exit(___);}
#line 151 "c:\\cuda\\include\\sm_20_intrinsics.h"
#line 97 "c:\\cuda\\include\\surface_functions.h"
template<class T> static __inline void
#line 98 "c:\\cuda\\include\\surface_functions.h"
surf1Dread(T *res, surface< void, 1> surf, int x, int s, cudaSurfaceBoundaryMode mode)
#line 99 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 106 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 115 "c:\\cuda\\include\\surface_functions.h"
#line 108 "c:\\cuda\\include\\surface_functions.h"
template<class T> static __inline T
#line 109 "c:\\cuda\\include\\surface_functions.h"
surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 110 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 116 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 129 "c:\\cuda\\include\\surface_functions.h"
#line 118 "c:\\cuda\\include\\surface_functions.h"
template<class T> static __inline void
#line 119 "c:\\cuda\\include\\surface_functions.h"
surf1Dread(T *res, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 120 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 122 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 131 "c:\\cuda\\include\\surface_functions.h"
#line 125 "c:\\cuda\\include\\surface_functions.h"
template<> __inline char surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 126 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 128 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 137 "c:\\cuda\\include\\surface_functions.h"
#line 131 "c:\\cuda\\include\\surface_functions.h"
template<> __inline signed char surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 132 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 134 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 143 "c:\\cuda\\include\\surface_functions.h"
#line 137 "c:\\cuda\\include\\surface_functions.h"
template<> __inline unsigned char surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 138 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 140 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 149 "c:\\cuda\\include\\surface_functions.h"
#line 143 "c:\\cuda\\include\\surface_functions.h"
template<> __inline char1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 144 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 146 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 155 "c:\\cuda\\include\\surface_functions.h"
#line 149 "c:\\cuda\\include\\surface_functions.h"
template<> __inline uchar1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 150 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 152 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 161 "c:\\cuda\\include\\surface_functions.h"
#line 155 "c:\\cuda\\include\\surface_functions.h"
template<> __inline char2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 156 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 160 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 171 "c:\\cuda\\include\\surface_functions.h"
#line 163 "c:\\cuda\\include\\surface_functions.h"
template<> __inline uchar2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 164 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 166 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 175 "c:\\cuda\\include\\surface_functions.h"
#line 169 "c:\\cuda\\include\\surface_functions.h"
template<> __inline char4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 170 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 174 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 185 "c:\\cuda\\include\\surface_functions.h"
#line 177 "c:\\cuda\\include\\surface_functions.h"
template<> __inline uchar4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 178 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 180 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 189 "c:\\cuda\\include\\surface_functions.h"
#line 183 "c:\\cuda\\include\\surface_functions.h"
template<> __inline short surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 184 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 186 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 195 "c:\\cuda\\include\\surface_functions.h"
#line 189 "c:\\cuda\\include\\surface_functions.h"
template<> __inline unsigned short surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 190 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 192 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 201 "c:\\cuda\\include\\surface_functions.h"
#line 195 "c:\\cuda\\include\\surface_functions.h"
template<> __inline short1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 196 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 198 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 207 "c:\\cuda\\include\\surface_functions.h"
#line 201 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ushort1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 202 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 204 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 213 "c:\\cuda\\include\\surface_functions.h"
#line 207 "c:\\cuda\\include\\surface_functions.h"
template<> __inline short2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 208 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 212 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 223 "c:\\cuda\\include\\surface_functions.h"
#line 215 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ushort2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 216 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 218 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 227 "c:\\cuda\\include\\surface_functions.h"
#line 221 "c:\\cuda\\include\\surface_functions.h"
template<> __inline short4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 222 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 226 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 237 "c:\\cuda\\include\\surface_functions.h"
#line 229 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ushort4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 230 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 232 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 241 "c:\\cuda\\include\\surface_functions.h"
#line 235 "c:\\cuda\\include\\surface_functions.h"
template<> __inline int surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 236 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 238 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 247 "c:\\cuda\\include\\surface_functions.h"
#line 241 "c:\\cuda\\include\\surface_functions.h"
template<> __inline unsigned surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 242 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 244 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 253 "c:\\cuda\\include\\surface_functions.h"
#line 247 "c:\\cuda\\include\\surface_functions.h"
template<> __inline int1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 248 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 250 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 259 "c:\\cuda\\include\\surface_functions.h"
#line 253 "c:\\cuda\\include\\surface_functions.h"
template<> __inline uint1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 254 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 256 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 265 "c:\\cuda\\include\\surface_functions.h"
#line 259 "c:\\cuda\\include\\surface_functions.h"
template<> __inline int2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 260 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 264 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 275 "c:\\cuda\\include\\surface_functions.h"
#line 267 "c:\\cuda\\include\\surface_functions.h"
template<> __inline uint2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 268 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 270 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 279 "c:\\cuda\\include\\surface_functions.h"
#line 273 "c:\\cuda\\include\\surface_functions.h"
template<> __inline int4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 274 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 278 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 289 "c:\\cuda\\include\\surface_functions.h"
#line 281 "c:\\cuda\\include\\surface_functions.h"
template<> __inline uint4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 282 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 284 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 293 "c:\\cuda\\include\\surface_functions.h"
#line 287 "c:\\cuda\\include\\surface_functions.h"
template<> __inline __int64 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 288 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 290 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 299 "c:\\cuda\\include\\surface_functions.h"
#line 293 "c:\\cuda\\include\\surface_functions.h"
template<> __inline unsigned __int64 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 294 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 296 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 305 "c:\\cuda\\include\\surface_functions.h"
#line 299 "c:\\cuda\\include\\surface_functions.h"
template<> __inline longlong1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 300 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 302 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 311 "c:\\cuda\\include\\surface_functions.h"
#line 305 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ulonglong1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 306 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 308 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 317 "c:\\cuda\\include\\surface_functions.h"
#line 311 "c:\\cuda\\include\\surface_functions.h"
template<> __inline longlong2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 312 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 316 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 327 "c:\\cuda\\include\\surface_functions.h"
#line 319 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ulonglong2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 320 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 322 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 331 "c:\\cuda\\include\\surface_functions.h"
#line 327 "c:\\cuda\\include\\surface_functions.h"
template<> __inline long surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 328 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 330 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 339 "c:\\cuda\\include\\surface_functions.h"
#line 333 "c:\\cuda\\include\\surface_functions.h"
template<> __inline unsigned long surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 334 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 336 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 345 "c:\\cuda\\include\\surface_functions.h"
#line 339 "c:\\cuda\\include\\surface_functions.h"
template<> __inline long1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 340 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 342 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 351 "c:\\cuda\\include\\surface_functions.h"
#line 345 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ulong1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 346 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 348 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 357 "c:\\cuda\\include\\surface_functions.h"
#line 351 "c:\\cuda\\include\\surface_functions.h"
template<> __inline long2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 352 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 356 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 367 "c:\\cuda\\include\\surface_functions.h"
#line 359 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ulong2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 360 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 364 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 375 "c:\\cuda\\include\\surface_functions.h"
#line 367 "c:\\cuda\\include\\surface_functions.h"
template<> __inline long4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 368 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 372 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 383 "c:\\cuda\\include\\surface_functions.h"
#line 375 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ulong4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 376 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 380 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 391 "c:\\cuda\\include\\surface_functions.h"
#line 385 "c:\\cuda\\include\\surface_functions.h"
template<> __inline float surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 386 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 388 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 397 "c:\\cuda\\include\\surface_functions.h"
#line 391 "c:\\cuda\\include\\surface_functions.h"
template<> __inline float1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 392 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 394 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 403 "c:\\cuda\\include\\surface_functions.h"
#line 397 "c:\\cuda\\include\\surface_functions.h"
template<> __inline float2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 398 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 402 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 413 "c:\\cuda\\include\\surface_functions.h"
#line 405 "c:\\cuda\\include\\surface_functions.h"
template<> __inline float4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 406 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 410 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 421 "c:\\cuda\\include\\surface_functions.h"
#line 457 "c:\\cuda\\include\\surface_functions.h"
template<class T> static __inline void
#line 458 "c:\\cuda\\include\\surface_functions.h"
surf2Dread(T *res, surface< void, 2> surf, int x, int y, int s, cudaSurfaceBoundaryMode mode)
#line 459 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 466 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 475 "c:\\cuda\\include\\surface_functions.h"
#line 468 "c:\\cuda\\include\\surface_functions.h"
template<class T> static __inline T
#line 469 "c:\\cuda\\include\\surface_functions.h"
surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 470 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 476 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 489 "c:\\cuda\\include\\surface_functions.h"
#line 478 "c:\\cuda\\include\\surface_functions.h"
template<class T> static __inline void
#line 479 "c:\\cuda\\include\\surface_functions.h"
surf2Dread(T *res, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 480 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 482 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 491 "c:\\cuda\\include\\surface_functions.h"
#line 485 "c:\\cuda\\include\\surface_functions.h"
template<> __inline char surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 486 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 488 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 497 "c:\\cuda\\include\\surface_functions.h"
#line 491 "c:\\cuda\\include\\surface_functions.h"
template<> __inline signed char surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 492 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 494 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 503 "c:\\cuda\\include\\surface_functions.h"
#line 497 "c:\\cuda\\include\\surface_functions.h"
template<> __inline unsigned char surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 498 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 500 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 509 "c:\\cuda\\include\\surface_functions.h"
#line 503 "c:\\cuda\\include\\surface_functions.h"
template<> __inline char1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 504 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 506 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 515 "c:\\cuda\\include\\surface_functions.h"
#line 509 "c:\\cuda\\include\\surface_functions.h"
template<> __inline uchar1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 510 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 512 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 521 "c:\\cuda\\include\\surface_functions.h"
#line 515 "c:\\cuda\\include\\surface_functions.h"
template<> __inline char2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 516 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 520 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 531 "c:\\cuda\\include\\surface_functions.h"
#line 523 "c:\\cuda\\include\\surface_functions.h"
template<> __inline uchar2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 524 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 526 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 535 "c:\\cuda\\include\\surface_functions.h"
#line 529 "c:\\cuda\\include\\surface_functions.h"
template<> __inline char4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 530 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 534 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 545 "c:\\cuda\\include\\surface_functions.h"
#line 537 "c:\\cuda\\include\\surface_functions.h"
template<> __inline uchar4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 538 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 540 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 549 "c:\\cuda\\include\\surface_functions.h"
#line 543 "c:\\cuda\\include\\surface_functions.h"
template<> __inline short surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 544 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 546 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 555 "c:\\cuda\\include\\surface_functions.h"
#line 549 "c:\\cuda\\include\\surface_functions.h"
template<> __inline unsigned short surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 550 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 552 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 561 "c:\\cuda\\include\\surface_functions.h"
#line 555 "c:\\cuda\\include\\surface_functions.h"
template<> __inline short1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 556 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 558 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 567 "c:\\cuda\\include\\surface_functions.h"
#line 561 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ushort1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 562 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 564 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 573 "c:\\cuda\\include\\surface_functions.h"
#line 567 "c:\\cuda\\include\\surface_functions.h"
template<> __inline short2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 568 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 572 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 583 "c:\\cuda\\include\\surface_functions.h"
#line 575 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ushort2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 576 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 578 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 587 "c:\\cuda\\include\\surface_functions.h"
#line 581 "c:\\cuda\\include\\surface_functions.h"
template<> __inline short4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 582 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 586 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 597 "c:\\cuda\\include\\surface_functions.h"
#line 589 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ushort4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 590 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 592 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 601 "c:\\cuda\\include\\surface_functions.h"
#line 595 "c:\\cuda\\include\\surface_functions.h"
template<> __inline int surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 596 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 598 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 607 "c:\\cuda\\include\\surface_functions.h"
#line 601 "c:\\cuda\\include\\surface_functions.h"
template<> __inline unsigned surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 602 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 604 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 613 "c:\\cuda\\include\\surface_functions.h"
#line 607 "c:\\cuda\\include\\surface_functions.h"
template<> __inline int1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 608 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 610 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 619 "c:\\cuda\\include\\surface_functions.h"
#line 613 "c:\\cuda\\include\\surface_functions.h"
template<> __inline uint1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 614 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 616 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 625 "c:\\cuda\\include\\surface_functions.h"
#line 619 "c:\\cuda\\include\\surface_functions.h"
template<> __inline int2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 620 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 624 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 635 "c:\\cuda\\include\\surface_functions.h"
#line 627 "c:\\cuda\\include\\surface_functions.h"
template<> __inline uint2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 628 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 630 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 639 "c:\\cuda\\include\\surface_functions.h"
#line 633 "c:\\cuda\\include\\surface_functions.h"
template<> __inline int4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 634 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 638 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 649 "c:\\cuda\\include\\surface_functions.h"
#line 641 "c:\\cuda\\include\\surface_functions.h"
template<> __inline uint4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 642 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 644 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 653 "c:\\cuda\\include\\surface_functions.h"
#line 647 "c:\\cuda\\include\\surface_functions.h"
template<> __inline __int64 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 648 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 650 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 659 "c:\\cuda\\include\\surface_functions.h"
#line 653 "c:\\cuda\\include\\surface_functions.h"
template<> __inline unsigned __int64 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 654 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 656 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 665 "c:\\cuda\\include\\surface_functions.h"
#line 659 "c:\\cuda\\include\\surface_functions.h"
template<> __inline longlong1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 660 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 662 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 671 "c:\\cuda\\include\\surface_functions.h"
#line 665 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ulonglong1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 666 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 668 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 677 "c:\\cuda\\include\\surface_functions.h"
#line 671 "c:\\cuda\\include\\surface_functions.h"
template<> __inline longlong2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 672 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 676 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 687 "c:\\cuda\\include\\surface_functions.h"
#line 679 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ulonglong2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 680 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 682 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 691 "c:\\cuda\\include\\surface_functions.h"
#line 687 "c:\\cuda\\include\\surface_functions.h"
template<> __inline long surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 688 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 690 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 699 "c:\\cuda\\include\\surface_functions.h"
#line 693 "c:\\cuda\\include\\surface_functions.h"
template<> __inline unsigned long surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 694 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 696 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 705 "c:\\cuda\\include\\surface_functions.h"
#line 699 "c:\\cuda\\include\\surface_functions.h"
template<> __inline long1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 700 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 702 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 711 "c:\\cuda\\include\\surface_functions.h"
#line 705 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ulong1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 706 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 708 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 717 "c:\\cuda\\include\\surface_functions.h"
#line 711 "c:\\cuda\\include\\surface_functions.h"
template<> __inline long2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 712 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 716 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 727 "c:\\cuda\\include\\surface_functions.h"
#line 719 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ulong2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 720 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 724 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 735 "c:\\cuda\\include\\surface_functions.h"
#line 727 "c:\\cuda\\include\\surface_functions.h"
template<> __inline long4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 728 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 732 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 743 "c:\\cuda\\include\\surface_functions.h"
#line 735 "c:\\cuda\\include\\surface_functions.h"
template<> __inline ulong4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 736 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 740 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 751 "c:\\cuda\\include\\surface_functions.h"
#line 745 "c:\\cuda\\include\\surface_functions.h"
template<> __inline float surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 746 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 748 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 757 "c:\\cuda\\include\\surface_functions.h"
#line 751 "c:\\cuda\\include\\surface_functions.h"
template<> __inline float1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 752 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 754 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 763 "c:\\cuda\\include\\surface_functions.h"
#line 757 "c:\\cuda\\include\\surface_functions.h"
template<> __inline float2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 758 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 762 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 773 "c:\\cuda\\include\\surface_functions.h"
#line 765 "c:\\cuda\\include\\surface_functions.h"
template<> __inline float4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 766 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 770 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 781 "c:\\cuda\\include\\surface_functions.h"
#line 817 "c:\\cuda\\include\\surface_functions.h"
template<class T> static __inline void
#line 818 "c:\\cuda\\include\\surface_functions.h"
surf1Dwrite(T val, surface< void, 1> surf, int x, int s, cudaSurfaceBoundaryMode mode)
#line 819 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 837 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 864 "c:\\cuda\\include\\surface_functions.h"
#line 839 "c:\\cuda\\include\\surface_functions.h"
template<class T> static __inline void
#line 840 "c:\\cuda\\include\\surface_functions.h"
surf1Dwrite(T val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 841 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 843 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 852 "c:\\cuda\\include\\surface_functions.h"
#line 846 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(char val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 847 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 849 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 858 "c:\\cuda\\include\\surface_functions.h"
#line 851 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(signed char val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 852 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 854 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 863 "c:\\cuda\\include\\surface_functions.h"
#line 856 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(unsigned char val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 857 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 859 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 868 "c:\\cuda\\include\\surface_functions.h"
#line 861 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(char1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 862 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 864 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 873 "c:\\cuda\\include\\surface_functions.h"
#line 866 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(uchar1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 867 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 869 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 878 "c:\\cuda\\include\\surface_functions.h"
#line 871 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(char2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 872 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 874 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 883 "c:\\cuda\\include\\surface_functions.h"
#line 876 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(uchar2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 877 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 879 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 888 "c:\\cuda\\include\\surface_functions.h"
#line 881 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(char4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 882 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 884 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 893 "c:\\cuda\\include\\surface_functions.h"
#line 886 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(uchar4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 887 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 889 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 898 "c:\\cuda\\include\\surface_functions.h"
#line 891 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(short val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 892 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 894 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 903 "c:\\cuda\\include\\surface_functions.h"
#line 896 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(unsigned short val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 897 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 899 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 908 "c:\\cuda\\include\\surface_functions.h"
#line 901 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(short1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 902 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 904 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 913 "c:\\cuda\\include\\surface_functions.h"
#line 906 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(ushort1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 907 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 909 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 918 "c:\\cuda\\include\\surface_functions.h"
#line 911 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(short2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 912 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 914 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 923 "c:\\cuda\\include\\surface_functions.h"
#line 916 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(ushort2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 917 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 919 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 928 "c:\\cuda\\include\\surface_functions.h"
#line 921 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(short4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 922 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 924 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 933 "c:\\cuda\\include\\surface_functions.h"
#line 926 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(ushort4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 927 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 929 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 938 "c:\\cuda\\include\\surface_functions.h"
#line 931 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(int val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 932 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 934 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 943 "c:\\cuda\\include\\surface_functions.h"
#line 936 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(unsigned val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 937 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 939 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 948 "c:\\cuda\\include\\surface_functions.h"
#line 941 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(int1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 942 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 944 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 953 "c:\\cuda\\include\\surface_functions.h"
#line 946 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(uint1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 947 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 949 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 958 "c:\\cuda\\include\\surface_functions.h"
#line 951 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(int2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 952 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 954 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 963 "c:\\cuda\\include\\surface_functions.h"
#line 956 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(uint2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 957 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 959 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 968 "c:\\cuda\\include\\surface_functions.h"
#line 961 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(int4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 962 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 964 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 973 "c:\\cuda\\include\\surface_functions.h"
#line 966 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(uint4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 967 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 969 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 978 "c:\\cuda\\include\\surface_functions.h"
#line 971 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(__int64 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 972 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 974 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 983 "c:\\cuda\\include\\surface_functions.h"
#line 976 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(unsigned __int64 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 977 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 979 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 988 "c:\\cuda\\include\\surface_functions.h"
#line 981 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(longlong1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 982 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 984 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 993 "c:\\cuda\\include\\surface_functions.h"
#line 986 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(ulonglong1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 987 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 989 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 998 "c:\\cuda\\include\\surface_functions.h"
#line 991 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(longlong2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 992 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 994 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1003 "c:\\cuda\\include\\surface_functions.h"
#line 996 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(ulonglong2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 997 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 999 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1008 "c:\\cuda\\include\\surface_functions.h"
#line 1003 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(long val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 1004 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1006 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1015 "c:\\cuda\\include\\surface_functions.h"
#line 1008 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(unsigned long val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 1009 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1011 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1020 "c:\\cuda\\include\\surface_functions.h"
#line 1013 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(long1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 1014 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1016 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1025 "c:\\cuda\\include\\surface_functions.h"
#line 1018 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(ulong1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 1019 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1021 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1030 "c:\\cuda\\include\\surface_functions.h"
#line 1023 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(long2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 1024 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1026 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1035 "c:\\cuda\\include\\surface_functions.h"
#line 1028 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(ulong2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 1029 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1031 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1040 "c:\\cuda\\include\\surface_functions.h"
#line 1033 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(long4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 1034 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1036 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1045 "c:\\cuda\\include\\surface_functions.h"
#line 1038 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(ulong4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 1039 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1041 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1050 "c:\\cuda\\include\\surface_functions.h"
#line 1045 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(float val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 1046 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1048 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1057 "c:\\cuda\\include\\surface_functions.h"
#line 1050 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(float1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 1051 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1053 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1062 "c:\\cuda\\include\\surface_functions.h"
#line 1055 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(float2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 1056 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1058 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1067 "c:\\cuda\\include\\surface_functions.h"
#line 1060 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf1Dwrite(float4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode)
#line 1061 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1063 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1072 "c:\\cuda\\include\\surface_functions.h"
#line 1110 "c:\\cuda\\include\\surface_functions.h"
template<class T> static __inline void
#line 1111 "c:\\cuda\\include\\surface_functions.h"
surf2Dwrite(T val, surface< void, 2> surf, int x, int y, int s, cudaSurfaceBoundaryMode mode)
#line 1112 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1130 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1157 "c:\\cuda\\include\\surface_functions.h"
#line 1132 "c:\\cuda\\include\\surface_functions.h"
template<class T> static __inline void
#line 1133 "c:\\cuda\\include\\surface_functions.h"
surf2Dwrite(T val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1134 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1136 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1145 "c:\\cuda\\include\\surface_functions.h"
#line 1139 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(char val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1140 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1142 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1151 "c:\\cuda\\include\\surface_functions.h"
#line 1144 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(signed char val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1145 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1147 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1156 "c:\\cuda\\include\\surface_functions.h"
#line 1149 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(unsigned char val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1150 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1152 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1161 "c:\\cuda\\include\\surface_functions.h"
#line 1154 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(char1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1155 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1157 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1166 "c:\\cuda\\include\\surface_functions.h"
#line 1159 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(uchar1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1160 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1162 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1171 "c:\\cuda\\include\\surface_functions.h"
#line 1164 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(char2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1165 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1167 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1176 "c:\\cuda\\include\\surface_functions.h"
#line 1169 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(uchar2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1170 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1172 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1181 "c:\\cuda\\include\\surface_functions.h"
#line 1174 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(char4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1175 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1177 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1186 "c:\\cuda\\include\\surface_functions.h"
#line 1179 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(uchar4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1180 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1182 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1191 "c:\\cuda\\include\\surface_functions.h"
#line 1184 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(short val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1185 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1187 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1196 "c:\\cuda\\include\\surface_functions.h"
#line 1189 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(unsigned short val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1190 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1192 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1201 "c:\\cuda\\include\\surface_functions.h"
#line 1194 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(short1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1195 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1197 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1206 "c:\\cuda\\include\\surface_functions.h"
#line 1199 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(ushort1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1200 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1202 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1211 "c:\\cuda\\include\\surface_functions.h"
#line 1204 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(short2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1205 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1207 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1216 "c:\\cuda\\include\\surface_functions.h"
#line 1209 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(ushort2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1210 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1212 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1221 "c:\\cuda\\include\\surface_functions.h"
#line 1214 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(short4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1215 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1217 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1226 "c:\\cuda\\include\\surface_functions.h"
#line 1219 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(ushort4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1220 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1222 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1231 "c:\\cuda\\include\\surface_functions.h"
#line 1224 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(int val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1225 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1227 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1236 "c:\\cuda\\include\\surface_functions.h"
#line 1229 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(unsigned val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1230 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1232 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1241 "c:\\cuda\\include\\surface_functions.h"
#line 1234 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(int1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1235 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1237 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1246 "c:\\cuda\\include\\surface_functions.h"
#line 1239 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(uint1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1240 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1242 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1251 "c:\\cuda\\include\\surface_functions.h"
#line 1244 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(int2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1245 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1247 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1256 "c:\\cuda\\include\\surface_functions.h"
#line 1249 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(uint2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1250 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1252 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1261 "c:\\cuda\\include\\surface_functions.h"
#line 1254 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(int4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1255 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1257 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1266 "c:\\cuda\\include\\surface_functions.h"
#line 1259 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(uint4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1260 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1262 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1271 "c:\\cuda\\include\\surface_functions.h"
#line 1264 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(__int64 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1265 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1267 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1276 "c:\\cuda\\include\\surface_functions.h"
#line 1269 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(unsigned __int64 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1270 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1272 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1281 "c:\\cuda\\include\\surface_functions.h"
#line 1274 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(longlong1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1275 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1277 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1286 "c:\\cuda\\include\\surface_functions.h"
#line 1279 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(ulonglong1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1280 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1282 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1291 "c:\\cuda\\include\\surface_functions.h"
#line 1284 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(longlong2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1285 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1287 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1296 "c:\\cuda\\include\\surface_functions.h"
#line 1289 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(ulonglong2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1290 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1292 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1301 "c:\\cuda\\include\\surface_functions.h"
#line 1296 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(long val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1297 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1299 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1308 "c:\\cuda\\include\\surface_functions.h"
#line 1301 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(unsigned long val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1302 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1304 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1313 "c:\\cuda\\include\\surface_functions.h"
#line 1306 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(long1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1307 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1309 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1318 "c:\\cuda\\include\\surface_functions.h"
#line 1311 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(ulong1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1312 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1314 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1323 "c:\\cuda\\include\\surface_functions.h"
#line 1316 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(long2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1317 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1319 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1328 "c:\\cuda\\include\\surface_functions.h"
#line 1321 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(ulong2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1322 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1324 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1333 "c:\\cuda\\include\\surface_functions.h"
#line 1326 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(long4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1327 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1329 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1338 "c:\\cuda\\include\\surface_functions.h"
#line 1331 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(ulong4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1332 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1334 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1343 "c:\\cuda\\include\\surface_functions.h"
#line 1338 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(float val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1339 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1341 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1350 "c:\\cuda\\include\\surface_functions.h"
#line 1343 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(float1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1344 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1346 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1355 "c:\\cuda\\include\\surface_functions.h"
#line 1348 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(float2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1349 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1351 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1360 "c:\\cuda\\include\\surface_functions.h"
#line 1353 "c:\\cuda\\include\\surface_functions.h"
static __inline void surf2Dwrite(float4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode)
#line 1354 "c:\\cuda\\include\\surface_functions.h"
{int volatile ___ = 1;
#line 1356 "c:\\cuda\\include\\surface_functions.h"
exit(___);}
#line 1365 "c:\\cuda\\include\\surface_functions.h"
#line 61 "c:\\cuda\\include\\texture_fetch_functions.h"
template<class T, cudaTextureReadMode readMode> extern uint4 __utexfetchi(texture< T, 1, readMode> , int4);
#line 63 "c:\\cuda\\include\\texture_fetch_functions.h"
template<class T, cudaTextureReadMode readMode> extern int4 __itexfetchi(texture< T, 1, readMode> , int4);
#line 65 "c:\\cuda\\include\\texture_fetch_functions.h"
template<class T, cudaTextureReadMode readMode> extern float4 __ftexfetchi(texture< T, 1, readMode> , int4);
#line 68 "c:\\cuda\\include\\texture_fetch_functions.h"
template<class T, int dim, cudaTextureReadMode readMode> extern uint4 __utexfetch(texture< T, dim, readMode> , float4, int);
#line 70 "c:\\cuda\\include\\texture_fetch_functions.h"
template<class T, int dim, cudaTextureReadMode readMode> extern int4 __itexfetch(texture< T, dim, readMode> , float4, int);
#line 72 "c:\\cuda\\include\\texture_fetch_functions.h"
template<class T, int dim, cudaTextureReadMode readMode> extern float4 __ftexfetch(texture< T, dim, readMode> , float4, int);
#line 80 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char tex1Dfetch(texture< char, 1, cudaReadModeElementType> t, int x)
#line 81 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 89 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 100 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 91 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline signed char tex1Dfetch(texture< signed char, 1, cudaReadModeElementType> t, int x)
#line 92 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 96 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 107 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 98 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned char tex1Dfetch(texture< unsigned char, 1, cudaReadModeElementType> t, int x)
#line 99 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 103 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 114 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 105 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char1 tex1Dfetch(texture< char1, 1, cudaReadModeElementType> t, int x)
#line 106 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 110 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 121 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 112 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uchar1 tex1Dfetch(texture< uchar1, 1, cudaReadModeElementType> t, int x)
#line 113 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 117 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 128 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 119 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char2 tex1Dfetch(texture< char2, 1, cudaReadModeElementType> t, int x)
#line 120 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 124 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 135 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 126 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uchar2 tex1Dfetch(texture< uchar2, 1, cudaReadModeElementType> t, int x)
#line 127 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 131 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 142 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 133 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char4 tex1Dfetch(texture< char4, 1, cudaReadModeElementType> t, int x)
#line 134 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 138 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 149 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 140 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uchar4 tex1Dfetch(texture< uchar4, 1, cudaReadModeElementType> t, int x)
#line 141 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 145 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 156 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 153 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short tex1Dfetch(texture< short, 1, cudaReadModeElementType> t, int x)
#line 154 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 158 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 169 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 160 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned short tex1Dfetch(texture< unsigned short, 1, cudaReadModeElementType> t, int x)
#line 161 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 165 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 176 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 167 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short1 tex1Dfetch(texture< short1, 1, cudaReadModeElementType> t, int x)
#line 168 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 172 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 183 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 174 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ushort1 tex1Dfetch(texture< ushort1, 1, cudaReadModeElementType> t, int x)
#line 175 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 179 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 190 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 181 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short2 tex1Dfetch(texture< short2, 1, cudaReadModeElementType> t, int x)
#line 182 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 186 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 197 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 188 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ushort2 tex1Dfetch(texture< ushort2, 1, cudaReadModeElementType> t, int x)
#line 189 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 193 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 204 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 195 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short4 tex1Dfetch(texture< short4, 1, cudaReadModeElementType> t, int x)
#line 196 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 200 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 211 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 202 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ushort4 tex1Dfetch(texture< ushort4, 1, cudaReadModeElementType> t, int x)
#line 203 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 207 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 218 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 215 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int tex1Dfetch(texture< int, 1, cudaReadModeElementType> t, int x)
#line 216 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 220 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 231 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 222 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned tex1Dfetch(texture< unsigned, 1, cudaReadModeElementType> t, int x)
#line 223 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 227 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 238 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 229 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int1 tex1Dfetch(texture< int1, 1, cudaReadModeElementType> t, int x)
#line 230 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 234 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 245 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 236 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uint1 tex1Dfetch(texture< uint1, 1, cudaReadModeElementType> t, int x)
#line 237 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 241 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 252 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 243 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int2 tex1Dfetch(texture< int2, 1, cudaReadModeElementType> t, int x)
#line 244 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 248 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 259 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 250 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uint2 tex1Dfetch(texture< uint2, 1, cudaReadModeElementType> t, int x)
#line 251 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 255 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 266 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 257 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int4 tex1Dfetch(texture< int4, 1, cudaReadModeElementType> t, int x)
#line 258 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 262 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 273 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 264 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uint4 tex1Dfetch(texture< uint4, 1, cudaReadModeElementType> t, int x)
#line 265 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 269 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 280 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 279 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long tex1Dfetch(texture< long, 1, cudaReadModeElementType> t, int x)
#line 280 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 284 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 295 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 286 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned long tex1Dfetch(texture< unsigned long, 1, cudaReadModeElementType> t, int x)
#line 287 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 291 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 302 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 293 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long1 tex1Dfetch(texture< long1, 1, cudaReadModeElementType> t, int x)
#line 294 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 298 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 309 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 300 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ulong1 tex1Dfetch(texture< ulong1, 1, cudaReadModeElementType> t, int x)
#line 301 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 305 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 316 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 307 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long2 tex1Dfetch(texture< long2, 1, cudaReadModeElementType> t, int x)
#line 308 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 312 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 323 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 314 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ulong2 tex1Dfetch(texture< ulong2, 1, cudaReadModeElementType> t, int x)
#line 315 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 319 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 330 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 321 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long4 tex1Dfetch(texture< long4, 1, cudaReadModeElementType> t, int x)
#line 322 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 326 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 337 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 328 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ulong4 tex1Dfetch(texture< ulong4, 1, cudaReadModeElementType> t, int x)
#line 329 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 333 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 344 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 343 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex1Dfetch(texture< float, 1, cudaReadModeElementType> t, int x)
#line 344 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 348 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 359 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 350 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex1Dfetch(texture< float1, 1, cudaReadModeElementType> t, int x)
#line 351 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 355 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 366 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 357 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex1Dfetch(texture< float2, 1, cudaReadModeElementType> t, int x)
#line 358 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 362 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 373 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 364 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex1Dfetch(texture< float4, 1, cudaReadModeElementType> t, int x)
#line 365 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 369 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 380 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 377 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex1Dfetch(texture< char, 1, cudaReadModeNormalizedFloat> t, int x)
#line 378 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 387 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 400 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 389 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex1Dfetch(texture< signed char, 1, cudaReadModeNormalizedFloat> t, int x)
#line 390 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 395 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 408 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 397 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex1Dfetch(texture< unsigned char, 1, cudaReadModeNormalizedFloat> t, int x)
#line 398 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 403 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 416 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 405 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex1Dfetch(texture< char1, 1, cudaReadModeNormalizedFloat> t, int x)
#line 406 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 411 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 424 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 413 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex1Dfetch(texture< uchar1, 1, cudaReadModeNormalizedFloat> t, int x)
#line 414 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 419 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 432 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 421 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex1Dfetch(texture< char2, 1, cudaReadModeNormalizedFloat> t, int x)
#line 422 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 427 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 440 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 429 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex1Dfetch(texture< uchar2, 1, cudaReadModeNormalizedFloat> t, int x)
#line 430 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 435 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 448 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 437 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex1Dfetch(texture< char4, 1, cudaReadModeNormalizedFloat> t, int x)
#line 438 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 443 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 456 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 445 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex1Dfetch(texture< uchar4, 1, cudaReadModeNormalizedFloat> t, int x)
#line 446 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 451 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 464 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 459 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex1Dfetch(texture< short, 1, cudaReadModeNormalizedFloat> t, int x)
#line 460 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 465 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 478 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 467 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex1Dfetch(texture< unsigned short, 1, cudaReadModeNormalizedFloat> t, int x)
#line 468 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 473 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 486 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 475 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex1Dfetch(texture< short1, 1, cudaReadModeNormalizedFloat> t, int x)
#line 476 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 481 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 494 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 483 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex1Dfetch(texture< ushort1, 1, cudaReadModeNormalizedFloat> t, int x)
#line 484 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 489 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 502 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 491 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex1Dfetch(texture< short2, 1, cudaReadModeNormalizedFloat> t, int x)
#line 492 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 497 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 510 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 499 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex1Dfetch(texture< ushort2, 1, cudaReadModeNormalizedFloat> t, int x)
#line 500 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 505 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 518 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 507 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex1Dfetch(texture< short4, 1, cudaReadModeNormalizedFloat> t, int x)
#line 508 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 513 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 526 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 515 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex1Dfetch(texture< ushort4, 1, cudaReadModeNormalizedFloat> t, int x)
#line 516 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 521 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 534 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 529 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char tex1D(texture< char, 1, cudaReadModeElementType> t, float x)
#line 530 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 538 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 549 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 540 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline signed char tex1D(texture< signed char, 1, cudaReadModeElementType> t, float x)
#line 541 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 545 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 556 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 547 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned char tex1D(texture< unsigned char, 1, cudaReadModeElementType> t, float x)
#line 548 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 552 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 563 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 554 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char1 tex1D(texture< char1, 1, cudaReadModeElementType> t, float x)
#line 555 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 559 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 570 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 561 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uchar1 tex1D(texture< uchar1, 1, cudaReadModeElementType> t, float x)
#line 562 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 566 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 577 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 568 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char2 tex1D(texture< char2, 1, cudaReadModeElementType> t, float x)
#line 569 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 573 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 584 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 575 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uchar2 tex1D(texture< uchar2, 1, cudaReadModeElementType> t, float x)
#line 576 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 580 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 591 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 582 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char4 tex1D(texture< char4, 1, cudaReadModeElementType> t, float x)
#line 583 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 587 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 598 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 589 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uchar4 tex1D(texture< uchar4, 1, cudaReadModeElementType> t, float x)
#line 590 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 594 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 605 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 602 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short tex1D(texture< short, 1, cudaReadModeElementType> t, float x)
#line 603 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 607 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 618 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 609 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned short tex1D(texture< unsigned short, 1, cudaReadModeElementType> t, float x)
#line 610 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 614 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 625 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 616 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short1 tex1D(texture< short1, 1, cudaReadModeElementType> t, float x)
#line 617 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 621 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 632 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 623 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ushort1 tex1D(texture< ushort1, 1, cudaReadModeElementType> t, float x)
#line 624 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 628 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 639 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 630 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short2 tex1D(texture< short2, 1, cudaReadModeElementType> t, float x)
#line 631 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 635 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 646 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 637 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ushort2 tex1D(texture< ushort2, 1, cudaReadModeElementType> t, float x)
#line 638 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 642 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 653 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 644 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short4 tex1D(texture< short4, 1, cudaReadModeElementType> t, float x)
#line 645 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 649 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 660 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 651 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ushort4 tex1D(texture< ushort4, 1, cudaReadModeElementType> t, float x)
#line 652 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 656 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 667 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 664 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int tex1D(texture< int, 1, cudaReadModeElementType> t, float x)
#line 665 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 669 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 680 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 671 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned tex1D(texture< unsigned, 1, cudaReadModeElementType> t, float x)
#line 672 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 676 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 687 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 678 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int1 tex1D(texture< int1, 1, cudaReadModeElementType> t, float x)
#line 679 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 683 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 694 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 685 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uint1 tex1D(texture< uint1, 1, cudaReadModeElementType> t, float x)
#line 686 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 690 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 701 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 692 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int2 tex1D(texture< int2, 1, cudaReadModeElementType> t, float x)
#line 693 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 697 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 708 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 699 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uint2 tex1D(texture< uint2, 1, cudaReadModeElementType> t, float x)
#line 700 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 704 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 715 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 706 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int4 tex1D(texture< int4, 1, cudaReadModeElementType> t, float x)
#line 707 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 711 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 722 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 713 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uint4 tex1D(texture< uint4, 1, cudaReadModeElementType> t, float x)
#line 714 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 718 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 729 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 734 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long tex1D(texture< long, 1, cudaReadModeElementType> t, float x)
#line 735 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 739 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 750 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 741 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned long tex1D(texture< unsigned long, 1, cudaReadModeElementType> t, float x)
#line 742 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 746 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 757 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 748 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long1 tex1D(texture< long1, 1, cudaReadModeElementType> t, float x)
#line 749 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 753 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 764 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 755 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ulong1 tex1D(texture< ulong1, 1, cudaReadModeElementType> t, float x)
#line 756 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 760 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 771 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 762 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long2 tex1D(texture< long2, 1, cudaReadModeElementType> t, float x)
#line 763 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 767 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 778 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 769 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ulong2 tex1D(texture< ulong2, 1, cudaReadModeElementType> t, float x)
#line 770 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 774 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 785 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 776 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long4 tex1D(texture< long4, 1, cudaReadModeElementType> t, float x)
#line 777 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 781 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 792 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 783 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ulong4 tex1D(texture< ulong4, 1, cudaReadModeElementType> t, float x)
#line 784 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 788 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 799 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 798 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex1D(texture< float, 1, cudaReadModeElementType> t, float x)
#line 799 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 803 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 814 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 805 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex1D(texture< float1, 1, cudaReadModeElementType> t, float x)
#line 806 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 810 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 821 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 812 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex1D(texture< float2, 1, cudaReadModeElementType> t, float x)
#line 813 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 817 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 828 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 819 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex1D(texture< float4, 1, cudaReadModeElementType> t, float x)
#line 820 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 824 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 835 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 832 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex1D(texture< char, 1, cudaReadModeNormalizedFloat> t, float x)
#line 833 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 842 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 855 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 844 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex1D(texture< signed char, 1, cudaReadModeNormalizedFloat> t, float x)
#line 845 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 850 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 863 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 852 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex1D(texture< unsigned char, 1, cudaReadModeNormalizedFloat> t, float x)
#line 853 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 858 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 871 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 860 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex1D(texture< char1, 1, cudaReadModeNormalizedFloat> t, float x)
#line 861 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 866 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 879 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 868 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex1D(texture< uchar1, 1, cudaReadModeNormalizedFloat> t, float x)
#line 869 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 874 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 887 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 876 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex1D(texture< char2, 1, cudaReadModeNormalizedFloat> t, float x)
#line 877 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 882 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 895 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 884 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex1D(texture< uchar2, 1, cudaReadModeNormalizedFloat> t, float x)
#line 885 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 890 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 903 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 892 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex1D(texture< char4, 1, cudaReadModeNormalizedFloat> t, float x)
#line 893 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 898 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 911 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 900 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex1D(texture< uchar4, 1, cudaReadModeNormalizedFloat> t, float x)
#line 901 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 906 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 919 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 914 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex1D(texture< short, 1, cudaReadModeNormalizedFloat> t, float x)
#line 915 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 920 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 933 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 922 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex1D(texture< unsigned short, 1, cudaReadModeNormalizedFloat> t, float x)
#line 923 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 928 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 941 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 930 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex1D(texture< short1, 1, cudaReadModeNormalizedFloat> t, float x)
#line 931 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 936 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 949 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 938 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex1D(texture< ushort1, 1, cudaReadModeNormalizedFloat> t, float x)
#line 939 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 944 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 957 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 946 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex1D(texture< short2, 1, cudaReadModeNormalizedFloat> t, float x)
#line 947 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 952 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 965 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 954 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex1D(texture< ushort2, 1, cudaReadModeNormalizedFloat> t, float x)
#line 955 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 960 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 973 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 962 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex1D(texture< short4, 1, cudaReadModeNormalizedFloat> t, float x)
#line 963 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 968 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 981 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 970 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex1D(texture< ushort4, 1, cudaReadModeNormalizedFloat> t, float x)
#line 971 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 976 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 989 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 984 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char tex2D(texture< char, 2, cudaReadModeElementType> t, float x, float y)
#line 985 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 993 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1004 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 995 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline signed char tex2D(texture< signed char, 2, cudaReadModeElementType> t, float x, float y)
#line 996 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1000 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1011 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1002 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned char tex2D(texture< unsigned char, 2, cudaReadModeElementType> t, float x, float y)
#line 1003 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1007 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1018 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1009 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char1 tex2D(texture< char1, 2, cudaReadModeElementType> t, float x, float y)
#line 1010 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1014 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1025 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1016 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uchar1 tex2D(texture< uchar1, 2, cudaReadModeElementType> t, float x, float y)
#line 1017 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1021 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1032 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1023 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char2 tex2D(texture< char2, 2, cudaReadModeElementType> t, float x, float y)
#line 1024 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1028 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1039 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1030 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uchar2 tex2D(texture< uchar2, 2, cudaReadModeElementType> t, float x, float y)
#line 1031 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1035 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1046 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1037 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char4 tex2D(texture< char4, 2, cudaReadModeElementType> t, float x, float y)
#line 1038 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1042 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1053 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1044 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uchar4 tex2D(texture< uchar4, 2, cudaReadModeElementType> t, float x, float y)
#line 1045 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1049 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1060 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1057 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short tex2D(texture< short, 2, cudaReadModeElementType> t, float x, float y)
#line 1058 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1062 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1073 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1064 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned short tex2D(texture< unsigned short, 2, cudaReadModeElementType> t, float x, float y)
#line 1065 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1069 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1080 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1071 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short1 tex2D(texture< short1, 2, cudaReadModeElementType> t, float x, float y)
#line 1072 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1076 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1087 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1078 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ushort1 tex2D(texture< ushort1, 2, cudaReadModeElementType> t, float x, float y)
#line 1079 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1083 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1094 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1085 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short2 tex2D(texture< short2, 2, cudaReadModeElementType> t, float x, float y)
#line 1086 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1090 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1101 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1092 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ushort2 tex2D(texture< ushort2, 2, cudaReadModeElementType> t, float x, float y)
#line 1093 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1097 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1108 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1099 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short4 tex2D(texture< short4, 2, cudaReadModeElementType> t, float x, float y)
#line 1100 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1104 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1115 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1106 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ushort4 tex2D(texture< ushort4, 2, cudaReadModeElementType> t, float x, float y)
#line 1107 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1111 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1122 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1119 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int tex2D(texture< int, 2, cudaReadModeElementType> t, float x, float y)
#line 1120 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1124 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1135 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1126 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned tex2D(texture< unsigned, 2, cudaReadModeElementType> t, float x, float y)
#line 1127 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1131 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1142 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1133 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int1 tex2D(texture< int1, 2, cudaReadModeElementType> t, float x, float y)
#line 1134 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1138 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1149 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1140 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uint1 tex2D(texture< uint1, 2, cudaReadModeElementType> t, float x, float y)
#line 1141 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1145 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1156 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1147 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int2 tex2D(texture< int2, 2, cudaReadModeElementType> t, float x, float y)
#line 1148 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1152 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1163 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1154 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uint2 tex2D(texture< uint2, 2, cudaReadModeElementType> t, float x, float y)
#line 1155 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1159 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1170 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1161 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int4 tex2D(texture< int4, 2, cudaReadModeElementType> t, float x, float y)
#line 1162 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1166 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1177 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1168 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uint4 tex2D(texture< uint4, 2, cudaReadModeElementType> t, float x, float y)
#line 1169 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1173 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1184 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1183 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long tex2D(texture< long, 2, cudaReadModeElementType> t, float x, float y)
#line 1184 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1188 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1199 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1190 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned long tex2D(texture< unsigned long, 2, cudaReadModeElementType> t, float x, float y)
#line 1191 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1195 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1206 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1197 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long1 tex2D(texture< long1, 2, cudaReadModeElementType> t, float x, float y)
#line 1198 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1202 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1213 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1204 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ulong1 tex2D(texture< ulong1, 2, cudaReadModeElementType> t, float x, float y)
#line 1205 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1209 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1220 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1211 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long2 tex2D(texture< long2, 2, cudaReadModeElementType> t, float x, float y)
#line 1212 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1216 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1227 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1218 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ulong2 tex2D(texture< ulong2, 2, cudaReadModeElementType> t, float x, float y)
#line 1219 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1223 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1234 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1225 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long4 tex2D(texture< long4, 2, cudaReadModeElementType> t, float x, float y)
#line 1226 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1230 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1241 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1232 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ulong4 tex2D(texture< ulong4, 2, cudaReadModeElementType> t, float x, float y)
#line 1233 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1237 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1248 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1247 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex2D(texture< float, 2, cudaReadModeElementType> t, float x, float y)
#line 1248 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1252 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1263 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1254 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex2D(texture< float1, 2, cudaReadModeElementType> t, float x, float y)
#line 1255 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1259 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1270 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1261 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex2D(texture< float2, 2, cudaReadModeElementType> t, float x, float y)
#line 1262 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1266 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1277 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1268 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex2D(texture< float4, 2, cudaReadModeElementType> t, float x, float y)
#line 1269 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1273 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1284 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1281 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex2D(texture< char, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1282 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1291 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1304 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1293 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex2D(texture< signed char, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1294 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1299 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1312 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1301 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex2D(texture< unsigned char, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1302 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1307 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1320 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1309 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex2D(texture< char1, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1310 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1315 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1328 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1317 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex2D(texture< uchar1, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1318 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1323 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1336 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1325 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex2D(texture< char2, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1326 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1331 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1344 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1333 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex2D(texture< uchar2, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1334 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1339 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1352 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1341 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex2D(texture< char4, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1342 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1347 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1360 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1349 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex2D(texture< uchar4, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1350 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1355 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1368 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1363 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex2D(texture< short, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1364 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1369 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1382 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1371 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex2D(texture< unsigned short, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1372 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1377 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1390 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1379 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex2D(texture< short1, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1380 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1385 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1398 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1387 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex2D(texture< ushort1, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1388 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1393 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1406 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1395 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex2D(texture< short2, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1396 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1401 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1414 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1403 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex2D(texture< ushort2, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1404 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1409 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1422 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1411 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex2D(texture< short4, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1412 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1417 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1430 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1419 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex2D(texture< ushort4, 2, cudaReadModeNormalizedFloat> t, float x, float y)
#line 1420 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1425 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1438 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1433 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char tex3D(texture< char, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1434 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1442 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1453 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1444 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline signed char tex3D(texture< signed char, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1445 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1449 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1460 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1451 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned char tex3D(texture< unsigned char, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1452 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1456 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1467 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1458 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char1 tex3D(texture< char1, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1459 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1463 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1474 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1465 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uchar1 tex3D(texture< uchar1, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1466 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1470 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1481 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1472 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char2 tex3D(texture< char2, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1473 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1477 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1488 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1479 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uchar2 tex3D(texture< uchar2, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1480 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1484 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1495 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1486 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline char4 tex3D(texture< char4, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1487 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1491 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1502 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1493 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uchar4 tex3D(texture< uchar4, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1494 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1498 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1509 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1506 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short tex3D(texture< short, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1507 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1511 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1522 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1513 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned short tex3D(texture< unsigned short, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1514 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1518 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1529 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1520 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short1 tex3D(texture< short1, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1521 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1525 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1536 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1527 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ushort1 tex3D(texture< ushort1, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1528 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1532 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1543 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1534 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short2 tex3D(texture< short2, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1535 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1539 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1550 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1541 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ushort2 tex3D(texture< ushort2, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1542 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1546 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1557 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1548 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline short4 tex3D(texture< short4, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1549 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1553 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1564 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1555 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ushort4 tex3D(texture< ushort4, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1556 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1560 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1571 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1568 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int tex3D(texture< int, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1569 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1573 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1584 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1575 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned tex3D(texture< unsigned, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1576 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1580 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1591 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1582 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int1 tex3D(texture< int1, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1583 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1587 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1598 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1589 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uint1 tex3D(texture< uint1, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1590 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1594 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1605 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1596 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int2 tex3D(texture< int2, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1597 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1601 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1612 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1603 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uint2 tex3D(texture< uint2, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1604 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1608 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1619 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1610 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline int4 tex3D(texture< int4, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1611 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1615 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1626 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1617 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline uint4 tex3D(texture< uint4, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1618 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1622 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1633 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1632 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long tex3D(texture< long, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1633 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1637 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1648 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1639 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline unsigned long tex3D(texture< unsigned long, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1640 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1644 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1655 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1646 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long1 tex3D(texture< long1, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1647 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1651 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1662 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1653 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ulong1 tex3D(texture< ulong1, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1654 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1658 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1669 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1660 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long2 tex3D(texture< long2, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1661 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1665 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1676 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1667 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ulong2 tex3D(texture< ulong2, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1668 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1672 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1683 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1674 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline long4 tex3D(texture< long4, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1675 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1679 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1690 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1681 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline ulong4 tex3D(texture< ulong4, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1682 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1686 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1697 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1696 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex3D(texture< float, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1697 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1701 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1712 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1703 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex3D(texture< float1, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1704 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1708 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1719 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1710 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex3D(texture< float2, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1711 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1715 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1726 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1717 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex3D(texture< float4, 3, cudaReadModeElementType> t, float x, float y, float z)
#line 1718 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1722 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1733 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1730 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex3D(texture< char, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1731 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1740 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1753 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1742 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex3D(texture< signed char, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1743 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1748 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1761 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1750 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex3D(texture< unsigned char, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1751 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1756 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1769 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1758 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex3D(texture< char1, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1759 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1764 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1777 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1766 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex3D(texture< uchar1, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1767 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1772 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1785 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1774 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex3D(texture< char2, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1775 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1780 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1793 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1782 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex3D(texture< uchar2, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1783 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1788 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1801 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1790 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex3D(texture< char4, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1791 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1796 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1809 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1798 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex3D(texture< uchar4, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1799 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1804 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1817 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1812 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex3D(texture< short, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1813 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1818 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1831 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1820 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float tex3D(texture< unsigned short, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1821 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1826 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1839 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1828 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex3D(texture< short1, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1829 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1834 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1847 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1836 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float1 tex3D(texture< ushort1, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1837 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1842 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1855 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1844 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex3D(texture< short2, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1845 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1850 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1863 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1852 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float2 tex3D(texture< ushort2, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1853 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1858 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1871 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1860 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex3D(texture< short4, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1861 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1866 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1879 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 1868 "c:\\cuda\\include\\texture_fetch_functions.h"
static __inline float4 tex3D(texture< ushort4, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z)
#line 1869 "c:\\cuda\\include\\texture_fetch_functions.h"
{int volatile ___ = 1;
#line 1874 "c:\\cuda\\include\\texture_fetch_functions.h"
exit(___);}
#line 1887 "c:\\cuda\\include\\texture_fetch_functions.h"
#line 53 "c:\\cuda\\include\\device_launch_parameters.h"
#line 58 "c:\\cuda\\include\\device_launch_parameters.h"
#line 55 "c:\\cuda\\include\\device_launch_parameters.h"
#line 60 "c:\\cuda\\include\\device_launch_parameters.h"
#line 57 "c:\\cuda\\include\\device_launch_parameters.h"
#line 62 "c:\\cuda\\include\\device_launch_parameters.h"
#line 59 "c:\\cuda\\include\\device_launch_parameters.h"
#line 64 "c:\\cuda\\include\\device_launch_parameters.h"
#line 61 "c:\\cuda\\include\\device_launch_parameters.h"
#line 66 "c:\\cuda\\include\\device_launch_parameters.h"
#line 102 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T> __inline cudaError_t
#line 103 "C:\\CUDA\\include\\cuda_runtime.h"
cudaSetupArgument(T
#line 104 "C:\\CUDA\\include\\cuda_runtime.h"
arg, size_t
#line 105 "C:\\CUDA\\include\\cuda_runtime.h"
offset)
#line 107 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 108 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaSetupArgument((const void *)(&arg), sizeof(T), offset);
#line 109 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 111 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T> __inline cudaError_t
#line 112 "C:\\CUDA\\include\\cuda_runtime.h"
cudaHostAlloc(T **
#line 113 "C:\\CUDA\\include\\cuda_runtime.h"
ptr, size_t
#line 114 "C:\\CUDA\\include\\cuda_runtime.h"
size, unsigned
#line 115 "C:\\CUDA\\include\\cuda_runtime.h"
flags)
#line 117 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 118 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaHostAlloc((void **)((void *)ptr), size, flags);
#line 119 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 121 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T> __inline cudaError_t
#line 122 "C:\\CUDA\\include\\cuda_runtime.h"
cudaHostGetDevicePointer(T **
#line 123 "C:\\CUDA\\include\\cuda_runtime.h"
pDevice, void *
#line 124 "C:\\CUDA\\include\\cuda_runtime.h"
pHost, unsigned
#line 125 "C:\\CUDA\\include\\cuda_runtime.h"
flags)
#line 127 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 128 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaHostGetDevicePointer((void **)((void *)pDevice), pHost, flags);
#line 129 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 131 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T> __inline cudaError_t
#line 132 "C:\\CUDA\\include\\cuda_runtime.h"
cudaMalloc(T **
#line 133 "C:\\CUDA\\include\\cuda_runtime.h"
devPtr, size_t
#line 134 "C:\\CUDA\\include\\cuda_runtime.h"
size)
#line 136 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 137 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaMalloc((void **)((void *)devPtr), size);
#line 138 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 140 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T> __inline cudaError_t
#line 141 "C:\\CUDA\\include\\cuda_runtime.h"
cudaMallocHost(T **
#line 142 "C:\\CUDA\\include\\cuda_runtime.h"
ptr, size_t
#line 143 "C:\\CUDA\\include\\cuda_runtime.h"
size)
#line 145 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 146 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaMallocHost((void **)((void *)ptr), size);
#line 147 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 149 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T> __inline cudaError_t
#line 150 "C:\\CUDA\\include\\cuda_runtime.h"
cudaMallocPitch(T **
#line 151 "C:\\CUDA\\include\\cuda_runtime.h"
devPtr, size_t *
#line 152 "C:\\CUDA\\include\\cuda_runtime.h"
pitch, size_t
#line 153 "C:\\CUDA\\include\\cuda_runtime.h"
width, size_t
#line 154 "C:\\CUDA\\include\\cuda_runtime.h"
height)
#line 156 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 157 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaMallocPitch((void **)((void *)devPtr), pitch, width, height);
#line 158 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 173 "C:\\CUDA\\include\\cuda_runtime.h"
static __inline cudaError_t cudaMemcpyToSymbol(char *
#line 174 "C:\\CUDA\\include\\cuda_runtime.h"
symbol, const void *
#line 175 "C:\\CUDA\\include\\cuda_runtime.h"
src, size_t
#line 176 "C:\\CUDA\\include\\cuda_runtime.h"
count, size_t
#line 177 "C:\\CUDA\\include\\cuda_runtime.h"
offset = (0), cudaMemcpyKind
#line 178 "C:\\CUDA\\include\\cuda_runtime.h"
kind = cudaMemcpyHostToDevice)
#line 180 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 181 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaMemcpyToSymbol((const char *)symbol, src, count, offset, kind);
#line 182 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 184 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T> __inline cudaError_t
#line 185 "C:\\CUDA\\include\\cuda_runtime.h"
cudaMemcpyToSymbol(const T &
#line 186 "C:\\CUDA\\include\\cuda_runtime.h"
symbol, const void *
#line 187 "C:\\CUDA\\include\\cuda_runtime.h"
src, size_t
#line 188 "C:\\CUDA\\include\\cuda_runtime.h"
count, size_t
#line 189 "C:\\CUDA\\include\\cuda_runtime.h"
offset = (0), cudaMemcpyKind
#line 190 "C:\\CUDA\\include\\cuda_runtime.h"
kind = cudaMemcpyHostToDevice)
#line 192 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 193 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaMemcpyToSymbol((const char *)(&symbol), src, count, offset, kind);
#line 194 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 196 "C:\\CUDA\\include\\cuda_runtime.h"
static __inline cudaError_t cudaMemcpyToSymbolAsync(char *
#line 197 "C:\\CUDA\\include\\cuda_runtime.h"
symbol, const void *
#line 198 "C:\\CUDA\\include\\cuda_runtime.h"
src, size_t
#line 199 "C:\\CUDA\\include\\cuda_runtime.h"
count, size_t
#line 200 "C:\\CUDA\\include\\cuda_runtime.h"
offset = (0), cudaMemcpyKind
#line 201 "C:\\CUDA\\include\\cuda_runtime.h"
kind = cudaMemcpyHostToDevice, cudaStream_t
#line 202 "C:\\CUDA\\include\\cuda_runtime.h"
stream = 0)
#line 204 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 205 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaMemcpyToSymbolAsync((const char *)symbol, src, count, offset, kind, stream);
#line 206 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 208 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T> __inline cudaError_t
#line 209 "C:\\CUDA\\include\\cuda_runtime.h"
cudaMemcpyToSymbolAsync(const T &
#line 210 "C:\\CUDA\\include\\cuda_runtime.h"
symbol, const void *
#line 211 "C:\\CUDA\\include\\cuda_runtime.h"
src, size_t
#line 212 "C:\\CUDA\\include\\cuda_runtime.h"
count, size_t
#line 213 "C:\\CUDA\\include\\cuda_runtime.h"
offset = (0), cudaMemcpyKind
#line 214 "C:\\CUDA\\include\\cuda_runtime.h"
kind = cudaMemcpyHostToDevice, cudaStream_t
#line 215 "C:\\CUDA\\include\\cuda_runtime.h"
stream = 0)
#line 217 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 218 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaMemcpyToSymbolAsync((const char *)(&symbol), src, count, offset, kind, stream);
#line 219 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 227 "C:\\CUDA\\include\\cuda_runtime.h"
static __inline cudaError_t cudaMemcpyFromSymbol(void *
#line 228 "C:\\CUDA\\include\\cuda_runtime.h"
dst, char *
#line 229 "C:\\CUDA\\include\\cuda_runtime.h"
symbol, size_t
#line 230 "C:\\CUDA\\include\\cuda_runtime.h"
count, size_t
#line 231 "C:\\CUDA\\include\\cuda_runtime.h"
offset = (0), cudaMemcpyKind
#line 232 "C:\\CUDA\\include\\cuda_runtime.h"
kind = cudaMemcpyDeviceToHost)
#line 234 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 235 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaMemcpyFromSymbol(dst, (const char *)symbol, count, offset, kind);
#line 236 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 238 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T> __inline cudaError_t
#line 239 "C:\\CUDA\\include\\cuda_runtime.h"
cudaMemcpyFromSymbol(void *
#line 240 "C:\\CUDA\\include\\cuda_runtime.h"
dst, const T &
#line 241 "C:\\CUDA\\include\\cuda_runtime.h"
symbol, size_t
#line 242 "C:\\CUDA\\include\\cuda_runtime.h"
count, size_t
#line 243 "C:\\CUDA\\include\\cuda_runtime.h"
offset = (0), cudaMemcpyKind
#line 244 "C:\\CUDA\\include\\cuda_runtime.h"
kind = cudaMemcpyDeviceToHost)
#line 246 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 247 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaMemcpyFromSymbol(dst, (const char *)(&symbol), count, offset, kind);
#line 248 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 250 "C:\\CUDA\\include\\cuda_runtime.h"
static __inline cudaError_t cudaMemcpyFromSymbolAsync(void *
#line 251 "C:\\CUDA\\include\\cuda_runtime.h"
dst, char *
#line 252 "C:\\CUDA\\include\\cuda_runtime.h"
symbol, size_t
#line 253 "C:\\CUDA\\include\\cuda_runtime.h"
count, size_t
#line 254 "C:\\CUDA\\include\\cuda_runtime.h"
offset = (0), cudaMemcpyKind
#line 255 "C:\\CUDA\\include\\cuda_runtime.h"
kind = cudaMemcpyDeviceToHost, cudaStream_t
#line 256 "C:\\CUDA\\include\\cuda_runtime.h"
stream = 0)
#line 258 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 259 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaMemcpyFromSymbolAsync(dst, (const char *)symbol, count, offset, kind, stream);
#line 260 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 262 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T> __inline cudaError_t
#line 263 "C:\\CUDA\\include\\cuda_runtime.h"
cudaMemcpyFromSymbolAsync(void *
#line 264 "C:\\CUDA\\include\\cuda_runtime.h"
dst, const T &
#line 265 "C:\\CUDA\\include\\cuda_runtime.h"
symbol, size_t
#line 266 "C:\\CUDA\\include\\cuda_runtime.h"
count, size_t
#line 267 "C:\\CUDA\\include\\cuda_runtime.h"
offset = (0), cudaMemcpyKind
#line 268 "C:\\CUDA\\include\\cuda_runtime.h"
kind = cudaMemcpyDeviceToHost, cudaStream_t
#line 269 "C:\\CUDA\\include\\cuda_runtime.h"
stream = 0)
#line 271 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 272 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaMemcpyFromSymbolAsync(dst, (const char *)(&symbol), count, offset, kind, stream);
#line 273 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 275 "C:\\CUDA\\include\\cuda_runtime.h"
static __inline cudaError_t cudaGetSymbolAddress(void **
#line 276 "C:\\CUDA\\include\\cuda_runtime.h"
devPtr, char *
#line 277 "C:\\CUDA\\include\\cuda_runtime.h"
symbol)
#line 279 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 280 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaGetSymbolAddress(devPtr, (const char *)symbol);
#line 281 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 308 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T> __inline cudaError_t
#line 309 "C:\\CUDA\\include\\cuda_runtime.h"
cudaGetSymbolAddress(void **
#line 310 "C:\\CUDA\\include\\cuda_runtime.h"
devPtr, const T &
#line 311 "C:\\CUDA\\include\\cuda_runtime.h"
symbol)
#line 313 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 314 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaGetSymbolAddress(devPtr, (const char *)(&symbol));
#line 315 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 323 "C:\\CUDA\\include\\cuda_runtime.h"
static __inline cudaError_t cudaGetSymbolSize(size_t *
#line 324 "C:\\CUDA\\include\\cuda_runtime.h"
size, char *
#line 325 "C:\\CUDA\\include\\cuda_runtime.h"
symbol)
#line 327 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 328 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaGetSymbolSize(size, (const char *)symbol);
#line 329 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 356 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T> __inline cudaError_t
#line 357 "C:\\CUDA\\include\\cuda_runtime.h"
cudaGetSymbolSize(size_t *
#line 358 "C:\\CUDA\\include\\cuda_runtime.h"
size, const T &
#line 359 "C:\\CUDA\\include\\cuda_runtime.h"
symbol)
#line 361 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 362 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaGetSymbolSize(size, (const char *)(&symbol));
#line 363 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 412 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T, int dim, cudaTextureReadMode readMode> __inline cudaError_t
#line 413 "C:\\CUDA\\include\\cuda_runtime.h"
cudaBindTexture(size_t *
#line 414 "C:\\CUDA\\include\\cuda_runtime.h"
offset, const texture< T, dim, readMode> &
#line 415 "C:\\CUDA\\include\\cuda_runtime.h"
tex, const void *
#line 416 "C:\\CUDA\\include\\cuda_runtime.h"
devPtr, const cudaChannelFormatDesc &
#line 417 "C:\\CUDA\\include\\cuda_runtime.h"
desc, size_t
#line 418 "C:\\CUDA\\include\\cuda_runtime.h"
size = (4294967295U))
#line 420 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 421 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaBindTexture(offset, &tex, devPtr, &desc, size);
#line 422 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 456 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T, int dim, cudaTextureReadMode readMode> __inline cudaError_t
#line 457 "C:\\CUDA\\include\\cuda_runtime.h"
cudaBindTexture(size_t *
#line 458 "C:\\CUDA\\include\\cuda_runtime.h"
offset, const texture< T, dim, readMode> &
#line 459 "C:\\CUDA\\include\\cuda_runtime.h"
tex, const void *
#line 460 "C:\\CUDA\\include\\cuda_runtime.h"
devPtr, size_t
#line 461 "C:\\CUDA\\include\\cuda_runtime.h"
size = (4294967295U))
#line 463 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 464 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaBindTexture(offset, tex, devPtr, (tex.texture< T, dim, readMode> ::channelDesc), size);
#line 465 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 511 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T, int dim, cudaTextureReadMode readMode> __inline cudaError_t
#line 512 "C:\\CUDA\\include\\cuda_runtime.h"
cudaBindTexture2D(size_t *
#line 513 "C:\\CUDA\\include\\cuda_runtime.h"
offset, const texture< T, dim, readMode> &
#line 514 "C:\\CUDA\\include\\cuda_runtime.h"
tex, const void *
#line 515 "C:\\CUDA\\include\\cuda_runtime.h"
devPtr, const cudaChannelFormatDesc &
#line 516 "C:\\CUDA\\include\\cuda_runtime.h"
desc, size_t
#line 517 "C:\\CUDA\\include\\cuda_runtime.h"
width, size_t
#line 518 "C:\\CUDA\\include\\cuda_runtime.h"
height, size_t
#line 519 "C:\\CUDA\\include\\cuda_runtime.h"
pitch)
#line 521 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 522 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaBindTexture2D(offset, &tex, devPtr, &desc, width, height, pitch);
#line 523 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 553 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T, int dim, cudaTextureReadMode readMode> __inline cudaError_t
#line 554 "C:\\CUDA\\include\\cuda_runtime.h"
cudaBindTextureToArray(const texture< T, dim, readMode> &
#line 555 "C:\\CUDA\\include\\cuda_runtime.h"
tex, const cudaArray *
#line 556 "C:\\CUDA\\include\\cuda_runtime.h"
array, const cudaChannelFormatDesc &
#line 557 "C:\\CUDA\\include\\cuda_runtime.h"
desc)
#line 559 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 560 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaBindTextureToArray(&tex, array, &desc);
#line 561 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 590 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T, int dim, cudaTextureReadMode readMode> __inline cudaError_t
#line 591 "C:\\CUDA\\include\\cuda_runtime.h"
cudaBindTextureToArray(const texture< T, dim, readMode> &
#line 592 "C:\\CUDA\\include\\cuda_runtime.h"
tex, const cudaArray *
#line 593 "C:\\CUDA\\include\\cuda_runtime.h"
array)
#line 595 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 596 "C:\\CUDA\\include\\cuda_runtime.h"
cudaChannelFormatDesc desc;
#line 597 "C:\\CUDA\\include\\cuda_runtime.h"
cudaError_t err = cudaGetChannelDesc(&desc, array);
#line 599 "C:\\CUDA\\include\\cuda_runtime.h"
return (err == (cudaSuccess)) ? cudaBindTextureToArray(tex, array, desc) : err;
#line 600 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 628 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T, int dim, cudaTextureReadMode readMode> __inline cudaError_t
#line 629 "C:\\CUDA\\include\\cuda_runtime.h"
cudaUnbindTexture(const texture< T, dim, readMode> &
#line 630 "C:\\CUDA\\include\\cuda_runtime.h"
tex)
#line 632 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 633 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaUnbindTexture(&tex);
#line 634 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 667 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T, int dim, cudaTextureReadMode readMode> __inline cudaError_t
#line 668 "C:\\CUDA\\include\\cuda_runtime.h"
cudaGetTextureAlignmentOffset(size_t *
#line 669 "C:\\CUDA\\include\\cuda_runtime.h"
offset, const texture< T, dim, readMode> &
#line 670 "C:\\CUDA\\include\\cuda_runtime.h"
tex)
#line 672 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 673 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaGetTextureAlignmentOffset(offset, &tex);
#line 674 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 724 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T> __inline cudaError_t
#line 725 "C:\\CUDA\\include\\cuda_runtime.h"
cudaFuncSetCacheConfig(T *
#line 726 "C:\\CUDA\\include\\cuda_runtime.h"
func, cudaFuncCache
#line 727 "C:\\CUDA\\include\\cuda_runtime.h"
cacheConfig)
#line 729 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 730 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaFuncSetCacheConfig((const char *)func, cacheConfig);
#line 731 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 768 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T> __inline cudaError_t
#line 769 "C:\\CUDA\\include\\cuda_runtime.h"
cudaLaunch(T *
#line 770 "C:\\CUDA\\include\\cuda_runtime.h"
entry)
#line 772 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 773 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaLaunch((const char *)entry);
#line 774 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 805 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T> __inline cudaError_t
#line 806 "C:\\CUDA\\include\\cuda_runtime.h"
cudaFuncGetAttributes(cudaFuncAttributes *
#line 807 "C:\\CUDA\\include\\cuda_runtime.h"
attr, T *
#line 808 "C:\\CUDA\\include\\cuda_runtime.h"
entry)
#line 810 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 811 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaFuncGetAttributes(attr, (const char *)entry);
#line 812 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 835 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T, int dim> __inline cudaError_t
#line 836 "C:\\CUDA\\include\\cuda_runtime.h"
cudaBindSurfaceToArray(const surface< T, dim> &
#line 837 "C:\\CUDA\\include\\cuda_runtime.h"
surf, const cudaArray *
#line 838 "C:\\CUDA\\include\\cuda_runtime.h"
array, const cudaChannelFormatDesc &
#line 839 "C:\\CUDA\\include\\cuda_runtime.h"
desc)
#line 841 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 842 "C:\\CUDA\\include\\cuda_runtime.h"
return cudaBindSurfaceToArray(&surf, array, &desc);
#line 843 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 865 "C:\\CUDA\\include\\cuda_runtime.h"
template<class T, int dim> __inline cudaError_t
#line 866 "C:\\CUDA\\include\\cuda_runtime.h"
cudaBindSurfaceToArray(const surface< T, dim> &
#line 867 "C:\\CUDA\\include\\cuda_runtime.h"
surf, const cudaArray *
#line 868 "C:\\CUDA\\include\\cuda_runtime.h"
array)
#line 870 "C:\\CUDA\\include\\cuda_runtime.h"
{
#line 871 "C:\\CUDA\\include\\cuda_runtime.h"
cudaChannelFormatDesc desc;
#line 872 "C:\\CUDA\\include\\cuda_runtime.h"
cudaError_t err = cudaGetChannelDesc(&desc, array);
#line 874 "C:\\CUDA\\include\\cuda_runtime.h"
return (err == (cudaSuccess)) ? cudaBindSurfaceToArray(surf, array, desc) : err;
#line 875 "C:\\CUDA\\include\\cuda_runtime.h"
}
#line 28 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
#pragma pack ( push, 8 )
#line 59 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { struct _iobuf {
#line 60 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
char *_ptr;
#line 61 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
int _cnt;
#line 62 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
char *_base;
#line 63 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
int _flag;
#line 64 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
int _file;
#line 65 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
int _charbuf;
#line 66 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
int _bufsiz;
#line 67 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
char *_tmpfname;
#line 68 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
}; }
#line 69 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { typedef _iobuf FILE; }
#line 132 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { FILE *__cdecl __iob_func(); }
#line 148 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { typedef __int64 fpos_t; }
#line 189 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _filbuf(FILE *); }
#line 190 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _flsbuf(int, FILE *); }
#line 195 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { FILE *__cdecl _fsopen(const char *, const char *, int); }
#line 198 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { void __cdecl clearerr(FILE *); }
#line 200 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { errno_t __cdecl clearerr_s(FILE *); }
#line 202 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fclose(FILE *); }
#line 203 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fcloseall(); }
#line 208 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { FILE *__cdecl _fdopen(int, const char *); }
#line 211 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl feof(FILE *); }
#line 212 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl ferror(FILE *); }
#line 213 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fflush(FILE *); }
#line 214 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fgetc(FILE *); }
#line 215 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fgetchar(); }
#line 216 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fgetpos(FILE *, fpos_t *); }
#line 217 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { char *__cdecl fgets(char *, int, FILE *); }
#line 222 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fileno(FILE *); }
#line 230 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { char *__cdecl _tempnam(const char *, const char *); }
#line 236 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _flushall(); }
#line 237 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { FILE *__cdecl fopen(const char *, const char *); }
#line 239 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { errno_t __cdecl fopen_s(FILE **, const char *, const char *); }
#line 241 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fprintf(FILE *, const char *, ...); }
#line 243 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fprintf_s(FILE *, const char *, ...); }
#line 245 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fputc(int, FILE *); }
#line 246 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fputchar(int); }
#line 247 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fputs(const char *, FILE *); }
#line 248 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { size_t __cdecl fread(void *, size_t, size_t, FILE *); }
#line 250 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { size_t __cdecl fread_s(void *, size_t, size_t, size_t, FILE *); }
#line 252 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { FILE *__cdecl freopen(const char *, const char *, FILE *); }
#line 254 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { errno_t __cdecl freopen_s(FILE **, const char *, const char *, FILE *); }
#line 256 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fscanf(FILE *, const char *, ...); }
#line 257 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fscanf_l(FILE *, const char *, _locale_t, ...); }
#pragma warning(push)
#pragma warning(disable:6530)
#line 261 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fscanf_s(FILE *, const char *, ...); }
#line 263 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fscanf_s_l(FILE *, const char *, _locale_t, ...); }
#line 264 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fsetpos(FILE *, const fpos_t *); }
#line 265 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fseek(FILE *, long, int); }
#line 266 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { long __cdecl ftell(FILE *); }
#line 268 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fseeki64(FILE *, __int64, int); }
#line 269 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { __int64 __cdecl _ftelli64(FILE *); }
#line 271 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { size_t __cdecl fwrite(const void *, size_t, size_t, FILE *); }
#line 272 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl getc(FILE *); }
#line 273 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl getchar(); }
#line 274 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _getmaxstdio(); }
#line 276 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { char *__cdecl gets_s(char *, rsize_t); }
#line 278 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
template < size_t _Size > inline char * __cdecl gets_s ( char ( & _Buffer ) [ _Size ] ) { return gets_s ( _Buffer, _Size ); }
#line 279 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { char *__cdecl gets(char *); }
#line 280 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _getw(FILE *); }
#line 285 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _pclose(FILE *); }
#line 286 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { FILE *__cdecl _popen(const char *, const char *); }
#line 287 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl printf(const char *, ...); }
#line 289 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl printf_s(const char *, ...); }
#line 291 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl putc(int, FILE *); }
#line 292 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl putchar(int); }
#line 293 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl puts(const char *); }
#line 294 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _putw(int, FILE *); }
#line 297 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl remove(const char *); }
#line 298 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl rename(const char *, const char *); }
#line 299 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _unlink(const char *); }
#line 301 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl unlink(const char *); }
#line 304 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { void __cdecl rewind(FILE *); }
#line 305 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _rmtmp(); }
#line 306 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl scanf(const char *, ...); }
#line 307 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _scanf_l(const char *, _locale_t, ...); }
#line 309 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl scanf_s(const char *, ...); }
#line 311 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _scanf_s_l(const char *, _locale_t, ...); }
#line 312 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { void __cdecl setbuf(FILE *, char *); }
#line 313 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _setmaxstdio(int); }
#line 314 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { unsigned __cdecl _set_output_format(unsigned); }
#line 315 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { unsigned __cdecl _get_output_format(); }
#line 316 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl setvbuf(FILE *, char *, int, size_t); }
#line 317 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snprintf_s(char *, size_t, size_t, const char *, ...); }
#line 318 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
__pragma(warning(push)) __pragma(warning(disable: 4793)) template < size_t _Size > inline int __cdecl _snprintf_s ( char ( & _Dest ) [ _Size ], size_t _MaxCount, const char * _Format, ... ) { va_list _ArgList; ( __va_start ( & _ArgList, _Format ) ); return _vsnprintf_s ( _Dest, _Size, _MaxCount, _Format, _ArgList ); }__pragma(warning(pop))
#line 320 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl sprintf_s(char *, size_t, const char *, ...); }
#line 322 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
__pragma(warning(push)) __pragma(warning(disable: 4793)) template < size_t _Size > inline int __cdecl sprintf_s ( char ( & _Dest ) [ _Size ], const char * _Format, ... ) { va_list _ArgList; ( __va_start ( & _ArgList, _Format ) ); return vsprintf_s ( _Dest, _Size, _Format, _ArgList ); }__pragma(warning(pop))
#line 323 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _scprintf(const char *, ...); }
#line 324 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl sscanf(const char *, const char *, ...); }
#line 325 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _sscanf_l(const char *, const char *, _locale_t, ...); }
#line 327 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl sscanf_s(const char *, const char *, ...); }
#line 329 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _sscanf_s_l(const char *, const char *, _locale_t, ...); }
#line 330 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snscanf(const char *, size_t, const char *, ...); }
#line 331 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snscanf_l(const char *, size_t, const char *, _locale_t, ...); }
#line 332 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snscanf_s(const char *, size_t, const char *, ...); }
#line 333 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snscanf_s_l(const char *, size_t, const char *, _locale_t, ...); }
#line 334 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { FILE *__cdecl tmpfile(); }
#line 336 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { errno_t __cdecl tmpfile_s(FILE **); }
#line 337 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { errno_t __cdecl tmpnam_s(char *, rsize_t); }
#line 339 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
template < size_t _Size > inline errno_t __cdecl tmpnam_s ( char ( & _Buf ) [ _Size ] ) { return tmpnam_s ( _Buf, _Size ); }
#line 340 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { char *__cdecl tmpnam(char *); }
#line 341 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl ungetc(int, FILE *); }
#line 342 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl vfprintf(FILE *, const char *, va_list); }
#line 344 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl vfprintf_s(FILE *, const char *, va_list); }
#line 346 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl vprintf(const char *, va_list); }
#line 348 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl vprintf_s(const char *, va_list); }
#line 350 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl vsnprintf(char *, size_t, const char *, va_list); }
#line 352 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl vsnprintf_s(char *, size_t, size_t, const char *, va_list); }
#line 354 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vsnprintf_s(char *, size_t, size_t, const char *, va_list); }
#line 355 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
template < size_t _Size > inline int __cdecl _vsnprintf_s ( char ( & _Dest ) [ _Size ], size_t _MaxCount, const char * _Format, va_list _Args ) { return _vsnprintf_s ( _Dest, _Size, _MaxCount, _Format, _Args ); }
#pragma warning(push)
#pragma warning(disable:4793)
extern "C" { int __cdecl _snprintf(char *, size_t, const char *, ...); } extern "C" { int __cdecl _vsnprintf(char *, size_t, const char *, va_list); }
#pragma warning(pop)
#line 361 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl vsprintf_s(char *, size_t, const char *, va_list); }
#line 363 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
template < size_t _Size > inline int __cdecl vsprintf_s ( char ( & _Dest ) [ _Size ], const char * _Format, va_list _Args ) { return vsprintf_s ( _Dest, _Size, _Format, _Args ); }
#pragma warning(push)
#pragma warning(disable:4793)
extern "C" { int __cdecl sprintf(char *, const char *, ...); } extern "C" { int __cdecl vsprintf(char *, const char *, va_list); }
#pragma warning(pop)
extern "C" { int __cdecl _vscprintf(const char *, va_list); }
#line 369 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snprintf_c(char *, size_t, const char *, ...); }
#line 370 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vsnprintf_c(char *, size_t, const char *, va_list); }
#line 372 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fprintf_p(FILE *, const char *, ...); }
#line 373 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _printf_p(const char *, ...); }
#line 374 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _sprintf_p(char *, size_t, const char *, ...); }
#line 375 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vfprintf_p(FILE *, const char *, va_list); }
#line 376 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vprintf_p(const char *, va_list); }
#line 377 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vsprintf_p(char *, size_t, const char *, va_list); }
#line 378 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _scprintf_p(const char *, ...); }
#line 379 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vscprintf_p(const char *, va_list); }
#line 380 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _set_printf_count_output(int); }
#line 381 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _get_printf_count_output(); }
#line 383 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _printf_l(const char *, _locale_t, ...); }
#line 384 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _printf_p_l(const char *, _locale_t, ...); }
#line 385 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _printf_s_l(const char *, _locale_t, ...); }
#line 386 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vprintf_l(const char *, _locale_t, va_list); }
#line 387 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vprintf_p_l(const char *, _locale_t, va_list); }
#line 388 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vprintf_s_l(const char *, _locale_t, va_list); }
#line 390 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fprintf_l(FILE *, const char *, _locale_t, ...); }
#line 391 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fprintf_p_l(FILE *, const char *, _locale_t, ...); }
#line 392 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fprintf_s_l(FILE *, const char *, _locale_t, ...); }
#line 393 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vfprintf_l(FILE *, const char *, _locale_t, va_list); }
#line 394 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vfprintf_p_l(FILE *, const char *, _locale_t, va_list); }
#line 395 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vfprintf_s_l(FILE *, const char *, _locale_t, va_list); }
#line 397 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _sprintf_l(char *, const char *, _locale_t, ...); }
#line 398 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _sprintf_p_l(char *, size_t, const char *, _locale_t, ...); }
#line 399 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _sprintf_s_l(char *, size_t, const char *, _locale_t, ...); }
#line 400 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vsprintf_l(char *, const char *, _locale_t, va_list); }
#line 401 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vsprintf_p_l(char *, size_t, const char *, _locale_t, va_list); }
#line 402 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vsprintf_s_l(char *, size_t, const char *, _locale_t, va_list); }
#line 404 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _scprintf_l(const char *, _locale_t, ...); }
#line 405 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _scprintf_p_l(const char *, _locale_t, ...); }
#line 406 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vscprintf_l(const char *, _locale_t, va_list); }
#line 407 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vscprintf_p_l(const char *, _locale_t, va_list); }
#line 409 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snprintf_l(char *, size_t, const char *, _locale_t, ...); }
#line 410 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snprintf_c_l(char *, size_t, const char *, _locale_t, ...); }
#line 411 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snprintf_s_l(char *, size_t, size_t, const char *, _locale_t, ...); }
#line 412 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vsnprintf_l(char *, size_t, const char *, _locale_t, va_list); }
#line 413 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vsnprintf_c_l(char *, size_t, const char *, _locale_t, va_list); }
#line 414 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vsnprintf_s_l(char *, size_t, size_t, const char *, _locale_t, va_list); }
#line 427 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { FILE *__cdecl _wfsopen(const __wchar_t *, const __wchar_t *, int); }
#line 430 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { wint_t __cdecl fgetwc(FILE *); }
#line 431 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { wint_t __cdecl _fgetwchar(); }
#line 432 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { wint_t __cdecl fputwc(__wchar_t, FILE *); }
#line 433 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { wint_t __cdecl _fputwchar(__wchar_t); }
#line 434 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { wint_t __cdecl getwc(FILE *); }
#line 435 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { inline wint_t __cdecl getwchar(); }
#line 436 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { wint_t __cdecl putwc(__wchar_t, FILE *); }
#line 437 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { inline wint_t __cdecl putwchar(__wchar_t); }
#line 438 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { wint_t __cdecl ungetwc(wint_t, FILE *); }
#line 440 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { __wchar_t *__cdecl fgetws(__wchar_t *, int, FILE *); }
#line 441 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fputws(const __wchar_t *, FILE *); }
#line 442 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { __wchar_t *__cdecl _getws_s(__wchar_t *, size_t); }
#line 443 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
template < size_t _Size > inline wchar_t * __cdecl _getws_s ( wchar_t ( & _String ) [ _Size ] ) { return _getws_s ( _String, _Size ); }
#line 444 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { __wchar_t *__cdecl _getws(__wchar_t *); }
#line 445 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _putws(const __wchar_t *); }
#line 447 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fwprintf(FILE *, const __wchar_t *, ...); }
#line 449 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fwprintf_s(FILE *, const __wchar_t *, ...); }
#line 451 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl wprintf(const __wchar_t *, ...); }
#line 453 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl wprintf_s(const __wchar_t *, ...); }
#line 455 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _scwprintf(const __wchar_t *, ...); }
#line 456 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl vfwprintf(FILE *, const __wchar_t *, va_list); }
#line 458 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl vfwprintf_s(FILE *, const __wchar_t *, va_list); }
#line 460 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl vwprintf(const __wchar_t *, va_list); }
#line 462 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl vwprintf_s(const __wchar_t *, va_list); }
#line 466 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl swprintf_s(__wchar_t *, size_t, const __wchar_t *, ...); }
#line 468 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
__pragma(warning(push)) __pragma(warning(disable: 4793)) template < size_t _Size > inline int __cdecl swprintf_s ( wchar_t ( & _Dest ) [ _Size ], const wchar_t * _Format, ... ) { va_list _ArgList; ( __va_start ( & _ArgList, _Format ) ); return vswprintf_s ( _Dest, _Size, _Format, _ArgList ); }__pragma(warning(pop))
#line 470 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl vswprintf_s(__wchar_t *, size_t, const __wchar_t *, va_list); }
#line 472 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
template < size_t _Size > inline int __cdecl vswprintf_s ( wchar_t ( & _Dest ) [ _Size ], const wchar_t * _Format, va_list _Args ) { return vswprintf_s ( _Dest, _Size, _Format, _Args ); }
#line 474 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _swprintf_c(__wchar_t *, size_t, const __wchar_t *, ...); }
#line 475 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vswprintf_c(__wchar_t *, size_t, const __wchar_t *, va_list); }
#line 477 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snwprintf_s(__wchar_t *, size_t, size_t, const __wchar_t *, ...); }
#line 478 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
__pragma(warning(push)) __pragma(warning(disable: 4793)) template < size_t _Size > inline int __cdecl _snwprintf_s ( wchar_t ( & _Dest ) [ _Size ], size_t _Count, const wchar_t * _Format, ... ) { va_list _ArgList; ( __va_start ( & _ArgList, _Format ) ); return _vsnwprintf_s ( _Dest, _Size, _Count, _Format, _ArgList ); }__pragma(warning(pop))
#line 479 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vsnwprintf_s(__wchar_t *, size_t, size_t, const __wchar_t *, va_list); }
#line 480 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
template < size_t _Size > inline int __cdecl _vsnwprintf_s ( wchar_t ( & _Dest ) [ _Size ], size_t _Count, const wchar_t * _Format, va_list _Args ) { return _vsnwprintf_s ( _Dest, _Size, _Count, _Format, _Args ); }
#pragma warning(push)
#pragma warning(disable:4793)
extern "C" { int __cdecl _snwprintf(__wchar_t *, size_t, const __wchar_t *, ...); } extern "C" { int __cdecl _vsnwprintf(__wchar_t *, size_t, const __wchar_t *, va_list); }
#pragma warning(pop)
#line 486 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fwprintf_p(FILE *, const __wchar_t *, ...); }
#line 487 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _wprintf_p(const __wchar_t *, ...); }
#line 488 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vfwprintf_p(FILE *, const __wchar_t *, va_list); }
#line 489 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vwprintf_p(const __wchar_t *, va_list); }
#line 490 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _swprintf_p(__wchar_t *, size_t, const __wchar_t *, ...); }
#line 491 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vswprintf_p(__wchar_t *, size_t, const __wchar_t *, va_list); }
#line 492 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _scwprintf_p(const __wchar_t *, ...); }
#line 493 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vscwprintf_p(const __wchar_t *, va_list); }
#line 495 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _wprintf_l(const __wchar_t *, _locale_t, ...); }
#line 496 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _wprintf_p_l(const __wchar_t *, _locale_t, ...); }
#line 497 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _wprintf_s_l(const __wchar_t *, _locale_t, ...); }
#line 498 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vwprintf_l(const __wchar_t *, _locale_t, va_list); }
#line 499 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vwprintf_p_l(const __wchar_t *, _locale_t, va_list); }
#line 500 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vwprintf_s_l(const __wchar_t *, _locale_t, va_list); }
#line 502 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fwprintf_l(FILE *, const __wchar_t *, _locale_t, ...); }
#line 503 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fwprintf_p_l(FILE *, const __wchar_t *, _locale_t, ...); }
#line 504 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fwprintf_s_l(FILE *, const __wchar_t *, _locale_t, ...); }
#line 505 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vfwprintf_l(FILE *, const __wchar_t *, _locale_t, va_list); }
#line 506 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vfwprintf_p_l(FILE *, const __wchar_t *, _locale_t, va_list); }
#line 507 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vfwprintf_s_l(FILE *, const __wchar_t *, _locale_t, va_list); }
#line 509 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _swprintf_c_l(__wchar_t *, size_t, const __wchar_t *, _locale_t, ...); }
#line 510 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _swprintf_p_l(__wchar_t *, size_t, const __wchar_t *, _locale_t, ...); }
#line 511 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _swprintf_s_l(__wchar_t *, size_t, const __wchar_t *, _locale_t, ...); }
#line 512 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vswprintf_c_l(__wchar_t *, size_t, const __wchar_t *, _locale_t, va_list); }
#line 513 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vswprintf_p_l(__wchar_t *, size_t, const __wchar_t *, _locale_t, va_list); }
#line 514 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vswprintf_s_l(__wchar_t *, size_t, const __wchar_t *, _locale_t, va_list); }
#line 516 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _scwprintf_l(const __wchar_t *, _locale_t, ...); }
#line 517 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _scwprintf_p_l(const __wchar_t *, _locale_t, ...); }
#line 518 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vscwprintf_p_l(const __wchar_t *, _locale_t, va_list); }
#line 520 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snwprintf_l(__wchar_t *, size_t, const __wchar_t *, _locale_t, ...); }
#line 521 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snwprintf_s_l(__wchar_t *, size_t, size_t, const __wchar_t *, _locale_t, ...); }
#line 522 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vsnwprintf_l(__wchar_t *, size_t, const __wchar_t *, _locale_t, va_list); }
#line 523 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vsnwprintf_s_l(__wchar_t *, size_t, size_t, const __wchar_t *, _locale_t, va_list); }
#line 537 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
#pragma warning(push)
#pragma warning(disable:4141 4996 4793)
extern "C" { __declspec(deprecated("swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.")) int __cdecl _swprintf(__wchar_t *, const __wchar_t *, ...); } extern "C" { __declspec(deprecated("swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.")) int __cdecl _vswprintf(__wchar_t *, const __wchar_t *, va_list); }
#line 540 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { __declspec(deprecated("swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.")) int __cdecl __swprintf_l(__wchar_t *, const __wchar_t *, _locale_t, ...); } extern "C" { __declspec(deprecated("swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.")) int __cdecl __vswprintf_l(__wchar_t *, const __wchar_t *, _locale_t, va_list); }
#pragma warning(pop)
#line 34 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
#pragma warning( push )
#pragma warning( disable : 4793 4412 )
extern "C" { static __inline int swprintf(__wchar_t *_String, size_t _Count, const __wchar_t *_Format, ...)
#line 37 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
{
#line 38 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
va_list _Arglist;
#line 39 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
int _Ret;
#line 40 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
__va_start(&_Arglist, _Format);
#line 41 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
_Ret = _vswprintf_c_l(_String, _Count, _Format, 0, _Arglist);
#line 42 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
_Arglist = ((va_list)0);
#line 43 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
return _Ret;
#line 44 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
} }
#pragma warning( pop )
#line 47 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
#pragma warning( push )
#pragma warning( disable : 4412 )
extern "C" { static __inline int __cdecl vswprintf(__wchar_t *_String, size_t _Count, const __wchar_t *_Format, va_list _Ap)
#line 50 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
{
#line 51 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
return _vswprintf_c_l(_String, _Count, _Format, 0, _Ap);
#line 52 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
} }
#pragma warning( pop )
#line 58 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
#pragma warning( push )
#pragma warning( disable : 4793 4412 )
extern "C" { static __inline int _swprintf_l(__wchar_t *_String, size_t _Count, const __wchar_t *_Format, _locale_t _Plocinfo, ...)
#line 61 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
{
#line 62 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
va_list _Arglist;
#line 63 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
int _Ret;
#line 64 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
__va_start(&_Arglist, _Plocinfo);
#line 65 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
_Ret = _vswprintf_c_l(_String, _Count, _Format, _Plocinfo, _Arglist);
#line 66 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
_Arglist = ((va_list)0);
#line 67 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
return _Ret;
#line 68 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
} }
#pragma warning( pop )
#line 71 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
#pragma warning( push )
#pragma warning( disable : 4412 )
extern "C" { static __inline int __cdecl _vswprintf_l(__wchar_t *_String, size_t _Count, const __wchar_t *_Format, _locale_t _Plocinfo, va_list _Ap)
#line 74 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
{
#line 75 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
return _vswprintf_c_l(_String, _Count, _Format, _Plocinfo, _Ap);
#line 76 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
} }
#pragma warning( pop )
#line 80 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
#pragma warning( push )
#pragma warning( disable : 4996 )
#line 83 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
#pragma warning( push )
#pragma warning( disable : 4793 4141 )
__inline __declspec(deprecated("swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.")) int swprintf(__wchar_t *_String, const __wchar_t *_Format, ...)
#line 86 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
{
#line 87 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
va_list _Arglist;
#line 88 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
__va_start(&_Arglist, _Format);
#line 89 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
int _Ret = _vswprintf(_String, _Format, _Arglist);
#line 90 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
_Arglist = ((va_list)0);
#line 91 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
return _Ret;
#line 92 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
}
#pragma warning( pop )
#line 95 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
#pragma warning( push )
#pragma warning( disable : 4141 )
__inline __declspec(deprecated("swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.")) int __cdecl vswprintf(__wchar_t *_String, const __wchar_t *_Format, va_list _Ap)
#line 98 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
{
#line 99 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
return _vswprintf(_String, _Format, _Ap);
#line 100 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
}
#pragma warning( pop )
#line 103 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
#pragma warning( push )
#pragma warning( disable : 4793 4141 )
__inline __declspec(deprecated("swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.")) int _swprintf_l(__wchar_t *_String, const __wchar_t *_Format, _locale_t _Plocinfo, ...)
#line 106 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
{
#line 107 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
va_list _Arglist;
#line 108 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
__va_start(&_Arglist, _Plocinfo);
#line 109 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
int _Ret = __vswprintf_l(_String, _Format, _Plocinfo, _Arglist);
#line 110 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
_Arglist = ((va_list)0);
#line 111 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
return _Ret;
#line 112 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
}
#pragma warning( pop )
#line 115 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
#pragma warning( push )
#pragma warning( disable : 4141 )
__inline __declspec(deprecated("swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.")) int __cdecl _vswprintf_l(__wchar_t *_String, const __wchar_t *_Format, _locale_t _Plocinfo, va_list _Ap)
#line 118 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
{
#line 119 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
return __vswprintf_l(_String, _Format, _Plocinfo, _Ap);
#line 120 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
}
#pragma warning( pop )
#line 123 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\swprintf.inl"
#pragma warning( pop )
#line 561 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { __wchar_t *__cdecl _wtempnam(const __wchar_t *, const __wchar_t *); }
#line 567 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vscwprintf(const __wchar_t *, va_list); }
#line 568 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _vscwprintf_l(const __wchar_t *, _locale_t, va_list); }
#line 569 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fwscanf(FILE *, const __wchar_t *, ...); }
#line 570 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fwscanf_l(FILE *, const __wchar_t *, _locale_t, ...); }
#line 572 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fwscanf_s(FILE *, const __wchar_t *, ...); }
#line 574 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fwscanf_s_l(FILE *, const __wchar_t *, _locale_t, ...); }
#line 575 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl swscanf(const __wchar_t *, const __wchar_t *, ...); }
#line 576 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _swscanf_l(const __wchar_t *, const __wchar_t *, _locale_t, ...); }
#line 578 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl swscanf_s(const __wchar_t *, const __wchar_t *, ...); }
#line 580 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _swscanf_s_l(const __wchar_t *, const __wchar_t *, _locale_t, ...); }
#line 581 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snwscanf(const __wchar_t *, size_t, const __wchar_t *, ...); }
#line 582 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snwscanf_l(const __wchar_t *, size_t, const __wchar_t *, _locale_t, ...); }
#line 583 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snwscanf_s(const __wchar_t *, size_t, const __wchar_t *, ...); }
#line 584 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _snwscanf_s_l(const __wchar_t *, size_t, const __wchar_t *, _locale_t, ...); }
#line 585 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl wscanf(const __wchar_t *, ...); }
#line 586 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _wscanf_l(const __wchar_t *, _locale_t, ...); }
#line 588 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl wscanf_s(const __wchar_t *, ...); }
#line 590 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _wscanf_s_l(const __wchar_t *, _locale_t, ...); }
#pragma warning(pop)
#line 593 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { FILE *__cdecl _wfdopen(int, const __wchar_t *); }
#line 594 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { FILE *__cdecl _wfopen(const __wchar_t *, const __wchar_t *); }
#line 595 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { errno_t __cdecl _wfopen_s(FILE **, const __wchar_t *, const __wchar_t *); }
#line 596 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { FILE *__cdecl _wfreopen(const __wchar_t *, const __wchar_t *, FILE *); }
#line 597 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { errno_t __cdecl _wfreopen_s(FILE **, const __wchar_t *, const __wchar_t *, FILE *); }
#line 603 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { FILE *__cdecl _wpopen(const __wchar_t *, const __wchar_t *); }
#line 604 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _wremove(const __wchar_t *); }
#line 605 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { errno_t __cdecl _wtmpnam_s(__wchar_t *, size_t); }
#line 606 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
template < size_t _Size > inline errno_t __cdecl _wtmpnam_s ( wchar_t ( & _Buffer ) [ _Size ] ) { return _wtmpnam_s ( _Buffer, _Size ); }
#line 607 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { __wchar_t *__cdecl _wtmpnam(__wchar_t *); }
#line 609 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { wint_t __cdecl _fgetwc_nolock(FILE *); }
#line 610 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { wint_t __cdecl _fputwc_nolock(__wchar_t, FILE *); }
#line 611 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { wint_t __cdecl _ungetwc_nolock(wint_t, FILE *); }
#line 619 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { inline wint_t __cdecl getwchar()
#line 620 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
{ return fgetwc(&(__iob_func()[0])); } }
#line 621 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { inline wint_t __cdecl putwchar(__wchar_t _C)
#line 622 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
{ return fputwc(_C, &(__iob_func()[1])); } }
#line 669 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { void __cdecl _lock_file(FILE *); }
#line 670 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { void __cdecl _unlock_file(FILE *); }
#line 677 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fclose_nolock(FILE *); }
#line 678 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fflush_nolock(FILE *); }
#line 679 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { size_t __cdecl _fread_nolock(void *, size_t, size_t, FILE *); }
#line 680 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { size_t __cdecl _fread_nolock_s(void *, size_t, size_t, size_t, FILE *); }
#line 681 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fseek_nolock(FILE *, long, int); }
#line 682 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { long __cdecl _ftell_nolock(FILE *); }
#line 683 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _fseeki64_nolock(FILE *, __int64, int); }
#line 684 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { __int64 __cdecl _ftelli64_nolock(FILE *); }
#line 685 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { size_t __cdecl _fwrite_nolock(const void *, size_t, size_t, FILE *); }
#line 686 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl _ungetc_nolock(int, FILE *); }
#line 713 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { char *__cdecl tempnam(const char *, const char *); }
#line 719 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fcloseall(); }
#line 720 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { FILE *__cdecl fdopen(int, const char *); }
#line 721 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fgetchar(); }
#line 722 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fileno(FILE *); }
#line 723 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl flushall(); }
#line 724 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl fputchar(int); }
#line 725 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl getw(FILE *); }
#line 726 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl putw(int, FILE *); }
#line 727 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
extern "C" { int __cdecl rmtmp(); }
#line 736 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\stdio.h"
#pragma pack ( pop )
#line 77 "c:\\cuda\\include\\cuPrintf.cuh"
int cuPrintf(const char *);
#line 78 "c:\\cuda\\include\\cuPrintf.cuh"
template<class T1> int cuPrintf(const char *, T1);
#line 79 "c:\\cuda\\include\\cuPrintf.cuh"
template<class T1, class T2> int cuPrintf(const char *, T1, T2);
#line 80 "c:\\cuda\\include\\cuPrintf.cuh"
template<class T1, class T2, class T3> int cuPrintf(const char *, T1, T2, T3);
#line 81 "c:\\cuda\\include\\cuPrintf.cuh"
template<class T1, class T2, class T3, class T4> int cuPrintf(const char *, T1, T2, T3, T4);
#line 82 "c:\\cuda\\include\\cuPrintf.cuh"
template<class T1, class T2, class T3, class T4, class T5> int cuPrintf(const char *, T1, T2, T3, T4, T5);
#line 83 "c:\\cuda\\include\\cuPrintf.cuh"
template<class T1, class T2, class T3, class T4, class T5, class T6> int cuPrintf(const char *, T1, T2, T3, T4, T5, T6);
#line 84 "c:\\cuda\\include\\cuPrintf.cuh"
template<class T1, class T2, class T3, class T4, class T5, class T6, class T7> int cuPrintf(const char *, T1, T2, T3, T4, T5, T6, T7);
#line 85 "c:\\cuda\\include\\cuPrintf.cuh"
template<class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8> int cuPrintf(const char *, T1, T2, T3, T4, T5, T6, T7, T8);
#line 86 "c:\\cuda\\include\\cuPrintf.cuh"
template<class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9> int cuPrintf(const char *, T1, T2, T3, T4, T5, T6, T7, T8, T9);
#line 87 "c:\\cuda\\include\\cuPrintf.cuh"
template<class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10> int cuPrintf(const char *, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10);
#line 107 "c:\\cuda\\include\\cuPrintf.cuh"
void cuPrintfRestrict(int, int);
#line 135 "c:\\cuda\\include\\cuPrintf.cuh"
extern "C" cudaError_t cudaPrintfInit(size_t = (1048576));
#line 143 "c:\\cuda\\include\\cuPrintf.cuh"
extern "C" void cudaPrintfEnd();
#line 160 "c:\\cuda\\include\\cuPrintf.cuh"
extern "C" cudaError_t cudaPrintfDisplay(void * = 0, bool = false);
#line 94 "C:\\CUDA\\include\\cuPrintf.cu"
static const int CUPRINTF_MAX_LEN = 256;
#line 100 "C:\\CUDA\\include\\cuPrintf.cu"
typedef
#line 97 "C:\\CUDA\\include\\cuPrintf.cu"
struct __declspec(align(8)) {
#line 98 "C:\\CUDA\\include\\cuPrintf.cu"
int threadid;
#line 99 "C:\\CUDA\\include\\cuPrintf.cu"
int blockid;
#line 100 "C:\\CUDA\\include\\cuPrintf.cu"
} cuPrintfRestriction;
#line 110 "C:\\CUDA\\include\\cuPrintf.cu"
static char *globalPrintfBuffer=(char *)"globalPrintfBuffer";
#line 111 "C:\\CUDA\\include\\cuPrintf.cu"
static int printfBufferLength;
#line 112 "C:\\CUDA\\include\\cuPrintf.cu"
static cuPrintfRestriction restrictRules;
#line 113 "C:\\CUDA\\include\\cuPrintf.cu"
static volatile char *printfBufferPtr=(volatile char *)"printfBufferPtr";
#line 122 "C:\\CUDA\\include\\cuPrintf.cu"
typedef
#line 117 "C:\\CUDA\\include\\cuPrintf.cu"
struct __declspec(align(8)) {
#line 118 "C:\\CUDA\\include\\cuPrintf.cu"
unsigned short magic;
#line 119 "C:\\CUDA\\include\\cuPrintf.cu"
unsigned short fmtoffset;
#line 120 "C:\\CUDA\\include\\cuPrintf.cu"
unsigned short blockid;
#line 121 "C:\\CUDA\\include\\cuPrintf.cu"
unsigned short threadid;
#line 122 "C:\\CUDA\\include\\cuPrintf.cu"
} cuPrintfHeader;
#line 132 "C:\\CUDA\\include\\cuPrintf.cu"
typedef
#line 126 "C:\\CUDA\\include\\cuPrintf.cu"
struct __declspec(align(16)) {
#line 127 "C:\\CUDA\\include\\cuPrintf.cu"
unsigned short magic;
#line 128 "C:\\CUDA\\include\\cuPrintf.cu"
unsigned short unused;
#line 129 "C:\\CUDA\\include\\cuPrintf.cu"
unsigned thread_index;
#line 130 "C:\\CUDA\\include\\cuPrintf.cu"
unsigned thread_buf_len;
#line 131 "C:\\CUDA\\include\\cuPrintf.cu"
unsigned offset;
#line 132 "C:\\CUDA\\include\\cuPrintf.cu"
} cuPrintfHeaderSM10;
#line 160 "C:\\CUDA\\include\\cuPrintf.cu"
static char *getNextPrintfBufPtr()
#line 161 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 222 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 247 "C:\\CUDA\\include\\cuPrintf.cu"
#line 232 "C:\\CUDA\\include\\cuPrintf.cu"
static void writePrintfHeader(char *ptr, char *fmtptr)
#line 233 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 243 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 268 "C:\\CUDA\\include\\cuPrintf.cu"
#line 257 "C:\\CUDA\\include\\cuPrintf.cu"
static char *cuPrintfStrncpy(char *dest, const char *src, int n, char *end)
#line 258 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 290 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 339 "C:\\CUDA\\include\\cuPrintf.cu"
#line 308 "C:\\CUDA\\include\\cuPrintf.cu"
static char *copyArg(char *ptr, const char *arg, char *end)
#line 309 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 319 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 336 "C:\\CUDA\\include\\cuPrintf.cu"
#line 321 "C:\\CUDA\\include\\cuPrintf.cu"
template<class T> static char *
#line 322 "C:\\CUDA\\include\\cuPrintf.cu"
copyArg(char *ptr, T &arg, char *end)
#line 323 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 338 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 361 "C:\\CUDA\\include\\cuPrintf.cu"
#line 385 "C:\\CUDA\\include\\cuPrintf.cu"
int cuPrintf(const char *fmt)
#line 386 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 390 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 401 "C:\\CUDA\\include\\cuPrintf.cu"
#line 391 "C:\\CUDA\\include\\cuPrintf.cu"
template<class T1> int cuPrintf(const char *fmt, T1 arg1)
#line 392 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 398 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 411 "C:\\CUDA\\include\\cuPrintf.cu"
#line 399 "C:\\CUDA\\include\\cuPrintf.cu"
template<class T1, class T2> int cuPrintf(const char *fmt, T1 arg1, T2 arg2)
#line 400 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 407 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 422 "C:\\CUDA\\include\\cuPrintf.cu"
#line 408 "C:\\CUDA\\include\\cuPrintf.cu"
template<class T1, class T2, class T3> int cuPrintf(const char *fmt, T1 arg1, T2 arg2, T3 arg3)
#line 409 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 417 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 434 "C:\\CUDA\\include\\cuPrintf.cu"
#line 418 "C:\\CUDA\\include\\cuPrintf.cu"
template<class T1, class T2, class T3, class T4> int cuPrintf(const char *fmt, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
#line 419 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 428 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 447 "C:\\CUDA\\include\\cuPrintf.cu"
#line 429 "C:\\CUDA\\include\\cuPrintf.cu"
template<class T1, class T2, class T3, class T4, class T5> int cuPrintf(const char *fmt, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
#line 430 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 440 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 461 "C:\\CUDA\\include\\cuPrintf.cu"
#line 441 "C:\\CUDA\\include\\cuPrintf.cu"
template<class T1, class T2, class T3, class T4, class T5, class T6> int cuPrintf(const char *fmt, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
#line 442 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 452 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 475 "C:\\CUDA\\include\\cuPrintf.cu"
#line 453 "C:\\CUDA\\include\\cuPrintf.cu"
template<class T1, class T2, class T3, class T4, class T5, class T6, class T7> int cuPrintf(const char *fmt, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
#line 454 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 466 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 491 "C:\\CUDA\\include\\cuPrintf.cu"
#line 467 "C:\\CUDA\\include\\cuPrintf.cu"
template<class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8> int cuPrintf(const char *fmt, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
#line 468 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 481 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 508 "C:\\CUDA\\include\\cuPrintf.cu"
#line 482 "C:\\CUDA\\include\\cuPrintf.cu"
template<class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9> int cuPrintf(const char *fmt, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
#line 483 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 497 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 526 "C:\\CUDA\\include\\cuPrintf.cu"
#line 498 "C:\\CUDA\\include\\cuPrintf.cu"
template<class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10> int cuPrintf(const char *fmt, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
#line 499 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 514 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 545 "C:\\CUDA\\include\\cuPrintf.cu"
#line 530 "C:\\CUDA\\include\\cuPrintf.cu"
void cuPrintfRestrict(int threadid, int blockid)
#line 531 "C:\\CUDA\\include\\cuPrintf.cu"
{int volatile ___ = 1;
#line 539 "C:\\CUDA\\include\\cuPrintf.cu"
exit(___);}
#line 558 "C:\\CUDA\\include\\cuPrintf.cu"
#line 546 "C:\\CUDA\\include\\cuPrintf.cu"
static FILE *printf_fp;
#line 548 "C:\\CUDA\\include\\cuPrintf.cu"
static char *printfbuf_start = (0);
#line 549 "C:\\CUDA\\include\\cuPrintf.cu"
static char *printfbuf_device = (0);
#line 550 "C:\\CUDA\\include\\cuPrintf.cu"
static int printfbuf_len = 0;
#line 564 "C:\\CUDA\\include\\cuPrintf.cu"
static int outputPrintfData(char *fmt, char *data)
#line 565 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 567 "C:\\CUDA\\include\\cuPrintf.cu"
fmt += sizeof(__int64);
#line 572 "C:\\CUDA\\include\\cuPrintf.cu"
char *p = strchr(fmt, '%');
#line 573 "C:\\CUDA\\include\\cuPrintf.cu"
while (p != (0))
#line 574 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 576 "C:\\CUDA\\include\\cuPrintf.cu"
(*p) = '\000';
#line 577 "C:\\CUDA\\include\\cuPrintf.cu"
fputs(fmt, printf_fp);
#line 578 "C:\\CUDA\\include\\cuPrintf.cu"
(*p) = '%';
#line 581 "C:\\CUDA\\include\\cuPrintf.cu"
char *format = (p++);
#line 582 "C:\\CUDA\\include\\cuPrintf.cu"
p += strcspn(p, "%cdiouxXeEfgGaAnps");
#line 583 "C:\\CUDA\\include\\cuPrintf.cu"
if ((*p) == ('\000'))
#line 584 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 585 "C:\\CUDA\\include\\cuPrintf.cu"
fmt = format;
#line 586 "C:\\CUDA\\include\\cuPrintf.cu"
break;
#line 587 "C:\\CUDA\\include\\cuPrintf.cu"
}
#line 591 "C:\\CUDA\\include\\cuPrintf.cu"
int arglen = (*((int *)data));
#line 592 "C:\\CUDA\\include\\cuPrintf.cu"
if (arglen > CUPRINTF_MAX_LEN)
#line 593 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 594 "C:\\CUDA\\include\\cuPrintf.cu"
fputs("Corrupt printf buffer data - aborting\n", printf_fp);
#line 595 "C:\\CUDA\\include\\cuPrintf.cu"
return 0;
#line 596 "C:\\CUDA\\include\\cuPrintf.cu"
}
#line 598 "C:\\CUDA\\include\\cuPrintf.cu"
data += sizeof(__int64);
#line 600 "C:\\CUDA\\include\\cuPrintf.cu"
char specifier = (*(p++));
#line 601 "C:\\CUDA\\include\\cuPrintf.cu"
char c = (*p);
#line 602 "C:\\CUDA\\include\\cuPrintf.cu"
(*p) = '\000';
#line 603 "C:\\CUDA\\include\\cuPrintf.cu"
switch (specifier)
#line 604 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 606 "C:\\CUDA\\include\\cuPrintf.cu"
case 'c':
#line 607 "C:\\CUDA\\include\\cuPrintf.cu"
case 'd':
#line 608 "C:\\CUDA\\include\\cuPrintf.cu"
case 'i':
#line 609 "C:\\CUDA\\include\\cuPrintf.cu"
case 'o':
#line 610 "C:\\CUDA\\include\\cuPrintf.cu"
case 'u':
#line 611 "C:\\CUDA\\include\\cuPrintf.cu"
case 'x':
#line 612 "C:\\CUDA\\include\\cuPrintf.cu"
case 'X':
#line 613 "C:\\CUDA\\include\\cuPrintf.cu"
case 'p':
#line 614 "C:\\CUDA\\include\\cuPrintf.cu"
fprintf(printf_fp, format, *((int *)data));
#line 615 "C:\\CUDA\\include\\cuPrintf.cu"
break;
#line 618 "C:\\CUDA\\include\\cuPrintf.cu"
case 'e':
#line 619 "C:\\CUDA\\include\\cuPrintf.cu"
case 'E':
#line 620 "C:\\CUDA\\include\\cuPrintf.cu"
case 'f':
#line 621 "C:\\CUDA\\include\\cuPrintf.cu"
case 'g':
#line 622 "C:\\CUDA\\include\\cuPrintf.cu"
case 'G':
#line 623 "C:\\CUDA\\include\\cuPrintf.cu"
case 'a':
#line 624 "C:\\CUDA\\include\\cuPrintf.cu"
case 'A':
#line 625 "C:\\CUDA\\include\\cuPrintf.cu"
if (arglen == 4) {
#line 626 "C:\\CUDA\\include\\cuPrintf.cu"
fprintf(printf_fp, format, *((float *)data)); } else {
#line 628 "C:\\CUDA\\include\\cuPrintf.cu"
fprintf(printf_fp, format, *((double *)data)); }
#line 629 "C:\\CUDA\\include\\cuPrintf.cu"
break;
#line 632 "C:\\CUDA\\include\\cuPrintf.cu"
case 's':
#line 633 "C:\\CUDA\\include\\cuPrintf.cu"
fprintf(printf_fp, format, data);
#line 634 "C:\\CUDA\\include\\cuPrintf.cu"
break;
#line 637 "C:\\CUDA\\include\\cuPrintf.cu"
case '%':
#line 638 "C:\\CUDA\\include\\cuPrintf.cu"
fprintf(printf_fp, "%%");
#line 639 "C:\\CUDA\\include\\cuPrintf.cu"
break;
#line 642 "C:\\CUDA\\include\\cuPrintf.cu"
default:
#line 643 "C:\\CUDA\\include\\cuPrintf.cu"
fprintf(printf_fp, format);
#line 644 "C:\\CUDA\\include\\cuPrintf.cu"
break;
#line 645 "C:\\CUDA\\include\\cuPrintf.cu"
}
#line 646 "C:\\CUDA\\include\\cuPrintf.cu"
data += sizeof(__int64);
#line 647 "C:\\CUDA\\include\\cuPrintf.cu"
(*p) = c;
#line 648 "C:\\CUDA\\include\\cuPrintf.cu"
fmt = p;
#line 649 "C:\\CUDA\\include\\cuPrintf.cu"
p = strchr(fmt, '%');
#line 650 "C:\\CUDA\\include\\cuPrintf.cu"
}
#line 653 "C:\\CUDA\\include\\cuPrintf.cu"
fputs(fmt, printf_fp);
#line 654 "C:\\CUDA\\include\\cuPrintf.cu"
return 1;
#line 655 "C:\\CUDA\\include\\cuPrintf.cu"
}
#line 666 "C:\\CUDA\\include\\cuPrintf.cu"
static int doPrintfDisplay(int headings, int clear, char *bufstart, char *bufend, char *bufptr, char *endptr)
#line 667 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 670 "C:\\CUDA\\include\\cuPrintf.cu"
int printf_count = 0;
#line 671 "C:\\CUDA\\include\\cuPrintf.cu"
char printfbuf_local[(CUPRINTF_MAX_LEN + 1)];
#line 672 "C:\\CUDA\\include\\cuPrintf.cu"
((printfbuf_local)[CUPRINTF_MAX_LEN]) = '\000';
#line 674 "C:\\CUDA\\include\\cuPrintf.cu"
while (bufptr != endptr)
#line 675 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 677 "C:\\CUDA\\include\\cuPrintf.cu"
if (bufptr == bufend) {
#line 678 "C:\\CUDA\\include\\cuPrintf.cu"
bufptr = bufstart; }
#line 681 "C:\\CUDA\\include\\cuPrintf.cu"
cudaMemcpy(printfbuf_local, bufptr, CUPRINTF_MAX_LEN, cudaMemcpyDeviceToHost);
#line 685 "C:\\CUDA\\include\\cuPrintf.cu"
cuPrintfHeader *hdr = ((cuPrintfHeader *)(printfbuf_local));
#line 686 "C:\\CUDA\\include\\cuPrintf.cu"
if (((hdr->magic) != ((unsigned short)51217)) || ((hdr->fmtoffset) >= CUPRINTF_MAX_LEN))
#line 687 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 689 "C:\\CUDA\\include\\cuPrintf.cu"
break;
#line 690 "C:\\CUDA\\include\\cuPrintf.cu"
}
#line 693 "C:\\CUDA\\include\\cuPrintf.cu"
if (headings) {
#line 694 "C:\\CUDA\\include\\cuPrintf.cu"
fprintf(printf_fp, "[%d, %d]: ", hdr->blockid, hdr->threadid); }
#line 695 "C:\\CUDA\\include\\cuPrintf.cu"
if ((hdr->fmtoffset) == 0) {
#line 696 "C:\\CUDA\\include\\cuPrintf.cu"
fprintf(printf_fp, "printf buffer overflow\n"); } else {
#line 697 "C:\\CUDA\\include\\cuPrintf.cu"
if (!(outputPrintfData((printfbuf_local) + (hdr->fmtoffset), (printfbuf_local) + sizeof(cuPrintfHeader)))) {
#line 698 "C:\\CUDA\\include\\cuPrintf.cu"
break; } }
#line 699 "C:\\CUDA\\include\\cuPrintf.cu"
printf_count++;
#line 702 "C:\\CUDA\\include\\cuPrintf.cu"
if (clear) {
#line 703 "C:\\CUDA\\include\\cuPrintf.cu"
cudaMemset(bufptr, 0, CUPRINTF_MAX_LEN); }
#line 706 "C:\\CUDA\\include\\cuPrintf.cu"
bufptr += CUPRINTF_MAX_LEN;
#line 707 "C:\\CUDA\\include\\cuPrintf.cu"
}
#line 709 "C:\\CUDA\\include\\cuPrintf.cu"
return printf_count;
#line 710 "C:\\CUDA\\include\\cuPrintf.cu"
}
#line 720 "C:\\CUDA\\include\\cuPrintf.cu"
extern "C" cudaError_t cudaPrintfInit(size_t bufferLen)
#line 721 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 723 "C:\\CUDA\\include\\cuPrintf.cu"
bufferLen = ((bufferLen < (CUPRINTF_MAX_LEN)) ? (CUPRINTF_MAX_LEN) : bufferLen);
#line 724 "C:\\CUDA\\include\\cuPrintf.cu"
if ((bufferLen % (CUPRINTF_MAX_LEN)) > (0)) {
#line 725 "C:\\CUDA\\include\\cuPrintf.cu"
bufferLen += ((CUPRINTF_MAX_LEN) - (bufferLen % (CUPRINTF_MAX_LEN))); }
#line 726 "C:\\CUDA\\include\\cuPrintf.cu"
printfbuf_len = ((int)bufferLen);
#line 729 "C:\\CUDA\\include\\cuPrintf.cu"
if ((cudaMalloc((void **)(&printfbuf_device), printfbuf_len)) != (cudaSuccess)) {
#line 730 "C:\\CUDA\\include\\cuPrintf.cu"
return cudaErrorInitializationError; }
#line 731 "C:\\CUDA\\include\\cuPrintf.cu"
cudaMemset(printfbuf_device, 0, printfbuf_len);
#line 732 "C:\\CUDA\\include\\cuPrintf.cu"
printfbuf_start = printfbuf_device;
#line 735 "C:\\CUDA\\include\\cuPrintf.cu"
cuPrintfRestriction restrict;
#line 736 "C:\\CUDA\\include\\cuPrintf.cu"
(restrict.threadid) = ((restrict.blockid) = (-1));
#line 737 "C:\\CUDA\\include\\cuPrintf.cu"
cudaMemcpyToSymbol(restrictRules, &restrict, sizeof(restrict));
#line 740 "C:\\CUDA\\include\\cuPrintf.cu"
cudaMemcpyToSymbol(globalPrintfBuffer, &printfbuf_device, sizeof(char *));
#line 741 "C:\\CUDA\\include\\cuPrintf.cu"
cudaMemcpyToSymbol(printfBufferPtr, &printfbuf_device, sizeof(char *));
#line 742 "C:\\CUDA\\include\\cuPrintf.cu"
cudaMemcpyToSymbol(printfBufferLength, &printfbuf_len, sizeof(printfbuf_len));
#line 744 "C:\\CUDA\\include\\cuPrintf.cu"
return cudaSuccess;
#line 745 "C:\\CUDA\\include\\cuPrintf.cu"
}
#line 753 "C:\\CUDA\\include\\cuPrintf.cu"
extern "C" void cudaPrintfEnd()
#line 754 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 755 "C:\\CUDA\\include\\cuPrintf.cu"
if ((!(printfbuf_start)) || (!(printfbuf_device))) {
#line 756 "C:\\CUDA\\include\\cuPrintf.cu"
return; }
#line 758 "C:\\CUDA\\include\\cuPrintf.cu"
cudaFree(printfbuf_device);
#line 759 "C:\\CUDA\\include\\cuPrintf.cu"
printfbuf_start = (printfbuf_device = (0));
#line 760 "C:\\CUDA\\include\\cuPrintf.cu"
}
#line 779 "C:\\CUDA\\include\\cuPrintf.cu"
extern "C" cudaError_t cudaPrintfDisplay(void *outputFP, bool showThreadID)
#line 780 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 781 "C:\\CUDA\\include\\cuPrintf.cu"
printf_fp = ((FILE *)((outputFP == (0)) ? (&(__iob_func()[1])) : outputFP));
#line 786 "C:\\CUDA\\include\\cuPrintf.cu"
bool sync_printfs = true;
#line 787 "C:\\CUDA\\include\\cuPrintf.cu"
bool clearOnPrint = false;
#line 790 "C:\\CUDA\\include\\cuPrintf.cu"
if (((!(printfbuf_start)) || (!(printfbuf_device))) || (!(printf_fp))) {
#line 791 "C:\\CUDA\\include\\cuPrintf.cu"
return cudaErrorMissingConfiguration; }
#line 796 "C:\\CUDA\\include\\cuPrintf.cu"
unsigned short magic;
#line 797 "C:\\CUDA\\include\\cuPrintf.cu"
cudaMemcpy(&magic, printfbuf_device, sizeof(unsigned short), cudaMemcpyDeviceToHost);
#line 803 "C:\\CUDA\\include\\cuPrintf.cu"
if (magic == 51216)
#line 804 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 805 "C:\\CUDA\\include\\cuPrintf.cu"
sync_printfs = true;
#line 806 "C:\\CUDA\\include\\cuPrintf.cu"
clearOnPrint = false;
#line 807 "C:\\CUDA\\include\\cuPrintf.cu"
int blocklen = 0;
#line 808 "C:\\CUDA\\include\\cuPrintf.cu"
char *blockptr = printfbuf_device;
#line 809 "C:\\CUDA\\include\\cuPrintf.cu"
while (blockptr < (printfbuf_device + printfbuf_len)) {
#line 810 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 811 "C:\\CUDA\\include\\cuPrintf.cu"
cuPrintfHeaderSM10 hdr;
#line 812 "C:\\CUDA\\include\\cuPrintf.cu"
cudaMemcpy(&hdr, blockptr, sizeof(hdr), cudaMemcpyDeviceToHost);
#line 815 "C:\\CUDA\\include\\cuPrintf.cu"
if ((hdr.thread_buf_len) != (0)) {
#line 816 "C:\\CUDA\\include\\cuPrintf.cu"
blocklen = (hdr.thread_buf_len); }
#line 819 "C:\\CUDA\\include\\cuPrintf.cu"
if ((hdr.magic) != 51216)
#line 820 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 821 "C:\\CUDA\\include\\cuPrintf.cu"
if (blocklen == 0)
#line 822 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 823 "C:\\CUDA\\include\\cuPrintf.cu"
fprintf(printf_fp, "No printf headers found at all!\n");
#line 824 "C:\\CUDA\\include\\cuPrintf.cu"
break;
#line 825 "C:\\CUDA\\include\\cuPrintf.cu"
}
#line 826 "C:\\CUDA\\include\\cuPrintf.cu"
blockptr += blocklen;
#line 827 "C:\\CUDA\\include\\cuPrintf.cu"
continue;
#line 828 "C:\\CUDA\\include\\cuPrintf.cu"
}
#line 831 "C:\\CUDA\\include\\cuPrintf.cu"
if ((hdr.offset) > (0))
#line 832 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 834 "C:\\CUDA\\include\\cuPrintf.cu"
if (sync_printfs) {
#line 835 "C:\\CUDA\\include\\cuPrintf.cu"
doPrintfDisplay(showThreadID, clearOnPrint, blockptr + CUPRINTF_MAX_LEN, blockptr + (hdr.thread_buf_len), (blockptr + (hdr.offset)) + CUPRINTF_MAX_LEN, blockptr + (hdr.thread_buf_len)); }
#line 836 "C:\\CUDA\\include\\cuPrintf.cu"
doPrintfDisplay(showThreadID, clearOnPrint, blockptr + CUPRINTF_MAX_LEN, blockptr + (hdr.thread_buf_len), blockptr + CUPRINTF_MAX_LEN, (blockptr + (hdr.offset)) + CUPRINTF_MAX_LEN);
#line 837 "C:\\CUDA\\include\\cuPrintf.cu"
}
#line 840 "C:\\CUDA\\include\\cuPrintf.cu"
blockptr += (hdr.thread_buf_len);
#line 841 "C:\\CUDA\\include\\cuPrintf.cu"
} }
#line 842 "C:\\CUDA\\include\\cuPrintf.cu"
} else {
#line 844 "C:\\CUDA\\include\\cuPrintf.cu"
if (magic == ((unsigned short)51217))
#line 845 "C:\\CUDA\\include\\cuPrintf.cu"
{
#line 847 "C:\\CUDA\\include\\cuPrintf.cu"
char *printfbuf_end = (0);
#line 848 "C:\\CUDA\\include\\cuPrintf.cu"
cudaMemcpyFromSymbol(&printfbuf_end, printfBufferPtr, sizeof(char *));
#line 851 "C:\\CUDA\\include\\cuPrintf.cu"
char *bufptr = (((printfbuf_start - printfbuf_device) % printfbuf_len) + printfbuf_device);
#line 852 "C:\\CUDA\\include\\cuPrintf.cu"
char *endptr = (((printfbuf_end - printfbuf_device) % printfbuf_len) + printfbuf_device);
#line 856 "C:\\CUDA\\include\\cuPrintf.cu"
if (sync_printfs) {
#line 857 "C:\\CUDA\\include\\cuPrintf.cu"
doPrintfDisplay(showThreadID, clearOnPrint, printfbuf_device, printfbuf_device + printfbuf_len, endptr, printfbuf_device + printfbuf_len); }
#line 858 "C:\\CUDA\\include\\cuPrintf.cu"
doPrintfDisplay(showThreadID, clearOnPrint, printfbuf_device, printfbuf_device + printfbuf_len, bufptr, endptr);
#line 860 "C:\\CUDA\\include\\cuPrintf.cu"
printfbuf_start = printfbuf_end;
#line 861 "C:\\CUDA\\include\\cuPrintf.cu"
} else {
#line 863 "C:\\CUDA\\include\\cuPrintf.cu"
; } }
#line 867 "C:\\CUDA\\include\\cuPrintf.cu"
if (sync_printfs) {
#line 868 "C:\\CUDA\\include\\cuPrintf.cu"
cudaMemset(printfbuf_device, 0, printfbuf_len); }
#line 870 "C:\\CUDA\\include\\cuPrintf.cu"
return cudaSuccess;
#line 871 "C:\\CUDA\\include\\cuPrintf.cu"
}
#line 85 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\float.h"
extern "C" { unsigned __cdecl _clearfp(); }
#pragma warning(push)
#pragma warning(disable: 4141)
extern "C" { unsigned __cdecl _controlfp(unsigned, unsigned); }
#pragma warning(pop)
extern "C" { void __cdecl _set_controlfp(unsigned, unsigned); }
#line 91 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\float.h"
extern "C" { errno_t __cdecl _controlfp_s(unsigned *, unsigned, unsigned); }
#line 92 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\float.h"
extern "C" { unsigned __cdecl _statusfp(); }
#line 93 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\float.h"
extern "C" { void __cdecl _fpreset(); }
#line 174 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\float.h"
extern "C" { unsigned __cdecl _control87(unsigned, unsigned); }
#line 183 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\float.h"
extern "C" { extern int *__cdecl __fpecode(); }
#line 220 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\float.h"
extern "C" { double __cdecl _scalb(double, long); }
#line 221 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\float.h"
extern "C" { double __cdecl _logb(double); }
#line 222 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\float.h"
extern "C" { double __cdecl _nextafter(double, double); }
#line 223 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\float.h"
extern "C" { int __cdecl _finite(double); }
#line 224 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\float.h"
extern "C" { int __cdecl _isnan(double); }
#line 225 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\float.h"
extern "C" { int __cdecl _fpclass(double); }
#line 228 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\float.h"
extern "C" { float __cdecl _scalbf(float, long); }
#line 251 "C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include\\float.h"
extern "C" { void __cdecl fpreset(); }
#line 7 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
static const int L_SIZE = 16;
#line 8 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
static const int N_POINTS = (L_SIZE * L_SIZE);
#line 11 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
void fillU(void *r_data, void *u_data) ;
#line 44 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
#line 52 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
void calc_H(void *h, void *s, void *u) ;
#line 79 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
#line 75 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
void calc_E(void *h, void *s, void *e) ;
#line 118 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
#line 104 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
void calc_full_E(void *u, void *s, void *e) ;
#line 153 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
#line 6 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
float U[N_POINTS][N_POINTS][3][3];
#line 8 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
void fillR_CPU(float3 *r_cpu) {
#line 9 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
int k, j;
#line 10 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
for (j = 0; j < L_SIZE; j++) {
#line 11 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
for (k = 0; k < L_SIZE; k++) {
#line 12 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
((r_cpu[k + (j * L_SIZE)]).x) = ((float)k);
#line 13 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
((r_cpu[k + (j * L_SIZE)]).y) = ((float)j);
#line 14 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
((r_cpu[k + (j * L_SIZE)]).z) = (0.0F);
#line 15 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
}
#line 16 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
}
#line 17 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
}
#line 19 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
void fill_U2(float3 *r_h) {
#line 20 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
int m, n, i, j;
#line 21 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
for (i = 0; i < N_POINTS; i++) {
#line 22 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
for (j = 0; j < N_POINTS; j++) { {
#line 24 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
if (i == j) {
#line 25 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
continue;
#line 26 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
}
#line 27 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
float d[3];
#line 28 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
float r1 = (0), r2 = (0), r3 = (0);
#line 30 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
((d)[0]) = (((r_h[i]).x) - ((r_h[j]).x));
#line 31 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
r2 += (((d)[0]) * ((d)[0]));
#line 33 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
((d)[1]) = (((r_h[i]).y) - ((r_h[j]).y));
#line 34 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
r2 += (((d)[1]) * ((d)[1]));
#line 36 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
((d)[2]) = (((r_h[i]).z) - ((r_h[j]).z));
#line 37 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
r2 += (((d)[2]) * ((d)[2]));
#line 40 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
r1 = sqrt(r2);
#line 41 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
r3 = pow(r1, 3);
#line 43 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
for (m = 0; m < 3; m++) {
#line 44 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
for (n = 0; n < 3; n++) {
#line 45 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
(((((U)[i])[j])[m])[n]) = (((((((3) * ((d)[m])) / r1) * ((d)[n])) / r1) - ((m == n) ? 1 : 0)) / r3);
#line 46 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
}
#line 47 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
}
#line 48 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
} }
#line 49 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
}
#line 50 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.h"
}
#line 16 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
int __cdecl main(int argc, char **argv) {
#line 19 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
puts("Ola");
#line 21 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
if (argc < 2) {
#line 22 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
puts("neoNbody: Usage: neoNbody NumberOfPoints [-d]");
#line 23 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
exit(0);
#line 24 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
}
#line 27 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
static int N_POINTS = atoi(argv[1]);
#line 30 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
if (!(strcmp(argv[2], "-d"))) {
#line 31 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
cudaError_t status = ((cudaError_t)0); }
#line 34 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
float *u_CPU;
#line 35 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
u_CPU = ((float *)malloc((((sizeof(float) * (3)) * (3)) * N_POINTS) * N_POINTS));
#line 37 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
float3 *r_CPU;
#line 38 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
r_CPU = ((float3 *)malloc((sizeof(float3) * N_POINTS) * N_POINTS));
#line 40 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
fillR_CPU(r_CPU);
#line 42 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
for (int i = 0; i < N_POINTS; i++) {
#line 43 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
printf("%f %f %f\n", (r_CPU[i]).x, (r_CPU[i]).y, (r_CPU[i]).z); } return 0;
#line 45 "c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu"
}
#line 1 "naive.cudafe1.stub.c"
#line 1 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.cudafe1.stub.c"
#line 1 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.fatbin.c"
#line 1 "C:\\CUDA\\include\\__cudaFatFormat.h"
extern "C" {
#line 85 "C:\\CUDA\\include\\__cudaFatFormat.h"
typedef struct {
char* gpuProfileName;
char* cubin;
} __cudaFatCubinEntry;
typedef struct {
char* gpuProfileName;
char* ptx;
} __cudaFatPtxEntry;
typedef struct __cudaFatDebugEntryRec {
char* gpuProfileName;
char* debug;
struct __cudaFatDebugEntryRec *next;
unsigned int size;
} __cudaFatDebugEntry;
typedef struct __cudaFatElfEntryRec {
char* gpuProfileName;
char* elf;
struct __cudaFatElfEntryRec *next;
unsigned int size;
} __cudaFatElfEntry;
typedef enum {
__cudaFatDontSearchFlag = (1 << 0),
__cudaFatDontCacheFlag = (1 << 1),
__cudaFatSassDebugFlag = (1 << 2)
} __cudaFatCudaBinaryFlag;
typedef struct {
char* name;
} __cudaFatSymbol;
typedef struct __cudaFatCudaBinaryRec {
unsigned long magic;
unsigned long version;
unsigned long gpuInfoVersion;
char* key;
char* ident;
char* usageMode;
__cudaFatPtxEntry *ptx;
__cudaFatCubinEntry *cubin;
__cudaFatDebugEntry *debug;
void* debugInfo;
unsigned int flags;
__cudaFatSymbol *exported;
__cudaFatSymbol *imported;
struct __cudaFatCudaBinaryRec *dependends;
unsigned int characteristic;
__cudaFatElfEntry *elf;
} __cudaFatCudaBinary;
typedef enum {
__cudaFatAvoidPTX,
__cudaFatPreferBestCode,
__cudaFatForcePTX
} __cudaFatCompilationPolicy;
void fatGetCubinForGpuWithPolicy( __cudaFatCudaBinary *binary, __cudaFatCompilationPolicy policy, char* gpuName, char* *cubin, char* *dbgInfoFile );
unsigned char fatCheckJitForGpuWithPolicy( __cudaFatCudaBinary *binary, __cudaFatCompilationPolicy policy, char* gpuName, char* *ptx );
void fatFreeCubin( char* cubin, char* dbgInfoFile );
void __cudaFatFreePTX( char* ptx );
}
#line 261 "C:\\CUDA\\include\\__cudaFatFormat.h"
#line 263 "C:\\CUDA\\include\\__cudaFatFormat.h"
#line 2 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.fatbin.c"
extern "C" {
#line 8 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.fatbin.c"
static const unsigned long long __deviceText_$compute_11$[] = {
0x6f69737265762e09,0x090a0d342e31206e,0x207465677261742e,0x6d202c31315f6d73,
0x745f3436665f7061,0x090a0d3233665f6f,0x69706d6f63202f2f,0x687469772064656c,
0x414455435c3a4320,0x2e2f34366e69625c,0x34366e65706f2f2e,0x65622f2f62696c2f,
0x2f090a0d6578652e,0x6e65706f766e202f,0x6220312e33206363,0x206e6f20746c6975,
0x2d36302d30313032,0x2f090a0d0a0d3830,0x2d2d2d2d2d2d2d2f,0x2d2d2d2d2d2d2d2d,
0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,
0x2d2d2d2d2d2d2d2d,0x2f090a0d2d2d2d2d,0x6c69706d6f43202f,0x7669616e20676e69,
0x692e337070632e65,0x706d742f3a632820,0x612e23494263632f,0x0a0d293830383330,
0x2d2d2d2d2d2f2f09,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,
0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x0a0d2d2d2d2d2d2d,
0x2d2d2d2f2f090a0d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,
0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,
0x704f202f2f090a0d,0x0a0d3a736e6f6974,0x2d2d2d2d2d2f2f09,0x2d2d2d2d2d2d2d2d,
0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,
0x2d2d2d2d2d2d2d2d,0x0a0d2d2d2d2d2d2d,0x72615420202f2f09,0x2c7874703a746567,
0x5f6d733a41534920,0x69646e45202c3131,0x6c7474696c3a6e61,0x746e696f50202c65,
0x3a657a6953207265,0x202f2f090a0d3436,0x704f2809334f2d20,0x6974617a696d6974,
0x6c6576656c206e6f,0x20202f2f090a0d29,0x626544280930672d,0x6c6576656c206775,
0x20202f2f090a0d29,0x7065522809326d2d,0x697664612074726f,0x0d29736569726f73,
0x2d2d2d2d2f2f090a,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,
0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x0d2d2d2d2d2d2d2d,
0x6c69662e090a0d0a,0x69616e2209310965,0x66616475632e6576,0x0d227570672e3265,
0x09656c69662e090a,0x55435c3a43220932,0x756c636e695c4144,0x69725075635c6564,
0x0d2275632e66746e,0x09656c69662e090a,0x72505c3a43220933,0x6946206d6172676f,
0x363878282073656c,0x736f7263694d5c29,0x757369562074666f,0x6964757453206c61,
0x43565c302e39206f,0x6564756c636e695c,0x736665647472635c,0x662e090a0d22682e,
0x4322093409656c69,0x695c414455435c3a,0x635c6564756c636e,0x63697665642f7472,
0x6d69746e75725f65,0x2e090a0d22682e65,0x22093509656c6966,0x5c414455435c3a43,
0x5c6564756c636e69,0x6665645f74736f68,0x0d22682e73656e69,0x09656c69662e090a,
0x55435c3a43220936,0x756c636e695c4144,0x746c6975625c6564,0x73657079745f6e69,
0x662e090a0d22682e,0x6322093709656c69,0x695c616475635c3a,0x645c6564756c636e,
0x79745f6563697665,0x0a0d22682e736570,0x3809656c69662e09,0x6475635c3a632209,
0x64756c636e695c61,0x7265766972645c65,0x682e73657079745f,0x6c69662e090a0d22,
0x5c3a632209390965,0x636e695c61647563,0x7275735c6564756c,0x7079745f65636166,
0x090a0d22682e7365,0x303109656c69662e,0x6475635c3a632209,0x64756c636e695c61,
0x7275747865745c65,0x2e73657079745f65,0x69662e090a0d2268,0x632209313109656c,
0x695c616475635c3a,0x765c6564756c636e,0x79745f726f746365,0x0a0d22682e736570,
0x3109656c69662e09,0x75635c3a63220932,0x756c636e695c6164,0x746c6975625c6564,
0x73657079745f6e69,0x662e090a0d22682e,0x2209333109656c69,0x5c616475635c3a63,
0x5c6564756c636e69,0x6665645f74736f68,0x0d22682e73656e69,0x09656c69662e090a,
0x435c3a4322093431,0x6c636e695c414455,0x697665645c656475,0x636e75616c5f6563,
0x656d617261705f68,0x0d22682e73726574,0x09656c69662e090a,0x635c3a6322093531,
0x6c636e695c616475,0x5c7472635c656475,0x5f656761726f7473,0x22682e7373616c63,
0x656c69662e090a0d,0x5c3a432209363109,0x206d6172676f7250,0x78282073656c6946,
0x7263694d5c293638,0x69562074666f736f,0x757453206c617573,0x5c302e39206f6964,
0x756c636e695c4356,0x2e656d69745c6564,0x69662e090a0d2268,0x432209373109656c,
0x6172676f72505c3a,0x2073656c6946206d,0x694d5c2936387828,0x2074666f736f7263,
0x53206c6175736956,0x2e39206f69647574,0x636e695c43565c30,0x74616d5c6564756c,
0x2e090a0d22682e68,0x09383109656c6966,0x726573755c3a6322,0x6f645c6f69745c73,
0x5c73746e656d7563,0x73206c6175736976,0x3032206f69647574,0x656a6f72705c3830,
0x5c6f656e5c737463,0x6e72656b5c6f656e,0x0d2275632e736c65,0x09656c69662e090a,
0x435c3a4322093931,0x6c636e695c414455,0x6d6d6f635c656475,0x74636e75665f6e6f,
0x0d22682e736e6f69,0x09656c69662e090a,0x635c3a6322093032,0x6c636e695c616475,
0x6874616d5c656475,0x6f6974636e75665f,0x090a0d22682e736e,0x313209656c69662e,
0x6475635c3a632209,0x64756c636e695c61,0x635f6874616d5c65,0x73746e6174736e6f,
0x662e090a0d22682e,0x2209323209656c69,0x5c616475635c3a63,0x5c6564756c636e69,
0x665f656369766564,0x736e6f6974636e75,0x662e090a0d22682e,0x2209333209656c69,
0x5c616475635c3a63,0x5c6564756c636e69,0x74615f31315f6d73,0x6e75665f63696d6f,
0x682e736e6f697463,0x6c69662e090a0d22,0x3a63220934320965,0x6e695c616475635c,
0x6d735c6564756c63,0x6d6f74615f32315f,0x74636e75665f6369,0x0d22682e736e6f69,
0x09656c69662e090a,0x635c3a6322093532,0x6c636e695c616475,0x315f6d735c656475,
0x656c62756f645f33,0x6f6974636e75665f,0x090a0d22682e736e,0x363209656c69662e,
0x6475635c3a632209,0x64756c636e695c61,0x5f30325f6d735c65,0x665f63696d6f7461,
0x736e6f6974636e75,0x662e090a0d22682e,0x2209373209656c69,0x5c616475635c3a63,
0x5c6564756c636e69,0x6e695f30325f6d73,0x736369736e697274,0x662e090a0d22682e,
0x2209383209656c69,0x5c616475635c3a63,0x5c6564756c636e69,0x5f65636166727573,
0x6e6f6974636e7566,0x2e090a0d22682e73,0x09393209656c6966,0x616475635c3a6322,
0x6564756c636e695c,0x657275747865745c,0x665f68637465665f,0x736e6f6974636e75,
0x662e090a0d22682e,0x2209303309656c69,0x5c616475635c3a63,0x5c6564756c636e69,
0x6e75665f6874616d,0x645f736e6f697463,0x2e317874705f6c62,0x2e090a0d0a0d2268,
0x2e096e7265747865,0x2e20646572616873,0x2034206e67696c61,0x5b706d742038622e,
0x78652e090a0d3b5d,0x68732e096e726574,0x6c612e2064657261,0x622e2034206e6769,
0x5d5b32706d742038,0x6f6c672e090a0d3b,0x696c612e206c6162,0x38622e2038206e67,
0x6369727473657220,0x385b73656c755274,0x6f632e090a0d3b5d,0x3436752e2074736e,
0x506c61626f6c6720,0x66754266746e6972,0x3b30203d20726566,0x736e6f632e090a0d,
0x70203233732e2074,0x66754266746e6972,0x74676e654c726566,0x0a0d3b30203d2068,
0x6c61626f6c672e09,0x7270203436752e20,0x6666754266746e69,0x203d207274507265,
0x2e090a0d0a0d3b30,0x5a5f207972746e65,0x7650556c6c696635,0x09090a0d28205f53,
0x2e206d617261702e,0x75635f5f20343675,0x5f5f6d7261706164,0x50556c6c6966355a,
0x61645f725f5f5376,0x2e09090a0d2c6174,0x752e206d61726170,0x6475635f5f203436,
0x5a5f5f6d72617061,0x7650556c6c696635,0x7461645f755f5f53,0x0a0d7b090a0d2961,
0x752e206765722e09,0x37323c7225203233,0x65722e090a0d3b3e,0x25203436752e2067,
0x0d3b3e33323c6472,0x2e206765722e090a,0x333c662520323366,0x722e090a0d3b3e39,
0x646572702e206765,0x0d3b3e373c702520,0x6c61636f6c2e090a,0x206e67696c612e20,
0x5f5f2038622e2034,0x635f5f5f61647563,0x61636f6c5f616475,0x32375f7261765f6c,
0x5f725f385f373535,0x32315b3631305f69,0x6f6c2e090a0d3b5d,0x696c612e206c6163,
0x38622e2034206e67,0x5f616475635f5f20,0x6c5f616475635f5f,0x7261765f6c61636f,
0x385f38353532375f,0x3232315f6a5f725f,0x0a0d3b5d32315b38,0x383109636f6c2e09,
0x240a0d3009313109,0x6e6967656257444c,0x6c6c6966355a5f5f,0x0a0d3a5f53765055,
0x383109636f6c2e09,0x090a0d3009323209,0x2e3233732e747663,0x3172250920363175,
0x646961746325202c,0x646c090a0d3b782e,0x752e6d617261702e,0x3164722509203436,
0x6475635f5f5b202c,0x5a5f5f6d72617061,0x7650556c6c696635,0x7461645f725f5f53,
0x7663090a0d3b5d61,0x33732e3436732e74,0x2c32647225092032,0x090a0d3b31722520,
0x656469772e6c756d,0x722509203233732e,0x2c317225202c3364,0x61090a0d3b323120,
0x09203436752e6464,0x7225202c34647225,0x33647225202c3164,0x672e646c090a0d3b,
0x33662e6c61626f6c,0x202c316625092032,0x5d302b346472255b,0x6c2e7473090a0d3b,
0x3233662e6c61636f,0x6475635f5f5b0920,0x616475635f5f5f61,0x765f6c61636f6c5f,
0x37353532375f7261,0x305f695f725f385f,0x25202c5d302b3631,0x646c090a0d3b3166,
0x2e6c61626f6c672e,0x3266250920323366,0x2b346472255b202c,0x7473090a0d3b5d34,
0x662e6c61636f6c2e,0x635f5f5b09203233,0x75635f5f5f616475,0x6c61636f6c5f6164,
0x3532375f7261765f,0x695f725f385f3735,0x2c5d342b3631305f,0x090a0d3b32662520,
0x61626f6c672e646c,0x2509203233662e6c,0x6472255b202c3366,0x090a0d3b5d382b34,
0x6c61636f6c2e7473,0x5f5b09203233662e,0x5f5f5f616475635f,0x636f6c5f61647563,
0x375f7261765f6c61,0x725f385f37353532,0x382b3631305f695f,0x0d3b336625202c5d,
0x3109636f6c2e090a,0x0a0d300933320938,0x3233732e74766309,0x722509203631752e,
0x6961746325202c32,0x63090a0d3b792e64,0x732e3436732e7476,0x3564722509203233,
0x0a0d3b327225202c,0x6469772e6c756d09,0x2509203233732e65,0x327225202c366472,
0x090a0d3b3231202c,0x203436752e646461,0x25202c3764722509,0x647225202c316472,
0x2e646c090a0d3b36,0x662e6c61626f6c67,0x2c34662509203233,0x302b376472255b20,
0x2e7473090a0d3b5d,0x33662e6c61636f6c,0x75635f5f5b092032,0x6475635f5f5f6164,
0x5f6c61636f6c5f61,0x353532375f726176,0x5f6a5f725f385f38,0x2c5d302b38323231,
0x090a0d3b34662520,0x61626f6c672e646c,0x2509203233662e6c,0x6472255b202c3566,
0x090a0d3b5d342b37,0x6c61636f6c2e7473,0x5f5b09203233662e,0x5f5f5f616475635f,
0x636f6c5f61647563,0x375f7261765f6c61,0x725f385f38353532,0x2b383232315f6a5f,
0x3b356625202c5d34,0x6c672e646c090a0d,0x3233662e6c61626f,0x5b202c3666250920,
0x3b5d382b37647225,0x6f6c2e7473090a0d,0x203233662e6c6163,0x616475635f5f5b09,
0x5f616475635f5f5f,0x61765f6c61636f6c,0x5f38353532375f72,0x32315f6a5f725f38,
0x25202c5d382b3832,0x6c2e090a0d3b3666,0x353209383109636f,0x627573090a0d3009,
0x662509203233662e,0x202c316625202c37,0x2e090a0d3b346625,0x3409373109636f6c,
0x6d090a0d30093937,0x09203233662e766f,0x336630202c386625,0x3b30303030303866,
0x2f2f092020202020,0x766f6d090a0d3120,0x722509203233732e,0x240a0d3b32202c33,
0x3730315f305f744c,0x2f2f200a0d3a3435,0x4c203e706f6f6c3c,0x79646f6220706f6f,
0x383420656e696c20,0x636f6c2e090a0d30,0x0930383409373109,0x2e6c756d090a0d30,
0x3966250920323366,0x25202c376625202c,0x6e61090a0d3b3866,0x2509203233622e64,
0x2c337225202c3472,0x656e090a0d3b3120,0x2509203233732e67,0x3b347225202c3572,
0x2e74636c73090a0d,0x203233732e323366,0x25202c3031662509,0x2c396625202c3866,
0x090a0d3b35722520,0x203233662e766f6d,0x6625202c38662509,0x6c2e090a0d3b3031,
0x383409373109636f,0x6873090a0d300932,0x2509203233752e72,0x2c337225202c3372,
0x6f6d090a0d3b3120,0x2509203233752e76,0x0a0d3b30202c3672,0x656e2e7074657309,
0x702509203233752e,0x202c337225202c31,0x40090a0d3b367225,0x2061726220317025,
0x315f305f744c2409,0x090a0d3b38313635,0x20696e752e617262,0x646e6557444c2409,
0x6f505f385a5f5f69,0x456649746e695f77,0x325f695f30535f54,0x240a0d3b355f3930,
0x3635315f305f744c,0x2f2f200a0d3a3831,0x50203e706f6f6c3c,0x6c20666f20747261,
0x79646f6220706f6f,0x383420656e696c20,0x2064616568202c30,0x2064656c6562616c,
0x30315f305f744c24,0x6c2e090a0d343537,0x373409373109636f,0x756d090a0d300939,
0x2509203233662e6c,0x2c376625202c3766,0x090a0d3b37662520,0x20696e752e617262,
0x315f305f744c2409,0x240a0d3b34353730,0x5f69646e6557444c,0x5f776f505f385a5f,
0x5f54456649746e69,0x3930325f695f3053,0x6c2e090a0d3a355f,0x353209383109636f,
0x627573090a0d3009,0x662509203233662e,0x2c326625202c3131,0x090a0d3b35662520,
0x09373109636f6c2e,0x090a0d3009393734,0x203233662e766f6d,0x6630202c38662509,
0x3030303030386633,0x2f0920202020203b,0x6f6d090a0d31202f,0x2509203233732e76,
0x0a0d3b32202c3372,0x32315f305f744c24,0x2f200a0d3a343330,0x203e706f6f6c3c2f,
0x646f6220706f6f4c,0x3420656e696c2079,0x6f6c2e090a0d3038,0x3038340937310963,
0x6c756d090a0d3009,0x662509203233662e,0x31316625202c3231,0x0a0d3b386625202c,
0x3233622e646e6109,0x25202c3772250920,0x0a0d3b31202c3372,0x3233732e67656e09,
0x25202c3872250920,0x6c73090a0d3b3772,0x732e3233662e7463,0x3331662509203233,
0x25202c386625202c,0x387225202c323166,0x2e766f6d090a0d3b,0x3866250920323366,
0x0d3b33316625202c,0x3109636f6c2e090a,0x0d30093238340937,0x33752e726873090a,
0x202c337225092032,0x0d3b31202c337225,0x33752e766f6d090a,0x202c397225092032,
0x746573090a0d3b30,0x3233752e656e2e70,0x25202c3270250920,0x3b397225202c3372,
0x2032702540090a0d,0x744c240920617262,0x30333136315f305f,0x2e617262090a0d3b,
0x444c240920696e75,0x5a5f5f69646e6557,0x6e695f776f505f38,0x30535f5445664974,
0x335f3930325f695f,0x305f744c240a0d3b,0x0d3a30333136315f,0x6f6f6c3c2f2f200a,
0x2074726150203e70,0x20706f6f6c20666f,0x6e696c2079646f62,0x68202c3038342065,
0x6562616c20646165,0x5f744c242064656c,0x0d34333032315f30,0x3109636f6c2e090a,
0x0d30093937340937,0x33662e6c756d090a,0x2c31316625092032,0x25202c3131662520,
0x62090a0d3b313166,0x0920696e752e6172,0x32315f305f744c24,0x4c240a0d3b343330,
0x5f5f69646e655744,0x695f776f505f385a,0x535f54456649746e,0x5f3930325f695f30,
0x6f6c2e090a0d3a33,0x0935320938310963,0x2e627573090a0d30,0x3166250920323366,
0x202c336625202c34,0x2e090a0d3b366625,0x3409373109636f6c,0x6d090a0d30093937,
0x09203233662e766f,0x336630202c386625,0x3b30303030303866,0x2f2f092020202020,
0x766f6d090a0d3120,0x722509203233732e,0x240a0d3b32202c33,0x3333315f305f744c,
0x2f2f200a0d3a3431,0x4c203e706f6f6c3c,0x79646f6220706f6f,0x383420656e696c20,
0x636f6c2e090a0d30,0x0930383409373109,0x2e6c756d090a0d30,0x3166250920323366,
0x2c34316625202c35,0x090a0d3b38662520,0x203233622e646e61,0x25202c3031722509,
0x0a0d3b31202c3372,0x3233732e67656e09,0x202c313172250920,0x090a0d3b30317225,
0x3233662e74636c73,0x662509203233732e,0x202c386625202c38,0x7225202c35316625,
0x6c2e090a0d3b3131,0x383409373109636f,0x6873090a0d300932,0x2509203233752e72,
0x2c337225202c3372,0x6f6d090a0d3b3120,0x2509203233752e76,0x0d3b30202c323172,
0x6e2e70746573090a,0x2509203233752e65,0x2c337225202c3370,0x0a0d3b3231722520,
0x7262203370254009,0x305f744c24092061,0x0d3b32343636315f,0x6e752e617262090a,
0x6557444c24092069,0x5f385a5f5f69646e,0x49746e695f776f50,0x695f30535f544566,
0x0d3b315f3930325f,0x315f305f744c240a,0x200a0d3a32343636,0x3e706f6f6c3c2f2f,
0x666f207472615020,0x6f6220706f6f6c20,0x20656e696c207964,0x616568202c303834,
0x656c6562616c2064,0x5f305f744c242064,0x090a0d3431333331,0x09373109636f6c2e,
0x090a0d3009393734,0x203233662e6c756d,0x25202c3431662509,0x316625202c343166,
0x617262090a0d3b34,0x4c240920696e752e,0x313333315f305f74,0x57444c240a0d3b34,
0x385a5f5f69646e65,0x746e695f776f505f,0x5f30535f54456649,0x3a315f3930325f69,
0x09636f6c2e090a0d,0x0d30093532093831,0x36752e766f6d090a,0x2c38647225092034,
0x5f616475635f5f20,0x6c5f616475635f5f,0x7261765f6c61636f,0x385f37353532375f,
0x3631305f695f725f,0x2e766f6d090a0d3b,0x6472250920343675,0x6475635f5f202c39,
0x616475635f5f5f61,0x765f6c61636f6c5f,0x38353532375f7261,0x315f6a5f725f385f,
0x2e090a0d3b383232,0x3309383109636f6c,0x7663090a0d300935,0x31752e3233732e74,
0x2c33317225092036,0x3b782e6469742520,0x732e747663090a0d,0x09203233732e3436,
0x25202c3031647225,0x6d090a0d3b333172,0x2e656469772e6c75,0x6472250920323373,
0x33317225202c3131,0x61090a0d3b34202c,0x09203436752e6464,0x25202c3231647225,
0x7225202c31316472,0x646c090a0d3b3864,0x662e6c61636f6c2e,0x3631662509203233,
0x32316472255b202c,0x61090a0d3b5d302b,0x09203436752e6464,0x25202c3331647225,
0x7225202c31316472,0x646c090a0d3b3964,0x662e6c61636f6c2e,0x3731662509203233,
0x33316472255b202c,0x73090a0d3b5d302b,0x09203233662e6275,0x6625202c38316625,
0x37316625202c3631,0x636f6c2e090a0d3b,0x3009363309383109,0x732e747663090a0d,
0x09203631752e3233,0x7425202c34317225,0x090a0d3b792e6469,0x2e3436732e747663,
0x6472250920323373,0x34317225202c3431,0x2e6c756d090a0d3b,0x3233732e65646977,
0x2c35316472250920,0x34202c3431722520,0x2e646461090a0d3b,0x6472250920343675,
0x31647225202c3631,0x3b38647225202c35,0x6f6c2e646c090a0d,0x203233662e6c6163,
0x5b202c3931662509,0x5d302b3631647225,0x2e646461090a0d3b,0x6472250920343675,
0x31647225202c3731,0x3b39647225202c35,0x6f6c2e646c090a0d,0x203233662e6c6163,
0x5b202c3032662509,0x5d302b3731647225,0x2e627573090a0d3b,0x3266250920323366,
0x2c39316625202c31,0x0a0d3b3032662520,0x3233662e64646109,0x202c323266250920,
0x6625202c33316625,0x6461090a0d3b3031,0x2509203233662e64,0x326625202c333266,
0x0d3b386625202c32,0x612e74727173090a,0x33662e786f727070,0x2c34326625092032,
0x0a0d3b3332662520,0x3233662e73626109,0x202c353266250920,0x090a0d3b34326625,
0x203233662e766f6d,0x30202c3632662509,0x3030303030343366,0x2f09202020203b30,
0x303239312e31202f,0x0a0d3730302d6539,0x746c2e7074657309,0x702509203233662e,
0x2c35326625202c34,0x0a0d3b3632662520,0x6220347025214009,0x5f744c2409206172,
0x3b30313437315f30,0x09636f6c2e090a0d,0x0d30093034093831,0x33662e766f6d090a,
0x2c37326625092032,0x3030303030663020,0x202020203b303030,0x090a0d30202f2f09,
0x20696e752e617262,0x315f305f744c2409,0x240a0d3b34353137,0x3437315f305f744c,
0x6f6d090a0d3a3031,0x2509203233662e76,0x346630202c383266,0x3b30303030303430,
0x202f2f0920202020,0x2e6c756d090a0d33,0x3266250920323366,0x2c38316625202c39,
0x0a0d3b3832662520,0x6c75662e76696409,0x2509203233662e6c,0x326625202c303366,
0x3b34326625202c39,0x662e6c756d090a0d,0x3133662509203233,0x202c30336625202c,
0x090a0d3b31326625,0x6c6c75662e766964,0x662509203233662e,0x31336625202c3233,
0x0d3b34326625202c,0x33662e766f6d090a,0x2c33336625092032,0x3030386662663020,
0x202020203b303030,0x0a0d312d202f2f09,0x3233662e64646109,0x202c343366250920,
0x6625202c32336625,0x6573090a0d3b3333,0x33732e71652e7074,0x202c357025092032,
0x7225202c34317225,0x6573090a0d3b3331,0x09203233662e706c,0x6625202c35336625,
0x32336625202c3433,0x0a0d3b357025202c,0x3233662e6c756d09,0x202c363366250920,
0x6625202c34326625,0x756d090a0d3b3432,0x2509203233662e6c,0x326625202c373366,
0x3b36336625202c34,0x662e766964090a0d,0x203233662e6c6c75,0x25202c3732662509,
0x336625202c353366,0x5f744c240a0d3b37,0x3a34353137315f30,0x752e747663090a0d,
0x09203631752e3233,0x6e25202c35317225,0x0a0d3b782e646974,0x3233752e74766309,
0x722509203631752e,0x69746e25202c3631,0x6d090a0d3b792e64,0x33752e6f6c2e6c75,
0x2c37317225092032,0x25202c3631722520,0x6c090a0d3b353172,0x2e6d617261702e64,
0x6472250920343675,0x635f5f5b202c3831,0x5f6d726170616475,0x556c6c6966355a5f,
0x645f755f5f537650,0x090a0d3b5d617461,0x752e6f6c2e6c756d,0x3831722509203233,
0x202c33317225202c,0x090a0d3b35317225,0x203233752e646461,0x25202c3931722509,
0x317225202c343172,0x6c756d090a0d3b38,0x203233732e6f6c2e,0x25202c3032722509,
0x37317225202c3272,0x2e747663090a0d3b,0x203631752e323375,0x25202c3132722509,
0x782e64696174636e,0x2e6c756d090a0d3b,0x09203233752e6f6c,0x7225202c32327225,
0x37317225202c3132,0x2e6c756d090a0d3b,0x09203233752e6f6c,0x7225202c33327225,
0x3b32327225202c31,0x752e646461090a0d,0x3432722509203233,0x202c30327225202c,
0x090a0d3b33327225,0x203233752e646461,0x25202c3532722509,0x327225202c393172,
0x747663090a0d3b34,0x3233752e3436752e,0x2c39316472250920,0x0a0d3b3532722520,
0x6469772e6c756d09,0x2509203233752e65,0x7225202c30326472,0x0a0d3b34202c3532,
0x3436752e64646109,0x2c31326472250920,0x202c383164722520,0x0a0d3b3032647225,
0x626f6c672e747309,0x09203233662e6c61,0x302b31326472255b,0x3b37326625202c5d,
0x09636f6c2e090a0d,0x0d30093734093831,0x0d3b74697865090a,0x646e6557444c240a,
0x6c6c6966355a5f5f,0x0a0d3a5f53765055,0x5a5f202f2f207d09,0x7650556c6c696635,
0x2e090a0d0a0d5f53,0x5a5f207972746e65,0x50485f636c616336,0x0d28205f535f5376,
0x617261702e09090a,0x5f203436752e206d,0x726170616475635f,0x6c6163365a5f5f6d,
0x535f537650485f63,0x09090a0d2c685f5f,0x2e206d617261702e,0x75635f5f20343675,
0x5f5f6d7261706164,0x485f636c6163365a,0x735f5f535f537650,0x61702e09090a0d2c,
0x3436752e206d6172,0x70616475635f5f20,0x63365a5f5f6d7261,0x537650485f636c61,
0x0a0d29755f5f535f,0x65722e090a0d7b09,0x25203233752e2067,0x0a0d3b3e36313c72,
0x752e206765722e09,0x313c647225203436,0x722e090a0d3b3e34,0x203233662e206765,
0x0d3b3e34333c6625,0x2e206765722e090a,0x3c70252064657270,0x6c2e090a0d3b3e34,
0x323509383109636f,0x57444c240a0d3009,0x5a5f5f6e69676562,0x50485f636c616336,
0x0a0d3a5f535f5376,0x383109636f6c2e09,0x090a0d3009323609,0x2e3233732e747663,
0x3172250920363175,0x782e64697425202c,0x2e646461090a0d3b,0x3272250920323373,
0x31202c317225202c,0x2e766f6d090a0d3b,0x3372250920323375,0x0a0d3b353532202c,
0x74672e7074657309,0x702509203233732e,0x202c327225202c31,0x40090a0d3b337225,
0x2061726220317025,0x315f315f744c2409,0x6d090a0d3b323832,0x09203233732e766f,
0x353532202c347225,0x2e627573090a0d3b,0x3572250920323373,0x25202c347225202c,
0x756d090a0d3b3172,0x3233732e6f6c2e6c,0x25202c3672250920,0x3b313737202c3172,
0x6c2e6c756d090a0d,0x2509203233732e6f,0x2c327225202c3772,0x756d090a0d3b3320,
0x732e6f6c2e34326c,0x2c38722509203233,0x3b33202c31722520,0x732e627573090a0d,
0x2c39722509203233,0x7225202c37722520,0x766f6d090a0d3b38,0x722509203233732e,
0x3b383637202c3031,0x732e627573090a0d,0x3131722509203233,0x202c30317225202c,
0x6c090a0d3b387225,0x2e6d617261702e64,0x6472250920343675,0x75635f5f5b202c31,
0x5f5f6d7261706164,0x485f636c6163365a,0x685f5f535f537650,0x747663090a0d3b5d,
0x3233732e3436732e,0x202c326472250920,0x6d090a0d3b317225,0x2e656469772e6c75,
0x6472250920323373,0x202c317225202c33,0x6461090a0d3b3231,0x2509203436752e64,
0x647225202c346472,0x3b33647225202c31,0x61702e646c090a0d,0x203436752e6d6172,
0x5b202c3564722509,0x6170616475635f5f,0x6163365a5f5f6d72,0x5f537650485f636c,
0x0a0d3b5d735f5f53,0x3436732e74766309,0x722509203233732e,0x3b327225202c3664,
0x772e6c756d090a0d,0x203233732e656469,0x25202c3764722509,0x0d3b3231202c3272,
0x36752e646461090a,0x2c38647225092034,0x25202c3564722520,0x61090a0d3b376472,
0x09203233732e6464,0x7225202c32317225,0x0d3b397225202c36,0x33732e646461090a,
0x2c33317225092032,0x7225202c36722520,0x646c090a0d3b3131,0x2e6c61626f6c672e,
0x3166250920323366,0x2b346472255b202c,0x646c090a0d3b5d38,0x752e6d617261702e,
0x3964722509203436,0x6475635f5f5b202c,0x5a5f5f6d72617061,0x50485f636c616336,
0x5d755f5f535f5376,0x2e747663090a0d3b,0x203233732e343673,0x202c303164722509,
0x090a0d3b32317225,0x656469772e6c756d,0x722509203233732e,0x317225202c313164,
0x0a0d3b3231202c32,0x3436752e64646109,0x2c32316472250920,0x25202c3964722520,
0x090a0d3b31316472,0x203233732e766f6d,0x25202c3431722509,0x744c240a0d3b3572,
0x3a343937315f315f,0x6f6c3c2f2f200a0d,0x706f6f4c203e706f,0x696c2079646f6220,
0x6e202c323620656e,0x6420676e69747365,0x2c31203a68747065,0x74616d6974736520,
0x6172657469206465,0x75203a736e6f6974,0x0a0d6e776f6e6b6e,0x383109636f6c2e09,
0x090a0d3009343609,0x61626f6c672e646c,0x2509203233662e6c,0x6472255b202c3266,
0x090a0d3b5d302b34,0x61626f6c672e646c,0x2509203233662e6c,0x6472255b202c3366,
0x090a0d3b5d342b38,0x61626f6c672e646c,0x2509203233662e6c,0x6472255b202c3466,
0x0a0d3b5d342b3231,0x3233662e6c756d09,0x25202c3566250920,0x3b346625202c3366,
0x6c672e646c090a0d,0x3233662e6c61626f,0x5b202c3666250920,0x3b5d302b38647225,
0x6c672e646c090a0d,0x3233662e6c61626f,0x5b202c3766250920,0x5d302b3231647225,
0x2e64616d090a0d3b,0x3866250920323366,0x25202c366625202c,0x3b356625202c3766,
0x6c672e646c090a0d,0x3233662e6c61626f,0x5b202c3966250920,0x3b5d382b38647225,
0x6c672e646c090a0d,0x3233662e6c61626f,0x202c303166250920,0x382b32316472255b,
0x64616d090a0d3b5d,0x662509203233662e,0x2c396625202c3131,0x25202c3031662520,
0x6461090a0d3b3866,0x2509203233662e64,0x326625202c323166,0x0d3b31316625202c,
0x6f6c672e7473090a,0x203233662e6c6162,0x302b346472255b09,0x3b32316625202c5d,
0x09636f6c2e090a0d,0x0d30093636093831,0x6f6c672e646c090a,0x203233662e6c6162,
0x5b202c3331662509,0x3b5d342b34647225,0x6c672e646c090a0d,0x3233662e6c61626f,
0x202c343166250920,0x5d342b386472255b,0x672e646c090a0d3b,0x33662e6c61626f6c,
0x2c35316625092032,0x2b32316472255b20,0x6d090a0d3b5d3631,0x09203233662e6c75,
0x6625202c36316625,0x35316625202c3431,0x672e646c090a0d3b,0x33662e6c61626f6c,
0x2c37316625092032,0x302b386472255b20,0x2e646c090a0d3b5d,0x662e6c61626f6c67,
0x3831662509203233,0x32316472255b202c,0x090a0d3b5d32312b,0x203233662e64616d,
0x25202c3931662509,0x316625202c373166,0x3b36316625202c38,0x6c672e646c090a0d,
0x3233662e6c61626f,0x202c303266250920,0x5d382b386472255b,0x672e646c090a0d3b,
0x33662e6c61626f6c,0x2c31326625092032,0x2b32316472255b20,0x6d090a0d3b5d3032,
0x09203233662e6461,0x6625202c32326625,0x31326625202c3032,0x0d3b39316625202c,
0x33662e646461090a,0x2c33326625092032,0x25202c3331662520,0x73090a0d3b323266,
0x6c61626f6c672e74,0x255b09203233662e,0x202c5d342b346472,0x090a0d3b33326625,
0x09383109636f6c2e,0x6c090a0d30093836,0x6c61626f6c672e64,0x662509203233662e,
0x6472255b202c3432,0x090a0d3b5d342b38,0x61626f6c672e646c,0x2509203233662e6c,
0x72255b202c353266,0x3b5d38322b323164,0x662e6c756d090a0d,0x3632662509203233,
0x202c34326625202c,0x090a0d3b35326625,0x61626f6c672e646c,0x2509203233662e6c,
0x72255b202c373266,0x0a0d3b5d302b3864,0x626f6c672e646c09,0x09203233662e6c61,
0x255b202c38326625,0x5d34322b32316472,0x2e64616d090a0d3b,0x3266250920323366,
0x2c37326625202c39,0x25202c3832662520,0x6c090a0d3b363266,0x6c61626f6c672e64,
0x662509203233662e,0x6472255b202c3033,0x090a0d3b5d382b38,0x61626f6c672e646c,
0x2509203233662e6c,0x72255b202c313366,0x3b5d32332b323164,0x662e64616d090a0d,
0x3233662509203233,0x202c30336625202c,0x6625202c31336625,0x6461090a0d3b3932,
0x2509203233662e64,0x2c316625202c3166,0x0a0d3b3233662520,0x626f6c672e747309,
0x09203233662e6c61,0x5d382b346472255b,0x0a0d3b316625202c,0x383109636f6c2e09,
0x090a0d3009323609,0x203233732e646461,0x25202c3231722509,0x0d3b33202c323172,
0x36752e646461090a,0x3231647225092034,0x2c3231647225202c,0x61090a0d3b363320,
0x09203436752e6464,0x7225202c38647225,0x0d3b3231202c3864,0x6e2e70746573090a,
0x2509203233732e65,0x32317225202c3270,0x0d3b33317225202c,0x622032702540090a,
0x5f744c2409206172,0x0d3b343937315f31,0x315f315f744c240a,0x2e090a0d3a323832,
0x3709383109636f6c,0x7865090a0d300932,0x444c240a0d3b7469,0x365a5f5f646e6557,
0x7650485f636c6163,0x090a0d3a5f535f53,0x365a5f202f2f207d,0x7650485f636c6163,
0x0a0d0a0d5f535f53,0x207972746e652e09,0x5f636c6163365a5f,0x205f535f53765045,
0x61702e09090a0d28,0x3436752e206d6172,0x70616475635f5f20,0x63365a5f5f6d7261,
0x537650455f636c61,0x0a0d2c685f5f535f,0x6d617261702e0909,0x5f5f203436752e20,
0x6d72617061647563,0x636c6163365a5f5f,0x5f535f537650455f,0x2e09090a0d2c735f,
0x752e206d61726170,0x6475635f5f203436,0x5a5f5f6d72617061,0x50455f636c616336,
0x29655f5f535f5376,0x2e090a0d7b090a0d,0x3233752e20676572,0x3b3e34313c722520,
0x206765722e090a0d,0x647225203436752e,0x090a0d3b3e39313c,0x33662e206765722e,
0x3e36313c66252032,0x6765722e090a0d3b,0x2520646572702e20,0x090a0d3b3e363c70,
0x09383109636f6c2e,0x4c240a0d30093537,0x5f6e696765625744,0x5f636c6163365a5f,
0x3a5f535f53765045,0x752e766f6d090a0d,0x3164722509203436,0x0a0d3b706d74202c,
0x383109636f6c2e09,0x090a0d3009363809,0x2e3233752e747663,0x3172250920363175,
0x2e6469746e25202c,0x747663090a0d3b78,0x3631752e3233752e,0x25202c3272250920,
0x3b782e6469617463,0x732e747663090a0d,0x09203631752e3233,0x697425202c337225,
0x63090a0d3b782e64,0x732e3436732e7476,0x3264722509203233,0x0a0d3b337225202c,
0x6469772e6c756d09,0x2509203233732e65,0x337225202c336472,0x61090a0d3b34202c,
0x09203436752e6464,0x7225202c34647225,0x33647225202c3164,0x2e6c756d090a0d3b,
0x09203233752e6f6c,0x317225202c347225,0x0a0d3b327225202c,0x3233752e64646109,
0x25202c3572250920,0x3b347225202c3372,0x732e747663090a0d,0x09203233732e3436,
0x7225202c35647225,0x6c756d090a0d3b35,0x33732e656469772e,0x2c36647225092032,
0x3231202c35722520,0x702e646c090a0d3b,0x3436752e6d617261,0x202c376472250920,
0x70616475635f5f5b,0x63365a5f5f6d7261,0x537650455f636c61,0x0d3b5d685f5f535f,
0x36752e646461090a,0x2c38647225092034,0x25202c3764722520,0x6c090a0d3b366472,
0x2e6d617261702e64,0x6472250920343675,0x75635f5f5b202c39,0x5f5f6d7261706164,
0x455f636c6163365a,0x735f5f535f537650,0x646461090a0d3b5d,0x722509203436752e,
0x647225202c303164,0x3b36647225202c39,0x6c672e646c090a0d,0x3233662e6c61626f,
0x5b202c3166250920,0x3b5d342b38647225,0x6c672e646c090a0d,0x3233662e6c61626f,
0x5b202c3266250920,0x5d342b3031647225,0x2e6c756d090a0d3b,0x3366250920323366,
0x25202c316625202c,0x646c090a0d3b3266,0x2e6c61626f6c672e,0x3466250920323366,
0x2b386472255b202c,0x646c090a0d3b5d30,0x2e6c61626f6c672e,0x3566250920323366,
0x30316472255b202c,0x6d090a0d3b5d302b,0x09203233662e6461,0x346625202c366625,
0x25202c356625202c,0x646c090a0d3b3366,0x2e6c61626f6c672e,0x3766250920323366,
0x2b386472255b202c,0x646c090a0d3b5d38,0x2e6c61626f6c672e,0x3866250920323366,
0x30316472255b202c,0x6d090a0d3b5d382b,0x09203233662e6461,0x376625202c396625,
0x25202c386625202c,0x656e090a0d3b3666,0x2509203233662e67,0x396625202c303166,
0x732e7473090a0d3b,0x33662e6465726168,0x346472255b092032,0x316625202c5d302b,
0x6f6c2e090a0d3b30,0x0938380938310963,0x2e726162090a0d30,0x3b300920636e7973,
0x752e766f6d090a0d,0x2c36722509203233,0x6573090a0d3b3120,0x33752e656c2e7074,
0x202c317025092032,0x367225202c317225,0x31702540090a0d3b,0x4c24092061726220,
0x383138325f325f74,0x2e766f6d090a0d3b,0x3772250920323373,0x4c240a0d3b31202c,
0x303333335f325f74,0x6c3c2f2f200a0d3a,0x6f6f4c203e706f6f,0x6c2079646f622070,
0x0a0d383820656e69,0x2e6f6c2e6c756d09,0x3872250920323373,0x32202c377225202c,
0x2e6d6572090a0d3b,0x3972250920323373,0x25202c337225202c,0x6f6d090a0d3b3872,
0x2509203233752e76,0x0d3b30202c303172,0x6e2e70746573090a,0x2509203233732e65,
0x2c397225202c3270,0x0a0d3b3031722520,0x7262203270254009,0x325f744c24092061,
0x0a0d3b363835335f,0x706f6f6c3c2f2f20,0x6f2074726150203e,0x6220706f6f6c2066,
0x656e696c2079646f,0x616568202c383820,0x656c6562616c2064,0x5f325f744c242064,
0x2e090a0d30333333,0x3909383109636f6c,0x646c090a0d300933,0x2e6465726168732e,
0x3166250920323366,0x346472255b202c31,0x61090a0d3b5d302b,0x09203233732e6464,
0x7225202c31317225,0x0d3b337225202c37,0x36732e747663090a,0x2509203233732e34,
0x7225202c31316472,0x756d090a0d3b3131,0x732e656469772e6c,0x3164722509203233,
0x2c31317225202c32,0x6461090a0d3b3420,0x2509203436752e64,0x7225202c33316472,
0x31647225202c3164,0x2e646c090a0d3b32,0x662e646572616873,0x3231662509203233,
0x33316472255b202c,0x61090a0d3b5d302b,0x09203233662e6464,0x6625202c33316625,
0x32316625202c3131,0x732e7473090a0d3b,0x33662e6465726168,0x346472255b092032,
0x316625202c5d302b,0x5f744c240a0d3b33,0x0d3a363835335f32,0x6f6f6c3c2f2f200a,
0x2074726150203e70,0x20706f6f6c20666f,0x6e696c2079646f62,0x6568202c38382065,
0x6c6562616c206461,0x325f744c24206465,0x090a0d303333335f,0x09383109636f6c2e,
0x62090a0d30093539,0x20636e79732e7261,0x6c2e090a0d3b3009,0x303909383109636f,
0x766f6d090a0d3009,0x722509203233732e,0x0d3b387225202c37,0x6c2e70746573090a,
0x2509203233752e74,0x2c387225202c3370,0x090a0d3b31722520,0x6172622033702540,
0x5f325f744c240920,0x240a0d3b30333333,0x3138325f325f744c,0x766f6d090a0d3a38,
0x722509203233752e,0x0a0d3b30202c3231,0x656e2e7074657309,0x702509203233732e,
0x202c337225202c34,0x090a0d3b32317225,0x6172622034702540,0x5f325f744c240920,
0x090a0d3b34353334,0x09383109636f6c2e,0x6c090a0d30093839,0x6465726168732e64,
0x662509203233662e,0x706d745b202c3431,0x6c090a0d3b5d302b,0x2e6d617261702e64,
0x6472250920343675,0x635f5f5b202c3431,0x5f6d726170616475,0x5f636c6163365a5f,
0x5f5f535f53765045,0x7663090a0d3b5d65,0x33752e3436752e74,0x3531647225092032,
0x0a0d3b327225202c,0x6469772e6c756d09,0x2509203233752e65,0x7225202c36316472,
0x090a0d3b34202c32,0x203436752e646461,0x202c373164722509,0x25202c3431647225,
0x090a0d3b36316472,0x61626f6c672e7473,0x5b09203233662e6c,0x5d302b3731647225,
0x0d3b34316625202c,0x345f325f744c240a,0x2e090a0d3a343533,0x3109383109636f6c,
0x65090a0d30093030,0x4c240a0d3b746978,0x5a5f5f646e655744,0x50455f636c616336,
0x0a0d3a5f535f5376,0x5a5f202f2f207d09,0x50455f636c616336,0x0d0a0d5f535f5376,
0x7972746e652e090a,0x6c616331315a5f20,0x455f6c6c75665f63,0x28205f535f537650,
0x7261702e09090a0d,0x203436752e206d61,0x6170616475635f5f,0x6331315a5f5f6d72,
0x6c6c75665f636c61,0x5f535f537650455f,0x2e09090a0d2c755f,0x752e206d61726170,
0x6475635f5f203436,0x5a5f5f6d72617061,0x665f636c61633131,0x537650455f6c6c75,
0x0a0d2c735f5f535f,0x6d617261702e0909,0x5f5f203436752e20,0x6d72617061647563,
0x6c616331315a5f5f,0x455f6c6c75665f63,0x655f5f535f537650,0x090a0d7b090a0d29,
0x33752e206765722e,0x3e36313c72252032,0x6765722e090a0d3b,0x7225203436752e20,
0x0a0d3b3e30323c64,0x662e206765722e09,0x39343c6625203233,0x65722e090a0d3b3e,
0x20646572702e2067,0x0a0d3b3e383c7025,0x383109636f6c2e09,0x0a0d300934303109,
0x6967656257444c24,0x616331315a5f5f6e,0x5f6c6c75665f636c,0x3a5f535f53765045,
0x752e766f6d090a0d,0x3164722509203436,0x0d3b32706d74202c,0x3109636f6c2e090a,
0x0d30093431310938,0x33732e747663090a,0x2509203631752e32,0x64697425202c3172,
0x7663090a0d3b782e,0x33732e3436732e74,0x2c32647225092032,0x090a0d3b31722520,
0x656469772e6c756d,0x722509203233732e,0x2c317225202c3364,0x6461090a0d3b3420,
0x2509203436752e64,0x647225202c346472,0x3b33647225202c31,0x662e766f6d090a0d,
0x2c31662509203233,0x3030303030663020,0x202020203b303030,0x0a0d30202f2f0920,
0x3233662e766f6d09,0x30202c3266250920,0x3030303030303066,0x0920202020203b30,
0x73090a0d30202f2f,0x6465726168732e74,0x255b09203233662e,0x202c5d302b346472,
0x6d090a0d3b326625,0x09203233732e766f,0x0d3b30202c327225,0x33732e766f6d090a,
0x202c337225092032,0x5f744c240a0d3b30,0x0d3a363638345f33,0x6f6f6c3c2f2f200a,
0x20706f6f4c203e70,0x6e696c2079646f62,0x6e202c3431312065,0x6420676e69747365,
0x2c31203a68747065,0x6974617265746920,0x363532203a736e6f,0x09636f6c2e090a0d,
0x3009383131093831,0x2e70746573090a0d,0x09203233732e7165,0x327225202c317025,
0x0a0d3b317225202c,0x7262203170254009,0x335f744c24092061,0x200a0d3b3835325f,
0x3e706f6f6c3c2f2f,0x666f207472615020,0x6f6220706f6f6c20,0x20656e696c207964,
0x616568202c343131,0x656c6562616c2064,0x5f335f744c242064,0x2e090a0d36363834,
0x3109383109636f6c,0x6c090a0d30093931,0x2e6d617261702e64,0x6472250920343675,
0x75635f5f5b202c35,0x5f5f6d7261706164,0x5f636c616331315a,0x7650455f6c6c7566,
0x3b5d735f5f535f53,0x6c2e6c756d090a0d,0x2509203436752e6f,0x647225202c366472,
0x0a0d3b3231202c32,0x3436752e64646109,0x202c376472250920,0x7225202c35647225,
0x7663090a0d3b3664,0x33732e3436732e74,0x2c38647225092032,0x090a0d3b33722520,
0x656469772e6c756d,0x722509203233732e,0x2c337225202c3964,0x61090a0d3b323120,
0x09203436752e6464,0x25202c3031647225,0x647225202c356472,0x2e646c090a0d3b39,
0x662e6c61626f6c67,0x2c33662509203233,0x302b376472255b20,0x2e646c090a0d3b5d,
0x662e6c61626f6c67,0x2c34662509203233,0x342b376472255b20,0x2e646c090a0d3b5d,
0x662e6c61626f6c67,0x2c35662509203233,0x382b376472255b20,0x2e646c090a0d3b5d,
0x662e6c61626f6c67,0x2c36662509203233,0x2b30316472255b20,0x646c090a0d3b5d34,
0x2e6c61626f6c672e,0x3766250920323366,0x30316472255b202c,0x6c090a0d3b5d302b,
0x6c61626f6c672e64,0x662509203233662e,0x316472255b202c38,0x090a0d3b5d382b30,
0x6d617261702e646c,0x722509203436752e,0x5f5f5b202c313164,0x6d72617061647563,
0x6c616331315a5f5f,0x455f6c6c75665f63,0x755f5f535f537650,0x6c756d090a0d3b5d,
0x203233732e6f6c2e,0x7225202c34722509,0x0d3b383637202c31,0x33732e646461090a,
0x202c357225092032,0x347225202c327225,0x2e747663090a0d3b,0x203233732e343673,
0x202c323164722509,0x6d090a0d3b357225,0x2e656469772e6c75,0x6472250920323373,
0x2c357225202c3331,0x61090a0d3b323120,0x09203436752e6464,0x25202c3431647225,
0x7225202c31316472,0x6c090a0d3b333164,0x6c61626f6c672e64,0x662509203233662e,
0x316472255b202c39,0x090a0d3b5d342b34,0x203233662e6c756d,0x25202c3031662509,
0x3b366625202c3966,0x662e6c756d090a0d,0x3131662509203233,0x25202c336625202c,
0x6c090a0d3b303166,0x6c61626f6c672e64,0x662509203233662e,0x6472255b202c3231,
0x0a0d3b5d302b3431,0x3233662e6c756d09,0x202c333166250920,0x6625202c32316625,
0x6c756d090a0d3b37,0x662509203233662e,0x2c336625202c3431,0x0a0d3b3331662520,
0x3233662e62757309,0x202c353166250920,0x6625202c34316625,0x646c090a0d3b3131,
0x2e6c61626f6c672e,0x3166250920323366,0x316472255b202c36,0x090a0d3b5d382b34,
0x203233662e6c756d,0x25202c3731662509,0x386625202c363166,0x2e6c756d090a0d3b,
0x3166250920323366,0x202c336625202c38,0x090a0d3b37316625,0x203233662e627573,
0x25202c3931662509,0x316625202c353166,0x2e646c090a0d3b38,0x662e6c61626f6c67,
0x3032662509203233,0x34316472255b202c,0x090a0d3b5d32312b,0x203233662e6c756d,
0x25202c3132662509,0x376625202c303266,0x2e6c756d090a0d3b,0x3266250920323366,
0x202c346625202c32,0x090a0d3b31326625,0x203233662e627573,0x25202c3332662509,
0x326625202c393166,0x2e646c090a0d3b32,0x662e6c61626f6c67,0x3432662509203233,
0x34316472255b202c,0x090a0d3b5d36312b,0x203233662e6c756d,0x25202c3532662509,
0x366625202c343266,0x2e6c756d090a0d3b,0x3266250920323366,0x202c346625202c36,
0x090a0d3b35326625,0x203233662e627573,0x25202c3732662509,0x326625202c333266,
0x2e646c090a0d3b36,0x662e6c61626f6c67,0x3832662509203233,0x34316472255b202c,
0x090a0d3b5d30322b,0x203233662e6c756d,0x25202c3932662509,0x386625202c383266,
0x2e6c756d090a0d3b,0x3366250920323366,0x202c346625202c30,0x090a0d3b39326625,
0x203233662e627573,0x25202c3133662509,0x336625202c373266,0x2e646c090a0d3b30,
0x662e6c61626f6c67,0x3233662509203233,0x34316472255b202c,0x090a0d3b5d34322b,
0x203233662e6c756d,0x25202c3333662509,0x376625202c323366,0x2e6c756d090a0d3b,
0x3366250920323366,0x202c356625202c34,0x090a0d3b33336625,0x203233662e627573,
0x25202c3533662509,0x336625202c313366,0x2e646c090a0d3b34,0x662e6c61626f6c67,
0x3633662509203233,0x34316472255b202c,0x090a0d3b5d38322b,0x203233662e6c756d,
0x25202c3733662509,0x366625202c363366,0x2e6c756d090a0d3b,0x3366250920323366,
0x202c356625202c38,0x090a0d3b37336625,0x203233662e627573,0x25202c3933662509,
0x336625202c353366,0x2e646c090a0d3b38,0x662e6c61626f6c67,0x3034662509203233,
0x34316472255b202c,0x090a0d3b5d32332b,0x203233662e6c756d,0x25202c3134662509,
0x386625202c303466,0x2e6c756d090a0d3b,0x3466250920323366,0x202c356625202c32,
0x090a0d3b31346625,0x203233662e627573,0x25202c3334662509,0x346625202c393366,
0x627573090a0d3b32,0x662509203233662e,0x202c316625202c31,0x090a0d3b33346625,
0x65726168732e7473,0x5b09203233662e64,0x2c5d302b34647225,0x240a0d3b31662520,
0x3835325f335f744c,0x6c3c2f2f200a0d3a,0x726150203e706f6f,0x6f6f6c20666f2074,
0x6c2079646f622070,0x2c34313120656e69,0x616c206461656820,0x4c242064656c6562,
0x363638345f335f74,0x09636f6c2e090a0d,0x3009363131093831,0x732e646461090a0d,
0x2c33722509203233,0x3b31202c33722520,0x732e646461090a0d,0x2c32722509203233,
0x3b33202c32722520,0x752e766f6d090a0d,0x2c36722509203233,0x090a0d3b37363720,
0x2e656c2e70746573,0x3270250920323373,0x25202c327225202c,0x2540090a0d3b3672,
0x0920617262203270,0x38345f335f744c24,0x6c2e090a0d3b3636,0x333109383109636f,
0x6162090a0d300934,0x0920636e79732e72,0x747663090a0d3b30,0x3631752e3233752e,
0x25202c3772250920,0x0d3b782e6469746e,0x33752e766f6d090a,0x202c387225092032,
0x746573090a0d3b31,0x3233752e656c2e70,0x25202c3370250920,0x3b387225202c3772,
0x2033702540090a0d,0x744c240920617262,0x3b383733355f335f,0x732e766f6d090a0d,
0x2c39722509203233,0x744c240a0d3b3120,0x3a303938355f335f,0x6f6c3c2f2f200a0d,
0x706f6f4c203e706f,0x696c2079646f6220,0x0a0d34333120656e,0x2e6f6c2e6c756d09,
0x3172250920323373,0x202c397225202c30,0x6d6572090a0d3b32,0x722509203233732e,
0x2c317225202c3131,0x0a0d3b3031722520,0x3233752e766f6d09,0x202c323172250920,
0x746573090a0d3b30,0x3233732e656e2e70,0x25202c3470250920,0x317225202c313172,
0x702540090a0d3b32,0x2409206172622034,0x3431365f335f744c,0x3c2f2f200a0d3b36,
0x6150203e706f6f6c,0x6f6c20666f207472,0x2079646f6220706f,0x34333120656e696c,
0x6c2064616568202c,0x242064656c656261,0x3938355f335f744c,0x636f6c2e090a0d30,
0x0937333109383109,0x732e646c090a0d30,0x33662e6465726168,0x2c34346625092032,
0x302b346472255b20,0x646461090a0d3b5d,0x722509203233732e,0x2c397225202c3331,
0x090a0d3b31722520,0x2e3436732e747663,0x6472250920323373,0x33317225202c3531,
0x2e6c756d090a0d3b,0x3233732e65646977,0x2c36316472250920,0x34202c3331722520,
0x2e646461090a0d3b,0x6472250920343675,0x31647225202c3731,0x3b3631647225202c,
0x68732e646c090a0d,0x3233662e64657261,0x202c353466250920,0x302b37316472255b,
0x646461090a0d3b5d,0x662509203233662e,0x34346625202c3634,0x0d3b35346625202c,
0x6168732e7473090a,0x203233662e646572,0x302b346472255b09,0x3b36346625202c5d,
0x5f335f744c240a0d,0x200a0d3a36343136,0x3e706f6f6c3c2f2f,0x666f207472615020,
0x6f6220706f6f6c20,0x20656e696c207964,0x616568202c343331,0x656c6562616c2064,
0x5f335f744c242064,0x2e090a0d30393835,0x3109383109636f6c,0x62090a0d30093134,
0x20636e79732e7261,0x6c2e090a0d3b3009,0x333109383109636f,0x6f6d090a0d300935,
0x2509203233732e76,0x30317225202c3972,0x70746573090a0d3b,0x203233752e746c2e,
0x7225202c35702509,0x3b377225202c3031,0x2035702540090a0d,0x744c240920617262,
0x3b303938355f335f,0x5f335f744c240a0d,0x090a0d3a38373335,0x203233752e766f6d,
0x30202c3431722509,0x70746573090a0d3b,0x203233732e656e2e,0x7225202c36702509,
0x3b34317225202c31,0x2036702540090a0d,0x744c240920617262,0x3b343139365f335f,
0x09636f6c2e090a0d,0x3009343431093831,0x68732e646c090a0d,0x3233662e64657261,
0x202c373466250920,0x5d302b32706d745b,0x702e646c090a0d3b,0x3436752e6d617261,
0x2c38316472250920,0x616475635f5f5b20,0x315a5f5f6d726170,0x75665f636c616331,
0x5f537650455f6c6c,0x0a0d3b5d655f5f53,0x626f6c672e747309,0x09203233662e6c61,
0x342b38316472255b,0x3b37346625202c5d,0x5f335f744c240a0d,0x090a0d3a34313936,
0x09383109636f6c2e,0x090a0d3009373431,0x240a0d3b74697865,0x5f5f646e6557444c,
0x5f636c616331315a,0x7650455f6c6c7566,0x090a0d3a5f535f53,0x315a5f202f2f207d,
0x75665f636c616331,0x5f537650455f6c6c,0x00000a0d0a0d5f53
};
}
#line 535 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.fatbin.c"
extern "C" {
#line 539 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.fatbin.c"
static const unsigned long long __deviceText_$sm_11$[] = {
0x33010102464c457f,0x0000000000000002,0x0000000100be0002,0x0000000000000000,
0x0000000000001ab4,0x0000000000000040,0x00380040000b000b,0x0001001a0040000b,
0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000,
0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000,
0x0000000300000001,0x0000000000000000,0x0000000000000000,0x00000000000006c0,
0x0000000000000229,0x0000000000000000,0x0000000000000004,0x0000000000000000,
0x000000030000000b,0x0000000000000000,0x0000000000000000,0x00000000000008e9,
0x0000000000000088,0x0000000000000000,0x0000000000000001,0x0000000000000000,
0x0000000200000013,0x0000000000000000,0x0000000000000000,0x0000000000000971,
0x0000000000000330,0x0000001a00000002,0x0000000000000001,0x0000000000000018,
0x00000001000000cf,0x0000000000000006,0x0000000000000000,0x0000000000000ca1,
0x00000000000003c8,0x0c00000c00000003,0x0000000000000004,0x0000000000000000,
0x0000000100000111,0x0000000000000002,0x0000000000000000,0x0000000000001069,
0x0000000000000018,0x0000000400000000,0x0000000000000004,0x0000000000000000,
0x000000010000012c,0x0000000000000002,0x0000000000000000,0x0000000000001081,
0x000000000000000c,0x0000000400000000,0x0000000000000001,0x0000000000000000,
0x00000008000000e2,0x0000000000000003,0x0000000000000000,0x000000000000108d,
0x0000000000000020,0x0000000400000000,0x0000000000000004,0x0000000000000000,
0x00000008000000fa,0x0000000000000003,0x0000000000000000,0x000000000000108d,
0x0000000000000018,0x0000000400000000,0x0000000000000004,0x0000000000000000,
0x00000001000000a0,0x0000000000000006,0x0000000000000000,0x000000000000108d,
0x0000000000000280,0x0f00000a00000003,0x0000000000000004,0x0000000000000000,
0x000000010000015d,0x0000000000000002,0x0000000000000000,0x000000000000130d,
0x0000000000000008,0x0000000900000000,0x0000000000000004,0x0000000000000000,
0x00000001000000b6,0x0000000000000002,0x0000000000000000,0x0000000000001315,
0x000000000000001c,0x0000000900000000,0x0000000000000001,0x0000000000000000,
0x0000000800000142,0x0000000000000003,0x0000000000000000,0x0000000000001331,
0x0000000000000030,0x0000000900000000,0x0000000000000004,0x0000000000000000,
0x0000000100000071,0x0000000000100006,0x0000000000000000,0x0000000000001331,
0x00000000000002b8,0x0c00000800000003,0x0000000000000004,0x0000000000000000,
0x0000000100000196,0x0000000000000002,0x0000000000000000,0x00000000000015e9,
0x0000000000000004,0x0000000d00000000,0x0000000000000004,0x0000000000000000,
0x0000000100000087,0x0000000000000002,0x0000000000000000,0x00000000000015ed,
0x000000000000001c,0x0000000d00000000,0x0000000000000001,0x0000000000000000,
0x000000080000017b,0x0000000000000003,0x0000000000000000,0x0000000000001609,
0x0000000000000030,0x0000000d00000000,0x0000000000000004,0x0000000000000000,
0x0000000100000036,0x0000000000100006,0x0000000000000000,0x0000000000001609,
0x0000000000000448,0x0e00000600000003,0x0000000000000004,0x0000000000000000,
0x00000001000001d5,0x0000000000000002,0x0000000000000000,0x0000000000001a51,
0x0000000000000008,0x0000001100000000,0x0000000000000004,0x0000000000000000,
0x0000000100000052,0x0000000000000002,0x0000000000000000,0x0000000000001a59,
0x000000000000001c,0x0000001100000000,0x0000000000000001,0x0000000000000000,
0x00000008000001b4,0x0000000000000003,0x0000000000000000,0x0000000000001a75,
0x0000000000000030,0x0000001100000000,0x0000000000000004,0x0000000000000000,
0x000000010000021b,0x0000000000000002,0x0000000000000000,0x0000000000001a75,
0x000000000000000c,0x0000000000000000,0x0000000000000004,0x0000000000000000,
0x00000001000001f9,0x0000000000000002,0x0000000000000000,0x0000000000001a81,
0x0000000000000008,0x0000000000000000,0x0000000000000008,0x0000000000000000,
0x0000000900000208,0x0000000000000000,0x0000000000000000,0x0000000000001a89,
0x0000000000000020,0x0000001600000003,0x0000000000000004,0x0000000000000010,
0x000000010000001b,0x0000000000000003,0x0000000000000000,0x0000000000001aa9,
0x0000000000000008,0x0000000000000000,0x0000000000000004,0x0000000000000000,
0x000000080000002b,0x0000000000000003,0x0000000000000000,0x0000000000001ab1,
0x0000000000000008,0x0000000000000000,0x0000000000000004,0x0000000000000000,
0x7472747368732e00,0x747274732e006261,0x746d79732e006261,0x672e766e2e006261,
0x6e692e6c61626f6c,0x672e766e2e007469,0x742e006c61626f6c,0x31315a5f2e747865,
0x6c75665f636c6163,0x535f537650455f6c,0x6e692e766e2e005f,0x6331315a5f2e6f66,
0x6c6c75665f636c61,0x5f535f537650455f,0x5f2e747865742e00,0x455f636c6163365a,
0x2e005f535f537650,0x2e6f666e692e766e,0x5f636c6163365a5f,0x005f535f53765045,
0x5a5f2e747865742e,0x50485f636c616336,0x6e2e005f535f5376,0x5f2e6f666e692e76,
0x485f636c6163365a,0x2e005f535f537650,0x355a5f2e74786574,0x537650556c6c6966,
0x68732e766e2e005f,0x355a5f2e64657261,0x537650556c6c6966,0x6f6c2e766e2e005f,
0x66355a5f2e6c6163,0x5f537650556c6c69,0x6e6f632e766e2e00,0x5f2e31746e617473,
0x50556c6c6966355a,0x2e766e2e005f5376,0x355a5f2e6f666e69,0x537650556c6c6966,
0x68732e766e2e005f,0x365a5f2e64657261,0x7650485f636c6163,0x766e2e005f535f53,
0x6e6174736e6f632e,0x6163365a5f2e3174,0x5f537650485f636c,0x732e766e2e005f53,
0x5a5f2e6465726168,0x50455f636c616336,0x6e2e005f535f5376,0x6174736e6f632e76,
0x63365a5f2e31746e,0x537650455f636c61,0x2e766e2e005f535f,0x5f2e646572616873,
0x5f636c616331315a,0x7650455f6c6c7566,0x766e2e005f535f53,0x6e6174736e6f632e,
0x6331315a5f2e3174,0x6c6c75665f636c61,0x5f535f537650455f,0x6e6f632e766e2e00,
0x003431746e617473,0x2e766e2e6c65722e,0x746e6174736e6f63,0x632e766e2e003431,
0x30746e6174736e6f,0x616331315a5f0000,0x5f6c6c75665f636c,0x005f535f53765045,
0x5f636c6163365a5f,0x005f535f53765045,0x5f636c6163365a5f,0x005f535f53765048,
0x556c6c6966355a5f,0x736572005f537650,0x6c75527463697274,0x746e697270007365,
0x5072656666754266,0x746e697270007274,0x4c72656666754266,0x6c67006874676e65,
0x6e6972506c61626f,0x7265666675426674,0x0000000000000000,0x0000000000000000,
0x0000000000000000,0x0100030000000000,0x0000000000000000,0x0000000000000000,
0x0200030000000000,0x0000000000000000,0x0000000000000000,0x0300030000000000,
0x0000000000000000,0x0000000000000000,0x1800030000000000,0x0000000000000000,
0x0000000000000000,0x1900030000000000,0x0000000000000000,0x0000000000000000,
0x1100030000000000,0x0000000000000000,0x0000000000044800,0x1300030000000000,
0x0000000000000000,0x0000000000000000,0x0d00030000000000,0x0000000000000000,
0x000000000002b800,0x0f00030000000000,0x0000000000000000,0x0000000000000000,
0x0900030000000000,0x0000000000000000,0x0000000000028000,0x0b00030000000000,
0x0000000000000000,0x0000000000000000,0x0400030000000000,0x0000000000000000,
0x000000000003c800,0x0700030000000000,0x0000000000000000,0x0000000000000000,
0x0800030000000000,0x0000000000000000,0x0000000000000000,0x0500030000000000,
0x0000000000000000,0x0000000000000000,0x0600030000000000,0x0000000000000000,
0x0000000000000000,0x0c00030000000000,0x0000000000000000,0x0000000000000000,
0x0a00030000000000,0x0000000000000000,0x0000000000000000,0x1000030000000000,
0x0000000000000000,0x0000000000000000,0x0e00030000000000,0x0000000000000000,
0x0000000000000000,0x1400030000000000,0x0000000000000000,0x0000000000000000,
0x1200030000000000,0x0000000000000000,0x0000000000000000,0x1600030000000000,
0x0000000000000000,0x0000000000000000,0x1700030000000000,0x0000000000000000,
0x0000000000000000,0x1500030000000000,0x0000000000000000,0x0000000000000000,
0x1110120000000100,0x0000000000000000,0x0000000000000000,0x0d10120000001700,
0x0000000000000000,0x0000000000000000,0x0910120000002700,0x0000000000000000,
0x0000000000000000,0x0410120000003700,0x0000000000000000,0x0000000000000000,
0x1900110000004400,0x0000000000000000,0x0000000000000800,0x1800110000005200,
0x0000000000000000,0x0000000000000800,0x1500110000006200,0x0000000000000800,
0x0000000000000400,0x1500110000007500,0x0000000000000000,0x0000000000000800,
0x200780a0004c0d00,0x1007803003060904,0x10078030020605c4,0x200780a0004e11c4,
0x0047802000040504,0x1007803003081904,0x10078030020809c4,0x2047802000c815c4,
0xc00780d00e0a0504,0x00878020000c2180,0x00000320048a0904,0xc00780d00e041900,
0x00000320088a0980,0xc00780d00e041d00,0xc00780d000000580,0x2207802000c82560,
0xc00780d00e120904,0xc00780d000081980,0x0000032004921560,0xc00780d00e0a2100,
0x0000032008921580,0xc00780d00e0a2500,0xc00780d000101d80,0xc00780d000180960,
0xc00780d000202160,0x008780b000022960,0xf800031000800908,0x0000031002801503,
0xc00780d000282500,0x400780d0800a0560,0x0147c8a00003fd04,0x000780c00a042d2c,
0x03ce001000042d00,0x1007c030010a1504,0x00960810009604e4,0x0002801002800310,
0x020780b0000c2100,0xf800031000801508,0x0000031002802903,0x0007801002a00300,
0x000780c00a142900,0x0007801001d00300,0x400780d080140900,0x0147c8a00005fd04,
0x000780c0080a192c,0x03ce0010000a1900,0x1007c03001142904,0x008c1410008c08e4,
0x0002801003500310,0x024780b0000e2100,0xf800031000801908,0x0000031002801d03,
0x0007801003700300,0x000780c008102100,0x0007801002a00300,0x400780d0800e1500,
0x0147c8a0000bfd04,0x000780c0080c152c,0x03ce0010000c1500,0x1007c030010e1d04,
0x03c78010000a19e4,0x0005001004000304,0x000780c008102100,0x0007801003700300,
0x400780d082023900,0x000780a000001500,0x004780b000040104,0x000780a0001c0900,
0x00078000020a0504,0xc00780d400001dc0,0xc00780d400180540,0x018780b000000140,
0x0007800002040900,0xc00780d8000021c0,0xc00780d800181940,0x0007809000000140,
0x0007809000000140,0x5047c8b08201fd00,0x46101cb0410e0460,0x00010010052003b0,
0x03c7801000f81d00,0x0007801006500304,0x5107c8b08301fd00,0x040003c000021960,
0x03c7801000000504,0x400680c0850c1904,0x400680c085020500,0x010c049000020400,
0x5107c8b08301fdc0,0x008004c007021c60,0x400680c0850e1d10,0x400680c085020500,
0x0000189000020400,0x000780c0010e05c0,0x0087c8300505fd00,0x000780c00600016c,
0x410280b100020500,0x5107c8b08301fd00,0x400680c085020560,0x400680c085000100,
0x00021c9000000000,0x200780a0004219c0,0x200780400c440104,0x2007804001480500,
0x1007803010020500,0x20478060004805c4,0x01102040030c2400,0x000780400c162940,
0x02478060020e2500,0x0207806000122100,0x1007803010142900,0x10078030101225c4,
0x10078030101021c4,0x028780600c1415c4,0x02478060020c0500,0x0207806000100100,
0x00820020028a0800,0x0007802000040120,0x1007803002000104,0x2007802000cc01c4,
0xc00781d00e001d04,0x0003ff00000001a0,0x8000003400000000,0x800000bf8000007e,
0x00000000080b043e,0x00000d0000000800,0x01860504000780a0,0x8003fd0000000320,
0x0000036c4107c830,0x0380090000028030,0x050c010000003310,0x040e110000078040,
0x0102010000078060,0x100811c410078030,0x000001c410078030,0x040c110400478020,
0x0306090001078060,0x020615c410078030,0x810601c410078030,0x0584248840078060,
0x03021d2000880820,0x020221c410078030,0x008001c410078030,0x0304150000003310,
0x020419c410078030,0x00c805c410078030,0x8106010422478020,0x088e1c8840078060,
0x08820d20068a1420,0x0e060d0000000320,0x00880080c00780d0,0x00d0152107ec1020,
0x048a190421478020,0x0e0c190000000320,0x04881d80c00780d0,0x0e0e2d0000000320,
0x0e082980c00780d0,0x0e0a2580c00780d0,0x0e022180c00780d0,0x06163580c00780d0,
0x08881900000780c0,0x088a2d0000000320,0x0e162d0000000320,0x0e0c3180c00780d0,
0x09142580c00780d0,0x0b182500034780e0,0x00102100024780e0,0x0e022100024780b0,
0x108a21a0c00780d0,0x0e10290000000320,0x0e0e2d80c00780d0,0x0c8a2180c00780d0,
0x0e10210000000320,0x0e082580c00780d0,0x0a163980c00780d0,0x148a2900000780c0,
0x0e14310000000320,0x0e0c3580c00780d0,0x04822980c00780d0,0x0e142d0000000320,
0x08122180c00780d0,0x0c1a2100038780e0,0x00162100020780e0,0x0e142100020780b0,
0x0e0e2da0c00780d0,0x1c8a1d80c00780d0,0x0e0e290000000320,0x188a1d80c00780d0,
0x0e0e210000000320,0x0e082580c00780d0,0x0e0c1d80c00780d0,0x0a162980c00780d0,
0x208a1900000780c0,0x0e0c190000000320,0x08122180c00780d0,0x060e1900028780e0,
0x00060d00020780e0,0x03840900018780b0,0x0882190000000320,0x0005fd0000000320,
0x0e0c0d6c0147c830,0x248a15a0c00780d0,0x0c88110000000320,0x01b0030000000320,
0x0000010000028010,0x0000ffe0000001f0,0x0c0b040000000300,0x0000080000000000,
0x080d040000001000,0x0000200020010000,0x200780a000421100,0x200780a0004c1504,
0x000780a000000504,0x0082004008140004,0x1007803003000920,0x10078030020001c4,
0x00e81820008400c4,0x2007802000cc0d21,0x00000320048c0104,0xc00780d00e002100,
0x0000032004860180,0xc00780d00e001d00,0xc00780d00e0c0180,0xc00780d00e060980,
0x000780c007101d80,0x00000320088c1900,0xc00780d00e0c1900,0x0000032008860d80,
0xc00780d00e060d00,0x01c780e002000180,0x000780e0030c0100,0x0007800002020500,
0x004780a0000001c0,0x20078004001801e4,0x000000861ffe03e4,0x40c7c8308009fd00,
0x0002801002c00364,0x000000a002b00300,0x0000031001800d00,0x1007803001060900,
0x00841810008200c4,0x0007802003200310,0x0147c8307c01fd00,0x00c500200002016c,
0x0005000002000904,0x00050000020205c0,0x00c50018001801c0,0x200500b400d80144,
0x2005000400180100,0x000000861ffe03e4,0x0047c8300405fd00,0x03c7801000040d64,
0x0002801001d00304,0x000002f000000100,0x0147c8307c03fde0,0x000280300000036c,
0x10078030020a0500,0x01f0041100f800c4,0xc00780d00e020121,0x00078030000003a0,
0x114780a0000c1d00,0x004780a0000e2104,0x114780a000002544,0x0007809000102904,
0x064780a000122100,0xffffff203e942944,0x00c7c0c00a10210f,0x064780a000102100,
0x00078040111c2d84,0x02c78060101e2d00,0x1007803010162d00,0x02c78060101c2dc4,
0x02c7802040122d00,0x064780a000162d04,0x00c7c0c00a162944,0x064780a000142900,
0x0287802000102184,0x000780400e222904,0x028780600f202900,0x1007803010142900,
0x028780600e2029c4,0x0247803000142900,0x00c780300a0e2904,0x0207803000142164,
0x000780400e222904,0x028780600f202900,0x1007803010142900,0x028780600e201dc4,
0x100780301f000100,0x02478030000e21e4,0x014780a000001d04,0x008780d0080e1d2c,
0x0147c8307c0dfd04,0x01c780200000016c,0x02c500d006000104,0x0007803000000304,
0x000001f000000100,0x0c0b0400000001e0,0x0000080000000000,0x080d040000001000,
0x0000200023011800,0x000780a000000500,0x03c7801000f80d04,0x0007800002020504,
0x03c7801000f809c0,0x03c7801000f80104,0x3f07800400180104,0x0087c8300105fde4,
0x000000a00440036c,0x0002801004400300,0x1007803009021100,0x10078030080215c4,
0x04841020058810c4,0x1007803003001920,0x1007803002001dc4,0x10078030030815c4,
0x10078030020811c4,0x048a1020078c18c4,0x1007803003021520,0x10078030020221c4,
0x04e8182106ec1cc4,0x02078020000a1521,0x00000320048e1104,0xc00780d00e081100,
0x00000320048c2180,0xc00780d00e102d00,0x2147802000cc2180,0xc00780d00e102504,
0xc00780d00e0e1580,0xc00780d00e0c2980,0x000780c00b083180,0x00000320088e1d00,
0xc00780d00e0e1d00,0x00000320088c2d80,0xc00780d00e162d00,0x0a0a28c00c123080,
0x030780e00a1231c0,0x000780c00b0e2908,0x030780e00a122500,0x000003200c8c2904,
0xc00780d00e142d00,0x0000032004902980,0xc00780d00e142900,0x00000320108c3180,
0xc00780d00e183500,0x00000320148c3180,0xc00780d00e183100,0x000780c00b0a2d80,
0x024780e00b142d00,0x000780c00d082504,0x02c780e009142d00,0x000780c00c0e2504,
0x02c780e009142500,0x00000320188c2904,0xc00780d00e142900,0x0000032008902180,
0xc00780d00e102100,0x000003201c8c2d80,0xc00780d00e162d00,0x00000320208c1980,
0xc00780d00e0c1900,0x000780c005141580,0x024780e005102500,0x070c14c004161004,
0x024780e0041011c0,0x010780e005101104,0x010780b000060d04,0x0007800002020508,
0x20c78004001801c0,0x000002f0000001e4,0x00000320038409e0,0x40c7c8308005fd00,
0x000003200180016c,0x0002801000600300,0x000000861ffe0300,0x200780a000422900,
0x40c7c8308115fd04,0x0002801005e00364,0x000000a005d00300,0x0000031001800d00,
0x1007803001061100,0x00880810008200c4,0x0007802006400310,0x0147c8307c01fd00,
0x004500200006016c,0x0005000002000904,0x00050000020205c0,0x00c50018001801c0,
0x200500b400d80144,0x2005000400180100,0x000000861ffe03e4,0x0047c8300a09fd00,
0x03c7801000080d64,0x0002801004f00304,0x000002f000000100,0x0147c8307c03fde0,
0x000280300000036c,0x0000032104f00500,0x00c7801000180100,0xc00780d00e020144,
0x00078030000003a0,0x114780a000041500,0x004780a0000a1904,0x114780a000001d44,
0x00078090000c2104,0x064780a0000e1900,0xffffff203e902144,0x00c7c0c0080c190f,
0x064780a0000c1900,0x000780400d142584,0x024780600c162500,0x1007803010122500,
0x024780600c1425c4,0x02478020400e2500,0x064780a000122504,0x00c7c0c008122144,
0x064780a000102100,0x02078020000c1984,0x000780400a1a2104,0x020780600b182100,
0x1007803010102100,0x020780600a1821c4,0x01c7803000102100,0x00c78030080a2104,
0x0187803000101964,0x000780400a1a2104,0x020780600b182100,0x1007803010102100,
0x020780600a1815c4,0x100780301f000100,0x01c78030000a19e4,0x014780a000001504,
0x008780d0060a152c,0x0147c8307c05fd04,0x014780200000016c,0x02c500d002000104,
0x0007803000000304,0x000001f000000100,0x000001000002ffe0,0x000000000c0b0400,
0x0000100000000800,0x23011800080d0400,0x0000000000002000,0x0000000000000000,
0x0000000000000000,0x0000000000000400,0x00001f0000000100,0x0000000000000000,
0x00001e0000000100,0x0000000000000000,0x0000000600000000,0x00001ab400000005,
0x0000000000000000,0x0000000000000000,0x0000026800000000,0x0000026800000000,
0x0000000400000000,0x6000000000000000,0x00000ca100001d05,0x0000000000000000,
0x0000000000000000,0x000003ec00000000,0x000003ec00000000,0x0000000400000000,
0x6000000000000000,0x0000108d00001d06,0x0000000000000000,0x0000000000000000,
0x0000000000000000,0x0000003800000000,0x0000000400000000,0x6000000000000000,
0x0000108d00001c05,0x0000000000000000,0x0000000000000000,0x000002a400000000,
0x000002a400000000,0x0000000400000000,0x6000000000000000,0x0000133100001c06,
0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000003000000000,
0x0000000400000000,0x6000000000000000,0x0000133100001b05,0x0000000000000000,
0x0000000000000000,0x000002d800000000,0x000002d800000000,0x0000000400000000,
0x6000000000000000,0x0000160900001b06,0x0000000000000000,0x0000000000000000,
0x0000000000000000,0x0000003000000000,0x0000000400000000,0x6000000000000000,
0x0000160900001a05,0x0000000000000000,0x0000000000000000,0x0000046c00000000,
0x0000046c00000000,0x0000000400000000,0x6000000000000000,0x00001a7500001a06,
0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000003000000000,
0x0000000400000000,0x0000000100000000,0x00001a7500000005,0x0000000000000000,
0x0000000000000000,0x0000003400000000,0x0000003400000000,0x0000000400000000,
0x0000000100000000,0x00001aa900000006,0x0000000000000000,0x0000000000000000,
0x0000000800000000,0x0000001000000000,0x0000000400000000,0x0000000000000000
};
}
#line 779 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.fatbin.c"
static __cudaFatPtxEntry __ptxEntries [] = {{(char*)"compute_11",(char*)__deviceText_$compute_11$},{0,0}};
static __cudaFatCubinEntry __cubinEntries[] = {{0,0}};
static __cudaFatDebugEntry __debugEntries0 = {0, 0, 0, 0} ;
static __cudaFatElfEntry __elfEntries0 = {0, 0, 0, 0} ;
static __cudaFatElfEntry __elfEntries1 = {(char*)"sm_11", (char*)__deviceText_$sm_11$, &__elfEntries0, (unsigned int)sizeof(__deviceText_$sm_11$)};
#pragma data_seg(".nvFatBinSegment")
#pragma data_seg()
__declspec(allocate(".nvFatBinSegment")) static __cudaFatCudaBinary __fatDeviceText= {0x1ee55a01,0x00000004,0xa14f518d,(char*)"fa001963f6b5b364",(char*)"c:/Users/tio/Documents/Visual Studio 2008/Projects/Neo/Neo/naive.cu",(char*)"-v -maxrregcount=32 ",__ptxEntries,__cubinEntries,&__debugEntries0,0,0,0,0,0,0xe4a4a97c,&__elfEntries1};
#line 2 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.cudafe1.stub.c"
#line 1 "C:\\CUDA\\include\\crt/host_runtime.h"
#line 73 "C:\\CUDA\\include\\crt/host_runtime.h"
extern "C" {
extern void** __stdcall __cudaRegisterFatBinary(
void *fatCubin
);
extern void __stdcall __cudaUnregisterFatBinary(
void **fatCubinHandle
);
extern void __stdcall __cudaRegisterVar(
void **fatCubinHandle,
char *hostVar,
char *deviceAddress,
const char *deviceName,
int ext,
int size,
int constant,
int global
);
extern void __stdcall __cudaRegisterTexture(
void **fatCubinHandle,
const struct textureReference *hostVar,
const void **deviceAddress,
const char *deviceName,
int dim,
int norm,
int ext
);
extern void __stdcall __cudaRegisterSurface(
void **fatCubinHandle,
const struct surfaceReference *hostVar,
const void **deviceAddress,
const char *deviceName,
int dim,
int ext
);
extern void __stdcall __cudaRegisterFunction(
void **fatCubinHandle,
const char *hostFun,
char *deviceFun,
const char *deviceName,
int thread_limit,
uint3 *tid,
uint3 *bid,
dim3 *bDim,
dim3 *gDim,
int *wSize
);
#line 151 "C:\\CUDA\\include\\crt/host_runtime.h"
extern int __cdecl atexit(void(__cdecl *)(void));
#line 155 "C:\\CUDA\\include\\crt/host_runtime.h"
}
static void **__cudaFatCubinHandle;
static void __cdecl __cudaUnregisterBinaryUtil(void)
{
__cudaUnregisterFatBinary(__cudaFatCubinHandle);
}
#line 1 "C:\\CUDA\\include\\common_functions.h"
#line 80 "C:\\CUDA\\include\\common_functions.h"
#line 1 "c:\\cuda\\include\\math_functions.h"
#line 946 "c:\\cuda\\include\\math_functions.h"
#line 1 "c:\\cuda\\include\\host_defines.h"
#line 149 "c:\\cuda\\include\\host_defines.h"
#line 948 "c:\\cuda\\include\\math_functions.h"
#line 1 "c:\\cuda\\include\\math_constants.h"
#line 82 "c:\\cuda\\include\\math_constants.h"
#line 89 "c:\\cuda\\include\\math_constants.h"
#line 143 "c:\\cuda\\include\\math_constants.h"
#line 949 "c:\\cuda\\include\\math_functions.h"
#line 2962 "c:\\cuda\\include\\math_functions.h"
#line 1 "C:\\CUDA\\include\\crt/func_macro.h"
#line 47 "C:\\CUDA\\include\\crt/func_macro.h"
#line 53 "C:\\CUDA\\include\\crt/func_macro.h"
#line 62 "C:\\CUDA\\include\\crt/func_macro.h"
#line 69 "C:\\CUDA\\include\\crt/func_macro.h"
#line 76 "C:\\CUDA\\include\\crt/func_macro.h"
#line 78 "C:\\CUDA\\include\\crt/func_macro.h"
#line 80 "C:\\CUDA\\include\\crt/func_macro.h"
#line 2970 "c:\\cuda\\include\\math_functions.h"
static double exp10(double a)
{
return pow(10.0, a);
}
static float exp10f(float a)
{
return (float)exp10((double)a);
}
static void sincos(double a, double *sptr, double *cptr)
{
*sptr = sin(a);
*cptr = cos(a);
}
static void sincosf(float a, float *sptr, float *cptr)
{
double s, c;
sincos((double)a, &s, &c);
*sptr = (float)s;
*cptr = (float)c;
}
static int __isnan(double a)
{
volatile union {
double d;
unsigned long long int l;
} cvt;
cvt.d = a;
return cvt.l << 1 > 0xffe0000000000000ull;
}
static int __isinf(double a)
{
volatile union {
double d;
unsigned long long int l;
} cvt;
cvt.d = a;
return cvt.l << 1 == 0xffe0000000000000ull;
}
#line 3029 "c:\\cuda\\include\\math_functions.h"
static long long int llabs(long long int a)
{
return a < 0ll ? -a : a;
}
static int __signbit(double a)
{
volatile union {
double d;
signed long long int l;
} cvt;
cvt.d = a;
return cvt.l < 0ll;
}
static double copysign(double a, double b)
{
volatile union {
double d;
unsigned long long int l;
} cvta, cvtb;
cvta.d = a;
cvtb.d = b;
cvta.l = (cvta.l & 0x7fffffffffffffffULL) | (cvtb.l & 0x8000000000000000ULL);
return cvta.d;
}
static int __finite(double a)
{
volatile union {
double d;
unsigned long long int l;
} cvt;
cvt.d = a;
return cvt.l << 1 < 0xffe0000000000000ull;
}
static double fmax(double a, double b)
{
if (__isnan(a) && __isnan(b)) return a + b;
if (__isnan(a)) return b;
if (__isnan(b)) return a;
if ((a == 0.0) && (b == 0.0) && __signbit(b)) return a;
return a > b ? a : b;
}
static double fmin(double a, double b)
{
if (__isnan(a) && __isnan(b)) return a + b;
if (__isnan(a)) return b;
if (__isnan(b)) return a;
if ((a == 0.0) && (b == 0.0) && __signbit(a)) return a;
return a < b ? a : b;
}
static double trunc(double a)
{
return a < 0.0 ? ceil(a) : floor(a);
}
static double round(double a)
{
double fa = fabs(a);
if (fa > 4503599627370496.0) {
return a;
} else {
double u = floor(fa + 0.5);
if (fa < 0.5) u = 0;
u = copysign (u, a);
return u;
}
}
static long int lround(double a)
{
return (long int)round(a);
}
static long long int llround(double a)
{
return (long long int)round(a);
}
static double rint(double a)
{
double fa = fabs(a);
double u = 4503599627370496.0 + fa;
if (fa >= 4503599627370496.0) {
u = a;
} else {
u = u - 4503599627370496.0;
u = copysign (u, a);
}
return u;
}
static double nearbyint(double a)
{
return rint(a);
}
static long int lrint(double a)
{
return (long int)rint(a);
}
static long long int llrint(double a)
{
return (long long int)rint(a);
}
static double fdim(double a, double b)
{
if (a > b) {
return (a - b);
} else if (a <= b) {
return 0.0;
} else if (__isnan(a)) {
return a;
} else {
return b;
}
}
static double scalbn(double a, int b)
{
return ldexp(a, b);
}
static double scalbln(double a, long int b)
{
int t;
if (b > 2147483647L) {
t = 2147483647;
} else if (b < (-2147483647 - 1)) {
t = (-2147483647 - 1);
} else {
t = (int)b;
}
return scalbn(a, t);
}
static double log2(double a)
{
return log(a) * 1.44269504088896340;
}
static double exp2(double a)
{
return pow(2.0, a);
}
static double log1p(double a)
{
volatile double u, m;
u = 1.0 + a;
if (u == 1.0) {
u = a;
} else {
m = u - 1.0;
u = log(u);
if (a < 1.0) {
u = a * u;
u = u / m;
}
}
return u;
}
static double expm1(double a)
{
volatile double u, m;
u = exp(a);
m = u - 1.0;
if (m == 0.0) {
m = a;
}
else if (fabs(a) < 1.0) {
u = log(u);
m = m * a;
m = m / u;
}
return m;
}
static double cbrt(double a)
{
double s, t;
if (a == 0.0 || __isinf(a)) {
return a;
}
s = fabs(a);
t = exp2(3.3333333333333333e-1 * log2(s));
t = t - (t - (s / (t * t))) * 3.3333333333333333e-1;
t = copysign(t, a);
return t;
}
static double acosh(double a)
{
double s, t;
t = a - 1.0;
if (t == a) {
return log(2.0) + log(a);
} else {
s = a + 1.0;
t = t + sqrt(s * t);
return log1p(t);
}
}
static double asinh(double a)
{
double fa, oofa, t;
fa = fabs(a);
if (fa > 1e18) {
t = log(2.0) + log(fa);
} else {
oofa = 1.0 / fa;
t = fa + fa / (oofa + sqrt(1.0 + oofa * oofa));
t = log1p(t);
}
t = copysign(t, a);
return t;
}
static double atanh(double a)
{
double fa, t;
if (__isnan(a)) {
return a + a;
}
fa = fabs(a);
t = (2.0 * fa) / (1.0 - fa);
t = 0.5 * log1p(t);
if (__isnan(t) || !__signbit(a)) {
return t;
}
return -t;
}
static int ilogb(double a)
{
volatile union {
double d;
unsigned long long int l;
} x;
unsigned long long int i;
int expo = -1022;
if (__isnan(a)) return -((int)((unsigned int)-1 >> 1))-1;
if (__isinf(a)) return ((int)((unsigned int)-1 >> 1));
x.d = a;
i = x.l & 0x7fffffffffffffffull;
if (i == 0) return -((int)((unsigned int)-1 >> 1))-1;
if (i >= 0x0010000000000000ull) {
return (int)(((i >> 52) & 0x7ff) - 1023);
}
while (i < 0x0010000000000000ull) {
expo--;
i <<= 1;
}
return expo;
}
static double logb(double a)
{
volatile union {
double d;
unsigned long long int l;
} x;
unsigned long long int i;
int expo = -1022;
if (__isnan(a)) return a + a;
if (__isinf(a)) return fabs(a);
x.d = a;
i = x.l & 0x7fffffffffffffffull;
if (i == 0) return -1.0/fabs(a);
if (i >= 0x0010000000000000ull) {
return (double)((int)((i >> 52) & 0x7ff) - 1023);
}
while (i < 0x0010000000000000ull) {
expo--;
i <<= 1;
}
return (double)expo;
}
static double remquo(double a, double b, int *quo)
{
volatile union {
double d;
unsigned long long int l;
} cvt;
int rem1 = 1;
int expo_a;
int expo_b;
unsigned long long mant_a;
unsigned long long mant_b;
unsigned long long mant_c;
unsigned long long temp;
int sign_a;
int sign_b;
int sign_c;
int expo_c;
int expodiff;
int quot = 0;
int l;
int iter;
cvt.d = a;
mant_a = (cvt.l << 11) | 0x8000000000000000ULL;
expo_a = (int)((cvt.l >> 52) & 0x7ff) - 1023;
sign_a = (int)(cvt.l >> 63);
cvt.d = b;
mant_b = (cvt.l << 11) | 0x8000000000000000ULL;
expo_b = (int)((cvt.l >> 52) & 0x7ff) - 1023;
sign_b = (int)(cvt.l >> 63);
sign_c = sign_a;
expo_c = expo_a;
if (__isnan(a) || __isnan(b)) {
*quo = quot;
return a + b;
}
if (__isinf(a) || (b == 0.0)) {
*quo = quot;
cvt.l = 0xfff8000000000000ULL;
return cvt.d;
}
if ((a == 0.0) || (__isinf(b))) {
*quo = quot;
return a;
}
if (expo_a < -1022) {
mant_a = mant_a + mant_a;
while (mant_a < 0x8000000000000000ULL) {
mant_a = mant_a + mant_a;
expo_a--;
}
}
if (expo_b < -1022) {
mant_b = mant_b + mant_b;
while (mant_b < 0x8000000000000000ULL) {
mant_b = mant_b + mant_b;
expo_b--;
}
}
expodiff = expo_a - expo_b;
if (expodiff < 0) {
iter = -1;
} else {
iter = expodiff;
}
mant_a = mant_a >> 1;
mant_b = mant_b >> 1;
expo_c = expo_a - iter;
for (l = 0; l < (iter + 1); l++) {
mant_a = mant_a - mant_b;
if (mant_a & 0x8000000000000000ULL) {
mant_a = mant_a + mant_b;
quot = quot + quot;
} else {
quot = quot + quot + 1;
}
mant_a = mant_a + mant_a;
}
mant_c = mant_a;
if (mant_c == 0) {
quot = quot & 7;
*quo = (sign_a ^ sign_b) ? -quot : quot;
cvt.l = (unsigned long long int)sign_c << 63;
return cvt.d;
}
while (!(mant_c & 0x8000000000000000ULL)) {
mant_c = mant_c + mant_c;
expo_c--;
}
if (rem1 && ((expodiff+1) >= 0)) {
temp = mant_a - mant_b;
if (((temp != 0ULL) && (!(temp & 0x8000000000000000ULL))) ||
((temp == 0ULL) && (quot & 1))) {
mant_a = mant_a >> 1;
quot++;
sign_c = 1 ^ sign_c;
expo_c = expo_a - iter + 1;
mant_c = mant_b - mant_a;
while (!(mant_c & 0x8000000000000000ULL)) {
mant_c = mant_c + mant_c;
expo_c--;
}
}
}
if (expo_c >= -1022) {
mant_c = ((mant_c >> 11) +
((((unsigned long long)sign_c) << 63) +
(((unsigned long long)(expo_c + 1022)) << 52)));
} else {
mant_c = ((((unsigned long long)sign_c) << 63) +
(mant_c >> (11 - expo_c - 1022)));
}
quot = quot & 7;
*quo = (sign_a ^ sign_b) ? -quot : quot;
cvt.l = mant_c;
return cvt.d;
}
static double remainder(double a, double b)
{
int quo;
return remquo (a, b, &quo);
}
static double fma (double a, double b, double c)
{
volatile union {
struct {
unsigned int lo;
unsigned int hi;
};
double d;
} xx, yy, zz, ww;
unsigned int s, t, u, prod0, prod1, prod2, prod3, expo_x, expo_y, expo_z;
xx.d = a;
yy.d = b;
zz.d = c;
expo_z = 0x7FF;
t = xx.hi >> 20;
expo_x = expo_z & t;
expo_x = expo_x - 1;
t = yy.hi >> 20;
expo_y = expo_z & t;
expo_y = expo_y - 1;
t = zz.hi >> 20;
expo_z = expo_z & t;
expo_z = expo_z - 1;
if (!((expo_x <= 0x7FD) &&
(expo_y <= 0x7FD) &&
(expo_z <= 0x7FD))) {
if (((yy.hi << 1) | (yy.lo != 0)) > 0xffe00000) {
yy.hi |= 0x00080000;
return yy.d;
}
if (((zz.hi << 1) | (zz.lo != 0)) > 0xffe00000) {
zz.hi |= 0x00080000;
return zz.d;
}
if (((xx.hi << 1) | (xx.lo != 0)) > 0xffe00000) {
xx.hi |= 0x00080000;
return xx.d;
}
if (((((xx.hi << 1) | xx.lo) == 0) &&
(((yy.hi << 1) | (yy.lo != 0)) == 0xffe00000)) ||
((((yy.hi << 1) | yy.lo) == 0) &&
(((xx.hi << 1) | (xx.lo != 0)) == 0xffe00000))) {
xx.hi = 0xfff80000;
xx.lo = 0x00000000;
return xx.d;
}
if (((zz.hi << 1) | (zz.lo != 0)) == 0xffe00000) {
if ((((yy.hi << 1) | (yy.lo != 0)) == 0xffe00000) ||
(((xx.hi << 1) | (xx.lo != 0)) == 0xffe00000)) {
if ((int)(xx.hi ^ yy.hi ^ zz.hi) < 0) {
xx.hi = 0xfff80000;
xx.lo = 0x00000000;
return xx.d;
}
}
}
if (((xx.hi << 1) | (xx.lo != 0)) == 0xffe00000) {
xx.hi = xx.hi ^ (yy.hi & 0x80000000);
return xx.d;
}
if (((yy.hi << 1) | (yy.lo != 0)) == 0xffe00000) {
yy.hi = yy.hi ^ (xx.hi & 0x80000000);
return yy.d;
}
if (((zz.hi << 1) | (zz.lo != 0)) == 0xffe00000) {
return zz.d;
}
if ((zz.hi == 0x80000000) && (zz.lo == 0)) {
if ((((xx.hi << 1) | xx.lo) == 0) ||
(((yy.hi << 1) | yy.lo) == 0)) {
if ((int)(xx.hi ^ yy.hi) < 0) {
return zz.d;
}
}
}
if ((((zz.hi << 1) | zz.lo) == 0) &&
((((xx.hi << 1) | xx.lo) == 0) ||
(((yy.hi << 1) | yy.lo) == 0))) {
zz.hi &= 0x7fffffff;
return zz.d;
}
if ((((xx.hi << 1) | xx.lo) == 0) ||
(((yy.hi << 1) | yy.lo) == 0)) {
return zz.d;
}
if (expo_x == 0xffffffff) {
expo_x++;
t = xx.hi & 0x80000000;
s = xx.lo >> 21;
xx.lo = xx.lo << 11;
xx.hi = xx.hi << 11;
xx.hi = xx.hi | s;
if (!xx.hi) {
xx.hi = xx.lo;
xx.lo = 0;
expo_x -= 32;
}
while ((int)xx.hi > 0) {
s = xx.lo >> 31;
xx.lo = xx.lo + xx.lo;
xx.hi = xx.hi + xx.hi;
xx.hi = xx.hi | s;
expo_x--;
}
xx.lo = (xx.lo >> 11);
xx.lo |= (xx.hi << 21);
xx.hi = (xx.hi >> 11) | t;
}
if (expo_y == 0xffffffff) {
expo_y++;
t = yy.hi & 0x80000000;
s = yy.lo >> 21;
yy.lo = yy.lo << 11;
yy.hi = yy.hi << 11;
yy.hi = yy.hi | s;
if (!yy.hi) {
yy.hi = yy.lo;
yy.lo = 0;
expo_y -= 32;
}
while ((int)yy.hi > 0) {
s = yy.lo >> 31;
yy.lo = yy.lo + yy.lo;
yy.hi = yy.hi + yy.hi;
yy.hi = yy.hi | s;
expo_y--;
}
yy.lo = (yy.lo >> 11);
yy.lo |= (yy.hi << 21);
yy.hi = (yy.hi >> 11) | t;
}
if (expo_z == 0xffffffff) {
expo_z++;
t = zz.hi & 0x80000000;
s = zz.lo >> 21;
zz.lo = zz.lo << 11;
zz.hi = zz.hi << 11;
zz.hi = zz.hi | s;
if (!zz.hi) {
zz.hi = zz.lo;
zz.lo = 0;
expo_z -= 32;
}
while ((int)zz.hi > 0) {
s = zz.lo >> 31;
zz.lo = zz.lo + zz.lo;
zz.hi = zz.hi + zz.hi;
zz.hi = zz.hi | s;
expo_z--;
}
zz.lo = (zz.lo >> 11);
zz.lo |= (zz.hi << 21);
zz.hi = (zz.hi >> 11) | t;
}
}
expo_x = expo_x + expo_y;
expo_y = xx.hi ^ yy.hi;
t = xx.lo >> 21;
xx.lo = xx.lo << 11;
xx.hi = xx.hi << 11;
xx.hi = xx.hi | t;
yy.hi = yy.hi & 0x000fffff;
xx.hi = xx.hi | 0x80000000;
yy.hi = yy.hi | 0x00100000;
prod0 = xx.lo * yy.lo;
prod1 =(unsigned)(((unsigned long long)xx.lo*(unsigned long long)yy.lo)>>32);
prod2 = xx.hi * yy.lo;
prod3 = xx.lo * yy.hi;
prod1 += prod2;
t = prod1 < prod2;
prod1 += prod3;
t += prod1 < prod3;
prod2 =(unsigned)(((unsigned long long)xx.hi*(unsigned long long)yy.lo)>>32);
prod3 =(unsigned)(((unsigned long long)xx.lo*(unsigned long long)yy.hi)>>32);
prod2 += prod3;
s = prod2 < prod3;
prod3 = xx.hi * yy.hi;
prod2 += prod3;
s += prod2 < prod3;
prod2 += t;
s += prod2 < t;
prod3 =(unsigned)(((unsigned long long)xx.hi*(unsigned long long)yy.hi)>>32);
prod3 = prod3 + s;
yy.lo = prod0;
yy.hi = prod1;
xx.lo = prod2;
xx.hi = prod3;
expo_x = expo_x - (1023 - 2);
expo_y = expo_y & 0x80000000;
if (xx.hi < 0x00100000) {
s = xx.lo >> 31;
s = (xx.hi << 1) + s;
xx.hi = s;
s = yy.hi >> 31;
s = (xx.lo << 1) + s;
xx.lo = s;
s = yy.lo >> 31;
s = (yy.hi << 1) + s;
yy.hi = s;
s = yy.lo << 1;
yy.lo = s;
expo_x--;
}
t = 0;
if (((zz.hi << 1) | zz.lo) != 0) {
s = zz.hi & 0x80000000;
zz.hi &= 0x000fffff;
zz.hi |= 0x00100000;
ww.hi = 0;
ww.lo = 0;
if ((int)expo_z > (int)expo_x) {
t = expo_z;
expo_z = expo_x;
expo_x = t;
t = zz.hi;
zz.hi = xx.hi;
xx.hi = t;
t = zz.lo;
zz.lo = xx.lo;
xx.lo = t;
t = ww.hi;
ww.hi = yy.hi;
yy.hi = t;
t = ww.lo;
ww.lo = yy.lo;
yy.lo = t;
t = expo_y;
expo_y = s;
s = t;
}
expo_z = expo_x - expo_z;
u = expo_y ^ s;
if (expo_z <= 107) {
t = 0;
while (expo_z >= 32) {
t = ww.lo | (t != 0);
ww.lo = ww.hi;
ww.hi = zz.lo;
zz.lo = zz.hi;
zz.hi = 0;
expo_z -= 32;
}
if (expo_z) {
t = (t >> expo_z) | (ww.lo << (32 - expo_z)) |
((t << (32 - expo_z)) != 0);
ww.lo = (ww.lo >> expo_z) | (ww.hi << (32 - expo_z));
ww.hi = (ww.hi >> expo_z) | (zz.lo << (32 - expo_z));
zz.lo = (zz.lo >> expo_z) | (zz.hi << (32 - expo_z));
zz.hi = (zz.hi >> expo_z);
}
} else {
t = 1;
ww.lo = 0;
ww.hi = 0;
zz.lo = 0;
zz.hi = 0;
}
if ((int)u < 0) {
t = (unsigned)(-(int)t);
s = (t != 0);
u = yy.lo - s;
s = u > yy.lo;
yy.lo = u - ww.lo;
s += yy.lo > u;
u = yy.hi - s;
s = u > yy.hi;
yy.hi = u - ww.hi;
s += yy.hi > u;
u = xx.lo - s;
s = u > xx.lo;
xx.lo = u - zz.lo;
s += xx.lo > u;
xx.hi = (xx.hi - zz.hi) - s;
if (!(xx.hi | xx.lo | yy.hi | yy.lo | t)) {
return xx.d;
}
if ((int)xx.hi < 0) {
t = ~t;
yy.lo = ~yy.lo;
yy.hi = ~yy.hi;
xx.lo = ~xx.lo;
xx.hi = ~xx.hi;
if (++t == 0) {
if (++yy.lo == 0) {
if (++yy.hi == 0) {
if (++xx.lo == 0) {
++xx.hi;
}
}
}
}
expo_y ^= 0x80000000;
}
while (!(xx.hi & 0x00100000)) {
xx.hi = (xx.hi << 1) | (xx.lo >> 31);
xx.lo = (xx.lo << 1) | (yy.hi >> 31);
yy.hi = (yy.hi << 1) | (yy.lo >> 31);
yy.lo = (yy.lo << 1);
expo_x--;
}
} else {
yy.lo = yy.lo + ww.lo;
s = yy.lo < ww.lo;
yy.hi = yy.hi + s;
u = yy.hi < s;
yy.hi = yy.hi + ww.hi;
u += yy.hi < ww.hi;
xx.lo = xx.lo + u;
s = xx.lo < u;
xx.lo = xx.lo + zz.lo;
s += xx.lo < zz.lo;
xx.hi = xx.hi + zz.hi + s;
if (xx.hi & 0x00200000) {
t = t | (yy.lo << 31);
yy.lo = (yy.lo >> 1) | (yy.hi << 31);
yy.hi = (yy.hi >> 1) | (xx.lo << 31);
xx.lo = (xx.lo >> 1) | (xx.hi << 31);
xx.hi = ((xx.hi & 0x80000000) | (xx.hi >> 1)) & ~0x40000000;
expo_x++;
}
}
}
t = yy.lo | (t != 0);
t = yy.hi | (t != 0);
xx.hi |= expo_y;
if (expo_x <= 0x7FD) {
xx.hi = xx.hi & ~0x00100000;
s = xx.lo & 1;
u = xx.lo;
xx.lo += (t == 0x80000000) ? s : (t >> 31);
xx.hi += (u > xx.lo);
xx.hi += ((expo_x + 1) << 20);
return xx.d;
} else if ((int)expo_x >= 2046) {
xx.hi = (xx.hi & 0x80000000) | 0x7ff00000;
xx.lo = 0;
return xx.d;
}
expo_x = (unsigned)(-(int)expo_x);
if (expo_x > 54) {
xx.hi = xx.hi & 0x80000000;
xx.lo = 0;
return xx.d;
}
yy.hi = xx.hi & 0x80000000;
xx.hi = xx.hi & ~0xffe00000;
if (expo_x >= 32) {
t = xx.lo | (t != 0);
xx.lo = xx.hi;
xx.hi = 0;
expo_x -= 32;
}
if (expo_x) {
t = (t >> expo_x) | (xx.lo << (32 - expo_x)) | (t != 0);
xx.lo = (xx.lo >> expo_x) | (xx.hi << (32 - expo_x));
xx.hi = (xx.hi >> expo_x);
}
expo_x = xx.lo & 1;
u = xx.lo;
xx.lo += (t == 0x80000000) ? expo_x : (t >> 31);
xx.hi += (u > xx.lo);
xx.hi |= yy.hi;
return xx.d;
}
static double nextafter(double a, double b)
{
volatile union {
double d;
unsigned long long int l;
} cvt;
unsigned long long int ia;
unsigned long long int ib;
cvt.d = a;
ia = cvt.l;
cvt.d = b;
ib = cvt.l;
if (__isnan(a) || __isnan(b)) return a + b;
if (((ia | ib) << 1) == 0ULL) return b;
if (a == 0.0) {
return copysign (4.9406564584124654e-324, b);
}
if ((a < b) && (a < 0.0)) ia--;
if ((a < b) && (a > 0.0)) ia++;
if ((a > b) && (a < 0.0)) ia++;
if ((a > b) && (a > 0.0)) ia--;
cvt.l = ia;
return cvt.d;
}
static double erf(double a)
{
double t, r, q;
t = fabs(a);
if (t >= 1.0) {
r = -1.28836351230756500E-019;
r = r * t + 1.30597472161093370E-017;
r = r * t - 6.33924401259620500E-016;
r = r * t + 1.96231865908940140E-014;
r = r * t - 4.35272243559990750E-013;
r = r * t + 7.37083927929352150E-012;
r = r * t - 9.91402142550461630E-011;
r = r * t + 1.08817017167760820E-009;
r = r * t - 9.93918713097634620E-009;
r = r * t + 7.66739923255145500E-008;
r = r * t - 5.05440278302806720E-007;
r = r * t + 2.87474157099000620E-006;
r = r * t - 1.42246725399722510E-005;
r = r * t + 6.16994555079419460E-005;
r = r * t - 2.36305221938908790E-004;
r = r * t + 8.05032844055371070E-004;
r = r * t - 2.45833366629108140E-003;
r = r * t + 6.78340988296706120E-003;
r = r * t - 1.70509103597554640E-002;
r = r * t + 3.93322852515666300E-002;
r = r * t - 8.37271292613764040E-002;
r = r * t + 1.64870423707623280E-001;
r = r * t - 2.99729521787681470E-001;
r = r * t + 4.99394435612628580E-001;
r = r * t - 7.52014596480123030E-001;
r = r * t + 9.99933138314926250E-001;
r = r * t - 1.12836725321102670E+000;
r = r * t + 9.99998988715182450E-001;
q = exp (-t * t);
r = 1.0 - r * q;
if (t >= 6.5) {
r = 1.0;
}
a = copysign (r, a);
} else {
q = a * a;
r = -7.77946848895991420E-010;
r = r * q + 1.37109803980285950E-008;
r = r * q - 1.62063137584932240E-007;
r = r * q + 1.64471315712790040E-006;
r = r * q - 1.49247123020098620E-005;
r = r * q + 1.20552935769006260E-004;
r = r * q - 8.54832592931448980E-004;
r = r * q + 5.22397760611847340E-003;
r = r * q - 2.68661706431114690E-002;
r = r * q + 1.12837916709441850E-001;
r = r * q - 3.76126389031835210E-001;
r = r * q + 1.12837916709551260E+000;
a = r * a;
}
return a;
}
static double erfc(double a)
{
double p, q, h, l;
if (a < 0.75) {
return 1.0 - erf(a);
}
if (a > 27.3) {
return 0.0;
}
if (a < 5.0) {
double t;
t = 1.0 / a;
p = 1.9759923722227928E-008;
p = p * t - 1.0000002670474897E+000;
p = p * t - 7.4935303236347828E-001;
p = p * t - 1.5648136328071860E-001;
p = p * t + 1.2871196242447239E-001;
p = p * t + 1.1126459974811195E-001;
p = p * t + 4.0678642255914332E-002;
p = p * t + 7.9915414156678296E-003;
p = p * t + 7.1458332107840234E-004;
q = t + 2.7493547525030619E+000;
q = q * t + 3.3984254815725423E+000;
q = q * t + 2.4635304979947761E+000;
q = q * t + 1.1405284734691286E+000;
q = q * t + 3.4130157606195649E-001;
q = q * t + 6.2250967676044953E-002;
q = q * t + 5.5661370941268700E-003;
q = q * t + 1.0575248365468671E-009;
p = p / q;
p = p * t;
h = ((int)(a * 16.0)) * 0.0625;
l = (a - h) * (a + h);
q = exp(-h * h) * exp(-l);
q = q * 0.5;
p = p * q + q;
p = p * t;
} else {
double ooa, ooasq;
ooa = 1.0 / a;
ooasq = ooa * ooa;
p = -4.0025406686930527E+005;
p = p * ooasq + 1.4420582543942123E+005;
p = p * ooasq - 2.7664185780951841E+004;
p = p * ooasq + 4.1144611644767283E+003;
p = p * ooasq - 5.8706000519209351E+002;
p = p * ooasq + 9.1490086446323375E+001;
p = p * ooasq - 1.6659491387740221E+001;
p = p * ooasq + 3.7024804085481784E+000;
p = p * ooasq - 1.0578553994424316E+000;
p = p * ooasq + 4.2314218745087778E-001;
p = p * ooasq - 2.8209479177354962E-001;
p = p * ooasq + 5.6418958354775606E-001;
h = a * a;
h = ((int)(a * 16.0)) * 0.0625;
l = (a - h) * (a + h);
q = exp(-h * h) * exp(-l);
p = p * ooa;
p = p * q;
}
return p;
}
static double lgamma(double a)
{
double s;
double t;
double i;
double fa;
double sum;
long long int quot;
if (__isnan(a) || __isinf(a)) {
return a * a;
}
fa = fabs(a);
if (fa >= 3.0) {
if (fa >= 8.0) {
s = 1.0 / fa;
t = s * s;
sum = -0.1633436431e-2;
sum = sum * t + 0.83645878922e-3;
sum = sum * t - 0.5951896861197e-3;
sum = sum * t + 0.793650576493454e-3;
sum = sum * t - 0.277777777735865004e-2;
sum = sum * t + 0.833333333333331018375e-1;
sum = sum * s + 0.918938533204672;
s = 0.5 * log (fa);
t = fa - 0.5;
s = s * t;
t = s - fa;
s = s + sum;
t = t + s;
} else {
i = fa - 3.0;
s = -4.02412642744125560E+003;
s = s * i - 2.97693796998962000E+005;
s = s * i - 6.38367087682528790E+006;
s = s * i - 5.57807214576539320E+007;
s = s * i - 2.24585140671479230E+008;
s = s * i - 4.70690608529125090E+008;
s = s * i - 7.62587065363263010E+008;
s = s * i - 9.71405112477113250E+008;
t = i - 1.02277248359873170E+003;
t = t * i - 1.34815350617954480E+005;
t = t * i - 4.64321188814343610E+006;
t = t * i - 6.48011106025542540E+007;
t = t * i - 4.19763847787431360E+008;
t = t * i - 1.25629926018000720E+009;
t = t * i - 1.40144133846491690E+009;
t = s / t;
t = t + i;
}
} else if (fa >= 1.5) {
i = fa - 2.0;
t = 9.84839283076310610E-009;
t = t * i - 6.69743850483466500E-008;
t = t * i + 2.16565148880011450E-007;
t = t * i - 4.86170275781575260E-007;
t = t * i + 9.77962097401114400E-007;
t = t * i - 2.03041287574791810E-006;
t = t * i + 4.36119725805364580E-006;
t = t * i - 9.43829310866446590E-006;
t = t * i + 2.05106878496644220E-005;
t = t * i - 4.49271383742108440E-005;
t = t * i + 9.94570466342226000E-005;
t = t * i - 2.23154589559238440E-004;
t = t * i + 5.09669559149637430E-004;
t = t * i - 1.19275392649162300E-003;
t = t * i + 2.89051032936815490E-003;
t = t * i - 7.38555102806811700E-003;
t = t * i + 2.05808084278121250E-002;
t = t * i - 6.73523010532073720E-002;
t = t * i + 3.22467033424113040E-001;
t = t * i + 4.22784335098467190E-001;
t = t * i;
} else if (fa >= 0.7) {
i = 1.0 - fa;
t = 1.17786911519331130E-002;
t = t * i + 3.89046747413522300E-002;
t = t * i + 5.90045711362049900E-002;
t = t * i + 6.02143305254344420E-002;
t = t * i + 5.61652708964839180E-002;
t = t * i + 5.75052755193461370E-002;
t = t * i + 6.21061973447320710E-002;
t = t * i + 6.67614724532521880E-002;
t = t * i + 7.14856037245421020E-002;
t = t * i + 7.69311251313347100E-002;
t = t * i + 8.33503129714946310E-002;
t = t * i + 9.09538288991182800E-002;
t = t * i + 1.00099591546322310E-001;
t = t * i + 1.11334278141734510E-001;
t = t * i + 1.25509666613462880E-001;
t = t * i + 1.44049896457704160E-001;
t = t * i + 1.69557177031481600E-001;
t = t * i + 2.07385551032182120E-001;
t = t * i + 2.70580808427600350E-001;
t = t * i + 4.00685634386517050E-001;
t = t * i + 8.22467033424113540E-001;
t = t * i + 5.77215664901532870E-001;
t = t * i;
} else {
t = -9.04051686831357990E-008;
t = t * fa + 7.06814224969349250E-007;
t = t * fa - 3.80702154637902830E-007;
t = t * fa - 2.12880892189316100E-005;
t = t * fa + 1.29108470307156190E-004;
t = t * fa - 2.15932815215386580E-004;
t = t * fa - 1.16484324388538480E-003;
t = t * fa + 7.21883433044470670E-003;
t = t * fa - 9.62194579514229560E-003;
t = t * fa - 4.21977386992884450E-002;
t = t * fa + 1.66538611813682460E-001;
t = t * fa - 4.20026350606819980E-002;
t = t * fa - 6.55878071519427450E-001;
t = t * fa + 5.77215664901523870E-001;
t = t * fa;
t = t * fa + fa;
t = -log (t);
}
if (a >= 0.0) return t;
if (fa < 1e-19) return -log(fa);
i = floor(fa);
if (fa == i) return 1.0 / (fa - i);
i = rint (2.0 * fa);
quot = (long long int)i;
i = fa - 0.5 * i;
i = i * 3.1415926535897931e+0;
if (quot & 1) {
i = cos(i);
} else {
i = sin(i);
}
i = fabs(i);
t = log(3.1415926535897931e+0 / (i * fa)) - t;
return t;
}
static unsigned long long int __internal_host_nan_kernel(const char *s)
{
unsigned long long i = 0;
int c;
int ovfl = 0;
int invld = 0;
if (s && (*s == '0')) {
s++;
if ((*s == 'x') || (*s == 'X')) {
s++;
while (*s == '0') s++;
while (*s) {
if (i > 0x0fffffffffffffffULL) {
ovfl = 1;
}
c = (((*s) >= 'A') && ((*s) <= 'F')) ? (*s + 'a' - 'A') : (*s);
if ((c >= 'a') && (c <= 'f')) {
c = c - 'a' + 10;
i = i * 16 + c;
} else if ((c >= '0') && (c <= '9')) {
c = c - '0';
i = i * 16 + c;
} else {
invld = 1;
}
s++;
}
} else {
while (*s == '0') s++;
while (*s) {
if (i > 0x1fffffffffffffffULL) {
ovfl = 1;
}
c = *s;
if ((c >= '0') && (c <= '7')) {
c = c - '0';
i = i * 8 + c;
} else {
invld = 1;
}
s++;
}
}
} else if (s) {
while (*s) {
c = *s;
if ((i > 1844674407370955161ULL) ||
((i == 1844674407370955161ULL) && (c > '5'))) {
ovfl = 1;
}
if ((c >= '0') && (c <= '9')) {
c = c - '0';
i = i * 10 + c;
} else {
invld = 1;
}
s++;
}
}
if (ovfl) {
i = ~0ULL;
}
if (invld) {
i = 0ULL;
}
i = (i & 0x000fffffffffffffULL) | 0x7ff8000000000000ULL;
return i;
}
static double nan(const char *tagp)
{
volatile union {
unsigned long long l;
double d;
} cvt;
cvt.l = __internal_host_nan_kernel(tagp);
return cvt.d;
}
static double __host_tgamma_kernel(double a)
{
double t;
t = - 4.4268934071252475E-010;
t = t * a - 2.0266591846658954E-007;
t = t * a + 1.1381211721119527E-006;
t = t * a - 1.2507734816630748E-006;
t = t * a - 2.0136501740408771E-005;
t = t * a + 1.2805012607354486E-004;
t = t * a - 2.1524140811527418E-004;
t = t * a - 1.1651675459704604E-003;
t = t * a + 7.2189432248466381E-003;
t = t * a - 9.6219715326862632E-003;
t = t * a - 4.2197734554722394E-002;
t = t * a + 1.6653861138250356E-001;
t = t * a - 4.2002635034105444E-002;
t = t * a - 6.5587807152025712E-001;
t = t * a + 5.7721566490153287E-001;
t = t * a + 1.0000000000000000E+000;
return t;
}
static double __host_stirling_poly(double a)
{
double x = 1.0 / a;
double z = 0.0;
z = + 8.3949872067208726e-004;
z = z * x - 5.1717909082605919e-005;
z = z * x - 5.9216643735369393e-004;
z = z * x + 6.9728137583658571e-005;
z = z * x + 7.8403922172006662e-004;
z = z * x - 2.2947209362139917e-004;
z = z * x - 2.6813271604938273e-003;
z = z * x + 3.4722222222222220e-003;
z = z * x + 8.3333333333333329e-002;
z = z * x + 1.0000000000000000e+000;
return z;
}
static double __host_tgamma_stirling(double a)
{
double z;
double x;
z = __host_stirling_poly (a);
if (a < 142.0) {
x = pow (a, a - 0.5);
a = x * exp (-a);
a = a * 2.5066282746310007e+0;
return a * z;
} else if (a < 172.0) {
x = pow (a, 0.5 * a - 0.25);
a = x * exp (-a);
a = a * 2.5066282746310007e+0;
a = a * z;
return a * x;
} else {
return exp(1000.0);
}
}
static double tgamma(double a)
{
double s, xx, x = a;
if (__isnan(a)) {
return a + a;
}
if (fabs(x) < 20.0) {
if (x >= 0.0) {
s = 1.0;
xx = x;
while (xx > 1.5) {
xx = xx - 1.0;
s = s * xx;
}
if (x >= 0.5) {
xx = xx - 1.0;
}
xx = __host_tgamma_kernel (xx);
if (x < 0.5) {
xx = xx * x;
}
s = s / xx;
} else {
xx = x;
s = xx;
if (x == floor(x)) {
return 0.0 / (x - floor(x));
}
while (xx < -0.5) {
xx = xx + 1.0;
s = s * xx;
}
xx = __host_tgamma_kernel (xx);
s = s * xx;
s = 1.0 / s;
}
return s;
} else {
if (x >= 0.0) {
return __host_tgamma_stirling (x);
} else {
double t;
int quot;
if (x == floor(x)) {
return 0.0 / (x - floor(x));
}
if (x < -185.0) {
int negative;
x = floor(x);
negative = ((x - (2.0 * floor(0.5 * x))) == 1.0);
return negative ? (-1.0 / 1e308 / 1e308) : 0.0;
}
xx = rint (2.0 * x);
quot = (int)xx;
xx = -0.5 * xx + x;
xx = xx * 3.1415926535897931e+0;
if (quot & 1) {
xx = cos (xx);
} else {
xx = sin (xx);
}
if (quot & 2) {
xx = -xx;
}
x = fabs (x);
s = exp (-x);
t = x - 0.5;
if (x > 140.0) t = 0.5 * t;
t = pow (x, t);
if (x > 140.0) s = s * t;
s = s * __host_stirling_poly (x);
s = s * x;
s = s * xx;
s = 1.0 / s;
s = s * 1.2533141373155003e+0;
s = s / t;
return s;
}
}
}
static int __signbitf(float a)
{
return __signbit((double)a);
}
static int __finitef(float a)
{
return __finite((double)a);
}
static int __isinff(float a)
{
return __isinf((double)a);
}
static int __isnanf(float a)
{
return __isnan((double)a);
}
static float fmaxf(float a, float b)
{
return (float)fmax((double)a, (double)b);
}
static float fminf(float a, float b)
{
return (float)fmin((double)a, (double)b);
}
static float roundf(float a)
{
return (float)round((double)a);
}
static long int lroundf(float a)
{
return lround((double)a);
}
static long long int llroundf(float a)
{
return llround((double)a);
}
static float truncf(float a)
{
return (float)trunc((double)a);
}
static float rintf(float a)
{
return (float)rint((double)a);
}
static float nearbyintf(float a)
{
return (float)nearbyint((double)a);
}
static long int lrintf(float a)
{
return lrint((double)a);
}
static long long int llrintf(float a)
{
return llrint((double)a);
}
static float logbf(float a)
{
return (float)logb((double)a);
}
static float scalblnf(float a, long int b)
{
return (float)scalbln((double)a, b);
}
static float log2f(float a)
{
return (float)log2((double)a);
}
static float exp2f(float a)
{
return (float)exp2((double)a);
}
static float acoshf(float a)
{
return (float)acosh((double)a);
}
static float asinhf(float a)
{
return (float)asinh((double)a);
}
static float atanhf(float a)
{
return (float)atanh((double)a);
}
static float cbrtf(float a)
{
return (float)cbrt((double)a);
}
static float expm1f(float a)
{
return (float)expm1((double)a);
}
static float fdimf(float a, float b)
{
return (float)fdim((double)a, (double)b);
}
static float hypotf(float a, float b)
{
return (float)hypot((double)a, (double)b);
}
static float log1pf(float a)
{
return (float)log1p((double)a);
}
static float scalbnf(float a, int b)
{
return (float)scalbn((double)a, b);
}
static float fmaf(float a, float b, float c)
{
return (float)fma((double)a, (double)b, (double)c);
}
static int ilogbf(float a)
{
return ilogb((double)a);
}
static float erff(float a)
{
return (float)erf((double)a);
}
static float erfcf(float a)
{
return (float)erfc((double)a);
}
static float lgammaf(float a)
{
return (float)lgamma((double)a);
}
static float tgammaf(float a)
{
return (float)tgamma((double)a);
}
static float remquof(float a, float b, int *quo)
{
return (float)remquo((double)a, (double)b, quo);
}
static float remainderf(float a, float b)
{
return (float)remainder((double)a, (double)b);
}
static float copysignf(float a, float b)
{
volatile union {
float f;
unsigned int i;
} aa, bb;
aa.f = a;
bb.f = b;
aa.i = (aa.i & ~0x80000000) | (bb.i & 0x80000000);
return aa.f;
}
static float nextafterf(float a, float b)
{
volatile union {
float f;
unsigned int i;
} cvt;
unsigned int ia;
unsigned int ib;
cvt.f = a;
ia = cvt.i;
cvt.f = b;
ib = cvt.i;
if (__isnanf(a) || __isnanf(b)) return a + b;
if (((ia | ib) << 1) == 0) return b;
if (a == 0.0f) {
return copysignf(1.401298464e-045f, b);
}
if ((a < b) && (a < 0.0f)) ia--;
if ((a < b) && (a > 0.0f)) ia++;
if ((a > b) && (a < 0.0f)) ia++;
if ((a > b) && (a > 0.0f)) ia--;
cvt.i = ia;
return cvt.f;
}
static float nanf(const char *tagp)
{
volatile union {
float f;
unsigned int i;
} cvt;
cvt.i = (unsigned int)__internal_host_nan_kernel(tagp);
cvt.i = (cvt.i & 0x007fffff) | 0x7fc00000;
return cvt.f;
}
#line 4672 "c:\\cuda\\include\\math_functions.h"
static double rsqrt(double a)
{
return 1.0 / sqrt(a);
}
static double rcbrt(double a)
{
double s, t;
if (__isnan(a)) {
return a + a;
}
if (a == 0.0 || __isinf(a)) {
return 1.0 / a;
}
s = fabs(a);
t = exp2(-3.3333333333333333e-1 * log2(s));
t = ((t*t) * (-s*t) + 1.0) * (3.3333333333333333e-1*t) + t;
#line 4700 "c:\\cuda\\include\\math_functions.h"
if (__signbit(a))
#line 4702 "c:\\cuda\\include\\math_functions.h"
{
t = -t;
}
return t;
}
static double sinpi(double a)
{
int n;
if (__isnan(a)) {
return a + a;
}
if (a == 0.0 || __isinf(a)) {
return sin (a);
}
if (a == floor(a)) {
return ((a / 1.0e308) / 1.0e308) / 1.0e308;
}
a = remquo (a, 0.5, &n);
a = a * 3.1415926535897931e+0;
if (n & 1) {
a = cos (a);
} else {
a = sin (a);
}
if (n & 2) {
a = -a;
}
return a;
}
static double erfinv(double a)
{
double p, q, t, fa;
volatile union {
double d;
unsigned long long int l;
} cvt;
fa = fabs(a);
if (fa >= 1.0) {
cvt.l = 0xfff8000000000000ull;
t = cvt.d;
if (fa == 1.0) {
t = a * exp(1000.0);
}
} else if (fa >= 0.9375) {
t = log1p(-fa);
t = 1.0 / sqrt(-t);
p = 2.7834010353747001060e-3;
p = p * t + 8.6030097526280260580e-1;
p = p * t + 2.1371214997265515515e+0;
p = p * t + 3.1598519601132090206e+0;
p = p * t + 3.5780402569085996758e+0;
p = p * t + 1.5335297523989890804e+0;
p = p * t + 3.4839207139657522572e-1;
p = p * t + 5.3644861147153648366e-2;
p = p * t + 4.3836709877126095665e-3;
p = p * t + 1.3858518113496718808e-4;
p = p * t + 1.1738352509991666680e-6;
q = t + 2.2859981272422905412e+0;
q = q * t + 4.3859045256449554654e+0;
q = q * t + 4.6632960348736635331e+0;
q = q * t + 3.9846608184671757296e+0;
q = q * t + 1.6068377709719017609e+0;
q = q * t + 3.5609087305900265560e-1;
q = q * t + 5.3963550303200816744e-2;
q = q * t + 4.3873424022706935023e-3;
q = q * t + 1.3858762165532246059e-4;
q = q * t + 1.1738313872397777529e-6;
t = p / (q * t);
if (a < 0.0) t = -t;
} else if (fa >= 0.75) {
t = a * a - .87890625;
p = .21489185007307062000e+0;
p = p * t - .64200071507209448655e+1;
p = p * t + .29631331505876308123e+2;
p = p * t - .47644367129787181803e+2;
p = p * t + .34810057749357500873e+2;
p = p * t - .12954198980646771502e+2;
p = p * t + .25349389220714893917e+1;
p = p * t - .24758242362823355486e+0;
p = p * t + .94897362808681080020e-2;
q = t - .12831383833953226499e+2;
q = q * t + .41409991778428888716e+2;
q = q * t - .53715373448862143349e+2;
q = q * t + .33880176779595142685e+2;
q = q * t - .11315360624238054876e+2;
q = q * t + .20369295047216351160e+1;
q = q * t - .18611650627372178511e+0;
q = q * t + .67544512778850945940e-2;
p = p / q;
t = a * p;
} else {
t = a * a - .5625;
p = - .23886240104308755900e+2;
p = p * t + .45560204272689128170e+3;
p = p * t - .22977467176607144887e+4;
p = p * t + .46631433533434331287e+4;
p = p * t - .43799652308386926161e+4;
p = p * t + .19007153590528134753e+4;
p = p * t - .30786872642313695280e+3;
q = t - .83288327901936570000e+2;
q = q * t + .92741319160935318800e+3;
q = q * t - .35088976383877264098e+4;
q = q * t + .59039348134843665626e+4;
q = q * t - .48481635430048872102e+4;
q = q * t + .18997769186453057810e+4;
q = q * t - .28386514725366621129e+3;
p = p / q;
t = a * p;
}
return t;
}
static double erfcinv(double a)
{
double t;
volatile union {
double d;
unsigned long long int l;
} cvt;
if (__isnan(a)) {
return a + a;
}
if (a <= 0.0) {
cvt.l = 0xfff8000000000000ull;
t = cvt.d;
if (a == 0.0) {
t = (1.0 - a) * exp(1000.0);
}
}
else if (a >= 0.0625) {
t = erfinv (1.0 - a);
}
else if (a >= 1e-100) {
double p, q;
t = log(a);
t = 1.0 / sqrt(-t);
p = 2.7834010353747001060e-3;
p = p * t + 8.6030097526280260580e-1;
p = p * t + 2.1371214997265515515e+0;
p = p * t + 3.1598519601132090206e+0;
p = p * t + 3.5780402569085996758e+0;
p = p * t + 1.5335297523989890804e+0;
p = p * t + 3.4839207139657522572e-1;
p = p * t + 5.3644861147153648366e-2;
p = p * t + 4.3836709877126095665e-3;
p = p * t + 1.3858518113496718808e-4;
p = p * t + 1.1738352509991666680e-6;
q = t + 2.2859981272422905412e+0;
q = q * t + 4.3859045256449554654e+0;
q = q * t + 4.6632960348736635331e+0;
q = q * t + 3.9846608184671757296e+0;
q = q * t + 1.6068377709719017609e+0;
q = q * t + 3.5609087305900265560e-1;
q = q * t + 5.3963550303200816744e-2;
q = q * t + 4.3873424022706935023e-3;
q = q * t + 1.3858762165532246059e-4;
q = q * t + 1.1738313872397777529e-6;
t = p / (q * t);
}
else {
double p, q;
t = log(a);
t = 1.0 / sqrt(-t);
p = 6.9952990607058154858e-1;
p = p * t + 1.9507620287580568829e+0;
p = p * t + 8.2810030904462690216e-1;
p = p * t + 1.1279046353630280005e-1;
p = p * t + 6.0537914739162189689e-3;
p = p * t + 1.3714329569665128933e-4;
p = p * t + 1.2964481560643197452e-6;
p = p * t + 4.6156006321345332510e-9;
p = p * t + 4.5344689563209398450e-12;
q = t + 1.5771922386662040546e+0;
q = q * t + 2.1238242087454993542e+0;
q = q * t + 8.4001814918178042919e-1;
q = q * t + 1.1311889334355782065e-1;
q = q * t + 6.0574830550097140404e-3;
q = q * t + 1.3715891988350205065e-4;
q = q * t + 1.2964671850944981713e-6;
q = q * t + 4.6156017600933592558e-9;
q = q * t + 4.5344687377088206783e-12;
t = p / (q * t);
}
return t;
}
static float rsqrtf(float a)
{
return (float)rsqrt((double)a);
}
static float rcbrtf(float a)
{
return (float)rcbrt((double)a);
}
static float sinpif(float a)
{
return (float)sinpi((double)a);
}
static float erfinvf(float a)
{
return (float)erfinv((double)a);
}
static float erfcinvf(float a)
{
return (float)erfcinv((double)a);
}
static int min(int a, int b)
{
return a < b ? a : b;
}
static unsigned int umin(unsigned int a, unsigned int b)
{
return a < b ? a : b;
}
static long long int llmin(long long int a, long long int b)
{
return a < b ? a : b;
}
static unsigned long long int ullmin(unsigned long long int a, unsigned long long int b)
{
return a < b ? a : b;
}
static int max(int a, int b)
{
return a > b ? a : b;
}
static unsigned int umax(unsigned int a, unsigned int b)
{
return a > b ? a : b;
}
static long long int llmax(long long int a, long long int b)
{
return a > b ? a : b;
}
static unsigned long long int ullmax(unsigned long long int a, unsigned long long int b)
{
return a > b ? a : b;
}
#line 4985 "c:\\cuda\\include\\math_functions.h"
#line 4987 "c:\\cuda\\include\\math_functions.h"
#line 4993 "c:\\cuda\\include\\math_functions.h"
#line 1 "c:\\cuda\\include\\math_functions_dbl_ptx1.h"
#line 401 "c:\\cuda\\include\\math_functions_dbl_ptx1.h"
#line 403 "c:\\cuda\\include\\math_functions_dbl_ptx1.h"
#line 4997 "c:\\cuda\\include\\math_functions.h"
#line 4999 "c:\\cuda\\include\\math_functions.h"
#line 5005 "c:\\cuda\\include\\math_functions.h"
#line 5007 "c:\\cuda\\include\\math_functions.h"
#line 88 "C:\\CUDA\\include\\common_functions.h"
#line 90 "C:\\CUDA\\include\\common_functions.h"
#line 166 "C:\\CUDA\\include\\crt/host_runtime.h"
#pragma warning(disable: 4099)
#line 176 "C:\\CUDA\\include\\crt/host_runtime.h"
#line 178 "C:\\CUDA\\include\\crt/host_runtime.h"
#line 180 "C:\\CUDA\\include\\crt/host_runtime.h"
#line 3 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.cudafe1.stub.c"
struct __T20 {void *__par0;void *__par1;int __dummy_field;};
struct __T21 {void *__par0;void *__par1;void *__par2;int __dummy_field;};
struct __T22 {void *__par0;void *__par1;void *__par2;int __dummy_field;};
struct __T23 {void *__par0;void *__par1;void *__par2;int __dummy_field;};
extern void __device_stub__Z5fillUPvS_(void *, void *);
extern void __device_stub__Z6calc_HPvS_S_(void *, void *, void *);
extern void __device_stub__Z6calc_EPvS_S_(void *, void *, void *);
extern void __device_stub__Z11calc_full_EPvS_S_(void *, void *, void *);
static void __sti____cudaRegisterAll_13_naive_cpp1_ii_51e07f2f(void);
#pragma section(".CRT$XCU",read)
__declspec(allocate(".CRT$XCU"))static void (*__dummy_static_init__sti____cudaRegisterAll_13_naive_cpp1_ii_51e07f2f[])(void) = {__sti____cudaRegisterAll_13_naive_cpp1_ii_51e07f2f};
void __device_stub__Z5fillUPvS_(void *__par0, void *__par1){ struct __T20 *__T211;
*(void**)(void*)&__T211 = (void*)0;if (cudaSetupArgument((void*)(char*)&__par0, sizeof(__par0), (size_t)&__T211->__par0) != cudaSuccess) return;if (cudaSetupArgument((void*)(char*)&__par1, sizeof(__par1), (size_t)&__T211->__par1) != cudaSuccess) return;{ volatile static char *__f; __f = ((char *)((void ( *)(void *, void *))fillU)); (void)cudaLaunch(((char *)((void ( *)(void *, void *))fillU))); };}
void fillU( void *__cuda_0,void *__cuda_1)
#line 11 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
{__device_stub__Z5fillUPvS_( __cuda_0,__cuda_1);
#line 47 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
}
#line 1 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.cudafe1.stub.c"
void __device_stub__Z6calc_HPvS_S_( void *__par0, void *__par1, void *__par2) { struct __T21 *__T212;
*(void**)(void*)&__T212 = (void*)0; if (cudaSetupArgument((void*)(char*)&__par0, sizeof(__par0), (size_t)&__T212->__par0) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par1, sizeof(__par1), (size_t)&__T212->__par1) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par2, sizeof(__par2), (size_t)&__T212->__par2) != cudaSuccess) return; { volatile static char *__f; __f = ((char *)((void ( *)(void *, void *, void *))calc_H)); (void)cudaLaunch(((char *)((void ( *)(void *, void *, void *))calc_H))); }; }
void calc_H( void *__cuda_0,void *__cuda_1,void *__cuda_2)
#line 52 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
{__device_stub__Z6calc_HPvS_S_( __cuda_0,__cuda_1,__cuda_2);
#line 72 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
}
#line 1 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.cudafe1.stub.c"
void __device_stub__Z6calc_EPvS_S_( void *__par0, void *__par1, void *__par2) { struct __T22 *__T213;
*(void**)(void*)&__T213 = (void*)0; if (cudaSetupArgument((void*)(char*)&__par0, sizeof(__par0), (size_t)&__T213->__par0) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par1, sizeof(__par1), (size_t)&__T213->__par1) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par2, sizeof(__par2), (size_t)&__T213->__par2) != cudaSuccess) return; { volatile static char *__f; __f = ((char *)((void ( *)(void *, void *, void *))calc_E)); (void)cudaLaunch(((char *)((void ( *)(void *, void *, void *))calc_E))); }; }
void calc_E( void *__cuda_0,void *__cuda_1,void *__cuda_2)
#line 75 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
{__device_stub__Z6calc_EPvS_S_( __cuda_0,__cuda_1,__cuda_2);
#line 100 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
}
#line 1 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.cudafe1.stub.c"
void __device_stub__Z11calc_full_EPvS_S_( void *__par0, void *__par1, void *__par2) { struct __T23 *__T214;
*(void**)(void*)&__T214 = (void*)0; if (cudaSetupArgument((void*)(char*)&__par0, sizeof(__par0), (size_t)&__T214->__par0) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par1, sizeof(__par1), (size_t)&__T214->__par1) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par2, sizeof(__par2), (size_t)&__T214->__par2) != cudaSuccess) return; { volatile static char *__f; __f = ((char *)((void ( *)(void *, void *, void *))calc_full_E)); (void)cudaLaunch(((char *)((void ( *)(void *, void *, void *))calc_full_E))); }; }
void calc_full_E( void *__cuda_0,void *__cuda_1,void *__cuda_2)
#line 104 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
{__device_stub__Z11calc_full_EPvS_S_( __cuda_0,__cuda_1,__cuda_2);
#line 147 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\kernels.cu"
}
#line 1 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.cudafe1.stub.c"
static void __sti____cudaRegisterAll_13_naive_cpp1_ii_51e07f2f(void) { __cudaFatCubinHandle = __cudaRegisterFatBinary((void*)&__fatDeviceText); atexit(__cudaUnregisterBinaryUtil); __cudaRegisterFunction(__cudaFatCubinHandle, (const char*)((void ( *)(void *, void *, void *))calc_full_E), (char*)"_Z11calc_full_EPvS_S_", "_Z11calc_full_EPvS_S_", -1, (uint3*)0, (uint3*)0, (dim3*)0, (dim3*)0, (int*)0); __cudaRegisterFunction(__cudaFatCubinHandle, (const char*)((void ( *)(void *, void *, void *))calc_E), (char*)"_Z6calc_EPvS_S_", "_Z6calc_EPvS_S_", -1, (uint3*)0, (uint3*)0, (dim3*)0, (dim3*)0, (int*)0); __cudaRegisterFunction(__cudaFatCubinHandle, (const char*)((void ( *)(void *, void *, void *))calc_H), (char*)"_Z6calc_HPvS_S_", "_Z6calc_HPvS_S_", -1, (uint3*)0, (uint3*)0, (dim3*)0, (dim3*)0, (int*)0); __cudaRegisterFunction(__cudaFatCubinHandle, (const char*)((void ( *)(void *, void *))fillU), (char*)"_Z5fillUPvS_", "_Z5fillUPvS_", -1, (uint3*)0, (uint3*)0, (dim3*)0, (dim3*)0, (int*)0); __cudaRegisterVar(__cudaFatCubinHandle, (char*)&globalPrintfBuffer, (char*)"globalPrintfBuffer", "globalPrintfBuffer", 0, 8, 1, 0); __cudaRegisterVar(__cudaFatCubinHandle, (char*)&printfBufferLength, (char*)"printfBufferLength", "printfBufferLength", 0, 4, 1, 0); __cudaRegisterVar(__cudaFatCubinHandle, (char*)&restrictRules, (char*)"restrictRules", "restrictRules", 0, 8, 0, 0); __cudaRegisterVar(__cudaFatCubinHandle, (char*)&printfBufferPtr, (char*)"printfBufferPtr", "printfBufferPtr", 0, 8, 0, 0); }
#line 2 "c:\\users\\tio\\documents\\visual studio 2008\\projects\\neo\\neo\\naive.cudafe1.stub.c"
| [
"[email protected]"
] | [
[
[
1,
25835
]
]
] |
c96ff362140a1a3246f3b4ba6cbe3f4886856117 | c95a83e1a741b8c0eb810dd018d91060e5872dd8 | /Game/ObjectDLL/ObjectShared/NoPlayerTrigger.cpp | dc67d87ab0d7a1d7f5cac1a67297b92774e637be | [] | no_license | rickyharis39/nolf2 | ba0b56e2abb076e60d97fc7a2a8ee7be4394266c | 0da0603dc961e73ac734ff365bfbfb8abb9b9b04 | refs/heads/master | 2021-01-01T17:21:00.678517 | 2011-07-23T12:11:19 | 2011-07-23T12:11:19 | 38,495,312 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,998 | cpp | // ----------------------------------------------------------------------- //
//
// MODULE : NoPlayerTrigger.cpp
//
// PURPOSE : NoPlayerTrigger - Implementation
//
// CREATED : 4/5/02
//
// (c) 2002 Monolith Productions, Inc. All Rights Reserved
//
// ----------------------------------------------------------------------- //
//
// Includes...
//
#include "stdafx.h"
#include "PlayerObj.h"
#include "NoPlayerTrigger.h"
LINKFROM_MODULE( NoPlayerTrigger );
BEGIN_CLASS( NoPlayerTrigger )
// Overrides
ADD_BOOLPROP_FLAG(PlayerTriggerable, 0, PF_HIDDEN)
ADD_BOOLPROP_FLAG(AITriggerable, 0, PF_HIDDEN)
ADD_STRINGPROP_FLAG(AITriggerName, "", PF_HIDDEN)
ADD_BOOLPROP_FLAG(BodyTriggerable, 0, PF_HIDDEN)
ADD_STRINGPROP_FLAG(BodyTriggerName, "", PF_HIDDEN)
END_CLASS_DEFAULT( NoPlayerTrigger, Trigger, NULL, NULL )
CMDMGR_BEGIN_REGISTER_CLASS( NoPlayerTrigger )
CMDMGR_END_REGISTER_CLASS( NoPlayerTrigger, Trigger )
#define UPDATE_DELTA 0.1f
// ----------------------------------------------------------------------- //
//
// ROUTINE: NoPlayerTrigger::NoPlayerTrigger()
//
// PURPOSE: Initialize object
//
// ----------------------------------------------------------------------- //
NoPlayerTrigger::NoPlayerTrigger() : Trigger()
{
}
// ----------------------------------------------------------------------- //
//
// ROUTINE: NoPlayerTrigger::~NoPlayerTrigger()
//
// PURPOSE: Deallocate object
//
// ----------------------------------------------------------------------- //
NoPlayerTrigger::~NoPlayerTrigger()
{
}
// ----------------------------------------------------------------------- //
//
// ROUTINE: NoPlayerTrigger::~NoPlayerTrigger()
//
// PURPOSE: Handle engine messages
//
// ----------------------------------------------------------------------- //
uint32 NoPlayerTrigger::EngineMessageFn( uint32 messageID, void *pData, LTFLOAT fData )
{
switch(messageID)
{
case MID_UPDATE:
{
uint32 dwRet = Trigger::EngineMessageFn(messageID, pData, fData);
Update();
return dwRet;
}
break;
default : break;
}
return Trigger::EngineMessageFn(messageID, pData, fData);
}
// ----------------------------------------------------------------------- //
//
// ROUTINE: Trigger::Update
//
// PURPOSE: Handle Update
//
// ----------------------------------------------------------------------- //
LTBOOL NoPlayerTrigger::Update()
{
SetNextUpdate( UPDATE_DELTA );
// Find all the objects within the trigger...
LTVector vDims;
g_pPhysicsLT->GetObjectDims( m_hObject, &vDims );
LTVector vPos;
g_pLTServer->GetObjectPos( m_hObject, &vPos );
LTVector vMin = vPos - vDims;
LTVector vMax = vPos + vDims;
ObjectList *pObjList = g_pLTServer->GetBoxIntersecters( &vMin, &vMax );
if( !pObjList )
return LTFALSE;
// Count the number of players in the trigger and activate only if
// NO players in the game are within the trigger...
HOBJECT hObj;
uint32 nPlayersInGame = CPlayerObj::GetNumberPlayersWithClients( );
bool bPlayersInTrigger = false;
ObjectLink *pLink = pObjList->m_pFirstLink;
while( pLink )
{
hObj = pLink->m_hObject;
if( hObj && IsPlayer( hObj ))
{
bPlayersInTrigger = true;
break;
}
pLink = pLink->m_pNext;
}
g_pLTServer->RelinquishList( pObjList );
if( bPlayersInTrigger )
return LTFALSE;
SetNextUpdate( UPDATE_NEVER );
// Ok! All the players are acounted for.
// Let the base Trigger object activate.
return Trigger::Activate();
}
// ----------------------------------------------------------------------- //
//
// ROUTINE: NoPlayerTrigger::~Activate()
//
// PURPOSE: Activate the trigger if appropriate...
//
// ----------------------------------------------------------------------- //
LTBOOL NoPlayerTrigger::Activate()
{
// Start the update
SetNextUpdate( UPDATE_DELTA );
return LTTRUE;
} | [
"[email protected]"
] | [
[
[
1,
172
]
]
] |
75c78eca4496b4685a2ccdce318fb8a9d35c0d5e | e02fa80eef98834bf8a042a09d7cb7fe6bf768ba | /TestApp/InputManager.h | dbc70a8ae0921ee54e4458761fd2d487337645a5 | [] | no_license | MyGUI/mygui-historical | fcd3edede9f6cb694c544b402149abb68c538673 | 4886073fd4813de80c22eded0b2033a5ba7f425f | refs/heads/master | 2021-01-23T16:40:19.477150 | 2008-03-06T22:19:12 | 2008-03-06T22:19:12 | 22,805,225 | 2 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,701 | h | #ifndef __INPUT_MANAGER_H__
#define __INPUT_MANAGER_H__
#include <Ogre.h>
#include <OIS/OIS.h>
#include <windows.h>
namespace input
{
class InputManager : public OIS::MouseListener
{
public:
InputManager();
void createInput(Ogre::RenderWindow* _window, bool _mouseExclusive = true, OIS::MouseListener * _mouseListener = 0, OIS::KeyListener * _keyListener = 0);
void destroyInput();
void setMouseEventCallback(OIS::MouseListener * _listener);
void setKeyEventCallback(OIS::KeyListener * _listener);
void windowResized(size_t _width, size_t _height);
void capture();
void setMouseExclusive(bool _exclusive);
inline bool isMouseExclusive() { return 0 != mMouse; }
private:
bool mouseMoved( const OIS::MouseEvent &arg );
bool mousePressed( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
bool mouseReleased( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
// наша оконная процедура
static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
private:
// главное окно приложения
Ogre::RenderWindow* mWindow;
// данные системы ввода
OIS::InputManager* mInputManager;
OIS::Keyboard* mKeyboard;
OIS::Mouse* mMouse;
// тот кому мы переодрессовываем
OIS::MouseListener * mMouseListener;
// дискриптор нашего главного окна
HWND mHwnd;
// работа со статическим калбеком
static InputManager * msInputManager;
static LRESULT msOldWindowProc;
};
} // namespace input
#endif // __INPUT_MANAGER_H__ | [
"[email protected]"
] | [
[
[
1,
61
]
]
] |
fd85489f93416a2dfe4d52eaadb8aca24de46515 | 4711cae65505af5a33baf4f4652e757bfbf54b78 | /RSEngine/RSEngine/main.cpp | 431169bee5bf48a91878636ace8bbf2265c1ca8c | [] | no_license | ashishlijhara/RSEngine | 19ad68844df952abe8682777d3281dbf46ff913c | cac48b492597d119fc9c7364088c1930314a923c | refs/heads/master | 2016-09-10T10:12:49.781187 | 2011-05-31T12:34:49 | 2011-05-31T12:34:49 | 1,822,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 888 | cpp | #include <iostream>
#include <conio.h>
#include "RSDefs.h"
#include "RSEngineApp.h"
#include "boost\shared_ptr.hpp"
using namespace RSE;
int main(int argv, char * argc[]){
FResult result;
memset(&result,0,sizeof(result));
boost::shared_ptr<RSEngineApp> engineApp(new RSEngineApp());
result = engineApp.get()->VInit();
if(result.m_Result == ORESULT_ERROR){
std::cout<<result.m_pcDescription;
return -1;
}
while(1){
result = engineApp.get()->VUpdate(5);
if(result.m_Result == ORESULT_ERROR){
std::cout<<result.m_pcDescription;
return -1;
}
}
result = engineApp.get()->VEnd();
if(result.m_Result == ORESULT_ERROR){
std::cout<<result.m_pcDescription;
return -1;
}
result = engineApp.get()->VCleanup();
if(result.m_Result == ORESULT_ERROR){
std::cout<<result.m_pcDescription;
return -1;
}
return 0;
} | [
"[email protected]"
] | [
[
[
1,
44
]
]
] |
04d2fcd8e1d35dd6b2d219f3b21d664a40c609f7 | f8b364974573f652d7916c3a830e1d8773751277 | /emulator/allegrex/instructions/VBFY2.h | 755deccab4945d7d7f8879711c13f0c01fd857f9 | [] | no_license | lemmore22/pspe4all | 7a234aece25340c99f49eac280780e08e4f8ef49 | 77ad0acf0fcb7eda137fdfcb1e93a36428badfd0 | refs/heads/master | 2021-01-10T08:39:45.222505 | 2009-08-02T11:58:07 | 2009-08-02T11:58:07 | 55,047,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,042 | h | template< > struct AllegrexInstructionTemplate< 0xd0430000, 0xffff0000 > : AllegrexInstructionUnknown
{
static AllegrexInstructionTemplate &self()
{
static AllegrexInstructionTemplate insn;
return insn;
}
static AllegrexInstruction *get_instance()
{
return &AllegrexInstructionTemplate::self();
}
virtual AllegrexInstruction *instruction(u32 opcode)
{
return this;
}
virtual char const *opcode_name()
{
return "VBFY2";
}
virtual void interpret(Processor &processor, u32 opcode);
virtual void disassemble(u32 address, u32 opcode, char *opcode_name, char *operands, char *comment);
protected:
AllegrexInstructionTemplate() {}
};
typedef AllegrexInstructionTemplate< 0xd0430000, 0xffff0000 >
AllegrexInstruction_VBFY2;
namespace Allegrex
{
extern AllegrexInstruction_VBFY2 &VBFY2;
}
#ifdef IMPLEMENT_INSTRUCTION
AllegrexInstruction_VBFY2 &Allegrex::VBFY2 =
AllegrexInstruction_VBFY2::self();
#endif
| [
"[email protected]"
] | [
[
[
1,
41
]
]
] |
bfd006837d104c3ad02defc6ed6b57c49c77166d | 305f56324b8c1625a5f3ba7966d1ce6c540e9d97 | /src/Urp/UrpString.h | 517427d225e89b1f0fa722421df80246bb66e2ff | [] | no_license | radtek/lister | be45f7ac67da72c1c2ac0d7cd878032c9648af7b | 71418c72b31823624f545ad86cc804c43b6e9426 | refs/heads/master | 2021-01-01T19:56:30.878680 | 2011-06-22T17:04:13 | 2011-06-22T17:04:13 | 41,946,076 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,208 | h | #ifndef _Urp_UrpString_h_
#define _Urp_UrpString_h_
#include "UrpShared.h"
class UrpString {
public:
// Crazy idea: Function name maps to the parameters, especially their order.
static String ReplaceInWhatWith(const String in, const String what, const String with, int *replacementCount = NULL);
static int CountOccurInOf(const String &in, const char of = ',');
static String Apostrophize(String in);
static void TrimOff(String &in, int cnt); // Trim x number of characters off the end
static bool IsIntegerString(String testStr);
static bool IsDecimalString(String testStr);
// Difference of opinion between me and U++ designers: If you assign a string to an int, it
// should try and convert it, and not error out inexplicably. So, I didn't change Value,
// I just added my own function. I decided I should always pass both types. Should be a
// template with specialization.
static bool FromTo(const Value &in, int &out);
// Support char *in since string constants won't convert to "&" String type.
static bool FromTo(const char *in, int &out);
// Use "&" to avoid a string copy op.
static bool FromTo(const String &in, int &out);
// This allows function calls to be completely oblivious to data types
static bool FromTo(const int in, int &out);
// This should work, right?
static bool FromTo(const byte in, int &out);
// Ok, most cases this works without an annoying warning! int is the default for flags
// that store 1 and 0, for christ's sake!
static bool FromTo(const unsigned int in, int &out);
static String GetWord(String spaceDelimStrings, int wordNo);
static String ToString(int64 in);
static String ToString(int in);
static String ToString(byte in);
};
// Tired of remembering "TrimBoth"
String Trim(const String& str);
String StripWrapper(const String& str, const String& wrapper, const String &wrapperRight = Null);
Value IfNull(Value in, Value defval);
// Xmlize returns INT_MIN when a value is not found in the xml.
// Other functions in U++ use INT_MIN as a Null representor
bool IsNull(int in);
int IfNull(int in, int defval);
int AsInt(Value in, Value defval);
int ToInt(String in, String defval = "0");
int ToInt(String in, int defval);
String ToString(int in);
// The mother of helpers, format values that can be patched into a Format
// function that generates SQL with single printf specifier "%s". Makes like easy.
String ToSQL(const Value &in, int dialect = PGSQL, bool nestedconstant = false);
// For my lazy bones, just strip the string and return the rest, please
String RestOf(const String &startwith, const String &skipthis);
String Upper(const String& s);
#endif
| [
"jeffshumphreys@97668ed5-8355-0e3d-284e-ab2976d7b0b4"
] | [
[
[
1,
56
]
]
] |
bfcb1fd4ce93c23f8b83c3956214f9150577ed71 | 197ac28d1481843225f35aff4aa85f1909ef36bf | /examples/Msp430Test/main.cpp | 50a6546994f449cc04f8349873362aab9b2618c3 | [
"BSD-3-Clause"
] | permissive | xandroalmeida/Mcucpp | 831e1088eb38dfcf65bfb6fb3205d4448666983c | 6fc5c8d5b9839ade60b3f57acc78a0ed63995fca | refs/heads/master | 2020-12-24T12:13:53.497692 | 2011-11-21T15:36:03 | 2011-11-21T15:36:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 223 | cpp |
#include <msp430.h>
#include "pinlist.h"
#include "iopins.h"
using namespace IO;
typedef PinList<P1_0, P1_1, P1_2, P1_3> Pins;
volatile uint8_t v = 100;
int main()
{
Pins::Write(v);
return 0;
}
| [
"[email protected]",
"[email protected]"
] | [
[
[
1,
1
],
[
3,
16
]
],
[
[
2,
2
]
]
] |
21557ddeddafdf6ff061524e3f83f3c001bd0b22 | 06b2d2df5f39e37b74b68a56381c7eabb8c44e3c | /MSPaint.h | c0ab3c2f1aba878f2be649e6b82195606b30597e | [] | no_license | wonjb/wprobot | e6ccf1badcd1801d9a1be4b8aba7a05b5c8f296b | 5f1a133c1681925f028514dd2d86d03947471bee | refs/heads/master | 2021-01-01T05:40:23.339929 | 2008-09-05T09:12:48 | 2008-09-05T09:12:48 | 34,102,331 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 982 | h | #pragma once
#include "Mouse.h"
#include "HandPoint.h"
// CMSPaint
class CMSPaint : public CWnd
{
DECLARE_DYNAMIC(CMSPaint)
public:
CMSPaint();
virtual ~CMSPaint();
void setPointer (int* x, int* y);
void movePointer ();
void movePointer (int x, int y);
void clickPointer();
void clickPointer(int x, int y);
void Initialize();
void InitializeRegn();
CRect getMSPaintRegn() { return m_region; }
COLOR inColorRegn(int x, int y);
private:
CMouse m_Mouse; // mouse Window
CRect m_region; // MSPaint 전체 영역
CRect m_redRegn, m_blueRegn, m_pupleRegn, m_blackRegn; // 색상 영역
COLORREF m_color; // Pen Color
CBitmap m_bufBmp; // 더블버퍼링을 위한 Bitmap
POINT m_pastPt; // 바로 전 좌표를 저장하기 위한 변수
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnPaint();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};
| [
"[email protected]@d3b47800-9755-0410-939a-5b8eb3d84ce7"
] | [
[
[
1,
47
]
]
] |
7348383951d6bb240a02bacfd4a06854d8a53e62 | 316c4fc8b4ed2f023695e3cf62d764f47c7a4749 | /src/gui/InfoWindow.cpp | da23d17de245365c69c4d480bbf24cad945bc6c7 | [] | no_license | kaushaldeo/bagh-chal | 299aef871626acff5bfb28374395cd67fbb9befc | 2f882fbe4a310bffe358b0ce77bf713b0a146b7c | refs/heads/master | 2021-01-01T19:34:41.841584 | 2011-06-30T16:45:44 | 2011-06-30T16:45:44 | 41,183,705 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 434 | cpp | /**
* InfoWindow class
* @file InfoWindow.cpp
* @brief Implementation for InfoWindow Class
* @see InfoWindow
* @author Mirko Indlekofer
*/
#include "InfoWindow.h"
InfoWindow::InfoWindow(QWidget *parent) :
QWidget(parent)
{
//set up the popup window
setupUi(this);
//close the window
connect(closeWindow, SIGNAL(clicked()), this, SLOT(close()));
}
InfoWindow::~InfoWindow() {}
| [
"[email protected]",
"[email protected]"
] | [
[
[
1,
8
],
[
10,
20
]
],
[
[
9,
9
],
[
21,
21
]
]
] |
617eecd2ae88dc58e097c156046ed53f6122bbc9 | e1cae0f66993e8d76e424c706a6f59c09bacf336 | /bsp_2_0_b/projekt/stdafx.cpp | f24bcf4da52dad5173d621393dfeabb69a5cea1f | [] | no_license | bif/SAS_3 | d0aa6e0d4f0869fea9f301ab6377ce6994d5b71a | 49161bee3596b7fe9bd8a8b528e423cead011602 | refs/heads/master | 2020-06-04T17:02:23.884788 | 2010-06-18T09:29:09 | 2010-06-18T09:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 294 | cpp | // stdafx.cpp : source file that includes just the standard includes
// projekt.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
| [
"[email protected]"
] | [
[
[
1,
8
]
]
] |
a15c72255c2cf835d11ed81ac9ebefe8c6e03356 | c7120eeec717341240624c7b8a731553494ef439 | /src/cplusplus/freezone-samp/src/player_prison.cpp | 57599d0d85f25d9684a01babfb448eb7b60fa033 | [] | no_license | neverm1ndo/gta-paradise-sa | d564c1ed661090336621af1dfd04879a9c7db62d | 730a89eaa6e8e4afc3395744227527748048c46d | refs/heads/master | 2020-04-27T22:00:22.221323 | 2010-09-04T19:02:28 | 2010-09-04T19:02:28 | 174,719,907 | 1 | 0 | null | 2019-03-09T16:44:43 | 2019-03-09T16:44:43 | null | UTF-8 | C++ | false | false | 142 | cpp | #include "config.hpp"
#include "player_prison.hpp"
player_prison::player_prison(void)
{
}
player_prison::~player_prison(void)
{
}
| [
"dimonml@19848965-7475-ded4-60a4-26152d85fbc5"
] | [
[
[
1,
10
]
]
] |
97476e15f0946bb51bacef1d144f5a6932f5bf16 | f0da2c3ab8426f8bcdd8c3625c805a25f04aa89d | /armagic/markers.cpp | 43dd0919c5decf039e356541759997bafbad4d48 | [] | no_license | sanyaade-augmented-reality/armagic | 81e557978936c396333be0261e45d869da680e6d | eb5132d280685e2f8db4ae1f3fbe624b1876bf73 | refs/heads/master | 2016-09-06T17:12:20.458558 | 2010-07-06T22:57:18 | 2010-07-06T22:57:18 | 34,191,493 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 405 | cpp | #include "markers.h"
using std::string;
using namespace markers;
const string markerInfo[] = {
"../data/markers/patt.hiro",
"../data/markers/patt.sample1",
"../data/markers/patt.sample2",
"../data/markers/patt.kanji",
"../data/markers/multi/patt.a",
"../data/markers/multi/patt.b",
"../data/markers/multi/patt.c",
"../data/markers/multi/patt.d",
"../data/markers/multi/patt.e"
}; | [
"leochatain@22892e45-cd4f-0d29-0166-6a0decb81ae3",
"pmdusso@22892e45-cd4f-0d29-0166-6a0decb81ae3"
] | [
[
[
1,
9
],
[
16,
16
]
],
[
[
10,
15
]
]
] |
1d604493a4d7017520f8eae7446586d550072854 | 6f7850c90ed97967998033df615d06eacfabd5fa | /whoisalive/window.h | 015c2cef6c2bd8d253e92ed787e04f5644159c42 | [] | no_license | vi-k/whoisalive | 1145b0af6a2a18e951533b00a2103b000abd570a | ae86c1982c1e97eeebc50ba54bf53b9b694078b6 | refs/heads/master | 2021-01-10T02:00:28.585126 | 2010-08-23T01:58:45 | 2010-08-23T01:58:45 | 44,526,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,056 | h | #ifndef WHO_WINDOW_H
#define WHO_WINDOW_H
#include "ipgui.h"
#include "widget.h"
#include "scheme.h"
#include "../common/my_thread.h"
#include "../common/my_http.h"
#include "../common/my_inet.h"
#include "../common/my_employer.h"
#include "../common/my_stopwatch.h"
#include <memory>
#include <boost/function.hpp>
#include <boost/ptr_container/ptr_list.hpp>
#define MY_WM_CHECK_STATE WM_USER
#define MY_WM_UPDATE WM_USER+1
namespace who {
namespace mousemode
{ enum t { none, capture, move, select, edit }; }
namespace selectmode
{ enum t { normal, add, remove }; }
namespace mousekeys
{ enum : int { ctrl = 1, shift = 2, lbutton = 4, rbutton = 8, mbutton = 16 }; }
class window : my::employer
{
private:
my::stopwatch anim_speed_sw_;
double anim_speed_;
server &server_;
HWND hwnd_;
bool focused_;
int w_;
int h_;
std::auto_ptr<Gdiplus::Bitmap> bitmap_;
std::auto_ptr<Gdiplus::Graphics> canvas_;
Gdiplus::Color bg_color_;
scheme *active_scheme_;
boost::ptr_list<scheme> schemes_;
mousemode::t mouse_mode_;
int mouse_start_x_;
int mouse_start_y_;
int mouse_end_x_;
int mouse_end_y_;
widget *select_parent_;
Gdiplus::RectF select_rect_;
recursive_mutex canvas_mutex_;
void paint_();
static LRESULT CALLBACK static_wndproc_(HWND hwnd, UINT uMsg,
WPARAM wParam, LPARAM lParam);
inline LRESULT wndproc_(HWND hwnd, UINT uMsg,
WPARAM wParam, LPARAM lParam);
void set_active_scheme_(who::scheme *scheme);
inline void on_mouse_event_(
const boost::function<void (window*, int keys, int x, int y)> &f,
WPARAM wparam, LPARAM lparam);
static int window::wparam_to_keys_(WPARAM wparam);
public:
/* События */
boost::function<void (window*, int delta, int keys, int x, int y)> on_mouse_wheel;
boost::function<void (window*, int keys, int x, int y)> on_mouse_move;
boost::function<void (window*, int keys, int x, int y)> on_lbutton_down;
boost::function<void (window*, int keys, int x, int y)> on_rbutton_down;
boost::function<void (window*, int keys, int x, int y)> on_mbutton_down;
boost::function<void (window*, int keys, int x, int y)> on_lbutton_up;
boost::function<void (window*, int keys, int x, int y)> on_rbutton_up;
boost::function<void (window*, int keys, int x, int y)> on_mbutton_up;
boost::function<void (window*, int keys, int x, int y)> on_lbutton_dblclk;
boost::function<void (window*, int keys, int x, int y)> on_rbutton_dblclk;
boost::function<void (window*, int keys, int x, int y)> on_mbutton_dblclk;
boost::function<void (window*, int key)> on_keydown;
boost::function<void (window*, int key)> on_keyup;
window(server &server, HWND parent);
~window();
void anim_handler();
inline HWND hwnd()
{ return hwnd_; }
inline widget* select_parent()
{ return select_parent_; }
inline Gdiplus::RectF select_rect()
{ return select_rect_; }
inline int w()
{ return w_; }
inline int h()
{ return h_; }
void animate();
void add_schemes(xml::wptree &config);
void set_link(HWND parent);
void delete_link();
void on_destroy();
void set_active_scheme(int index);
inline scheme* active_scheme()
{ return active_scheme_; }
scheme* get_scheme(int index);
inline int get_schemes_count()
{ return schemes_.size(); }
void set_size(int w, int h);
void mouse_start(mousemode::t mm, int x, int y,
selectmode::t sm = selectmode::normal);
void mouse_move_to(int x, int y);
void mouse_end(int x, int y);
void mouse_cancel();
virtual void do_check_state();
void zoom(float ds);
void set_scale(float scale)
{
if (active_scheme_)
active_scheme_->set_scale(scale);
}
void set_pos(float x, float y)
{
if (active_scheme_)
active_scheme_->set_pos(x, y);
}
inline mousemode::t mouse_mode()
{ return mouse_mode_; }
void align()
{
if (active_scheme_)
active_scheme_->align( (float)w_, (float)h_ );
}
widget* hittest(int x, int y);
void clear();
};
}
#endif
| [
"victor dunaev ([email protected])",
"[email protected]"
] | [
[
[
1,
10
],
[
12,
32
],
[
34,
55
],
[
57,
160
]
],
[
[
11,
11
],
[
33,
33
],
[
56,
56
]
]
] |
b9c1e306c6610e85d7c260887c9de694b70ce3c9 | 967868cbef4914f2bade9ef8f6c300eb5d14bc57 | /Thread/Win32Thread.hpp | 7dce4406377d222de6f8d6ebf210a2b2982d717e | [] | no_license | saminigod/baseclasses-001 | 159c80d40f69954797f1c695682074b469027ac6 | 381c27f72583e0401e59eb19260c70ee68f9a64c | refs/heads/master | 2023-04-29T13:34:02.754963 | 2009-10-29T11:22:46 | 2009-10-29T11:22:46 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,785 | hpp | /*
© Vestris Inc., Geneva, Switzerland
http://www.vestris.com, 1994-1999 All Rights Reserved
______________________________________________
written by Daniel Doubrovkine - [email protected]
*/
#ifndef BASE_WIN32_THREAD_HPP
#define BASE_WIN32_THREAD_HPP
#ifdef _WIN32
#include <platform/include.hpp>
#include <Object/Object.hpp>
#include <Thread/Thread.hpp>
#include <String/String.hpp>
#include <Mutex/Atomic.hpp>
class CThread : public CObject {
copy_property(CMutex *, ThreadStartMutex);
readonly_property(unsigned long, ThreadID);
readonly_property(HANDLE, ThreadHandle);
property(CThreadState, ThreadState);
readonly_copy_property(void *, Arguments);
readonly_property(CThreadState, InitialState);
public:
CThread(void * = NULL, CThreadState = ctsRunning);
virtual ~CThread(void);
virtual void Launch(void);
virtual void Terminate(void);
virtual void Suspend(void);
virtual void Resume(void);
inline void Sleep(const int Interval) const { base_sleep_ms(Interval); }
virtual void Execute(void *);
/* priority modifiers */
bool SetPriority(int PriorityLevel = THREAD_PRIORITY_NORMAL);
bool SetPriorityClass(unsigned long PriorityClass = NORMAL_PRIORITY_CLASS);
bool SetPriorityBoost(bool Boost);
long GetPriorityClass(void) const;
long GetPriority(void) const;
void PassiveWait(unsigned long Milliseconds = INFINITE) const;
bool SetThreadOption(const CString& Option);
static CString PriorityToString(int Priority);
static int StringToPriority(const CString& Priority);
static CAtomic m_UserTime;
static CAtomic m_KernelTime;
bool GetTimes(long& Kernel, long& User) const;
private:
void Run(void);
static unsigned long WINAPI CThreadExecute(void * ThreadPointer);
};
#endif
#endif
| [
"[email protected]"
] | [
[
[
1,
56
]
]
] |
794b2ac1a5dcf5237ac3d5e4886f61deadb85e9b | 6e563096253fe45a51956dde69e96c73c5ed3c18 | /dhnetsdk/netsdk/Utils_StrParser.cpp | aaea11576d397f60b6fd9eba7f92a701db12bdf9 | [] | no_license | 15831944/phoebemail | 0931b76a5c52324669f902176c8477e3bd69f9b1 | e10140c36153aa00d0251f94bde576c16cab61bd | refs/heads/master | 2023-03-16T00:47:40.484758 | 2010-10-11T02:31:02 | 2010-10-11T02:31:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,918 | cpp | #include "StdAfx.h"
#include "Utils_StrParser.h"
#define W_NEW(var,classname) {var = new classname;}
#define W_DELETE(p) if(NULL != (p)) {delete((p)); (p)=NULL; }
#define W_FREE(p) if(NULL != (p)) {free((p)); (p)=NULL; }
#define EMPTY_STRING ""
#ifdef _DEBUG
#define DEB(x) x
#else
#define DEB(x)
#endif
/*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*/
void CStrParse::Initialize()
{
m_iPosition = 0;
m_vItem.clear();
}
/*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*/
CStrParse::CStrParse()
{
m_bTrim = true;
m_strSpliter = ":";
Initialize();
}
/*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*/
CStrParse::CStrParse(
const std::string &strSrc,
const std::string &strSpliter)
{
m_bTrim = true;
m_strSpliter = strSpliter;
Parse(strSrc);
}
/*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*/
bool CStrParse::Parse(const std::string &strSrc)
{
Initialize();
m_strSrc = strSrc;
return doParse();
}
/*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*/
CStrParse::~CStrParse()
{
// No need, but write here
m_vItem.clear();
}
/*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*/
bool CStrParse::doParse()
{
char *buf;
char *buf_left;
char *buf_right;
if (m_strSrc.empty() || m_strSpliter.empty())
{
DEB( printf("strSrc or strSpliter empty\n"); )
return false;
}
//
// malloc is taste good in uClinux
// so do not use new / delete here
//
//buf_left = new char[m_strSrc.size()+1];
buf_left = (char *)malloc(m_strSrc.size()+1);
if (NULL == buf_left)
{
DEB( printf("alloc memory failed.\n"); )
return false;
}
//buf_right = new char[m_strSrc.size()+1];
buf_right = (char *)malloc(m_strSrc.size()+1);
if (NULL == buf_right)
{
DEB( printf("alloc memory failed.\n"); )
//delete []buf_left;
W_FREE(buf_left);
return false;
}
strcpy(buf_right, m_strSrc.c_str());
buf = buf_right;
m_vItem.clear();
while (0
== split_str(
buf,
buf_left,
buf_right,
m_strSpliter.c_str(),
0))
{
if (m_bTrim)
{
trim_blank(buf_left, 0);
}
m_vItem.push_back(buf_left);
buf = buf_right;
} // while
//
// last word is seperator, we add a item.
//
if ( m_strSrc.size() >= m_strSpliter.size()
&& 0 == _stricmp(m_strSrc.c_str()+m_strSrc.size()-m_strSpliter.size(),
m_strSpliter.c_str()) )
{
m_vItem.push_back("");
}
//delete []buf_left;
//delete []buf_right;
W_FREE(buf_left);
W_FREE(buf_right);
return true;
}
/*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*/
void CStrParse::setSpliter(const std::string &strSpliter)
{
m_strSpliter = strSpliter;
}
/*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*/
std::string CStrParse::getSpliter()
{
return m_strSpliter;
}
/*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*/
void CStrParse::setTrim(bool isTrim )
{
m_bTrim = isTrim;
}
/*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*/
std::string CStrParse::getWord(int iPos)
{
if (iPos >= 0)
{
m_iPosition = iPos+1;
}
else
{
m_iPosition++;
}
if (m_iPosition > m_vItem.size())
{
return EMPTY_STRING;
}
return m_vItem[m_iPosition-1];
}
/*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*/
long CStrParse::getValue(int iPos)
{
return atol(getWord(iPos).c_str());
}
/*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*/
int CStrParse::Size()
{
return m_vItem.size();
}
/*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*/
| [
"guoqiao@a83c37f4-16cc-5f24-7598-dca3a346d5dd"
] | [
[
[
1,
197
]
]
] |
2f46c82c7a89a185dbd87d9c23481ee6252a36c1 | df5277b77ad258cc5d3da348b5986294b055a2be | /GameEngineV0.35/Source/Resolution.cpp | e2931b6b964065f9c4326a4fd2a981aa2cc44f76 | [] | no_license | beentaken/cs260-last2 | 147eaeb1ab15d03c57ad7fdc5db2d4e0824c0c22 | 61b2f84d565cc94a0283cc14c40fb52189ec1ba5 | refs/heads/master | 2021-03-20T16:27:10.552333 | 2010-04-26T00:47:13 | 2010-04-26T00:47:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,480 | cpp | ///////////////////////////////////////////////////////////////////////////////////////
//
// Resolution.cpp
//
// Authors: Chris Peters, Benjamin Ellinger
// Copyright 2009, Digipen Institute of Technology
//
///////////////////////////////////////////////////////////////////////////////////////
#include "Precompiled.h"
#include "Resolution.h"
#include "Body.h"
#include "Physics.h"
#include <algorithm>
namespace Framework
{
BodyContact * ContactSet::GetNextContact()
{
ErrorIf(NumberOfContacts==MaxContacts,"Maximum number of contacts reached. There is too many colliding objects in the simulation.");
return &contactArray[NumberOfContacts++];
}
void ContactSet::Reset()
{
NumberOfContacts = 0;
}
float BodyContact::CalculateSeparatingVelocity()
{
Vec2 relativeVelocity = Bodies[0]->Velocity - Bodies[1]->Velocity;
//Get the separating velocity by projecting along the contact normal
SeperatingVelocity = Dot( relativeVelocity , ContactNormal );
return SeperatingVelocity;
}
void ResloveContactVelocity(BodyContact& c,float dt)
{
//Find the velocity of the two object along the contact normal
float separatingVelocity = c.CalculateSeparatingVelocity();
if(separatingVelocity > 0)
{
//The objects are no longer moving towards each other
//or the contact they are stationary
c.ContactImpulse = 0;
return;
}
//This velocity of this collision has to be resolved.
//To model inelastic collision the kinetic energy of the bodies
//needs to be reduced.
//This technique uses the combined restitution to determine what percentage
//of the energy along the collision normal is conserved
float newSepVelocity = -separatingVelocity * c.Restitution;
const bool AccelerationBuildUp = true;
//When an object is resting on the ground it is constantly falling
//due to gravity. This acceleration need be removed or objects will
//jitter on the ground.
if(AccelerationBuildUp)
{
// Check the velocity build-up due to acceleration only
Vec2 accCausedVelocity = c.Bodies[0]->Acceleration - c.Bodies[1]->Acceleration;
float accCausedSepVelocity = Dot( accCausedVelocity , c.ContactNormal ) * dt;
// If we've got a closing velocity due to acceleration build-up,
// remove it from the new separating velocity
if (accCausedSepVelocity < 0)
{
newSepVelocity += c.Restitution * accCausedSepVelocity;
// Make sure we haven't removed more than was
// there to remove.
if (newSepVelocity < 0) newSepVelocity = 0;
}
}
//What is the total change in velocity for the contact?
float deltaVelocity = newSepVelocity - separatingVelocity;
//The delta velocity is applied to each object proportional to inverse
//mass. So the more massive an object is the less of the change
//in velocity it will receive.
float totalInverseMass = c.Bodies[0]->InvMass + c.Bodies[1]->InvMass;
// Calculate the impulse to apply
float impulse = deltaVelocity / totalInverseMass;
c.ContactImpulse = impulse;
// Find the amount of impulse per unit of inverse mass
Vec2 impulsePerIMass = c.ContactNormal * impulse;
// Apply impulses: they are applied in the direction of the contact,
// and in proportion to inverse mass.
c.Bodies[0]->Velocity = c.Bodies[0]->Velocity + impulsePerIMass * c.Bodies[0]->InvMass;
// The other body goes in the opposite direction
c.Bodies[1]->Velocity = c.Bodies[1]->Velocity + impulsePerIMass * -c.Bodies[1]->InvMass;
}
void ResolvePenetration(BodyContact& c,float dt)
{
// The movement of each object is based on their inverse mass, so
// total that.
float totalInverseMass = c.Bodies[0]->InvMass + c.Bodies[1]->InvMass;
// Find the amount of penetration resolution per unit of inverse mass
Vec2 movePerIMass = c.ContactNormal * (c.Penetration / totalInverseMass);
//If stack stability can be increased by not resolving all the penetrations
//in one step
movePerIMass *= PHYSICS->PenetrationResolvePercentage;
// Calculate the the movement amounts
c.Movement[0] = movePerIMass * c.Bodies[0]->InvMass;
c.Movement[1] = movePerIMass * -c.Bodies[1]->InvMass;
// Apply the penetration resolution
c.Bodies[0]->Position = c.Bodies[0]->Position + c.Movement[0];
c.Bodies[1]->Position = c.Bodies[1]->Position + c.Movement[1];
}
//Resolve Positions
void ContactSet::ResolvePositions(float dt)
{
//Resolving penetrations is a tricky problem with large stacks. The only real way to get
//good results is by considering all contacts at once at solving them together. This method basically
//just keeps poking the bodies until the penetrations are below the penetration slop epsilon.
//Better solutions involve building contact graphs, shock propagation and constraint based
//solvers.
unsigned iterationsRun = 0;
unsigned maxIterations = NumberOfContacts * 5;
const float positionEpsilon = PHYSICS->PenetrationEpsilon;
while(iterationsRun < maxIterations)
{
// Find biggest penetration greater than
//the correction epsilon
float maxPenetration = positionEpsilon;
unsigned contactIndex = NumberOfContacts;
for (unsigned i=0; i<NumberOfContacts; i++)
{
if (contactArray[i].Penetration > maxPenetration)
{
maxPenetration = contactArray[i].Penetration;
contactIndex = i;
}
}
if (contactIndex == NumberOfContacts) break;
//Resolve the penetration
ResolvePenetration(contactArray[contactIndex],dt);
// Update the penetrations for all related contacts
Vec2 * movement = contactArray[contactIndex].Movement;
for (unsigned i = 0; i < NumberOfContacts; i++)
{
if (contactArray[i].Bodies[0] == contactArray[contactIndex].Bodies[0])
contactArray[i].Penetration -= Dot(movement[0], contactArray[i].ContactNormal);
else if (contactArray[i].Bodies[0] == contactArray[contactIndex].Bodies[1])
contactArray[i].Penetration -= Dot(movement[1] , contactArray[i].ContactNormal);
if (contactArray[i].Bodies[1])
{
if (contactArray[i].Bodies[1] == contactArray[contactIndex].Bodies[0])
contactArray[i].Penetration += Dot( movement[0], contactArray[i].ContactNormal);
else if (contactArray[i].Bodies[1] == contactArray[contactIndex].Bodies[1])
contactArray[i].Penetration += Dot( movement[1] , contactArray[i].ContactNormal);
}
}
++iterationsRun;
}
}
//Resolve Velocities of all contacts
void ContactSet::ResolveVelocities(float dt)
{
unsigned iterationsRun = 0;
unsigned maxIterations = NumberOfContacts * 5;
while(iterationsRun < maxIterations)
{
// Find the contact with the largest closing velocity;
float maxVelocity = FLT_MAX;
unsigned contactIndex = NumberOfContacts;
for (unsigned i = 0; i < NumberOfContacts; i++)
{
float sepVel = contactArray[i].CalculateSeparatingVelocity();
if (sepVel < 0 && sepVel < maxVelocity )
{
maxVelocity = sepVel;
contactIndex = i;
}
}
// Do we have anything worth resolving?
if (contactIndex == NumberOfContacts) break;
// Resolve this contact velocity
ResloveContactVelocity(contactArray[contactIndex],dt);
++iterationsRun;
}
}
void ContactSet::ResolveContacts(float dt)
{
this->ResolvePositions(dt);
this->ResolveVelocities(dt);
}
} | [
"rziugy@af704e40-745a-32bd-e5ce-d8b418a3b9ef"
] | [
[
[
1,
218
]
]
] |
a626a2d0a256924fcb44e5a96002b8495e97349a | c63685bfe2d1ecfdfebcda0eab70642f6fcf4634 | /DoG_GLSL/GLTexImage.cpp | 3b2c599a76c79ed66d1987fc7bf844779b5f59c5 | [] | no_license | Shell64/cgdemos | 8afa9272cef51e6d0544d672caa0142154e231fc | d34094d372fea0536a5b3a17a861bb1a1bfac8c4 | refs/heads/master | 2021-01-22T23:26:19.112999 | 2011-10-13T12:38:10 | 2011-10-13T12:38:10 | 35,008,078 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,077 | cpp | #include <GL/glew.h>
#include <iostream>
#include <IL/il.h>
#include "GlobalUtil.h"
#include "glErrorUtil.h"
#include "framebufferObject.h"
#include "ShaderObject.h"
#include "ProgramGLSL.h"
#include "GLTexImage.h"
GLTexImage::GLTexImage(void)
: m_drawHeight( 0 ), m_drawWidth( 0 ),
m_imageWidth( 0 ), m_imageHeight( 0 ),
m_texWidth( 0 ), m_texHeight( 0 ),
m_texID( 0 )
{
}
GLTexImage::~GLTexImage(void)
{
}
void GLTexImage::BindTex()
{
glBindTexture( GlobalUtil::s_texTarget, m_texID );
}
void GLTexImage::UnbindTex()
{
glBindTexture( GlobalUtil::s_texTarget, 0 );
}
void GLTexImage::DrawQuad()
{
glBegin (GL_QUADS);
glTexCoord2i ( 0, 0 ); glVertex2i( 0, 0 );
glTexCoord2i ( 0, m_drawHeight ); glVertex2i( 0, m_drawHeight );
glTexCoord2i ( m_drawWidth, m_drawHeight );glVertex2i( m_drawWidth, m_drawHeight );
glTexCoord2i ( m_drawWidth, 0 ); glVertex2i( m_drawWidth, 0 );
glEnd ();
glFlush();
}
void GLTexImage::AttachToFBO( int i )
{
glFramebufferTexture2DEXT( GL_FRAMEBUFFER_EXT,
i + GL_COLOR_ATTACHMENT0_EXT, GlobalUtil::s_texTarget, m_texID, 0 );
}
void GLTexImage::DetachFBO( int i )
{
glFramebufferTexture2DEXT( GL_FRAMEBUFFER_EXT,
i + GL_COLOR_ATTACHMENT0_EXT, GlobalUtil::s_texTarget, 0, 0 );
}
void GLTexImage::InitTexture( int width, int height,
GLuint format /*= GL_RGBA32F_ARB*/,
bool clamp_to_edge /*= true */ )
{
if( 0 != m_texID && width == m_texWidth && height == m_texHeight ) return;
if( 0 == m_texID ) glGenTextures( 1, &m_texID );
m_texWidth = m_imageWidth = m_drawWidth = width;
m_texHeight = m_imageHeight = m_drawHeight = height;
BindTex();
if( clamp_to_edge )
{
glTexParameteri( GlobalUtil::s_texTarget, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE );
glTexParameteri( GlobalUtil::s_texTarget, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE );
}
else
{
//out of bound tex read returns 0??
glTexParameteri( GlobalUtil::s_texTarget, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER );
glTexParameteri( GlobalUtil::s_texTarget, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER );
}
glTexParameteri( GlobalUtil::s_texTarget, GL_TEXTURE_MAG_FILTER, GL_NEAREST );
glTexParameteri( GlobalUtil::s_texTarget, GL_TEXTURE_MIN_FILTER, GL_NEAREST );
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
glTexImage2D( GlobalUtil::s_texTarget, 0, format, m_texWidth, m_texHeight, 0, GL_RGBA, GL_FLOAT, NULL);
UnbindTex();
}
void GLTexImage::SetTextureParam()
{
glTexParameteri( GlobalUtil::s_texTarget, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE );
glTexParameteri( GlobalUtil::s_texTarget, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE );
glTexParameteri( GlobalUtil::s_texTarget, GL_TEXTURE_MAG_FILTER, GL_NEAREST );
glTexParameteri( GlobalUtil::s_texTarget, GL_TEXTURE_MIN_FILTER, GL_NEAREST );
glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE );
}
void GLTexImage::DrawImage( )
{
/* send elapsed time to shaders*/
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glEnable( GL_TEXTURE_RECTANGLE_ARB );
glBindTexture( GlobalUtil::s_texTarget, m_texID );
glBegin(GL_QUADS);
{
glTexCoord2i( 0, 0 ); glVertex2i( 0, m_drawHeight );
glTexCoord2i( m_drawWidth, 0 ); glVertex2i( m_drawWidth, m_drawHeight );
glTexCoord2i( m_drawWidth, m_drawHeight ); glVertex2i( m_drawWidth, 0 );
glTexCoord2i( 0, m_drawHeight ); glVertex2i( 0, 0 );
}
glEnd();
glFlush();
}
void GLTexImage::FitViewport( )
{
glViewport( 0, 0, m_drawWidth, m_drawHeight );
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
glOrtho( 0, m_drawWidth, 0, m_drawHeight, 0, 1 );
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();
}
void GLTexImage::MakeGray()
{
FramebufferObject fbo;
fbo.Bind();
ProgramGLSL grayProgram;
grayProgram.AttachShaderObject(
ShaderObject( GL_FRAGMENT_SHADER, "GrayScale.glsl", true ) );
grayProgram.LinkProgram();
grayProgram.UseProgram();
GLint texParam = grayProgram.GetUniformLocation( "Tex" );
glUniform1i( texParam, 0 );
this->AttachToFBO( 0 );
this->FitViewport();
this->BindTex();
this->DrawQuad();
this->UnbindTex();
this->DetachFBO( 0 );
glUseProgram(0);
FramebufferObject::Disable();
}
bool GLTexInput::SetImageData( int width, int height,
const void * data,
GLuint gl_iformat,
unsigned int gl_format,
unsigned int gl_type )
{
//check whether the image format is supported
//check whether the image exceed the maximum size of texture
if( m_texID == 0 ) glGenTextures( 1, &m_texID );
BindTex();
CheckErrorsGL( "glBindTexture" );
m_texWidth = m_imageWidth = m_drawWidth = width;
m_texHeight = m_imageHeight = m_drawHeight = height;
m_format = gl_format;
glPixelStorei(GL_UNPACK_ALIGNMENT , 1);
SetTextureParam();
glTexImage2D( GlobalUtil::s_texTarget, 0, gl_iformat, //internal format changed
m_imageWidth, m_imageHeight, 0,
gl_format, GL_UNSIGNED_BYTE, data );
UnbindTex();
return true;
}
bool GLTexInput::LoadImageFromFile( const char* filename,
bool color /*= true*/)
{
ilInit();
ilOriginFunc( IL_ORIGIN_UPPER_LEFT );
ilEnable( IL_ORIGIN_SET );
unsigned int imId = ilGenImage();
ilBindImage( imId );
if ( !ilLoadImage( filename ) )
{
std::cout << "failed to load file.\n";
ilDeleteImage( imId );
return false;
}
int width = ilGetInteger( IL_IMAGE_WIDTH );
int height = ilGetInteger( IL_IMAGE_HEIGHT );
int ilformat = ilGetInteger( IL_IMAGE_FORMAT );
bool ret = true;
if ( color || GL_LUMINANCE == ilformat )
{
GLuint iformat = GL_RGBA32F_ARB;
if ( GL_LUMINANCE == ilformat )
iformat = GL_LUMINANCE32F_ARB;
ret = SetImageData( width, height, ilGetData(), iformat, ilformat, GL_UNSIGNED_BYTE );
}
else
{
unsigned char* gray_image = CreateGrayImage(
(const unsigned char*)ilGetData(), width, height, ilformat );
if ( NULL == gray_image ) return false;
ret = SetImageData( width, height, gray_image, GL_LUMINANCE32F_ARB, GL_LUMINANCE, GL_UNSIGNED_BYTE );
delete[] gray_image;
}
ilDeleteImage( imId );
return ret;
}
unsigned char* GLTexInput::CreateGrayImage(
const unsigned char* img, int width, int height, int format )
{
if ( NULL == img || width == 0 || height == 0 ) return NULL;
if ( GL_RGB != format && GL_RGBA != format ) return NULL;
unsigned char* gray_image = new unsigned char[ width * height ];
if ( NULL == gray_image )
return NULL;
const unsigned char *line = img, *p;
unsigned char* po = gray_image;
int step = format == GL_RGB? 3: 4 ;
int linestep = width * step;
for( int i = 0, j = 0 ; i < height; ++i, line += linestep )
{
for( j = 0, p = line; j < width; ++j, p += step )
{
//*po++ = int(p[0]*0.299 + p[1] * 0.587 + p[2]* 0.114 + 0.5);
*po++ = ( ( 19595*p[0] + 38470*p[1] + 7471*p[2]+ 32768 ) >> 16 );
}
}
return gray_image;
}
| [
"hpsoar@6e3944b4-cba9-11de-a8df-5d31f88aefc0"
] | [
[
[
1,
246
]
]
] |
d8442ce15cded06ba8807486e346bec2f3b464b3 | 4aadb120c23f44519fbd5254e56fc91c0eb3772c | /Source/src/OpenSteerUT/AbstractPluginUtilities.h | 07be3ee0537caeb2f8af6c9d7aa33cb548d780e4 | [] | no_license | janfietz/edunetgames | d06cfb021d8f24cdcf3848a59cab694fbfd9c0ba | 04d787b0afca7c99b0f4c0692002b4abb8eea410 | refs/heads/master | 2016-09-10T19:24:04.051842 | 2011-04-17T11:00:09 | 2011-04-17T11:00:09 | 33,568,741 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,420 | h | #ifndef __ABSTRACTPLUGINUTILITIES_H__
#define __ABSTRACTPLUGINUTILITIES_H__
//-----------------------------------------------------------------------------
// Copyright (c) 2009, Jan Fietz, Cyrus Preuss
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
// * Neither the name of EduNetGames nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
// IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//-----------------------------------------------------------------------------
#include "OpenSteerUT/OpenSteerUTTypes.h"
class GLUI_Panel;
class GLUI_Control;
//-----------------------------------------------------------------------------
namespace OpenSteer
{
//-------------------------------------------------------------------------
class AbstractPluginGui
{
public:
static void addCommonPluginGui( GLUI_Panel* pluginPanel, osAbstractPlugin* pkPlugin );
static void changePluginBoolValue( GLUI_Control* pkControl );
static GLUI_Panel* initRootPluginGui( osAbstractPlugin* pkPlugin );
static GLUI_Panel* initSubPluginGui( osAbstractPlugin* pkPlugin, void* pkUserdata );
};
template <class Super>
class PluginAccessorMixin : public Super
{
ET_DECLARE_BASE( Super )
public:
// constructor
PluginAccessorMixin():m_pkPlugin( NULL ) {};
// destructor
virtual ~PluginAccessorMixin() {};
virtual void setPlugin( class OpenSteer::AbstractPlugin* pPlugin )
{
this->m_pkPlugin = pPlugin;
}
virtual OpenSteer::AbstractPlugin* getPlugin( void ) const
{
return this->m_pkPlugin;
}
private:
class OpenSteer::AbstractPlugin* m_pkPlugin;
};
typedef PluginAccessorMixin<OpenSteer::Entity> PluginAccessor_t;
// an pure virtual interface to support plugin selections
class VirtualPluginSelector
{
public:
virtual ~VirtualPluginSelector() {};
virtual const char* getCurrentPluginName( void ) const ET_ABSTRACT;
virtual void selectPluginByName( const char* pszPluginName ) ET_ABSTRACT;
};
}
#endif // __ABSTRACTPLUGINUTILITIES_H__ | [
"janfietz@localhost"
] | [
[
[
1,
94
]
]
] |
f97d177f9273d6da4c264d55765730e96861dc24 | 3d9e738c19a8796aad3195fd229cdacf00c80f90 | /include/QGLViewer/camera.h | 24a683d04784717b8c977132c6c456b3184835db | [] | no_license | mrG7/mesecina | 0cd16eb5340c72b3e8db5feda362b6353b5cefda | d34135836d686a60b6f59fa0849015fb99164ab4 | refs/heads/master | 2021-01-17T10:02:04.124541 | 2011-03-05T17:29:40 | 2011-03-05T17:29:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,695 | h | /****************************************************************************
Copyright (C) 2002-2008 Gilles Debunne. All rights reserved.
This file is part of the QGLViewer library version 2.3.1.
http://www.libqglviewer.com - [email protected]
This file may be used under the terms of the GNU General Public License
versions 2.0 or 3.0 as published by the Free Software Foundation and
appearing in the LICENSE file included in the packaging of this file.
In addition, as a special exception, Gilles Debunne gives you certain
additional rights, described in the file GPL_EXCEPTION in this package.
libQGLViewer uses dual licensing. Commercial/proprietary software must
purchase a libQGLViewer Commercial License.
This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*****************************************************************************/
#ifndef QGLVIEWER_CAMERA_H
#define QGLVIEWER_CAMERA_H
#include "manipulatedCameraFrame.h"
#include "keyFrameInterpolator.h"
namespace qglviewer {
/*! \brief A perspective or orthographic camera.
\class Camera camera.h QGLViewer/camera.h
A Camera defines some intrinsic parameters (fieldOfView(), position(), viewDirection(),
upVector()...) and useful positioning tools that ease its placement (showEntireScene(),
fitSphere(), lookAt()...). It exports its associated OpenGL projection and modelview matrices and
can interactively be modified using the mouse.
<h3>Mouse manipulation</h3>
The position() and orientation() of the Camera are defined by a ManipulatedCameraFrame (retrieved
using frame()). These methods are just convenient wrappers to the equivalent Frame methods. This
also means that the Camera frame() can be attached to a Frame::referenceFrame() which enables
complex Camera setups.
Different displacements can be performed using the mouse. The list of possible actions is defined
by the QGLViewer::MouseAction enum. Use QGLViewer::setMouseBinding() to attach a specific action
to an arbitrary mouse button-state key binding. These actions are detailed in the <a
href="../mouse.html">mouse page</a>.
The default button binding are: QGLViewer::ROTATE (left), QGLViewer::ZOOM (middle) and
QGLViewer::TRANSLATE (right). With this configuration, the Camera \e observes a scene and rotates
around its revolveAroundPoint(). You can switch between this mode and a fly mode using the
QGLViewer::CAMERA_MODE (see QGLViewer::toggleCameraMode()) keyboard shortcut (default is 'Space').
<h3>Other functionalities</h3>
The type() of the Camera can be Camera::ORTHOGRAPHIC or Camera::PERSPECTIVE (see Type()).
fieldOfView() is meaningless with Camera::ORTHOGRAPHIC.
The near and far planes of the Camera are fitted to the scene and determined from
QGLViewer::sceneRadius(), QGLViewer::sceneCenter() and zClippingCoefficient() by the zNear() and
zFar() methods. Reasonable values on the scene extends hence have to be provided to the QGLViewer
in order for the Camera to correctly display the scene. High level positioning methods also use
this information (showEntireScene(), centerScene()...).
A Camera holds KeyFrameInterpolator that can be used to save Camera positions and paths. You can
interactively addKeyFrameToPath() to a given path using the default \c Alt+F[1-12] shortcuts. Use
playPath() to make the Camera follow the path (default shortcut is F[1-12]). See the <a
href="../keyboard.html">keyboard page</a> for details on key customization.
Use cameraCoordinatesOf() and worldCoordinatesOf() to convert to and from the Camera frame()
coordinate system. projectedCoordinatesOf() and unprojectedCoordinatesOf() will convert from
screen to 3D coordinates. convertClickToLine() is very useful for analytical object selection.
Stereo display is possible on machines with quad buffer capabilities (with Camera::PERSPECTIVE
type() only). Test the <a href="../examples/stereoViewer.html">stereoViewer example</a> to check.
A Camera can also be used outside of a QGLViewer or even without OpenGL for its coordinate system
conversion capabilities. Note however that some of them explicitly rely on the presence of a
Z-buffer. \nosubgrouping */
class QGLVIEWER_EXPORT Camera : public QObject
{
#ifndef DOXYGEN
friend class ::QGLViewer;
#endif
Q_OBJECT
public:
Camera();
virtual ~Camera();
Camera(const Camera& camera);
Camera& operator=(const Camera& camera);
/*! Enumerates the two possible types of Camera.
See type() and setType(). This type mainly defines different Camera projection matrix (see
loadProjectionMatrix()). Many other methods (pointUnderPixel(), convertClickToLine(),
projectedCoordinatesOf(), pixelGLRatio()...) take this Type into account. */
enum Type { PERSPECTIVE, ORTHOGRAPHIC };
/*! @name Position and orientation */
//@{
public:
/*! Returns the Camera position (the eye), defined in the world coordinate system.
Use setPosition() to set the Camera position. Other convenient methods are showEntireScene() or
fitSphere(). Actually returns \c frame()->position().
This position corresponds to the projection center of a Camera::PERSPECTIVE Camera. It is not
located in the image plane, which is at a zNear() distance ahead. */
Vec position() const { return frame()->position(); };
/*! Returns the normalized up vector of the Camera, defined in the world coordinate system.
Set using setUpVector() or setOrientation(). It is orthogonal to viewDirection() and to
rightVector().
It corresponds to the Y axis of the associated frame() (actually returns
frame()->inverseTransformOf(Vec(0.0, 1.0, 0.0)) ). */
Vec upVector() const
{
return frame()->inverseTransformOf(Vec(0.0, 1.0, 0.0));
}
/*! Returns the normalized view direction of the Camera, defined in the world coordinate system.
Change this value using setViewDirection(), lookAt() or setOrientation(). It is orthogonal to
upVector() and to rightVector().
This corresponds to the negative Z axis of the frame() ( frame()->inverseTransformOf(Vec(0.0,
0.0, -1.0)) ). */
Vec viewDirection() const { return frame()->inverseTransformOf(Vec(0.0, 0.0, -1.0)); };
/*! Returns the normalized right vector of the Camera, defined in the world coordinate system.
This vector lies in the Camera horizontal plane, directed along the X axis (orthogonal to
upVector() and to viewDirection()). Set using setUpVector(), lookAt() or setOrientation().
Simply returns frame()->inverseTransformOf(Vec(1.0, 0.0, 0.0)). */
Vec rightVector() const
{
return frame()->inverseTransformOf(Vec(1.0, 0.0, 0.0));
}
/*! Returns the Camera orientation, defined in the world coordinate system.
Actually returns \c frame()->orientation(). Use setOrientation(), setUpVector() or lookAt() to
set the Camera orientation. */
Quaternion orientation() const { return frame()->orientation(); };
void setFromModelViewMatrix(const GLdouble* const modelViewMatrix);
void setFromProjectionMatrix(const float matrix[12]);
public slots:
/*! Sets the Camera position() (the eye), defined in the world coordinate system. */
void setPosition(const Vec& pos) { frame()->setPosition(pos); };
void setOrientation(const Quaternion& q);
void setOrientation(float theta, float phi);
void setUpVector(const Vec& up, bool noMove=true);
void setViewDirection(const Vec& direction);
//@}
/*! @name Positioning tools */
//@{
public slots:
void lookAt(const Vec& target);
void showEntireScene();
void fitSphere(const Vec& center, float radius);
void fitBoundingBox(const Vec& min, const Vec& max);
void fitScreenRegion(const QRect& rectangle);
void centerScene();
void interpolateToZoomOnPixel(const QPoint& pixel);
void interpolateToFitScene();
void interpolateTo(const Frame& fr, float duration);
//@}
/*! @name Frustum */
//@{
public:
/*! Returns the Camera::Type of the Camera.
Set by setType(). Mainly used by loadProjectionMatrix().
A Camera::PERSPECTIVE Camera uses a classical projection mainly defined by its fieldOfView().
With a Camera::ORTHOGRAPHIC type(), the fieldOfView() is meaningless and the width and height of
the Camera frustum are inferred from the distance to the revolveAroundPoint() using
getOrthoWidthHeight().
Both types use zNear() and zFar() (to define their clipping planes) and aspectRatio() (for
frustum shape). */
Type type() const { return type_; };
/*! Returns the vertical field of view of the Camera (in radians).
Value is set using setFieldOfView(). Default value is pi/4 radians. This value is meaningless if
the Camera type() is Camera::ORTHOGRAPHIC.
The field of view corresponds the one used in \c gluPerspective (see manual). It sets the Y
(vertical) aperture of the Camera. The X (horizontal) angle is inferred from the window aspect
ratio (see aspectRatio() and horizontalFieldOfView()).
Use setFOVToFitScene() to adapt the fieldOfView() to a given scene. */
float fieldOfView() const { return fieldOfView_; };
/*! Returns the horizontal field of view of the Camera (in radians).
Value is set using setHorizontalFieldOfView() or setFieldOfView(). These values
are always linked by:
\code
horizontalFieldOfView() = 2.0 * atan ( tan(fieldOfView()/2.0) * aspectRatio() ).
\endcode */
float horizontalFieldOfView() const { return 2.0 * atan ( tan(fieldOfView()/2.0) * aspectRatio() ); };
/*! Returns the Camera aspect ratio defined by screenWidth() / screenHeight().
When the Camera is attached to a QGLViewer, these values and hence the aspectRatio() are
automatically fitted to the viewer's window aspect ratio using setScreenWidthAndHeight(). */
float aspectRatio() const { return static_cast<float>(screenWidth_)/static_cast<float>(screenHeight_); };
/*! Returns the width (in pixels) of the Camera screen.
Set using setScreenWidthAndHeight(). This value is automatically fitted to the QGLViewer's
window dimensions when the Camera is attached to a QGLViewer. See also QGLWidget::width() */
int screenWidth() const { return screenWidth_; };
/*! Returns the height (in pixels) of the Camera screen.
Set using setScreenWidthAndHeight(). This value is automatically fitted to the QGLViewer's
window dimensions when the Camera is attached to a QGLViewer. See also QGLWidget::height() */
int screenHeight() const { return screenHeight_; };
void getViewport(GLint viewport[4]) const;
float pixelGLRatio(const Vec& position) const;
/*! Returns the coefficient which is used to set zNear() when the Camera is inside the sphere
defined by sceneCenter() and zClippingCoefficient() * sceneRadius().
In that case, the zNear() value is set to zNearCoefficient() * zClippingCoefficient() *
sceneRadius(). See the zNear() documentation for details.
Default value is 0.005, which is appropriate for most applications. In case you need a high
dynamic ZBuffer precision, you can increase this value (~0.1). A lower value will prevent
clipping of very close objects at the expense of a worst Z precision.
Only meaningful when Camera type is Camera::PERSPECTIVE. */
float zNearCoefficient() const { return zNearCoef_; };
/*! Returns the coefficient used to position the near and far clipping planes.
The near (resp. far) clipping plane is positioned at a distance equal to zClippingCoefficient() *
sceneRadius() in front of (resp. behind) the sceneCenter(). This garantees an optimal use of
the z-buffer range and minimizes aliasing. See the zNear() and zFar() documentations.
Default value is square root of 3.0 (so that a cube of size sceneRadius() is not clipped).
However, since the sceneRadius() is used for other purposes (see showEntireScene(), flySpeed(),
...) and you may want to change this value to define more precisely the location of the clipping
planes. See also zNearCoefficient().
For a total control on clipping planes' positions, an other option is to overload the zNear()
and zFar() methods. See the <a href="../examples/standardCamera.html">standardCamera example</a>.
\attention When QGLViewer::cameraPathAreEdited(), this value is set to 5.0 so that the Camera
paths are not clipped. The previous zClippingCoefficient() value is restored back when you leave
this mode. */
float zClippingCoefficient() const { return zClippingCoef_; }
virtual float zNear() const;
virtual float zFar() const;
virtual void getOrthoWidthHeight(GLdouble& halfWidth, GLdouble& halfHeight) const;
void getFrustumPlanesCoefficients(GLdouble coef[6][4]) const;
public slots:
void setType(Type type);
/*! Sets the vertical fieldOfView() of the Camera (in radians).
Note that focusDistance() is set to sceneRadius() / tan(fieldOfView()/2) by this method. */
void setFieldOfView(float fov) { fieldOfView_ = fov; setFocusDistance(sceneRadius() / tan(fov/2.0)); };
/*! Sets the horizontalFieldOfView() of the Camera (in radians).
horizontalFieldOfView() and fieldOfView() are linked by the aspectRatio(). This method actually
calls setFieldOfView(( 2.0 * atan (tan(hfov / 2.0) / aspectRatio()) )) so that a call to
horizontalFieldOfView() returns the expected value. */
void setHorizontalFieldOfView(float hfov) { setFieldOfView( 2.0 * atan (tan(hfov / 2.0) / aspectRatio()) ); };
void setFOVToFitScene();
/*! Defines the Camera aspectRatio().
This value is actually inferred from the screenWidth() / screenHeight() ratio. You should use
setScreenWidthAndHeight() instead.
This method might however be convenient when the Camera is not associated with a QGLViewer. It
actually sets the screenHeight() to 100 and the screenWidth() accordingly. See also
setFOVToFitScene().
\note If you absolutely need an aspectRatio() that does not correspond to your viewer's window
dimensions, overload loadProjectionMatrix() or multiply the created GL_PROJECTION matrix by a
scaled diagonal matrix in your QGLViewer::draw() method. */
void setAspectRatio(float aspect) { setScreenWidthAndHeight(int(100.0*aspect), 100); };
void setScreenWidthAndHeight(int width, int height);
/*! Sets the zNearCoefficient() value. */
void setZNearCoefficient(float coef) { zNearCoef_ = coef; };
/*! Sets the zClippingCoefficient() value. */
void setZClippingCoefficient(float coef) { zClippingCoef_ = coef; }
//@}
/*! @name Scene radius and center */
//@{
public:
/*! Returns the radius of the scene observed by the Camera.
You need to provide such an approximation of the scene dimensions so that the Camera can adapt
its zNear() and zFar() values. See the sceneCenter() documentation.
See also setSceneBoundingBox().
Note that QGLViewer::sceneRadius() (resp. QGLViewer::setSceneRadius()) simply call this method
(resp. setSceneRadius()) on its associated QGLViewer::camera(). */
float sceneRadius() const { return sceneRadius_; };
/*! Returns the position of the scene center, defined in the world coordinate system.
The scene observed by the Camera should be roughly centered on this position, and included in a
sceneRadius() sphere. This approximate description of the scene permits a zNear() and zFar()
clipping planes definition, and allows convenient positioning methods such as showEntireScene().
Default value is (0,0,0) (world origin). Use setSceneCenter() to change it. See also
setSceneBoundingBox().
Note that QGLViewer::sceneCenter() (resp. QGLViewer::setSceneCenter()) simply call this method
(resp. setSceneCenter()) on its associated QGLViewer::camera(). */
Vec sceneCenter() const { return sceneCenter_; };
float distanceToSceneCenter() const;
public slots:
void setSceneRadius(float radius);
void setSceneCenter(const Vec& center);
bool setSceneCenterFromPixel(const QPoint& pixel);
void setSceneBoundingBox(const Vec& min, const Vec& max);
//@}
/*! @name Revolve Around Point */
//@{
public slots:
void setRevolveAroundPoint(const Vec& rap);
bool setRevolveAroundPointFromPixel(const QPoint& pixel);
public:
/*! The point the Camera revolves around with the QGLViewer::ROTATE mouse binding. Defined in world coordinate system.
Default value is the sceneCenter().
\attention setSceneCenter() changes this value. */
Vec revolveAroundPoint() const { return frame()->revolveAroundPoint(); };
//@}
/*! @name Associated frame */
//@{
public:
/*! Returns the ManipulatedCameraFrame attached to the Camera.
This ManipulatedCameraFrame defines its position() and orientation() and can translate mouse
events into Camera displacement. Set using setFrame(). */
ManipulatedCameraFrame* frame() const { return frame_; };
public slots:
void setFrame(ManipulatedCameraFrame* const mcf);
//@}
/*! @name KeyFramed paths */
//@{
public:
KeyFrameInterpolator* keyFrameInterpolator(int i) const;
public slots:
void setKeyFrameInterpolator(int i, KeyFrameInterpolator* const kfi);
virtual void addKeyFrameToPath(int i);
virtual void playPath(int i);
virtual void deletePath(int i);
virtual void resetPath(int i);
virtual void drawAllPaths();
//@}
/*! @name OpenGL matrices */
//@{
public:
virtual void loadProjectionMatrix(bool reset=true) const;
virtual void loadModelViewMatrix(bool reset=true) const;
void computeProjectionMatrix() const;
void computeModelViewMatrix() const;
virtual void loadProjectionMatrixStereo(bool leftBuffer=true) const;
virtual void loadModelViewMatrixStereo(bool leftBuffer=true) const;
void getProjectionMatrix(GLdouble m[16]) const;
void getModelViewMatrix(GLdouble m[16]) const;
void getModelViewProjectionMatrix(GLdouble m[16]) const;
#ifndef DOXYGEN
// Required for windows which otherwise silently fills
void getProjectionMatrix(GLfloat m[16]) const;
void getModelViewMatrix(GLfloat m[16]) const;
#endif
//@}
/*! @name Drawing */
//@{
#ifndef DOXYGEN
static void drawCamera(float scale=1.0, float aspectRatio=1.33, float fieldOfView=M_PI/4.0);
#endif
virtual void draw(bool drawFarPlane=true, float scale=1.0) const;
//@}
/*! @name World to Camera coordinate systems conversions */
//@{
public:
/*! Returns the Camera frame coordinates of a point \p src defined in world coordinates.
worldCoordinatesOf() performs the inverse transformation.
Note that the point coordinates are simply converted in a different coordinate system. They are
not projected on screen. Use projectedCoordinatesOf() for that. */
Vec cameraCoordinatesOf(const Vec& src) const { return frame()->coordinatesOf(src); };
/*! Returns the world coordinates of the point whose position \p src is defined in the Camera
coordinate system.
cameraCoordinatesOf() performs the inverse transformation. */
Vec worldCoordinatesOf(const Vec& src) const { return frame()->inverseCoordinatesOf(src); };
void getCameraCoordinatesOf(const float src[3], float res[3]) const;
void getWorldCoordinatesOf(const float src[3], float res[3]) const;
//@}
/*! @name 2D screen to 3D world coordinate systems conversions */
//@{
public:
Vec projectedCoordinatesOf(const Vec& src, const Frame* frame=NULL) const;
Vec unprojectedCoordinatesOf(const Vec& src, const Frame* frame=NULL) const;
void getProjectedCoordinatesOf(const float src[3], float res[3], const Frame* frame=NULL) const;
void getUnprojectedCoordinatesOf(const float src[3], float res[3], const Frame* frame=NULL) const;
void convertClickToLine(const QPoint& pixel, Vec& orig, Vec& dir) const;
Vec pointUnderPixel(const QPoint& pixel, bool& found) const;
//@}
/*! @name Fly speed */
//@{
public:
/*! Returns the fly speed of the Camera.
Simply returns frame()->flySpeed(). See the ManipulatedCameraFrame::flySpeed() documentation.
This value is only meaningful when the MouseAction bindings is QGLViewer::MOVE_FORWARD or
QGLViewer::MOVE_BACKWARD.
Set to 0.5% of the sceneRadius() by setSceneRadius(). See also setFlySpeed(). */
float flySpeed() const { return frame()->flySpeed(); };
public slots:
/*! Sets the Camera flySpeed().
\attention This value is modified by setSceneRadius(). */
void setFlySpeed(float speed) { frame()->setFlySpeed(speed); };
//@}
/*! @name Stereo parameters */
//@{
public:
/*! Returns the user's inter-ocular distance (in meters). Default value is 0.062m, which fits most people.
loadProjectionMatrixStereo() uses this value to define the Camera offset and frustum. See
setIODistance(). */
float IODistance() const { return IODistance_; };
/*! Returns the physical distance between the user's eyes and the screen (in meters).
Default value is 0.5m.
Used by loadModelViewMatrixStereo() and loadProjectionMatrixStereo() for stereo display. Value
is set using setPhysicalDistanceToScreen().
physicalDistanceToScreen() and focusDistance() represent the same distance. The first one is
expressed in physical real world units, while the latter is expressed in OpenGL virtual world
units. Use their ratio to convert distances between these worlds.
Use the following code to detect a reality center configuration (using its screen aspect ratio)
and to automatically set physical distances accordingly:
\code
QDesktopWidget screen;
if (fabs((float)screen.width() / (float)screen.height()) > 2.0)
{
camera()->setPhysicalDistanceToScreen(4.0);
camera()->setPhysicalScreenWidth(10.0);
}
\endcode */
float physicalDistanceToScreen() const { return physicalDistanceToScreen_; };
/*! Returns the physical screen width, in meters. Default value is 0.4m (average monitor).
Used for stereo display only (see loadModelViewMatrixStereo() and loadProjectionMatrixStereo()).
Set using setPhysicalScreenWidth().
See physicalDistanceToScreen() for reality center automatic configuration. */
float physicalScreenWidth() const { return physicalScreenWidth_; };
/*! Returns the focus distance used by stereo display, expressed in OpenGL units.
This is the distance in the virtual world between the Camera and the plane where the horizontal
stereo parallax is null (the stereo left and right images are superimposed).
This distance is the virtual world equivalent of the real-world physicalDistanceToScreen().
\attention This value is modified by QGLViewer::setSceneRadius(), setSceneRadius() and
setFieldOfView(). When one of these values is modified, focusDistance() is set to sceneRadius()
/ tan(fieldOfView()/2), which provides good results. */
float focusDistance() const { return focusDistance_; };
public slots:
/*! Sets the IODistance(). */
void setIODistance(float distance) { IODistance_ = distance; };
/*! Sets the physicalDistanceToScreen(). */
void setPhysicalDistanceToScreen(float distance) { physicalDistanceToScreen_ = distance; };
/*! Sets the physical screen (monitor or projected wall) width (in meters). */
void setPhysicalScreenWidth(float width) { physicalScreenWidth_ = width; };
/*! Sets the focusDistance(), in OpenGL scene units. */
void setFocusDistance(float distance) { focusDistance_ = distance; };
//@}
/*! @name XML representation */
//@{
public:
virtual QDomElement domElement(const QString& name, QDomDocument& document) const;
public slots:
virtual void initFromDOMElement(const QDomElement& element);
//@}
private:
// F r a m e
ManipulatedCameraFrame* frame_;
// C a m e r a p a r a m e t e r s
int screenWidth_, screenHeight_; // size of the window, in pixels
float fieldOfView_; // in radians
Vec sceneCenter_;
float sceneRadius_; // OpenGL units
float zNearCoef_;
float zClippingCoef_;
float orthoCoef_;
Type type_; // PERSPECTIVE or ORTHOGRAPHIC
mutable GLdouble modelViewMatrix_[16]; // Buffered model view matrix.
mutable GLdouble projectionMatrix_[16]; // Buffered projection matrix.
// S t e r e o p a r a m e t e r s
float IODistance_; // inter-ocular distance, in meters
float focusDistance_; // in scene units
float physicalDistanceToScreen_; // in meters
float physicalScreenWidth_; // in meters
// P o i n t s o f V i e w s a n d K e y F r a m e s
QMap<int, KeyFrameInterpolator*> kfi_;
KeyFrameInterpolator* interpolationKfi_;
};
} // namespace qglviewer
#endif // QGLVIEWER_CAMERA_H
| [
"balint.miklos@localhost"
] | [
[
[
1,
581
]
]
] |
77002952b859891357bbf26055429745ed0e60d5 | fb8a3d68c676c977b9b6d3389debd785c2f25634 | /Threads/Include/Mutex.hpp | cf62e48161f3e99bd7e103c05e47ecfb9a9683fd | [] | no_license | skevy/CSC-350-Assignment2 | ef1a1e5fae8c9b9ab4ca2b97390974751ad1dedb | 98811d2cbbc221af9cc9aa601a990e7969920f7e | refs/heads/master | 2021-01-01T20:35:26.246966 | 2011-02-17T01:57:03 | 2011-02-17T01:57:03 | 1,376,632 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,099 | hpp | //***************************************************************************//
// Mutex Class Interface
//
// Created: Oct 22, 2007
// By: Jeremy M Miller ([email protected])
//
// Copyright (c) 2005-2009 Jeremy M Miller.
// This source code module, and all information, data, and algorithms
// associated with it, are part of BlueHabu Technologies(tm).
//
// Usage of HabuThreads is subject to the appropriate license agreement.
//
//***************************************************************************//
#ifndef HABU_THREADS_MUTEX_HPP
#define HABU_THREADS_MUTEX_HPP
//***************************************************************************//
// System Includes
#include <limits.h> // Used for ULONG_MAX
//***************************************************************************//
//***************************************************************************//
// Local includes
#include "Sync.hpp"
//***************************************************************************//
//***************************************************************************//
namespace HabuTech
{
//*************************************************************************//
/// \brief Mutex is class that provides synchronization of critical sections
/// between more than one threads. Single threads that repeatedly call this class's
/// locking methods will not block. However, calls to this class's locking
/// methods by more than one thread have to potential to block.
class Mutex : public Sync
{
private:
//***********************************************************************//
//***********************************************************************//
public:
//***********************************************************************//
Mutex();
~Mutex();
/// This method will block and therefore protect a critical section if this
/// method will called by more than one thread. If them method is called
/// by the same thread more than once, it will not block
/// \param [in] ulWait
/// This parameter is the amount of time this method attempts to attain a
/// lock. If no wait time is specified this method will block indefinitely or
/// until the lock is attained.
/// \return
/// This method will return true if the lock was attained. Otherwise, if the
/// wait time has expired before the lock is attained, this method will
/// return false.
bool _cdecl Lock(unsigned long ulWait = ULONG_MAX);
/// This method will releases an attained locks. If no lock was attained by
/// the calling method, this method has no effect.
void _cdecl Unlock();
//***********************************************************************//
}; // End of class Mutex
//*************************************************************************//
} // End of namespace HabuThread
//***************************************************************************//
#endif HABU_THREADS_MUTEX_HPP | [
"[email protected]"
] | [
[
[
1,
67
]
]
] |
32a821ed711feff20bf01017760127df24359943 | ef23e388061a637f82b815d32f7af8cb60c5bb1f | /src/mame/includes/rollerg.h | 1bced3119c78d8209ed5be13bc85ea4eea3cd4ac | [] | no_license | marcellodash/psmame | 76fd877a210d50d34f23e50d338e65a17deff066 | 09f52313bd3b06311b910ed67a0e7c70c2dd2535 | refs/heads/master | 2021-05-29T23:57:23.333706 | 2011-06-23T20:11:22 | 2011-06-23T20:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,045 | h | /*************************************************************************
Rollergames
*************************************************************************/
class rollerg_state : public driver_device
{
public:
rollerg_state(running_machine &machine, const driver_device_config_base &config)
: driver_device(machine, config) { }
/* memory pointers */
// UINT8 * m_paletteram; // currently this uses generic palette handling
/* video-related */
int m_sprite_colorbase;
int m_zoom_colorbase;
/* misc */
int m_readzoomroms;
/* devices */
device_t *m_maincpu;
device_t *m_audiocpu;
device_t *m_k053260;
device_t *m_k053244;
device_t *m_k051316;
};
/*----------- defined in video/rollerg.c -----------*/
extern void rollerg_sprite_callback(running_machine &machine, int *code,int *color,int *priority_mask);
extern void rollerg_zoom_callback(running_machine &machine, int *code,int *color,int *flags);
VIDEO_START( rollerg );
SCREEN_UPDATE( rollerg );
| [
"Mike@localhost"
] | [
[
[
1,
37
]
]
] |
a538af0f35b60ca84a970c8e2cc8457665b86af3 | 252e638cde99ab2aa84922a2e230511f8f0c84be | /graphlib/src/TripDiagramData.h | 5cb3fceb4ff02227b8714190f2e587d01e1ad206 | [] | no_license | openlab-vn-ua/tour | abbd8be4f3f2fe4d787e9054385dea2f926f2287 | d467a300bb31a0e82c54004e26e47f7139bd728d | refs/heads/master | 2022-10-02T20:03:43.778821 | 2011-11-10T12:58:15 | 2011-11-10T12:58:15 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 6,707 | h | #ifndef TripDiagramDataH
#define TripDiagramDataH
/* ÄÀÍÍÛÉ ÌÎÄÓËÜ ßÂËßÅÒÑß ÓÑÒÀÐÅÂØÈÌ È ÁÓÄÅÒ ÓÄÀËÅÍ Â ÑËÅÄÓÞÙÈÕ ÂÅÐÑÈßÕ */
#error Obsolete module used
#include <vector>
#include <string>
#include <TripSmartPtr.h>
// Base abstract classes definition
class TripDiagramStopClass
{
public :
virtual const char *IdStrPtr (void) const = 0;
virtual const char *NameStrPtr (void) const = 0;
};
typedef
TripSmartPtrTemplate<TripDiagramStopClass>
TripDiagramStopPtrClass;
class TripDiagramStopScheduleClass : public TripDiagramStopClass
{
public :
virtual unsigned int InTime (void) const = 0;
virtual unsigned int WaitTime (void) const = 0;
};
typedef
TripSmartPtrTemplate<TripDiagramStopScheduleClass>
TripDiagramStopSchedulePtrClass;
class TripDiagramTourScheduleClass
{
public :
virtual unsigned int StopCount (void) const = 0;
virtual TripDiagramStopSchedulePtrClass
Stop (unsigned int Index) const = 0;
};
typedef
TripSmartPtrTemplate<TripDiagramTourScheduleClass>
TripDiagramTourSchedulePtrClass;
class TripDiagramTourClass
{
public :
virtual const char *IdStrPtr (void) const = 0;
virtual const char *NameStrPtr(void) const = 0;
virtual const char *BusModelStrPtr
(void) const = 0;
virtual
TripDiagramTourSchedulePtrClass Schedule (void) const = 0;
};
typedef TripSmartPtrTemplate<TripDiagramTourClass> TripDiagramTourPtrClass;
class TripDiagramStopArrayClass
{
public :
virtual unsigned int Count (void) const = 0;
virtual TripDiagramStopPtrClass operator[](unsigned int Index) const = 0;
};
class TripDiagramTourArrayClass
{
public :
virtual unsigned int Count (void) const = 0;
virtual TripDiagramTourPtrClass operator[](unsigned int Index) const = 0;
};
// Data storage definitions
using namespace std;
typedef struct
{
string IdStr;
string NameStr;
} TripDiagramStopInfoType;
typedef struct
{
float Distance;
} TripDiagramPathInfoType;
class TripDiagramRouteDataClass
{
friend class TTourTripDiagramForm;
public :
virtual unsigned int StopCount (void) const;
virtual const char *StopIdStrPtr (unsigned int StopIndex) const;
virtual const char *StopNameStrPtr(unsigned int StopIndex) const;
virtual float StopDistance (unsigned int FromStopIndex,
unsigned int ToStopIndex) const;
vector<TripDiagramStopInfoType> StopInfoArray;
vector<TripDiagramPathInfoType> PathInfoArray;
};
typedef struct
{
unsigned int StopIndex;
unsigned int InTime;
unsigned int WaitTime;
} TripDiagramTourStopType;
typedef struct
{
string TripIdStr;
string TripNameStr;
vector<TripDiagramTourStopType> StopInfoArray;
} TripDiagramTourInfoType;
typedef struct
{
bool VisibleFlag;
VCanvasColorType Color;
VCanvasPenType PenStyle;
} TripDiagramTourViewType;
class TripDiagramTourDataClass
{
friend class TTourTripDiagramForm;
public :
virtual unsigned int TourCount (void) const;
virtual const char *TourIdStrPtr (unsigned int TourIndex) const;
virtual const char *TourNameStrPtr (unsigned int TourIndex) const;
virtual unsigned int TourStopCount (unsigned int TourIndex) const;
virtual unsigned int TourRouteStopIndex
(unsigned int TourIndex,
unsigned int StopIndex) const;
virtual unsigned int TourStopInTime (unsigned int TourIndex,
unsigned int StopIndex) const;
virtual unsigned int TourStopWaitTime (unsigned int TourIndex,
unsigned int StopIndex) const;
virtual bool SetTourStopInTime(unsigned int TourIndex,
unsigned int StopIndex,
unsigned int InTimeValue);
virtual bool SetTourStopWaitTime
(unsigned int TourIndex,
unsigned int StopIndex,
unsigned int WaitTimeValue);
virtual bool IsTourForward (unsigned int TourIndex) const;
virtual VCanvasColorType
TourDrawColor (unsigned int TourIndex) const;
virtual VCanvasPenType
TourDrawStyle (unsigned int TourIndex) const;
virtual bool TourVisible (unsigned int TourIndex) const;
virtual void TourSetColor (unsigned int TourIndex,
VCanvasColorType Color);
virtual void TourSetPenStyle (unsigned int TourIndex,
VCanvasPenType PenStyle);
virtual void TourSetVisible (unsigned int TourIndex,
bool VisibleFlag);
virtual void TourDelete (unsigned int TourIndex);
vector<TripDiagramTourInfoType> TourInfoArray;
vector<TripDiagramTourViewType> TourViewArray;
private :
};
// Specialization of base classes
class TripDiagramSubTourArrayStorageClass
{
public :
TripDiagramSubTourArrayStorageClass (const TripDiagramTourDataClass
*TourDataPtr,
const TripDiagramRouteDataClass
*RouteDataPtr);
void SetStopArray(const vector<string>
&StopIdStrArray);
virtual unsigned int Count (void) const;
virtual TripDiagramTourPtrClass operator[](unsigned int Index) const;
private :
const TripDiagramTourDataClass *TourDataPtr;
const TripDiagramRouteDataClass *RouteDataPtr;
};
#endif
| [
"[email protected]"
] | [
[
[
1,
214
]
]
] |
873bf699d4bc45e1d0f774e665f2fd0dda0eb97e | 27d5670a7739a866c3ad97a71c0fc9334f6875f2 | /CPP/Targets/SupportWFLib/symbian/DistanceBitmap.h | 689128145abd43963e9db01e253189dd3cd58103 | [
"BSD-3-Clause"
] | permissive | ravustaja/Wayfinder-S60-Navigator | ef506c418b8c2e6498ece6dcae67e583fb8a4a95 | 14d1b729b2cea52f726874687e78f17492949585 | refs/heads/master | 2021-01-16T20:53:37.630909 | 2010-06-28T09:51:10 | 2010-06-28T09:51:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,283 | h | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the Vodafone Group Services Ltd nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef DISTANCE_BITMAP_H
#define DISTANCE_BITMAP_H
class CAnimatorFrame;
#define MAX_NUM_DISTANCE_IMGS 9
class CDistanceBitmapHelper : public CBase
{
private:
void ConstructL(const TDesC& aMbmName,
const TInt* aMbmImageIds,
const TReal* aMbmImageRelations);
CDistanceBitmapHelper();
public:
static class CDistanceBitmapHelper* NewL(const TDesC& aMbmName,
const TInt* aMbmImageIds,
const TReal* aMbmImageRelations = NULL);
static class CDistanceBitmapHelper* NewLC(const TDesC& aMbmName,
const TInt* aMbmImageIds,
const TReal* aMbmImageRelations = NULL);
~CDistanceBitmapHelper();
TPtrC GetMbmName() const;
TInt GetMbmBitmapId( TInt idx ) const;
CAnimatorFrame *GetBitmapL(TInt id);
CAnimatorFrame *GetDistanceBitmapL(const char character);
void UpdateBitmapSize();
void SetNightModeL( TBool aOn );
enum ImageIds {
ImageIdNumber_0 = 0,
ImageIdNumber_1,
ImageIdNumber_2,
ImageIdNumber_3,
ImageIdNumber_4,
ImageIdNumber_5,
ImageIdNumber_6,
ImageIdNumber_7,
ImageIdNumber_8,
ImageIdNumber_9,
ImageIdNumber_d,
ImageIdNumber_dot2,
ImageIdNumber_f,
ImageIdNumber_i,
ImageIdNumber_k,
ImageIdNumber_m2,
ImageIdNumber_t,
ImageIdNumber_y,
ImageIdNumber_infinite,
ImageIdNumber_night_0,
ImageIdNumber_night_1,
ImageIdNumber_night_2,
ImageIdNumber_night_3,
ImageIdNumber_night_4,
ImageIdNumber_night_5,
ImageIdNumber_night_6,
ImageIdNumber_night_7,
ImageIdNumber_night_8,
ImageIdNumber_night_9,
ImageIdNumber_night_d,
ImageIdNumber_night_dot2,
ImageIdNumber_night_f,
ImageIdNumber_night_i,
ImageIdNumber_night_k,
ImageIdNumber_night_m2,
ImageIdNumber_night_t,
ImageIdNumber_night_y,
ImageIdNumber_night_infinite,
ImageIdNumber_border_right,
ImageIdNumber_border_left,
ImageIdNumber_night_border_right,
ImageIdNumber_night_border_left,
ImageIdNumberBorder_right_m,
ImageIdNumberBorder_left_m,
ImageIdMap_top_border,
ImageIdMedium_mask
};
private:
const TInt* iMbmImageIds;
const TReal* iMbmImageRelations;
CAnimatorFrame **iBitmapCache;
HBufC* iMbmName;
TBool iNightMode;
};
class CDistanceBitmap : public CCoeControl
{
private:
void ConstructL( CDistanceBitmapHelper* aFontCache,
const TRect& aRect,
TInt aNumber_border_right,
TInt aNumber_border_right_night,
TInt aNumber_border_left,
TInt aNumber_border_left_night,
TInt aNumber_border_right_m,
TInt aNumber_border_left_m,
TInt aNumber_border_right_night_m = 0,
TInt aNumber_border_left_night_m = 0,
class CSurface* aSurface = NULL );
CDistanceBitmap();
public:
static class CDistanceBitmap* NewL( class CCoeControl& aParent,
class CDistanceBitmapHelper* aFontCache,
const TRect& aRect,
TInt aNumber_border_right,
TInt aNumber_border_right_night,
TInt aNumber_border_left,
TInt aNumber_border_left_night,
TInt aNumber_border_right_m,
TInt aNumber_border_left_m,
TInt aNumber_border_right_night_m = 0,
TInt aNumber_border_left_night_m = 0,
class CSurface* aSurface = NULL );
static class CDistanceBitmap* NewLC( class CCoeControl& aParent,
class CDistanceBitmapHelper* aFontCache,
const TRect& aRect,
TInt aNumber_border_right,
TInt aNumber_border_right_night,
TInt aNumber_border_left,
TInt aNumber_border_left_night,
TInt aNumber_border_right_m,
TInt aNumber_border_left_m,
TInt aNumber_border_right_night_m = 0,
TInt aNumber_border_left_night_m = 0,
class CSurface* aSurface = NULL );
~CDistanceBitmap();
/**
* Will take ownership of distanceString.
*/
void SetDistanceL(char *distanceString);
void SetDistanceL(const TDesC& aDistance);
void SetDistanceBitmapL(TInt index,
CFbsBitmap* bitmap,
CFbsBitmap* mask,
TPoint pos);
void SetNightModeL( TBool aOn );
void RecalculateBitmaps(char *distanceString);
void UpdatePosAndSize(const TRect& aRect);
public:
/* From base class */
/**
* From CCoeControl,ComponentControl.
*/
virtual void SizeChanged();
/**
* From CoeControl,CountComponentControls.
*/
TInt CountComponentControls() const;
/**
* From CCoeControl,ComponentControl.
*/
CCoeControl* ComponentControl(TInt aIndex) const;
/**
* From CCoeControl,Draw.
*/
void Draw(const TRect& aRect) const;
TRect getDistanceRect() const { return iDistanceRect; }
private:
class CBitmapControl** iDistanceBitmaps;
TPoint iDistancePos[MAX_NUM_DISTANCE_IMGS];
class CDistanceBitmapHelper* iHelper;
char* iLastDistanceSet;
class CFbsBitmap* iRightBorderBitmap;
class CFbsBitmap* iRightBorderBitmapBu;
class CFbsBitmap* iLeftBorderBitmap;
class CFbsBitmap* iLeftBorderBitmapBu;
class CFbsBitmap* iRightBorderMask;
class CFbsBitmap* iLeftBorderMask;
class CSurface* iSurface;
TInt iRightBorderId;
TInt iRightBorderNightId;
TInt iRightBorderMaskId;
TInt iRightBorderNightMaskId;
TInt iLeftBorderId;
TInt iLeftBorderNightId;
TInt iLeftBorderMaskId;
TInt iLeftBorderNightMaskId;
TBool iNightMode;
TRect iDistanceRect;
};
#endif /* DISTANCE_BITMAP_H */
| [
"[email protected]"
] | [
[
[
1,
223
]
]
] |
3a2697e249654df6c0307e6e6ee7a01ca2073d57 | b2d46af9c6152323ce240374afc998c1574db71f | /cursovideojuegos/theflostiproject/3rdParty/boost/libs/serialization/example/demo_pimpl_A.cpp | 946c70636e1f51480be49a02299c2962f8e1d414 | [] | no_license | bugbit/cipsaoscar | 601b4da0f0a647e71717ed35ee5c2f2d63c8a0f4 | 52aa8b4b67d48f59e46cb43527480f8b3552e96d | refs/heads/master | 2021-01-10T21:31:18.653163 | 2011-09-28T16:39:12 | 2011-09-28T16:39:12 | 33,032,640 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,390 | cpp | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// demo_pimpl_A.cpp
// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "demo_pimpl_A.hpp"
// "hidden" definition of class B
struct B {
int b;
template<class Archive>
void serialize(Archive & ar, const unsigned int /* file_version */){
ar & b;
}
};
A::A() :
pimpl(new B)
{}
A::~A(){
delete pimpl;
}
// now we can define the serialization for class A
template<class Archive>
void A::serialize(Archive & ar, const unsigned int /* file_version */){
ar & pimpl;
}
// without the explicit instantiations below, the program will
// fail to link for lack of instantiantiation of the above function
// note: the following failed to fix link errors for vc 7.0 !
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
template void A::serialize<boost::archive::text_iarchive>(
boost::archive::text_iarchive & ar,
const unsigned int file_version
);
template void A::serialize<boost::archive::text_oarchive>(
boost::archive::text_oarchive & ar,
const unsigned int file_version
);
| [
"ohernandezba@71d53fa2-cca5-e1f2-4b5e-677cbd06613a"
] | [
[
[
1,
45
]
]
] |
c32d319d5d5b8eb21a6446a1e57a225559f34c6a | f752c7aac51783a27947ce2d70006d2644809a32 | /gcc4mbed/samples/SDFileSystem/main.cpp | a0f638c2cee3266514af4bba4a5420e5f35bb42f | [] | no_license | janczi/Smoothie | 197d57a4708f8bcd27ec981068da776d934852da | 436a2cd1a9230aba80814f38002c078fd5ba5272 | refs/heads/master | 2020-12-07T13:33:33.889532 | 2011-11-20T16:10:11 | 2011-11-20T16:10:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,290 | cpp | /* Copyright 2011 Adam Green (http://mbed.org/users/AdamGreen/)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/* LocalFileSystem test modified to use SD cards instead. */
#include "mbed.h"
#include "SDFileSystem.h"
#include "agutil.h"
extern "C" void HardFault_Handler(void)
{
DebugDumpStack();
error("\r\nHardFault\r\n");
}
extern "C" void MemManage_Handler(void)
{
DebugDumpStack();
error("\r\nMemManage\r\n");
}
extern "C" void BusFault_Handler(void)
{
DebugDumpStack();
error("\r\nBusFault\r\n");
}
extern "C" void UsageFault_Handler(void)
{
DebugDumpStack();
error("\r\nUsageFault\r\n");
}
extern "C" void SVC_Handler(void)
{
DebugDumpStack();
error("\r\nSVC Call\r\n");
}
extern "C" void DebugMon_Handler(void)
{
DebugDumpStack();
error("\r\nDebugMonitor\r\n");
}
extern "C" void PendSV_Handler(void)
{
DebugDumpStack();
error("\r\nPendSV\r\n");
}
extern "C" void SysTick_Handler(void)
{
DebugDumpStack();
error("\r\nSysTick");
}
void BreakHandler(void)
{
DebugDumpStack();
error("\r\nManual Break\r\n");
}
SDFileSystem sd(p5, p6, p7, p8, "sd"); // the pinout on the mbed Cool Components workshop board
InterruptIn BreakInterrupt(p9);
int main()
{
// If you pull p9 low, then it should break into a running program and dump the stack.
BreakInterrupt.mode(PullUp);
BreakInterrupt.fall(BreakHandler);
int Result = -1;
char Buffer[32];
printf("\r\n\r\nGCC4MBED Test Suite\r\n");
printf("sdFileSystem Unit Tests\r\n");
printf("Test 1: fopen() for write\r\n");
FILE *fp = fopen("/sd/out.txt", "w"); // Open "out.txt" on the sd file system for writing
if (NULL == fp)
{
error("%s(%d) fopen() failed\r\n", __FILE__, __LINE__);
}
printf("Test 2: fprintf()\r\n");
Result = fprintf(fp, "Hello World!");
if (Result < 0)
{
error("%s(%d) fprintf() failed\r\n", __FILE__, __LINE__);
}
printf("Test 3: fclose() on written file\r\n");
Result = fclose(fp);
if (0 != Result)
{
error("%s(%d) fclose() failed\r\n", __FILE__, __LINE__);
}
printf("Test 4: fopen() for read\r\n");
fp = fopen("/sd/out.txt", "r");
if (NULL == fp)
{
error("%s(%d) fopen() failed\r\n", __FILE__, __LINE__);
}
printf("Test 5: fscanf()\r\n");
Result = fscanf(fp, "%31s", Buffer);
if (EOF == Result)
{
error("%s(%d) fscanf() failed\r\n", __FILE__, __LINE__);
}
printf("Contents of /sd/out.txt: %s\r\n", Buffer);
printf("Test 6: fclose() on read file\r\n");
Result = fclose(fp);
if (0 != Result)
{
error("%s(%d) fclose() failed\r\n", __FILE__, __LINE__);
}
printf("Test 7: remove()\r\n");
Result = remove("/sd/out.txt"); // Removes the file "out.txt" from the sd file system
if (0 != Result)
{
error("%s(%d) remove() failed\r\n", __FILE__, __LINE__);
}
printf("Test 8: opendir()\r\n");
DIR *d = opendir("/sd"); // Opens the root directory of the sd file system
printf("test\r\n");
if (NULL == d)
{
error("%s(%d) opendir() failed\r\n", __FILE__, __LINE__);
}
struct dirent *p;
printf("Test 9: readir() for all entries\r\n");
while((p = readdir(d)) != NULL)
{ // Print the names of the files in the sd file system
printf("%s\r\n", p->d_name); // to stdout.
}
printf("Test 10: closedir\r\n");
closedir(d);
printf("\r\nTest completed\r\n");
}
| [
"[email protected]"
] | [
[
[
1,
169
]
]
] |
ceb8f3c32de6b24beb6fb4040c87e3189bfd9769 | 81e051c660949ac0e89d1e9cf286e1ade3eed16a | /quake3ce/code/cgame/cg_consolecmds.cpp | 7e15685cfd41721caf0b63358838f7ac96a75b81 | [] | no_license | crioux/q3ce | e89c3b60279ea187a2ebcf78dbe1e9f747a31d73 | 5e724f55940ac43cb25440a65f9e9e12220c9ada | refs/heads/master | 2020-06-04T10:29:48.281238 | 2008-11-16T15:00:38 | 2008-11-16T15:00:38 | 32,103,416 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,514 | cpp | /*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
Quake III Arena source code is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Foobar; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
//
// cg_consolecmds.c -- text commands typed in at the local console, or
// executed by a key binding
#include"cgame_pch.h"
#ifdef MISSIONPACK
extern menuDef_t *menuScoreboard;
#endif
void CG_TargetCommand_f( void ) {
int targetNum;
char test[4];
targetNum = CG_CrosshairPlayer();
if (!targetNum ) {
return;
}
_CG_trap_Argv( 1, test, 4 );
_CG_trap_SendConsoleCommand( va( "gc %i %i", targetNum, atoi( test ) ) );
}
/*
=================
CG_SizeUp_f
Keybinding command
=================
*/
static void CG_SizeUp_f (void) {
_CG_trap_Cvar_Set("cg_viewsize", va("%i",(cg_viewsize.integer+10)));
}
/*
=================
CG_SizeDown_f
Keybinding command
=================
*/
static void CG_SizeDown_f (void) {
_CG_trap_Cvar_Set("cg_viewsize", va("%i",(cg_viewsize.integer-10)));
}
/*
=============
CG_Viewpos_f
Debugging command to print the current position
=============
*/
static void CG_Viewpos_f (void) {
CG_Printf ("(%i %i %i) : %i\n", FIXED_TO_INT(cg.refdef.vieworg[0]),
FIXED_TO_INT(cg.refdef.vieworg[1]), FIXED_TO_INT(cg.refdef.vieworg[2]),
FIXED_TO_INT(cg.refdefViewAngles[YAW]));
}
static void CG_ScoresDown_f( void ) {
#ifdef MISSIONPACK
CG_BuildSpectatorString();
#endif
if ( cg.scoresRequestTime + 2000 < cg.time ) {
// the scores are more than two seconds out of data,
// so request new ones
cg.scoresRequestTime = cg.time;
_CG_trap_SendClientCommand( "score" );
// leave the current scores up if they were already
// displayed, but if this is the first hit, clear them out
if ( !cg.showScores ) {
cg.showScores = qtrue;
cg.numScores = 0;
}
} else {
// show the cached contents even if they just pressed if it
// is within two seconds
cg.showScores = qtrue;
}
}
static void CG_ScoresUp_f( void ) {
if ( cg.showScores ) {
cg.showScores = qfalse;
cg.scoreFadeTime = cg.time;
}
}
#ifdef MISSIONPACK
extern menuDef_t *menuScoreboard;
void Menu_Reset(); // FIXME: add to right include file
static void CG_LoadHud_f( void) {
char buff[1024];
const char *hudSet;
memset(buff, 0, sizeof(buff));
String_Init();
Menu_Reset();
_CG_trap_Cvar_VariableStringBuffer("cg_hudFiles", buff, sizeof(buff));
hudSet = buff;
if (hudSet[0] == '\0') {
hudSet = "ui/hud.txt";
}
CG_LoadMenus(hudSet);
menuScoreboard = NULL;
}
static void CG_scrollScoresDown_f( void) {
if (menuScoreboard && cg.scoreBoardShowing) {
Menu_ScrollFeeder(menuScoreboard, FEEDER_SCOREBOARD, qtrue);
Menu_ScrollFeeder(menuScoreboard, FEEDER_REDTEAM_LIST, qtrue);
Menu_ScrollFeeder(menuScoreboard, FEEDER_BLUETEAM_LIST, qtrue);
}
}
static void CG_scrollScoresUp_f( void) {
if (menuScoreboard && cg.scoreBoardShowing) {
Menu_ScrollFeeder(menuScoreboard, FEEDER_SCOREBOARD, qfalse);
Menu_ScrollFeeder(menuScoreboard, FEEDER_REDTEAM_LIST, qfalse);
Menu_ScrollFeeder(menuScoreboard, FEEDER_BLUETEAM_LIST, qfalse);
}
}
static void CG_spWin_f( void) {
_CG_trap_Cvar_Set("cg_cameraOrbit", "2");
_CG_trap_Cvar_Set("cg_cameraOrbitDelay", "35");
_CG_trap_Cvar_Set("cg_thirdPerson", "1");
_CG_trap_Cvar_Set("cg_thirdPersonAngle", "0");
_CG_trap_Cvar_Set("cg_thirdPersonRange", "100");
CG_AddBufferedSound(cgs.media.winnerSound);
//_CG_trap_S_StartLocalSound(cgs.media.winnerSound, CHAN_ANNOUNCER);
CG_CenterPrint("YOU WIN!", SCREEN_HEIGHT * .30, 0);
}
static void CG_spLose_f( void) {
_CG_trap_Cvar_Set("cg_cameraOrbit", "2");
_CG_trap_Cvar_Set("cg_cameraOrbitDelay", "35");
_CG_trap_Cvar_Set("cg_thirdPerson", "1");
_CG_trap_Cvar_Set("cg_thirdPersonAngle", "0");
_CG_trap_Cvar_Set("cg_thirdPersonRange", "100");
CG_AddBufferedSound(cgs.media.loserSound);
//_CG_trap_S_StartLocalSound(cgs.media.loserSound, CHAN_ANNOUNCER);
CG_CenterPrint("YOU LOSE...", SCREEN_HEIGHT * .30, 0);
}
#endif
static void CG_TellTarget_f( void ) {
int clientNum;
char command[128];
char message[128];
clientNum = CG_CrosshairPlayer();
if ( clientNum == -1 ) {
return;
}
_CG_trap_Args( message, 128 );
Com_sprintf( command, 128, "tell %i %s", clientNum, message );
_CG_trap_SendClientCommand( command );
}
static void CG_TellAttacker_f( void ) {
int clientNum;
char command[128];
char message[128];
clientNum = CG_LastAttacker();
if ( clientNum == -1 ) {
return;
}
_CG_trap_Args( message, 128 );
Com_sprintf( command, 128, "tell %i %s", clientNum, message );
_CG_trap_SendClientCommand( command );
}
static void CG_VoiceTellTarget_f( void ) {
int clientNum;
char command[128];
char message[128];
clientNum = CG_CrosshairPlayer();
if ( clientNum == -1 ) {
return;
}
_CG_trap_Args( message, 128 );
Com_sprintf( command, 128, "vtell %i %s", clientNum, message );
_CG_trap_SendClientCommand( command );
}
static void CG_VoiceTellAttacker_f( void ) {
int clientNum;
char command[128];
char message[128];
clientNum = CG_LastAttacker();
if ( clientNum == -1 ) {
return;
}
_CG_trap_Args( message, 128 );
Com_sprintf( command, 128, "vtell %i %s", clientNum, message );
_CG_trap_SendClientCommand( command );
}
#ifdef MISSIONPACK
static void CG_NextTeamMember_f( void ) {
CG_SelectNextPlayer();
}
static void CG_PrevTeamMember_f( void ) {
CG_SelectPrevPlayer();
}
// ASS U ME's enumeration order as far as task specific orders, OFFENSE is zero, CAMP is last
//
static void CG_NextOrder_f( void ) {
clientInfo_t *ci = cgs.clientinfo + cg.snap->ps.clientNum;
if (ci) {
if (!ci->teamLeader && sortedTeamPlayers[cg_currentSelectedPlayer.integer] != cg.snap->ps.clientNum) {
return;
}
}
if (cgs.currentOrder < TEAMTASK_CAMP) {
cgs.currentOrder++;
if (cgs.currentOrder == TEAMTASK_RETRIEVE) {
if (!CG_OtherTeamHasFlag()) {
cgs.currentOrder++;
}
}
if (cgs.currentOrder == TEAMTASK_ESCORT) {
if (!CG_YourTeamHasFlag()) {
cgs.currentOrder++;
}
}
} else {
cgs.currentOrder = TEAMTASK_OFFENSE;
}
cgs.orderPending = qtrue;
cgs.orderTime = cg.time + 3000;
}
static void CG_ConfirmOrder_f (void ) {
_CG_trap_SendConsoleCommand(va("cmd vtell %d %s\n", cgs.acceptLeader, VOICECHAT_YES));
_CG_trap_SendConsoleCommand("+button5; wait; -button5");
if (cg.time < cgs.acceptOrderTime) {
_CG_trap_SendClientCommand(va("teamtask %d\n", cgs.acceptTask));
cgs.acceptOrderTime = 0;
}
}
static void CG_DenyOrder_f (void ) {
_CG_trap_SendConsoleCommand(va("cmd vtell %d %s\n", cgs.acceptLeader, VOICECHAT_NO));
_CG_trap_SendConsoleCommand("+button6; wait; -button6");
if (cg.time < cgs.acceptOrderTime) {
cgs.acceptOrderTime = 0;
}
}
static void CG_TaskOffense_f (void ) {
if (cgs.gametype == GT_CTF || cgs.gametype == GT_1FCTF) {
_CG_trap_SendConsoleCommand(va("cmd vsay_team %s\n", VOICECHAT_ONGETFLAG));
} else {
_CG_trap_SendConsoleCommand(va("cmd vsay_team %s\n", VOICECHAT_ONOFFENSE));
}
_CG_trap_SendClientCommand(va("teamtask %d\n", TEAMTASK_OFFENSE));
}
static void CG_TaskDefense_f (void ) {
_CG_trap_SendConsoleCommand(va("cmd vsay_team %s\n", VOICECHAT_ONDEFENSE));
_CG_trap_SendClientCommand(va("teamtask %d\n", TEAMTASK_DEFENSE));
}
static void CG_TaskPatrol_f (void ) {
_CG_trap_SendConsoleCommand(va("cmd vsay_team %s\n", VOICECHAT_ONPATROL));
_CG_trap_SendClientCommand(va("teamtask %d\n", TEAMTASK_PATROL));
}
static void CG_TaskCamp_f (void ) {
_CG_trap_SendConsoleCommand(va("cmd vsay_team %s\n", VOICECHAT_ONCAMPING));
_CG_trap_SendClientCommand(va("teamtask %d\n", TEAMTASK_CAMP));
}
static void CG_TaskFollow_f (void ) {
_CG_trap_SendConsoleCommand(va("cmd vsay_team %s\n", VOICECHAT_ONFOLLOW));
_CG_trap_SendClientCommand(va("teamtask %d\n", TEAMTASK_FOLLOW));
}
static void CG_TaskRetrieve_f (void ) {
_CG_trap_SendConsoleCommand(va("cmd vsay_team %s\n", VOICECHAT_ONRETURNFLAG));
_CG_trap_SendClientCommand(va("teamtask %d\n", TEAMTASK_RETRIEVE));
}
static void CG_TaskEscort_f (void ) {
_CG_trap_SendConsoleCommand(va("cmd vsay_team %s\n", VOICECHAT_ONFOLLOWCARRIER));
_CG_trap_SendClientCommand(va("teamtask %d\n", TEAMTASK_ESCORT));
}
static void CG_TaskOwnFlag_f (void ) {
_CG_trap_SendConsoleCommand(va("cmd vsay_team %s\n", VOICECHAT_IHAVEFLAG));
}
static void CG_TauntKillInsult_f (void ) {
_CG_trap_SendConsoleCommand("cmd vsay kill_insult\n");
}
static void CG_TauntPraise_f (void ) {
_CG_trap_SendConsoleCommand("cmd vsay praise\n");
}
static void CG_TauntTaunt_f (void ) {
_CG_trap_SendConsoleCommand("cmd vtaunt\n");
}
static void CG_TauntDeathInsult_f (void ) {
_CG_trap_SendConsoleCommand("cmd vsay death_insult\n");
}
static void CG_TauntGauntlet_f (void ) {
_CG_trap_SendConsoleCommand("cmd vsay kill_guantlet\n");
}
static void CG_TaskSuicide_f (void ) {
int clientNum;
char command[128];
clientNum = CG_CrosshairPlayer();
if ( clientNum == -1 ) {
return;
}
Com_sprintf( command, 128, "tell %i suicide", clientNum );
_CG_trap_SendClientCommand( command );
}
/*
==================
CG_TeamMenu_f
==================
*/
/*
static void CG_TeamMenu_f( void ) {
if (_CG_trap_Key_GetCatcher() & KEYCATCH_CGAME) {
CG_EventHandling(CGAME_EVENT_NONE);
_CG_trap_Key_SetCatcher(0);
} else {
CG_EventHandling(CGAME_EVENT_TEAMMENU);
//_CG_trap_Key_SetCatcher(KEYCATCH_CGAME);
}
}
*/
/*
==================
CG_EditHud_f
==================
*/
/*
static void CG_EditHud_f( void ) {
//cls.keyCatchers ^= KEYCATCH_CGAME;
//VM_Call (cgvm, CG_EVENT_HANDLING, (cls.keyCatchers & KEYCATCH_CGAME) ? CGAME_EVENT_EDITHUD : CGAME_EVENT_NONE);
}
*/
#endif
/*
==================
CG_StartOrbit_f
==================
*/
static void CG_StartOrbit_f( void ) {
char var[MAX_TOKEN_CHARS];
_CG_trap_Cvar_VariableStringBuffer( "developer", var, sizeof( var ) );
if ( !atoi(var) ) {
return;
}
if (FIXED_NOT_ZERO(cg_cameraOrbit.value)) {
_CG_trap_Cvar_Set ("cg_cameraOrbit", "0");
_CG_trap_Cvar_Set("cg_thirdPerson", "0");
} else {
_CG_trap_Cvar_Set("cg_cameraOrbit", "5");
_CG_trap_Cvar_Set("cg_thirdPerson", "1");
_CG_trap_Cvar_Set("cg_thirdPersonAngle", "0");
_CG_trap_Cvar_Set("cg_thirdPersonRange", "100");
}
}
/*
static void CG_Camera_f( void ) {
char name[1024];
_CG_trap_Argv( 1, name, sizeof(name));
if (_CG_trap_loadCamera(name)) {
cg.cameraMode = qtrue;
_CG_trap_startCamera(cg.time);
} else {
CG_Printf ("Unable to load camera %s\n",name);
}
}
*/
typedef struct {
const char *cmd;
void (*function)(void);
} consoleCommand_t;
static consoleCommand_t commands[] = {
{ "testgun", CG_TestGun_f },
{ "testmodel", CG_TestModel_f },
{ "nextframe", CG_TestModelNextFrame_f },
{ "prevframe", CG_TestModelPrevFrame_f },
{ "nextskin", CG_TestModelNextSkin_f },
{ "prevskin", CG_TestModelPrevSkin_f },
{ "viewpos", CG_Viewpos_f },
{ "+scores", CG_ScoresDown_f },
{ "-scores", CG_ScoresUp_f },
{ "+zoom", CG_ZoomDown_f },
{ "-zoom", CG_ZoomUp_f },
{ "sizeup", CG_SizeUp_f },
{ "sizedown", CG_SizeDown_f },
{ "weapnext", CG_NextWeapon_f },
{ "weapprev", CG_PrevWeapon_f },
{ "weapon", CG_Weapon_f },
{ "tell_target", CG_TellTarget_f },
{ "tell_attacker", CG_TellAttacker_f },
{ "vtell_target", CG_VoiceTellTarget_f },
{ "vtell_attacker", CG_VoiceTellAttacker_f },
{ "tcmd", CG_TargetCommand_f },
#ifdef MISSIONPACK
{ "loadhud", CG_LoadHud_f },
{ "nextTeamMember", CG_NextTeamMember_f },
{ "prevTeamMember", CG_PrevTeamMember_f },
{ "nextOrder", CG_NextOrder_f },
{ "confirmOrder", CG_ConfirmOrder_f },
{ "denyOrder", CG_DenyOrder_f },
{ "taskOffense", CG_TaskOffense_f },
{ "taskDefense", CG_TaskDefense_f },
{ "taskPatrol", CG_TaskPatrol_f },
{ "taskCamp", CG_TaskCamp_f },
{ "taskFollow", CG_TaskFollow_f },
{ "taskRetrieve", CG_TaskRetrieve_f },
{ "taskEscort", CG_TaskEscort_f },
{ "taskSuicide", CG_TaskSuicide_f },
{ "taskOwnFlag", CG_TaskOwnFlag_f },
{ "tauntKillInsult", CG_TauntKillInsult_f },
{ "tauntPraise", CG_TauntPraise_f },
{ "tauntTaunt", CG_TauntTaunt_f },
{ "tauntDeathInsult", CG_TauntDeathInsult_f },
{ "tauntGauntlet", CG_TauntGauntlet_f },
{ "spWin", CG_spWin_f },
{ "spLose", CG_spLose_f },
{ "scoresDown", CG_scrollScoresDown_f },
{ "scoresUp", CG_scrollScoresUp_f },
#endif
{ "startOrbit", CG_StartOrbit_f },
//{ "camera", CG_Camera_f },
{ "loaddeferred", CG_LoadDeferredPlayers }
};
/*
=================
CG_ConsoleCommand
The string has been tokenized and can be retrieved with
Cmd_Argc() / Cmd_Argv()
=================
*/
qboolean CG_ConsoleCommand( void ) {
const char *cmd;
int i;
cmd = CG_Argv(0);
for ( i = 0 ; i < sizeof( commands ) / sizeof( commands[0] ) ; i++ ) {
if ( !Q_stricmp( cmd, commands[i].cmd ) ) {
commands[i].function();
return qtrue;
}
}
return qfalse;
}
/*
=================
CG_InitConsoleCommands
Let the client system know about all of our commands
so it can perform tab completion
=================
*/
void CG_InitConsoleCommands( void ) {
int i;
for ( i = 0 ; i < sizeof( commands ) / sizeof( commands[0] ) ; i++ ) {
_CG_trap_AddCommand( commands[i].cmd );
}
//
// the game server will interpret these commands, which will be automatically
// forwarded to the server after they are not recognized locally
//
_CG_trap_AddCommand ("kill");
_CG_trap_AddCommand ("say");
_CG_trap_AddCommand ("say_team");
_CG_trap_AddCommand ("tell");
_CG_trap_AddCommand ("vsay");
_CG_trap_AddCommand ("vsay_team");
_CG_trap_AddCommand ("vtell");
_CG_trap_AddCommand ("vtaunt");
_CG_trap_AddCommand ("vosay");
_CG_trap_AddCommand ("vosay_team");
_CG_trap_AddCommand ("votell");
_CG_trap_AddCommand ("give");
_CG_trap_AddCommand ("god");
_CG_trap_AddCommand ("notarget");
_CG_trap_AddCommand ("noclip");
_CG_trap_AddCommand ("team");
_CG_trap_AddCommand ("follow");
_CG_trap_AddCommand ("levelshot");
_CG_trap_AddCommand ("addbot");
_CG_trap_AddCommand ("setviewpos");
_CG_trap_AddCommand ("callvote");
_CG_trap_AddCommand ("vote");
_CG_trap_AddCommand ("callteamvote");
_CG_trap_AddCommand ("teamvote");
_CG_trap_AddCommand ("stats");
_CG_trap_AddCommand ("teamtask");
_CG_trap_AddCommand ("loaddefered"); // spelled wrong, but not changing for demo
}
| [
"jack.palevich@684fc592-8442-0410-8ea1-df6b371289ac",
"crioux@684fc592-8442-0410-8ea1-df6b371289ac"
] | [
[
[
1,
448
],
[
450,
578
]
],
[
[
449,
449
]
]
] |
b256787e8f7e592e4fd7d79c61bc5f1ac0e74b80 | 960a896c95a759a41a957d0e7dbd809b5929c999 | /Game/CellGui.h | a2a11c23a3e6f7b05e8d56e28e914e3ba2aae4a2 | [] | no_license | WSPSNIPER/dangerwave | 8cbd67a02eb45563414eaf9ecec779cc1a7f09d5 | 51af1171880104aa823f6ef8795a2f0b85b460d8 | refs/heads/master | 2016-08-12T09:50:00.996204 | 2010-08-24T22:55:52 | 2010-08-24T22:55:52 | 48,472,531 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 210 | h | #ifndef _CELL_GUI_H__
#define _CELL_GUI_H__
#include "Button.h"
// all includes here
/// looks like this only the file with all the includes
namespace gui
{
extern void INIT_GUI();
}
#endif
| [
"michaelbond2008@e78017d1-81bd-e181-eab4-ba4b7880cff6"
] | [
[
[
1,
13
]
]
] |
80eecee371312f85f18705f23de8df0b323b7f7f | 9c2a6fd19d8d1fede218b99749fc48d5123b248a | /3rdParty/Htmlayout/api/htmlayout_dom.hpp | 1b4307c69b65bd1089abf14fce360ab6a76fda54 | [] | no_license | ans-ashkan/expemerent | 0f6bed7e630301f63e71992e3fbad70a0075082a | 054c33f55408d1274c50a2d6eb4cbc5295c92739 | refs/heads/master | 2021-01-15T22:15:18.929759 | 2008-12-21T00:40:52 | 2008-12-21T00:40:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 44,070 | hpp | /*
* Terra Informatica Lightweight Embeddable HTMLayout control
* http://terrainformatica.com/htmlayout
*
* HTMLayout DOM implementation. C++ wrapper
*
* The code and information provided "as-is" without
* warranty of any kind, either expressed or implied.
*
* (C) 2003-2004, Andrew Fedoniouk ([email protected])
*/
/**\file
* \brief \link htmlayout_dom.h DOM \endlink C++ wrapper
**/
#ifndef __htmlayout_dom_hpp__
#define __htmlayout_dom_hpp__
#include "value.h"
#include "htmlayout_dom.h"
#include "htmlayout_aux.h"
#include "htmlayout_queue.h"
#include <assert.h>
#include <stdio.h> // for vsnprintf
#pragma warning(disable:4786) //identifier was truncated...
#pragma warning(disable:4996) //'strcpy' was declared deprecated
#pragma warning(disable:4100) //unreferenced formal parameter
#pragma once
/**htmlayout namespace.*/
namespace htmlayout
{
/**dom namespace.*/
namespace dom
{
/**callback structure.
* Used with #htmlayout::dom::element::select() function.
**/
struct callback
{
/**Is called for every element that match criteria specified when calling to #htmlayout::dom::element::select() function.*/
virtual bool on_element(HELEMENT he) = 0;
};
class expando; // DOM element expando structure
/**DOM element.
Smart pointer, pretty much std::shared_ptr thing */
class element
{
protected:
HELEMENT he;
void use(HELEMENT h) { he = (HTMLayout_UseElement(h) == HLDOM_OK)? h: 0; }
void unuse() { if(he) HTMLayout_UnuseElement(he); he = 0; }
void set(HELEMENT h) { unuse(); use(h); }
public:
/**Construct \c undefined element .
**/
element(): he(0) { }
/**Construct \c element from existing element handle.
* \param h \b #HELEMENT
**/
element(HELEMENT h) { use(h); }
/**Copy constructor;
* \param e \b #element
**/
element(const element& e) { use(e.he); }
operator HELEMENT() const { return he; }
/**Destructor.*/
~element() { unuse(); }
/**Assign \c element an \c #HELEMENT
* \param h \b #HELEMENT
* \return \b #element&
**/
element& operator = (HELEMENT h) { set(h); return *this; }
/**Assign \c element another \c #element
* \param e \b #element
* \return \b #element&
**/
element& operator = (const element& e) { set(e.he); return *this; }
/**Test equality of this and another \c #element's
* \param rs \b const \b #element
* \return \b bool, true if elements are equal, false otherwise
**/
bool operator == (const element& rs ) const { return he == rs.he; }
bool operator == (HELEMENT rs ) const { return he == rs; }
/**Test equality of this and another \c #element's
* \param rs \b const \b #element
* \return \b bool, true if elements are not equal, false otherwise
**/
bool operator != (const element& rs ) const { return he != rs.he; }
/**Test whether element is valid.
* \return \b bool, true if element is valid, false otherwise
**/
bool is_valid() const { return he != 0; }
/**Tests whether element is memeber of the DOM or is it detached.
* \return \b bool, true if element is in the DOM, false otherwise
**/
bool is_alive() const { return root() != 0; }
/**Get number of child elements.
* \return \b int, number of child elements
**/
unsigned int children_count() const
{
UINT count = 0;
HTMLayoutGetChildrenCount(he, &count);
return count;
}
/**Get Nth child element.
* \param index \b unsigned \b int, number of the child element
* \return \b #HELEMENT, child element handle
**/
HELEMENT child( unsigned int index ) const
{
HELEMENT child = 0;
HTMLayoutGetNthChild(he, index, &child);
return child;
}
/**Get parent element.
* \return \b #HELEMENT, handle of the parent element
**/
HELEMENT parent( ) const
{
HELEMENT hparent = 0;
HTMLayoutGetParentElement(he, &hparent);
return hparent;
}
/**Get index of this element in its parent collection.
* \return \b unsigned \b int, index of this element in its parent collection
**/
unsigned int index( ) const
{
UINT index = 0;
HTMLayoutGetElementIndex(he, &index);
return index;
}
/**Get number of the attributes.
* \return \b unsigned \b int, number of the attributes
**/
unsigned int get_attribute_count( ) const
{
UINT n = 0;
HTMLayoutGetAttributeCount(he, &n);
return n;
}
/**Get attribute value by its index.
* \param n \b unsigned \b int, number of the attribute
* \return \b const \b wchar_t*, value of the n-th attribute
**/
const wchar_t* get_attribute( unsigned int n ) const
{
LPCWSTR lpw = 0;
HTMLayoutGetNthAttribute(he, n, 0, &lpw);
return lpw;
}
/**Get attribute name by its index.
* \param n \b unsigned \b int, number of the attribute
* \return \b const \b char*, name of the n-th attribute
**/
const char* get_attribute_name( unsigned int n ) const
{
LPCSTR lpc = 0;
HTMLayoutGetNthAttribute(he, n, &lpc, 0);
return lpc;
}
/**Get attribute value by name.
* \param name \b const \b char*, name of the attribute
* \return \b const \b wchar_t*, value of the n-th attribute
**/
const wchar_t* get_attribute( const char* name ) const
{
LPCWSTR lpw = 0;
HTMLayoutGetAttributeByName(he, name, &lpw);
return lpw;
}
/**Add or replace attribute.
* \param name \b const \b char*, name of the attribute
* \param value \b const \b wchar_t*, name of the attribute
**/
void set_attribute( const char* name, const wchar_t* value )
{
HTMLayoutSetAttributeByName(he, name, value);
}
/**Get attribute integer value by name.
* \param name \b const \b char*, name of the attribute
* \return \b int , value of the attribute
**/
int get_attribute_int( const char* name, int def_val = 0 ) const
{
const wchar_t* txt = get_attribute(name);
if(!txt) return def_val;
return _wtoi(txt);
}
/**Special form of get attribute value by name, it tries to get value from attribute
* collection and if fails then from custom style attribute (that has to start from '-')
* \param name \b const \b char*, name of the attribute that shall start from "-" sign
* \return \b const wchar_t* , value of the attribute
**/
const wchar_t* attribute( const char* name, const wchar_t* default_value ) const
{
assert(name[0] == '-');
const wchar_t* txt = get_attribute(name+1);
if(txt) return txt;
txt = get_style_attribute(name);
if(txt) return txt;
return default_value;
}
int attribute( const char* name, int default_value ) const
{
wchar_t none[1] = {0};
const wchar_t* txt = attribute( name, none );
if(txt == none) return default_value;
return aux::wtoi(txt,default_value);
}
color attribute( const char* name, color default_value ) const
{
wchar_t none[1] = {0};
const wchar_t* txt = attribute( name, none );
if(txt == none) return default_value;
return color::parse(aux::chars_of(txt), default_value);
}
/**Remove attribute.
* \param name \b const \b char*, name of the attribute
**/
void remove_attribute( const char* name )
{
HTMLayoutSetAttributeByName(he, name, 0);
}
/**Get style attribute of the element by its name.
* \param name \b const \b char*, name of the style attribute, e.g. "background-color"
* \return \b const \b wchar_t*, value of the style attribute
*
* Also all style attributes of the element are available in "style" attribute of the element.
**/
const wchar_t* get_style_attribute( const char* name ) const
{
LPCWSTR lpw = 0;
HTMLayoutGetStyleAttribute(he, name, &lpw);
return lpw;
}
/**Set style attribute.
* \param name \b const \b char*, name of the style attribute
* \param value \b const \b wchar_t*, value of the style attribute
*
* \par Example:
* \code e.set_style_attribute("background-color", L"red"); \endcode
**/
void set_style_attribute( const char* name, const wchar_t* value )
{
HTMLayoutSetStyleAttribute(he, name, value);
}
/** Clear style attribute that was defined by set_style_attribute.
* \param name \b const \b char*, name of the style attribute
*
* \par Example:
* \code e.clear_style_attribute("background-color"); \endcode
**/
void clear_style_attribute( const char* name )
{
HTMLayoutSetStyleAttribute(he, name, 0);
}
/** Clear all style attribute that was defined by set_style_attribute.
*/
void clear_all_style_attributes()
{
HTMLayoutSetStyleAttribute(he, 0, 0);
}
/**Get root DOM element of the HTMLayout document.
* \param hHTMLayoutWnd \b HWND, HTMLayout window
* \return \b #HELEMENT, root element
* \see also \b #root
**/
static HELEMENT root_element(HWND hHTMLayoutWnd)
{
HELEMENT h = 0;
HTMLayoutGetRootElement(hHTMLayoutWnd,&h);
return h;
}
/**Get focus DOM element of the HTMLayout document.
* \param hHTMLayoutWnd \b HWND, HTMLayout window
* \return \b #HELEMENT, focus element
*
* COMMENT: to set focus use: set_state(STATE_FOCUS)
*
**/
static HELEMENT focus_element(HWND hHTMLayoutWnd)
{
HELEMENT h = 0;
HTMLayoutGetFocusElement(hHTMLayoutWnd,&h);
return h;
}
/**Find DOM element of the HTMLayout document by coordinates.
* \param hHTMLayoutWnd \b HWND, HTMLayout window
* \param clientPt \b POINT, coordinates.
* \return \b #HELEMENT, found element handle or zero
**/
static HELEMENT find_element(HWND hHTMLayoutWnd, POINT clientPt)
{
HELEMENT h = 0;
HTMLayoutFindElement(hHTMLayoutWnd, clientPt, &h);
return h;
}
/**Set mouse capture.
* After call to this function all mouse events will be targeted to this element.
* To remove mouse capture call #htmlayout::dom::element::release_capture().
**/
void set_capture() { HTMLayoutSetCapture(he); }
/**Release mouse capture.
* Mouse capture can be set with #element:set_capture()
**/
static void release_capture() { ReleaseCapture(); }
inline static BOOL CALLBACK callback_func( HELEMENT he, LPVOID param )
{
callback *pcall = (callback *)param;
return pcall->on_element(he)? TRUE:FALSE; // TRUE - stop enumeration
}
/**Enumerate all descendant elements.
* \param pcall \b #htmlayout::dom::callback*, callback structure. Its member function #htmlayout::dom::callback::on_element() is called for every enumerated element.
* \param tag_name \b const \b char*, comma separated list of tag names to search, e.g. "div", "p", "div,p" etc. Can be NULL.
* \param attr_name \b const \b char*, name of attribute, can contain wildcard characters, see below. Can be NULL.
* \param attr_value \b const \b char*, name of attribute, can contain wildcard characters, see below. Can be NULL.
* \param depth \b int, depth - depth of search. 0 means all descendants, 1 - direct children only,
* 2 - children and their children and so on.
*
* Wildcard characters in attr_name and attr_value:
* - '*' - any substring
* - '?' - any one char
* - '['char set']' = any one char in set
*
* \par Example:
* - [a-z] - all lowercase letters
* - [a-zA-Z] - all letters
* - [abd-z] - all lowercase letters except of 'c'
* - [-a-z] - all lowercase letters and '-'
*
* \par Example:
* \code document.select(mycallback, "a", "href", "http:*.php"); \endcode
* will call mycallback.on_element() on each <A> element in the document
* having 'href' attribute with value
* starting from "http:" and ending with ".php"
*
* \par Example:
* \code document.select(mycallback); \endcode
* will enumerate ALL elements in the document.
**/
inline void select( callback *pcall,
const char* tag_name = 0,
const char* attr_name = 0,
const wchar_t* attr_value = 0,
int depth = 0) const
{
HTMLayoutVisitElements( he, tag_name, attr_name, attr_value, callback_func, pcall, depth);
}
inline void select_elements( callback *pcall,
const char* selectors // CSS selectors, comma separated list
) const
{
HTMLayoutSelectElements( he, selectors, callback_func, pcall);
}
inline void select_elements( callback *pcall,
const wchar_t* selectors // CSS selectors, comma separated list
) const
{
HTMLayoutSelectElementsW( he, selectors, callback_func, pcall);
}
/**Get element by id.
* \param id \b char*, value of the "id" attribute.
* \return \b #HELEMENT, handle of the first element with the "id" attribute equal to given.
**/
HELEMENT get_element_by_id(const char* id) const
{
find_first_callback cb;
select(&cb,0,"id",aux::a2w(id));
return cb.hfound;
}
HELEMENT get_element_by_id(const wchar_t* id) const
{
find_first_callback cb;
select(&cb,0,"id",id);
return cb.hfound;
}
/** Request update of styles and/or position of the element and refresh element area in its window.
* \param[in] remeasure \b bool, true if method element will be redrawn immediately.
*
* This method is optional since v 3.3.0.4
* Engine will call update internaly when handling DOM mutating methods.
*
**/
void update( bool remeasure = false ) const
{
HTMLayoutUpdateElement(he, remeasure? TRUE:FALSE);
}
/**Apply changes and refresh element area in its window.
* \param[in] render_now \b bool, if true element will be redrawn immediately.
**/
void update( int mode ) const
{
HTMLayoutUpdateElementEx(he, mode);
}
/**Get next sibling element.
* \return \b #HELEMENT, handle of the next sibling element if it exists or 0 otherwise
**/
HELEMENT next_sibling() const
{
unsigned int idx = index() + 1;
element pel = parent();
if(!pel.is_valid())
return 0;
if( idx >= pel.children_count() )
return 0;
return pel.child(idx);
}
/**Get previous sibling element.
* \return \b #HELEMENT, handle of previous sibling element if it exists or 0 otherwise
**/
HELEMENT prev_sibling() const
{
int idx = (int)index() - 1;
element pel = parent();
if(!pel.is_valid())
return 0;
if( idx < 0 )
return 0;
return pel.child(idx);
}
/**Get first sibling element.
* \return \b #HELEMENT, handle of the first sibling element if it exists or 0 otherwise
**/
HELEMENT first_sibling() const
{
element pel = parent();
if(!pel.is_valid())
return 0;
return pel.child(0);
}
/**Get last sibling element.
* \return \b #HELEMENT, handle of last sibling element if it exists or 0 otherwise
**/
HELEMENT last_sibling() const
{
element pel = parent();
if(!pel.is_valid())
return 0;
return pel.child(pel.children_count() - 1);
}
/**Get root of the element
* \return \b #HELEMENT, handle of document root element (html)
**/
HELEMENT root() const
{
element pel = parent();
if(pel.is_valid()) return pel.root();
return he;
}
/**Get bounding rectangle of the element.
* \param root_relative \b bool, if true function returns location of the
* element relative to HTMLayout window, otherwise the location is given
* relative to first scrollable container.
* \return \b RECT, bounding rectangle of the element.
**/
RECT get_location(unsigned int area = ROOT_RELATIVE | CONTENT_BOX) const
{
RECT rc = {0,0,0,0};
HTMLayoutGetElementLocation(he,&rc, area);
return rc;
}
/** Test if point is inside shape rectangle of the element.
client_pt - client rect relative point
**/
bool is_inside( POINT client_pt ) const
{
RECT rc = get_location(ROOT_RELATIVE | BORDER_BOX);
return PtInRect(&rc,client_pt) != FALSE;
}
/**Scroll this element to view.
**/
void scroll_to_view(bool toTopOfView = false, bool smooth = false)
{
UINT flags = 0;
if(toTopOfView) flags |= SCROLL_TO_TOP;
if(smooth) flags |= SCROLL_SMOOTH;
HTMLayoutScrollToView(he,flags);
}
void get_scroll_info(POINT& scroll_pos, RECT& view_rect, SIZE& content_size)
{
HLDOM_RESULT r = HTMLayoutGetScrollInfo(he, &scroll_pos, &view_rect, &content_size);
assert(r == HLDOM_OK); r;
}
void set_scroll_pos(POINT scroll_pos, bool smooth = true)
{
HLDOM_RESULT r = HTMLayoutSetScrollPos(he, scroll_pos, BOOL(smooth));
assert(r == HLDOM_OK); r;
}
/**Get element's type.
* \return \b const \b char*, name of the elements type
*
* \par Example:
* For <div> tag function will return "div".
**/
const char* get_element_type() const
{
LPCSTR str = 0;
HTMLayoutGetElementType(he,&str);
return str;
}
/**Get HWND of containing window.
* \param root_window \b bool, handle of which window to get:
* - true - HTMLayout window
* - false - nearest parent element having overflow:auto or :scroll
* \return \b HWND
**/
HWND get_element_hwnd(bool root_window)
{
HWND hwnd = 0;
HTMLayoutGetElementHwnd(he,&hwnd, root_window? TRUE : FALSE);
return hwnd;
}
/**Get element UID - identifier suitable for storage.
* \return \b UID
**/
UINT get_element_uid()
{
UINT uid = 0;
HTMLayoutGetElementUID(he,&uid);
return uid;
}
/**Get element handle by its UID.
* \param hHTMLayoutWnd \b HWND, HTMLayout window
* \param uid \b UINT, uid of the element
* \return \b #HELEMENT, handle of element with the given uid or 0 if not found
**/
static HELEMENT element_by_uid(HWND hHTMLayoutWnd, UINT uid)
{
HELEMENT h = 0;
HTMLayoutGetElementByUID(hHTMLayoutWnd, uid,&h);
return h;
}
/**Combine given URL with URL of the document element belongs to.
* \param[in, out] inOutURL \b LPWSTR, at input this buffer contains
* zero-terminated URL to be combined, after function call it contains
* zero-terminated combined URL
* \param bufferSize \b UINT, size of the buffer pointed by \c inOutURL
**/
void combine_url(LPWSTR inOutURL, UINT bufferSize)
{
HTMLayoutCombineURL(he,inOutURL,bufferSize);
}
/**Set inner or outer html of the element.
* \param html \b const \b unsigned \b char*, UTF-8 encoded string containing html text
* \param html_length \b size_t, length in bytes of \c html
* \param where \b int, possible values are:
* - SIH_REPLACE_CONTENT - replace content of the element
* - SIH_INSERT_AT_START - insert html before first child of the element
* - SIH_APPEND_AFTER_LAST - insert html after last child of the element
**/
void set_html( const unsigned char* html, size_t html_length, int where = SIH_REPLACE_CONTENT)
{
if(html == 0 || html_length == 0)
clear();
else
{
HLDOM_RESULT r = HTMLayoutSetElementHtml(he, html, DWORD(html_length), where);
assert(r == HLDOM_OK); r;
}
}
const unsigned char*
get_html( bool outer = true) const
{
unsigned char* utf8bytes = 0;
HLDOM_RESULT r = HTMLayoutGetElementHtml(he, &utf8bytes, outer? TRUE:FALSE);
assert(r == HLDOM_OK); r;
return utf8bytes;
}
// get text as utf8 bytes
const unsigned char* get_text() const
{
unsigned char* utf8bytes = 0;
HLDOM_RESULT r = HTMLayoutGetElementInnerText(he, &utf8bytes);
assert(r == HLDOM_OK); r;
return utf8bytes;
}
// get text as wchar_t words
const wchar_t* text() const
{
wchar_t* utf16words = 0;
HLDOM_RESULT r = HTMLayoutGetElementInnerText16(he, &utf16words);
assert(r == HLDOM_OK); r;
return utf16words;
}
void set_text(const wchar_t* utf16, size_t utf16_length)
{
HLDOM_RESULT r = HTMLayoutSetElementInnerText16(he, utf16, (UINT)utf16_length);
assert(r == HLDOM_OK); r;
}
void set_text(const wchar_t* t)
{
assert(t);
if( t ) set_text( t, wcslen(t) );
}
void clear() // clears content of the element
{
HLDOM_RESULT r = HTMLayoutSetElementInnerText16(he, L"", 0);
assert(r == HLDOM_OK); r;
}
/**Delete element.
* This function removes element from the DOM tree and then deletes it.
**/
void destroy()
{
HTMLayoutDeleteElement(he);
unuse();
}
// Find first child element matching the selector
// :root is the element itself
HELEMENT find_first( const char* selector, ... ) const
{
char buffer[2049]; buffer[0]=0;
va_list args;
va_start ( args, selector );
_vsnprintf( buffer, 2048, selector, args );
va_end ( args );
find_first_callback find_first;
select_elements( &find_first, buffer); // find first element satisfying given CSS selector
//assert(find_first.hfound);
return find_first.hfound;
}
// Find first child element matching the selector
// :root is the element itself
HELEMENT find_first( const wchar_t* selector, ... ) const
{
wchar_t buffer[2049]; buffer[0]=0;
va_list args;
va_start ( args, selector );
_vsnwprintf( buffer, 2048, selector, args );
va_end ( args );
find_first_callback find_first;
select_elements( &find_first, aux::w2a(buffer)); // find first element satisfying given CSS selector
//assert(find_first.hfound);
return find_first.hfound;
}
// Find all child elements matching the selector
// :root is the element itself
void find_all( callback* cb, const char* selector, ... ) const
{
char buffer[2049]; buffer[0]=0;
va_list args;
va_start ( args, selector );
_vsnprintf( buffer, 2048, selector, args );
va_end ( args );
select_elements( cb, buffer); // find all elements satisfying given CSS selector
//assert(find_first.hfound);
}
// Find all child elements matching the selector
// :root is the element itself
void find_all( callback* cb, const wchar_t* selector, ... ) const
{
wchar_t buffer[2049]; buffer[0]=0;
va_list args;
va_start ( args, selector );
_vsnwprintf( buffer, 2048, selector, args );
va_end ( args );
select_elements( cb, buffer); // find all elements satisfying given CSS selector
//assert(find_first.hfound);
}
// will find first parent satisfying given css selector(s), will check element itself
// :root is document root object
HELEMENT find_nearest_parent(const char* selector, ...) const
{
char buffer[2049]; buffer[0]=0;
va_list args;
va_start ( args, selector );
_vsnprintf( buffer, 2048, selector, args );
va_end ( args );
HELEMENT heFound = 0;
HLDOM_RESULT r = HTMLayoutSelectParent(he, buffer, 0, &heFound);
assert(r == HLDOM_OK); r;
return heFound;
}
// will find first parent satisfying given css selector(s), will check element itself
// :root is document root object
HELEMENT find_nearest_parent(const wchar_t* selector, ...) const
{
wchar_t buffer[2049]; buffer[0]=0;
va_list args;
va_start ( args, selector );
_vsnwprintf( buffer, 2048, selector, args );
va_end ( args );
HELEMENT heFound = 0;
HLDOM_RESULT r = HTMLayoutSelectParentW(he, buffer, 0, &heFound);
assert(r == HLDOM_OK); r;
return heFound;
}
// test this element against CSS selector(s)
// :root is document root object
bool test(const char* selector, ...) const
{
char buffer[2049]; buffer[0]=0;
va_list args;
va_start ( args, selector );
_vsnprintf( buffer, 2048, selector, args );
va_end ( args );
HELEMENT heFound = 0;
HLDOM_RESULT r = HTMLayoutSelectParent(he, buffer, 1, &heFound);
assert(r == HLDOM_OK); r;
return heFound != 0;
}
// test this element against CSS selector(s)
// :root is document root object
bool test(const wchar_t* selector, ...) const
{
wchar_t buffer[2049]; buffer[0]=0;
va_list args;
va_start ( args, selector );
_vsnwprintf( buffer, 2048, selector, args );
va_end ( args );
HELEMENT heFound = 0;
HLDOM_RESULT r = HTMLayoutSelectParentW(he, buffer, 1, &heFound);
assert(r == HLDOM_OK); r;
return heFound != 0;
}
/**Get UI state bits of the element as set of ELEMENT_STATE_BITS
**/
unsigned int get_state() const
{
UINT state = 0;
HLDOM_RESULT r = HTMLayoutGetElementState(he,&state);
assert(r == HLDOM_OK); r;
return (ELEMENT_STATE_BITS) state;
}
/**Checks if particular UI state bits are set in the element.
**/
bool get_state(/*ELEMENT_STATE_BITS*/ unsigned int bits) const
{
UINT state = 0;
HLDOM_RESULT r = HTMLayoutGetElementState(he,&state);
assert(r == HLDOM_OK); r;
return (state & bits) != 0;
}
/**Set UI state of the element with optional view update.
**/
void set_state(
/*ELEMENT_STATE_BITS*/ unsigned int bitsToSet,
/*ELEMENT_STATE_BITS*/ unsigned int bitsToClear = 0, bool update = true )
{
HLDOM_RESULT r = HTMLayoutSetElementState(he,bitsToSet,bitsToClear, update?TRUE:FALSE);
assert(r == HLDOM_OK); r;
}
void toggle_state(/*ELEMENT_STATE_BITS*/ unsigned int bitsToSet, bool onOff)
{
HLDOM_RESULT r = HTMLayoutSetElementState(he,onOff?bitsToSet:0, onOff?0:bitsToSet, TRUE);
assert(r == HLDOM_OK); r;
}
void start_timer(UINT millis, UINT tid = 0)
{
HLDOM_RESULT r = HTMLayoutSetTimer(he, millis);
//HTMLayoutSetTimerEx(he, millis, tid);
assert(r == HLDOM_OK); r;
}
void stop_timer(UINT tid = 0)
{
HLDOM_RESULT r = HTMLayoutSetTimer(he, 0);
//HTMLayoutSetTimerEx(he, 0, tid);
assert(r == HLDOM_OK); r;
}
/** "deeply enabled" **/
bool enabled()
{
BOOL b = FALSE;
HLDOM_RESULT r = HTMLayoutIsElementEnabled(he,&b);
assert(r == HLDOM_OK); r;
return b != 0;
}
/** "deeply visible" **/
bool visible()
{
BOOL b = FALSE;
HLDOM_RESULT r = HTMLayoutIsElementVisible(he,&b);
assert(r == HLDOM_OK); r;
return b != 0;
}
/** create brand new element with text (optional).
Example:
element div = element::create("div");
- will create DIV element,
element opt = element::create("option",L"Europe");
- will create OPTION element with text "Europe" in it.
**/
static element create(const char* tagname, const wchar_t* text = 0)
{
element e(0);
HLDOM_RESULT r = HTMLayoutCreateElement( tagname, text, &e.he ); // don't need 'use' here, as it is already "addrefed"
assert(r == HLDOM_OK); r;
return e;
}
/** create brand new copy of this element. Element will be created disconected.
You need to call insert to inject it in some container.
Example:
element select = ...;
element option1 = ...;
element option2 = option1.clone();
select.insert(option2, option1.index() + 1);
- will create copy of option1 element (option2) and insert it after option1,
**/
element clone()
{
element e(0);
HLDOM_RESULT r = HTMLayoutCloneElement( he, &e.he ); // don't need 'use' here, as it is already "addrefed"
assert(r == HLDOM_OK); r;
return e;
}
/** Insert element e at \i index position of this element.
**/
void insert( const element& e, unsigned int index )
{
HLDOM_RESULT r = HTMLayoutInsertElement( e.he, this->he, index );
assert(r == HLDOM_OK); r;
}
/** Append element e as last child of this element.
**/
void append( const element& e ) { insert(e,0x7FFFFFFF); }
/** detach - remove this element from its parent
**/
void detach()
{
HLDOM_RESULT r = HTMLayoutDetachElement( he );
assert(r == HLDOM_OK); r;
}
/** swap two elements in the DOM
**/
void swap(HELEMENT with)
{
HTMLayoutSwapElements(he, with);
}
/** traverse event - send it by sinking/bubbling on the
* parent/child chain of this element
**/
bool send_event(unsigned int event_code, UINT_PTR reason = 0, HELEMENT heSource = 0)
{
BOOL handled = FALSE;
HLDOM_RESULT r = HTMLayoutSendEvent(he, event_code, heSource? heSource: he, reason, &handled);
assert(r == HLDOM_OK); r;
return handled != 0;
}
/** post event - post it in the queue for later sinking/bubbling on the
* parent/child chain of this element.
* method returns immediately
**/
void post_event(unsigned int event_code, unsigned int reason = 0, HELEMENT heSource = 0)
{
HLDOM_RESULT r = HTMLayoutPostEvent(he, event_code, heSource? heSource: he, reason);
assert(r == HLDOM_OK); r;
}
/** move element to new location given by x_view_rel, y_view_rel - view relative coordinates.
* Method defines local styles, so to "stick" it back to the original location you
* should call element::clear_all_style_attributes().
**/
void move(int x_view_rel, int y_view_rel)
{
HLDOM_RESULT r = HTMLayoutMoveElement(he, x_view_rel, y_view_rel);
assert(r == HLDOM_OK); r;
}
/** attach event handler to the element
**/
void attach(event_handler* pevth)
{
htmlayout::attach_event_handler(he,pevth);
}
/** remove event handler from the list of event handlers of the element.
**/
void detach(event_handler* pevth)
{
htmlayout::detach_event_handler(he,pevth);
}
/** call method, invokes method in all event handlers attached to the element
**/
bool call_behavior_method(METHOD_PARAMS* p)
{
if(!is_valid())
return false;
return ::HTMLayoutCallBehaviorMethod(he,p) == HLDOM_OK;
}
json::value xcall(const char* name,
json::value p0 = json::value(),
json::value p1 = json::value(),
json::value p2 = json::value(),
json::value p3 = json::value(),
json::value p4 = json::value(),
json::value p5 = json::value(),
json::value p6 = json::value(),
json::value p7 = json::value())
{
XCALL_PARAMS prm( name );
json::value argv[8];
prm.argv = argv;
do
{
if( p0.is_undefined()) break; argv[prm.argc++] = p0;
if( p1.is_undefined()) break; argv[prm.argc++] = p1;
if( p2.is_undefined()) break; argv[prm.argc++] = p2;
if( p3.is_undefined()) break; argv[prm.argc++] = p3;
if( p4.is_undefined()) break; argv[prm.argc++] = p4;
if( p5.is_undefined()) break; argv[prm.argc++] = p5;
if( p6.is_undefined()) break; argv[prm.argc++] = p6;
if( p7.is_undefined()) break; argv[prm.argc++] = p7;
} while(false);
bool r = call_behavior_method(&prm);
assert(r); r;
return prm.retval;
}
void load_html(const wchar_t* url, HELEMENT initiator = 0)
{
HLDOM_RESULT r = HTMLayoutRequestElementData(he,url,HLRT_DATA_HTML,initiator);
assert(r == HLDOM_OK); r;
}
struct comparator
{
virtual int compare(const htmlayout::dom::element& e1, const htmlayout::dom::element& e2) = 0;
static INT CALLBACK scmp( HELEMENT he1, HELEMENT he2, LPVOID param )
{
htmlayout::dom::element::comparator* self =
static_cast<htmlayout::dom::element::comparator*>(param);
htmlayout::dom::element e1 = he1;
htmlayout::dom::element e2 = he2;
return self->compare( e1,e2 );
}
};
/** reorders children of the element using sorting order defined by cmp
**/
void sort( comparator& cmp, int start = 0, int end = -1 )
{
if (end == -1)
end = children_count();
HLDOM_RESULT r = HTMLayoutSortElements(he, start, end, &comparator::scmp, &cmp);
assert(r == HLDOM_OK); r;
}
CTL_TYPE get_ctl_type() const
{
UINT t = 0;
HLDOM_RESULT r = ::HTMLayoutControlGetType(he,&t);
assert(r == HLDOM_OK); r;
return CTL_TYPE(t);
}
json::value get_value() const
{
json::value v;
HLDOM_RESULT r = ::HTMLayoutControlGetValue(he,&v);
assert(r == HLDOM_OK); r;
return v;
}
void set_value(const json::value& v)
{
HLDOM_RESULT r = ::HTMLayoutControlSetValue(he,&v);
assert(r == HLDOM_OK); r;
}
void set_expando( expando* exp );
expando* get_expando();
private:
struct find_first_callback: callback
{
HELEMENT hfound;
find_first_callback():hfound(0) {}
inline bool on_element(HELEMENT he) { hfound = he; return true; /*stop enumeration*/ }
};
};
/**Expando - structure that can be associated with the DOM element.
*
* In other words: DOM element can be expanded by this structure
*
* Derive your own class/structure from this one if you need some data to be associated with DOM element.
*
* If you want to handle events here then additionally derive your structure from event_handler and
* call both: attach_event_handler and set_expando with it.
*
**/
class expando: public HTMLayoutElementExpando
{
static void CALLBACK _finalizer(HTMLayoutElementExpando* pexp, HELEMENT he) { static_cast<expando*>(pexp)->finalize(); }
protected:
virtual void finalize() { delete this; }
public:
expando() { finalizer = _finalizer; }
virtual ~expando() {}
};
inline void element::set_expando( expando* exp )
{
HLDOM_RESULT r = HTMLayoutElementSetExpando(he, static_cast<HTMLayoutElementExpando*>(exp));
assert(r == HLDOM_OK); r;
}
inline expando* element::get_expando()
{
HTMLayoutElementExpando* pexp = 0;
HLDOM_RESULT r = HTMLayoutElementGetExpando(he, &pexp);
assert(r == HLDOM_OK); r;
return static_cast<expando*>(pexp);
}
#define STD_CTORS(T,PT) \
T() { } \
T(HELEMENT h): PT(h) { } \
T(const element& e): PT(e) { } \
T& operator = (HELEMENT h) { set(h); return *this; } \
T& operator = (const element& e) { set(e); return *this; }
struct text_selection_params: public TEXT_SELECTION_PARAMS
{
pod::buffer<wchar_t>& _wos;
static BOOL CALLBACK ctl(text_selection_params* prms, UINT data ) { prms->_wos.push(data); return 1; }
text_selection_params(pod::buffer<wchar_t>& wos): TEXT_SELECTION_PARAMS(false), _wos(wos) { outs = (OutputStreamProc*)ctl; }
};
struct html_selection_params: public TEXT_SELECTION_PARAMS
{
pod::buffer<byte>& _bos;
static BOOL CALLBACK ctl(html_selection_params* prms, UINT data ) { prms->_bos.push(data); return 1; }
html_selection_params(pod::buffer<byte>& bos): TEXT_SELECTION_PARAMS(true), _bos(bos) { outs = (OutputStreamProc*)ctl; }
};
class editbox: public element
{
public:
STD_CTORS(editbox, element)
bool selection( int& start, int& end )
{
TEXT_EDIT_SELECTION_PARAMS sp(false);
if(!call_behavior_method(&sp))
return false;
start = sp.selection_start;
end = sp.selection_end;
return true;
}
bool select( int start = 0, int end = 0x7FFFFFFF )
{
TEXT_EDIT_SELECTION_PARAMS sp(true);
sp.selection_start = start;
sp.selection_end = end;
return call_behavior_method(&sp);
}
bool replace(const wchar_t* text, size_t text_length)
{
TEXT_EDIT_REPLACE_SELECTION_PARAMS sp;
sp.text = text;
sp.text_length = UINT(text_length);
return call_behavior_method(&sp);
}
std::wstring text_value() const
{
TEXT_VALUE_PARAMS sp(false);
if( const_cast<editbox*>(this)->call_behavior_method(&sp) && sp.text && sp.length)
{
return std::wstring(sp.text, sp.length);
}
return std::wstring();
}
void text_value(const std::wstring& s)
{
text_value(s.c_str(), s.length());
}
void text_value(const wchar_t* text, size_t length)
{
TEXT_VALUE_PARAMS sp(true);
sp.text = text;
sp.length = UINT(length);
call_behavior_method(&sp);
update();
}
void text_value(const wchar_t* text)
{
TEXT_VALUE_PARAMS sp(true);
sp.text = text;
sp.length = text? UINT(wcslen(text)):0;
call_behavior_method(&sp);
update();
}
void caret_position(int& x, int& y, int& w, int& h)
{
TEXT_CARET_POSITION_PARAMS cpp;
x = y = w = h = 0;
if(call_behavior_method(&cpp))
{
x = cpp.left; y = cpp.top;
w = cpp.width; h = cpp.height;
}
}
void int_value( int v )
{
wchar_t buf[64]; int n = _snwprintf(buf,63,L"%d", v); buf[63] = 0;
text_value(buf,n);
}
int int_value( ) const
{
return aux::wtoi( text_value().c_str() );
}
std::wstring selected_text()
{
pod::buffer<wchar_t> wos;
get_selected_text(wos);
return std::wstring(wos.data(), wos.length());
}
void get_selected_text(pod::buffer<wchar_t>& wos)
{
text_selection_params s(wos);
call_behavior_method(&s);
}
void get_selected_html(pod::buffer<byte>& bos)
{
html_selection_params s(bos);
call_behavior_method(&s);
}
};
class scrollbar: public element
{
public:
STD_CTORS(scrollbar, element)
void get_values( int& val, int& min_val, int& max_val, int& page_val, int& step_val )
{
SCROLLBAR_VALUE_PARAMS sbvp;
call_behavior_method(&sbvp);
val = sbvp.value;
min_val = sbvp.min_value;
max_val = sbvp.max_value;
page_val = sbvp.page_value; // page increment
step_val = sbvp.step_value; // step increment (arrow button click)
}
void set_values( int val, int min_val, int max_val, int page_val, int step_val )
{
SCROLLBAR_VALUE_PARAMS sbvp(true);
sbvp.value = val;
sbvp.min_value = min_val;
sbvp.max_value = max_val;
sbvp.page_value = page_val;
sbvp.step_value = step_val;
call_behavior_method(&sbvp);
}
int get_value()
{
SCROLLBAR_VALUE_PARAMS sbvp;
call_behavior_method(&sbvp);
return sbvp.value;
}
void set_value( int v )
{
SCROLLBAR_VALUE_PARAMS sbvp;
call_behavior_method(&sbvp);
sbvp.value = v;
sbvp.methodID = SCROLL_BAR_SET_VALUE;
call_behavior_method(&sbvp);
}
};
struct enumerator
{
enumerator() {}
virtual ~enumerator() {} // to make G++ happy.
void ramble(HELEMENT what, bool forward = true)
{
HLDOM_RESULT r = HTMLayoutEnumerate(what,&_cb,this,forward);
assert(r == HLDOM_OK); r;
}
virtual bool on_element_head( HELEMENT ) { return false; }
virtual bool on_element_tail( HELEMENT ) { return false; }
virtual bool on_char( HELEMENT text, int pos, WCHAR code ) { return false; }
inline static BOOL CALLBACK _cb( LPVOID p, HELEMENT he, int pos, int postype, WCHAR code )
{
enumerator* pe = (enumerator*)p;
switch(postype)
{
case 0: // - he element head position.
return pe->on_element_head( he );
case 1: // - he element tail position.
return pe->on_element_tail( he );
case 2:// - character position.
return pe->on_char( he, pos, code );
}
assert(false);
return false;
}
};
} // dom namespace
} // htmlayout namespace
#endif | [
"userstvo@9d5f44c3-c14b-0410-8269-bdf5c58671da"
] | [
[
[
1,
1349
]
]
] |
976894b2bc488cb3c09c7eb336dbd89edf07e6d0 | cac77188ed4e27ae990dfabfe09aa57b8c71e56e | /NN_CPU/Tools.cpp | ae6970097425f8481d025423b7d90a1c875134ae | [] | no_license | vls/vlssrc.thesis | 8a274565178aaf1d676858779cb3d603f1bc8c87 | 3f0792262cdd5a30cbc1b36dc773bf8bfc787ef4 | refs/heads/master | 2021-01-10T21:56:48.908024 | 2010-04-24T10:24:28 | 2010-04-24T10:24:28 | 39,242,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 392 | cpp | /*
#include "Tools.h"
MyArray<T>::MyArray(int length)
{
this->arr = new T[length];
this->length = length;
}
MyArray<T>::~MyArray()
{
delete[] this->arr;
}
T* MyArray<T>::GetPtr()
{
return this->arr;
}
int MyArray<T>::GetLength()
{
return this->length;
}
//template <class T>
T& MyArray<T>::operator [](int index)
{
return this->arr[index];
}
*/ | [
"vls@localhost"
] | [
[
[
1,
34
]
]
] |
31039f3401a9ab9113220981ae20b81af2e04bbe | 83c9b35f2327528b6805b8e9de147ead75e8e351 | /filters/VideoFilter.h | 289b8c6e036c1f85db1433023bb9409b2a8275ee | [] | no_license | playmodes/playmodes | ec6ced2e637769353eb66db89aa88ebd1d5185ac | 9a91b192be92c8dedc67cbd126d5a50a4d2b9c54 | refs/heads/master | 2021-01-22T10:14:18.586477 | 2010-01-02T17:55:50 | 2010-01-02T17:55:50 | 456,188 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 514 | h | /*
* VideoFilter.h
*
* Created on: 19-des-2008
* Author: eloi
*/
#ifndef VIDEOFILTER_H_
#define VIDEOFILTER_H_
#include "filters/BaseFilter.h"
#include "pipeline/video/VideoSource.h"
#include "pipeline/video/VideoSink.h"
class VideoFilter : public VideoSink, public VideoSource {
public:
VideoFilter();
virtual ~VideoFilter();
virtual VideoFrame * getNextVideoFrame()=0;
virtual void newVideoFrame(VideoFrame & frame){};
virtual int getFps()=0;
};
#endif /* VIDEOFILTER_H_ */
| [
"[email protected]"
] | [
[
[
1,
26
]
]
] |
8ae0901adfe90bd7aadfc1be2fd80aec20481393 | 81128e8bcf44c1db5790433785e83bbd70b8d9c2 | /Testbed/Tests/MyQueryCallback.h | eaef8168b77909707f9d8f93af9865e9533aa202 | [
"Zlib"
] | permissive | vanminhle246/Box2D_v2.2.1 | 8a16ef72688c6b03466c7887e501e92f264ed923 | 6f06dda1e2c9c7277ce26eb7aa6340863d1f3bbb | refs/heads/master | 2016-09-05T18:41:00.133321 | 2011-11-28T07:47:32 | 2011-11-28T07:47:32 | 2,817,435 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | h | #pragma once
#include <Box2D\dynamics\b2worldcallbacks.h>
#include <vector>
#include <Box2D\Dynamics\b2Fixture.h>
class MyQueryCallback :
public b2QueryCallback
{
public:
std::vector<b2Body*> foundBodies;
MyQueryCallback(void);
~MyQueryCallback(void);
bool ReportFixture(b2Fixture* fixture);
};
| [
"[email protected]"
] | [
[
[
1,
14
]
]
] |
ec5e5db61497cd0eb907900fc14277dbe8858189 | 2ca3ad74c1b5416b2748353d23710eed63539bb0 | /Src/Lokapala/Operator/DataAdminSD.cpp | 459dd520d96d6468177b8ee55c910b995aa1aea1 | [] | no_license | sjp38/lokapala | 5ced19e534bd7067aeace0b38ee80b87dfc7faed | dfa51d28845815cfccd39941c802faaec9233a6e | refs/heads/master | 2021-01-15T16:10:23.884841 | 2009-06-03T14:56:50 | 2009-06-03T14:56:50 | 32,124,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 127 | cpp | #include "stdafx.h"
#include "DataAdminSD.h"
void CDataAdminSD::ReadDAM()
{
CCBFMediator::Instance()->ReadDAM();
}
| [
"nilakantha38@b9e76448-5c52-0410-ae0e-a5aea8c5d16c"
] | [
[
[
1,
7
]
]
] |
7443dcfd0ec72286228c6c457591acf1926f931b | 082b94bca9e58cb89b35b53804000118b2ff329c | /Editor/CRegistry.cpp | 953e516ac2ac760640186f23ea8ca5504fd47d9a | [] | no_license | Dellware78/mtasa-scripteditor | 5a345c96423f543e8a7887d1b44526b30ff21aca | 92d3bcbe74960f0b2a79863762b04cd8c61d2eac | refs/heads/master | 2016-08-13T00:49:54.602012 | 2011-02-04T15:11:36 | 2011-02-04T15:11:36 | 44,092,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 291 | cpp | /*----------------------------------------------------------------**
**
** Project: Multi Theft Auto - Script Editor.
** Filename: CRegistry.cpp
** Developers: x86 <[email protected]>
**
**----------------------------------------------------------------*/
#include <stdafx.h>
| [
"[email protected]"
] | [
[
[
1,
9
]
]
] |
06fc29d712de472fd292a877b6ba24ee0c6d3e77 | ee2e06bda0a5a2c70a0b9bebdd4c45846f440208 | /c++/Pattern/Source/Memento/Main.cpp | b2a43b20447a93da1f2950069b93d2f2081072ad | [] | no_license | RobinLiu/Test | 0f53a376e6753ece70ba038573450f9c0fb053e5 | 360eca350691edd17744a2ea1b16c79e1a9ad117 | refs/heads/master | 2021-01-01T19:46:55.684640 | 2011-07-06T13:53:07 | 2011-07-06T13:53:07 | 1,617,721 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 858 | cpp | /********************************************************************
created: 2006/08/09
filename: Main.cpp
author: 李创
http://www.cppblog.com/converse/
purpose: Memento模式的测试代码
*********************************************************************/
#include "Memento.h"
int main()
{
// 创建一个原发器
Originator* pOriginator = new Originator("old state");
pOriginator->PrintState();
// 创建一个备忘录存放这个原发器的状态
Memento *pMemento = pOriginator->CreateMemento();
// 更改原发器的状态
pOriginator->SetState("new state");
pOriginator->PrintState();
// 通过备忘录把原发器的状态还原到之前的状态
pOriginator->RestoreState(pMemento);
pOriginator->PrintState();
delete pOriginator;
delete pMemento;
return 0;
}
| [
"[email protected]@43938a50-64aa-11de-9867-89bd1bae666e"
] | [
[
[
1,
33
]
]
] |
936c4dff152bc004af6889595169615967fca735 | 0f8559dad8e89d112362f9770a4551149d4e738f | /Wall_Destruction/Havok/Source/Common/Base/System/Io/Reader/Seekable/hkSeekableStreamReader.h | 87d2c589e25db19c050840d29aef197ff17dea80 | [] | no_license | TheProjecter/olafurabertaymsc | 9360ad4c988d921e55b8cef9b8dcf1959e92d814 | 456d4d87699342c5459534a7992f04669e75d2e1 | refs/heads/master | 2021-01-10T15:15:49.289873 | 2010-09-20T12:58:48 | 2010-09-20T12:58:48 | 45,933,002 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,399 | h | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Level 2 and Level 3 source code contains trade secrets of Havok. Havok Software (C) Copyright 1999-2009 Telekinesys Research Limited t/a Havok. All Rights Reserved. Use of this software is subject to the terms of an end user license agreement.
*
*/
#ifndef HKBASE_SEEKABLE_STREAMREADER_H
#define HKBASE_SEEKABLE_STREAMREADER_H
#include <Common/Base/hkBase.h>
#include <Common/Base/System/Io/Reader/hkStreamReader.h>
/// Utility class for readers which implement seek.
/// Derived classes must implement seek and tell. The mark
/// interface is implemented with calls to these methods.
/// Note that while this always works, it may be quite slow
/// if the streams underlying seek and tell are slow. In this
/// case it may be a better solution to wrap the stream in an
/// hkBufferedStreamReader instead which is guaranteed to be fast.
class hkSeekableStreamReader : public hkStreamReader
{
public:
hkSeekableStreamReader()
: m_markPos(-1)
{
}
virtual hkBool markSupported() const
{
return true;
}
virtual hkResult setMark(int markLimit)
{
m_markPos = tell();
return (m_markPos != -1) ? HK_SUCCESS : HK_FAILURE;
}
virtual hkResult rewindToMark()
{
return seek(m_markPos, STREAM_SET);
}
virtual hkBool seekTellSupported() const
{
return true;
}
// must implement seek
// must implement tell
protected:
int m_markPos;
};
#endif //HKBASE_SEEKABLE_STREAMREADER_H
/*
* Havok SDK - NO SOURCE PC DOWNLOAD, BUILD(#20091222)
*
* Confidential Information of Havok. (C) Copyright 1999-2009
* Telekinesys Research Limited t/a Havok. All Rights Reserved. The Havok
* Logo, and the Havok buzzsaw logo are trademarks of Havok. Title, ownership
* rights, and intellectual property rights in the Havok software remain in
* Havok and/or its suppliers.
*
* Use of this software for evaluation purposes is subject to and indicates
* acceptance of the End User licence Agreement for this product. A copy of
* the license is included with this software and is also available at www.havok.com/tryhavok.
*
*/
| [
"[email protected]"
] | [
[
[
1,
75
]
]
] |
011320a60e3f21c48707228f87da6862edc9709a | eec9d789e04bc81999ac748ca2c70f0a612dadb7 | /testProject/injectDll/injectDll.cpp | 47c54d4275132db83b63cce88f24c556838cf88d | [] | no_license | scriptkitz/myfirstpro-test | 45d79d9a35fe5ee1e8f237719398d08d7d86b859 | a3400413e3a7900657774a278006faea7d682955 | refs/heads/master | 2021-01-22T07:13:27.100583 | 2010-11-16T15:02:50 | 2010-11-16T15:02:50 | 38,792,869 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 913 | cpp | // injectDll.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "injectDll.h"
// This is an example of an exported variable
INJECTDLL_API int ninjectDll=0;
// This is an example of an exported function.
extern "C" LRESULT CALLBACK DllHookGetMsg(int code,WPARAM wParam,LPARAM lParam)
{
if (code < 0)
{
return CallNextHookEx(NULL,code,wParam,lParam);
}
if (code == HC_ACTION)
{
//MessageBox(NULL, TEXT("钩子回调函数"),TEXT("回调"), MB_OK);
}
return CallNextHookEx(NULL,code,wParam,lParam);
}
extern "C" void CALLBACK HandleWinEvent(HWINEVENTHOOK hook, DWORD event, HWND hwnd,
LONG idObject, LONG idChild,
DWORD dwEventThread, DWORD dwmsEventTime)
{
}
// This is the constructor of a class that has been exported.
// see injectDll.h for the class definition
CinjectDll::CinjectDll()
{
return;
}
| [
"scriptkitz@da890e6b-1f8b-8dbb-282d-e1a1f9b2274c"
] | [
[
[
1,
35
]
]
] |
6ea2e303ef4dacc6cafb5cca24be8fd2900268a9 | 1d209ba17bfd1cb74caf736b5f0d05fa93723d65 | /CfgController.h | 8b1bbc41c35f81d9d646c9d653b9a1f163d6034c | [] | no_license | Konnekt/SzuKacz | e6c3a44ab262499f23ad330b1915066741c83c46 | 45b0b73ab77564b9d59c40456889a9f719ab8edd | refs/heads/master | 2021-01-18T13:46:52.654452 | 2008-03-03T21:43:11 | 2008-03-03T21:43:11 | 3,440,116 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,075 | h | /**
* Configuration Controller
*
* Licensed under The GNU Lesser General Public License
* Redistributions of files must retain the above copyright notice.
*
* @filesource
* @copyright Copyright (c) 2005-2006 Sijawusz Pur Rahnama
* @link svn://konnekt.info/kaway2/ kAway2 plugin SVN Repo
* @version $Revision: 98 $
* @modifiedby $LastChangedBy: sija $
* @lastmodified $Date: 2006-12-08 18:27:59 +0100 (Pt, 08 gru 2006) $
* @license http://creativecommons.org/licenses/LGPL/2.1/
*/
#pragma once
#ifndef __CFGCTRL_H__
#define __CFGCTRL_H__
#include "IMController.h"
using namespace Konnekt::Tables;
using namespace Stamina;
using namespace boost;
namespace Konnekt {
class CfgController : public SharedObject<iSharedObject>, public signals::trackable {
public:
/* Class version */
STAMINA_OBJECT_CLASS_VERSION(CfgController, iSharedObject, Version(0,1,1,0));
public:
typedef std::vector<sIMessage_setColumn*> tCfgCols;
public:
inline CfgController(IMController* IMCtrl) {
this->attachObservers(IMCtrl);
}
inline CfgController() { }
inline virtual ~CfgController() {
for (tCfgCols::iterator it = _cols.begin(); it != _cols.end(); it++) {
delete *it;
}
}
public:
/* automagical registration of configuration columns (set via setColumn()) */
inline void attachObservers(IMController* IMCtrl) {
IMCtrl->registerObserver(IM_SETCOLS, bind(&CfgController::_setColumns, this, _1));
}
inline void setColumn(tTable table, tColId id, int type, const char* def, const char* name) {
_cols.push_back(new sIMessage_setColumn(table, id, type, def, name));
}
inline void setColumn(tTable table, tColId id, int type, int def, const char* name) {
_cols.push_back(new sIMessage_setColumn(table, id, type, def, name));
}
inline void resetColumns(tTable table = tableNotFound) {
if (!_cols.size()) return;
bool resetCnt = table == tableContacts;
bool resetCfg = table == tableConfig;
if (table == tableNotFound) {
resetCfg = resetCnt = true;
}
if (!resetCnt && !resetCfg) {
return;
}
tCfgCols dtCnt;
for (tCfgCols::iterator it = _cols.begin(); it != _cols.end(); it++) {
if ((*it)->_table == tableConfig && resetCfg) {
_resetColumn(*it);
}
if ((*it)->_table == tableContacts && resetCnt) {
dtCnt.push_back(*it);
}
}
if (dtCnt.size()) {
int count = Ctrl->IMessage(IMC_CNT_COUNT);
for (int i = 1; i < count; i++) {
for (tCfgCols::iterator it = dtCnt.begin(); it != dtCnt.end(); it++) {
_resetColumn(*it, i);
}
}
}
}
inline void resetColumn(int id, tCntId cnt = 0) {
if (!_cols.size()) return;
tTable table = !cnt ? tableConfig : tableContacts;
for (tCfgCols::iterator it = _cols.begin(); it != _cols.end(); it++) {
if ((*it)->_id == id && (*it)->_table == table) {
_resetColumn(*it, cnt); break;
}
}
}
/*
* @todo find some better way to handle it
*/
inline int getInheritedIValue(int col, tCntId cnt) {
return GETCNTI(cnt, col) >= 0 ? GETCNTI(cnt, col) : GETINT(col);
}
inline bool getInheritedBValue(int col, tCntId cnt) {
return (GETINT(col) && (GETCNTI(cnt, col) < 2)) || (!GETINT(col) && (GETCNTI(cnt, col) == 1));
}
inline const char* getInheritedCValue(int col, tCntId cnt) {
return strlen(GETCNTC(cnt, col)) ? GETCNTC(cnt, col) : GETSTRA(col);
}
protected:
inline void _resetColumn(sIMessage_setColumn* it, tCntId cnt = 0) {
bool isCnt = it->_table == tableContacts && cnt;
bool isConfig = it->_table == tableConfig;
if (!isCnt && !isConfig) {
return;
}
switch (it->_type) {
case ctypeInt: {
if (isConfig) {
SETINT(it->_id, it->_def);
}
if (isCnt) {
SETCNTI(cnt, it->_id, it->_def);
}
break;
}
case ctypeInt64: {
if (isConfig) {
// SETINT(it->_id, *it->_def_p64);
}
if (isCnt) {
SETCNTI64(cnt, it->_id, *it->_def_p64);
}
break;
}
case ctypeString: {
if (isConfig) {
SETSTR(it->_id, it->_def_ch);
}
if (isCnt) {
SETCNTC(cnt, it->_id, it->_def_ch);
}
break;
}
}
}
inline tIMCallback _setColumns(IMController* IMCtrl) {
for (tCfgCols::iterator it = _cols.begin(); it != _cols.end(); it++) {
Ctrl->IMessage(*it);
}
IMCtrl->setSuccess();
}
protected:
tCfgCols _cols;
};
typedef SharedPtr<CfgController> oCfgCtrl;
}
#endif // __CFGCTRL_H__ | [
"[email protected]",
"[email protected]"
] | [
[
[
1,
9
],
[
11,
11
],
[
13,
22
],
[
24,
27
],
[
29,
30
],
[
32,
36
],
[
39,
39
],
[
41,
42
],
[
44,
48
],
[
56,
56
],
[
59,
60
],
[
63,
63
],
[
66,
66
],
[
68,
75
],
[
79,
79
],
[
81,
88
],
[
90,
94
],
[
97,
97
],
[
100,
100
],
[
102,
106
],
[
115,
116
],
[
119,
121
],
[
125,
130
],
[
132,
139
],
[
141,
148
],
[
150,
160
],
[
163,
164
],
[
166,
175
]
],
[
[
10,
10
],
[
12,
12
],
[
23,
23
],
[
28,
28
],
[
31,
31
],
[
37,
38
],
[
40,
40
],
[
43,
43
],
[
49,
55
],
[
57,
58
],
[
61,
62
],
[
64,
65
],
[
67,
67
],
[
76,
78
],
[
80,
80
],
[
89,
89
],
[
95,
96
],
[
98,
99
],
[
101,
101
],
[
107,
114
],
[
117,
118
],
[
122,
124
],
[
131,
131
],
[
140,
140
],
[
149,
149
],
[
161,
162
],
[
165,
165
]
]
] |
4877b9fc88ba951bcd5a83625c05a47c1f91e641 | b999131a99dbbe85b256ed64700fc8651f69eb98 | /VNE_SOURCE/vne/deprecated/VNEWorld.cpp | 93ff8a82c8bf7c32a0ccc8d165f004a0c7cb6a54 | [] | no_license | liukan12/vne | 71ba2a63ade36b638107f2800ae6d9a3b3b56d52 | e896cc57af75c72ee5b52530ee9d9d1e7cfe73be | refs/heads/master | 2020-12-24T20:15:21.148998 | 2008-08-01T05:55:10 | 2008-08-01T05:55:10 | 56,172,273 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,759 | cpp | #include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <iostream>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include "VNEApp.h"
#include "VNEWorld.h"
#include <time.h>
#include "WorldForce.h"
#include "SOIL.h"
#include "VNETexture.h"
#include <numeric>
#include <valarray>
using namespace std;
#define PERFORMANCE_TEST_NO
double minTimeStep;
#define DRAWTIMESTEP 0.01
VNEWorld::VNEWorld()
{
spatialResolution = .01;
double maxVmag = 30;
minTimeStep = 0.5 * spatialResolution / maxVmag;
// time step minimum to prevent things from "flying through" eachother during one time step
// like "CFL Condition"
string faces, faces2, faces3, faces4, faces5;
string verts, verts2, verts3, verts4, verts5;
string norms, norms2, norms3, norms4, norms5;
#define PROFILE_NO
#ifdef PROFILE
faces = "faces4.dat";
verts = "verts4.dat";
norms = "norms4.dat";
faces2 = "faces5.dat";
verts2 = "verts5.dat";
norms2 = "norms5.dat";
faces3 = "faces6.dat";
verts3 = "verts6.dat";
norms3 = "norms6.dat";
faces4 = "brainfaces.dat";
verts4 = "brainverts.dat";
norms4 = "brainnorms.dat";
#elif _DEBUG // debug looks in relative path (vne data files)
faces = "..\\vne_data\\faces4.dat";
verts = "..\\vne_data\\verts4.dat";
norms = "..\\vne_data\\norms4.dat";
faces2 = "..\\vne_data\\faces5.dat";
verts2 = "..\\vne_data\\verts5.dat";
norms2 = "..\\vne_data\\norms5.dat";
faces3 = "..\\vne_data\\facesmortar.dat";
verts3 = "..\\vne_data\\vertsmortar.dat";
norms3 = "..\\vne_data\\normsmortar.dat";
faces4 = "..\\vne_data\\brainfaces.dat";
verts4 = "..\\vne_data\\brainverts.dat";
norms4 = "..\\vne_data\\brainnorms.dat";
faces5 = "..\\vne_data\\faces7.dat";
verts5 = "..\\vne_data\\verts7.dat";
norms5 = "..\\vne_data\\norms7.dat";
#else // release build looks in the same directory as .exe for data files
faces = ".\\data\\faces4.dat";
verts = ".\\data\\verts4.dat";
norms = ".\\data\\norms4.dat";
faces2= ".\\data\\faces5.dat";
verts2= ".\\data\\verts5.dat";
norms2= ".\\data\\norms5.dat";
faces3= ".\\data\\faces6.dat";
verts3= ".\\data\\verts6.dat";
norms3= ".\\data\\norms6.dat";
faces4 = ".\\data\\brainfaces.dat";
verts4 = ".\\data\\brainverts.dat";
norms4 = ".\\data\\brainnorms.dat";
#endif
// TODO: we need OBJECT FILES that define all file names and properties
VNEObject* Obj1 = new VNEObject( "object 1", faces, verts, norms);
//VNEObject* Obj2 = new VNEObject( "object 2", faces2, verts2, norms2);
VNEObject* Obj3 = new VNEObject( "object 3", faces3, verts3, norms3);
//VNEObject* Obj4 = new VNEObject( "object 4", faces4, verts4, norms4); // no norms for the brain
#ifdef PROFILE
Obj1->setTexture("obj1.png");
Obj2->setTexture("obj2.png");
Obj3->setTexture("obj3.png");
#elif _DEBUG
Obj1->setTexture("..\\vne_data\\obj1.png");
//Obj2->setTexture("..\\vne_data\\obj2.png");
Obj3->setTexture("..\\vne_data\\obj3.png");
#else
Obj1->setTexture(".\\data\\obj1.png");
Obj2->setTexture(".\\data\\obj2.png");
Obj3->setTexture(".\\data\\obj3.png");
#endif
Obj1->SetVelocityProfile( 0.5, 0.0, 0.5, 0 );
//Obj2->SetVelocityProfile( -0.5, 0.5, 0.5, 0 );
Obj3->SetVelocityProfile( -0.5, 0.5, 0.5, 0 );
//Obj1->SetColorSeed(-1.5,-2.0,1.0);
//Obj2->SetColorSeed(1.0,0.0,0.5);
Obj3->SetColorSeed(0.5,0.5,0.0);
Obj1->TranslateTo(0.0,2.0,0.0);
//Obj2->TranslateTo(-2.0,-2.0,-2.0);
Obj3->TranslateTo(0.0,1.0,0.0);
/*Obj1->Scale(2.0,2.0,2.0);
Obj2->Scale(2.0,2.0,2.0);*/
Obj3->Scale(.6,.6,.6);
Obj1->SetTimeStep( minTimeStep, maxVmag );
//Obj2->SetTimeStep( minTimeStep, maxVmag );
Obj3->SetTimeStep( minTimeStep, maxVmag );
this->ObjList = new VNEObjList( Obj3 );
this->ObjList->AddObj(Obj1);
//this->ObjList->AddObj(Obj3);
//this->ObjList->AddObj(Obj4);
#ifdef PERFORMANCE_TEST
VNEObject* Obj5 = new VNEObject( "object 5", faces5, verts5, norms5); // object with 10K vertices
Obj5->SetVelocityProfile( 0.0, -0.5, -0.5, 0 );
Obj5->TranslateTo(2.0,-3.0,-1.0);
Obj5->SetColorSeed(0.25,0.15,1.0);
this->ObjList->AddObj(Obj5);
#endif
this->ObjList->PrintAll();
//theForce->VortexOff();
xmin = -50;
xmax = 50;
ymin = -50;
ymax = 50;
zmin = -5;
zmax = 15;
clock1 = clock();
elapsedTime = 0.0;
glShadeModel( GL_SMOOTH );
LightsOff();
#ifdef PROFILE
myTex=new VNETexture("cat.jpg");
#elif _DEBUG
myTex1=new VNETexture("..\\vne_data\\stars.jpg");
myTex2=new VNETexture("..\\vne_data\\ground.jpg");
#else
myTex=new VNETexture(".\\data\\cat.jpg");
#endif
}
void VNEWorld::LightsOn()
{
bLightsOn = true;
GLfloat light_position[] = {0.0,0.0,4.0,0.0};
GLfloat light1_specular[] = {1.0,1.0,1.0,0.0};
GLfloat light1_ambient[] = {1.0, 0.1, 0.5,0.0};
GLfloat light1_diffuse[] = {1.0, 1.0, 1.0,0.0};
glLightfv(GL_LIGHT0, GL_POSITION, light_position);
glLightfv(GL_LIGHT0, GL_SPECULAR, light1_specular);
glLightfv(GL_LIGHT0, GL_AMBIENT, light1_ambient);
glLightfv(GL_LIGHT0, GL_DIFFUSE, light1_diffuse);
GLfloat light2_position[] = {3.0,0.0,0.0,0.0};
GLfloat light2_specular[] = {1.0,1.0,1.0,0.0};
GLfloat light2_ambient[] = {0.5, 0.1, 1.0,0.0};
GLfloat light2_diffuse[] = {1.0, 0.0, 1.0,0.0};
glLightfv(GL_LIGHT1, GL_POSITION, light2_position);
glLightfv(GL_LIGHT1, GL_SPECULAR, light2_position);
glLightfv(GL_LIGHT1, GL_AMBIENT, light2_ambient);
glLightfv(GL_LIGHT1, GL_DIFFUSE, light2_diffuse);
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
glEnable(GL_LIGHT1);
}
void VNEWorld::LightsOff()
{
bLightsOn = false;
glDisable(GL_LIGHT0);
glDisable(GL_LIGHT1);
glDisable(GL_LIGHTING);
}
void VNEWorld::EnableForce( int iNum )
{
switch( iNum )
{
case 0:
// this->theForce->VortexOn();
break;
default:
cout<<"Invalid number in EnableForce()!\n";
break;
}
}
void VNEWorld::DisableForce( int iNum )
{
switch( iNum )
{
case 0:
// this->theForce->VortexOff();
break;
default:
cout<<"Invalid number in DisableForce()!\n";
break;
}
}
void VNEWorld::Collide(VNEObject* obj1, VNEObject* obj2)
{
double m1 = obj1->GetMass();
double m2 = obj2->GetMass();
double totalM = m1+m2;
}
valarray<double> diffx;
valarray<double> diffy;
valarray<double> diffz;
void VNEWorld::CheckCollisions()
{
int i,n;
VNEObject* obj1;
VNEObject* obj2;
for(i=0; i < this->ObjList->Length(); i++)
{
obj1 = this->ObjList->GetObjectAt(i);
for(n=i+1; n < this->ObjList->Length(); n++)
{
obj2 = this->ObjList->GetObjectAt(n);
double dist;
double minDist = 1e3;
for( int i = 0; i < obj1->numVerts; i++ ) {
for( int j = 0; j < obj2->numVerts; j++ ) {
dist = pow(obj1->CurTriVertX[i]-obj2->CurTriVertX[j],2)+pow(obj1->CurTriVertY[i]-obj2->CurTriVertY[j],2)+pow(obj1->CurTriVertZ[i]-obj2->CurTriVertZ[j],2);
if( dist < minDist )
minDist = dist;
}
}
if( spatialResolution > minDist )
{
this->Collide( obj1, obj2);
}
}
}
}
int VNEWorld::TimeStep()
{
for( int i = 0; i < 10; i++ ) {
this->CheckCollisions(); // THIS NEEDS HUGE OVERHAUL
this->ObjList->TimeStepAll();
}
return 0;
}
void VNEWorld::DrawWalls()
{
for( int i = 0; i < 2; i++ )
{
glPushMatrix();
switch(i)
{ // draw five walls, leave one open area for the camera's default position
case 0:
//glRotatef(90.0,1.0,0.0,0.0);
myTex1->bindTexture();
break;
case 1:
glRotatef(-90,1.0,0.0,0.0);
myTex2->bindTexture();
break;
}
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT );
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT );
glBegin(GL_QUADS);
// back wall
glTexCoord2f(0.0, 0.0);
glVertex3f(xmin, ymin, zmin+1e-3 );
glTexCoord2f(0.0, 3.0);
glVertex3f(xmin,ymax,zmin+1e-3);
glTexCoord2f(3.0,3.0);
glVertex3f(xmax,ymax,zmin+1e-3);
glTexCoord2f(3.0,0.0);
glVertex3f(xmax, ymin, zmin+1e-3 );
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
}
glFlush(); // doesn't seem necessary
}
int VNEWorld::Redraw()
{
int result = 0;
//if( this->theForce->WallsAreOn() )
DrawWalls();
result = this->ObjList->DrawAll();
return result;
}
void VNEWorld::PrintWorldState()
{
// output in console the state of all objects, forces, lighting, etc
cout<<"The state of the world is: \n";
}
double VNEWorld::Getxmax()
{ return xmax; }
double VNEWorld::Getymax()
{ return ymax; }
double VNEWorld::Getzmax()
{ return zmax; }
double VNEWorld::Getxmin()
{ return xmin; }
double VNEWorld::Getymin()
{ return ymin; }
double VNEWorld::Getzmin()
{ return zmin; }
| [
"karasevpa@60124b6e-824b-0410-a204-ab2e215a433f",
"freeradiobuckscounty@60124b6e-824b-0410-a204-ab2e215a433f"
] | [
[
[
1,
216
],
[
219,
225
],
[
228,
231
],
[
237,
237
],
[
244,
255
],
[
262,
345
]
],
[
[
217,
218
],
[
226,
227
],
[
232,
236
],
[
238,
243
],
[
256,
261
]
]
] |
4d8cbe3f8df93d5f8bd51aa811bd0888801eaf98 | d115cf7a1b374d857f6b094d4b4ccd8e9b1ac189 | /pyplusplus_dev/unittests/data/declarations_order_bug_true_to_be_exported.hpp | cdb6c71f5cdcf8bf2a1e430b663fa5906c5cb852 | [
"BSL-1.0"
] | permissive | gatoatigrado/pyplusplusclone | 30af9065fb6ac3dcce527c79ed5151aade6a742f | a64dc9aeeb718b2f30bd6a5ff8dcd8bfb1cd2ede | refs/heads/master | 2016-09-05T23:32:08.595261 | 2010-05-16T10:53:45 | 2010-05-16T10:53:45 | 700,369 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,124 | hpp | // Copyright 2004-2008 Roman Yakovenko.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef __declarations_order_bug_true_to_be_exported_hpp__
#define __declarations_order_bug_true_to_be_exported_hpp__
struct declarations_order_bug_true{
struct tester_t{
tester_t()
{}
const char* do_smth( bool ){
return "do_smth( bool )";
}
const char* do_smth( int ){
return "do_smth( int )";
}
const char* operator+=(const char *){
return "operator+=(const char *)";
}
const char* append(const char*){
return "append(const char *)";
}
const char* append(const char*, int){
return "append(const char*, int)";
}
const char* operator+=(const char){
return "operator+=(const char)";
}
const char* append(const char){
return "append(const char)";
}
};
};
#endif//__declarations_order_bug_true_to_be_exported_hpp__
| [
"roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76"
] | [
[
[
1,
49
]
]
] |
a817167cd919dcbab5c1fda57ee0aaf2c321431a | df238aa31eb8c74e2c208188109813272472beec | /BCGInclude/BCGPSkinEntry.h | 66a2d589152feb7e06485c01ca3a812655cf6973 | [] | no_license | myme5261314/plugin-system | d3166f36972c73f74768faae00ac9b6e0d58d862 | be490acba46c7f0d561adc373acd840201c0570c | refs/heads/master | 2020-03-29T20:00:01.155206 | 2011-06-27T15:23:30 | 2011-06-27T15:23:30 | 39,724,191 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,354 | h | //*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of the BCGControlBar Library
// Copyright (C) 1998-2008 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions
// of the accompanying license agreement.
//*******************************************************************************
#if !defined(AFX_BCGPSKINENTRY_H__5FD2EEA5_7D66_4687_A64F_31A271C233FD__INCLUDED_)
#define AFX_BCGPSKINENTRY_H__5FD2EEA5_7D66_4687_A64F_31A271C233FD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef BOOL (__stdcall * GETBCGSKINVERSION)(int&,int&);
typedef BOOL (__stdcall * ISUNICODE)();
typedef int (__stdcall * GETBCGSKINCOUNT)(void);
typedef LPCTSTR (__stdcall * GETBCGSKINNAME)(int);
typedef LPCTSTR (__stdcall * GETBCGSKINAUTHOR)(int);
typedef LPCTSTR (__stdcall * GETBCGSKINAUTHORMAIL)(int);
typedef LPCTSTR (__stdcall * GETBCGSKINAUTHORURL)(int);
typedef CRuntimeClass* (__stdcall * GETBCGSKIN)(int);
typedef BOOL (__stdcall * BCGPREVIEWSKIN)(CDC*, int,CRect);
class CBCGPSkinEntry
{
friend class CBCGPSkinManager;
public:
CBCGPSkinEntry ( const CString& strLibraryPath,
const CString& strSkinName,
const CString& strSkinAuthor,
const CString& strSkinAuthorMail,
const CString& strSkinAuthorURL,
int iLibraryIndex,
int iSkinIndexInLibrary) :
m_strLibraryPath (strLibraryPath),
m_strSkinName (strSkinName),
m_strSkinAuthor (strSkinAuthor),
m_strSkinAuthorURL (strSkinAuthorURL),
m_strSkinAuthorMail (strSkinAuthorMail),
m_iLibraryIndex (iLibraryIndex),
m_iSkinIndexInLibrary (iSkinIndexInLibrary)
{
}
CBCGPSkinEntry () :
m_iLibraryIndex (-1),
m_iSkinIndexInLibrary (-1)
{
}
CBCGPSkinEntry(const CBCGPSkinEntry& source)
{
m_strLibraryPath = source.m_strLibraryPath;
m_strSkinName = source.m_strSkinName;
m_strSkinAuthor = source.m_strSkinAuthor;
m_strSkinAuthorMail = source.m_strSkinAuthorMail;
m_strSkinAuthorURL = source.m_strSkinAuthorURL;
m_iLibraryIndex = source.m_iLibraryIndex;
m_iSkinIndexInLibrary = source.m_iSkinIndexInLibrary;
}
virtual ~CBCGPSkinEntry()
{
}
// Attributes:
private:
CString m_strLibraryPath;
CString m_strSkinName;
CString m_strSkinAuthor;
CString m_strSkinAuthorMail;
CString m_strSkinAuthorURL;
int m_iLibraryIndex;
int m_iSkinIndexInLibrary;
};
class CBCGPSkinLibrary
{
public:
// Opreations:
CBCGPSkinLibrary ()
{
m_pfGetSkinVersion = NULL;
m_pfIsUNICODE = NULL;
m_pfGetSkinCount = NULL;
m_pfGetSkinName = NULL;
m_pfGetSkinAuthor = NULL;
m_pfGetSkinAuthorURL = NULL;
m_pfGetSkinAuthorMail = NULL;
m_pfGetSkin = NULL;
m_hInstance = NULL;
}
CBCGPSkinLibrary(const CBCGPSkinLibrary& source)
{
m_pfGetSkinVersion = source.m_pfGetSkinVersion;
m_pfIsUNICODE = source.m_pfIsUNICODE;
m_pfGetSkinCount = source.m_pfGetSkinCount;
m_pfGetSkinName = source.m_pfGetSkinName;
m_pfGetSkinAuthor = source.m_pfGetSkinAuthor;
m_pfGetSkinAuthorURL = source.m_pfGetSkinAuthorURL;
m_pfGetSkinAuthorMail = source.m_pfGetSkinAuthorMail;
m_pfGetSkin = source.m_pfGetSkin;
m_hInstance = source.m_hInstance;
m_pfSkinPreview = source.m_pfSkinPreview;
}
virtual ~CBCGPSkinLibrary()
{
}
BOOL Init (HINSTANCE hInstance);
int GetSkinsCount () const
{
return (m_pfGetSkinVersion == NULL) ? -1 : m_pfGetSkinCount ();
}
CRuntimeClass* GetSkin (int iIndex) const
{
return (m_pfGetSkin == NULL) ? NULL : m_pfGetSkin(iIndex);
}
BOOL GetSkinName (int iIndex, CString& strName) const
{
strName.Empty ();
if (m_pfGetSkinName == NULL)
{
return FALSE;
}
LPCTSTR lpszName = (LPCTSTR) m_pfGetSkinName (iIndex);
if (lpszName == NULL)
{
return FALSE;
}
strName = lpszName;
return TRUE;
}
BOOL GetSkinAuthor (int iIndex, CString& strAuthor) const
{
strAuthor.Empty ();
if (m_pfGetSkinAuthor == NULL)
{
return FALSE;
}
LPCTSTR lpszAuthor = (LPCTSTR) m_pfGetSkinAuthor (iIndex);
if (lpszAuthor == NULL)
{
return FALSE;
}
strAuthor = lpszAuthor;
return TRUE;
}
BOOL GetSkinAuthorURL (int iIndex, CString& strAuthorURL) const
{
strAuthorURL.Empty ();
if (m_pfGetSkinAuthorURL == NULL)
{
return FALSE;
}
LPCTSTR lpszAuthorURL = (LPCTSTR) m_pfGetSkinAuthorURL (iIndex);
if (lpszAuthorURL == NULL)
{
return FALSE;
}
strAuthorURL = lpszAuthorURL;
return TRUE;
}
BOOL GetSkinAuthorMail (int iIndex, CString& strAuthorMail) const
{
strAuthorMail.Empty ();
if (m_pfGetSkinAuthorMail == NULL)
{
return FALSE;
}
LPCTSTR lpszAuthorMail = (LPCTSTR) m_pfGetSkinAuthorMail (iIndex);
if (lpszAuthorMail == NULL)
{
return FALSE;
}
strAuthorMail = lpszAuthorMail;
return TRUE;
}
BOOL GetSkinVersion(int& iVersionMajor,int& iVersionMinor) const
{
return (m_pfGetSkinVersion == NULL) ?
-1 : m_pfGetSkinVersion (iVersionMajor,iVersionMinor);
}
BOOL IsUNICODE() const
{
return (m_pfIsUNICODE == NULL) ? FALSE : m_pfIsUNICODE();
}
HINSTANCE GetInstance() const
{
return m_hInstance;
}
BOOL PreviewSkin (CDC* pDC, int iSkinIndex, CRect rect)
{
return (m_pfSkinPreview == NULL) ? FALSE : m_pfSkinPreview (pDC, iSkinIndex, rect);
}
HINSTANCE Detach ()
{
m_pfGetSkinVersion = NULL;
m_pfIsUNICODE = NULL;
m_pfGetSkinCount = NULL;
m_pfGetSkinName = NULL;
m_pfGetSkinAuthor = NULL;
m_pfGetSkinAuthorURL = NULL;
m_pfGetSkinAuthorMail = NULL;
m_pfGetSkin = NULL;
HINSTANCE hInstance = m_hInstance;
m_hInstance = NULL;
return hInstance;
}
// Attributes:
public:
GETBCGSKINVERSION m_pfGetSkinVersion;
ISUNICODE m_pfIsUNICODE;
GETBCGSKINCOUNT m_pfGetSkinCount;
GETBCGSKINNAME m_pfGetSkinName;
GETBCGSKINAUTHOR m_pfGetSkinAuthor;
GETBCGSKINAUTHOR m_pfGetSkinAuthorMail;
GETBCGSKINAUTHOR m_pfGetSkinAuthorURL;
GETBCGSKIN m_pfGetSkin;
BCGPREVIEWSKIN m_pfSkinPreview;
HINSTANCE m_hInstance;
};
#endif // !defined(AFX_BCGPSKINENTRY_H__5FD2EEA5_7D66_4687_A64F_31A271C233FD__INCLUDED_)
| [
"myme5261314@ec588229-7da7-b333-41f6-0e1ebc3afda5"
] | [
[
[
1,
259
]
]
] |
2f87e00f9bef0524c06c721c104b6803b9283950 | c5534a6df16a89e0ae8f53bcd49a6417e8d44409 | /trunk/nGENE Proj/Camera2D.h | da6e6188adf6aa7d44dad007ed97e0d66103e7ce | [] | no_license | svn2github/ngene | b2cddacf7ec035aa681d5b8989feab3383dac012 | 61850134a354816161859fe86c2907c8e73dc113 | refs/heads/master | 2023-09-03T12:34:18.944872 | 2011-07-27T19:26:04 | 2011-07-27T19:26:04 | 78,163,390 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,814 | h | /*
---------------------------------------------------------------------------
This source file is part of nGENE Tech.
Copyright (c) 2006- Wojciech Toman
This program is free software.
File: Camera2D.h
Version: 0.03
---------------------------------------------------------------------------
*/
#pragma once
#ifndef __INC_CAMERA2D_H_
#define __INC_CAMERA2D_H_
#include "Camera.h"
#include "Prerequisities.h"
#include "TypeInfo.h"
namespace nGENE
{
/** Camera class used in 2D space.
@remarks
This camera class is especially usefull in creating side scroll
games (eg. 2D platform games) and isometric games (RTS or RPG).
@par
It is important to notice that you should not use Camera2D together
with Camera3D objects as the first uses pixel coordinates.
*/
class nGENEDLL Camera2D: public Camera
{
EXPOSE_TYPE
public:
/** This enumeration specifies which axes will be available for movement.
The axis not specified is locked. Note that exactly one axis must be
locked.
*/
enum CAMERA_LOCK_AXES
{
CLA_X_Y,
CLA_X_Z,
CLA_Y_Z
};
private:
Real m_fVelocity; ///< Camera scroll speed
Real m_fZoom; ///< Camera zoom level
Real m_fDistance; ///< Distance from the target point
CAMERA_LOCK_AXES m_Axes; ///< Axes in which movement is possible
protected:
/// Updates all camera vectors.
virtual void updateAxes();
public:
Camera2D();
virtual ~Camera2D();
virtual void init();
virtual void cleanup();
/// Updates camera.
virtual void updateCamera();
/// Scrolls the camera.
virtual void scroll(const Vector2& _direction);
/// Sets camera scroll speed.
void setVelocity(Real _velocity);
/// Returns camera velocity.
Real getVelocity() const;
/** Sets camera zoom level.
@param
_zoom is the zoom level for the camera. Values greater than 1 cause
zoom in, whilst those less than 1 zoom out. Values smaller then
0 will cause flip in y axis. Although I doubt it, you can use it for
some purpose.
*/
void setZoom(Real _zoom);
/// Returns camera zoom.
Real getZoom() const;
/// Sets distance from the target point.
void setDistance(Real _distance);
/// Returns distance from the target point.
Real getDistance() const;
void setAxesLock(const CAMERA_LOCK_AXES& _axes);
CAMERA_LOCK_AXES& getAxesLock();
virtual void serialize(ISerializer* _serializer, bool _serializeType, bool _serializeChildren);
virtual void deserialize(ISerializer* _serializer);
};
/** Camera factory to be used for creating Camera2D objects.
*/
class nGENEDLL Camera2DFactory: public CameraFactory
{
public:
Camera2DFactory();
virtual ~Camera2DFactory();
Camera* createCamera() {return new Camera2D();}
};
inline void Camera2D::setVelocity(Real _velocity)
{
m_fVelocity = _velocity;
}
//----------------------------------------------------------------------
inline Real Camera2D::getVelocity() const
{
return m_fVelocity;
}
//----------------------------------------------------------------------
inline Real Camera2D::getZoom() const
{
return m_fZoom;
}
//----------------------------------------------------------------------
inline Real Camera2D::getDistance() const
{
return m_fDistance;
}
//----------------------------------------------------------------------
inline void Camera2D::setAxesLock(const Camera2D::CAMERA_LOCK_AXES& _axes)
{
m_Axes = _axes;
}
//----------------------------------------------------------------------
inline Camera2D::CAMERA_LOCK_AXES& Camera2D::getAxesLock()
{
return m_Axes;
}
//----------------------------------------------------------------------
}
#endif | [
"Riddlemaster@fdc6060e-f348-4335-9a41-9933a8eecd57"
] | [
[
[
1,
148
]
]
] |
a6ec703f9eb40bc10eb522abc767babe98822a7d | b4d726a0321649f907923cc57323942a1e45915b | /CODE/ImpED/Grid.cpp | d55788c339df9d775a4c8145fef6a9fbedb03a76 | [] | no_license | chief1983/Imperial-Alliance | f1aa664d91f32c9e244867aaac43fffdf42199dc | 6db0102a8897deac845a8bd2a7aa2e1b25086448 | refs/heads/master | 2016-09-06T02:40:39.069630 | 2010-10-06T22:06:24 | 2010-10-06T22:06:24 | 967,775 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,127 | cpp | /*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
/*
* $Logfile: /Freespace2/code/FRED2/Grid.cpp $
* $Revision: 1.2 $
* $Date: 2002/08/15 01:06:34 $
* $Author: penguin $
*
* Grid dialog box created by Mike. Probably will never be used again.
*
* $Log: Grid.cpp,v $
* Revision 1.2 2002/08/15 01:06:34 penguin
* Include filename reorg (to coordinate w/ fs2_open)
*
* Revision 1.1.1.1 2002/07/15 03:10:58 inquisitor
* Initial FRED2 Checking
*
*
* 2 10/07/98 6:28p Dave
* Initial checkin. Renamed all relevant stuff to be Fred2 instead of
* Fred. Globalized mission and campaign file extensions. Removed Silent
* Threat specific code.
*
* 1 10/07/98 3:01p Dave
*
* 1 10/07/98 3:00p Dave
*
* 5 6/18/97 11:36p Lawrance
* move grid rendering code to MissionGrid.cpp
*
* 4 2/17/97 5:28p Hoffoss
* Checked RCS headers, added them were missing, changing description to
* something better, etc where needed.
*
* $NoKeywords: $
*/
#include "stdafx.h"
#include "FRED.h"
#include "Grid.h"
#include "render/3d.h"
#include "object/object.h"
#include "editor.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern int double_fine_gridlines;
/////////////////////////////////////////////////////////////////////////////
// CGrid dialog
// Modeless constructor, MK
CGrid::CGrid(CView* pView)
{
m_pGView = pView;
}
CGrid::CGrid(CWnd* pParent /*=NULL*/)
: CDialog(CGrid::IDD, pParent)
{
//{{AFX_DATA_INIT(CGrid)
m_GridSize = 0;
//}}AFX_DATA_INIT
m_pGView = NULL;
}
void CGrid::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CGrid)
DDX_Text(pDX, IDC_GRID_SIZE, m_GridSize);
DDV_MinMaxUInt(pDX, m_GridSize, 2, 20);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CGrid, CDialog)
//{{AFX_MSG_MAP(CGrid)
ON_BN_CLICKED(IDC_GRID_XY_PLANE, OnGridXyPlane)
ON_BN_CLICKED(IDC_GRID_XZ_PLANE, OnGridXzPlane)
ON_BN_CLICKED(IDC_GRID_YZ_PLANE, OnGridYzPlane)
ON_WM_CLOSE()
ON_WM_DESTROY()
ON_WM_KILLFOCUS()
ON_WM_VSCROLL()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGrid message handlers
extern grid *The_grid;
void GridOrient(vector *forward, vector *right)
{
vector center;
int nrows, ncols;
float square_size;
if (The_grid != NULL){
center = The_grid->center;
nrows = The_grid->nrows;
ncols = The_grid->ncols;
square_size = The_grid->square_size;
} else {
vm_vec_make(¢er, 0.0f, 0.0f, 0.0f);
nrows = 20;
ncols = 20;
square_size = 2.0f;
}
The_grid = create_grid(The_grid, forward,
right,
¢er,
nrows, ncols,
square_size);
physics_init(&The_grid->physics);
}
void CGrid::OnGridXyPlane()
{
vector forward, right;
vm_vec_make(&forward, 0.0f, 1.0f, 0.0f);
vm_vec_make(&right, 1.0f, 0.0f, 0.0f);
GridOrient(&forward, &right);
}
void CGrid::OnGridXzPlane()
{
vector forward, right;
vm_vec_make(&forward, 0.0f, 0.0f, 1.0f);
vm_vec_make(&right, 1.0f, 0.0f, 0.0f);
GridOrient(&forward, &right);
}
void CGrid::OnGridYzPlane()
{
vector forward, right;
vm_vec_make(&forward, 0.0f, 1.0f, 0.0f);
vm_vec_make(&right, 0.0f, 0.0f, 1.0f);
GridOrient(&forward, &right);
}
BOOL CGrid::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)
{
return CDialog::Create(IDD, pParentWnd);
}
BOOL CGrid::Create()
{
return CDialog::Create(CGrid::IDD);
}
void CGrid::OnClose()
{
DestroyWindow();
}
void CGrid::OnDestroy()
{
UpdateData(TRUE);
CDialog::OnDestroy();
}
void CGrid::OnKillFocus(CWnd* pNewWnd)
{
CDialog::OnKillFocus(pNewWnd);
DestroyWindow();
}
BOOL CGrid::DestroyWindow()
{
// TODO: Add your specialized code here and/or call the base class
UpdateData(TRUE);
return CDialog::DestroyWindow();
}
BOOL CGrid::OnInitDialog()
{
CDialog::OnInitDialog();
CSpinButtonCtrl* pSpin = (CSpinButtonCtrl*) GetDlgItem(IDC_SPIN_GRID_SIZE);
pSpin->SetRange(2, 20);
if ((m_GridSize < 2) || (m_GridSize > 20))
m_GridSize = The_grid->ncols/5;
pSpin->SetPos(m_GridSize);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CGrid::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
CString strValue;
CSpinButtonCtrl* pSpin = (CSpinButtonCtrl*) GetDlgItem(IDC_SPIN_GRID_SIZE);
strValue.Format("%i", pSpin->GetPos());
pSpin->GetBuddy()->SetWindowText(strValue);
The_grid->nrows = pSpin->GetPos()*5;
The_grid->ncols = The_grid->nrows;
modify_grid(The_grid);
CDialog::OnVScroll(nSBCode, nPos, pScrollBar);
}
| [
"[email protected]"
] | [
[
[
1,
236
]
]
] |
723d4a636eab59fbcbf2e9f426418b84bc8a6e2c | c497f6d85bdbcbb21e93ae701c5570f16370f0ae | /Sync/Lets_try_all_engine/backup/Clear/SatMde.cpp | 4c1cecc29d41460b02b6d4d8cab05bca3328c130 | [] | no_license | mfkiwl/gpsgyan_fork | 91b380cf3cfedb5d1aac569c6284bbf34c047573 | f7c850216c16b49e01a0653b70c1905b5b6c2587 | refs/heads/master | 2021-10-15T08:32:53.606124 | 2011-01-19T16:24:18 | 2011-01-19T16:24:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,126 | cpp | #pragma ident "$Id$"
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 2.1 of the License, or
// any later version.
//
// The GPSTk is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with GPSTk; if not, write to the Free Software Foundation,
// Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// Copyright 2008, The University of Texas at Austin
//
//============================================================================
//
// Compute number of stations visible to a set of space vehicles (SV)
// over a requested period (default 23:56). Accept FIC
// almanac format, FIC ephemeris, Rinex nav, Yuma almanac, SEM almanac,
// or SP3 as input
//
// Assumptions:
//
// System
#include <stdio.h>
#include <iostream>
#include <string>
#include <list>
// gpstk
#include "StringUtils.hpp"
#include "GPSAlmanacStore.hpp"
#include "icd_200_constants.hpp"
#include "gps_constants.hpp"
#include "SatMde.hpp"
#include "WGS84Geoid.hpp"
#include "PreciseRange.hpp"
using namespace gpstk;
using namespace std;
void SatMDE::InputInfToEngine(Kind kind )
{
switch(kind)
{
case PASSIVE : GetPassiveInput(ref_psv);
break;
case ACTIVE : GetActiveInput(ref_act);
break;
default: break; // Set the flag as null signifying no input
}
}
void SatMDE::GetPassiveInput(satMDE_psvIstruct &ref_psv)
{
satMDE_pi = ref_psv;
visSV = 0;
channel.passiveData.alpha[0] = 0.010e-6;
channel.passiveData.alpha[1] = 0.000e-6;
channel.passiveData.alpha[2] = -0.060e-6;
channel.passiveData.alpha[3] = 0.000e-6;
channel.passiveData.beta[0] =90e3;
channel.passiveData.beta[1] =0e3;
channel.passiveData.beta[2] =-197e3;
channel.passiveData.beta[3] =0e3;
}
void SatMDE::GetActiveInput(satMDE_actIstruct &ref_act)
{
satMDE_ai = ref_act;
}
void SatMDE::InputParamToEngine(Kind kind)
{
switch(kind)
{
case PASSIVE : GetPassiveParam();
break;
case ACTIVE : GetActiveParam();
break;
default: break; // Set the flag as null signifying no input
}
}
void SatMDE::GetPassiveParam()
{
visSV= M_ZERO;
timeToCompute = true;
visiblityComputed = false;
visCounter = M_ZERO;
newSV = true;
isThisFirstTime = false;
}
void SatMDE::GetActiveParam()
{
satMDE_pData.clear();
}
void SatMDE::VerifyIpToEngine() throw(ExcSatMDE)
{
#if 0
ExcSatMDE e("Verification" , 0 ,gpstk::Exception::recoverable);
e.setErrorId(1);
try
{
/* Verify the Input Elevation */
if(minElev < MIN_ELV_ANGLE)
{
e.addText("Elevation Underflow ");
e.addLocation(FILE_LOCATION);
error_number.push_back(1);
}
if (yumaReader.eph == NULL)
{
e.addText("Didn't get any Orbital data from the Yuma files. ");
e.addLocation(FILE_LOCATION);
error_number.push_back(2);
throw e;
}
}
catch(ExcSatMDE &e)
{
SatMDE_ExpHandler(e);
}
#endif
}
void SatMDE::MethodOfEngine()
{
satMDE_range prevsecond,current;
std::vector<satMDE_range> vTemprange;
satMDE_ostruct temp_mdpdata;
DayTime gpsTrueTime = satMDE_ai.gpsTrueTime;
int N = satMDE_ai.satDb_ref->size();
int i;
Xvt rxXvt = satMDE_ai.rxXvt;
WGS84Geoid geoid;
double tempPR, tempIono , tempTrop ,tempRangeRate;
prange.resize(0);
visSV = M_ZERO;
if(timeToCompute)
{
timeToCompute = false;
rejectedSV.resize(0);
visibleSV.resize(0);
for (int i=0; i<N; i++)
{
Xvt satXvt= satMDE_ai.satDb_ref->at(i).satXvt ;
SatID satid = satMDE_ai.satDb_ref->at(i).prn ;
updateLocals(satXvt,rxXvt);
if(elevation < satMDE_pi.minElev)
{
rejectedSV.push_back(satid);
continue;
}
else
{
visSV ++;
visibleSV.push_back(satid);
visiblityComputed = true;
// Find Ranges when complete set is visible
current.prn=satMDE_ai.satDb_ref->at(i).prn;
current.range = ComputeCorrectedRange(satXvt,rxXvt);
prange.push_back(current);
int loc = findSvPrvRange(satid); // this gives the location of previous range of the if SV was visblible in previous run
if(newSV)
prevsecond.range = (double)M_ZERO;
else
prevsecond.range = prevRange.at(loc).range;
prevsecond.prn = satid;
tempRangeRate = current.range - prevsecond.range;
prevsecond.range =current.range ; // update the SV range to current range
ComputePhaseAndDoppler(i,tempRangeRate);
temp_mdpdata.phaseWindUp = ComputePhaseWindUpDelay(i,gpsTrueTime);
temp_mdpdata.prn =current.prn;
temp_mdpdata.elevation = elevation;
temp_mdpdata.azimuth = azimuth;
temp_mdpdata.corrRange =current.range;
temp_mdpdata.rawRange = rawrange;
temp_mdpdata.ionoDelayL1 =ionoL1;
temp_mdpdata.carrierDopplerL1 =carrierDopplerL1;
temp_mdpdata.codeDopplerCaL1 =codeDopplerCaL1;
temp_mdpdata.ionoDelayL2 =ionoL2;
temp_mdpdata.carrierDopplerL2 =carrierDopplerL2;
temp_mdpdata.codeDopplerCaL2 =codeDopplerCaL2;
temp_mdpdata.ionoDelayL5 =ionoL5;
temp_mdpdata.carrierDopplerL5 =carrierDopplerL5;
temp_mdpdata.codeDopplerPyL5 =codeDopplerPyL5;
temp_mdpdata.rangeRate =tempRangeRate;
vTemprange.push_back(prevsecond);
satMDE_pData.push_back(temp_mdpdata);
}
}
prevRange.resize(0);
prevRange = vTemprange;
}
else
{
for (int i=0; i<N; i++)
{
Xvt satXvt= satMDE_ai.satDb_ref->at(i).satXvt ;
SatID satid = satMDE_ai.satDb_ref->at(i).prn ;
updateLocals(satXvt,rxXvt);
// Compute range with only visible sat
current.prn=satMDE_ai.satDb_ref->at(i).prn;
//PseudoRange Calculation
current.range = ComputeCorrectedRange(satXvt,rxXvt);
prange.push_back(current);
//RangeRate Calculation
tempRangeRate = current.range - prevRange.at(i).range;
//Doppler, IONO, Phase
ComputePhaseAndDoppler(i,tempRangeRate);
temp_mdpdata.phaseWindUp = ComputePhaseWindUpDelay(i,gpsTrueTime);
temp_mdpdata.prn =current.prn;
temp_mdpdata.elevation = elevationGeodetic;
temp_mdpdata.azimuth = azimuthGeodetic;
temp_mdpdata.corrRange =current.range;
temp_mdpdata.rawRange = rawrange;
temp_mdpdata.rangeRate =tempRangeRate;
temp_mdpdata.ionoDelayL1 =ionoL1;
temp_mdpdata.carrierDopplerL1 =carrierDopplerL1;
temp_mdpdata.codeDopplerCaL1 =codeDopplerCaL1;
temp_mdpdata.ionoDelayL2 =ionoL2;
temp_mdpdata.carrierDopplerL2 =carrierDopplerL2;
temp_mdpdata.codeDopplerCaL2 =codeDopplerCaL2;
temp_mdpdata.ionoDelayL5 =ionoL5;
temp_mdpdata.carrierDopplerL5 =carrierDopplerL5;
temp_mdpdata.codeDopplerPyL5 =codeDopplerPyL5;
satMDE_pData.push_back(temp_mdpdata);
}
prevRange.resize(0);
prevRange = prange;
visCounter++;
timeToCompute = false;
if(visCounter == TIME_FOR_ELV_COMP)
{
//reset counter
visiblityComputed = false;
visCounter = M_ZERO;
timeToCompute = true;
}
}
}
double SatMDE::ComputeCorrectedRange(Xvt& satXvt , Xvt& rxXvt)
{
WGS84Geoid geoid;
double relativity = (satXvt.ddtime - satXvt.dtime)* geoid.c(); // get relativistic correction
double corr_range = satXvt.preciseRho(rxXvt.x, geoid, relativity) ;
return(corr_range);
}
int SatMDE::findSvPrvRange(SatID vis_svid)
{
newSV= true;
for(int i=0; i < prevRange.size() ; i++)
{
SatID tempID = prevRange.at(i).prn;
if(tempID.id == vis_svid.id)
{
newSV = false;
return(i);
}
}
return(0);
}
void SatMDE::updateLocals(const Xvt& satXvt ,const Xvt& rxXvt)
{
Position Rx(rxXvt);
//Rx.setECEF(rxXvt.x[0],rxXvt.x[1],rxXvt.x[2]);
rawrange = RSS(satXvt.x[0]-Rx.X(),
satXvt.x[1]-Rx.Y(),
satXvt.x[2]-Rx.Z());
cosines[0] = (Rx.X()-satXvt.x[0])/rawrange;
cosines[1] = (Rx.Y()-satXvt.x[1])/rawrange;
cosines[2] = (Rx.Z()-satXvt.x[2])/rawrange;
Position SV(satXvt);
elevation = Rx.elevation(SV);
azimuth = Rx.azimuth(SV);
elevationGeodetic = Rx.elevationGeodetic(SV);
azimuthGeodetic = Rx.azimuthGeodetic(SV);
}
void SatMDE::ComputePhaseAndDoppler(int sat_index,double rangeRate)
{
//Get the IONO Correction w.r.t to current satellite frequency
//Remember Satellite Frequency L1 or L2 or L5 is not fixed as they
//suffer from the satellite clock bias and jitter
Xvt rxXvt = satMDE_ai.rxXvt;
DayTime gpsTrueTime = satMDE_ai.gpsTrueTime;
/* Calculate Param for L1 */
double gpsCarrFreq = satMDE_ai.satDb_ref->at(sat_index).carrFreqL1 ;
double gpsCodeFreqCA = satMDE_ai.satDb_ref->at(sat_index).chipFreqCA ;
double lambda = C_GPS_M/gpsCarrFreq;
double gpsCar2CodeRatio = gpsCarrFreq / gpsCodeFreqCA;
//gpstk::IonoModel::Frequency freq = L1;
ionoL1 = getIonoCorrections(alpha,beta,gpsTrueTime,
rxXvt,
elevation,
azimuth,gpstk::IonoModel::L1);
carrierDopplerL1 = rangeRate / lambda;
codeDopplerCaL1 = carrierDopplerL1/gpsCar2CodeRatio;
/* Calculate Param for L2 */
gpsCarrFreq = satMDE_ai.satDb_ref->at(sat_index).carrFreqL2 ;
gpsCodeFreqCA = satMDE_ai.satDb_ref->at(sat_index).chipFreqCA ;
lambda = C_GPS_M/gpsCarrFreq;
gpsCar2CodeRatio = gpsCarrFreq / gpsCodeFreqCA;
ionoL2 = getIonoCorrections(alpha,beta,gpsTrueTime,
rxXvt,
elevation,
azimuth,gpstk::IonoModel::L2);
carrierDopplerL2 = rangeRate / lambda;
codeDopplerCaL2 = carrierDopplerL2/gpsCar2CodeRatio;
/* Calculate Param for L2 */
gpsCarrFreq = satMDE_ai.satDb_ref->at(sat_index).carrFreqL5 ;
gpsCodeFreqCA = satMDE_ai.satDb_ref->at(sat_index).chipFreqPY ; //L5 chip rate = 10.23e6 same as P(Y) in L1
lambda = C_GPS_M/gpsCarrFreq;
gpsCar2CodeRatio = gpsCarrFreq / gpsCodeFreqCA;
ionoL5 = getIonoCorrections(alpha,beta,gpsTrueTime,
rxXvt,
elevation,
azimuth,gpstk::IonoModel::L2);
carrierDopplerL5 = rangeRate / lambda;
codeDopplerPyL5 = carrierDopplerL5/gpsCar2CodeRatio;
}
double SatMDE::getIonoCorrections(double alpha[],double beta[],DayTime Tr,
Xvt &rxXvt,
double elevation,
double azimuth,gpstk::IonoModel::Frequency )
{
Position rxPos(rxXvt); // Convert Position rxPos to Geodetic rxGeo
Geodetic rxGeo( rxPos.getGeodeticLatitude(),
rxPos.getLongitude(),
rxPos.getAltitude() );
IonoModel tempIono(alpha,beta);
double ionoCorr(0.0);
try
{
ionoCorr = tempIono.getCorrection(Tr, rxGeo, elevation, azimuth,gpstk::IonoModel::L1);
}
catch(IonoModel::InvalidIonoModel& e)
{
ionoCorr = 0.0;
}
return ionoCorr;
} // End of method 'ModeledReferencePR::getIonoCorrections()'
void SatMDE::outputInfFromEngine(std::ostream & s )
{
string el;
el = "";
using namespace StringUtils;
satMDE_oData = satMDE_pData;
el = print_header();
el += leftJustify("\n",3);
s<<el;
for (int prn=0; prn <satMDE_oData.size(); prn++)
{
using std::endl;
using std::setw;
s << std::setprecision(4); // set the precision of probe output
s << print_content(satMDE_oData[prn]);
}
/*el = leftJustify("______________________________",24);
el += leftJustify("\n",3);
s<<el;
s << satTime.printf("%Y %03j % 12.6s")<<endl;
el = leftJustify("______________________________",24);
el += leftJustify("\n",3);
s<<el;*/
}
void SatMDE::SatMDE_ExpHandler(ExcSatMDE &e)
{
int i=0;
/*
unsigned long eid = error_number[1];
switch(eid)
{
case 2: minElev = MIN_ELV_ANGLE;
break;
case 1: e.terminate();
break;
case 0: cout<<"over";
break;
}
*/
}
std::string SatMDE::print_content(satMDE_ostruct &ostruct)
{
string content;
content = "";
using namespace StringUtils;
content += leftJustify(asString(ostruct.prn), 6);
content += leftJustify("\t",3);
content += leftJustify(asString((double)ostruct.rawRange), 13);
content += leftJustify("\t",3);
content += leftJustify(asString((double)ostruct.corrRange), 13);
content += leftJustify("\t",3);
content += leftJustify(asString((double)ostruct.rangeRate), 13);
content += leftJustify("\t",3);
content += leftJustify(asString((double)ostruct.carrierDopplerL1), 13);
content += leftJustify("\t",3);
content += leftJustify(asString((double)ostruct.codeDopplerCaL1), 13);
content += leftJustify("\t",3);
content += leftJustify(asString((double)ostruct.phaseWindUp), 13);
content += leftJustify("\n",3);
// content += leftJustify(asString(e.sattime),13);
// content += leftJustify("\n",3);
return(content);
}
std::string SatMDE::print_header()
{
string header;
header = "";
using namespace StringUtils;
header += leftJustify("Sys PRN", 6);
header += leftJustify("\t",3);
header += leftJustify("RawRange X", 13);
header += leftJustify("\t",3);
header += leftJustify("Corr_range Y", 13);
header += leftJustify("\t",3);
header += leftJustify("Delta Range", 13);
header += leftJustify("\t",3);
header += leftJustify("elevation Z", 13);
header += leftJustify("\t",3);
header += leftJustify("azimuth", 13);
header += leftJustify("\t",3);
header += leftJustify("IONO Delay", 13);
header += leftJustify("\n",3);
// header += leftJustify(asString(e.sattime),13);
// header += leftJustify("\n",3);
return(header);
}
double SatMDE::ComputePhaseWindUpDelay(int sat_index,DayTime time)
{
SunPosition sunPosition;
Triple sunPos(sunPosition.getPosition(time));
Xvt satXvt= satMDE_ai.satDb_ref->at(sat_index).satXvt ;
SatID satid =satMDE_ai.satDb_ref->at(sat_index).prn ;
Triple svPos = satXvt.x;
Xvt rxXvt = satMDE_ai.rxXvt;
Position posRx(rxXvt);
double error =getWindUp(satid, time, svPos, sunPos ,posRx);
return(error);
}
double SatMDE::getWindUp( const SatID& satid,
const DayTime& time,
const Triple& sat,
const Triple& sunPosition,
const Position& posRx)
{
// Unitary vector from satellite to Earth mass center
Triple rk( ( (-1.0)*(sat.unitVector()) ) );
// Unitary vector from Earth mass center to Sun
Triple ri( sunPosition.unitVector() );
// rj = rk x ri
Triple rj(rk.cross(ri));
// ri = rj x rk
ri = rj.cross(rk);
// Let's convert ri, rj to unitary vectors.
// Now ri, rj, rk form a base in the ECEF reference frame
ri = ri.unitVector();
rj = rj.unitVector();
// Get satellite rotation angle
// Get vector from Earth mass center to receiver
Triple rxPos(posRx.X(), posRx.Y(), posRx.Z());
// Compute unitary vector vector from satellite to RECEIVER
Triple rrho( (rxPos-sat).unitVector() );
// Vector from SV to Sun center of mass
Triple gps_sun( sunPosition-sat );
// Redefine rk: Unitary vector from SV to Earth mass center
rk = (-1.0)*(sat.unitVector());
// Redefine rj: rj = rk x gps_sun, then make sure it is unitary
rj = (rk.cross(gps_sun)).unitVector();
// Redefine ri: ri = rj x rk, then make sure it is unitary
// Now, ri, rj, rk form a base in the satellite body reference
// frame, expressed in the ECEF reference frame
ri = (rj.cross(rk)).unitVector();
// Projection of "rk" vector to line of sight vector (rrho)
double zk(rrho.dot(rk));
// Get a vector without components on rk (i.e., belonging
// to ri, rj plane)
Triple dpp(rrho-zk*rk);
// Compute dpp components in ri, rj plane
double xk(dpp.dot(ri));
double yk(dpp.dot(rj));
// Compute satellite rotation angle, in radians
double alpha1(std::atan2(yk,xk));
// Get receiver rotation angle
// Redefine rk: Unitary vector from Receiver to Earth mass center
rk = (-1.0)*(rxPos.unitVector());
// Let's define a NORTH unitary vector in the Up, East, North
// (UEN) topocentric reference frame
Triple delta(0.0, 0.0, 1.0);
// Rotate delta to XYZ reference frame
delta =
(delta.R2(tempPos.geodeticLatitude())).R3(-tempPos.longitude());
// Computation of reference trame unitary vectors for receiver
// rj = rk x delta, and make it unitary
rj = (rk.cross(delta)).unitVector();
// ri = rj x rk, and make it unitary
ri = (rj.cross(rk)).unitVector();
// Projection of "rk" vector to line of sight vector (rrho)
zk = rrho.dot(rk);
// Get a vector without components on rk (i.e., belonging
// to ri, rj plane)
dpp = rrho-zk*rk;
// Compute dpp components in ri, rj plane
xk = dpp.dot(ri);
yk = dpp.dot(rj);
// Compute receiver rotation angle, in radians
double alpha2(std::atan2(yk,xk));
double wind_up(0.0);
// Find out if satellite belongs to block "IIR", because
// satellites of block IIR have a 180 phase shift
int IIR_Sat[12]= {2,11,13,14,16,18,19,20,21,22,23,28};
for(int i=0;i<12;i++)
{
IIR = false;
if(satid.id == IIR_Sat[i])
{
IIR = true;
break;
}
}
if(IIR)
{
wind_up = PI;
}
alpha1 = alpha1 + wind_up;
double da1(alpha1-phase_satellite[satid].previousPhase);
double da2(alpha2-phase_station[satid].previousPhase);
// Let's avoid problems when passing from 359 to 0 degrees.
phase_satellite[satid].previousPhase += std::atan2( std::sin(da1),
std::cos(da1) );
phase_station[satid].previousPhase += std::atan2( std::sin(da2),
std::cos(da2) );
// Compute wind up effect in radians
wind_up = phase_satellite[satid].previousPhase -
phase_station[satid].previousPhase;
return wind_up;
} // End of method 'ComputeWindUp::getWindUp()'
| [
"priyankguddu@6c0848c6-feae-43ef-b685-015bb26c21a7"
] | [
[
[
1,
730
]
]
] |
b70b76d2562fdcc23c71f4f5eb59b3e762fdde93 | 54319da8732c447b8f196de5e98293083d3acf10 | /qt4_src/src/fxwidget.cpp | 9cc2d7962d392c38f1bc028c4f0c2a3863d55c3c | [
"curl"
] | permissive | libfetion/libfetion-gui | 6c0ed30f9b31669048347352b292fbe02e5505f3 | a5912c7ac301830c2953378e58a4d923bc0a0a8d | refs/heads/master | 2021-01-13T02:16:46.031301 | 2010-09-19T10:42:37 | 2010-09-19T10:42:37 | 32,465,618 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,878 | cpp | #include <QPushButton>
#include <QHBoxLayout>
#include <QSizePolicy>
#include <QWidget>
#include <QGridLayout>
#include <QLayout>
#include <QLabel>
#include <QResizeEvent>
#include <QtGui>
#include <QDebug>
#include "qwidgetresizehandler_p.h"
#include "fxwidgettitlebar.h"
#include "fxwidget.h"
namespace fxgui
{
FxWidget::FxWidget(QWidget *parent, Qt::WindowFlags flag) :
QWidget(parent, flag)
{
FX_FUNCTION
bgScaleLeft = 65;
bgScaleRight = 130;
bgScaleBottom = 58;
bgScaleTop = 135;
_autoHide = false;
_enableautoHide = false;
_isSetSystemTitleBar = false;
// for "editable label"
setFocusPolicy(Qt::ClickFocus);
//resizer
QWidgetResizeHandler *qwrh = new QWidgetResizeHandler(this);
Q_UNUSED(qwrh);
/*
_______________________________________________________
| _____________________________________________ | ___ |
| | titleBar | | |s| |
| | icon | title | min | max | close | | | |i| |
| |___________________________________________| | |d| |
| ____________________________________________ | |e| |
| | | | |B| |
| | | | |a| |
| | contentWidget | | |r| |
| | | | |R| |
| | | | |L| |
| |___________________________________________| | |_| |
|_______________________________________________|_____|
| ___________________________________________ | |
| |______________sideBarTB___________________| | |
|_______________________________________________|_____|
*/
_mainLayout = new QGridLayout(this);
contentWidget = new QWidget(this);
titleBar = new FxWidgetTitleBar(this);
connect(this, SIGNAL(triggleMaximizeAndNormal()), titleBar->btnMaximize,
SLOT(click()));
_mainLayout->addWidget(titleBar, 0, 0);
_mainLayout->addWidget(contentWidget, 1, 0);
sideBarRL = new QLabel(this);
sideBarRL->setSizePolicy(QSizePolicy(QSizePolicy::Ignored,
QSizePolicy::Expanding));
sideBarRL->setMaximumWidth(3); //@To FIX magic number
sideBarTB = new QLabel(this);
sideBarTB->setSizePolicy(QSizePolicy(QSizePolicy::Expanding,
QSizePolicy::Ignored));
//sideBarRL->setMaximumHeight(3);//@To FIX magic number
sideBarTB->setObjectName("sideBarTB");
sideBarRL->setObjectName("sideBarRL");
_mainLayout->addWidget(sideBarRL, 0, 0, 2, 1);
_mainLayout->addWidget(sideBarTB, 2, 0);
sideBarRL->hide();
sideBarTB->hide();
_mainLayout->setSpacing(0);
_mainLayout->setMargin(0);
setContentsMargins(3, 0, 3, 3);
QWidget::setLayout(_mainLayout);
orientSize = size();
updateWindowPositionType();
}
void FxWidget::setSystemTitleBar(bool flag)
{
FX_FUNCTION
bool isvisible = isVisible();
#ifdef Q_OS_MAC
setWindowFlags(windowFlags() ^ Qt::FramelessWindowHint);
setWindowFlags(windowFlags() ^ Qt::WindowSystemMenuHint);
enableAutoHide(false);
titleBar->hide();
sideBarRL->hide();
sideBarTB->hide();
if (isvisible)
{
showNormal();
}
return;
#endif
if (_isSetSystemTitleBar == flag)
{
setBackground(backgroundPixmap);
return;
}
_isSetSystemTitleBar = flag;
if (flag)
{
setWindowFlags(windowFlags() ^ Qt::FramelessWindowHint);
setWindowFlags(windowFlags() ^ Qt::WindowSystemMenuHint);
enableAutoHide(false);
titleBar->hide();
sideBarRL->hide();
sideBarTB->hide();
}
else
{
//setWindowFlags(windowFlags() | Qt::FramelessWindowHint);
//setWindowFlags(windowFlags() | Qt::WindowSystemMenuHint);
/** I don't know why need to do as following... */
setWindowFlags(Qt::Window | Qt::FramelessWindowHint
| Qt::WindowSystemMenuHint);
enableAutoHide(true);
titleBar->show();
sideBarRL->show();
sideBarTB->show();
}
if (isvisible)
{
showNormal();
}
setBackground(backgroundPixmap);
}
void FxWidget::setMinimizetoHide(bool minimizetoHide)
{
FX_FUNCTION
if (titleBar)
{
titleBar->setMinimizetoHide(minimizetoHide);
}
}
void FxWidget::setLayout(QLayout *layout)
{
FX_FUNCTION
contentWidget->setLayout(layout);
}
void FxWidget::setWindowTitle(const QString &title)
{
FX_FUNCTION
titleBar->setWindowTitle(title);
QWidget::setWindowTitle(title);
}
void FxWidget::setTitleBarIcon(const QIcon &icon)
{
FX_FUNCTION
titleBar->setWindowIcon(icon);
}
void FxWidget::resizeEvent(QResizeEvent *event)
{
FX_FUNCTION
QWidget::resizeEvent(event);
Q_UNUSED(event);
if (!backgroundPixmap.isNull())
{
setBackground(backgroundPixmap);
}
}
void FxWidget::mouseDoubleClickEvent(QMouseEvent *event)
{
FX_FUNCTION
Q_UNUSED(event);
emit triggleMaximizeAndNormal();
}
void FxWidget::setBackground(QPixmap pix)
{
FX_FUNCTION
if (_isSetSystemTitleBar)
{
this->setPalette(QApplication::palette());
return;
}
if (pix.isNull())
{
return;
}
QPalette palette;
backgroundPixmap = pix;
QImage image = pix.toImage();
int left = bgScaleLeft;
int right = bgScaleRight;
int bottom = bgScaleBottom;
int top = bgScaleTop;
QPixmap bgTop(width(), height());
QPainter painter(&bgTop);
// top
painter.drawImage(0, 0, image, 0, 0, left, top);
painter.drawImage(left, 0, image.copy(left, 0,
image.width() - left - right, image.height()).scaled(width() - left
- right, image.height()), 0, 0, width() - left - right, top);
painter.drawImage(width() - right, 0, image, image.width() - right, 0,
right, top);
//middle
QImage image2 = image.copy(0, top, image.width(), image.height() - top
- bottom).scaled(image.width(), height() - top - bottom);
painter.drawImage(0, top, image2, 0, 0, left, height() - top - bottom);
painter.drawImage(left, top, image2.copy(left, 0, image.width() - left
- right, image2.height()).scaled(width() - left - right, height()
- top - bottom), 0, 0, width() - left - right, height() - top
- bottom);
painter.drawImage(width() - right, top, image2, image2.width() - right, 0,
right, height() - bottom - top);
//bottom
int bottomSrcY = image.height() - bottom;
int bottomDesY = height() - bottom;
painter.drawImage(0, bottomDesY, image, 0, bottomSrcY, left, bottom);
painter.drawImage(left, bottomDesY, image.copy(left, 0, image.width()
- right - left, image.height()).scaled(width() - left - right,
image.height()), 0, bottomSrcY, width() - left - right, bottom);
painter.drawImage(width() - right, bottomDesY, image,
image.width() - right, bottomSrcY, right, bottom);
palette.setBrush(this->backgroundRole(), QBrush(bgTop));
this->setPalette(palette);
}
void FxWidget::turnBackNormal()
{
FX_FUNCTION
titleBar->setSizePolicy(QSizePolicy(QSizePolicy::Expanding,
QSizePolicy::Fixed));
contentWidget->setSizePolicy(QSizePolicy(QSizePolicy::Preferred,
QSizePolicy::Preferred));
titleBar->show();
contentWidget->show();
sideBarRL->hide();
sideBarTB->hide();
}
void FxWidget::hideToTopBottom()
{
FX_FUNCTION
titleBar->setSizePolicy(QSizePolicy(QSizePolicy::Ignored,
QSizePolicy::Ignored));
contentWidget->setSizePolicy(QSizePolicy(QSizePolicy::Ignored,
QSizePolicy::Ignored));
titleBar->hide();
contentWidget->hide();
sideBarRL->hide();
sideBarTB->show();
}
void FxWidget::hideToLeftRight()
{
FX_FUNCTION
titleBar->setSizePolicy(QSizePolicy(QSizePolicy::Ignored,
QSizePolicy::Ignored));
contentWidget->setSizePolicy(QSizePolicy(QSizePolicy::Ignored,
QSizePolicy::Ignored));
titleBar->hide();
contentWidget->hide();
sideBarTB->hide();
sideBarRL->show();
}
void FxWidget::onDoubleClicked(bool checked)
{
FX_FUNCTION
//@TO BE FIXED make sure checked=maximized for css
if (!checked)
{
this->showNormal();
}
else
{
this->showFullScreen();
}
Q_UNUSED(checked); // avoid compiler's warnning
}
void FxWidget::updateWindowPositionType()
{
FX_FUNCTION
int S = 3; // should be const..
//@TO FIX
// 在需要自动隐藏的位置最小化则,恢复时不会自动隐藏(因为只有leaveEvent才会触发隐藏(需要在恢复窗口时也判断)
// seems fixed
positionState = WP_NORMAL;
if (x() - S <= 0)
{
positionState = WP_LEFT;
return;
}
if (x() + S >= ((QApplication::desktop()->width()) - width()))
{
positionState = WP_RIGHT;
return;
}
if (y() - S <= 0)
{
positionState = WP_TOP;
return;
}
if (y() + S >= ((QApplication::desktop()->height()) - height()))
{
positionState = WP_BOTTOM;
}
}
void FxWidget::moveEvent(QMoveEvent *event)
{
FX_FUNCTION
Q_UNUSED(event);
if (!_autoHide)
{
return;
}
updateWindowPositionType();
}
void FxWidget::leaveEvent(QEvent *event)
{
FX_FUNCTION
Q_UNUSED(event);
beginAutoHide();
}
void FxWidget::enterEvent(QEvent*)
{
FX_FUNCTION
endAutoHide();
}
void FxWidget::beginAutoHide()
{
FX_FUNCTION
// the magic number 5 should be a const value --by iptton
//if(positionState == WP_NORMAL)return;
//setWindowFlags(Qt::FramelessWindowHint);
//centralwidget->hide();
//menubar->hide();
if (!_autoHide || isMaximized())
{
return;
}
updateWindowPositionType();
switch (positionState)
{
case WP_NORMAL:
return;
break;
case WP_LEFT:
move(0, y());
positionState |= WP_HIDDEN;
orientSize = size();
hideToLeftRight();
//setMask(QRegion(0,0,3,height()));
resize(5, height());
break;
case WP_RIGHT:
//setMask(QRegion(0,0,3,height()));
#ifdef WIN32
move(QApplication::desktop()->width() - 4, y());
positionState |= WP_HIDDEN;
orientSize = size();
hideToLeftRight();
resize(5, height());
#else
orientSize = size();
positionState |= WP_HIDDEN;
hideToLeftRight();
resize(5, height());
move(QApplication::desktop()->width() - 8, y());
#endif
break;
case WP_TOP:
move(x(), 0);
positionState |= WP_HIDDEN;
orientSize = size();
//setMask(QRegion(0,0,width(),3));
hideToTopBottom();
resize(width(), 5);
break;
case WP_BOTTOM:
move(x(), QApplication::desktop()->height() - 5);
positionState |= WP_HIDDEN;
orientSize = size();
//setMask(QRegion(0,0,width(),3));
hideToTopBottom();
resize(width(), 5);
break;
default:
break;
}
}
void FxWidget::endAutoHide()
{
FX_FUNCTION
if (!_autoHide || isMaximized())
{
return;
}
if (positionState & WP_NORMAL)
{
return;
}
//setWindowFlags(Qt::Window);
//centralwidget->show();
//menubar->show();
positionState ^= int(WP_HIDDEN);
//resize(orientWidth,orientHeight);
switch (positionState)
{
case WP_LEFT:
resize(orientSize);
turnBackNormal();
break;
case WP_RIGHT:
//qDebug()<<"orientSize:"<<orientSize;
resize(orientSize);
move(QApplication::desktop()->width() - orientSize.width() - 1, y());
turnBackNormal();
break;
case WP_TOP:
resize(orientSize);
turnBackNormal();
break;
case WP_BOTTOM:
resize(orientSize);
move(x(), QApplication::desktop()->height() - orientSize.height());
turnBackNormal();
break;
default:
break;
}
}
}
| [
"alsor.zhou@3dff0f8e-6350-0410-ad39-8374e07577ec",
"libfetion@3dff0f8e-6350-0410-ad39-8374e07577ec",
"solrex@3dff0f8e-6350-0410-ad39-8374e07577ec"
] | [
[
[
1,
92
],
[
109,
160
],
[
162,
168
],
[
175,
457
]
],
[
[
93,
108
],
[
161,
161
]
],
[
[
169,
174
]
]
] |
0e2a6057ee193cb90b80a20d734107f40390666a | 4d91ca4dcaaa9167928d70b278b82c90fef384fa | /CedeCryptSelfDecryptor/CedeCrypt/CedeCrypt/PFolderRequestWindow.cpp | bde246dc02d48d0fcc650aa05c549e21054ebcf8 | [] | no_license | dannydraper/CedeCryptClassic | 13ef0d5f03f9ff3a9a1fe4a8113e385270536a03 | 5f14e3c9d949493b2831710e0ce414a1df1148ec | refs/heads/master | 2021-01-17T13:10:51.608070 | 2010-10-01T10:09:15 | 2010-10-01T10:09:15 | 63,413,327 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,832 | cpp | // This work is dedicated to the Lord our God. King of Heaven, Lord of Heaven's Armies.
#include "PFolderRequestWindow.h"
PFolderRequestWindow::PFolderRequestWindow ()
{
m_bUseDiagnostics = true;
ZeroMemory (m_szClassname, SIZE_STRING);
m_ID = 0;
m_bdoaction = false;
m_bstartupmode = false;
}
PFolderRequestWindow::~PFolderRequestWindow ()
{
}
void PFolderRequestWindow::SetDiagnostics (Diagnostics *pdiag)
{
m_pdiag = pdiag;
}
void PFolderRequestWindow::Initialise (HWND hWnd, unsigned int uID)
{
// Make the ID global
m_ID = uID;
m_parenthwnd = hWnd;
//m_hwnd = hWnd;
// Temporary string value for uID
char szID[SIZE_STRING];
ZeroMemory (szID, SIZE_STRING);
SetParentHWND (hWnd);
SetBgColor (GetSysColor (COLOR_BTNFACE));
SetCaption (TEXT ("Protected Folders Request"));
SetWindowStyle (FS_STYLESTANDARD);
// Create the class name
strcat_s (m_szClassname, SIZE_STRING, "StandardWindowClass");
sprintf_s (szID, SIZE_STRING, "%d", uID);
strcat_s (m_szClassname, SIZE_STRING, szID);
CreateAppWindow (m_szClassname, 70, 0, 400, 160, true);
m_uihandler.SetWindowProperties (0, 0, 0, 0, RGB (230, 230, 240));
SetWindowPosition (FS_CENTER);
Show ();
SetAlwaysOnTop (true);
}
void PFolderRequestWindow::SetStartupMode (bool bstartupmode)
{
m_bstartupmode = bstartupmode;
}
bool PFolderRequestWindow::GetStartMode ()
{
return m_bstartupmode;
}
void PFolderRequestWindow::SetAnswered (bool banswered)
{
m_banswered = banswered;
}
bool PFolderRequestWindow::GetAnswered ()
{
return m_banswered;
}
void PFolderRequestWindow::OnDestroy (HWND hWnd)
{
Hide ();
}
void PFolderRequestWindow::OnClose (HWND hWnd)
{
Hide ();
}
void PFolderRequestWindow::OnCreate (HWND hWnd)
{
// Make this window handle global
m_hwnd = hWnd;
g_hWnd = hWnd;
m_optiongroup = CreateGroupBox ("Your protected folders are currently encrypted", 15, 15, 365, 80, ID_PFOLDERREQUESTGROUP);
m_optdonothing = CreateRadioButton ("Keep files && folders encrypted", 35, 40, 339, 20, ID_OPTDONOTHING);
m_optdoaction = CreateRadioButton ("Decrypt files && folders now", 35, 63, 250, 20, ID_OPTDOACTION);
m_btnrequestok = CreateButton ("Ok", 311, 102, 70, 24, ID_PFOLDERREQUESTOK);
ReadRegistrySettings (); // Read the last selection made by the user
//SetStartupMessage (false);
}
void PFolderRequestWindow::ReadRegistrySettings ()
{
// Read the last action setting from the registry. This is a small feature
// which remembers the last selection made by the user to save them clicking
// twice if they regularly perform the same selection.
if (m_registry.DoesSettingExist (PFRLASTACTION) == true) {
if (strcmp (m_registry.ReadStringSetting (PFRLASTACTION), "yes") == 0) {
m_bdoaction = true;
SetCheck (m_optdoaction, true);
SetCheck (m_optdonothing, false);
} else {
m_bdoaction = false;
SetCheck (m_optdoaction, false);
SetCheck (m_optdonothing, true);
}
}
}
void PFolderRequestWindow::SetStartupMessage (bool m_bUsestartupmessage)
{
if (m_bUsestartupmessage == true) {
SetDlgItemText (m_hwnd, ID_PFOLDERREQUESTGROUP, "Your protected folders are currently encrypted, would you like to:");
SetDlgItemText (m_hwnd, ID_OPTDONOTHING, "Keep files && folders encrypted. (Take no action)");
SetDlgItemText (m_hwnd, ID_OPTDOACTION, "Decrypt files && folders now");
} else {
SetDlgItemText (m_hwnd, ID_PFOLDERREQUESTGROUP, "Your protected folders are currently decrypted, would you like to:");
SetDlgItemText (m_hwnd, ID_OPTDONOTHING, "Keep files && folders decrypted. (Take no action - not recommended)");
SetDlgItemText (m_hwnd, ID_OPTDOACTION, "Encrypt files && folders now (Recommended)");
}
}
void PFolderRequestWindow::OutputInt (LPCSTR lpszText, int iValue)
{
if (m_bUseDiagnostics == true) {
m_pdiag->OutputInt (lpszText, iValue);
}
}
void PFolderRequestWindow::OutputText (LPCSTR lpszText)
{
if (m_bUseDiagnostics == true) {
m_pdiag->OutputText (lpszText);
}
}
void PFolderRequestWindow::OutputText (LPCSTR lpszName, LPCSTR lpszValue)
{
if (m_bUseDiagnostics == true) {
m_pdiag->OutputText (lpszName, lpszValue);
}
}
void PFolderRequestWindow::OnCommand (HWND hWnd, WPARAM wParam, LPARAM lParam)
{
switch (LOWORD (wParam)) {
case ID_PFOLDERREQUESTOK:
{
if (m_bdoaction == true) {
PostMessage (m_parenthwnd, WM_UICOMMAND, CID_PFOLDERREQUESTOK, 1);
} else {
PostMessage (m_parenthwnd, WM_UICOMMAND, CID_PFOLDERREQUESTOK, 0);
}
Hide ();
}
break;
case ID_OPTDOACTION:
{
m_bdoaction = true;
SetCheck (m_optdoaction, true);
SetCheck (m_optdonothing, false);
m_registry.WriteStringSetting (PFRLASTACTION, "yes"); // remember the last selection
}
break;
case ID_OPTDONOTHING:
{
m_bdoaction = false;
SetCheck (m_optdoaction, false);
SetCheck (m_optdonothing, true);
m_registry.WriteStringSetting (PFRLASTACTION, "no"); // remember the last selection
}
break;
}
}
void PFolderRequestWindow::OnUIScroll (HWND hWnd, WPARAM wParam, LPARAM lParam)
{
}
void PFolderRequestWindow::OnUICommand (HWND hWnd, WPARAM wParam, LPARAM lParam)
{
switch (wParam)
{
}
}
void PFolderRequestWindow::OnTimer (WPARAM wParam)
{
m_uihandler.NotifyTimer (wParam);
}
void PFolderRequestWindow::OnPaint (HWND hWnd)
{
m_uihandler.PaintControls (hWnd);
}
void PFolderRequestWindow::OnMouseMove (HWND hWnd, int mouseXPos, int mouseYPos)
{
m_uihandler.NotifyMouseMove (mouseXPos, mouseYPos);
}
void PFolderRequestWindow::OnLButtonDown (HWND hWnd)
{
m_uihandler.NotifyMouseDown ();
}
void PFolderRequestWindow::OnLButtonUp (HWND hWnd)
{
m_uihandler.NotifyMouseUp ();
} | [
"ddraper@f12373e4-23ff-6a4a-9817-e77f09f3faef"
] | [
[
[
1,
220
]
]
] |
8cf47efdf77c1c1d2a3683c3a17dcffef5caa08c | b24d5382e0575ad5f7c6e5a77ed065d04b77d9fa | /GCore/GCore/GC_TaskManager.h | 13950b5f0efb788d48d93806729d1faae83ba24c | [] | no_license | Klaim/radiant-laser-cross | f65571018bf612820415e0f672c216caf35de439 | bf26a3a417412c0e1b77267b4a198e514b2c7915 | refs/heads/master | 2021-01-01T18:06:58.019414 | 2010-11-06T14:56:11 | 2010-11-06T14:56:11 | 32,205,098 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,103 | h | #ifndef GCORE_TASKSYSTEM_H
#define GCORE_TASKSYSTEM_H
#pragma once
#include <unordered_map>
#include <list>
#include <vector>
#include "GC_Common.h"
#include <string>
#include "GC_Singleton.h"
#include "GC_TaskProperties.h"
namespace gcore
{
class Task;
/** The TaskManager is a tool that let you make your a (main) loop dynamic.
The purpose is to allow iterative processes to change through runtime.
@par
The TaskManager can register user defined Tasks,
then execute them in ascending priority order when it's executeTasks
function is called.
The user application should then call executeTasks each cycle
of it's (main) loop to keep the tasks updated.
@see Task
*/
class GCORE_API TaskManager
{
struct TaskCompare_AscendingPriority;
public:
typedef std::list< Task* > TaskList;
typedef std::tr1::unordered_map< std::string , Task*> TaskIndex;
/** Constructor. */
TaskManager();
/** Destructor.
This method will call terminateAllTasks and unregisterAllTasks .
*/
~TaskManager();
/** Register a non registered Task.
After registering, the task can be activated with activateTask or Task::activate
@par
The Task state will be set to TS_REGISTERED.
@par
If the Task has a name that is not "", it is registered in the named index.
The Task can then be retrieved by providing it's name in findTask().
@see TaskManager::findTask
@param task Task to activate.
*/
void registerTask( Task& task );
/** Activate a registered Task.
After activation, the Task::onActivation() method will be called.
Once activated, the Task will then be executed each executeTasks call.
@par
The Task state will be set to TS_ACTIVE before the call of Task::onActivate().
@remark Calling this method modify the active Tasks list order that will then
be sorted automatically before the active tasks are executed, or if you call
sortTasksList before.
@see TaskManager::findTask
@param task Task to activate.
*/
void activateTask( Task& task );
/** Pause a registered and active Task.
Once paused, the Task will not be executed each cycle of the main loop,
but will remain "loaded". Task::onPaused() method of the paused task will
then be called.
@par
The Task state will be set to TS_PAUSED before the call of Task::onPaused().
@param task Task to pause.
*/
void pauseTask( Task& task );
/** Resume a registered and paused Task.
Once resumed, the Task will be executed each cycle of the main loop as before.
Task::onResumed() method of the paused task will
then be called.
@par
The Task state will be set to TS_ACTIVE before the call of Task::onResumed().
@remark Calling this method modify the active Tasks list order that will then
be sorted automatically before the active tasks are executed, or if you call
sortTasksList before.
@param task Task to resume.
*/
void resumeTask( Task& task );
/** Terminate a registered Task.
After terminating, the Task::onTerminated() method will be called.
Once terminated, the Task will then not be executed each cycle of the main loop.
@par
The Task state will be set to TS_REGISTERED before the call of Task::onTerminate().
@param task Task to terminate.
*/
void terminateTask( Task& task );
/** Unregister a registered Task.
ADD MISSING COMMENTS HERE
*/
void unregisterTask( Task& task );
/** Terminate all registered Tasks. */
void terminateAllTasks();
/** Terminate all registered Tasks. */
void unregisterAllTasks();
/** Change the priority of a Task.
If the Task is active, the active tasks list order will be sorted
according to the new priority of the Task before execution.
@param task Task that have to change of priority.
@param newPriority New priority value to set to the Task.
*/
void changeTaskPriority( Task& task, const TaskPriority& newPriority );
/** Retrieve a registered Task by it's name.
This will return null if the name was "".
@see TaskManager::activateTask
@param name Name of the Task to retrieve.
@return Task with the provided name, or null if not found.
*/
Task* findTask( const std::string& name ) const;
/** Execute all Tasks in priority order.
You should call this method once each
cycle of your main loop.
@remark
As the active Task list is copied before execution,
if Tasks execution modifies the active Task list while an execution cycle,
the changes on task order will
be taken account only after the current cycle for the order. The paused and terminated
tasks will be not be executed in the same execution list.
*/
void executeTasks();
/** Return the current active tasks list.
*/
const TaskList& activeTasksList() const { return m_activeTaskList; }
/** Return the current paused tasks list.
*/
const TaskList& pausedTaskList() const { return m_pausedTasksList; }
/** Return the current registered tasks list.
*/
const TaskList& registeredTasksList() const { return m_registeredTasksList; }
/** Return the named index of all named tasks registered.
*/
const TaskIndex& namedTasksIndex() const {return m_namedTasksIndex;}
private:
/** Utility method to deactivate an active Task.
@remark Private use only!
*/
void deactivateTask( Task& task );
/** Comparison functor used to sort Tasks.
*/
struct TaskCompare_AscendingPriority
{
bool operator ()( Task* a1, Task* a2 ) const ;
};
/// Index of named registered Tasks.
TaskIndex m_namedTasksIndex;
/// Registered Tasks list.
TaskList m_registeredTasksList;
/// Paused Tasks list.
TaskList m_pausedTasksList;
/// Active Tasks list.
TaskList m_activeTaskList;
/// Execution task list.
std::vector< Task* > m_executionTaskList;
/// True if we modified the active list since last execution
bool m_activeListChanged;
};
}
#endif | [
"[email protected]"
] | [
[
[
1,
196
]
]
] |
50a5274a3cf3e5f2e85b85462691ea1ae0507a24 | 9426ad6e612863451ad7aac2ad8c8dd100a37a98 | /ULLib/src/ULSlider.cpp | 2050a1d6c3acbb13af6d547fd7c4d911aee2b41d | [] | no_license | piroxiljin/ullib | 61f7bd176c6088d42fd5aa38a4ba5d4825becd35 | 7072af667b6d91a3afd2f64310c6e1f3f6a055b1 | refs/heads/master | 2020-12-28T19:46:57.920199 | 2010-02-17T01:43:44 | 2010-02-17T01:43:44 | 57,068,293 | 0 | 0 | null | 2016-04-25T19:05:41 | 2016-04-25T19:05:41 | null | WINDOWS-1251 | C++ | false | false | 1,881 | cpp | ///\file ULSlider.cpp
///\brief фаил реализации класса обёртки для slider control
#include "..\Include\ULSlider.h"
#include "..\Include\ULStates.h"
namespace ULWnds
{
namespace ULControls
{
CULSlider::CULSlider():
CULSubClass()
{
}
BOOL CULSlider::Create(HWND hParentWnd,UINT uID,LPCTSTR szCaption,int x,int y,int cx,int cy,DWORD dwStyle,DWORD dwStyleEx)
{
m_hParentWnd=hParentWnd;
m_hWnd = CreateWindowEx(dwStyleEx,TRACKBAR_CLASS,
szCaption,
dwStyle,
x, y, cx, cy,
hParentWnd,(HMENU)(LONG_PTR)uID,
ULOther::ULGetResourceHandle(),
NULL);
return CULSubClass::Attach(m_hWnd);
}
void CULSlider::SetRange(int nMin,int nMax,BOOL fRedraw)
{
SendMessage(TBM_SETRANGE,(WPARAM)fRedraw,MAKELPARAM(nMin,nMax));
}
void CULSlider::SetRangeMin(int nMin,BOOL fRedraw)
{
SendMessage(TBM_SETRANGEMIN,(WPARAM)fRedraw,(LPARAM)nMin);
}
void CULSlider::SetRangeMax(int nMax,BOOL fRedraw)
{
SendMessage(TBM_SETRANGEMAX,(WPARAM)fRedraw,(LPARAM)nMax);
}
void CULSlider::SetPos(int nPos,BOOL fRedraw)
{
SendMessage(TBM_SETPOS,(WPARAM)fRedraw,(LPARAM)nPos);
}
int CULSlider::GetPos()
{
return (int)SendMessage(TBM_GETPOS);
}
void CULSlider::SetThumbLenght(UINT nLen)
{
ASSERT((GetWindowLong(GWL_STYLE)&TBS_FIXEDLENGTH)==TBS_FIXEDLENGTH);
SendMessage(TBM_SETTHUMBLENGTH,(WPARAM)nLen,0);
}
void CULSlider::SetTicFreq(UINT nFreq)
{
ASSERT((GetWindowLong(GWL_STYLE)&TBS_NOTICKS)!=TBS_NOTICKS);
SendMessage(TBM_SETTICFREQ,(WPARAM)nFreq,0);
}
UINT CULSlider::SetLineSize(UINT nLineSize)
{
return (UINT)SendMessage(TBM_SETLINESIZE,0,(LPARAM)nLineSize);
}
UINT CULSlider::SetPageSize(UINT nPageSize)
{
return (UINT)SendMessage(TBM_SETPAGESIZE,0,(LPARAM)nPageSize);
}
}
} | [
"UncleLab@a8b69a72-a546-0410-9fb4-5106a01aa11f"
] | [
[
[
1,
66
]
]
] |
ca67b9aacfab1fbfa7bfe23eac3d3e8aa2fab75f | de13bb58f0b0a0c5b7a533bb7a4ef8f255cbf35a | /Grapplon/Planet.cpp | e17d14e8338eb8b9182f4c460b25383ac192fb95 | [] | no_license | TimToxopeus/grapplon | 96a34cc1fcefc2582c8702600727f5748ee894a9 | f63c258357fe4b993e854089e7222c14a00ed731 | refs/heads/master | 2016-09-06T15:05:15.328601 | 2008-06-05T11:24:14 | 2008-06-05T11:24:14 | 41,954,511 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,999 | cpp | #include "Planet.h"
#include "ODEManager.h"
#include "ResourceManager.h"
#include "AnimatedTexture.h"
#include "ParticleSystemManager.h"
#include "Renderer.h"
CPlanet::CPlanet(PlanetaryData &data)
{
m_eType = data.planetType;
std::string image = "media/scripts/texture_" + data.image + ".txt";
m_pImage = new CAnimatedTexture(image);
CODEManager* ode = CODEManager::Instance();
ode->CreatePhysicsData(this, &m_oPhysicsData, (float)data.radius);
//m_oPhysicsData.planetData = &data;
m_fOrbitAngle = (float) data.orbitAngle;
m_fOrbitLength = (float) data.orbitLength;
m_fOrbitSpeed = (float) data.orbitSpeed;
m_fRotation = (float) data.rotation;
m_iTempRadius = -10;
m_fDamageMult = data.damageMult;
SetDepth( -2.0f );
SetMass( (float)data.mass );
SetPosition( data.position );
m_oPhysicsData.m_fGravConst = data.gravconst;
m_oPhysicsData.m_bAffectedByGravity = false;
m_fSecondaryScale = data.scale;
m_bIsInOrbit = false;
m_pEmitter = NULL;
if ( data.emitter != "" )
{
if ( data.bNear )
m_pEmitter = CParticleSystemManager::InstanceNear()->LoadEmitter( data.emitter );
else
m_pEmitter = CParticleSystemManager::InstanceFar()->LoadEmitter( data.emitter );
}
m_pOrbit = m_pGlow = NULL;
if ( data.imageGlow != "" )
{
m_pGlow = new CAnimatedTexture( "media/scripts/texture_" + data.imageGlow + ".txt" );
}
if ( data.imageOrbit != "" )
{
m_pOrbit = new CAnimatedTexture( "media/scripts/texture_" + data.imageOrbit + ".txt" );
}
}
CPlanet::~CPlanet()
{
if ( m_pGlow ) delete m_pGlow;
if ( m_pOrbit ) delete m_pOrbit;
}
void CPlanet::Render()
{
SDL_Rect target;
// Render orbit
if ( m_pOrbit )
{
target = m_pOrbit->GetSize();
target.w = (int)(target.w * m_fSecondaryScale);
target.h = (int)(target.h * m_fSecondaryScale);
target.x = (int)GetX() - (target.w / 2);
target.y = (int)GetY() - (target.h / 2);
RenderQuad( target, m_pOrbit, 0 );
}
// Render glow
if ( m_pGlow )
{
target = m_pGlow->GetSize();
target.w = (int)(target.w * m_fSecondaryScale);
target.h = (int)(target.h * m_fSecondaryScale);
target.x = (int)GetX() - (target.w / 2);
target.y = (int)GetY() - (target.h / 2);
RenderQuad( target, m_pGlow, 0 );
}
// Render planet
CBaseObject::Render();
}
void CPlanet::Update( float fTime )
{
if ( orbitJoint && m_bIsInOrbit )
{
Vector pos = dBodyGetPosition( dJointGetBody( orbitJoint, 0 ) );
float angle = GetPosition().CalculateAngle( pos ) - 90.0f;
angle = DEGTORAD(angle);
Vector dir = Vector( cos(angle), sin(angle), 0 );
dir.Normalize();
dir *= m_fOrbitSpeed;
dBodySetLinearVel( m_oPhysicsData.body, dir[0], dir[1], 0 );
}
if ( m_pEmitter )
m_pEmitter->SetPosition( GetPosition() );
m_fAngle += m_fRotation * fTime;
if ( m_pOrbit ) m_pOrbit->UpdateFrame( fTime );
if ( m_pGlow ) m_pGlow->UpdateFrame( fTime );
CBaseObject::Update( fTime );
}
| [
"Tim.Toxopeus@290fe64d-754b-0410-ab79-69b6bb713112",
"[email protected]",
"rikjansen@290fe64d-754b-0410-ab79-69b6bb713112"
] | [
[
[
1,
5
],
[
7,
9
],
[
12,
15
],
[
17,
17
],
[
19,
19
],
[
27,
27
],
[
30,
30
],
[
32,
32
],
[
34,
35
],
[
38,
95
],
[
98,
98
],
[
100,
103
],
[
105,
110
],
[
112,
117
]
],
[
[
6,
6
],
[
10,
11
],
[
18,
18
],
[
20,
26
],
[
28,
29
],
[
31,
31
],
[
33,
33
],
[
36,
36
],
[
96,
97
],
[
99,
99
],
[
104,
104
],
[
111,
111
],
[
118,
118
]
],
[
[
16,
16
],
[
37,
37
]
]
] |
1060424e1645d80c203661b72bf3a8c152e3f4ce | 9c62af23e0a1faea5aaa8dd328ba1d82688823a5 | /rl/tags/techdemo2/engine/rules/include/SonderfertigkeitenStateSet.h | 2429c855a8a579c65ec69d2587acf9f39520220d | [
"ClArtistic",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jacmoe/dsa-hl-svn | 55b05b6f28b0b8b216eac7b0f9eedf650d116f85 | 97798e1f54df9d5785fb206c7165cd011c611560 | refs/heads/master | 2021-04-22T12:07:43.389214 | 2009-11-27T22:01:03 | 2009-11-27T22:01:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,200 | h | /* This source file is part of Rastullahs Lockenpracht.
* Copyright (C) 2003-2005 Team Pantheon. http://www.team-pantheon.de
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the Clarified Artistic License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Clarified Artistic License for more details.
*
* You should have received a copy of the Clarified Artistic License
* along with this program; if not you can get it here
* http://www.jpaulmorrison.com/fbp/artistic2.htm.
*/
#ifndef __SONDERFERTIGKEITENSTATESET_H__
#define __SONDERFERTIGKEITENSTATESET_H__
#include "StateSet.h"
namespace rl
{
class _RlRulesExport SonderfertigkeitenStateSet : public StateSet
{
public:
SonderfertigkeitenStateSet();
~SonderfertigkeitenStateSet();
void setModifier( int newModifier );
int getLehrmeisterZeiteinheiten();
void setLehrmeisterZeiteinheiten( int newLehrmeisterZeiteinheiten );
protected:
int mLehrmeisterZeiteinheiten;
};
}
#endif
| [
"tanis@4c79e8ff-cfd4-0310-af45-a38c79f83013"
] | [
[
[
1,
40
]
]
] |
d5904816d3f1b8e85ac3695031c2a1e604ff8554 | 102d8810abb4d1c8aecb454304ec564030bf2f64 | /TP3/Tanque/Tanque/Tanque/XMLParser.cpp | 8111a5731a094a675ab58f82cbe98aa947653867 | [] | no_license | jfacorro/tp-taller-prog-1-fiuba | 2742d775b917cc6df28188ecc1f671d812017a0a | a1c95914c3be6b1de56d828ea9ff03e982560526 | refs/heads/master | 2016-09-14T04:32:49.047792 | 2008-07-15T20:17:27 | 2008-07-15T20:17:27 | 56,912,077 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 7,151 | cpp | #include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include "Common.h"
#include "XMLParser.h"
#include "Exception.h"
#include "Tag.h"
#include "TagProperty.h"
#ifndef XMLParser_cpp
#define XMLParser_cpp
Tag * XMLParser::ParseFile(char * filename)
{
Tag * rootTag = NULL;
FILE * file;
file = fopen(filename, "rb");
if(file != NULL)
{
long filesize = 0;
fseek(file, 0, SEEK_END);
filesize = ftell(file);
char * source = new char[filesize + 1];
//char * source = (char *)malloc(sizeof(char) * filesize);
fseek(file, 0, SEEK_SET);
fread(source, sizeof(char), filesize, file);
fclose(file);
source[filesize] = '\0';
rootTag = this->Parse(source);
free(source);
}
else
{
throw FileNotFoundException();
}
return rootTag;
}
Tag * XMLParser::Parse(char * stringXml)
{
Tag * rootTag = NULL;
this->stringXml = stringXml;
this->stringLength = strlen(stringXml) + 1;
char * tagStr = NULL;
char * textStr = NULL;
ArrayList stringsArr;
ArrayList tagsArr;
do
{
textStr = this->GetNextText();
if(textStr != NULL)
{
stringsArr.Add(textStr);
/// printf("FOUND TEXT: %s\n", textStr);
}
tagStr = this->GetNextTag();
if(tagStr != NULL)
{
stringsArr.Add(tagStr);
/// printf("FOUND TAG: %s\n", tagStr);
}
}while(this->stringIndex < this->stringLength);
rootTag = this->BuildTree(&stringsArr, NULL, NULL);
return rootTag;
}
/**************************************************************************
Método recursivo que construye el arbol XML de tags.
**************************************************************************/
Tag * XMLParser::BuildTree(ArrayList * stringsArr, Tag * parentTag, Tag * currentTag )
{
char * currentStr = NULL;
bool currentTagIsClosed = false;
if(parentTag == NULL)
{
stringsArr->MoveFirst();
}
while(!stringsArr->IsEmpty() && !currentTagIsClosed)
{
char * str = (char *)stringsArr->RemoveCurrent();
/// Comprobar si la cadena es texto o un tag.
if(str != NULL && str[0] == '<')
{
Tag * tag = new Tag(str);
/// Si es un tag auto contenido
/// no necesita del tag de cierre.
if(tag->GetIsAutoClosed())
{
if(currentTag == NULL)
{
currentTag = tag;
currentTagIsClosed = true;
}
else
{
currentTag->AddChildTag(tag);
}
}
/// Si es un tag de cierre
/// verificar que coincida con el de apertura
/// si es que ya se cargo uno.
else if(tag->GetIsClosingTag())
{
if(currentTag != NULL && strcmp(currentTag->GetName(), tag->GetName()) == 0 )
{
currentTagIsClosed = true;
}
else
{
throw NotWellFormedException(tag->GetName());
}
}
else if(currentTag == NULL)
{
currentTag = tag;
}
else
{
Tag * childTag = this->BuildTree(stringsArr, currentTag, tag);
currentTag->AddChildTag(childTag);
}
}
else if(str != NULL)
{
/// Si hay un tag agregarle
/// el texto.
if(currentTag != NULL)
{
currentTag->SetInnerText(str);
}
else if(parentTag != NULL)
{
parentTag->SetInnerText(str);
}
/// Si no hay un tag padre entonces hay texto
/// afuera del root element, generar una excepcion.
else
{
throw NotWellFormedException("There's text outside the root element.");
}
}
}
if(currentTagIsClosed)
{
if(parentTag == NULL && !stringsArr->IsEmpty())
{
throw RootElementMissingException();
}
return currentTag;
}
/// No hay tag de cierre.
else
{
throw NotWellFormedException(StringHelper::AppendString("There's a closing tag missing for ", currentTag->GetName()));
}
return NULL;
}
char * XMLParser::GetNextTag()
{
char openChar;
char closeChar;
int openPos = 0;
int closePos = 0;
char * tagStr = NULL;
/// Los caracteres '\n' son contados de forma
/// distinta, cada vez que se extrae uno, el puntero get
/// aumenta en dos en realidad su indice.
int numNewLineChar = 0;
do
{
openChar = this->stringXml[this->stringIndex];
this->stringIndex++;
if(openChar == '\n')
{
numNewLineChar++;
}
if(openChar == '<')
{
openPos = this->stringIndex - (1 + numNewLineChar);
}
}while(this->stringIndex < this->stringLength && openChar != '<');
numNewLineChar = 0;
do
{
closeChar = this->stringXml[this->stringIndex];
this->stringIndex++;
if(closeChar == '\n')
{
numNewLineChar++;
}
if(closeChar == '>')
{
closePos = this->stringIndex - (1 + numNewLineChar);
}
else if (closeChar == '<')
{
throw ClosingTagMissingException();
}
}while(this->stringIndex <= this->stringLength && closeChar != '>');
if(closePos != 0 && this->stringIndex <= this->stringLength)
{
this->stringIndex = openPos;
tagStr = new char[closePos - openPos + 2];
tagStr = StringHelper::Substring(this->stringXml, this->stringIndex, closePos - openPos + 1);
tagStr[closePos - openPos + 1] = '\0';
this->stringIndex = closePos + 1;
char * temp = tagStr;
tagStr = StringHelper::Trim(temp);
delete temp;
}
return tagStr;
}
char * XMLParser::GetNextText()
{
char openChar;
int beginPos = this->stringIndex;
int endPos = beginPos;
int openCharPos = 0;
char * tagStr = NULL;
int numNewLineChar = 0;
do
{
openChar = this->stringXml[this->stringIndex];
this->stringIndex++;
if(openChar == '\n')
{
numNewLineChar++;
}
if(openChar == '<')
{
openCharPos = this->stringIndex - (1 + numNewLineChar);
endPos = openCharPos;
if(beginPos != endPos)
{
endPos--;
}
}
}while(this->stringIndex < this->stringLength && openChar != '<');
if(openCharPos != beginPos && this->stringIndex <= this->stringLength)
{
tagStr = new char[endPos - beginPos + 2];
this->stringIndex = beginPos;
tagStr = StringHelper::Substring(this->stringXml, this->stringIndex, endPos - beginPos + 1);
this->stringIndex = endPos + 1;
tagStr[endPos - beginPos + 1] = '\0';
char * temp = tagStr;
tagStr = StringHelper::Trim(temp);
delete temp;
if(tagStr[0] == '\0')
{
delete tagStr;
tagStr = NULL;
}
}
else
{
this->stringIndex = beginPos;
/// fseek(file, beginPos, SEEK_SET);
}
return tagStr;
}
bool XMLParser::ValidateName(char * nameStr)
{
int length = strlen(nameStr);
/// Verificar que no tiene ninguna ".
int quoteIndex = StringHelper::FindFirstOcurrence(nameStr, length, 0, '"');
if(quoteIndex != -1)
{
return false;
}
/// Verificar que no tiene ningun &.
int ampersandIndex = StringHelper::FindFirstOcurrence(nameStr, length, 0, '&');
if(ampersandIndex != -1)
{
return false;
}
/// Verificar que el primer caracter
/// no sea un número.
int numChar = (int)nameStr[0];
if(numChar >= (int)'0' && numChar <= (int)'9')
{
return false;
}
return true;
}
#endif
| [
"juan.facorro@6dff32cf-8f48-0410-9a2e-7b8b34aa6dfb"
] | [
[
[
1,
371
]
]
] |
e326064b2173b197d8573420d78355a84adbdbd8 | f744f8897adce6654cdfe6466eaf4d0fad4ba661 | /src/data/SimpleLine.cpp | d924d2a22ae45cfaee5bdffada66861f435bb9b6 | [] | no_license | pizibing/bones-animation | 37919ab3750683a5da0cc849f80d1e0f5b37c89c | 92ce438e28e3020c0e8987299c11c4b74ff98ed5 | refs/heads/master | 2016-08-03T05:34:19.294712 | 2009-09-16T14:59:32 | 2009-09-16T14:59:32 | 33,969,248 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | cpp | #include <assert.h>
#include "SimpleLine.h"
// set function of dot1
void SimpleLine::setDot1(const float* dot1){
// dot1 should not be null
assert(dot1);
// set x,y,z
for(int i = 0; i < 3; i++)
this->dot1[i] = dot1[i];
}
// set function of dot2
void SimpleLine::setDot2(const float* dot2){
// dot2 should not be null
assert(dot2);
// set x,y,z
for(int i = 0; i < 3; i++)
this->dot2[i] = dot2[i];
}
| [
"[email protected]"
] | [
[
[
1,
23
]
]
] |
c2813ff65f2b4511b8070b9a8cfafdcd3d66d348 | 1dba10648f60dea02c9be242c668f3488ae8dec4 | /modules/module_base/src/property_mgr.h | dad309e33ef414b38531de6576db639fe6892760 | [] | no_license | hateom/si-air | f02ffc8ba9fac9777d12a40627f06044c92865f0 | 2094c98a04a6785078b4c8bcded8f8b4450c8b92 | refs/heads/master | 2021-01-15T17:42:12.887029 | 2007-01-21T17:48:48 | 2007-01-21T17:48:48 | 32,139,237 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 1,725 | h | /********************************************************************
Projekt z przedmiotu : Sztuczna Inteligencja i Sensoryka
stworzono: 17:12:2006 16:50
plik: property_mgr
autorzy: Tomasz Huczek, Andrzej Jasiński
cel:
*********************************************************************/
#ifndef __PROPERTY_MGR_H__
#define __PROPERTY_MGR_H__
//////////////////////////////////////////////////////////////////////////
#include <string>
#include <map>
#include "types.h"
#include "status_codes.h"
//////////////////////////////////////////////////////////////////////////
#pragma warning ( disable: 4251 ) // STL & dll
//////////////////////////////////////////////////////////////////////////
/// klasa przechowujaca globalne parametry modulow, dostepne dla
/// wszystkich pozostalych modulow - co umozliwia pewna komunikacje
/// pomiedzy modulami, zachwowujac jednak pewien poziom niezaleznosci
class PropertyMgr
{
public:
PropertyMgr() {}
~PropertyMgr() {}
/// rejestracja parametru
int register_property( std::string name, void * value )
{
if( get_property( name ) != NULL ) return( ST_ALREADY_EXISTS );
typedef std::pair<std::string,void*> myPair;
data.insert( myPair( name, value ) );
return( ST_OK );
}
/// metoda zwraca wskaznik do parametru jesli istnieje,
/// NULL w przeciwnym przypadku
void * get_property( std::string name )
{
return( data[name] );
}
/// usuwa wszystkie zarejestrowane parametry
void release() { data.clear(); }
private:
std::map<std::string,void *> data;
};
//////////////////////////////////////////////////////////////////////////
#endif // __PROPERTY_MGR_H__
| [
"tomasz.huczek@9b5b1781-be22-0410-ac8e-a76ce1d23082"
] | [
[
[
1,
63
]
]
] |
782f8eec8b2ce5c1d999e56ae66597d9e78b34c0 | 99c792a222fd8fb93242598a247591e28a766769 | /eventsparsers/eventparser.h | be9cc9b16f66a01264ca2eecde0ee887f336d8b2 | [] | no_license | benkopolis/windows-xml-logs-parser | 0cebfbdf104ef6d332278177eb89c1b7a375e7e9 | 54bc23afe11fc966ff848fa56ff9cb861af996e1 | refs/heads/master | 2016-09-06T02:17:09.855692 | 2011-06-06T10:29:53 | 2011-06-06T10:29:53 | 32,231,282 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 1,474 | h | #ifndef EVENTPARSER_H
#define EVENTPARSER_H
#include <QXmlStreamReader>
#include "../event/event.h"
#include <QDateTime>
#include <QVariantList>
#include <QVariantMap>
#include "../datafilter.h"
/**
* Bazowa klasa dla wszystkich klas analizujących zdarzenia.
* 4688 Został stworzony proces.
* 4689 Proces się zakończył.
* 4624 Użytkownik się zalogował.
* 4625 Użytkownikowi nie udało się zalogować.
* 4634 Użytkownik się wylogował.
* Aby napisać klasę konkretnego parsera wystarczy skopiować kontruktor, metodę parsującą i metodę 'toString'
* z istniejącego parsera i dostosować je do zdarzenia innego typu. Trzeba również pamiętać
* o stworzeniu odpowiednich właściwości w nowo tworzonej klasie.
*/
class EventParser
{
public:
inline int eventId() const { return _eventId; }
/**
* Ta metoda jest w każdej klasie bardzo podobna.
* Dla lokalnej czytelności nie została sparametryzowana.
* Żeby zaimplementować nowego parsera wystarczy ją skopiować
* i podmienić nazwy szukanych atrybutów oraz tworzone i zwracane zdarzenia.
*/
virtual Event* parseEvent(QXmlStreamReader& xml) = 0;
protected:
EventParser(int eventId);
DataFilter * _filter;
private:
EventParser();
// EventParser(const EventParser& another);
// EventParser& operator = (const EventParser& another);
const int _eventId;
};
#endif // EVENTPARSER_H
| [
"[email protected]@da19ff29-70bf-c5c3-61f4-a312932c5284"
] | [
[
[
1,
50
]
]
] |
855bb5c97afb6a251302cb35b1f8d0a736f837e1 | 7a0acc1c2e808c7d363043546d9581d21a129693 | /firefox/src/cpp/webdriver-firefox/native_events.h | f0e1579f7785227d062ea797cec49405d9652e43 | [
"Apache-2.0"
] | permissive | epall/selenium | 39b9759f8719a168b021b28e500c64afc5f83582 | 273260522efb84116979da2a499f64510250249b | refs/heads/master | 2022-06-25T22:15:25.493076 | 2010-03-11T00:43:02 | 2010-03-11T00:43:02 | 552,908 | 3 | 0 | Apache-2.0 | 2022-06-10T22:44:36 | 2010-03-08T19:10:45 | C | UTF-8 | C++ | false | false | 587 | h | #pragma once
#ifdef _MSC_VER
#include "stdafx.h"
#endif
#include "nsCOMPtr.h"
#include "nsINativeEvents.h"
#include "nsIAccessibleDocumentWrapper.h"
#define EVENTS_CONTRACTID "@openqa.org/nativeevents;1"
#define EVENTS_CLASSNAME "Firefox OS-level events"
#define EVENTS_CID { 0xaa54e938, 0x2752, 0x4194, { 0x80, 0xa6, 0x4d, 0x32, 0x58, 0x5b, 0x50, 0xee } }
class nsNativeEvents : public nsINativeEvents
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSINATIVEEVENTS
nsNativeEvents();
private:
~nsNativeEvents();
protected:
/* additional members */
};
| [
"simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9"
] | [
[
[
1,
29
]
]
] |
5dbc3eb256056531c41e11e208f27bee59648772 | 5e6ff9e6e8427078135a7b4d3b194bcbf631e9cd | /EngineSource/dpslim/dpslim/Database/Headers/DBProductTree.h | 685a36337008cb8b90877757969177e253d72912 | [] | no_license | karakots/dpresurrection | 1a6f3fca00edd24455f1c8ae50764142bb4106e7 | 46725077006571cec1511f31d314ccd7f5a5eeef | refs/heads/master | 2016-09-05T09:26:26.091623 | 2010-02-01T11:24:41 | 2010-02-01T11:24:41 | 32,189,181 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,083 | h | #pragma once
#define _CRT_SECURE_NO_WARNINGS
// ----------------------
//
// Created 3/29/2006
// Steve Noble, DecisionPower, Inc.
//
// ----------------------
#include <afxdb.h> // MFC ODBC database classes
/////////////////////////////////////////////////////////////////////////////
// ProductMatrix recordset
class ProductTreeRecordset : public CRecordset
{
public:
ProductTreeRecordset(CDatabase* pDatabase = NULL);
DECLARE_DYNAMIC(ProductTreeRecordset)
// Field/Param Data
long parentID;
long childID;
// Overrides
// ClassWizard generated virtual function overrides
public:
virtual CString GetDefaultConnect(); // Default connection string
virtual CString GetDefaultSQL(); // Default SQL for Recordset
virtual void DoFieldExchange(CFieldExchange* pFX); // RFX support
virtual int Open(unsigned int nOpenType = snapshot, LPCTSTR lpszSql = NULL, DWORD dwOptions = none);
//}}AFX_VIRTUAL
// Implementation
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
}; | [
"Isaac.Noble@fd82578e-0ebe-11df-96d9-85c6b80b8d9c"
] | [
[
[
1,
42
]
]
] |
231e1caa66bda4fa12619fb91534c88726c25655 | 8c234510906db9ae4e724c8efb0238892cb3a128 | /apps/Common/Image.cpp | d3d52ddb745851893a7f1d100c7fdbfc8094951d | [
"BSD-3-Clause"
] | permissive | hcl3210/opencv | 7b8b752982afaf402a361eb8475c24e7f4c08671 | b34b1c3540716a3dadfd2b9e3bbc4253774c636d | refs/heads/master | 2020-05-19T12:45:52.864577 | 2008-08-20T01:57:54 | 2008-08-20T01:57:54 | 177,025 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,912 | cpp | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,
// copy or use the software.
//
//
// Intel License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2000, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistribution's of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistribution's in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// * The name of Intel Corporation may not be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// This software is provided by the copyright holders and contributors "as is" and
// any express or implied warranties, including, but not limited to, the implied
// warranties of merchantability and fitness for a particular purpose are disclaimed.
// In no event shall the Intel Corporation or contributors be liable for any direct,
// indirect, incidental, special, exemplary, or consequential damages
// (including, but not limited to, procurement of substitute goods or services;
// loss of use, data, or profits; or business interruption) however caused
// and on any theory of liability, whether in contract, strict liability,
// or tort (including negligence or otherwise) arising in any way out of
// the use of this software, even if advised of the possibility of such damage.
//
//M*/
//
// Image.cpp: implementation of the CImage class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Image.h"
#include "vlgrfmts.h"
#include "cv.h"
#include <assert.h>
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CImage::CImage()
{
Clear();
}
void CImage::Clear()
{
memset( &m_img, 0, sizeof(m_img));
m_memDC = 0;
m_old = 0;
}
void CImage::Destroy()
{
if( m_memDC )
{
DeleteObject( SelectObject( m_memDC, m_old ));
DeleteDC( m_memDC );
}
Clear();
}
CImage::~CImage()
{
Destroy();
}
void FillBitmapInfo( BITMAPINFO* bmi, int width, int height, int bpp )
{
assert( bmi && width > 0 && height > 0 &&
(bpp == 8 || bpp == 24 || bpp == 32) );
BITMAPINFOHEADER* bmih = &(bmi->bmiHeader);
memset( bmih, 0, sizeof(*bmih));
bmih->biSize = sizeof(BITMAPINFOHEADER);
bmih->biWidth = width;
bmih->biHeight = -abs(height);
bmih->biPlanes = 1;
bmih->biBitCount = bpp;
bmih->biCompression = BI_RGB;
if( bpp == 8 )
{
RGBQUAD* palette = bmi->bmiColors;
int i;
for( i = 0; i < 256; i++ )
{
palette[i].rgbBlue = palette[i].rgbGreen = palette[i].rgbRed = (BYTE)i;
palette[i].rgbReserved = 0;
}
}
}
bool CImage::Create( int w, int h, int bpp )
{
char buffer[sizeof(BITMAPINFOHEADER) + 1024];
BITMAPINFO* bmi = (BITMAPINFO*)buffer;
void* data = 0;
int new_step = (w*(bpp/8) + 3) & -4;
assert( bpp == 8 || bpp == 24 || bpp == 32 );
if( (m_img.depth & 255)*m_img.nChannels == bpp &&
m_img.width == w && m_img.height == h )
{
return true;
}
Destroy();
m_memDC = CreateCompatibleDC(0);
FillBitmapInfo( bmi, w, h, bpp );
HBITMAP hbmp = CreateDIBSection( m_memDC, bmi, DIB_RGB_COLORS, &data, 0, 0 );
if( !hbmp )
{
DeleteDC( m_memDC );
m_memDC = 0;
}
else
{
BITMAP bmp;
m_old = SelectObject( m_memDC, hbmp );
GetObject( hbmp, sizeof(bmp), &bmp );
/* prepare IPL header */
memset( &m_img, 0, sizeof(m_img));
m_img.nSize = sizeof( m_img );
m_img.nChannels = bpp/8;
m_img.depth = IPL_DEPTH_8U;
strncpy( m_img.colorModel, bpp > 8 ? "RGB\0" : "GRAY", 4 );
strncpy( m_img.channelSeq, bpp > 8 ? "BGR\0" : "GRAY", 4 );
m_img.align = 4;
m_img.width = w;
m_img.height = abs(h);
m_img.roi = 0;
m_img.widthStep = (w*(bpp/8) + 3)& -4;
m_img.imageSize = m_img.widthStep*m_img.height;
m_img.imageData = m_img.imageDataOrigin = (char*)bmp.bmBits;
//iplSetBorderMode( &m_img, IPL_BORDER_REPLICATE, IPL_SIDE_ALL, 0 );
}
return m_old != 0;
}
void CImage::CopyOf( CImage& image, int desired_color )
{
IplImage* img = image.GetImage();
if( img )
{
CopyOf( img, desired_color );
}
}
void CImage::CopyOf( IplImage* img, int desired_color )
{
if( img )
{
int color = desired_color;
if( color < 0 ) color = img->nChannels > 1;
Create( iplWidth( img ), iplHeight( img ), color ? 24 : 8 );
if( m_img.nChannels == img->nChannels )
{
if( img->origin != m_img.origin )
{
long OldOrg = img->origin;
img->origin = m_img.origin;
cvMirror( img, &m_img, 0 );
img->origin = OldOrg;
}
else
{
cvCopy( img, &m_img );
}
}
else
{
CImage tmp_image;
tmp_image.Create( m_img.width, m_img.height, img->nChannels*8 );
IplImage* tmp_img = tmp_image.GetImage();
if( img->origin != m_img.origin )
{
long OldOrg = img->origin;
img->origin = tmp_img->origin;
cvMirror( img, tmp_img, 0 );
img->origin = OldOrg;
}
else
{
cvCopy( img, tmp_img );
}
if( color )
cvCvtColor( tmp_img, &m_img, CV_GRAY2BGR );
else
cvCvtColor( tmp_img, &m_img, CV_BGR2GRAY );
}
}
}
#if 0
static HINSTANCE hdll = 0;
static int (__cdecl *gr_fmt_find_filter)( const char* file_name ) = 0;
static int (__cdecl *gr_fmt_read_header)( int filter, int* width, int* height, int* color ) = 0;
static int (__cdecl *gr_fmt_read_data)( int filter, void* data, int pitch, int color ) = 0;
static int (__cdecl *gr_fmt_close_filter)( int filter ) = 0;
static int (__cdecl *gr_fmt_write_image)( void* data, int pitch,
int width, int height, int color,
const char* filename, const char* format ) = 0;
bool LoadGrFmtLib()
{
if( hdll != 0 ) return true;
// load image formats dll
hdll = LoadLibrary( "vlgrfmts.dll");
if( !hdll ) return false;
(FARPROC&)gr_fmt_find_filter = GetProcAddress( hdll, "gr_fmt_find_filter" );
(FARPROC&)gr_fmt_read_header = GetProcAddress( hdll, "gr_fmt_read_header" );
(FARPROC&)gr_fmt_read_data = GetProcAddress( hdll, "gr_fmt_read_data" );
(FARPROC&)gr_fmt_close_filter= GetProcAddress( hdll, "gr_fmt_close_filter" );
(FARPROC&)gr_fmt_write_image = GetProcAddress( hdll, "gr_fmt_write_image" );
if( !gr_fmt_find_filter || !gr_fmt_read_header || !gr_fmt_read_data )
{
FreeLibrary( hdll );
hdll = 0;
return false;
}
return true;
}
#endif
bool CImage::Load( const char* filename, int desired_color )
{
int filter = 0;
int width = 0, height = 0;
bool result = false;
int color = 0;
if( gr_fmt_find_filter == 0 ) return false;
if( !(filter = gr_fmt_find_filter( filename ))) goto exit;
if( !gr_fmt_read_header( filter, &width, &height, &color )) goto exit;
color = desired_color >= 0 ? desired_color : color > 0;
Create( width, height, color ? 24 : 8);
if( m_memDC == 0 ) goto exit;
result = gr_fmt_read_data( filter, m_img.imageData, m_img.widthStep, color ) != 0;
exit:
gr_fmt_close_filter( filter );
return result;
}
bool CImage::LoadRect( const char* filename,
int desired_color, RECT r )
{
int filter = 0;
int width = 0, height = 0;
bool result = false;
int color = 0;
int r_width = r.right - r.left;
int r_height = r.bottom - r.top;
int tmp_step = 0;
char* tmp = 0;
if( r_width < 0 || r_height < 0 ) return false;
if( gr_fmt_find_filter == 0 ) return false;
if( !(filter = gr_fmt_find_filter( filename ))) goto exit;
if( !gr_fmt_read_header( filter, &width, &height, &color )) goto exit;
if( r_width == 0 || r_height == 0 )
{
r_width = width;
r_height = height;
}
if( (unsigned)r.left >= (unsigned)width ||
(unsigned)r.top >= (unsigned)height ||
(unsigned)r.right >= (unsigned)width ||
(unsigned)r.bottom >= (unsigned)height ) goto exit;
color = desired_color >= 0 ? desired_color : color > 0;
Create( r_width, r_height, color ? 24 : 8);
if( m_memDC == 0 ) goto exit;
if( r.left == 0 && r.top == 0 &&
(r_width == 0 || r_width == width) &&
(r_height == 0 || r_height == height))
{
tmp = m_img.imageData;
tmp_step = m_img.widthStep;
}
else
{
tmp_step = (width*m_img.nChannels + 3) & -4;
tmp = (char*)malloc( tmp_step * height );
if( !tmp ) goto exit;
}
result = gr_fmt_read_data( filter, tmp, tmp_step, color ) != 0;
if( result && tmp != m_img.imageData )
{
int y;
for( y = 0; y < r_height; y++ )
{
memcpy( m_img.imageData + y*m_img.widthStep,
tmp + (r.top + y)*tmp_step + r.left*m_img.nChannels,
r_width * m_img.nChannels );
}
}
exit:
gr_fmt_close_filter( filter );
if( tmp != 0 && tmp != m_img.imageData ) free( tmp );
return result;
}
bool CImage::Save( const char* filename )
{
if( !m_memDC || (m_img.nChannels != 3 && m_img.nChannels != 1) ||
m_img.depth != IPL_DEPTH_8U ) return false;
return gr_fmt_write_image( m_img.imageData, m_img.widthStep,
iplWidth( &m_img ), iplHeight( &m_img ),
m_img.nChannels == 3, filename, "BMP" ) != 0;
}
IplImage* CImage::GetImage()
{
return m_memDC != 0 ? &m_img : 0;
}
HDC CImage::GetDC()
{
return m_memDC;
}
void CImage::Show( HDC dc, int x, int y, int w, int h, int from_x, int from_y )
{
if( m_img.width > 0 )
{
uchar buffer[sizeof(BITMAPINFOHEADER) + 1024];
BITMAPINFO* bmi = (BITMAPINFO*)buffer;
int bmp_w = Width();
int bmp_h = Height();
FillBitmapInfo( bmi, bmp_w, bmp_h, m_img.nChannels*8 );
int sw = MAX( MIN( bmp_w - from_x, w ), 0 );
int sh = MAX( MIN( bmp_h - from_y, h ), 0 );
int res = SetDIBitsToDevice(
dc, // handle to DC
x, // x-coord of destination upper-left corner
y, // y-coord of destination upper-left corner
sw, // source rectangle width
sh, // source rectangle height
from_x, // x-coord of source lower-left corner
from_y, // y-coord of source lower-left corner
from_y, // first scan line in array
sh, // number of scan lines
m_img.imageData + from_y*m_img.widthStep/* +
from_x*m_img.nChannels*/, // array of DIB bits
(BITMAPINFO*)bmi, // bitmap information
DIB_RGB_COLORS ); // RGB or palette indexes
}
}
void CImage::Fill( COLORREF color )
{
if( m_memDC )
{
HBRUSH br = CreateSolidBrush( color );
RECT rect;
GetClipBox( m_memDC, &rect );
FillRect( m_memDC, &rect, br );
DeleteObject( br );
}
}
void CImage::DrawToHDC( HDC hDCDst, RECT* pDstRect )
{
HDC hDCSrc = GetDC();
if( pDstRect == NULL ) return;
if( hDCDst == NULL ) return;
if( hDCSrc == NULL ) return;
if( Width() > pDstRect->right - pDstRect->left )
{
SetStretchBltMode(
hDCDst, // handle to device context
HALFTONE );
}
else
{
SetStretchBltMode(
hDCDst, // handle to device context
COLORONCOLOR );
}
::StretchBlt(
hDCDst,
pDstRect->left, pDstRect->top,
pDstRect->right - pDstRect->left, pDstRect->bottom - pDstRect->top,
hDCSrc,
m_img.roi ? m_img.roi->xOffset:0 ,
m_img.roi ? m_img.roi->yOffset:0,
Width(),
Height(),
SRCCOPY );
}
| [
"[email protected]"
] | [
[
[
1,
455
]
]
] |
0e8e1a113a921bfbded12e419ef47df2d29b7b44 | 52f70251d04ca4f42ba3cb991727003a87d2c358 | /src/pragma/graphics/import/ASE_Parser.h | 38e1bf74ce95e996ab4af7f9ff0add6cfe6ab918 | [
"MIT"
] | permissive | vicutrinu/pragma-studios | 71a14e39d28013dfe009014cb0e0a9ca16feb077 | 181fd14d072ccbb169fa786648dd942a3195d65a | refs/heads/master | 2016-09-06T14:57:33.040762 | 2011-09-11T23:20:24 | 2011-09-11T23:20:24 | 2,151,432 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 109 | h | #pragma once
namespace pragma
{
class Mesh;
bool ParseASE(const char* aFilename, Mesh& aMesh);
}
| [
"[email protected]"
] | [
[
[
1,
8
]
]
] |
dee5f26c75318aaa8012a2c07a8bda12ef811ed4 | e19b72560f44dd99124b49f8437d04e7408c26ac | /VPTree/Test CertisLib/bof_db_region.cpp | 1e1126d9de7fcb8d0b7a82a9e66956575dbd4c49 | [] | no_license | jbfiot/rangers | d5a588da14e188e0f605758e93c6aaf4616cf4f3 | 15b88a73e39708e68c6224f9809cd2966f9dbe26 | refs/heads/master | 2021-01-17T05:25:35.494251 | 2009-03-20T10:09:26 | 2009-03-20T10:09:26 | 38,111,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,770 | cpp | #include "bof_db_region.h"
using namespace std;
#define RANDOM_SET_MAX_LENGTH 100
#define MAX_ROWS_BY_DISTANCE_REQUEST 100
/**
* Constructor
**/
Bof_db_Region::Bof_db_Region (Feature_db *feature_db, int k, string db_host, string db_username,
string db_password, string db_name, string table_name)
{
this->db_name = db_name;
this->db_username = db_username;
this->db_password = db_password;
this->db_host = db_host;
this->table_name = table_name;
this->nb_k_centers = k;
this->fdb = feature_db;
//Server Connexion
if (!(db_connection = mysql_init(NULL)))
error_and_exit();
if (mysql_real_connect(db_connection,db_host.c_str(),db_username.c_str(),db_password.c_str(),NULL,0,NULL,0))
// Notice we do not specify the database because it might not exists.
cout << "SQL server connection: OK"<<endl;
else
error_and_exit();
//Database creation
string db_creation_query = "CREATE DATABASE IF NOT EXISTS ";
db_creation_query += db_name;
if (!mysql_query(db_connection, db_creation_query.c_str()))
cout << "Database creation query: OK"<<endl;
else
error_and_exit();
//Database selection
string db_selection_query = "USE ";
db_selection_query += db_name;
if (!mysql_query(db_connection, db_selection_query.c_str()))
cout << "Database selection query: OK"<<endl;
else
error_and_exit();
//Table creation
string table_creation_query = "CREATE TABLE IF NOT EXISTS ";
table_creation_query += table_name;
table_creation_query += " (Bof_Region_ID int NOT NULL auto_increment,";
for (unsigned int i=1; i<=this->nb_k_centers; i++)
{
table_creation_query += "Coeff";
table_creation_query += to_string(i);
table_creation_query += " DOUBLE NOT NULL,";
}
table_creation_query += " Parent int DEFAULT 0, Direction int DEFAULT 0, Mu double, Son1 int DEFAULT 0, Son2 int DEFAULT 0,";
table_creation_query += " PRIMARY KEY(Bof_Region_ID))";
if (!mysql_query(db_connection, table_creation_query.c_str()))
cout << "Table creation query: OK."<<endl;
else
error_and_exit();
}
/**
* Destructor
*/
Bof_db_Region::~Bof_db_Region()
{
mysql_close(db_connection);
cout << "Closing connection: OK."<<endl;
}
/**
* Error function (display error and exit program).
**/
void Bof_db_Region::error_and_exit()
{
printf("Error %u: %s\n", mysql_errno(db_connection), mysql_error(db_connection));
system("pause");
exit(4);
}
/**
* Add-Bag of Features function (add a line to the table).
**/
void Bof_db_Region::add_bof(Bof_Region &bag)
{
Vector histogram;
bag.get_histogram(histogram);
string add_bof_region_query = "INSERT INTO ";
add_bof_region_query += table_name;
add_bof_region_query += " (";
for (unsigned int i=0; i<this->nb_k_centers; i++)
{
add_bof_region_query += "Coeff";
add_bof_region_query += to_string(i+1);
if (i != this->nb_k_centers - 1)
add_bof_region_query += ",";
}
add_bof_region_query += ") VALUES (";
for (unsigned int i=0; i<this->nb_k_centers; i++)
{
add_bof_region_query += to_string(histogram[i]);
if (i != this->nb_k_centers - 1)
add_bof_region_query += ",";
}
add_bof_region_query += ")";
if (mysql_query(db_connection, add_bof_region_query.c_str()))
error_and_exit();
}
/**
* PARTIE CONSTRUCTION DE L'ARBRE
**/
/**
* Sélectionne un random set aléatoire de résultats parmi les résultats de la requete:
* PARENT = parent et DIRECTION = direction
**/
void Bof_db_Region::select_random_set_indexes(int index_parent, int direction,
std::vector<Vector> &sample_set, std::vector<int> &random_indexes,
unsigned int not_this_one)
{
//1- Compter le nombre de résultats de la requete
int nb = this->count_elems(index_parent, direction, not_this_one);
//RECUPERATION DU CONTENU
//Declaration des pointeurs de structure
MYSQL_RES *result = NULL;
MYSQL_ROW row = NULL;
//2- Sélectionner un random set sur la liste des indexes
sample_set.resize(min(RANDOM_SET_MAX_LENGTH,nb));
random_indexes.resize(min(RANDOM_SET_MAX_LENGTH,nb));
string random_query = "SELECT Bof_Region_ID, ";
for (unsigned int k=1; k<=nb_k_centers;k++)
{
random_query+="Coeff";
random_query+=to_string(k);
if (k!= nb_k_centers)
random_query+=" ,";
}
random_query+=" FROM ";
random_query+=table_name;
random_query+=" WHERE Parent = ";
random_query+=to_string(index_parent);
random_query+=" and Direction = ";
random_query+=to_string(direction);
if (not_this_one != 0)
{
random_query += " and BoF_Region_ID != ";
random_query += to_string(not_this_one);
}
random_query+=" ORDER BY RAND() LIMIT ";
random_query+=to_string(RANDOM_SET_MAX_LENGTH);
if (!mysql_query(db_connection, random_query.c_str()))
{
//cout << "Random query (Random) : OK"<<endl;
}
else
error_and_exit();
result = mysql_use_result(db_connection);
int i=0;
Vector res;
res.resize(nb_k_centers);
while(row = mysql_fetch_row(result))
{
//Primary key of random result
random_indexes[i] = strtodouble(row[0]);
//Random BOF
for (int j=0; j<nb_k_centers;j++)
res[j] = strtodouble(row[j+1]);
sample_set[i] = res;
i++;
}
//Liberation du jeu de resultat
mysql_free_result(result);
}
/**
* Sélectionne la racine du VP-Tree
**/
unsigned int Bof_db_Region::select_vp(int index_parent, int direction, Bof_Region &root)
{
std::vector<Vector> sample_set;
std::vector<int> random_indexes_candidates;
select_random_set_indexes(index_parent, direction, sample_set, random_indexes_candidates);
double best_spread = 0;
unsigned int best_candidate = random_indexes_candidates[0];
root = Bof_Region(sample_set[0], this->fdb);
if (random_indexes_candidates.size() == 1)
//Il n'a qu'un seul élément dans l'ensemble
return best_candidate;
std::vector<Vector> rand_set_for_med_test;
for (int i=0; i<sample_set.size(); ++i)
{
//Sélection d'un set aléatoire de l'espace qui nous intéresse
Bof_Region candidate_region(sample_set[i], this->fdb);
std::vector<int> rand_set_for_med_test_indexes;
select_random_set_indexes(index_parent, direction,
rand_set_for_med_test, rand_set_for_med_test_indexes, random_indexes_candidates[i]);
//Précalcul des distances entre le candidat et les régions du sample_set
Vector distances_p_rand_set;
distances_p_rand_set.resize(rand_set_for_med_test.size());
for (int j=0; j<distances_p_rand_set.size(); ++j)
{
Bof_Region random_region(rand_set_for_med_test[j], this->fdb);
double tmp = candidate_region - random_region;
distances_p_rand_set[j] = tmp;
}
//Calcul de la variance de cet ensemble de distances (calculée avec la médiane)
double median = distances_p_rand_set.compute_median();
double spread = distances_p_rand_set.compute_second_moment(median);
//cout << "Répartition des distances: " << distances_p_rand_set
// << " spread: " << spread << " median: " << median << endl;
if (spread > best_spread)
{
best_spread = spread;
best_candidate = random_indexes_candidates[i];
root = candidate_region;
}
rand_set_for_med_test.clear();
}
return best_candidate;
}
void Bof_db_Region::build_tree()
{
//Initialisation des champs temporaires
string set_son_query = "UPDATE ";
set_son_query += table_name;
set_son_query += " SET Parent=0, Direction=0, Son1=0, Son2=0, Mu=0";
mysql_query(db_connection, set_son_query.c_str());
//Fonction récursive construisant l'arbre
make_one_step(0,0);
}
void Bof_db_Region::make_one_step(int index_parent, int direction)
{
static int compt=0;
cout << endl << "--------------------------------" << endl;
cout << "ITERATION " << compt << ": Parent " << index_parent << " direction " << direction << endl;
cout << "--------------------------------" << endl;
compt ++;
//1- Sélectionner la racine parmi un random set
Bof_Region root;
unsigned int median_index = select_vp(index_parent, direction, root);
cout << "RACINE CHOISIE: " << median_index << endl;
//2- Choisir la distance critique:
// C'est la médiane des distances du noeud à tous les éléments de l'ensemble
//2-1) Calcul des distances à la racone dans la database
this->update_distances(index_parent, direction, root);
//2-2) Calcul de la médiane par la database
double mu = this->get_median(index_parent, direction);
cout << "Seuil choisi : " << mu << endl;
//3- Set parent and directions to nodes of the set
this->set_parent_direction_fields(index_parent, direction, mu, median_index);
//4- Mise à jour du Son correspondant pour le parent
if (index_parent != 0)
this->set_son_value(index_parent, direction, median_index);
//5- Mise à jour du Mu pour la racine trouvée
this->set_mu_value(median_index, mu);
//6- Mise à jour du parent de la racine
this->set_parent_direction(median_index, index_parent, direction);
//7- Obtenir le nombre de noeuds à gauche et à droite
int nb_son_1 = this->count_elems(median_index, 1);
int nb_son_2 = this->count_elems(median_index, 2);
//Si pas de noeud dans le sous-arbre de gauche...
if (nb_son_1 == 0)
{
//On met 0 comme sous-arbre de de gauche
this->set_son_value(median_index, 1, 0);
}
//Si pas de noeud dans le sous-arbre de gauche...
if (nb_son_2 == 0)
{
//On met 0 comme sous-arbre de de gauche
this->set_son_value(median_index, 2, 0);
}
cout << "Répartition : " << nb_son_1 << " | " << nb_son_2 << endl;
//4- Si il y a au moins un élément dans le sous-arbre de gauche
if (nb_son_1>0)
make_one_step(median_index, 1);
// Si il y a au moins un élément dans le sous-arbre de droite
if (nb_son_2>0)
make_one_step(median_index, 2);
}
/**
* Update les champs Son1 ou Son2 du parent
**/
void Bof_db_Region::set_son_value(int index_parent, int direction, int index_median)
{
string son;
if (direction == 1)
son = "Son1";
else
son = "Son2";
string set_son_query = "UPDATE ";
set_son_query += table_name;
set_son_query += " SET ";
set_son_query += son;
set_son_query += "=";
set_son_query += to_string(index_median);
set_son_query += " WHERE Bof_Region_ID=";
set_son_query += to_string(index_parent);
if (!mysql_query(db_connection, set_son_query.c_str()))
{
//cout << "Set Son Value Query: OK"<<endl;
}
else
error_and_exit();
}
/**
* Insère les distances à la racine dans le champ mu
**/
void Bof_db_Region::update_distances(int parent, int direction, Bof_Region &root)
{
Vector distances;
Vector ids;
int offset = 0;
while (true)
{
//######################################
// Sélection des 1000 premières régions
//######################################
MYSQL_RES *result = NULL;
MYSQL_ROW row = NULL;
string distances_query = "SELECT Bof_Region_ID, ";
for (unsigned int k=1; k<=nb_k_centers;k++)
{
distances_query += " Coeff";
distances_query += to_string(k);
if (k!= nb_k_centers)
distances_query += " ,";
else
distances_query += " FROM ";
}
distances_query += table_name;
distances_query += " WHERE parent = ";
distances_query += to_string(parent);
distances_query += " and direction = ";
distances_query += to_string(direction);
distances_query += " LIMIT ";
distances_query += to_string(MAX_ROWS_BY_DISTANCE_REQUEST);
distances_query += " OFFSET ";
distances_query += to_string(offset);
if (!mysql_query(db_connection, distances_query.c_str()))
{
//cout << "# of distances of query: OK" << endl;
}
else
error_and_exit();
result = mysql_use_result(db_connection);
unsigned int num_champs = mysql_num_fields(result);
//on stocke les valeurs de la ligne choisie
ids.clear();
distances.clear();
int nb_results = 0;
while (row = mysql_fetch_row(result))
{
ids.push_back(strtodouble(row[0]));
//On fait une boucle pour avoir la valeur de chaque champ
Vector feat;
for (int i = 1; i < num_champs; i++)
feat.push_back(strtodouble(row[i]));
double dist = Bof_Region(feat, this->fdb) - root;
distances.push_back(dist);
nb_results ++;
}
if (nb_results == 0)
//Mise à jour des distances finie!
break;
//########################################
// Insertion des 1000 distances calculées
//########################################
string distances_insertion_query = "UPDATE ";
distances_insertion_query += table_name;
distances_insertion_query += " SET Mu = CASE Bof_Region_ID ";
for (int i=0; i<nb_results; ++i)
{
distances_insertion_query += " WHEN ";
distances_insertion_query += to_string(ids[i]);
distances_insertion_query += " THEN ";
distances_insertion_query += to_string(distances[i]);
}
distances_insertion_query += " ELSE Mu END";
if (mysql_query(db_connection, distances_insertion_query.c_str()))
error_and_exit();
mysql_free_result(result);
if (nb_results != MAX_ROWS_BY_DISTANCE_REQUEST)
//Il n'y a pas plus de 1000 résultats =>
break;
offset += nb_results;
}
}
/**
* Calcul de la médiane par le serveur SQL (prend en paramètres le nombre de décimales)
* Nécessite d'installer la fonction médiane de UDF
**/
double Bof_db_Region::get_median(int parent, int direction)
{
// REQUETE SQL
string get_median_query = "SELECT median(Mu,10) FROM "; // 10 : nb de chiffres significatifs de la fonction median
get_median_query += table_name;
get_median_query += " WHERE Parent=";
get_median_query += to_string(parent);
get_median_query += " AND Direction=";
get_median_query += to_string(direction);
if (!mysql_query(db_connection, get_median_query.c_str()))
{
//cout << "Get median query: OK"<<endl;
}
else
error_and_exit();
//RECUPERATION DU CONTENU
//Declaration des pointeurs de structure
MYSQL_RES *result = NULL;
MYSQL_ROW row = NULL;
//On met le jeu de resultat dans le pointeur result
result = mysql_use_result(db_connection);
row = mysql_fetch_row(result);
double median = strtodouble(row[0]);
//Liberation du jeu de resultat
mysql_free_result(result);
return median;
}
/**
* Met à jour les champs Parent et Direction des noeuds membres de l'ensemble considéré
**/
void Bof_db_Region::set_parent_direction_fields(int parent, int direction, double median, int index_median)
{
string set_son_query = "UPDATE ";
set_son_query += table_name;
set_son_query += " SET Parent=";
set_son_query += to_string(index_median);
set_son_query += ", Direction=(SIGN(Mu-";
set_son_query += to_string(median);
set_son_query += ")+1)/2+1";
set_son_query += " WHERE Parent=";
set_son_query += to_string(parent);
set_son_query += " AND Direction=";
set_son_query += to_string(direction);
if (!mysql_query(db_connection, set_son_query.c_str()))
{
//cout << "Set Parent and Direction fields query: OK"<<endl;
}
else
error_and_exit();
}
/**
* Update le champ Mu de la racine trouvée
**/
void Bof_db_Region::set_mu_value(int index_root, double median)
{
string set_son_query = "UPDATE ";
set_son_query += table_name;
set_son_query += " SET Mu=";
set_son_query += to_string(median);
set_son_query += " WHERE Bof_Region_ID=";
set_son_query += to_string(index_root);
if (!mysql_query(db_connection, set_son_query.c_str()))
{
//cout << "Add-bof-query: OK"<<endl;
}
else
error_and_exit();
}
/**
* Obtenir le nombre de noeuds dans chaque sous-arbre
**/
int Bof_db_Region::count_elems(int parent, int direction, unsigned int not_this_one)
{
string set_son_query = "SELECT COUNT(*) FROM ";
set_son_query += table_name;
if (parent != -1)
{
set_son_query += " WHERE Parent=";
set_son_query += to_string(parent);
set_son_query += " AND Direction=";
set_son_query += to_string(direction);
}
if (not_this_one != 0)
{
set_son_query += " AND BOF_Region_ID != ";
set_son_query += to_string(not_this_one);
}
if (!mysql_query(db_connection, set_son_query.c_str()))
{
//cout << "Count elements query: OK"<<endl;
}
else
error_and_exit();
//RECUPERATION DU CONTENU
//Declaration des pointeurs de structure
MYSQL_RES *result = NULL;
MYSQL_ROW row = NULL;
//On met le jeu de resultat dans le pointeur result
result = mysql_use_result(db_connection);
row = mysql_fetch_row(result);
int nb = strtodouble(row[0]);
//Liberation du jeu de resultat
mysql_free_result(result);
return nb;
}
/**
* Change le champ parent à la ligne index
**/
void Bof_db_Region::set_parent_direction(int index, int index_parent, int direction)
{
string set_son_query = "UPDATE ";
set_son_query += table_name;
set_son_query += " SET Parent=";
set_son_query += to_string(index_parent);
set_son_query += " ,Direction=";
set_son_query += to_string(direction);
set_son_query += " WHERE Bof_Region_ID=";
set_son_query += to_string(index);
if (!mysql_query(db_connection, set_son_query.c_str()))
{
//cout << "Set Son Value Query: OK"<<endl;
}
else
error_and_exit();
}
void Bof_db_Region::get_bof_number(int index, Bof_Region &res, double &mu, double &son1, double &son2)
{
//RECUPERATION DU CONTENU
//Declaration des pointeurs de structure
MYSQL_RES *result = NULL;
MYSQL_ROW row = NULL;
string random_query = "SELECT Mu, Son1, Son2, ";
for (unsigned int k=1; k<=this->nb_k_centers;k++)
{
random_query+=" Coeff";
random_query+=to_string(k);
if (k!= this->nb_k_centers)
random_query+=" ,";
}
random_query += " FROM ";
random_query += table_name;
random_query+=" WHERE Bof_Region_ID = ";
random_query+=to_string(index);
if (!mysql_query(db_connection, random_query.c_str()))
{
//cout << "Random query (Random) : OK"<<endl;
}
else
error_and_exit();
result = mysql_use_result(db_connection);
Vector histo_centers;
histo_centers.resize(this->nb_k_centers);
row = mysql_fetch_row(result);
if (!row)
{
cout << "Pas de bof ayant le numero " << index << endl;
error_and_exit();
}
mu = strtodouble(row[0]);
son1 = strtodouble(row[1]);
son2 = strtodouble(row[2]);
for (int j=0; j<this->nb_k_centers;j++)
histo_centers[j] = strtodouble(row[j+3]);
res = Bof_Region(histo_centers, this->fdb);
//Liberation du jeu de resultat
mysql_free_result(result);
}
unsigned int Bof_db_Region::get_root_node()
{
//RECUPERATION DU CONTENU
//Declaration des pointeurs de structure
MYSQL_RES *result = NULL;
MYSQL_ROW row = NULL;
string random_query = "SELECT Bof_Region_ID FROM ";
random_query += table_name;
random_query+=" WHERE Parent = 0";
if (mysql_query(db_connection, random_query.c_str()))
error_and_exit();
result = mysql_use_result(db_connection);
row = mysql_fetch_row(result);
unsigned int root_index = strtodouble(row[0]);
//Liberation du jeu de resultat
mysql_free_result(result);
return root_index;
}
unsigned int Bof_db_Region::find_nearest_leaf(Bof_Region &bof)
{
cout << endl << "Recherche dans le VP-Tree..." << endl;
//Déclaration des variables de la fonction
unsigned int root_index = this->get_root_node();
cout << "Le parent est le noeud " << root_index << endl << endl;
std::vector<unsigned int> nodes_to_search;
nodes_to_search.push_back(root_index);
bool first = true;
double distance_max = INT_MAX;
unsigned int nearest = 0;
int noeuds_parcourus = 0;
//Tant qu'il y a des noeuds dans lesquels rechercher...
while (!nodes_to_search.empty())
{
noeuds_parcourus++;
unsigned int search_node = nodes_to_search.back();
nodes_to_search.pop_back();
cout << "Recherche dans le sous-arbre " << search_node << endl;
Bof_Region root_bof;
double mu, son1, son2;
this->get_bof_number(search_node, root_bof, mu, son1, son2);
double dist_to_node = root_bof - bof;
if (dist_to_node < distance_max)
{
nearest = search_node;
distance_max = dist_to_node;
}
//Si on est au tout en haut de l'arbre, on recherche dans les deux sous-arbres
if (first)
{
nodes_to_search.push_back(son1);
nodes_to_search.push_back(son2);
distance_max = dist_to_node;
first = false;
cout << endl;
continue;
}
//Si la distance est inférieure au seuil + distance_max, on recherche à l'intérieur
if ((dist_to_node < mu + distance_max) && (son1 !=0 ))
{
nodes_to_search.push_back(son1);
cout << "Recherche dans le sous-arbre gauche" << endl;
}
//Si la distance est supérieure au seuil - distance_max, on recherche à l'extérieur
if ((dist_to_node > mu - distance_max) && (son2 != 0))
{
nodes_to_search.push_back(son2);
cout << "Recherche dans le sous-arbre droit" << endl;
}
cout << endl;
}
cout << noeuds_parcourus << " / " << this->count_elems(-1, 0, 0) << " noeuds parcourus!" << endl;
cout << "Le BOF le plus proche est le " << nearest << endl;
cout << "La distance minimale est: " << distance_max << endl;
return nearest;
}
| [
"[email protected]"
] | [
[
[
1,
828
]
]
] |
eaea9f50274aab3cbd30252205ed971462302052 | 463c3b62132d215e245a097a921859ecb498f723 | /lib/dlib/threads/thread_specific_data_extension_abstract.h | 2b72ab7c5ffc3486bec100e4eb21eaa13eaaee10 | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | athulan/cppagent | 58f078cee55b68c08297acdf04a5424c2308cfdc | 9027ec4e32647e10c38276e12bcfed526a7e27dd | refs/heads/master | 2021-01-18T23:34:34.691846 | 2009-05-05T00:19:54 | 2009-05-05T00:19:54 | 197,038 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,227 | h | // Copyright (C) 2006 Davis E. King ([email protected])
// License: Boost Software License See LICENSE.txt for the full license.
#undef DLIB_THREAD_SPECIFIC_DATA_EXTENSIOn_ABSTRACT_
#ifdef DLIB_THREAD_SPECIFIC_DATA_EXTENSIOn_ABSTRACT_
#include "threads_kernel_abstract.h"
namespace dlib
{
// ----------------------------------------------------------------------------------------
template <
typename T
>
class thread_specific_data
{
/*!
WHAT THIS OBJECT REPRESENTS
This object represents a container of thread specific data. When
a thread calls the data() member function it gets a reference to a T object
that is specific to its own thread. Each subsequent call to data() from that
thread returns the same instance. Also note that when a thread ends
the instance of its data() object gets destroyed and freed (if the thread
was created by the dlib library). So any pointers or references to the object
will be invalid after the thread has ended.
!*/
public:
thread_specific_data (
);
/*!
ensures
- #*this is properly initialized
!*/
~thread_specific_data (
);
/*!
ensures
- all resources allocated by *this have been freed. This includes
all the thread specific data returned by the data() functions.
!*/
T& data (
);
/*!
ensures
- if (the calling thread has NOT called this->data() before) then
- constructs an instance of T that is specific to the calling
thread.
- returns a reference to the T instance that was constructed for
the calling thread.
throws
- std::bad_alloc or any exception thrown by T's constructor
If an exception is thrown then the call to data() will have
no effect on *this.
!*/
const T& data (
) const;
/*!
ensures
- if (the calling thread has NOT called this->data() before) then
- constructs an instance of T that is specific to the calling
thread.
- returns a const reference to the T instance that was constructed for
the calling thread.
throws
- std::bad_alloc or any exception thrown by T's constructor
If an exception is thrown then the call to data() will have
no effect on *this.
!*/
private:
// restricted functions
thread_specific_data(thread_specific_data&); // copy constructor
thread_specific_data& operator=(thread_specific_data&); // assignment operator
};
// ----------------------------------------------------------------------------------------
}
#endif // DLIB_THREAD_SPECIFIC_DATA_EXTENSIOn_ABSTRACT_
| [
"jimmy@DGJ3X3B1.(none)"
] | [
[
[
1,
87
]
]
] |
5fa2d1e860d6b522fb14afa588fef784e6d83009 | c5534a6df16a89e0ae8f53bcd49a6417e8d44409 | /trunk/Dependencies/Xerces/include/xercesc/util/ParseException.hpp | e38672642ce8baaf5cc2b63ac93fa85f8453799a | [] | no_license | svn2github/ngene | b2cddacf7ec035aa681d5b8989feab3383dac012 | 61850134a354816161859fe86c2907c8e73dc113 | refs/heads/master | 2023-09-03T12:34:18.944872 | 2011-07-27T19:26:04 | 2011-07-27T19:26:04 | 78,163,390 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 987 | hpp | /*
* Copyright 2001,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: ParseException.hpp 176026 2004-09-08 13:57:07Z peiyongz $
*/
#if !defined(PARSEEXCEPTION_HPP)
#define PARSEEXCEPTION_HPP
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/util/XMLException.hpp>
XERCES_CPP_NAMESPACE_BEGIN
MakeXMLException(ParseException, XMLUTIL_EXPORT)
XERCES_CPP_NAMESPACE_END
#endif
| [
"Riddlemaster@fdc6060e-f348-4335-9a41-9933a8eecd57"
] | [
[
[
1,
34
]
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.