blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
247
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
4
111
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
58
visit_date
timestamp[ns]date
2015-07-25 18:16:41
2023-09-06 10:45:08
revision_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
committer_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
github_id
int64
3.89k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
25 values
gha_event_created_at
timestamp[ns]date
2012-06-07 00:51:45
2023-09-14 21:58:52
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-08-24 19:49:39
gha_language
stringclasses
159 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
7
10.5M
extension
stringclasses
111 values
filename
stringlengths
1
195
text
stringlengths
7
10.5M
cb9b5fe5329e5361f97298fb14109338860a557e
d4e74a538776e5ab8d3c243b942c6969aaedf468
/GameClient/GameStateSearching.cpp
1e748f289ddd95850ee65c1db253039fdab5418e
[ "BSD-3-Clause", "MIT", "Zlib", "Libpng", "X11" ]
permissive
SamirAroudj/BaseProject
4d53eecd7c7b06f61c351afdcbb543b991f11435
50ede52bd6fa7b20d6ecb8a11bc1193ef841d91d
refs/heads/master
2021-09-26T17:35:53.171748
2018-10-31T22:02:40
2018-10-31T22:02:40
104,905,749
1
1
null
null
null
null
UTF-8
C++
false
false
2,812
cpp
GameStateSearching.cpp
/* * Copyright (C) 2017 by Author: Aroudj, Samir, born in Suhl, Thueringen, Germany * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD 3-Clause license. See the License.txt file for details. */ #include <sstream> #include "FontManager.h" #include "Game.h" #include "GameStateSearching.h" #include "Platform/Input/InputManager.h" #include "MagicGameConstants.h" #include "MagicNetworkConstants.h" using namespace GamePlay; using namespace GUI; using namespace Input; using namespace Network; using namespace Platform; using namespace std; GameStateSearching::GameStateSearching() : mLANServerFinder(LAN_ADVERTISER_PORT_NUMBER), mChosenServerApplication(0) { } GameStateSearching::~GameStateSearching() { } void GameStateSearching::postRender() { } void GameStateSearching::render() { wchar_t buffer[MAX_IP_ADDRESS_LENGTH]; wostringstream os(wostringstream::out); uint32 numOfServerApplications = mLANServerFinder.getDiscoveredServers().size(); os << L"Searching LAN servers...\n"; if (numOfServerApplications > 0) os << L"LAN server to connect to: " << mChosenServerApplication; for(uint32 i = 0; i < numOfServerApplications; ++i) // display found LAN servers { string IPAddress = mLANServerFinder.getDiscoveredServers()[i].getIPAddressAsString(); mbstowcs_s(NULL, buffer, MAX_IP_ADDRESS_LENGTH, IPAddress.c_str(), MAX_IP_ADDRESS_LENGTH); os << L"\nServer " << i << L": "; os << L" IP address: "; os << buffer; os << L" port number: "; os << mLANServerFinder.getDiscoveredServers()[i].getPortNumber(); } FontManager::getSingleton().getFont(0).renderText(os.str().c_str(), 20, 100, TEXT_COLOR); } GameState::State GameStateSearching::update(Real deltaTime) { mLANServerFinder.update(); if (InputManager::getSingleton().getKeyboard().isKeyPressed(KEY_RETURN) &&!mLANServerFinder.getDiscoveredServers().empty()) return GameState::CONNECTING; if (InputManager::getSingleton().getKeyboard().isKeyPressed(KEY_R)) // update LAN server search { mLANServerFinder.clearDiscoveredServers(); mLANServerFinder.sendDiscoveryMessage(); } if (mLANServerFinder.getDiscoveredServers().size() > 1) // choose one of the found LAN servers { if (InputManager::getSingleton().getKeyboard().isKeyPressed(KEY_DOWN)) { if (0 == mChosenServerApplication) mChosenServerApplication = mLANServerFinder.getDiscoveredServers().size() - 1; else --mChosenServerApplication; } if (InputManager::getSingleton().getKeyboard().isKeyPressed(KEY_UP)) mChosenServerApplication = (1 + mChosenServerApplication) % mLANServerFinder.getDiscoveredServers().size(); } if (InputManager::getSingleton().getKeyboard().isKeyPressed(KEY_ESCAPE)) // exit? Game::getSingleton().exit(); return GameState::NO_STATE_CHANGE; }
031ba26cccb0d1cab4f91f074ced8fc3d9a751f5
df6d96ba17dc9765770f587a1e04d9880925b2f8
/src/mntNcFieldWrite.cpp
ba270d768292456492b446593dccdbcaba27c76c
[ "0BSD" ]
permissive
pletzer/mint
300c7e460453afba3fae4ccc8d04e12bf48341d3
50c2c66bce5e09cf14f9f244da67ab4be84fbe5b
refs/heads/master
2023-08-08T08:38:20.361042
2023-07-31T07:18:37
2023-07-31T07:18:37
130,304,591
6
4
0BSD
2023-07-31T07:18:38
2018-04-20T03:36:44
C++
UTF-8
C++
false
false
5,694
cpp
mntNcFieldWrite.cpp
#include "mntLogger.h" #include "mntNcFieldWrite.h" #include <cstdio> #include <cstring> #include <netcdf.h> #include <iostream> LIBRARY_API int mnt_ncfieldwrite_new(NcFieldWrite_t** self, const char* fileName, int fileNameLen, const char* varName, int varNameLen, int append) { std::string msg; *self = new NcFieldWrite_t(); (*self)->ncid = -1; (*self)->varid = -1; (*self)->defined = false; (*self)->append = false; (*self)->varName = std::string(varName, varNameLen); if (append == 1) { (*self)->append = true; } std::string fname = std::string(fileName, fileNameLen); std::string vname = std::string(varName, varNameLen); if ((*self)->append) { // append data to existing file int ier = nc_open(fname.c_str(), NC_WRITE, &(*self)->ncid); if (ier != NC_NOERR) { msg = "could not open file " + fname + " in write access mode"; mntlog::error(__FILE__, __func__, __LINE__, msg); return 1; } // load the attributes and dimensions if in append mode ier = mnt_ncfieldwrite_inquire(self); if (ier != NC_NOERR) { msg = "failed to inquire the attributes and dimensions for variable " + std::string(varName) + " in file " + fname; mntlog::error(__FILE__, __func__, __LINE__, msg); return 2; } } else { // create a new file int ier = nc_create(fname.c_str(), NC_CLOBBER, &(*self)->ncid); if (ier != NC_NOERR) { msg = "could not create file " + fname; mntlog::error(__FILE__, __func__, __LINE__, msg); return 1; } } return 0; } LIBRARY_API int mnt_ncfieldwrite_del(NcFieldWrite_t** self) { int ier = nc_close((*self)->ncid); delete *self; return ier; } LIBRARY_API int mnt_ncfieldwrite_setNumDims(NcFieldWrite_t** self, int ndims) { (*self)->dimSizes.resize(ndims); (*self)->dimNames.resize(ndims); return 0; } LIBRARY_API int mnt_ncfieldwrite_setDim(NcFieldWrite_t** self, int iAxis, const char* dimName, int dimNameLen, std::size_t dim) { (*self)->dimNames[iAxis] = std::string(dimName, dimNameLen); (*self)->dimSizes[iAxis] = dim; return 0; } LIBRARY_API int mnt_ncfieldwrite_data(NcFieldWrite_t** self, const double data[]) { if (!(*self)->defined) { int stat = mnt_ncfieldwrite_define(self); if (stat != NC_NOERR) { return stat; } } int ier = nc_put_var_double((*self)->ncid, (*self)->varid, data); return ier; } LIBRARY_API int mnt_ncfieldwrite_dataSlice(NcFieldWrite_t** self, const std::size_t startInds0[], const std::size_t counts[], const double data[]) { if (!(*self)->defined) { int stat = mnt_ncfieldwrite_define(self); if (stat != NC_NOERR) { return stat; } } int ier = nc_put_vara_double((*self)->ncid, (*self)->varid, startInds0, counts, data); return ier; } LIBRARY_API int mnt_ncfieldwrite_define(NcFieldWrite_t** self) { std::string msg; if ((*self)->defined) { // nothing to do return 0; } if ((*self)->append) { msg = "can define only in non-append mode\n"; mntlog::error(__FILE__, __func__, __LINE__, msg); return 1; } int ndims = (int) (*self)->dimSizes.size(); std::vector<int> dimIds(ndims); int ier; for (auto i = 0; i < ndims; ++i) { ier = nc_def_dim((*self)->ncid, (*self)->dimNames[i].c_str(), (*self)->dimSizes[i], &dimIds[i]); if (ier != NC_NOERR) { msg = "could not define dimension " + (*self)->dimNames[i] + " = " + std::to_string((*self)->dimSizes[i]); mntlog::error(__FILE__, __func__, __LINE__, msg); return 2; } } // define the variable ier = nc_def_var((*self)->ncid, (*self)->varName.c_str(), NC_DOUBLE, ndims, &dimIds[0], &(*self)->varid); if (ier != NC_NOERR) { msg = "could not define variable " + (*self)->varName; mntlog::error(__FILE__, __func__, __LINE__, msg); return 3; } (*self)->defined = true; ier = nc_enddef((*self)->ncid); return ier; } LIBRARY_API int mnt_ncfieldwrite_inquire(NcFieldWrite_t** self) { int ier; std::string msg; if (!(*self)->append) { msg = "can inquire only in append mode\n"; mntlog::error(__FILE__, __func__, __LINE__, msg); return 1; } // get the variable Id ier = nc_inq_varid((*self)->ncid, (*self)->varName.c_str(), &(*self)->varid); if (ier != NC_NOERR) { msg = "could not find variable " + (*self)->varName; mntlog::error(__FILE__, __func__, __LINE__, msg); return 2; } // enquire about the variable int ndims = 0; int dimIds[NC_MAX_VAR_DIMS]; int natts = 0; ier = nc_inq_var((*self)->ncid, (*self)->varid, NULL, NULL, &ndims, dimIds, &natts); if (ier != NC_NOERR) { msg = "could not inquire about variable " + (*self)->varName; mntlog::error(__FILE__, __func__, __LINE__, msg); return 3; } // get the dimensions and dimension names (*self)->dimNames.resize(0); (*self)->dimSizes.resize(0); char dimName[NC_MAX_NAME + 1]; std::size_t dim; for (int iDim = 0; iDim < ndims; ++iDim) { ier = nc_inq_dim((*self)->ncid, dimIds[iDim], dimName, &dim); if (ier == NC_NOERR) { (*self)->dimNames.push_back(std::string(dimName)); (*self)->dimSizes.push_back(dim); } } // no need to define the variable in append mode (*self)->defined = true; return 0; }
32838b5b3a78a5063bc966a837d2168516232836
d7c86291772d3108c69051b2e6b9de7ec38fe5b9
/msvc/run_tests/run_tests.cpp
7b9b527c60ac3f98c8a10e8db87e476401590412
[ "BSD-3-Clause" ]
permissive
galacticstudios/picoc
b77f734aa93038b9b43150d3516889dfd7510c0c
0e2c492aedfecccc8a631cc796dffeebcd4504d0
refs/heads/master
2020-12-25T05:51:59.706647
2015-08-17T15:09:02
2015-08-17T15:09:02
40,515,133
7
0
null
2015-08-11T01:42:14
2015-08-11T01:42:14
null
UTF-8
C++
false
false
5,117
cpp
run_tests.cpp
// run_tests.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <stdlib.h> #include <sys/stat.h> #include <direct.h> static int TestDirectory(char *dir, char *picoc); static int TestFile(char *fileName, char *picoc); static int ValidateResults(char *expect, char *output); static char *LoadFile(char *fileName); static char *LoadFile(char *fileName); int main(int argc, char *argv[]) { int errorCount; char testDirFullPath[MAX_PATH], picocFullPath[MAX_PATH]; if (argc != 3) { puts("Usage: run_tests <dir> <picoc executable>\r\n\r\n" "Every .c file in <dir> (and its subdirectories) will be run through PicoC,\r\n" "whose executable path is specified in the second argument. The output will\r\n" "be compared with the corresponding .expect file."); exit(-1); } errorCount = TestDirectory(_fullpath(testDirFullPath, argv[1], sizeof(testDirFullPath)), _fullpath(picocFullPath, argv[2], sizeof(picocFullPath))); if (errorCount == 0) puts("All tests passed"); puts("Hit the Enter key to exit..."); getchar(); return errorCount; } int TestDirectory(char *dir, char *picoc) { char pattern[MAX_PATH]; WIN32_FIND_DATA findData; HANDLE h; int errorCount = 0; int dirLen = (int) strlen(dir); // Make sure the dir has a trailing slash, then add "*.*" to it. strcpy(pattern, dir); if (pattern[dirLen - 1] != '\\' && pattern[dirLen - 1] != '/') { strcpy(pattern + dirLen, "\\*.*"); ++dirLen; } else { strcpy(pattern + dirLen, "*.*"); } // Go through all the files in the directory h = FindFirstFile(pattern, &findData); if (h != INVALID_HANDLE_VALUE) { do { // If we find a subdirectory, recurse into it if ((findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0) { if (findData.cFileName[0] != '.') { strcpy(pattern + dirLen, findData.cFileName); errorCount += TestDirectory(pattern, picoc); } } // Else (not a subdirectory) else { // If it's a .c file int fileNameLen = (int) strlen(findData.cFileName); if (_stricmp(findData.cFileName + fileNameLen - 2, ".c") == 0) { // Run it through PicoC and check the results strcpy(pattern + dirLen, findData.cFileName); errorCount += TestFile(pattern, picoc); } } } while (FindNextFile(h, &findData)); FindClose(h); } return errorCount; } int TestFile(char *fileName, char *picoc) { char dir[MAX_PATH]; char commandLine[MAX_PATH * 3 + 50]; char outputFileName[MAX_PATH + 2]; STARTUPINFO startupInfo = {sizeof(startupInfo)}; PROCESS_INFORMATION processInfo = {0}; SECURITY_ATTRIBUTES sa = {sizeof(sa), NULL, TRUE}; int errorCount = 0; printf("Testing %s\r\n", fileName); // Change to the directory the test file is in strcpy(dir, fileName); *strrchr(dir, '\\') = '\0'; _chdir(dir); // Set up the output streams for PicoC strcpy(outputFileName, fileName); strcpy(strrchr(outputFileName, '.'), ".output"); startupInfo.dwFlags = STARTF_USESTDHANDLES; startupInfo.hStdOutput = startupInfo.hStdError = CreateFile(outputFileName, GENERIC_WRITE, FILE_SHARE_WRITE, &sa, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); // Execute the command sprintf(commandLine, "\"%s\" \"%s\"", picoc, fileName); if (strstr(fileName, "args")) strcat(commandLine, " - arg1 arg2 arg3 arg4"); if (CreateProcess(NULL, commandLine, NULL, NULL, TRUE, CREATE_NO_WINDOW, NULL, NULL, &startupInfo, &processInfo)) { DWORD exitCode; WaitForSingleObject(processInfo.hProcess, INFINITE); GetExitCodeProcess(processInfo.hProcess, &exitCode); CloseHandle(processInfo.hProcess); CloseHandle(processInfo.hThread); CloseHandle(startupInfo.hStdOutput); if (exitCode == 0) { char expectedFileName[MAX_PATH]; strcpy(expectedFileName, fileName); strcpy(strrchr(expectedFileName, '.'), ".expect"); errorCount = ValidateResults(expectedFileName, outputFileName); } else { char *output = LoadFile(outputFileName); printf("PicoC exited with code %d\r\n", exitCode); puts(output); free(output); errorCount = 1; } } else { CloseHandle(startupInfo.hStdOutput); printf("Unable to run %s\r\n", picoc); errorCount = 1; } return errorCount; } int ValidateResults(char *expect, char *output) { int errorCount = 0; char *expectedContents = LoadFile(expect); char *outputContents = LoadFile(output); if (strcmp(expectedContents, outputContents) != 0) { puts("Generated:"); puts(outputContents); puts("Expected:"); puts(expectedContents); errorCount = 1; } free(expectedContents); free(outputContents); return errorCount; } char *LoadFile(char *fileName) { FILE *file = fopen(fileName, "rt"); struct stat fileStat; size_t read; char *contents; stat(fileName, &fileStat); contents = (char *) malloc(fileStat.st_size + 1); read = fread(contents, 1, fileStat.st_size, file); contents[read] = '\0'; fclose(file); return contents; }
4557d26afabc2527e57e724f44149050021c1133
868436c93c3c9e29b37e837260d0b29a0b02da08
/yagi/src/scope.cc
1f960de7d4833e35e3258164d342f528bb8dbeae
[ "Apache-2.0" ]
permissive
BadSugar/Yagi
34cba2947b07e535ce4c9bf5a7e75ca9ef221e0d
1b258eb2cd04409e781b8848e6c718ccb877098a
refs/heads/main
2023-09-04T05:22:46.105450
2021-11-04T17:12:41
2021-11-04T17:12:41
430,242,116
1
0
Apache-2.0
2021-11-21T00:46:54
2021-11-21T00:46:54
null
UTF-8
C++
false
false
13,816
cc
scope.cc
#include "scope.hh" #include "symbolinfo.hh" #include "base.hh" #include "exception.hh" #include "typemanager.hh" #define UNIMPLEMENTED throw UnImplementedFunction(__func__) namespace yagi { /**********************************************************************/ YagiScope::YagiScope(uint8_t id, YagiArchitecture* architecture) : Scope(id, "", architecture, this), m_proxy(0, "", architecture, this) {} /**********************************************************************/ ScopeInternal* YagiScope::getProxy() { return &m_proxy; } /**********************************************************************/ Funcdata* YagiScope::findFunction(const Address& addr) const { auto yagiScope = static_cast<YagiScope*>(glb->symboltab->getGlobalScope()); auto proxy = yagiScope->getProxy(); auto archi = static_cast<YagiArchitecture*>(glb); auto result = proxy->findFunction(addr); if (result != nullptr) { return result; } auto data = archi->getSymbolDatabase().find(addr.getOffset()); if (!data.has_value()) { return nullptr; } // found a function auto sym = proxy->addFunction(addr, data.value()->getName()); auto funcData = sym->getFunction(); // Apply injection if available // Perform injection first auto injection = archi->findInjection(funcData->getName()); if (injection.has_value()) { archi->getLogger().info("Perform injection ", injection.value()); yagiScope->setInjectAttribute(*funcData, injection.value()); } // Try to set model type static_cast<TypeManager*>(glb->types)->update(*funcData); return funcData; } /**********************************************************************/ void YagiScope::setInjectAttribute(Funcdata& fd, std::string inject_name) { // inject interface is only available through // XML API... std::stringstream ss; fd.getFuncProto().saveXml(ss); auto document = xml_tree(ss); Element inject(document->getRoot()); inject.setName("inject"); inject.addContent(inject_name.c_str(), 0, inject_name.length()); document->getRoot()->addChild(&inject); fd.getFuncProto().restoreXml(document->getRoot(), glb); } /**********************************************************************/ SymbolEntry* YagiScope::findAddr(const Address& addr, const Address& usepoint) const { return nullptr; } /**********************************************************************/ SymbolEntry* YagiScope::findContainer(const Address& addr, int4 size, const Address& usepoint) const { auto yagiScope = static_cast<YagiScope*>(glb->symboltab->getGlobalScope()); auto proxy = yagiScope->getProxy(); auto archi = static_cast<YagiArchitecture*>(glb); auto result = proxy->findContainer(addr, size, usepoint); if (result != nullptr) { return result; } std::optional<std::unique_ptr<SymbolInfo>> data = nullopt; if (addr.getSpace() == glb->getDefaultCodeSpace()) { data = archi->getSymbolDatabase().find(addr.getOffset()); } if (data.has_value()) { auto scope = glb->symboltab->getGlobalScope(); auto name = data.value()->getName(); Symbol* symbol = nullptr; switch (data.value()->getType()) { case SymbolInfo::Type::Function: archi->getLogger().info("Found function symbol ", name); symbol = proxy->addFunction(addr, name); break; case SymbolInfo::Type::Import: archi->getLogger().info("Found import symbol ", name); symbol = proxy->addExternalRef(addr, addr, name); break; case SymbolInfo::Type::Label: archi->getLogger().info("Found label symbol ", name); symbol = proxy->addCodeLabel(addr, name); break; case SymbolInfo::Type::Other: { auto type = archi->getTypeInfoFactory().build(addr.getOffset()); if (type.has_value()) { archi->getLogger().info("Found type", type.value()->getName(), std::string("for"), name); symbol = proxy->addSymbol(name, static_cast<TypeManager*>(glb->types)->findByTypeInfo(*(type.value()))); } else { archi->getLogger().info("Unknown type for ", name); symbol = proxy->addSymbol(name, static_cast<TypeManager*>(glb->types)->getBase(size, TYPE_UNKNOWN)); } break; } default: return nullptr; } if (data.value()->isReadOnly()) { archi->getLogger().info("Apply readonly type for ", name); proxy->setAttribute(symbol, Varnode::readonly); } archi->getLogger().info("Found symbol ", name, std::string(" at "), to_hex(addr.getOffset())); return proxy->addMapPoint(symbol, addr, usepoint); } return nullptr; } /**********************************************************************/ SymbolEntry* YagiScope::findClosestFit(const Address& addr, int4 size, const Address& usepoint) const { return m_proxy.findClosestFit(addr, size, usepoint); } /**********************************************************************/ ExternRefSymbol* YagiScope::findExternalRef(const Address& addr) const { auto yagiScope = static_cast<YagiScope*>(glb->symboltab->getGlobalScope()); auto proxy = yagiScope->getProxy(); auto archi = static_cast<YagiArchitecture*>(glb); auto result = proxy->findExternalRef(addr); if (result != nullptr) { return result; } auto data = archi->getSymbolDatabase().find(addr.getOffset()); if (!data.has_value() || !data.value()->isImport()) { return nullptr; } archi->getLogger().info("Find external ref ", data.value()->getName()); return proxy->addExternalRef(addr, addr, data.value()->getName()); } /**********************************************************************/ LabSymbol* YagiScope::findCodeLabel(const Address& addr) const { auto yagiScope = static_cast<YagiScope*>(glb->symboltab->getGlobalScope()); auto proxy = yagiScope->getProxy(); auto archi = static_cast<YagiArchitecture*>(glb); auto result = proxy->findCodeLabel(addr); if (result != nullptr) { return result; } auto data = archi->getSymbolDatabase().find(addr.getOffset()); if (!data.has_value() || !data.value()->isLabel()) { return nullptr; } return proxy->addCodeLabel(addr, data.value()->getName()); } /**********************************************************************/ bool YagiScope::isNameUsed(const std::string& name, const Scope* scope) const { return m_proxy.isNameUsed(name, scope); } /**********************************************************************/ Funcdata* YagiScope::resolveExternalRefFunction(ExternRefSymbol* sym) const { auto yagiScope = static_cast<YagiScope*>(glb->symboltab->getGlobalScope()); auto proxy = yagiScope->getProxy(); auto archi = static_cast<YagiArchitecture*>(glb); auto data = static_cast<YagiArchitecture*>(glb)->getSymbolDatabase().find(sym->getRefAddr().getOffset()); if (data.has_value()) { auto funcData = proxy->addFunction(sym->getRefAddr(), data.value()->getName())->getFunction(); // Try to set model type try { static_cast<TypeManager*>(glb->types)->update(*funcData); } catch (Error& e) { archi->getLogger().error(e.what()); } return funcData; } return nullptr; } /**********************************************************************/ /*! * \brief function called most of time when a global variable is found * Symbol generated will be added by the decompiler * and retrive by the findContainer function * This is typically the case for import function in windows world */ string YagiScope::buildVariableName(const Address& addr, const Address& pc, Datatype* ct, int4& index, uint4 flags) const { return "unk_" + to_hex(addr.getOffset()); } /**********************************************************************/ SymbolEntry* YagiScope::addSymbol(const string& name, Datatype* ct, const Address& addr, const Address& usepoint) { return m_proxy.addSymbol(name, ct, addr, usepoint); } /**********************************************************************/ void YagiScope::addSymbolInternal(Symbol* sym) { UNIMPLEMENTED; } /**********************************************************************/ SymbolEntry* YagiScope::addMapInternal(Symbol* sym, uint4 exfl, const Address& addr, int4 off, int4 sz, const RangeList& uselim) { UNIMPLEMENTED; } /**********************************************************************/ Scope* YagiScope::buildSubScope(uint8 id, const string& nm) { return new YagiScope(id, static_cast<YagiArchitecture*>(glb)); } /**********************************************************************/ void YagiScope::removeRange(AddrSpace* spc, uintb first, uintb last) { UNIMPLEMENTED; } /**********************************************************************/ SymbolEntry* YagiScope::addDynamicMapInternal(Symbol* sym, uint4 exfl, uint8 hash, int4 off, int4 sz, const RangeList& uselim) { UNIMPLEMENTED; } /**********************************************************************/ void YagiScope::clear(void) { m_proxy.clear(); } /**********************************************************************/ void YagiScope::adjustCaches(void) { m_proxy.adjustCaches(); } /**********************************************************************/ string YagiScope::buildUndefinedName(void) const { return m_proxy.buildUndefinedName(); } /**********************************************************************/ void YagiScope::setAttribute(Symbol* sym, uint4 attr) { m_proxy.setAttribute(sym, attr); } /**********************************************************************/ void YagiScope::clearAttribute(Symbol* sym, uint4 attr) { m_proxy.clearAttribute(sym, attr); } /**********************************************************************/ void YagiScope::setDisplayFormat(Symbol* sym, uint4 attr) { m_proxy.setDisplayFormat(sym, attr); } /**********************************************************************/ SymbolEntry* YagiScope::findOverlap(const Address& addr, int4 size) const { UNIMPLEMENTED; } /**********************************************************************/ SymbolEntry* YagiScope::findBefore(const Address& addr) const { UNIMPLEMENTED; } /**********************************************************************/ SymbolEntry* YagiScope::findAfter(const Address& addr) const { UNIMPLEMENTED; } /**********************************************************************/ void YagiScope::findByName(const string& name, vector<Symbol*>& res) const { UNIMPLEMENTED; } /**********************************************************************/ MapIterator YagiScope::begin() const { UNIMPLEMENTED; } /**********************************************************************/ MapIterator YagiScope::end() const { UNIMPLEMENTED; } /**********************************************************************/ list<SymbolEntry>::const_iterator YagiScope::beginDynamic() const { UNIMPLEMENTED; } /**********************************************************************/ list<SymbolEntry>::const_iterator YagiScope::endDynamic() const { UNIMPLEMENTED; } /**********************************************************************/ list<SymbolEntry>::iterator YagiScope::beginDynamic() { UNIMPLEMENTED; } /**********************************************************************/ list<SymbolEntry>::iterator YagiScope::endDynamic() { UNIMPLEMENTED; } /**********************************************************************/ void YagiScope::clearCategory(int4 cat) { m_proxy.clearCategory(cat); } /**********************************************************************/ void YagiScope::clearUnlockedCategory(int4 cat) { UNIMPLEMENTED; } /**********************************************************************/ void YagiScope::clearUnlocked() { UNIMPLEMENTED; } /**********************************************************************/ void YagiScope::restrictScope(Funcdata* f) { UNIMPLEMENTED; } /**********************************************************************/ void YagiScope::removeSymbolMappings(Symbol* symbol) { UNIMPLEMENTED; } /**********************************************************************/ void YagiScope::removeSymbol(Symbol* symbol) { m_proxy.removeSymbol(symbol); } /**********************************************************************/ void YagiScope::renameSymbol(Symbol* sym, const string& newname) { m_proxy.renameSymbol(sym, newname); } /**********************************************************************/ void YagiScope::retypeSymbol(Symbol* sym, Datatype* ct) { m_proxy.retypeSymbol(sym, ct); } /**********************************************************************/ string YagiScope::makeNameUnique(const string& nm) const { return m_proxy.makeNameUnique(nm); } /**********************************************************************/ void YagiScope::saveXml(ostream& s) const { UNIMPLEMENTED; } /**********************************************************************/ void YagiScope::restoreXml(const Element* el) { UNIMPLEMENTED; } /**********************************************************************/ void YagiScope::printEntries(ostream& s) const { UNIMPLEMENTED; } /**********************************************************************/ int4 YagiScope::getCategorySize(int4 cat) const { return m_proxy.getCategorySize(cat); } /**********************************************************************/ Symbol* YagiScope::getCategorySymbol(int4 cat, int4 ind) const { return m_proxy.getCategorySymbol(cat, ind); } /**********************************************************************/ void YagiScope::setCategory(Symbol* sym, int4 cat, int4 ind) { m_proxy.setCategory(sym, cat, ind); } } // end of namespace yagi
9d40b31988de74e89f0e6486ded04bd7b779187a
59c47e1f8b2738fc2b824462e31c1c713b0bdcd7
/001-Qt_QML_Concerning/build-TestAnimation_Arrow-Desktop_Qt_5_7_1_GCC_64bit-Debug/qrc_qml.cpp
57b16a755820b84ac0f92250e3a9c087b9e4e0c3
[]
no_license
casterbn/Qt_project
8efcc46e75e2bbe03dc4aeaafeb9e175fb7b04ab
03115674eb3612e9dc65d4fd7bcbca9ba27f691c
refs/heads/master
2021-10-19T07:27:24.550519
2019-02-19T05:26:22
2019-02-19T05:26:22
null
0
0
null
null
null
null
UTF-8
C++
false
false
54,384
cpp
qrc_qml.cpp
/**************************************************************************** ** Resource object code ** ** Created by: The Resource Compiler for Qt version 5.7.1 ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ static const unsigned char qt_resource_data[] = { // /home/libo/Desktop/Repository/Qt_project/001-Qt_QML_Concerning/TestAnimation_Arrow/MainForm.ui.qml 0x0,0x0,0x2,0xe7, 0x69, 0x6d,0x70,0x6f,0x72,0x74,0x20,0x51,0x74,0x51,0x75,0x69,0x63,0x6b,0x20,0x32,0x2e, 0x35,0xa,0xa,0x49,0x74,0x65,0x6d,0x20,0x7b,0xa,0x20,0x20,0x20,0x20,0x70,0x72, 0x6f,0x70,0x65,0x72,0x74,0x79,0x20,0x73,0x74,0x72,0x69,0x6e,0x67,0x20,0x69,0x6d, 0x61,0x67,0x65,0x73,0x6f,0x75,0x72,0x63,0x65,0x3a,0x20,0x27,0x69,0x6d,0x61,0x67, 0x65,0x73,0x2f,0x6b,0x6f,0x6e,0x65,0x5f,0x61,0x72,0x72,0x6f,0x77,0x5f,0x64,0x6f, 0x77,0x6e,0x2e,0x70,0x6e,0x67,0x27,0xa,0x20,0x20,0x20,0x20,0x69,0x64,0x3a,0x20, 0x73,0x68,0x6f,0x77,0x61,0x72,0x65,0x61,0xa,0x20,0x20,0x20,0x20,0x77,0x69,0x64, 0x74,0x68,0x3a,0x20,0x31,0x35,0x36,0x3b,0xa,0x20,0x20,0x20,0x20,0x68,0x65,0x69, 0x67,0x68,0x74,0x3a,0x20,0x31,0x39,0x31,0xa,0x20,0x20,0x20,0x20,0x63,0x6c,0x69, 0x70,0x3a,0x20,0x74,0x72,0x75,0x65,0xa,0xa,0x49,0x74,0x65,0x6d,0x20,0x7b,0xa, 0x20,0x20,0x20,0x20,0x69,0x64,0x3a,0x20,0x69,0x64,0x5f,0x73,0x63,0x72,0x6f,0x6c, 0x6c,0x41,0x72,0x72,0x6f,0x77,0xa,0x20,0x20,0x20,0x20,0x49,0x6d,0x61,0x67,0x65, 0x20,0x7b,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x64,0x3a,0x20,0x69, 0x6d,0x61,0x67,0x65,0x66,0x69,0x72,0x73,0x74,0x70,0x6f,0x73,0xa,0x20,0x20,0x20, 0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x74,0x68,0x3a,0x20,0x73,0x68,0x6f,0x77, 0x61,0x72,0x65,0x61,0x2e,0x77,0x69,0x64,0x74,0x68,0x3b,0x20,0x68,0x65,0x69,0x67, 0x68,0x74,0x3a,0x20,0x73,0x68,0x6f,0x77,0x61,0x72,0x65,0x61,0x2e,0x68,0x65,0x69, 0x67,0x68,0x74,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x73,0x6f,0x75,0x72, 0x63,0x65,0x3a,0x20,0x69,0x6d,0x61,0x67,0x65,0x73,0x6f,0x75,0x72,0x63,0x65,0xa, 0x20,0x20,0x20,0x20,0x7d,0xa,0x20,0x20,0x20,0x20,0x49,0x6d,0x61,0x67,0x65,0x20, 0x7b,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x64,0x3a,0x20,0x69,0x6d, 0x61,0x67,0x65,0x73,0x65,0x63,0x6f,0x6e,0x64,0x70,0x6f,0x73,0xa,0x20,0x20,0x20, 0x20,0x20,0x20,0x20,0x20,0x73,0x6f,0x75,0x72,0x63,0x65,0x3a,0x20,0x69,0x6d,0x61, 0x67,0x65,0x73,0x6f,0x75,0x72,0x63,0x65,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20, 0x20,0x79,0x3a,0x20,0x73,0x68,0x6f,0x77,0x61,0x72,0x65,0x61,0x2e,0x68,0x65,0x69, 0x67,0x68,0x74,0xa,0x20,0x20,0x20,0x20,0x7d,0xa,0x7d,0xa,0xa,0x20,0x20,0x20, 0x20,0x4e,0x75,0x6d,0x62,0x65,0x72,0x41,0x6e,0x69,0x6d,0x61,0x74,0x69,0x6f,0x6e, 0x20,0x7b,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x64,0x3a,0x20,0x61, 0x6e,0x69,0x6d,0x61,0x55,0x70,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x74, 0x61,0x72,0x67,0x65,0x74,0x3a,0x20,0x69,0x64,0x5f,0x73,0x63,0x72,0x6f,0x6c,0x6c, 0x41,0x72,0x72,0x6f,0x77,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x70,0x72, 0x6f,0x70,0x65,0x72,0x74,0x79,0x3a,0x20,0x22,0x79,0x22,0xa,0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20,0x64,0x75,0x72,0x61,0x74,0x69,0x6f,0x6e,0x3a,0x20,0x31,0x30, 0x30,0x30,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x65,0x61,0x73,0x69,0x6e, 0x67,0x2e,0x74,0x79,0x70,0x65,0x3a,0x20,0x45,0x61,0x73,0x69,0x6e,0x67,0x2e,0x49, 0x6e,0x4f,0x75,0x74,0x51,0x75,0x61,0x64,0xa,0x20,0x20,0x20,0x20,0x7d,0xa,0xa, 0x20,0x20,0x20,0x20,0x4e,0x75,0x6d,0x62,0x65,0x72,0x41,0x6e,0x69,0x6d,0x61,0x74, 0x69,0x6f,0x6e,0x20,0x7b,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x64, 0x3a,0x20,0x61,0x6e,0x69,0x6d,0x61,0x44,0x77,0xa,0x20,0x20,0x20,0x20,0x20,0x20, 0x20,0x20,0x74,0x61,0x72,0x67,0x65,0x74,0x3a,0x20,0x69,0x64,0x5f,0x73,0x63,0x72, 0x6f,0x6c,0x6c,0x41,0x72,0x72,0x6f,0x77,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20, 0x20,0x70,0x72,0x6f,0x70,0x65,0x72,0x74,0x79,0x3a,0x20,0x22,0x79,0x22,0xa,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x64,0x75,0x72,0x61,0x74,0x69,0x6f,0x6e,0x3a, 0x20,0x31,0x30,0x30,0x30,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x65,0x61, 0x73,0x69,0x6e,0x67,0x2e,0x74,0x79,0x70,0x65,0x3a,0x20,0x45,0x61,0x73,0x69,0x6e, 0x67,0x2e,0x49,0x6e,0x4f,0x75,0x74,0x51,0x75,0x61,0x64,0xa,0x20,0x20,0x20,0x20, 0x7d,0xa,0xa,0x7d,0xa,0xa, // /home/libo/Desktop/Repository/Qt_project/001-Qt_QML_Concerning/TestAnimation_Arrow/PictureAnimation.qml 0x0,0x0,0x2,0x51, 0x0, 0x0,0x7,0xf1,0x78,0x9c,0xbd,0x55,0xdf,0x6b,0xdb,0x30,0x10,0x7e,0xcf,0x5f,0x71, 0x4,0x46,0x13,0x4a,0x1c,0xa7,0x90,0xc1,0x6c,0x32,0x28,0xed,0x1e,0xf2,0x32,0xe8, 0xc8,0x9e,0x83,0x6a,0xcb,0x8e,0xa8,0xac,0x13,0xb2,0x3c,0x13,0x46,0xff,0xf7,0xc9, 0x72,0x2c,0xcb,0x49,0x1d,0x3a,0xe8,0xe6,0x27,0xeb,0x7e,0x7f,0x77,0xf7,0x49,0xac, 0x90,0xa8,0x34,0x3c,0xe9,0xa7,0x8a,0x25,0x2f,0x70,0x17,0xac,0x27,0x93,0xad,0xa6, 0x5,0xfc,0x9e,0x80,0xf9,0xa4,0x42,0x49,0x95,0x3e,0x42,0xa9,0x15,0x13,0x39,0xb0, 0x82,0xe4,0xb4,0xc4,0x4a,0x25,0x34,0x82,0x9b,0xf6,0xb4,0x7c,0x41,0x41,0xf7,0x44, 0x29,0xac,0xf7,0x29,0xd6,0x22,0x90,0x22,0xbf,0x19,0x7a,0x3f,0x23,0x72,0x40,0xc5, 0xa8,0xd0,0xf4,0x47,0x25,0x22,0xd0,0xaa,0xa2,0x43,0x13,0x26,0x34,0xb0,0x8,0x42, 0x2b,0x65,0x69,0x4,0xe5,0x1,0x6b,0xa2,0x28,0x99,0x2c,0x97,0x8d,0xa8,0x66,0xa9, 0x3e,0x44,0xb0,0x5a,0x7f,0x8e,0xe1,0x40,0x59,0x7e,0xd0,0xe6,0xf0,0x65,0x65,0xcd, 0x13,0xce,0xe4,0x29,0xa6,0x3d,0x7b,0x0,0xba,0x68,0x2c,0xdd,0x97,0x89,0x42,0xce, 0xef,0x9b,0x3a,0x9d,0xea,0x14,0xb5,0xcb,0x15,0xd8,0xb3,0xd3,0x76,0x79,0x9c,0xba, 0x15,0x38,0xfd,0xb6,0xc1,0xef,0x25,0x72,0xc9,0x1a,0x79,0xc6,0x54,0xa9,0x25,0x96, 0x3,0xed,0xf5,0x7c,0x57,0x72,0xc2,0x2,0xd6,0x3,0xbb,0x6e,0x8,0xde,0x44,0x6, 0xfa,0x63,0x4,0x8b,0xde,0xe3,0xf5,0x6a,0xcd,0xff,0xb5,0xaa,0xb1,0x66,0xb6,0x25, 0xbe,0xb6,0x13,0xcc,0x2a,0x91,0x68,0x86,0x2,0x88,0x30,0xa1,0x9a,0xbf,0x7,0xad, 0xf8,0x6c,0xee,0xd,0x35,0x9b,0xf5,0xb,0x35,0x77,0xe2,0x21,0x30,0xeb,0xfd,0x53, 0x6,0xa5,0x46,0x39,0x9b,0xc7,0x97,0xba,0xc7,0xda,0xe8,0x88,0xd2,0xbe,0xb2,0xef, 0x15,0xe5,0x25,0xbd,0x16,0xd9,0x7a,0x8f,0x44,0xb6,0x59,0x47,0x23,0x27,0x28,0x4a, 0xe4,0x34,0xe0,0x98,0xcf,0xa6,0x39,0x6,0xe6,0x9b,0x9e,0xc,0x5b,0xa3,0xef,0x55, 0xf1,0x4c,0xd5,0x7d,0x87,0xfe,0x6c,0x9b,0x4f,0x19,0x9c,0xcc,0x24,0xca,0xa9,0x1e, 0xdd,0xf2,0x8e,0x64,0x11,0x4c,0x8f,0x53,0x27,0xcd,0x14,0x16,0x51,0x18,0x83,0xc6, 0x68,0x71,0x39,0x57,0x73,0x13,0xf4,0x85,0x13,0x5e,0x93,0x63,0x69,0x1a,0xbd,0xc3, 0x6f,0x22,0xf5,0xe8,0xdb,0x7c,0x69,0xa5,0x6c,0x8d,0x86,0x8f,0x61,0x18,0x3a,0x31, 0x47,0x94,0x65,0x4,0xe,0x42,0xb0,0x15,0x19,0x13,0x4c,0x53,0x7f,0xce,0xef,0x80, 0xf9,0x58,0x7f,0x0,0x4c,0x18,0x41,0xd8,0x80,0x87,0x30,0xfe,0x10,0x2c,0x3b,0x56, 0x50,0xe5,0x23,0x30,0xbb,0xa9,0x7e,0x11,0xde,0xc6,0x32,0x8d,0x56,0x95,0x10,0xe6, 0x12,0x6d,0xdb,0x67,0x8e,0x54,0x52,0xa2,0xcf,0x9a,0x89,0x62,0xa7,0x58,0x9e,0x53, 0x45,0xd,0xfe,0xe1,0xca,0x25,0x7,0x22,0x72,0x2a,0x59,0x72,0xb9,0x52,0xe7,0xac, 0xf1,0x4c,0xad,0xc2,0xa7,0xd,0xcc,0x42,0xd8,0x6c,0x80,0x7d,0xba,0x83,0x31,0xda, 0xf4,0xc4,0x82,0xd,0x64,0xc4,0xb0,0x60,0xb8,0xe0,0x1e,0xbb,0x8d,0xc1,0x1b,0xcf, 0x40,0x25,0xed,0x23,0xf0,0x86,0x57,0x77,0x2b,0x6,0xce,0x7d,0xec,0xaa,0x38,0x63, 0xfe,0x18,0x3f,0x2d,0xa2,0xd5,0x9,0xd1,0xbb,0x0,0xd9,0xee,0xff,0x1d,0x1e,0xf7, 0xac,0xfd,0x6b,0x44,0xec,0xf6,0x36,0x1e,0xcc,0x8a,0xc1,0xd7,0xd,0x78,0xb8,0xac, 0xdc,0xe4,0x8,0x63,0x7f,0xf0,0xf,0x68,0x9e,0x71,0x61,0x20,0x6,0x26,0xb8,0xf9, 0xe7,0x54,0xd3,0x8e,0x3f,0x7d,0xc2,0xc9,0xc4,0x98,0xff,0x1,0xfa,0x77,0x26,0xb7, // /home/libo/Desktop/Repository/Qt_project/001-Qt_QML_Concerning/TestAnimation_Arrow/main.qml 0x0,0x0,0x0,0xbf, 0x69, 0x6d,0x70,0x6f,0x72,0x74,0x20,0x51,0x74,0x51,0x75,0x69,0x63,0x6b,0x20,0x32,0x2e, 0x35,0xa,0x69,0x6d,0x70,0x6f,0x72,0x74,0x20,0x51,0x74,0x51,0x75,0x69,0x63,0x6b, 0x2e,0x57,0x69,0x6e,0x64,0x6f,0x77,0x20,0x32,0x2e,0x32,0xa,0xa,0x57,0x69,0x6e, 0x64,0x6f,0x77,0x20,0x7b,0xa,0x20,0x20,0x20,0x20,0x76,0x69,0x73,0x69,0x62,0x6c, 0x65,0x3a,0x20,0x74,0x72,0x75,0x65,0xa,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x74, 0x68,0x3a,0x20,0x33,0x30,0x30,0xa,0x20,0x20,0x20,0x20,0x68,0x65,0x69,0x67,0x68, 0x74,0x3a,0x20,0x36,0x30,0x30,0xa,0x20,0x20,0x20,0x20,0x63,0x6f,0x6c,0x6f,0x72, 0x3a,0x20,0x22,0x62,0x6c,0x61,0x63,0x6b,0x22,0xa,0x20,0x20,0x20,0x20,0x50,0x69, 0x63,0x74,0x75,0x72,0x65,0x41,0x6e,0x69,0x6d,0x61,0x74,0x69,0x6f,0x6e,0x20,0x7b, 0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x74,0x68,0x3a,0x20, 0x31,0x35,0x36,0x3b,0x20,0x68,0x65,0x69,0x67,0x68,0x74,0x3a,0x20,0x31,0x39,0x31, 0x20,0x2b,0x20,0x35,0xa,0x20,0x20,0x20,0x20,0x7d,0xa,0x7d,0xa,0xa, // /home/libo/Desktop/Repository/Qt_project/001-Qt_QML_Concerning/TestAnimation_Arrow/images/kone_arrow_up.png 0x0,0x0,0x11,0xc, 0x89, 0x50,0x4e,0x47,0xd,0xa,0x1a,0xa,0x0,0x0,0x0,0xd,0x49,0x48,0x44,0x52,0x0, 0x0,0x0,0x99,0x0,0x0,0x0,0xaa,0x8,0x6,0x0,0x0,0x0,0xbe,0xb2,0xed,0xb9, 0x0,0x0,0x0,0x9,0x70,0x48,0x59,0x73,0x0,0x0,0xe,0xc4,0x0,0x0,0xe,0xc4, 0x1,0x95,0x2b,0xe,0x1b,0x0,0x0,0x0,0x19,0x74,0x45,0x58,0x74,0x53,0x6f,0x66, 0x74,0x77,0x61,0x72,0x65,0x0,0x41,0x64,0x6f,0x62,0x65,0x20,0x49,0x6d,0x61,0x67, 0x65,0x52,0x65,0x61,0x64,0x79,0x71,0xc9,0x65,0x3c,0x0,0x0,0x1,0xd7,0x69,0x54, 0x58,0x74,0x58,0x4d,0x4c,0x3a,0x63,0x6f,0x6d,0x2e,0x61,0x64,0x6f,0x62,0x65,0x2e, 0x78,0x6d,0x70,0x0,0x1,0x0,0x55,0x54,0x46,0x2d,0x38,0x0,0x58,0x4d,0x4c,0x3a, 0x63,0x6f,0x6d,0x2e,0x61,0x64,0x6f,0x62,0x65,0x2e,0x78,0x6d,0x70,0x0,0x28,0x91, 0x7d,0x92,0xdf,0x6e,0xdb,0x20,0x14,0xc6,0x5f,0x5,0xd1,0x9b,0x4d,0x5a,0xcc,0x1f, 0xc7,0x71,0x8d,0xea,0x55,0x89,0xdd,0x68,0xbd,0xf0,0x54,0xa5,0x91,0xb6,0x5b,0x7, 0xd3,0x6,0xa5,0x6,0x4,0x64,0x71,0xf3,0x6a,0xbd,0xd8,0x23,0xed,0x15,0x86,0xdd, 0x3a,0x9b,0xa6,0xa5,0x5c,0x71,0xe,0xdf,0xef,0x70,0xe,0x7c,0x57,0xd7,0x9d,0xa9, 0xf9,0x4e,0x78,0xb0,0x11,0x8f,0x52,0xe5,0xf0,0xd7,0xcb,0x4f,0x8,0x64,0x93,0xc3, 0x6f,0x49,0x85,0x2b,0x53,0x88,0xad,0xfc,0x72,0xb4,0xe2,0xfe,0xf8,0x75,0xcd,0x8f, 0x3b,0x9e,0x35,0xf0,0xfa,0x33,0xb8,0xea,0x58,0xd7,0x9a,0x56,0xf8,0x1a,0x74,0xed, 0x93,0x72,0xac,0xcb,0x61,0xdd,0xe8,0x8d,0x60,0x61,0xdf,0xa7,0x11,0x4,0x83,0xc4, 0xef,0x72,0x38,0xef,0xf,0xc0,0xf7,0xea,0xe,0x14,0xda,0xa,0x90,0x44,0xc9,0x84, 0x63,0x4a,0x40,0x9a,0x45,0x24,0x49,0xd2,0x94,0x7e,0x2,0x14,0x93,0x29,0xc2,0x4, 0x91,0x78,0x42,0x32,0x36,0x9d,0x32,0x8c,0xc1,0xdb,0x82,0xe1,0x36,0xdb,0x3c,0xb0, 0x55,0xb9,0x7c,0xbb,0x2b,0x44,0x39,0xdc,0x7a,0x6f,0x18,0x42,0x87,0xc3,0x21,0x3a, 0xc4,0x91,0xb6,0x8f,0x88,0x64,0x59,0x86,0x30,0x45,0x94,0x4e,0x82,0x62,0xe2,0x9e, 0x95,0xaf,0xbb,0x89,0x72,0x17,0x63,0x85,0x52,0x38,0x6e,0xa5,0xf1,0x52,0x2b,0xd0, 0xc7,0xf5,0x46,0xef,0x7d,0xe,0xe1,0x38,0x42,0x6b,0x4e,0x65,0x95,0x8b,0x86,0x71, 0x22,0xae,0x5b,0xd4,0xd5,0x6,0x91,0x8,0xa3,0xbf,0x84,0x55,0xf5,0xbe,0xb4,0x6d, 0x4f,0x6a,0xe7,0x57,0xe2,0xe1,0x7d,0xb5,0x5b,0x3f,0x1b,0x81,0x56,0xc2,0xe9,0xbd, 0xe5,0x22,0xc8,0x2f,0x7a,0xd8,0xb0,0xc2,0x8a,0xda,0x6b,0xbb,0xd6,0xfa,0x69,0x7c, 0xc5,0xbb,0xad,0xf6,0xda,0x6d,0xb5,0x1,0x45,0x31,0xbc,0x1a,0xf8,0x50,0xd5,0x5c, 0xaa,0x3e,0xf9,0x71,0xa0,0xaa,0x8a,0xdd,0x2a,0xe7,0x6b,0xc5,0xc5,0x6d,0x99,0xc3, 0x90,0x89,0xa4,0x6c,0x58,0x99,0x95,0x65,0x1a,0x2f,0xd2,0xf9,0xac,0x58,0x10,0x72, 0x33,0x5b,0x14,0x14,0x17,0x34,0xa6,0x45,0x92,0xd0,0x78,0x89,0xe7,0x23,0x5b,0x6a, 0xbe,0x6f,0x85,0xf2,0x23,0xdb,0xfc,0x61,0x2f,0xcf,0xb2,0xbd,0x21,0x5e,0x69,0x61, 0xe5,0xf,0xd1,0x2c,0xad,0x6e,0xc1,0x30,0x38,0x93,0xff,0xeb,0x65,0x9a,0xdc,0x2c, 0xd2,0x8c,0x9e,0xef,0xe5,0x95,0x6d,0xce,0xf7,0x32,0x3b,0xcb,0xa2,0xd0,0xc,0xfa, 0xe7,0xbb,0xc7,0x54,0xf0,0x50,0xbf,0x3d,0x99,0x37,0x4,0x27,0xfb,0xb,0x15,0x3c, 0x6f,0x83,0xb9,0x7f,0x3,0x18,0x44,0xf3,0xe3,0x30,0x70,0x34,0xcd,0x0,0x0,0xe, 0xb6,0x49,0x44,0x41,0x54,0x78,0x9c,0xed,0x9d,0x79,0xb4,0x55,0x55,0x1d,0xc7,0x3f, 0xf7,0x3e,0x78,0x82,0x8,0x21,0x81,0x8a,0x68,0x48,0x92,0x8a,0x86,0x38,0x9b,0xd3, 0x72,0x8c,0xac,0xd4,0x52,0x31,0xb3,0x42,0x45,0xcd,0x21,0x33,0x67,0x4d,0x6b,0xad, 0x5a,0x65,0x65,0x83,0xa9,0xa0,0x81,0x9a,0x52,0x69,0x9a,0x86,0x2e,0x94,0x2c,0x41, 0x13,0x13,0x27,0x9c,0x85,0x50,0x42,0x53,0x44,0x54,0x6,0x95,0x41,0x94,0xe9,0xd, 0xfd,0xf1,0xbd,0xb7,0xf3,0xde,0xe3,0xd,0x77,0xd8,0xbf,0x7b,0xcf,0x39,0xf7,0xf7, 0x59,0xeb,0x2d,0xf1,0x71,0xd8,0x7b,0xbf,0xf3,0xbe,0x77,0xf,0xbf,0x69,0x67,0x9a, 0x9b,0x9b,0x71,0x36,0xa0,0xf,0xb0,0x1d,0xb0,0x7,0xb0,0xb,0xb0,0x3,0x30,0x8, 0xd8,0x18,0x68,0x6,0x3e,0x4,0xe6,0x3,0xcf,0x0,0x8f,0x2,0x33,0x73,0xdf,0x73, 0xda,0x21,0xe3,0x22,0x6b,0x45,0x16,0xd8,0xb,0x38,0x6,0xd8,0x17,0x18,0x2,0x7c, 0x2,0xe8,0xd5,0xce,0xb3,0x4d,0xc0,0x72,0xe0,0x5d,0x60,0xa,0x70,0x33,0xf0,0x5a, 0x65,0x86,0x99,0x2c,0x5c,0x64,0x11,0x5b,0x3,0x27,0x20,0x81,0xd,0x43,0xb3,0x59, 0xa1,0xac,0x0,0xa6,0x1,0xbf,0x5,0x9e,0xa,0x3f,0xb4,0x64,0xe3,0x22,0x13,0x23, 0x80,0xb3,0x81,0xaf,0x2,0x3,0xca,0x68,0xe7,0x3e,0xe0,0xc7,0xc0,0xb,0x1,0xc6, 0x94,0x1a,0xba,0x55,0x7b,0x0,0x31,0x60,0x67,0xe0,0x72,0x34,0x83,0x95,0xfb,0x3e, 0xbe,0x8c,0xf6,0x6a,0xef,0x0,0x8b,0xcb,0x6c,0x2b,0x35,0x64,0xab,0x3d,0x80,0x2a, 0x33,0xc,0xb8,0xc,0x38,0x96,0x30,0x1f,0xb8,0x3a,0xe0,0x48,0x60,0x64,0x80,0xb6, 0x52,0x43,0x2d,0x8b,0xec,0x33,0xc0,0x45,0xc0,0x28,0x24,0x8e,0x50,0xc,0x1,0xe, 0x42,0x7,0x6,0x87,0xda,0x15,0xd9,0x60,0xe0,0x5c,0xe0,0x64,0x6c,0xb6,0xc,0xdb, 0xe5,0xbe,0x1c,0x6a,0x53,0x64,0x83,0x80,0xef,0x2,0xa7,0x61,0xf7,0xf3,0x6f,0x6, 0x6c,0x6b,0xd4,0x76,0xe2,0xa8,0x35,0x91,0xd,0x0,0xce,0x4,0x4e,0x7,0x36,0x32, 0xec,0x67,0x63,0xe0,0x93,0x86,0xed,0x27,0x8a,0x5a,0x12,0x59,0x3f,0xe0,0x8c,0xdc, 0x57,0x31,0x36,0xb0,0x52,0xe8,0x6,0xd4,0x1b,0xf7,0x91,0x18,0x6a,0x45,0x64,0x3d, 0x81,0x31,0xc0,0x77,0x28,0xcf,0xe,0xe6,0x94,0x40,0x2d,0x88,0xac,0x1e,0xf8,0x26, 0x70,0xe,0x30,0xb0,0xca,0x63,0xa9,0x49,0xd2,0x6e,0x8c,0xdd,0x4,0x19,0x59,0x2f, 0x41,0x27,0xca,0x38,0x51,0x8f,0x96,0xed,0x75,0xc0,0xca,0x2a,0x8f,0xc5,0x94,0x34, 0xcf,0x64,0xbd,0xd0,0xc,0xf6,0x43,0x64,0x13,0x8b,0x1b,0x7d,0x80,0x23,0x80,0x53, 0xd1,0x69,0x34,0xb5,0xa4,0x75,0x26,0xeb,0x8e,0x66,0xb0,0x4b,0x91,0x71,0x34,0x8e, 0x74,0x47,0x11,0x1f,0xc7,0xa1,0x88,0x8e,0x1b,0x81,0xd5,0x55,0x1d,0x91,0x11,0x69, 0x9c,0xc9,0x32,0xc0,0x97,0x80,0x8b,0x89,0xaf,0xc0,0x0,0x1a,0x91,0xa8,0xfa,0xa3, 0xb1,0x1e,0x45,0x58,0xcf,0x43,0x6c,0x48,0xa3,0xc8,0xe,0x46,0xbf,0xb4,0xe1,0xd5, 0x1e,0x48,0x17,0x64,0x72,0xff,0x6d,0x44,0x6,0xe2,0x1f,0x20,0x7,0x7b,0xea,0x48, 0x9b,0xc8,0xf6,0x4,0xce,0x7,0xf6,0xa9,0xf6,0x40,0xa,0x20,0x83,0xb6,0x2b,0x4d, 0xb9,0xff,0x1f,0x8e,0x9c,0xf5,0x87,0x55,0x6d,0x44,0x46,0xa4,0x49,0x64,0x3b,0x22, 0x81,0x8d,0x24,0x19,0x3f,0x57,0x86,0xd,0xc7,0xf9,0x39,0x74,0x12,0x4e,0xc2,0x87, 0xa4,0x60,0x92,0xf0,0xcb,0x28,0x84,0xad,0x80,0xef,0xa1,0x7d,0x4d,0x52,0x2c,0xed, 0x59,0x34,0x93,0x65,0xda,0x7c,0xff,0x10,0xb4,0xdc,0xef,0x54,0xf1,0x11,0x19,0x91, 0x6,0x91,0xf5,0x43,0x96,0xfc,0xe3,0x69,0x3f,0x16,0xbf,0x1a,0x64,0xe9,0x7a,0x13, 0xdf,0xde,0x4c,0x46,0xee,0xdf,0x1d,0x8e,0xc2,0x90,0xe2,0x66,0xdb,0x2b,0x89,0xa4, 0x8b,0xac,0x17,0xa,0xd7,0x39,0x15,0xe8,0x5b,0xdd,0xa1,0xb4,0xa2,0xe,0x99,0x28, 0x3a,0x23,0x43,0xc7,0x42,0xec,0x89,0x4c,0x30,0x17,0x92,0x2,0x1b,0x5a,0x92,0x45, 0x56,0x8f,0x22,0x5a,0xcf,0x27,0x99,0xbf,0x88,0x2c,0x12,0x62,0xdb,0xe5,0x32,0x4f, 0x1f,0x60,0x34,0xca,0x3d,0x48,0x74,0x44,0x47,0x52,0x45,0x96,0x41,0x4b,0xca,0xe5, 0x68,0x3f,0x96,0x44,0x3a,0x5a,0x2e,0x5b,0xd2,0x17,0xf9,0x5c,0xc7,0x90,0xe0,0x48, 0xdb,0xa4,0x8a,0xec,0x50,0x64,0x57,0xda,0xbe,0xda,0x3,0x29,0x83,0xae,0x66,0xb2, 0x3c,0x9b,0xa2,0xd9,0xfa,0x6b,0x28,0x4e,0x2d,0x71,0x24,0x51,0x64,0xfb,0xa2,0xd3, 0xd7,0x5e,0xd5,0x1e,0x48,0x0,0xa,0x7d,0xff,0x5b,0x22,0xd3,0xc6,0x57,0xe8,0x7a, 0xaf,0x17,0x3b,0x92,0x26,0xb2,0x9d,0x50,0x6c,0xfe,0x21,0xd5,0x1e,0x48,0x0,0x3a, 0x32,0x61,0x74,0xc4,0x50,0x24,0xb4,0xc3,0xcd,0x46,0x64,0x44,0x92,0x44,0x36,0x18, 0xed,0x4f,0x8e,0x20,0x1d,0x8e,0xfd,0x42,0xcc,0x1c,0x6d,0xd9,0x5,0xcd,0xe2,0x7, 0x86,0x1f,0x8e,0x1d,0x49,0x11,0x59,0x7f,0x74,0xca,0x3a,0x9e,0x84,0xee,0x4b,0xda, 0xa1,0x33,0x13,0x46,0x67,0x1c,0x80,0x66,0xb4,0x5d,0xc3,0xe,0xc7,0x8e,0x24,0x88, 0xac,0x37,0xca,0x2c,0x3a,0x11,0x3b,0x5b,0xd8,0x7a,0x60,0x2d,0x91,0x1f,0xb1,0x12, 0xe4,0x7d,0x97,0xa5,0xf0,0x79,0x14,0xc6,0x94,0x88,0xb4,0xbb,0xb8,0x8b,0xac,0x27, 0xf0,0x75,0xb4,0x4c,0x6e,0x6e,0xd4,0xc7,0x3a,0x54,0x2c,0xe5,0x25,0x24,0xb6,0x4a, 0x91,0x37,0x61,0x14,0xba,0x27,0x6b,0x49,0x77,0xe4,0x42,0xbb,0x8c,0x4,0x98,0x70, 0xe2,0x2c,0xb2,0xee,0x68,0xff,0x75,0x9,0x3a,0x5d,0x59,0xf1,0x4,0x70,0x5,0xf0, 0x2c,0x95,0xdd,0xeb,0x95,0xba,0x5c,0xe6,0xe9,0x89,0x8c,0xd1,0x17,0x12,0xf3,0xe4, 0x98,0x38,0x8b,0xec,0x40,0x64,0x6c,0x1d,0x6a,0xd8,0xc7,0x6c,0xe0,0xa7,0xa8,0x88, 0x1d,0x84,0xb,0x1a,0x2c,0xc4,0xd0,0x5a,0x88,0xeb,0xa9,0x2b,0x7a,0x23,0xb7,0x5a, 0xac,0xbd,0x2,0x71,0x15,0xd9,0xde,0x68,0xcf,0xb1,0x8b,0x61,0x1f,0xaf,0x1,0xbf, 0x4,0x1e,0x41,0xd5,0x13,0x43,0x26,0xfb,0xe6,0xcd,0x13,0x85,0x3c,0x57,0x2e,0x7d, 0x51,0x80,0xc0,0x68,0x62,0xea,0x15,0x88,0xa3,0xc8,0x86,0xa3,0x25,0xd2,0xd2,0x16, 0xf6,0x16,0x30,0x16,0xb8,0x1b,0x9b,0xcd,0x7e,0x21,0x33,0x59,0xa1,0x42,0x2c,0x84, 0x1,0xc0,0x79,0xa8,0x78,0x4c,0xec,0x4e,0xdf,0x71,0x13,0xd9,0xa7,0x91,0xb1,0xf5, 0x8,0xec,0xc6,0xb6,0x14,0xf8,0x3d,0x70,0x1b,0xb0,0xc6,0xa8,0x8f,0x42,0x28,0xe7, 0x74,0xd9,0x1e,0x83,0x91,0xfb,0xe9,0xc8,0xc0,0xed,0x96,0x4d,0x9c,0x44,0x36,0x10, 0xed,0x2d,0x46,0x61,0x17,0x78,0xb8,0x2,0xb8,0x15,0xd5,0x77,0x5d,0x66,0xd4,0x47, 0xa1,0x64,0x9,0xff,0xfe,0x77,0x42,0x7,0x81,0x58,0x85,0x70,0xc7,0x45,0x64,0x7d, 0x50,0x8d,0x8a,0x6f,0x61,0xb7,0xaf,0x58,0x3,0xdc,0x5,0x4c,0x0,0xde,0x36,0xea, 0xa3,0x18,0x42,0x2e,0x97,0x2d,0xd9,0x13,0x6d,0x37,0xf6,0x33,0x68,0xbb,0x24,0xe2, 0x20,0xb2,0x1e,0xc0,0x49,0xd8,0x26,0xb9,0x36,0x2,0xf7,0x2,0xd7,0x2,0xaf,0x1a, 0xf5,0x51,0x2c,0xf9,0x28,0xc,0xb,0xe,0x46,0x51,0x2a,0x3b,0x1b,0xb5,0x5f,0x14, 0xd5,0x16,0x59,0x77,0x54,0xc,0xf8,0x5c,0x6c,0x8d,0x8a,0xff,0x4,0x7e,0x3,0xcc, 0xe9,0xe4,0x99,0x4a,0x5a,0xfb,0x41,0xb3,0x58,0xf,0xc3,0xf6,0x47,0x2,0x3f,0x22, 0x6,0xd9,0xf3,0xd5,0x14,0x59,0x16,0x9d,0x20,0x2f,0xc3,0xb6,0x60,0xdc,0x93,0xc0, 0xcf,0x80,0xe7,0xba,0x78,0xae,0xd2,0x65,0xc0,0xad,0x6b,0x60,0xd4,0xa1,0x3c,0xce, 0x4b,0x51,0x5e,0x67,0xd5,0xa8,0xa6,0xc8,0xf6,0x42,0x75,0x2a,0x2c,0xa7,0xf4,0x39, 0xc8,0x9a,0xff,0x18,0x95,0x17,0x51,0x57,0xcc,0x43,0x7,0x90,0xa5,0x86,0x7d,0x6c, 0x84,0x82,0xa,0xce,0xc3,0xce,0x2d,0xd7,0x25,0xd5,0x12,0xd9,0x67,0xd1,0x27,0x6c, 0x7f,0xc3,0x3e,0xe6,0xa3,0x25,0x72,0x2a,0x95,0x5f,0xa,0xb,0x61,0x25,0x32,0xa3, 0x5c,0x87,0x4e,0xbd,0x56,0x6c,0x2,0x9c,0x82,0xf6,0xbc,0xfd,0xc,0xfb,0xe9,0x90, 0x6a,0x88,0x6c,0x28,0x70,0x1,0xb2,0xe7,0x58,0xb1,0x8,0x18,0x87,0x4e,0x93,0x8d, 0x86,0xfd,0x94,0xcb,0x7,0xc0,0xd,0xc0,0x44,0x6c,0xef,0x66,0xea,0x7,0x9c,0x85, 0x6e,0x5c,0xe9,0x6d,0xd8,0x4f,0xbb,0x54,0x5a,0x64,0x83,0x50,0x44,0xc5,0xf1,0xd8, 0x15,0x17,0x79,0xf,0x55,0xc8,0x99,0x8,0x7c,0x6c,0xd4,0x47,0x48,0x16,0x3,0xd7, 0x0,0x77,0x62,0x3b,0xde,0xad,0xd0,0xbb,0x1f,0x85,0x9c,0xeb,0x15,0xa3,0x92,0x22, 0xeb,0x8b,0xa,0x2,0x7f,0x3,0x3b,0xd7,0xc7,0x2a,0x64,0x6c,0xbd,0x81,0xea,0x1a, 0x5b,0x8b,0x35,0xb4,0xbe,0x89,0x84,0x76,0x2f,0x8a,0x6b,0xb3,0x62,0x7b,0x22,0x8f, 0x4a,0xc5,0xbc,0x2,0x95,0x12,0x59,0xf,0x14,0x2d,0x30,0x6,0x45,0xb9,0x5a,0xb0, 0x96,0xc8,0xd8,0xfa,0x8e,0x51,0x1f,0x85,0x52,0x8a,0xd,0x6c,0xe,0xba,0x0,0x6c, 0x2a,0xd0,0x10,0x7c,0x44,0x11,0x23,0xd0,0x76,0xe5,0x30,0x4a,0x8b,0x65,0x2b,0x9a, 0x4a,0x88,0xac,0x1b,0x5a,0x1e,0xcf,0x46,0x37,0xb1,0x59,0xd0,0x84,0xae,0x3,0x1c, 0x8b,0x4e,0x6d,0xd5,0xa6,0x10,0x7,0x79,0x7b,0x3c,0x8b,0xe,0x2b,0xf,0x63,0x7b, 0x1a,0xde,0x1b,0x99,0x8e,0x2a,0x52,0xd8,0xc5,0x5a,0x64,0x59,0x94,0x5d,0x73,0x21, 0xb6,0x71,0x61,0xd3,0x81,0xab,0x51,0x74,0x6b,0xd2,0x79,0x1c,0x9,0xed,0x71,0xc3, 0x3e,0x32,0xe8,0x64,0x5f,0x11,0xaf,0x80,0xb5,0xc8,0xf6,0x43,0xb6,0x30,0xcb,0x82, 0x74,0xcf,0x1,0xbf,0x20,0x3d,0xf7,0x4c,0x36,0xa1,0xf,0xcd,0xcf,0xe9,0xda,0x80, 0x5c,0xe,0x59,0xe4,0x15,0xb0,0x36,0x86,0x9b,0x8a,0x6c,0x57,0x14,0xd9,0xba,0xb7, 0x61,0x1f,0x73,0x91,0x35,0x7f,0x3a,0xf1,0xb4,0x85,0x95,0x4a,0x3,0xf0,0x20,0xf0, 0x2b,0xe0,0x3f,0x86,0xfd,0x74,0x43,0x6e,0xbd,0xb,0x30,0xf4,0xa,0x58,0x89,0x2c, 0x7f,0x3,0x9b,0x65,0x22,0xea,0x42,0xb4,0xac,0xdc,0x47,0x18,0x81,0x35,0x11,0x2f, 0xaf,0x40,0x3,0x30,0x19,0xfd,0x8c,0x6f,0x1a,0xf6,0xd3,0x3,0x45,0xbf,0x9c,0x8d, 0x51,0x80,0x82,0x85,0xc8,0x6,0xa2,0xb,0xb2,0x46,0x19,0xb4,0x9d,0x67,0x9,0x70, 0x3d,0xf0,0x67,0xc2,0x19,0x5b,0x1b,0x3,0xb6,0x15,0x8a,0x75,0xe8,0x67,0x1c,0x8b, 0xee,0x3a,0xb7,0xa2,0xf,0x4a,0x3b,0x3c,0x19,0x83,0x2b,0x81,0x42,0x8b,0xac,0x1f, 0xba,0x20,0x6b,0x34,0x76,0x81,0x87,0xcb,0x91,0xcf,0xef,0x46,0xc2,0x46,0xb6,0xc6, 0x6d,0x26,0xcb,0xb3,0x1a,0x45,0xf2,0xde,0x88,0xad,0xed,0x6f,0x0,0x91,0x57,0x20, 0x68,0x31,0xc1,0x90,0x22,0xdb,0x18,0xd9,0xc1,0xbe,0x8d,0x2a,0xd1,0x58,0xb0,0x6, 0x19,0x5b,0xc7,0x23,0x97,0x4c,0xad,0xb0,0x12,0xcd,0xdc,0xd6,0x5e,0x8c,0x6d,0x88, 0x72,0x5,0x82,0x4d,0x12,0xa1,0x44,0xd6,0xd,0x59,0xf2,0xcf,0xc4,0xee,0xfe,0xa2, 0x46,0xe0,0xaf,0xc0,0xef,0x50,0x22,0x48,0xad,0xb1,0x14,0x5,0x5d,0xfe,0x9,0xdb, 0x24,0xe4,0x1d,0x90,0xd0,0x8e,0x22,0x90,0x3e,0x42,0x34,0x92,0x1,0x8e,0x46,0xee, 0xa,0x4b,0x5b,0xd8,0xfd,0xe8,0x25,0xcf,0x35,0xec,0x23,0xee,0x2c,0x40,0x5e,0x81, 0xdb,0x8c,0xfb,0x19,0x81,0xe,0x6e,0x41,0x72,0x5,0xca,0x15,0x59,0x6,0x85,0xfa, 0x5e,0x84,0xc2,0x77,0xac,0x78,0x14,0xb8,0xa,0x78,0xde,0xb0,0x8f,0xa4,0xf0,0x2a, 0xf2,0x73,0x4e,0x32,0xec,0x23,0x83,0xe2,0xfd,0xbe,0x8f,0xca,0xbe,0x97,0x45,0xb9, 0x22,0xdb,0x2d,0x37,0x10,0xcb,0x82,0x74,0x2f,0x22,0x63,0x6b,0x1c,0x3,0xf,0x3b, 0xa2,0xe,0x5b,0x7,0xf4,0x2c,0x64,0xda,0x78,0xc0,0xb0,0x8f,0xc,0xca,0xe2,0xbf, 0x94,0x32,0xcb,0xbd,0x97,0x23,0xb2,0xed,0x51,0x56,0x8c,0x65,0xfa,0xd5,0x3c,0x94, 0xe5,0x3d,0x8d,0x64,0x19,0x5b,0xad,0x32,0x91,0x5a,0x32,0x13,0xb8,0x12,0x5b,0xf7, 0x53,0x16,0x45,0x6c,0x5c,0x8c,0x72,0x62,0x4b,0x6e,0xa4,0x14,0xb6,0x42,0x9b,0xc3, 0x63,0xb0,0xf3,0xe4,0x2f,0x44,0xfb,0x8f,0x49,0x24,0x4b,0x60,0x95,0xe4,0x5f,0x28, 0xbc,0xdc,0xd2,0xfd,0xd4,0xd,0x99,0x35,0xce,0xa3,0xc4,0x43,0x5d,0x29,0x22,0xcb, 0xdb,0xc2,0x4e,0xc2,0xee,0xd3,0xfa,0x1,0x70,0x13,0x32,0x57,0x58,0x86,0xbd,0xa4, 0x81,0xa9,0x68,0xb6,0xef,0x2c,0x13,0xab,0x5c,0xea,0x51,0x8,0xf7,0x59,0x94,0x60, 0x9e,0x2a,0x56,0x64,0xf9,0x78,0xf1,0xd3,0xb1,0x8b,0xae,0xfc,0x18,0xb8,0x5,0xd9, 0xc2,0x92,0x10,0xd9,0x5a,0x6d,0x9a,0xd1,0x6c,0x7f,0x2d,0xf0,0x5f,0xc3,0x7e,0x7a, 0xa1,0x4,0xec,0x53,0x90,0xe,0xa,0xa6,0x18,0x91,0x75,0x27,0xba,0xbc,0xc0,0xaa, 0x1e,0xd6,0x7a,0x74,0x3c,0x1f,0x87,0x6d,0x16,0x4f,0xda,0x68,0x46,0xf6,0xb3,0xeb, 0xd1,0x36,0xc3,0x8a,0xcd,0x50,0x8,0xf7,0x89,0x14,0x11,0x94,0x59,0x8c,0xc8,0x8e, 0x45,0x25,0x8a,0xb6,0x29,0x6a,0x58,0xc5,0x91,0xff,0x44,0x2e,0x30,0xec,0xa3,0x23, 0x1a,0x88,0x9f,0xef,0xb2,0x18,0xd6,0x22,0xd7,0xd3,0x78,0x94,0xe7,0x60,0xc5,0x60, 0xe4,0x9b,0x3e,0x81,0x2,0xf7,0xe3,0x85,0x8a,0xec,0xb,0xa8,0x62,0x8c,0xa5,0x2d, 0x6c,0xa,0xda,0xe8,0xbf,0x6c,0xd8,0x47,0x67,0x34,0x90,0xfc,0x3,0xc6,0x47,0x48, 0x64,0xe3,0xb1,0x4d,0x1c,0x1e,0x86,0x8c,0xef,0x5,0x65,0x9c,0x15,0x22,0xb2,0x7c, 0x41,0xba,0x3d,0xca,0x18,0x54,0x57,0xcc,0x40,0x2,0x7b,0xd6,0xb0,0x8f,0x5a,0x61, 0x19,0x72,0xbd,0xdd,0x8c,0x6d,0x52,0xca,0x6e,0xc8,0x84,0x75,0x50,0x57,0xf,0x76, 0x25,0xb2,0x1d,0x90,0xc0,0xe,0x2a,0xe0,0xd9,0x52,0x99,0x8d,0x4e,0x47,0x33,0x8c, 0xda,0xaf,0x45,0x16,0xa1,0xf0,0xa0,0x5b,0xb1,0xdd,0x2,0xec,0x87,0x8c,0xf1,0xbb, 0x77,0xf6,0x50,0x67,0xc2,0x19,0x82,0x62,0xf3,0x8f,0xc4,0xce,0x16,0xf6,0x3a,0x51, 0x96,0x77,0x92,0xf7,0x43,0x71,0x64,0x3e,0xf0,0x6b,0xe0,0x1e,0x6c,0xdf,0xed,0x48, 0x24,0xb4,0x1d,0x3b,0x7a,0xa0,0x23,0x91,0x6d,0x8a,0x42,0x76,0x46,0x63,0x67,0xb, 0x7b,0x17,0xa5,0xe8,0xdf,0x89,0xdb,0xc2,0xac,0x98,0x87,0x5c,0x72,0xf,0x62,0xe7, 0x92,0xcb,0xa0,0xd0,0xa0,0xf3,0xd1,0xc4,0xb4,0x1,0xed,0x89,0xac,0x1e,0x45,0x55, 0x8c,0x21,0x6c,0xb1,0xde,0x96,0xe4,0x3,0xf,0x6f,0xc2,0x76,0xdf,0x50,0x2d,0x32, 0x54,0x28,0xa7,0xb1,0x0,0x5e,0x40,0x42,0x7b,0x1c,0x5b,0xdf,0xef,0x89,0xc8,0xbc, 0xb5,0x41,0x61,0x97,0xb6,0x22,0xcb,0xa2,0x93,0xe4,0x39,0xc0,0x16,0x46,0x83,0x59, 0x83,0x6c,0x3a,0x63,0x51,0xc6,0x77,0x1a,0x9,0x51,0x3e,0x3d,0x24,0x8f,0xa2,0xec, 0xa7,0xa7,0xd,0xfb,0xa8,0x47,0xab,0xdf,0x69,0xb4,0x89,0xac,0x6d,0x2b,0xb2,0x7d, 0x90,0xd,0x64,0x84,0xd1,0x40,0x9a,0x80,0xdb,0xd1,0x49,0x32,0xcd,0xc6,0xd6,0x38, 0xcd,0x64,0x79,0xa6,0xa1,0xf7,0x3e,0xcb,0xb0,0x8f,0x3e,0xc8,0x1b,0x74,0x42,0xcb, 0x6f,0xb6,0x14,0xd9,0x90,0xdc,0x3,0x7,0x63,0xf7,0x82,0x26,0xa1,0x1f,0xd4,0x32, 0xfb,0xc6,0x69,0x9f,0x46,0x94,0xd9,0x65,0x6d,0x8b,0xfc,0x14,0x72,0x3d,0x1d,0x9a, 0xff,0x46,0x4b,0x91,0x1d,0x87,0x72,0xf0,0xac,0xa6,0xf9,0x69,0x28,0xcb,0xdb,0xd2, 0x91,0xeb,0x74,0xce,0x1a,0x74,0x77,0xc1,0x75,0xe8,0xf4,0x69,0xc5,0xee,0xe8,0xd0, 0xd8,0xf,0x22,0x91,0xed,0x86,0x6e,0x85,0xd,0x9e,0xe,0x95,0xe3,0x19,0x14,0xd9, 0x3a,0xb3,0xab,0x7,0x1d,0x73,0x56,0x1,0x77,0x20,0xff,0xf0,0x22,0xa3,0x3e,0xea, 0x51,0xc0,0xe3,0xa1,0x40,0x36,0x8b,0x36,0x69,0x47,0x63,0xe7,0x32,0x9a,0x8b,0x8c, 0xad,0xd3,0x89,0x77,0x64,0x6b,0x9c,0xc7,0x16,0x9a,0xe5,0x28,0xf3,0x69,0x2,0x76, 0x69,0x76,0x83,0x50,0x32,0x4a,0xff,0x2c,0x72,0x78,0xef,0x8f,0xcd,0x2c,0xb6,0x0, 0x19,0x4,0xff,0x46,0x65,0xaf,0xf9,0x2b,0x85,0x34,0xf8,0x2e,0x8b,0x61,0x19,0xf2, 0x71,0x4e,0x44,0x3e,0xcf,0xd0,0x74,0x47,0xc5,0x5c,0x86,0x65,0xd1,0x49,0xb2,0xe4, 0xd0,0xda,0x4e,0x58,0x4c,0x94,0xe5,0x9d,0x4,0x5b,0x58,0xd2,0xa3,0x30,0x4a,0x61, 0x9,0xda,0x27,0xdf,0x85,0xcd,0xef,0x68,0x73,0x60,0xd7,0xbc,0xc8,0x42,0xdf,0x2, 0xb2,0xc,0x19,0x5b,0xc7,0x93,0xc,0x81,0xd5,0x32,0xb,0x51,0xae,0xc0,0x64,0xc2, 0x7f,0xc8,0x7a,0x3,0xc3,0xb3,0xc8,0x9,0x1e,0x32,0x2d,0x7d,0xd,0xf0,0x17,0x14, 0x17,0x66,0x59,0x6c,0xd7,0x9,0xc7,0x3c,0x64,0xac,0xfd,0x47,0xe0,0x76,0x7b,0x2, 0x43,0xb3,0xa8,0xfa,0x61,0x28,0xff,0x64,0x3e,0xcb,0xfb,0x2a,0x34,0x15,0x3b,0xc9, 0x61,0x16,0x9a,0xd1,0x1e,0xc,0xd8,0x66,0x6,0xd8,0x3c,0x4b,0xd8,0xda,0xee,0x53, 0x90,0xc0,0x2c,0x63,0xcd,0x1d,0x3b,0x9e,0x40,0xa6,0x8d,0x17,0x3,0xb6,0xb9,0x49, 0x96,0x70,0x4e,0xf0,0x19,0xa4,0xa7,0xa4,0x66,0x8,0xaa,0x7d,0x6f,0x55,0x29,0x34, 0x3,0xf,0x21,0xa1,0x85,0xba,0xe8,0xac,0x2e,0x4b,0x98,0x63,0xfb,0x6c,0x64,0xaa, 0xb0,0x4c,0x34,0x4d,0x1a,0x71,0xf3,0x5d,0x16,0xca,0x6a,0xe4,0x15,0xb8,0x86,0x30, 0xb9,0x16,0xeb,0xb2,0x94,0x6f,0x23,0x99,0x4f,0x94,0xe5,0x5d,0x6b,0x26,0x80,0xb4, 0xb2,0x2,0x99,0x9e,0xc6,0x51,0xfe,0xde,0x7a,0x59,0x16,0xd9,0xb3,0x4a,0xb5,0x76, 0xbf,0x8b,0x22,0x5b,0x27,0xe3,0xa6,0x8a,0xb4,0xb1,0x2,0x99,0xa1,0x26,0x50,0x7a, 0x2d,0xb8,0x46,0x60,0x61,0x16,0x6d,0xd2,0x4b,0xa9,0x58,0xb8,0x14,0x25,0x2c,0xfc, 0x1,0x1b,0x8b,0xb1,0x53,0x7d,0x96,0x21,0x67,0xfa,0x2d,0x94,0x76,0xc9,0xd8,0x47, 0xc0,0xdc,0x2c,0xda,0x4f,0x15,0x1b,0x3c,0xf8,0x21,0x9a,0x4e,0xaf,0xc7,0x5,0x96, 0x76,0x96,0xa2,0xd5,0xea,0xe,0x8a,0xff,0x5d,0xaf,0x0,0x5e,0xca,0xa2,0xd3,0x60, 0x31,0x1,0x84,0xeb,0x50,0x72,0xc2,0xd5,0x54,0xff,0xb2,0xf8,0x90,0x34,0x53,0x5b, 0x4e,0xf2,0x62,0x58,0x8c,0xca,0xbd,0xdf,0x83,0x7e,0xff,0x85,0xf2,0x6,0xf0,0x42, 0x7e,0x26,0x9b,0x45,0xe1,0xc9,0x1c,0xf7,0xa3,0x93,0x64,0x35,0xb2,0xbc,0x2d,0x59, 0x4f,0x6d,0x39,0xc8,0x8b,0xe5,0xd,0x64,0xac,0xbd,0x97,0xc2,0x3e,0x8c,0x2b,0xd1, 0xad,0xc9,0xf3,0xb3,0xe8,0xf4,0x70,0x3f,0x85,0xc5,0x16,0xe5,0x2f,0x30,0x48,0x63, 0xe0,0x61,0x5c,0xab,0x5f,0xc7,0x89,0x97,0x51,0x52,0xca,0x94,0x2,0x9e,0x7d,0x15, 0xcd,0x7c,0xab,0xb2,0xe8,0xc5,0x4e,0x43,0x36,0xae,0xce,0x3e,0xc9,0x4f,0x21,0x53, 0x45,0x5a,0xae,0x97,0x71,0x4a,0x23,0x9f,0xfd,0xf4,0x50,0x27,0xcf,0x2c,0x43,0x33, 0xde,0x73,0x10,0x59,0xa5,0x97,0xa0,0x8d,0x7c,0x47,0xb1,0xdf,0x73,0xd1,0x12,0xf9, 0x48,0x88,0x51,0x3a,0x89,0xe7,0x29,0x24,0xb4,0x27,0xdb,0xf9,0xbb,0x46,0x94,0xac, 0x7d,0x67,0xee,0xcf,0xad,0x5c,0x1f,0x53,0x81,0x3f,0xb2,0xe1,0x66,0x7e,0x21,0x12, 0xd8,0x3,0xb8,0xb1,0xd5,0x89,0x78,0x4,0xf8,0x9,0x9a,0xd9,0x5a,0xf2,0x24,0xb2, 0xaf,0xfd,0xff,0x4a,0xc8,0x96,0x22,0x5b,0x87,0x6a,0x27,0xdc,0x4c,0x74,0x82,0x78, 0x1f,0x9d,0x22,0x27,0xe1,0x5,0xe9,0x9c,0xd6,0x34,0xa1,0x25,0xf3,0xa,0xb4,0xd2, 0x35,0x3,0xaf,0x20,0x77,0x54,0xab,0xa5,0xb4,0x6d,0x88,0xcf,0x62,0x74,0xb5,0xf2, 0x96,0xe8,0xf2,0xad,0x89,0xb9,0x2f,0xcb,0x32,0x44,0x69,0xa5,0xe,0x7d,0x88,0xd3, 0x7c,0x62,0x6d,0x40,0x31,0x68,0xfd,0x50,0xb6,0xdb,0x24,0x94,0x76,0xd7,0x8a,0xf6, 0xe2,0xc8,0x5e,0x23,0x5a,0x1e,0x1f,0x22,0x5d,0xb6,0xb0,0x4a,0x52,0xb,0x22,0x3, 0x39,0xd4,0x6f,0x47,0x89,0x42,0x8b,0x69,0x27,0x97,0xa3,0xa3,0x60,0xc5,0x17,0x91, 0x99,0x22,0xee,0xc9,0x1f,0x4e,0x3c,0xf8,0x98,0x4e,0x62,0x8,0x3b,0x8b,0x79,0x72, 0x81,0x39,0x41,0x48,0x62,0x60,0x9d,0x93,0x30,0x5c,0x64,0x8e,0x39,0x2e,0xb2,0x88, 0x26,0xd2,0xbf,0x49,0xaf,0xa,0x2e,0xb2,0x88,0xf5,0xb8,0xb1,0xd9,0x4,0x17,0x59, 0x84,0x3b,0xc7,0x8d,0x70,0x91,0x39,0xe6,0xb8,0xc8,0x1c,0x73,0x5c,0x64,0x76,0xf8, 0xf2,0x9b,0xc3,0x45,0x66,0x47,0x6,0x7f,0xbf,0x80,0xbf,0x4,0x4b,0xea,0x72,0x5f, 0x35,0x8f,0x8b,0xcc,0x8e,0x2c,0xfe,0x7e,0x1,0x7f,0x9,0x4e,0x5,0x70,0x91,0x39, 0xe6,0xb8,0xc8,0x1c,0x73,0x5c,0x64,0x11,0x9e,0xdc,0x6b,0x84,0x8b,0x2c,0xa2,0x11, 0x77,0x90,0x9b,0xe0,0x22,0x8b,0x70,0x91,0x19,0xe1,0x22,0x8b,0xf0,0xa5,0xd2,0x8, 0x17,0x99,0x63,0x8e,0x8b,0xcc,0x31,0xc7,0x45,0x66,0x8b,0x2f,0xc1,0xb8,0xc8,0x2c, 0xc9,0xe2,0xbe,0x4b,0xc0,0x45,0x66,0x49,0xdc,0xae,0x88,0xae,0x1a,0x2e,0x32,0x3b, 0xe2,0x78,0x45,0x74,0x55,0x70,0x91,0xd9,0xe2,0x7b,0x32,0x5c,0x64,0x4e,0x5,0x70, 0x91,0x39,0xe6,0xb8,0xc8,0x22,0xdc,0x41,0x6e,0x84,0x8b,0x2c,0xc2,0x93,0x7b,0x8d, 0x70,0x91,0x45,0x78,0xf5,0x6b,0x23,0x5c,0x64,0x8e,0x39,0x2e,0x32,0xc7,0x1c,0x17, 0x99,0x63,0x8e,0x8b,0xcc,0x31,0xc7,0x45,0x66,0x47,0x96,0x8e,0x6b,0xf2,0xd6,0x14, 0x2e,0x32,0x3b,0xba,0xe1,0x22,0x3,0x5c,0x64,0x4e,0x5,0x70,0x91,0x39,0xe6,0xb8, 0xc8,0x1c,0x73,0x5c,0x64,0x8e,0x39,0x2e,0xb2,0x8,0x77,0x2b,0x19,0xe1,0x22,0x8b, 0x70,0x7,0xb9,0x11,0x2e,0xb2,0x8,0xf,0xf5,0x31,0xc2,0x45,0xe6,0x98,0xe3,0x22, 0x73,0xcc,0x71,0x91,0x39,0xe6,0xb8,0xc8,0x1c,0x73,0x5c,0x64,0x76,0xd4,0xe1,0xbe, 0x4b,0xc0,0x45,0x66,0x89,0x57,0xbf,0xce,0xe1,0x2f,0xc1,0x31,0xc7,0x45,0xe6,0x98, 0xe3,0x22,0x73,0xcc,0x71,0x91,0x39,0xe6,0xb8,0xc8,0x22,0x1a,0xf0,0xc2,0xc4,0x26, 0xb8,0xc8,0x22,0x5c,0x64,0x46,0xb8,0xc8,0x22,0xdc,0x41,0x6e,0x84,0x8b,0xcc,0x31, 0xc7,0x45,0x16,0x61,0x51,0x15,0xd1,0x2b,0x2d,0xe2,0x22,0x6b,0x49,0xe8,0xa5,0xd2, 0x5,0x96,0xc3,0x45,0x16,0xb1,0xa,0x58,0x17,0xb0,0xbd,0xf5,0xc0,0xea,0x80,0xed, 0x25,0x16,0x17,0x59,0xc4,0xdb,0xc0,0xf2,0x40,0x6d,0x35,0x3,0x4b,0x81,0xf7,0x2, 0xb5,0x97,0x68,0x5c,0x64,0x11,0x6f,0x1,0xf3,0x3,0xb5,0xf5,0x3e,0xf0,0x32,0x32, 0x8b,0xd4,0x3c,0x2e,0xb2,0x88,0x55,0xc0,0xc,0xe0,0x8d,0x0,0x6d,0xbd,0x2,0x3c, 0x1c,0xa0,0x9d,0x54,0xe0,0x22,0x6b,0xcd,0x3,0xc0,0xf4,0x32,0xdb,0xf8,0x0,0x98, 0xa,0xcc,0x2e,0x7f,0x38,0xe9,0xc0,0x45,0xd6,0x9a,0x45,0xc0,0x6d,0xc0,0xcc,0x32, 0xda,0xf8,0x3b,0x70,0x7,0x61,0xf,0x11,0x89,0xc6,0x45,0xb6,0x21,0x8f,0x1,0x57, 0x2,0x4f,0x17,0xf9,0xef,0x1a,0x80,0xc9,0xc0,0x38,0xe0,0xf5,0xd0,0x83,0x4a,0x32, 0x99,0xe6,0x66,0xf7,0xa4,0xb4,0x43,0x1d,0x70,0x8,0x70,0x6,0xb0,0x2f,0x30,0xb0, 0x8b,0xe7,0x17,0xa0,0x25,0x72,0x2,0xf0,0xbc,0xed,0xd0,0x92,0x87,0x8b,0xac,0x73, 0xb6,0x6,0x8e,0x1,0xe,0x0,0x76,0x4,0x6,0x0,0xfd,0x73,0x7f,0xb7,0x4,0x58, 0x9,0xcc,0x41,0x4b,0xe4,0xdd,0xe8,0x54,0xe9,0xb4,0xc1,0x45,0xd6,0x35,0xf5,0xc0, 0x16,0xc0,0xb6,0x68,0x56,0xfb,0x22,0xb0,0x16,0x1d,0x12,0xe6,0x2,0xff,0x46,0x36, 0x36,0xdf,0x83,0x75,0xc0,0xff,0x0,0xca,0xa2,0xbb,0x18,0xc7,0x63,0x32,0xec,0x0, 0x0,0x0,0x0,0x49,0x45,0x4e,0x44,0xae,0x42,0x60,0x82, // /home/libo/Desktop/Repository/Qt_project/001-Qt_QML_Concerning/TestAnimation_Arrow/images/kone_arrow_down.png 0x0,0x0,0xf,0x43, 0x89, 0x50,0x4e,0x47,0xd,0xa,0x1a,0xa,0x0,0x0,0x0,0xd,0x49,0x48,0x44,0x52,0x0, 0x0,0x0,0x99,0x0,0x0,0x0,0xaa,0x8,0x6,0x0,0x0,0x0,0xbe,0xb2,0xed,0xb9, 0x0,0x0,0x0,0x9,0x70,0x48,0x59,0x73,0x0,0x0,0xb,0x13,0x0,0x0,0xb,0x13, 0x1,0x0,0x9a,0x9c,0x18,0x0,0x0,0xe,0xf5,0x49,0x44,0x41,0x54,0x78,0x9c,0xed, 0x9d,0x79,0x94,0x95,0x65,0x1d,0xc7,0x3f,0x73,0x67,0x18,0xd9,0x62,0x53,0x16,0x13, 0x14,0x5c,0x10,0xf5,0x80,0x98,0xe6,0x2,0x52,0x6a,0xa,0x1a,0x99,0x1e,0x24,0xcd, 0x42,0x8b,0x2c,0x15,0x15,0x4b,0xb3,0x5c,0xb2,0x4e,0x9d,0x93,0xbb,0xa8,0xa4,0x98, 0x4b,0x86,0x4a,0xb9,0x14,0x54,0xae,0x47,0xcd,0x5c,0x4a,0x73,0x29,0x71,0x4f,0x54, 0xa,0xdc,0x32,0x71,0x7,0xd7,0xd9,0x6e,0x7f,0x7c,0xe7,0xfa,0xe,0xc3,0xcc,0x9d, 0xf7,0xde,0xfb,0xfc,0xee,0x7d,0xdf,0x7b,0x7f,0x9f,0x73,0x38,0xc,0xc3,0x9d,0xe7, 0x79,0xe6,0xbd,0xdf,0xfb,0x2c,0xbf,0xed,0xa9,0xcb,0x66,0xb3,0x38,0x79,0x69,0x4, 0x46,0x0,0x9b,0x1,0x93,0x80,0x7d,0x80,0x8f,0x81,0xdb,0x80,0x65,0xc0,0x53,0xc0, 0x2b,0x40,0x53,0xa5,0x6,0x98,0x74,0xea,0x5c,0x64,0x79,0x19,0x5,0xcc,0x0,0xa6, 0x0,0x5b,0x3,0x43,0x81,0xd,0xda,0xff,0x6f,0x15,0xb0,0x1a,0x78,0x1a,0xb8,0x15, 0x58,0x2,0xbc,0x59,0x81,0x31,0x26,0x1e,0x17,0x59,0xd7,0xd4,0x3,0x7b,0x0,0x47, 0xa0,0xd9,0x6b,0xc3,0x1e,0x5e,0xff,0x22,0x70,0x3b,0x70,0x9,0xb0,0xd4,0x76,0x68, 0xe9,0xc3,0x45,0xb6,0x2e,0xbd,0x80,0xe9,0xc0,0xc9,0xc0,0x8e,0x5,0xfc,0x5c,0xb, 0x70,0x33,0x70,0x6,0xf0,0xb0,0xc1,0xb8,0x52,0x4b,0xa6,0xd2,0x3,0x48,0x20,0xbb, 0x2,0x27,0x51,0x98,0xc0,0x0,0x1a,0x80,0xfd,0x81,0xb9,0xc0,0xa6,0xa1,0x7,0x95, 0x66,0x5c,0x64,0x6b,0x33,0x2,0x98,0x5,0xec,0x54,0x42,0x1b,0x5f,0x4,0xe,0x46, 0x7,0x6,0x7,0x17,0x59,0x67,0xf6,0x6,0x76,0x2f,0xb1,0x8d,0x21,0xc0,0x34,0x60, 0x7c,0xe9,0xc3,0xa9,0xe,0x5c,0x64,0x11,0xfd,0xd1,0x29,0x72,0x4c,0x80,0xb6,0xb6, 0x42,0x7,0x7,0x7,0x17,0x59,0x47,0x46,0x1,0xa3,0x3,0xb5,0xb5,0x3e,0x32,0x79, 0x34,0x4,0x6a,0x2f,0xd5,0xb8,0xc8,0x22,0x36,0x2,0x6,0x5,0x6a,0xab,0x8e,0xb5, 0x6d,0x6a,0x35,0x8d,0x8b,0x2c,0xa2,0x3f,0x61,0x37,0xeb,0xbd,0x80,0x3e,0x1,0xdb, 0x4b,0x2d,0x2e,0xb2,0x88,0xba,0xc0,0xed,0xb9,0x1,0xb2,0x1d,0x17,0x59,0x84,0x85, 0x28,0x5c,0x68,0xb8,0xc8,0x9c,0x32,0xe0,0x22,0x8b,0xa8,0x23,0xfc,0x92,0xe9,0xe0, 0x22,0xeb,0x48,0x3,0xfe,0x3c,0x4c,0xf0,0x87,0x1a,0xe1,0x22,0x33,0xc2,0x1f,0xaa, 0x63,0x8e,0x8b,0xcc,0x31,0xc7,0x45,0xe6,0x98,0xe3,0x22,0x73,0xcc,0x71,0x91,0xd9, 0xd1,0xd6,0xfe,0xa7,0xe6,0x71,0x91,0xd9,0xd1,0x8a,0x42,0xb2,0x6b,0x1e,0x17,0x99, 0x63,0x8e,0x8b,0xcc,0x31,0xc7,0x45,0xe6,0x98,0xe3,0x22,0x73,0xcc,0x71,0x91,0x45, 0xb8,0x83,0xdc,0x8,0x17,0x59,0x44,0x2f,0x94,0x39,0xee,0x4,0xc6,0x45,0x16,0x91, 0xc1,0x67,0x32,0x13,0x5c,0x64,0x8e,0x39,0x2e,0x32,0xc7,0x1c,0x17,0x99,0x63,0x8e, 0x8b,0xcc,0x31,0xc7,0x45,0x66,0x47,0xb,0xee,0xbb,0x4,0x5c,0x64,0x96,0xb4,0xe1, 0x22,0x3,0x5c,0x64,0x4e,0x19,0x70,0x91,0x39,0xe6,0xb8,0xc8,0x1c,0x73,0x5c,0x64, 0x8e,0x39,0x2e,0xb2,0x8,0x77,0x2b,0x19,0xe1,0x22,0x8b,0x70,0x7,0xb9,0x11,0x2e, 0xb2,0x8,0xf,0xf5,0x31,0xc2,0x45,0xe6,0x98,0xe3,0x22,0x73,0xcc,0x71,0x91,0xd9, 0xe2,0xcb,0x2f,0x2e,0x32,0x4b,0xb2,0x78,0xa5,0x45,0xc0,0x45,0x66,0x49,0x2b,0xd0, 0x5c,0xe9,0x41,0x24,0x1,0x17,0x99,0x1d,0x6d,0x48,0x68,0x35,0x8f,0x8b,0xcc,0x16, 0xdf,0x93,0xe1,0x22,0x73,0xca,0x80,0x8b,0xcc,0x31,0xc7,0x45,0x16,0xe1,0x4b,0x9b, 0x11,0x2e,0xb2,0x88,0x7a,0xfc,0x79,0x98,0xe0,0xf,0x35,0xc2,0x45,0x66,0x84,0x3f, 0xd4,0x8,0x77,0x90,0x1b,0xe1,0x22,0x73,0xcc,0x71,0x91,0x39,0xe6,0xb8,0xc8,0x1c, 0x73,0x5c,0x64,0x76,0x78,0xf5,0xeb,0x76,0x5c,0x64,0x76,0xb4,0xe2,0xbe,0x4b,0xc0, 0x45,0x66,0x49,0x16,0x9f,0xc9,0x0,0x17,0x99,0x25,0x6e,0xe,0x69,0xc7,0x45,0xe6, 0x98,0xe3,0x22,0x73,0xcc,0x71,0x91,0x45,0xf8,0xf2,0x66,0x84,0x8b,0x2c,0xc2,0x93, 0x7b,0x8d,0x70,0x91,0x45,0x64,0xf0,0xe7,0x61,0x82,0x3f,0x54,0xc7,0x1c,0x17,0x99, 0x63,0x4e,0x3e,0x91,0xf5,0x2a,0xdb,0x28,0x9c,0xaa,0xa6,0x3b,0x91,0x4d,0x4,0xbe, 0xa,0x6c,0x58,0xc6,0xb1,0x38,0xe9,0xa5,0x2f,0xb0,0x19,0xd0,0xbf,0xab,0xff,0xec, 0x4a,0x64,0x9b,0x3,0x3f,0x0,0x2e,0x0,0x8e,0x7,0x6,0x9b,0xd,0xad,0xba,0x69, 0xa5,0x36,0xdc,0x4a,0x7d,0x80,0xaf,0x1,0x17,0x3,0x7,0xd3,0xc5,0xa,0xd8,0xd0, 0xe9,0xdf,0xc3,0x81,0x23,0x80,0x99,0x40,0x23,0x30,0x1b,0x78,0x15,0xf8,0x15,0xb0, 0xda,0x72,0xa4,0x55,0x48,0x2d,0x88,0xac,0x1,0xd8,0x7,0xf8,0x3e,0xb0,0x25,0x30, 0xa,0x78,0xb,0x58,0xd2,0xf1,0x45,0x1d,0x67,0xb2,0x46,0xe0,0x10,0xe0,0xb0,0xf6, 0xaf,0x1,0xd6,0x7,0x8e,0x43,0xa2,0xeb,0x6b,0x3b,0x5e,0x27,0x65,0x64,0x80,0x3d, 0x81,0x53,0x81,0x71,0xc8,0x98,0xbd,0x15,0xf0,0xbd,0xf6,0xef,0xaf,0xf5,0xc2,0x1c, 0xd3,0x80,0x6f,0xb0,0xee,0xf2,0x38,0x12,0x2d,0x9f,0x7b,0xe3,0xc6,0x4a,0x27,0x62, 0x37,0xe0,0x27,0xc0,0x76,0x9d,0xbe,0xbf,0xb,0x9a,0xa8,0xc6,0xe6,0xbe,0x91,0x13, 0xd9,0x30,0xe0,0xeb,0xc0,0xd6,0xdd,0x34,0x38,0xe,0x9,0x6d,0xb7,0x80,0x83,0x74, 0xd2,0xcb,0xce,0xc0,0xc9,0x48,0x50,0x9d,0xa9,0x47,0x13,0xd6,0x41,0xed,0x5f,0x7f, 0x52,0x8c,0x77,0x2a,0x30,0x99,0xfc,0x26,0x8d,0x9d,0x81,0x13,0xdb,0xff,0x76,0x6a, 0x97,0xed,0x90,0xc0,0xf6,0xcc,0xf3,0x9a,0xc1,0xc0,0x7e,0xc0,0xf6,0x20,0x51,0xd, 0x3,0xa6,0x3,0x23,0x62,0x74,0xb0,0x17,0xf0,0x43,0x60,0x9b,0x92,0x86,0x99,0x4c, 0xbc,0xfa,0x75,0xcf,0x6c,0x8d,0x4,0xb6,0x6f,0x8c,0xd7,0x6e,0x1,0xcc,0x0,0xfa, 0x67,0x80,0xf1,0xc0,0x4,0xd6,0x3d,0x69,0x76,0xc7,0x74,0xb4,0x74,0x6e,0x5c,0xc4, 0x20,0x93,0x4c,0x2f,0xdc,0x3,0x92,0x8f,0x31,0xc0,0x49,0x68,0x86,0x8a,0xf3,0x61, 0x1c,0x80,0x96,0xd3,0xd1,0x19,0x60,0x5b,0x60,0x68,0x1,0x9d,0x35,0x22,0x85,0x1e, 0x47,0x75,0xd9,0xd0,0x3c,0xb9,0xb7,0x7b,0x86,0xa3,0x15,0x6c,0x6,0x91,0xe5,0x21, 0xe,0x63,0x80,0xed,0x72,0x33,0x59,0x97,0x96,0xda,0x3c,0x7c,0xa,0x1d,0x14,0x8e, 0x6,0xfa,0x15,0xf8,0xb3,0x4e,0xba,0x18,0xa,0x9c,0x80,0xc,0xad,0x85,0xbe,0xd7, 0x3,0x81,0x6d,0x33,0xc8,0x1d,0xd0,0xbb,0xc8,0xce,0x8f,0x2,0xbe,0x59,0x44,0xe7, 0x4e,0x3a,0x18,0xc,0x1c,0x3,0x7c,0xb,0x9,0xa6,0x50,0xfa,0x1,0xe3,0x32,0x68, 0x2a,0x2c,0x76,0x99,0xd8,0x10,0xa9,0x7c,0x7f,0x60,0xbd,0x22,0xdb,0x70,0x92,0xc9, 0x40,0x64,0xef,0x3a,0x12,0x18,0x52,0x64,0x1b,0xf5,0xc0,0xc8,0xc,0xa5,0xcf,0x42, 0xa3,0x91,0x69,0x63,0x2a,0x6e,0xac,0xad,0x16,0x6,0xa2,0xed,0xd0,0x5c,0x64,0x7d, 0x28,0x85,0xc1,0xa1,0xa2,0x41,0xc7,0xa3,0x13,0xe7,0xe4,0x0,0x6d,0x55,0xb,0x69, 0x2d,0xaf,0xde,0x7,0x38,0x0,0xb9,0x87,0x42,0x58,0x10,0x1a,0x33,0xc0,0xc7,0x1, 0x1a,0x2,0x98,0x82,0x4e,0x9c,0xdb,0x6,0x6a,0x2f,0xed,0xa4,0xd1,0x39,0x5e,0x87, 0x8c,0xac,0x73,0x91,0x9d,0x2b,0x4,0xad,0x19,0xe4,0x35,0xf,0xc5,0xbe,0xc8,0x23, 0xbf,0x59,0xc0,0x36,0x9d,0xf2,0x31,0x9,0x9,0x6c,0x62,0xc0,0x36,0xdf,0xcb,0x0, 0x2f,0x11,0xee,0x42,0xf6,0x7a,0xe0,0x2b,0x48,0x68,0xa5,0xae,0xe5,0x4e,0x79,0x99, 0x80,0x8c,0xad,0x7b,0x5,0x6c,0x33,0xb,0xbc,0x96,0x1,0x96,0x1,0xef,0x7,0x6c, 0xb8,0x37,0x8a,0xaa,0xfd,0x2e,0xb2,0xa7,0x39,0xc9,0x67,0x2c,0x70,0xa,0x8a,0xd, 0xb,0xc9,0x87,0xc0,0xf2,0xc,0xf0,0x38,0xf0,0x6e,0xe0,0xc6,0x7,0xa3,0xe3,0xef, 0x1c,0xdc,0xb4,0x91,0x74,0x46,0xa2,0x19,0x6c,0x7f,0xc2,0x5b,0x7,0xd6,0x0,0x4f, 0xe6,0x44,0xf6,0x9f,0xc0,0x8d,0x83,0xec,0x6f,0x47,0xa3,0xa3,0x70,0x1a,0x84,0xd6, 0x40,0xed,0x99,0x60,0x86,0xa1,0xc3,0xda,0x81,0xd8,0xbc,0x47,0xaf,0x1,0x8f,0x66, 0x80,0x95,0xc0,0x7d,0xd8,0x84,0x57,0x6f,0x8c,0x4c,0x1b,0x5f,0x22,0xf9,0xd9,0x4f, 0xd,0xd4,0x96,0x83,0x7c,0x30,0x5a,0x69,0x66,0x63,0xe3,0xb1,0x69,0x6,0x9e,0x0, 0x9e,0xc9,0xa0,0xfd,0xd8,0x1f,0x81,0xa7,0xc,0x3a,0x2,0x5,0x3c,0x9e,0x8,0xec, 0x4e,0xb2,0x1d,0xd0,0x49,0x1e,0x5b,0x68,0x6,0x21,0x71,0x1d,0x89,0x5d,0x90,0xc3, 0x2b,0xc0,0x8d,0xc0,0x1b,0xb9,0x4f,0xee,0x52,0xe0,0x6,0xec,0x92,0x45,0x3e,0x8b, 0x4e,0x9c,0x3b,0x19,0xb5,0xef,0xc4,0xa7,0x3f,0x72,0x76,0xcf,0x25,0x5e,0xc,0x61, 0x31,0x34,0x1,0xf7,0x2,0x7f,0x1,0xda,0x3a,0x2e,0xf,0xbf,0x7,0xfe,0x84,0xdd, 0x1d,0x8d,0x53,0xd1,0xfa,0x5f,0x8d,0x1,0x8f,0x69,0xa1,0x37,0xb2,0xe6,0x1f,0x83, 0xdc,0x81,0x56,0x3c,0x2,0x2c,0xa2,0xdd,0x6,0xdb,0x51,0x64,0x2b,0x80,0xcb,0x80, 0xbb,0xb1,0x73,0x89,0xcc,0x44,0xb9,0x9c,0x9b,0x18,0xb5,0xef,0x74,0x4f,0x3d,0xf0, 0x65,0xf4,0xfc,0xbb,0xcb,0xe5,0x8,0xc1,0x8b,0xc0,0xaf,0xd1,0x2c,0x6,0xac,0xbb, 0xd1,0x7d,0x0,0xb8,0x8,0x9d,0x38,0x2d,0xc8,0xa0,0x44,0xd0,0xe3,0x29,0x2c,0x50, 0x32,0x6d,0x24,0xf1,0x6a,0xe8,0xa9,0xe8,0xb9,0x4f,0x30,0xec,0x63,0x35,0x9a,0xa8, 0xae,0xed,0xf8,0xcd,0xce,0x22,0x6b,0x3,0x6e,0x7,0x2e,0x4,0xfe,0x67,0x34,0x90, 0xde,0xc0,0xa1,0xc0,0xb1,0x14,0x1e,0x2c,0x99,0x16,0x92,0x76,0x35,0xf4,0xe7,0x90, 0xb1,0x75,0x47,0xc3,0x3e,0x9a,0x80,0xcb,0x51,0x22,0xf8,0x5a,0xc6,0xfd,0xae,0x8e, 0xec,0x4d,0xe8,0xb4,0xb9,0x90,0x70,0xce,0xf3,0xce,0xc,0x42,0xc6,0xda,0xef,0x90, 0xe,0x1b,0x5a,0xa1,0x24,0x69,0x26,0xcb,0x65,0x17,0x4d,0xc6,0xf6,0x4,0x7d,0x35, 0xb0,0x0,0xd9,0xc6,0xd6,0xa2,0x3b,0xbb,0xd0,0xdb,0x48,0x95,0x8b,0x8,0xe7,0xd7, 0xec,0xcc,0x86,0x68,0x3,0x7a,0x10,0xf1,0x93,0x58,0x9c,0xc2,0x18,0x8b,0x4,0xb6, 0x17,0x76,0x2,0xcb,0x2,0x8b,0x81,0xf3,0xd1,0xbe,0x7e,0x1d,0xf2,0x19,0x1f,0x57, 0x0,0xf3,0x80,0x9b,0xb0,0xfb,0x54,0x6e,0x8a,0x22,0x6b,0xa7,0x51,0x7b,0xd6,0x76, 0x6b,0x46,0x23,0x43,0xf8,0xc,0x6c,0x9f,0xed,0x1d,0xc0,0x99,0xc0,0xbf,0xba,0x7b, 0x41,0x4f,0x16,0xee,0x65,0xc0,0x59,0xc0,0x3d,0xd8,0xc5,0x47,0x8d,0x47,0xc6,0xda, 0x29,0x46,0xed,0xd7,0x22,0x23,0xd0,0x9e,0xf7,0x10,0x6c,0x5,0x76,0x3f,0x12,0xd8, 0x23,0xf9,0x5e,0x14,0xc7,0x8d,0xf2,0x10,0x12,0xda,0x3f,0x3,0xc,0xaa,0x3b,0xa6, 0xa0,0x93,0xcf,0xe,0x86,0x7d,0xd4,0xa,0x83,0x51,0x82,0xcf,0x61,0xd8,0xee,0x77, 0x97,0x2,0x67,0xa3,0x9,0x28,0x2f,0x71,0x7d,0x75,0xb7,0xa3,0x35,0xd7,0xca,0xf5, 0x4,0xa,0x78,0xb4,0xb6,0xe1,0xe4,0xa3,0x1a,0x7c,0x97,0xfd,0x90,0x3f,0x72,0xe, 0x4a,0xae,0xb5,0xe2,0x19,0x60,0x3e,0xda,0x4a,0xf5,0x48,0x21,0xf,0x75,0x9,0x2a, 0x74,0xb6,0xb2,0xf0,0x31,0xc5,0x66,0x26,0x8a,0x43,0xab,0x44,0x76,0x7a,0xda,0xa3, 0x30,0xd6,0x3,0xe,0x47,0x2,0xdb,0xc0,0xb0,0x9f,0x17,0x90,0x2d,0xf5,0x5a,0x62, 0xee,0xd5,0xb,0x11,0x59,0x33,0x3a,0x6d,0x2e,0x0,0x5e,0x2f,0x78,0x68,0xf1,0xe8, 0x5,0xcc,0x42,0x7e,0xb5,0x6a,0x36,0xd6,0x86,0xa6,0xe,0xd9,0x1e,0x8f,0x46,0xf1, 0x61,0x56,0xac,0x42,0x36,0xd4,0xab,0x29,0xc0,0xe,0x58,0xe8,0xf2,0xf0,0x1e,0x72, 0x19,0x5c,0x86,0xa2,0x1e,0x2d,0xe8,0x8b,0x92,0x49,0xe7,0xe0,0x85,0xf7,0xe2,0x50, 0x47,0xb4,0x2,0x58,0xe6,0x56,0xbc,0xf,0x5c,0x8a,0xde,0xff,0xf7,0xa,0xf9,0xc1, 0x62,0xf6,0x20,0x6f,0x1,0x97,0x0,0x57,0x61,0x67,0x43,0x1b,0x82,0xc,0xb5,0x87, 0xe0,0x36,0xb4,0x9e,0x98,0x86,0x4e,0xe7,0x96,0x81,0x7,0x4d,0x48,0x5c,0xbf,0x44, 0x36,0xd4,0x82,0x28,0x76,0xa3,0xfb,0x32,0x2a,0x5c,0xfc,0x7,0xec,0x6c,0x68,0x23, 0xd1,0x41,0x60,0x26,0xe9,0xdf,0x90,0x5b,0xf1,0x79,0x54,0x4e,0x73,0x7b,0xc3,0x3e, 0x5a,0xd0,0xfe,0xeb,0x2,0x54,0x3f,0xb8,0x60,0x4a,0x79,0xf3,0x9e,0x45,0x47,0xd8, 0x3b,0x4b,0x68,0xa3,0x27,0xc6,0x12,0x65,0xa7,0xa7,0x49,0x68,0x6d,0xd8,0xcd,0xf2, 0x39,0x76,0x42,0xb1,0xf9,0x96,0x9,0xd5,0x6d,0xc0,0xcd,0xc0,0x39,0x94,0x10,0xa2, 0x5f,0xea,0x1b,0xb7,0x14,0x19,0xe3,0x1e,0x2e,0xb1,0x9d,0x7c,0x4c,0x44,0xae,0x91, 0x5d,0x49,0x4f,0xf4,0x6a,0x2b,0xb6,0x22,0x9b,0x80,0x3c,0x25,0x7b,0x1b,0xf6,0x91, 0x45,0x81,0x87,0x67,0x1,0x4f,0x97,0xd2,0x50,0xa9,0x22,0xcb,0xa2,0xf8,0xb3,0x73, 0xb1,0xb5,0xa1,0x7d,0xe,0x45,0xd6,0x7e,0xc6,0xb0,0x8f,0xb4,0xb0,0x5,0x2a,0x21, 0x30,0xd3,0xb0,0x8f,0x2c,0x9a,0x38,0xce,0x4,0x1e,0x2c,0xb5,0xb1,0x10,0x4b,0x50, 0x16,0x45,0x6d,0xcc,0x7,0x96,0x7,0x68,0xaf,0x3b,0xa6,0xa3,0x13,0xd4,0x38,0xc3, 0x3e,0x92,0xce,0xc6,0x68,0x9f,0x3a,0xcb,0xb8,0x9f,0xc7,0xd1,0xc4,0x11,0x64,0x2b, 0x14,0x6a,0x9f,0xd3,0x2,0x5c,0x83,0x4e,0x9d,0x45,0x6d,0xe,0x63,0x90,0xcb,0x4e, 0x3f,0xa,0x5d,0x4a,0x50,0x6b,0xc,0x45,0x1f,0xb2,0x43,0xb1,0xcd,0xfc,0x5a,0x86, 0x36,0xf9,0x37,0x12,0xc8,0x5f,0x1d,0x72,0x33,0xfd,0x1,0x8a,0x41,0xbb,0x9c,0x22, 0x8e,0xb9,0x31,0xe9,0x8d,0xcc,0x1a,0x73,0x28,0xbe,0x66,0x56,0x1a,0x19,0x80,0xc, 0xad,0xb3,0xb1,0xb5,0x1d,0xae,0x44,0x2,0x5b,0x8c,0xcc,0x16,0x41,0x8,0x7d,0x62, 0xcb,0xd9,0xd0,0x16,0x11,0x70,0x90,0x9d,0xc8,0x5,0x3c,0x1e,0x4e,0x71,0x15,0x22, 0xbb,0x23,0xa9,0xd5,0xaf,0xfb,0x0,0xdf,0x46,0xbf,0xaf,0x65,0x8d,0xde,0xd7,0x91, 0x1d,0xec,0x5a,0xc2,0x96,0xad,0x30,0x31,0xb,0xbc,0x8a,0x7c,0x5b,0x8b,0xd,0xda, 0xce,0x31,0x8c,0x28,0x3b,0x3d,0x94,0xbf,0xb1,0x3e,0x60,0x5b,0xa1,0x68,0x44,0xbf, 0xe3,0xb1,0xd8,0xde,0xd8,0xb7,0x1a,0x85,0x4d,0x5f,0x89,0x41,0x5a,0xa4,0x95,0xed, 0xe9,0x79,0xb4,0x71,0xbc,0xcd,0xa8,0x7d,0x90,0xb1,0xf6,0x4,0x94,0x81,0x13,0xe2, 0xf7,0x48,0xda,0x4c,0xd6,0x80,0xea,0x53,0x9c,0x80,0x6d,0x76,0xd7,0x47,0xc0,0x6f, 0x90,0x4f,0x7a,0x95,0x45,0x7,0x96,0x6,0xce,0x47,0x81,0xd3,0x51,0x3c,0x9a,0x15, 0xe3,0x80,0x1f,0xa1,0xec,0xf4,0x34,0x19,0x6b,0x7b,0xa2,0x81,0xe8,0x62,0x8e,0x2d, 0xd,0xfb,0x69,0x41,0xb9,0xb6,0xe7,0xa1,0x8c,0x6f,0x13,0xac,0xdf,0x98,0xfb,0x81, 0x9f,0x3,0x4f,0x1a,0xf6,0xb1,0x3d,0x32,0xd6,0x56,0xcb,0x75,0x3c,0x19,0xf4,0xa1, 0x39,0x5,0x5b,0x77,0x51,0x1b,0xa,0x9d,0x3e,0x3,0xf8,0xb7,0x61,0x3f,0xe6,0x22, 0x6b,0x43,0x4b,0xe6,0x3c,0x6c,0x6d,0x68,0xbb,0x53,0x3d,0xa5,0x44,0x27,0xa3,0x25, 0xd2,0xd2,0x5d,0x94,0x45,0x45,0x76,0x4e,0x43,0x45,0x51,0x4c,0x29,0xc7,0x12,0xd3, 0x2,0x5c,0x8f,0xd6,0xfc,0x97,0x8c,0xfa,0xc8,0xa0,0xc8,0xda,0x63,0xe9,0x70,0x5, 0x5e,0x5,0xc9,0x52,0x9c,0x8d,0x69,0x7,0x24,0xb0,0x3d,0xb0,0xdd,0x1f,0x3e,0x84, 0x66,0xb0,0x7,0xc,0xfb,0xf8,0x84,0x72,0xed,0x63,0x3e,0x42,0x27,0x97,0x85,0xc0, 0x1b,0x46,0x7d,0xac,0x87,0xea,0x6c,0x1d,0x9,0x7c,0xda,0xa8,0x8f,0xb8,0xb4,0x51, 0x78,0x72,0xef,0x36,0xc8,0x9a,0x3f,0xd,0xdb,0xf0,0xa6,0xc7,0xd1,0x1e,0xec,0x4e, 0xca,0x94,0x1b,0x5a,0xce,0xcd,0xf2,0x3b,0x28,0xd8,0xf1,0x1a,0x64,0xb8,0xb5,0xa0, 0x3f,0x32,0xd6,0x1e,0x41,0x65,0xef,0x7d,0x6a,0xa3,0xb0,0x99,0x6c,0x13,0xe4,0x8f, 0xdc,0xf,0xdb,0xe4,0x8f,0x67,0x91,0xfb,0xef,0x66,0xec,0xa3,0x44,0x3e,0xa1,0xdc, 0x27,0xb2,0x57,0x50,0xf8,0xee,0xf5,0x28,0x52,0xc1,0x82,0xd,0x90,0xe1,0xd2,0xda, 0x3a,0x1e,0x8a,0xe1,0x48,0x60,0x7,0x61,0x3b,0xde,0x97,0xd1,0xb3,0x5f,0x8c,0x5d, 0x54,0x73,0x97,0x54,0xe2,0xd8,0xbf,0x1c,0x4d,0xd7,0xb1,0x32,0x5d,0x8a,0x64,0x4, 0xca,0x13,0x38,0x90,0xe4,0x19,0x58,0x3b,0x32,0x4,0xcd,0xba,0xb3,0xb1,0x2d,0xe2, 0xfc,0x16,0x91,0x35,0x7f,0x8d,0x61,0x3f,0x5d,0x52,0x29,0xdb,0xd2,0x53,0x28,0x4e, 0xe9,0x3e,0xc3,0x3e,0x46,0x13,0x65,0xa7,0x27,0xd1,0x86,0x36,0x0,0x45,0x53,0x1c, 0x43,0x71,0x97,0x63,0xc5,0x25,0x97,0x97,0x71,0x5,0x61,0xef,0x6c,0x88,0x4d,0x25, 0x1f,0xfe,0xc3,0xc8,0x86,0x66,0x79,0x84,0xde,0x6,0x85,0x27,0x27,0x31,0xe0,0x71, 0x2c,0xf2,0xc1,0x5a,0x66,0x65,0x7d,0x8c,0xb6,0x26,0x17,0xd0,0x45,0x21,0x94,0x72, 0x51,0x49,0x91,0xb5,0x1,0x77,0x61,0x6f,0xc,0xdc,0x5,0x79,0x5,0x7a,0x32,0x6c, 0x96,0x5b,0x84,0x8d,0xd8,0x26,0xe0,0xb6,0x2,0xb7,0xa0,0x15,0xc3,0xcc,0x9a,0x1f, 0x87,0x4a,0x2f,0x23,0xcd,0xc8,0xad,0x31,0x1f,0x6d,0x4c,0xad,0xf8,0x2,0x5a,0x3a, 0xf3,0x65,0xf4,0x94,0xfb,0x59,0xb4,0x20,0xd3,0x8e,0x15,0x77,0x0,0x3f,0x43,0x7e, 0xe4,0x8a,0x52,0x69,0x91,0x81,0x1e,0xf4,0x55,0x68,0xcf,0x60,0xe2,0xa0,0x45,0x9b, 0xff,0xfd,0x50,0xd0,0x5f,0xa8,0x8b,0xa9,0x4a,0xa5,0x18,0x5b,0x5a,0x5c,0xee,0xa6, 0x4c,0xd6,0xfc,0x38,0x24,0x41,0x64,0xa0,0xf0,0x92,0x4b,0x51,0x34,0x40,0xe8,0xdb, 0x51,0x72,0xf4,0x26,0x32,0xd6,0x6e,0x64,0xd4,0x47,0x21,0x58,0x65,0x34,0xfd,0x3, 0x65,0x91,0xdd,0x6f,0xd0,0x76,0x51,0x24,0x45,0x64,0xa0,0x38,0xb4,0x5,0x4,0x8e, 0xca,0xec,0xc4,0x40,0x64,0xac,0x3d,0x8c,0xca,0x1a,0x6b,0xa1,0x70,0x83,0x6d,0x1c, 0x9e,0x46,0x7e,0x62,0xcb,0x34,0xc5,0x82,0x49,0x92,0xc8,0x40,0xb9,0x7d,0x39,0x8b, 0xb4,0x55,0x3d,0xb4,0xa1,0x28,0xd2,0x74,0x16,0x61,0x23,0x6b,0xb,0x25,0x4b,0xd8, 0x99,0xec,0x5,0x54,0x79,0xe9,0xa6,0xc0,0xed,0x96,0x4c,0xd2,0x44,0x6,0xa,0xb, 0x3a,0x1b,0x9d,0x3c,0xad,0x18,0x85,0x9c,0xe9,0x7,0x60,0xf3,0xc,0xe2,0x38,0xc8, 0x43,0x2e,0x97,0xaf,0x13,0xc5,0xe6,0x5b,0xb9,0xec,0x8a,0x26,0x89,0x22,0x83,0xa8, 0xf0,0xde,0x63,0x86,0x7d,0x6c,0x8e,0xb2,0xd3,0x77,0x43,0xe6,0x8b,0x90,0x45,0x98, 0xe3,0xa,0x28,0xc4,0x6c,0xfd,0xe,0x2a,0xe9,0xb5,0x8,0xbb,0xfd,0x6c,0x49,0x24, 0x55,0x64,0xa0,0xec,0xe5,0xd3,0xb1,0x8d,0x43,0x1b,0xf,0xfc,0x98,0xe8,0x3a,0x9e, 0x50,0xfe,0xd4,0x38,0x33,0x59,0x88,0x32,0xec,0x6b,0x50,0x74,0xcb,0x2,0xe0,0xcd, 0x12,0xdb,0x32,0x23,0xc9,0x15,0x73,0x9a,0xd1,0xde,0x6c,0x10,0xf0,0x53,0xec,0xc2, 0x77,0x26,0x21,0xaf,0xc0,0x50,0x34,0xfb,0x94,0xcb,0xd7,0x99,0xa5,0x34,0x51,0x7f, 0x88,0xa,0x13,0xce,0xc3,0xae,0x5e,0x5c,0x10,0x92,0x2c,0x32,0xd0,0x83,0xbc,0xe, 0x58,0x1f,0x45,0x2a,0xc,0x37,0xe8,0xa3,0x11,0x15,0x74,0x69,0xa3,0xbc,0xd7,0x25, 0xe6,0x66,0xbb,0x2c,0x85,0x7b,0x1b,0x9a,0x51,0xf2,0xed,0x19,0xd8,0x1a,0xb1,0x83, 0x90,0xe4,0xe5,0x32,0xc7,0x1a,0x94,0xae,0x75,0x35,0xda,0x7f,0x58,0xd0,0xb,0xc5, 0x71,0x95,0xf3,0x79,0x94,0x72,0xba,0xfc,0x33,0xda,0xb3,0x3e,0x17,0x6e,0x38,0x76, 0xa4,0x41,0x64,0xa0,0x68,0xda,0x5,0xc8,0xd9,0x9b,0xb8,0xd3,0x53,0x91,0x14,0xbb, 0x5c,0xfe,0xd,0x9d,0xbe,0x1f,0xd,0x3b,0x1c,0x3b,0xd2,0x22,0x32,0x90,0x1d,0xe8, 0x42,0xca,0x1c,0xd5,0x69,0x48,0x1b,0x85,0x8b,0xec,0x31,0x54,0x2b,0xec,0xde,0xf0, 0xc3,0xb1,0x23,0x4d,0x22,0x3,0x59,0xb4,0xe7,0x63,0x6b,0x43,0x2b,0x17,0x39,0x33, 0x47,0xdc,0x38,0xfb,0xe5,0x68,0x6,0xb3,0x4c,0x98,0x36,0x21,0x6d,0x22,0x3,0xf8, 0x3b,0xfa,0x34,0x5b,0x16,0xde,0x2b,0x17,0x71,0xed,0x64,0xff,0x45,0x2,0xbb,0x81, 0x64,0xdd,0x3e,0x17,0x8b,0x34,0x8a,0xc,0x74,0x61,0xe7,0x69,0x28,0x31,0x22,0xad, 0xe4,0xa2,0x30,0x7a,0x9a,0xc9,0xde,0x46,0xee,0xa2,0xdf,0x91,0xd2,0xfd,0x68,0x5a, 0x45,0x96,0x45,0xcb,0xc6,0xe9,0xa4,0xe0,0x8,0xdf,0xd,0x71,0xc,0xb6,0xef,0xa0, 0x7d,0xe8,0x42,0x12,0x6a,0xcd,0x8f,0x43,0x5a,0x45,0x6,0x8a,0xd4,0x58,0x82,0x3e, 0xe5,0x56,0x71,0x68,0x96,0xf4,0x34,0x93,0xad,0x26,0xba,0x9c,0x23,0xb1,0xd6,0xfc, 0x38,0xa4,0x59,0x64,0xa0,0x3a,0x5a,0x57,0xa2,0x80,0x47,0x2b,0x1b,0x5a,0x31,0xc4, 0x71,0x19,0xe5,0x33,0x61,0x7c,0x88,0xca,0xd7,0xcf,0x23,0x9d,0x1f,0xa0,0xb5,0x48, 0xbb,0xc8,0x40,0x19,0x38,0x17,0x23,0x1b,0x5a,0xd0,0xe2,0x6d,0x25,0x10,0xc7,0x3c, 0xd1,0xdd,0x72,0xd9,0x8a,0xb6,0x2,0xe7,0x22,0xb3,0x4d,0xea,0xa9,0x6,0x91,0x81, 0xf6,0x65,0xbf,0x40,0xae,0x16,0xab,0x80,0xc7,0xd0,0x74,0x67,0xc2,0xb8,0xb,0x9d, 0x9e,0x4b,0x2a,0x6b,0x9e,0x24,0xaa,0x45,0x64,0xa0,0x9b,0x63,0xcf,0x47,0x9,0x14, 0x56,0x1,0x8f,0x21,0xe9,0x6a,0x26,0x7b,0x10,0x99,0x2a,0xca,0x52,0x8,0xa5,0x5c, 0x54,0x93,0xc8,0x40,0xf1,0xed,0xe7,0x93,0x8e,0x37,0x29,0xe7,0xbb,0xcc,0xbd,0x7, 0x4f,0x22,0x87,0x77,0xa2,0x42,0xa7,0x43,0x50,0x6d,0x22,0x3,0x65,0xea,0x9c,0x83, 0x6d,0xe1,0xbd,0x10,0xe4,0x96,0xc9,0x7a,0x94,0x17,0x79,0x1a,0xca,0x93,0xac,0x3a, 0xaa,0x51,0x64,0x59,0xe0,0x56,0x24,0xb4,0x15,0x15,0x1e,0x4b,0x3e,0xea,0x51,0x65, 0xeb,0x37,0xd0,0x58,0x6f,0xc4,0xae,0x8,0x4d,0x45,0x49,0x7a,0x3c,0x59,0xb1,0x34, 0x23,0x13,0x40,0x5f,0x74,0x5d,0x4e,0x52,0x72,0x2d,0x3b,0xd2,0x8c,0x5c,0x63,0xcf, 0xa3,0x42,0x28,0x65,0xad,0xb4,0x53,0x4e,0xaa,0x55,0x64,0x20,0x73,0xc6,0x6f,0xd1, 0x9b,0x77,0x2a,0xc9,0x13,0xda,0x6a,0x14,0x51,0xd2,0x84,0x41,0x59,0xf3,0x24,0x51, 0xcd,0x22,0x3,0x55,0xb4,0xb9,0xe,0x45,0xbf,0x9e,0x8a,0x6d,0xa9,0xf2,0x42,0x69, 0xc2,0xae,0xea,0x64,0xa2,0xa8,0xc6,0x3d,0x59,0x67,0x9a,0xd0,0x8c,0x76,0x21,0x76, 0xf7,0x3e,0x39,0x79,0xa8,0x5,0x91,0x81,0x96,0xcc,0x85,0xc8,0x33,0x90,0xe8,0xa4, 0x8b,0x6a,0xa4,0x56,0x44,0x6,0x72,0x3f,0x5d,0xda,0xfe,0xc7,0x7a,0xf,0xd4,0x42, 0x7a,0x3c,0xf,0xe6,0xd4,0x92,0xc8,0x40,0xb3,0xd8,0x25,0xa8,0x40,0x72,0xc8,0x64, 0xde,0xce,0x7c,0x40,0xca,0x23,0x27,0x42,0x52,0x6b,0x22,0x3,0x19,0x3e,0x2f,0x42, 0x19,0x50,0x56,0xee,0xa7,0x55,0x18,0xdf,0xf2,0x91,0x26,0x6a,0x51,0x64,0xa0,0xe8, 0x86,0xf9,0x28,0x4c,0xc8,0x22,0x29,0xe5,0x39,0x52,0x92,0xae,0x56,0xe,0x6a,0x55, 0x64,0x10,0xdd,0x64,0xb7,0x98,0xb0,0x96,0xf6,0x15,0xc0,0x3d,0xa4,0x38,0x92,0x35, 0x34,0xb5,0x2c,0x32,0x80,0x67,0x90,0x53,0x7a,0x9,0x61,0x66,0xb4,0x56,0x54,0xba, 0xe9,0x8e,0x0,0x6d,0x55,0xd,0xd5,0x6e,0x8c,0x8d,0xc3,0x13,0x28,0x57,0xe0,0x5d, 0x74,0xbf,0x64,0x29,0xd5,0xa8,0x6f,0x41,0x4b,0x70,0xc5,0x2a,0x4d,0x27,0x91,0xba, 0x6c,0xb6,0x2c,0xd7,0xeb,0xa4,0x81,0x51,0xc0,0xc1,0xc0,0xc,0x60,0x2b,0xa,0xab, 0x4c,0xfd,0x2e,0x9a,0xbd,0xce,0x43,0x31,0x61,0x4e,0x7,0x5c,0x64,0x6b,0x93,0x1, 0x76,0x44,0x42,0x9b,0x4,0x8c,0x41,0x25,0x40,0xfb,0x75,0xf1,0xda,0x36,0x94,0x57, 0xf0,0x2a,0x5a,0x22,0xaf,0xc0,0xb6,0xcc,0x55,0x6a,0x71,0x91,0x75,0xcd,0x0,0x74, 0x99,0xc3,0xe,0xc0,0x44,0x74,0x43,0xf0,0x46,0x28,0xaa,0x23,0x8b,0x8a,0xc0,0xac, 0x44,0x41,0x92,0x7f,0x45,0x45,0xfb,0xca,0x7e,0x9d,0x4c,0x5a,0xf8,0x3f,0xa5,0xc, 0xd3,0x1a,0x2c,0xd2,0xe0,0xd,0x0,0x0,0x0,0x0,0x49,0x45,0x4e,0x44,0xae,0x42, 0x60,0x82, }; static const unsigned char qt_resource_name[] = { // MainForm.ui.qml 0x0,0xf, 0x5,0xe3,0xf8,0x3c, 0x0,0x4d, 0x0,0x61,0x0,0x69,0x0,0x6e,0x0,0x46,0x0,0x6f,0x0,0x72,0x0,0x6d,0x0,0x2e,0x0,0x75,0x0,0x69,0x0,0x2e,0x0,0x71,0x0,0x6d,0x0,0x6c, // PictureAnimation.qml 0x0,0x14, 0xa,0x96,0x30,0x5c, 0x0,0x50, 0x0,0x69,0x0,0x63,0x0,0x74,0x0,0x75,0x0,0x72,0x0,0x65,0x0,0x41,0x0,0x6e,0x0,0x69,0x0,0x6d,0x0,0x61,0x0,0x74,0x0,0x69,0x0,0x6f,0x0,0x6e,0x0,0x2e, 0x0,0x71,0x0,0x6d,0x0,0x6c, // images 0x0,0x6, 0x7,0x3,0x7d,0xc3, 0x0,0x69, 0x0,0x6d,0x0,0x61,0x0,0x67,0x0,0x65,0x0,0x73, // main.qml 0x0,0x8, 0x8,0x1,0x5a,0x5c, 0x0,0x6d, 0x0,0x61,0x0,0x69,0x0,0x6e,0x0,0x2e,0x0,0x71,0x0,0x6d,0x0,0x6c, // kone_arrow_up.png 0x0,0x11, 0xc,0x19,0xe8,0x27, 0x0,0x6b, 0x0,0x6f,0x0,0x6e,0x0,0x65,0x0,0x5f,0x0,0x61,0x0,0x72,0x0,0x72,0x0,0x6f,0x0,0x77,0x0,0x5f,0x0,0x75,0x0,0x70,0x0,0x2e,0x0,0x70,0x0,0x6e,0x0,0x67, // kone_arrow_down.png 0x0,0x13, 0xc,0x9e,0x29,0x87, 0x0,0x6b, 0x0,0x6f,0x0,0x6e,0x0,0x65,0x0,0x5f,0x0,0x61,0x0,0x72,0x0,0x72,0x0,0x6f,0x0,0x77,0x0,0x5f,0x0,0x64,0x0,0x6f,0x0,0x77,0x0,0x6e,0x0,0x2e,0x0,0x70, 0x0,0x6e,0x0,0x67, }; static const unsigned char qt_resource_struct[] = { // : 0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x4,0x0,0x0,0x0,0x1, // :/MainForm.ui.qml 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x0, // :/images 0x0,0x0,0x0,0x52,0x0,0x2,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x5, // :/main.qml 0x0,0x0,0x0,0x64,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x5,0x40, // :/PictureAnimation.qml 0x0,0x0,0x0,0x24,0x0,0x1,0x0,0x0,0x0,0x1,0x0,0x0,0x2,0xeb, // :/images/kone_arrow_up.png 0x0,0x0,0x0,0x7a,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x6,0x3, // :/images/kone_arrow_down.png 0x0,0x0,0x0,0xa2,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x17,0x13, }; #ifdef QT_NAMESPACE # define QT_RCC_PREPEND_NAMESPACE(name) ::QT_NAMESPACE::name # define QT_RCC_MANGLE_NAMESPACE0(x) x # define QT_RCC_MANGLE_NAMESPACE1(a, b) a##_##b # define QT_RCC_MANGLE_NAMESPACE2(a, b) QT_RCC_MANGLE_NAMESPACE1(a,b) # define QT_RCC_MANGLE_NAMESPACE(name) QT_RCC_MANGLE_NAMESPACE2( \ QT_RCC_MANGLE_NAMESPACE0(name), QT_RCC_MANGLE_NAMESPACE0(QT_NAMESPACE)) #else # define QT_RCC_PREPEND_NAMESPACE(name) name # define QT_RCC_MANGLE_NAMESPACE(name) name #endif #ifdef QT_NAMESPACE namespace QT_NAMESPACE { #endif bool qRegisterResourceData(int, const unsigned char *, const unsigned char *, const unsigned char *); bool qUnregisterResourceData(int, const unsigned char *, const unsigned char *, const unsigned char *); #ifdef QT_NAMESPACE } #endif int QT_RCC_MANGLE_NAMESPACE(qInitResources_qml)(); int QT_RCC_MANGLE_NAMESPACE(qInitResources_qml)() { QT_RCC_PREPEND_NAMESPACE(qRegisterResourceData) (0x01, qt_resource_struct, qt_resource_name, qt_resource_data); return 1; } int QT_RCC_MANGLE_NAMESPACE(qCleanupResources_qml)(); int QT_RCC_MANGLE_NAMESPACE(qCleanupResources_qml)() { QT_RCC_PREPEND_NAMESPACE(qUnregisterResourceData) (0x01, qt_resource_struct, qt_resource_name, qt_resource_data); return 1; } namespace { struct initializer { initializer() { QT_RCC_MANGLE_NAMESPACE(qInitResources_qml)(); } ~initializer() { QT_RCC_MANGLE_NAMESPACE(qCleanupResources_qml)(); } } dummy; }
317d39cfc1d8807139fe06ebd7014086a4ab2194
a42d43d34ac0b14caf8319136d8823c61f93cb13
/cpp-strings/cpp-strings/cpp-strings.cpp
db8321775e85117a9c587caa6e18ee7f34fad86a
[]
no_license
RAStoychev18/c--strings
65a1f92855d1f5a37cf5f167bc8cea9c10e6e5ab
ff78589f45ee8da6a567a6d5871e3fd49d1fc3b6
refs/heads/master
2022-10-26T09:06:17.963290
2020-06-12T20:20:08
2020-06-12T20:20:08
270,653,913
1
0
null
null
null
null
UTF-8
C++
false
false
499
cpp
cpp-strings.cpp
#include <iostream> #include <fstream> #include <vector> #include <string> #include <ctime> #include "Functions.h" #include "DataTypes.h" using namespace std; int main() { srand(time(NULL)); Genre geometry, animals, food, transoprt, sportsAndGames; ifstream geo, ani, fod, trans, sport; SetupFiles(geo, ani, fod, trans, sport, geometry, animals, food, transoprt, sportsAndGames); int correct = 0; while (Menu(geometry, animals, food, transoprt, sportsAndGames, correct)); }
0053e34d7fb74d5ac6d3f7363ef47aa447525f14
f8d41b5c66e8daa27121824bbb16cc827a785cc2
/Code/GraphMol/MolStandardize/Wrap/Tautomer.cpp
6979f6a4d4e3ec0ca4501cc14709aaea6b34fd00
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
greglandrum/rdkit
56a0e6531dd187308489122aaa67aa9907f9635e
0eacf4824833b31a49de7fa7ad3ae00c946b7f14
refs/heads/master
2023-08-31T23:59:33.246643
2023-03-23T09:57:25
2023-03-23T09:57:25
40,303,040
3
3
BSD-3-Clause
2023-09-07T11:01:54
2015-08-06T12:14:42
HTML
UTF-8
C++
false
false
20,959
cpp
Tautomer.cpp
// // Copyright (C) 2020 Greg Landrum // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #define NO_IMPORT_ARRAY #include <boost/python/suite/indexing/map_indexing_suite.hpp> #include <RDBoost/Wrap.h> #include <GraphMol/RDKitBase.h> #include <GraphMol/MolStandardize/MolStandardize.h> #include <GraphMol/MolStandardize/Tautomer.h> #include <sstream> namespace python = boost::python; using namespace RDKit; namespace { class PyTautomerEnumeratorResult { public: PyTautomerEnumeratorResult(const MolStandardize::TautomerEnumeratorResult &tr) : d_tr(new MolStandardize::TautomerEnumeratorResult(std::move(tr))) { python::list atList; python::list bndList; for (unsigned int i = 0; i < d_tr->modifiedAtoms().size(); ++i) { if (d_tr->modifiedAtoms().test(i)) { atList.append(i); } } for (unsigned int i = 0; i < d_tr->modifiedBonds().size(); ++i) { if (d_tr->modifiedBonds().test(i)) { bndList.append(i); } } d_atTuple = python::tuple(atList); d_bndTuple = python::tuple(bndList); } inline const std::vector<ROMOL_SPTR> *tautomers() const { return new std::vector<ROMOL_SPTR>(d_tr->tautomers()); } inline const std::vector<std::string> *smiles() const { return new std::vector<std::string>(d_tr->smiles()); } inline const MolStandardize::SmilesTautomerMap &smilesTautomerMap() const { return d_tr->smilesTautomerMap(); } inline MolStandardize::TautomerEnumeratorStatus status() const { return d_tr->status(); } inline python::tuple modifiedAtoms() const { return d_atTuple; } inline python::tuple modifiedBonds() const { return d_bndTuple; } inline const MolStandardize::TautomerEnumeratorResult::const_iterator begin() const { return d_tr->begin(); } inline const MolStandardize::TautomerEnumeratorResult::const_iterator end() const { return d_tr->end(); } inline int size() const { return d_tr->size(); } RDKit::ROMol *at(int pos) const { if (pos < 0) { pos += size(); } if (pos < 0 || pos >= size()) { PyErr_SetString(PyExc_IndexError, "index out of bounds"); python::throw_error_already_set(); return nullptr; } return new RDKit::ROMol(*d_tr->at(pos)); } const MolStandardize::TautomerEnumeratorResult *get() { return d_tr.get(); } private: boost::shared_ptr<MolStandardize::TautomerEnumeratorResult> d_tr; python::tuple d_atTuple; python::tuple d_bndTuple; }; class PyTautomerEnumeratorCallback : public MolStandardize::TautomerEnumeratorCallback, public python::wrapper<MolStandardize::TautomerEnumeratorCallback> { public: PyTautomerEnumeratorCallback() {} PyTautomerEnumeratorCallback(const python::object &pyCallbackObject) { PyTautomerEnumeratorCallback *pyCallback = python::extract<PyTautomerEnumeratorCallback *>(pyCallbackObject); *this = *pyCallback; d_pyCallbackObject = pyCallbackObject; pyCallback->d_cppCallback = this; } inline python::object getCallbackOverride() const { return get_override("__call__"); } bool operator()( const ROMol &mol, const MolStandardize::TautomerEnumeratorResult &res) override { PyTautomerEnumeratorResult pyRes(res); return getCallbackOverride()(boost::ref(mol), boost::ref(pyRes)); } python::object getPyCallbackObject() { return d_pyCallbackObject; } private: PyTautomerEnumeratorCallback *d_cppCallback; python::object d_pyCallbackObject; }; typedef boost::shared_ptr<MolStandardize::Tautomer> TAUT_SPTR; ROMol *getTautomerHelper(const TAUT_SPTR &self) { return new ROMol(*self->tautomer); } ROMol *getKekulizedHelper(const TAUT_SPTR &self) { return new ROMol(*self->kekulized); } python::tuple smilesTautomerMapKeysHelper( const MolStandardize::SmilesTautomerMap &self) { python::list keys; for (const auto &pair : self) { keys.append(pair.first); } return python::tuple(keys); } python::tuple smilesTautomerMapValuesHelper( const MolStandardize::SmilesTautomerMap &self) { python::list values; for (const auto &pair : self) { values.append(TAUT_SPTR(new MolStandardize::Tautomer(pair.second))); } return python::tuple(values); } python::tuple smilesTautomerMapItemsHelper( const MolStandardize::SmilesTautomerMap &self) { python::list items; for (const auto &pair : self) { items.append(python::make_tuple( pair.first, TAUT_SPTR(new MolStandardize::Tautomer(pair.second)))); } return python::tuple(items); } python::object getCallbackHelper(const MolStandardize::TautomerEnumerator &te) { PyTautomerEnumeratorCallback *cppCallback = dynamic_cast<PyTautomerEnumeratorCallback *>(te.getCallback()); python::object res; if (cppCallback) { res = cppCallback->getPyCallbackObject(); } return res; }; void setCallbackHelper(MolStandardize::TautomerEnumerator &te, PyObject *callback) { PRECONDITION(callback, "callback must not be NULL"); if (callback == Py_None) { te.setCallback(nullptr); return; } python::object callbackObject(python::handle<>(python::borrowed(callback))); python::extract<PyTautomerEnumeratorCallback *> extractCallback( callbackObject); if (extractCallback.check()) { if (!PyCallable_Check(extractCallback()->getCallbackOverride().ptr())) { PyErr_SetString(PyExc_AttributeError, "The __call__ attribute in the " "rdMolStandardize.TautomerEnumeratorCallback subclass " "must exist and be a callable method"); python::throw_error_already_set(); } else { te.setCallback(new PyTautomerEnumeratorCallback(callbackObject)); } } else { PyErr_SetString(PyExc_TypeError, "Expected an instance of a " "rdMolStandardize.TautomerEnumeratorCallback subclass"); python::throw_error_already_set(); } } std::string tautomerEnumeratorCallbackClassDoc = R"DOC(Create a derived class from this abstract base class and implement the __call__() method. The __call__() method is called in the innermost loop of the algorithm, and provides a mechanism to monitor or stop its progress. To have your callback called, pass an instance of your derived class to TautomerEnumerator.SetCallback())DOC"; MolStandardize::TautomerEnumerator *EnumeratorFromParams( const MolStandardize::CleanupParameters &params) { return new MolStandardize::TautomerEnumerator(params); } MolStandardize::TautomerEnumerator *createDefaultEnumerator() { MolStandardize::CleanupParameters ps; return EnumeratorFromParams(ps); } MolStandardize::TautomerEnumerator *copyEnumerator( const MolStandardize::TautomerEnumerator &other) { return new MolStandardize::TautomerEnumerator(other); } class pyobjFunctor { public: pyobjFunctor(python::object obj) : dp_obj(std::move(obj)) {} ~pyobjFunctor() = default; int operator()(const ROMol &m) { return python::extract<int>(dp_obj(boost::ref(m))); } private: python::object dp_obj; }; ROMol *canonicalizeHelper(const MolStandardize::TautomerEnumerator &self, const ROMol &mol) { return self.canonicalize(mol); } ROMol *canonicalizeHelper2(const MolStandardize::TautomerEnumerator &self, const ROMol &mol, python::object scoreFunc) { pyobjFunctor ftor(scoreFunc); return self.canonicalize(mol, ftor); } inline std::vector<ROMOL_SPTR> extractPythonIterable(const python::object &o) { if (!PyObject_HasAttrString(o.ptr(), "__iter__")) { PyErr_SetString(PyExc_TypeError, "the passed object should be an iterable of Mol objects"); python::throw_error_already_set(); return std::vector<ROMOL_SPTR>(); } return std::vector<ROMOL_SPTR>(python::stl_input_iterator<ROMOL_SPTR>(o), python::stl_input_iterator<ROMOL_SPTR>()); } ROMol *pickCanonicalHelper(const MolStandardize::TautomerEnumerator &self, const python::object &o) { python::extract<PyTautomerEnumeratorResult *> e(o); if (e.check()) { return self.pickCanonical(*e()->get()); } return self.pickCanonical(extractPythonIterable(o)); } ROMol *pickCanonicalHelper2(const MolStandardize::TautomerEnumerator &self, const python::object &o, python::object scoreFunc) { pyobjFunctor ftor(scoreFunc); python::extract<PyTautomerEnumeratorResult *> e(o); if (e.check()) { return self.pickCanonical(*e()->get(), ftor); } return self.pickCanonical(extractPythonIterable(o), ftor); } PyTautomerEnumeratorResult *enumerateHelper( const MolStandardize::TautomerEnumerator &self, const ROMol &mol) { return new PyTautomerEnumeratorResult(self.enumerate(mol)); } } // namespace struct tautomer_wrapper { static void wrap() { python::enum_<MolStandardize::TautomerEnumeratorStatus>( "TautomerEnumeratorStatus") .value("Completed", MolStandardize::TautomerEnumeratorStatus::Completed) .value("MaxTautomersReached", MolStandardize::TautomerEnumeratorStatus::MaxTautomersReached) .value("MaxTransformsReached", MolStandardize::TautomerEnumeratorStatus::MaxTransformsReached) .value("Canceled", MolStandardize::TautomerEnumeratorStatus::Canceled); python::class_<PyTautomerEnumeratorCallback, boost::noncopyable>( "TautomerEnumeratorCallback", tautomerEnumeratorCallbackClassDoc.c_str(), python::init<>()) .def("__call__", python::pure_virtual(&PyTautomerEnumeratorCallback::operator()), "This must be implemented in the derived class. " "Return True if the tautomer enumeration should continue; " "False if the tautomer enumeration should stop.\n"); python::class_<MolStandardize::Tautomer, TAUT_SPTR>( "Tautomer", "used to hold the aromatic and kekulized versions " "of each tautomer", python::no_init) .add_property( "tautomer", python::make_function( &getTautomerHelper, python::return_value_policy<python::manage_new_object>()), "aromatic version of the tautomer") .add_property( "kekulized", python::make_function( &getKekulizedHelper, python::return_value_policy<python::manage_new_object>()), "kekulized version of the tautomer"); python::class_<MolStandardize::SmilesTautomerMap, boost::noncopyable>( "SmilesTautomerMap", "maps SMILES strings to the respective Tautomer objects", python::no_init) .def(python::map_indexing_suite<MolStandardize::SmilesTautomerMap, true>()) .def("keys", &smilesTautomerMapKeysHelper) .def("values", &smilesTautomerMapValuesHelper) .def("items", &smilesTautomerMapItemsHelper); python::class_<PyTautomerEnumeratorResult, boost::noncopyable>( "TautomerEnumeratorResult", "used to return tautomer enumeration results", python::no_init) .add_property( "tautomers", python::make_function( &PyTautomerEnumeratorResult::tautomers, python::return_value_policy<python::manage_new_object>()), "tautomers generated by the enumerator") .add_property( "smiles", python::make_function( &PyTautomerEnumeratorResult::smiles, python::return_value_policy<python::manage_new_object>()), "SMILES of tautomers generated by the enumerator") .add_property("smilesTautomerMap", python::make_function( &PyTautomerEnumeratorResult::smilesTautomerMap, python::return_value_policy< python::reference_existing_object>()), "dictionary mapping SMILES strings to the respective " "Tautomer objects") .add_property("status", &PyTautomerEnumeratorResult::status, "whether the enumeration completed or not; see " "TautomerEnumeratorStatus for possible values") .add_property( "modifiedAtoms", python::make_function(&PyTautomerEnumeratorResult::modifiedAtoms), "tuple of atom indices modified by the transforms") .add_property( "modifiedBonds", python::make_function(&PyTautomerEnumeratorResult::modifiedBonds), "tuple of bond indices modified by the transforms") .def("__call__", &PyTautomerEnumeratorResult::tautomers, python::return_value_policy<python::manage_new_object>(), "tautomers generated by the enumerator") .def("__iter__", python::range(&PyTautomerEnumeratorResult::begin, &PyTautomerEnumeratorResult::end)) .def("__getitem__", &PyTautomerEnumeratorResult::at, python::return_value_policy<python::manage_new_object>()) .def("__len__", &PyTautomerEnumeratorResult::size); python::class_<MolStandardize::TautomerEnumerator, boost::noncopyable>( "TautomerEnumerator", python::no_init) .def("__init__", python::make_constructor(createDefaultEnumerator)) .def("__init__", python::make_constructor(EnumeratorFromParams)) .def("__init__", python::make_constructor(copyEnumerator)) .def("Enumerate", &enumerateHelper, (python::arg("self"), python::arg("mol")), python::return_value_policy<python::manage_new_object>(), R"DOC(Generates the tautomers for a molecule. The enumeration rules are inspired by the publication: M. Sitzmann et al., “Tautomerism in Large Databases.”, JCAMD 24:521 (2010) https://doi.org/10.1007/s10822-010-9346-4 Note: the definitions used here are that the atoms modified during tautomerization are the atoms at the beginning and end of each tautomer transform (the H "donor" and H "acceptor" in the transform) and the bonds modified during transformation are any bonds whose order is changed during the tautomer transform (these are the bonds between the "donor" and the "acceptor").)DOC") .def("Canonicalize", &canonicalizeHelper, (python::arg("self"), python::arg("mol")), python::return_value_policy<python::manage_new_object>(), R"DOC(Returns the canonical tautomer for a molecule. The default scoring scheme is inspired by the publication: M. Sitzmann et al., “Tautomerism in Large Databases.”, JCAMD 24:521 (2010) https://doi.org/10.1007/s10822-010-9346-4 Note that the canonical tautomer is very likely not the most stable tautomer for any given conditions. The default scoring rules are designed to produce "reasonable" tautomers, but the primary concern is that the results are canonical: you always get the same canonical tautomer for a molecule regardless of what the input tautomer or atom ordering were.)DOC") .def( "Canonicalize", &canonicalizeHelper2, (python::arg("self"), python::arg("mol"), python::arg("scoreFunc")), python::return_value_policy<python::manage_new_object>(), "picks the canonical tautomer from an iterable of molecules " "using a custom scoring function") .def("PickCanonical", &pickCanonicalHelper, (python::arg("self"), python::arg("iterable")), python::return_value_policy<python::manage_new_object>(), "picks the canonical tautomer from an iterable of molecules") .def("PickCanonical", &pickCanonicalHelper2, (python::arg("self"), python::arg("iterable"), python::arg("scoreFunc")), python::return_value_policy<python::manage_new_object>(), "returns the canonical tautomer for a molecule using a custom " "scoring function") .def("ScoreTautomer", &MolStandardize::TautomerScoringFunctions::scoreTautomer, (python::arg("mol")), "returns the score for a tautomer using the default scoring " "scheme.") .staticmethod("ScoreTautomer") .def("SetMaxTautomers", &MolStandardize::TautomerEnumerator::setMaxTautomers, (python::arg("self"), python::arg("maxTautomers")), "set the maximum number of tautomers to be generated.") .def("GetMaxTautomers", &MolStandardize::TautomerEnumerator::getMaxTautomers, (python::arg("self")), "returns the maximum number of tautomers to be generated.") .def("SetMaxTransforms", &MolStandardize::TautomerEnumerator::setMaxTransforms, (python::arg("self"), python::arg("maxTransforms")), "set the maximum number of transformations to be applied. " "This limit is usually hit earlier than the maxTautomers limit " "and leads to a more linear scaling of CPU time with increasing " "number of tautomeric centers (see Sitzmann et al.).") .def("GetMaxTransforms", &MolStandardize::TautomerEnumerator::getMaxTransforms, (python::arg("self")), "returns the maximum number of transformations to be applied.") .def("SetRemoveSp3Stereo", &MolStandardize::TautomerEnumerator::setRemoveSp3Stereo, (python::arg("self"), python::arg("removeSp3Stereo")), "set to True if you wish stereochemistry information " "to be removed from sp3 atoms involved in tautomerism. " "This means that S-aminoacids will lose their stereochemistry " "after going through tautomer enumeration because of the " "amido-imidol tautomerism. This defaults to True in RDKit, " "and to False in the workflow described by Sitzmann et al.") .def("GetRemoveSp3Stereo", &MolStandardize::TautomerEnumerator::getRemoveSp3Stereo, (python::arg("self")), "returns whether stereochemistry information will be removed from " "sp3 atoms involved in tautomerism.") .def("SetRemoveBondStereo", &MolStandardize::TautomerEnumerator::setRemoveBondStereo, (python::arg("self"), python::arg("removeBondStereo")), "set to True if you wish stereochemistry information " "to be removed from double bonds involved in tautomerism. " "This means that enols will lose their E/Z stereochemistry " "after going through tautomer enumeration because of the " "keto-enolic tautomerism. This defaults to True in the " "RDKit and also in the workflow described by Sitzmann et al.") .def("GetRemoveBondStereo", &MolStandardize::TautomerEnumerator::getRemoveBondStereo, (python::arg("self")), "returns whether stereochemistry information " "will be removed from double bonds involved in tautomerism.") .def("SetReassignStereo", &MolStandardize::TautomerEnumerator::setReassignStereo, (python::arg("self"), python::arg("reassignStereo")), "set to True if you wish AssignStereochemistry to be called " "on each tautomer generated by the Enumerate() method. " "This defaults to True.") .def("GetReassignStereo", &MolStandardize::TautomerEnumerator::getReassignStereo, (python::arg("self")), "returns whether AssignStereochemistry will be called " "on each tautomer generated by the Enumerate() method.") .def("SetCallback", &setCallbackHelper, "Pass an instance of a class derived from\n" "TautomerEnumeratorCallback, which must implement the\n" "__call__() method.") .def("GetCallback", &getCallbackHelper, "Get the TautomerEnumeratorCallback subclass instance,\n" "or None if none was set.") .def_readonly( "tautomerScoreVersion", MolStandardize::TautomerScoringFunctions::tautomerScoringVersion); python::def("GetV1TautomerEnumerator", MolStandardize::getV1TautomerEnumerator, "return a TautomerEnumerator using v1 of the enumeration rules", python::return_value_policy<python::manage_new_object>()); } }; void wrap_tautomer() { tautomer_wrapper::wrap(); }
1bd01d2300cab1bdddabaa7c60af5be84178d1fa
ddc6f9bbae74b509480cc3296c48d80c663bb133
/HelloWorldCPP/PurchaseOrder.cpp
c0cb74b989513895bbc1f9f324b2c8812e54af4e
[]
no_license
suwatch/cfexts
07c96a54fa30582290f2879a7bbd2dd6ef0db820
73f59991639fb6f03244c106afaea0b8b7595a8b
refs/heads/master
2016-08-03T19:26:42.726058
2013-05-05T01:05:14
2013-05-05T01:05:14
9,862,136
1
0
null
null
null
null
UTF-8
C++
false
false
227
cpp
PurchaseOrder.cpp
#include "stdafx.h" #include "PurchaseOrder.h" PurchaseOrder::PurchaseOrder(int id) { this->Id = id; } PurchaseOrder::~PurchaseOrder() { } void PurchaseOrder::Print() { printf("PurchaseOrder: Id=%d\n", this->Id); }
15614265672add90ec5c794ba4ea6d99ed362583
02b187d56a2c6a71480135fcc4d24d0903c37ebe
/Baekjoon/7569.cpp
b4bcf49efcf67d72e366dba5c0829ad7e63a55f1
[]
no_license
mbkim95/Algorithm
13fdab15746dbeddd147986a56f4452430cc5963
5cb9ad2a8af9079725782b98ed068c711501f596
refs/heads/master
2023-04-27T20:33:04.569574
2023-04-16T02:50:50
2023-04-16T02:50:50
154,241,473
6
0
null
null
null
null
UTF-8
C++
false
false
1,327
cpp
7569.cpp
#include <iostream> #include <queue> using namespace std; struct tomato { int x, y, z; }; int n, m, h, mt, map[101][101][101], v[101][101][101]; const int dx[] = {-1, 0, 1, 0, 0, 0}, dy[] = {0, -1, 0, 1, 0, 0}, dz[] = {0, 0, 0, 0, -1, 1}; queue<tomato> q; int bfs() { int day = 0, cnt = 0; if(cnt == mt) return 0; while (!q.empty()) { int size = q.size(); if(cnt == mt) return day; while (size--) { tomato cur = q.front(); q.pop(); for (int i = 0; i < 6; i++) { int nx = cur.x + dx[i]; int ny = cur.y + dy[i]; int nz = cur.z + dz[i]; if (nx < 0 || nx > m - 1 || ny < 0 || ny > n - 1 || nz < 0 || nz > h - 1) continue; if (!v[nz][ny][nx] && !map[nz][ny][nx]) { tomato t = {nx, ny, nz}; q.push(t); cnt++; v[nz][ny][nx] = 1; } } } day++; } return -1; } int main() { ios_base::sync_with_stdio(0); cin.tie(0); cin >> m >> n >> h; for (int i = 0; i < h; i++) for (int j = 0; j < n; j++) for (int k = 0; k < m; k++) { cin >> map[i][j][k]; if (map[i][j][k] == 1) { v[i][j][k] = 1; tomato t = {k, j, i}; q.push(t); } if(map[i][j][k] == 0) mt++; } cout << bfs() << '\n'; return 0; }
69c36a65fd45729d6fce11f305570ceb6ea825ce
208ad0069c81125951007be2f8f9d7613c1b8a98
/processor.cpp
101729019d7993c89b99d0501f57914a377a88dc
[ "MIT" ]
permissive
xiaohaoxiang/temu
97c95c837f4b440753d08207eea4175b9f7a3949
7adba793ef650c79cd8c7b86a04e19751db25534
refs/heads/main
2023-02-07T08:15:33.173791
2020-12-30T09:37:33
2020-12-30T09:37:33
311,633,212
0
0
null
null
null
null
UTF-8
C++
false
false
17,287
cpp
processor.cpp
#include "processor.h" #include "defs.h" #include <cstring> #include <limits> const char *const regname[] = {"$zero", "$at", "$v0", "$v1", "$a0", "$a1", "$a2", "$a3", "$t0", "$t1", "$t2", "$t3", "$t4", "$t5", "$t6", "$t7", "$s0", "$s1", "$s2", "$s3", "$s4", "$s5", "$s6", "$s7", "$t8", "$t9", "$k0", "$k1", "$gp", "$sp", "$fp", "$ra"}; void processor::exec_typei(instruction instr) { auto cur = instr.i; switch (cur.op) { case 0b000100U: { // beq exec_beq(instr); break; } case 0b000101U: { // bne exec_bne(instr); break; } case 0b000001U: { switch (cur.rt) { case 0b00000U: { // bltz exec_bltz(instr); break; } case 0b00001U: { // bgez exec_bgez(instr); break; } case 0b10000U: { // bltzal exec_bltzal(instr); break; } case 0b10001U: { // bgezal exec_bgezal(instr); break; } } break; } case 0b000110U: { // blez exec_blez(instr); break; } case 0b000111U: { // bgtz exec_bgtz(instr); break; } case 0b001000U: { // addi exec_addi(instr); break; } case 0b001001U: { // addiu exec_addiu(instr); break; } case 0b001010U: { // slti exec_slti(instr); break; } case 0b001011U: { // sltiu exec_sltiu(instr); break; } case 0b001100U: { // andi exec_andi(instr); break; } case 0b001101U: { // ori exec_ori(instr); break; } case 0b001110U: { // xori exec_xori(instr); break; } case 0b001111U: { // lui exec_lui(instr); break; } case 0b100000U: { // lb exec_lb(instr); break; } case 0b100001U: { // lh exec_lh(instr); break; } case 0b100011U: { // lw exec_lw(instr); break; } case 0b100100U: { // lbu exec_lbu(instr); break; } case 0b100101U: { // lhu exec_lhu(instr); break; } case 0b101000U: { // sb exec_sb(instr); break; } case 0b101001U: { // sh exec_sh(instr); break; } case 0b101011U: { // sw exec_sw(instr); break; } } } void processor::exec_typer(instruction instr) { auto cur = instr.r; if (cur.op == 0) { switch (cur.func) { case 0b000000U: { // sll exec_sll(instr); break; } case 0b000010U: { // srl exec_srl(instr); break; } case 0b000011U: { // sra exec_sra(instr); break; } case 0b000100U: { // sllv exec_sllv(instr); break; } case 0b000110U: { // srlv exec_srlv(instr); break; } case 0b000111U: { // srav exec_srav(instr); break; } case 0b001000U: { // jr exec_jr(instr); break; } case 0b001001U: { // jalr exec_jalr(instr); break; } case 0b001100U: { // syscall exec_syscall(instr); break; } case 0b010000U: { // mfhi exec_mfhi(instr); break; } case 0b010001U: { // mthi exec_mthi(instr); break; } case 0b010010U: { // mflo exec_mflo(instr); break; } case 0b010011U: { // mtlo exec_mtlo(instr); break; } case 0b011000U: { // mult exec_mult(instr); break; } case 0b011001U: { // multu exec_multu(instr); break; } case 0b011010U: { // div exec_div(instr); break; } case 0b011011U: { // divu exec_divu(instr); break; } case 0b100000U: { // add exec_add(instr); break; } case 0b100001U: { // addu exec_addu(instr); break; } case 0b100010U: { // sub exec_sub(instr); break; } case 0b100011U: { // subu exec_subu(instr); break; } case 0b100100U: { // and exec_and(instr); break; } case 0b100101U: { // or exec_or(instr); break; } case 0b100110U: { // xor exec_xor(instr); break; } case 0b100111U: { // nor exec_nor(instr); break; } case 0b101010U: { // slt exec_slt(instr); break; } case 0b101011U: { // sltu exec_sltu(instr); break; } } } else if (cur.op == 0b010000U) { switch (cur.rs) { case 0b00000U: { // mfc0 exec_mfc0(instr); break; } case 0b00100U: { // mtc0 exec_mtc0(instr); break; } case 0b10000U: { // eret exec_eret(instr); break; } } } } void processor::exec_typej(instruction instr) { auto cur = instr.j; switch (cur.op) { case 0b000010U: { // j exec_j(instr); break; } case 0b000011U: { // jal exec_jal(instr); break; } } } #define instr_def(name) inline void processor::exec_##name(instruction instr) instr_def(beq) { if (regs.reg[instr.i.rs]._32 == regs.reg[instr.i.rt]._32) { const int32_t offset = signedext(instr.i.imm, 16, 32); jump(regs.pc + (offset << 2)); } } instr_def(bne) { if (regs.reg[instr.i.rs]._32 != regs.reg[instr.i.rt]._32) { const int32_t offset = signedext(instr.i.imm, 16, 32); jump(regs.pc + (offset << 2)); } } instr_def(bltz) { if (uint32_t(regs.reg[instr.i.rs]._32) < 0) { const int32_t offset = signedext(instr.i.imm, 16, 32); jump(regs.pc + (offset << 2)); } } instr_def(bgez) { if (uint32_t(regs.reg[instr.i.rs]._32) >= 0) { const int32_t offset = signedext(instr.i.imm, 16, 32); jump(regs.pc + (offset << 2)); } } instr_def(bltzal) { regs.reg[$ra]._32 = regs.pc + 4U; if (uint32_t(regs.reg[instr.i.rs]._32) < 0) { const int32_t offset = signedext(instr.i.imm, 16, 32); jump(regs.pc + (offset << 2)); } } instr_def(bgezal) { regs.reg[$ra]._32 = regs.pc + 4U; if (uint32_t(regs.reg[instr.i.rs]._32) >= 0) { const int32_t offset = signedext(instr.i.imm, 16, 32); jump(regs.pc + (offset << 2)); } } instr_def(blez) { if (uint32_t(regs.reg[instr.i.rs]._32) <= 0) { const int32_t offset = signedext(instr.i.imm, 16, 32); jump(regs.pc + (offset << 2)); } } instr_def(bgtz) { if (uint32_t(regs.reg[instr.i.rs]._32) > 0) { const int32_t offset = signedext(instr.i.imm, 16, 32); jump(regs.pc + (offset << 2)); } } instr_def(addi) { int64_t sum = int64_t(regs.reg[instr.i.rs]._32) + signedext(instr.i.imm, 16, 64); if (sum < std::numeric_limits<int32_t>::min() || std::numeric_limits<int32_t>::max() < sum) { // signal exception(integer overflow) exception(exc_ov); } else { regs.reg[instr.i.rt]._32 = uint32_t(sum); } } instr_def(addiu) { regs.reg[instr.i.rt]._32 = regs.reg[instr.i.rs]._32 + signedext(instr.i.imm, 16, 32); } instr_def(slti) { regs.reg[instr.i.rt]._32 = int32_t(regs.reg[instr.i.rs]._32) < signedext(instr.i.imm, 16, 32); } instr_def(sltiu) { regs.reg[instr.i.rt]._32 = regs.reg[instr.i.rs]._32 < uint32_t(signedext(instr.i.imm, 16, 32)); } instr_def(andi) { regs.reg[instr.i.rt]._32 = regs.reg[instr.i.rs]._32 & unsignedext(instr.i.imm, 16, 32); } instr_def(ori) { regs.reg[instr.i.rt]._32 = regs.reg[instr.i.rs]._32 | unsignedext(instr.i.imm, 16, 32); } instr_def(xori) { regs.reg[instr.i.rt]._32 = regs.reg[instr.i.rs]._32 ^ unsignedext(instr.i.imm, 16, 32); } instr_def(lui) { regs.reg[instr.i.rt]._32 = uint32_t(instr.i.imm) << 16; } instr_def(lb) { uint32_t addr = uint32_t(signedext(instr.i.imm, 16, 32) + regs.reg[instr.i.rs]._32); uint8_t membyte = uint8_t(mem.mem_read<1>(addr)); regs.reg[instr.i.rt]._32 = signedext(membyte, 8, 32); } instr_def(lh) { uint32_t addr = uint32_t(signedext(instr.i.imm, 16, 32) + regs.reg[instr.i.rs]._32); if (addr & 1U) { // signal exception(address error) exception(exc_adel); } else { uint16_t memhalfword = uint16_t(mem.mem_read<2>(addr)); regs.reg[instr.i.rt]._32 = signedext(memhalfword, 16, 32); } } instr_def(lw) { uint32_t addr = uint32_t(signedext(instr.i.imm, 16, 32) + regs.reg[instr.i.rs]._32); if (addr & 3U) { // signal exception(address error) exception(exc_adel); } else { uint32_t memword = mem.mem_read<4>(addr); regs.reg[instr.i.rt]._32 = memword; } } instr_def(lbu) { uint32_t addr = uint32_t(signedext(instr.i.imm, 16, 32) + regs.reg[instr.i.rs]._32); regs.reg[instr.i.rt]._32 = mem.mem_read<1>(addr); } instr_def(lhu) { uint32_t addr = uint32_t(signedext(instr.i.imm, 16, 32) + regs.reg[instr.i.rs]._32); if (addr & 1U) { // signal exception(address error) exception(exc_adel); } else { regs.reg[instr.i.rt]._32 = mem.mem_read<2>(addr); } } instr_def(sb) { uint32_t addr = uint32_t(signedext(instr.i.imm, 16, 32) + regs.reg[instr.i.rs]._32); mem.mem_write<1>(addr, unsignedext(regs.reg[instr.i.rt]._8, 8, 32)); } instr_def(sh) { uint32_t addr = uint32_t(signedext(instr.i.imm, 16, 32) + regs.reg[instr.i.rs]._32); if (addr & 1U) { // signal exception(address error) exception(exc_ades); } else { mem.mem_write<2>(addr, unsignedext(regs.reg[instr.i.rt]._16, 16, 32)); } } instr_def(sw) { uint32_t addr = uint32_t(signedext(instr.i.imm, 16, 32) + regs.reg[instr.i.rs]._32); if (addr & 3U) { // signal exception(address error) exception(exc_ades); } else { mem.mem_write<4>(addr, regs.reg[instr.i.rt]._32); } } instr_def(sll) { regs.reg[instr.r.rd]._32 = regs.reg[instr.r.rt]._32 << instr.r.sa; } instr_def(srl) { regs.reg[instr.r.rd]._32 = regs.reg[instr.r.rt]._32 >> instr.r.sa; } instr_def(sra) { regs.reg[instr.r.rd]._32 = int32_t(regs.reg[instr.r.rt]._32) >> instr.r.sa; } instr_def(sllv) { regs.reg[instr.r.rd]._32 = regs.reg[instr.r.rt]._32 << (regs.reg[instr.r.rs]._32 & 0b11111U); } instr_def(srlv) { regs.reg[instr.r.rd]._32 = regs.reg[instr.r.rt]._32 >> (regs.reg[instr.r.rs]._32 & 0b11111U); } instr_def(srav) { regs.reg[instr.r.rd]._32 = int32_t(regs.reg[instr.r.rt]._32) >> (regs.reg[instr.r.rs]._32 & 0b11111U); } instr_def(jr) { jump(regs.reg[instr.r.rs]._32); } instr_def(jalr) { regs.reg[instr.r.rd]._32 = regs.pc + 4U; jump(regs.reg[instr.r.rs]._32); } instr_def(syscall) { // signal exception(system call) exception(exc_sys); } instr_def(mfhi) { regs.reg[instr.r.rd]._32 = regs.hi; } instr_def(mthi) { regs.hi = regs.reg[instr.r.rs]._32; } instr_def(mflo) { regs.reg[instr.r.rd]._32 = regs.lo; } instr_def(mtlo) { regs.lo = regs.reg[instr.r.rs]._32; } instr_def(mult) { int64_t prod = int64_t(regs.reg[instr.r.rs]._32) * int64_t(regs.reg[instr.r.rt]._32); regs.lo = uint32_t(prod); regs.hi = uint32_t(prod >> 32); } instr_def(multu) { uint64_t prod = regs.reg[instr.r.rs]._32 * regs.reg[instr.r.rt]._32; regs.lo = uint32_t(prod); regs.hi = uint32_t(prod >> 32); } instr_def(div) { int32_t a = int32_t(regs.reg[instr.r.rs]._32), b = int32_t(regs.reg[instr.r.rt]._32); if (b == 0) { regs.lo = 0U; regs.hi = 0U; } else { int32_t q = a / b, r = a % b; regs.lo = uint32_t(q); regs.hi = uint32_t(r); } } instr_def(divu) { uint32_t a = regs.reg[instr.r.rs]._32, b = regs.reg[instr.r.rt]._32; if (b == 0) { regs.lo = 0U; regs.hi = 0U; } else { uint32_t q = a / b, r = a % b; regs.lo = q; regs.hi = r; } } instr_def(add) { int64_t sum = int64_t(regs.reg[instr.r.rs]._32) + int64_t(regs.reg[instr.r.rt]._32); if (sum < std::numeric_limits<int32_t>::min() || std::numeric_limits<int32_t>::max() < sum) { // signal exception(integer overflow) exception(exc_ov); } else { regs.reg[instr.r.rd]._32 = uint32_t(sum); } } instr_def(addu) { regs.reg[instr.r.rd]._32 = regs.reg[instr.r.rs]._32 + regs.reg[instr.r.rt]._32; } instr_def(sub) { int64_t diff = int64_t(regs.reg[instr.r.rs]._32) - int64_t(regs.reg[instr.r.rt]._32); if (diff < std::numeric_limits<int32_t>::min() || std::numeric_limits<int32_t>::max() < diff) { // signal exception(integer overflow) exception(exc_ov); } else { regs.reg[instr.r.rd]._32 = uint32_t(diff); } } instr_def(subu) { regs.reg[instr.r.rd]._32 = regs.reg[instr.r.rs]._32 - regs.reg[instr.r.rt]._32; } instr_def(and) { regs.reg[instr.r.rd]._32 = regs.reg[instr.r.rs]._32 & regs.reg[instr.r.rt]._32; } instr_def(or) { regs.reg[instr.r.rd]._32 = regs.reg[instr.r.rs]._32 | regs.reg[instr.r.rt]._32; } instr_def(xor) { regs.reg[instr.r.rd]._32 = regs.reg[instr.r.rs]._32 ^ regs.reg[instr.r.rt]._32; } instr_def(nor) { regs.reg[instr.r.rd]._32 = ~(regs.reg[instr.r.rs]._32 | regs.reg[instr.r.rt]._32); } instr_def(slt) { regs.reg[instr.r.rd]._32 = int32_t(regs.reg[instr.r.rs]._32) < int32_t(regs.reg[instr.r.rt]._32); } instr_def(sltu) { regs.reg[instr.r.rd]._32 = regs.reg[instr.r.rs]._32 < regs.reg[instr.r.rt]._32; } instr_def(mfc0) { uint32_t val; switch (instr.r.rd) { case $badvaddr: { val = regs.badvaddr; break; } case $status: { val = regs.status.val; break; } case $cause: { val = regs.cause.val; break; } case $epc: { val = regs.epc; break; } default: { val = 0; break; } } regs.reg[instr.r.rt]._32 = val; } instr_def(mtc0) { static uint32_t nulldst; uint32_t &ref = [&]() -> uint32_t & { switch (instr.r.rd) { case $badvaddr: { return regs.badvaddr; } case $status: { return regs.status.val; } case $cause: { return regs.cause.val; } case $epc: { return regs.epc; } default: { return nulldst; } } }(); ref = regs.reg[instr.r.rt]._32; } instr_def(eret) { regs.status.field.exl = false; exception_occurred = false; jump(regs.epc); } instr_def(j) { jump((regs.pc & 0xF0000000) | (instr.j.addr << 2)); } instr_def(jal) { regs.reg[$ra]._32 = regs.pc + 4U; jump((regs.pc & 0xF0000000) | (instr.j.addr << 2)); } #undef instr_def void processor::exception(uint32_t exccode) { if (!regs.status.field.exl) { regs.status.field.exl = true; if (in_delay_slot) { regs.epc = regs.pc - 8U; regs.cause.field.bd = true; } else { regs.epc = regs.pc - 4U; regs.cause.field.bd = false; } } else if (exccode == exc_int) { return; } exception_occurred = true; regs.cause.field.exccode = exccode; regs.badvaddr = regs.pc - 4U; if (exccode == exc_int) { regs.pc = intaddr; } else { regs.pc = excaddr; } } void processor::jump(uint32_t target) { if (delayed_branches) { in_delay_slot = true; exec(mem.mem_read<4>(regs.pc)); in_delay_slot = false; if (!exception_occurred) { regs.pc = target; } } else { regs.pc = target; } } processor::processor(ram &mem, bool delayed_branches) : mem(mem), in_delay_slot(false), exception_occurred(false), delayed_branches(delayed_branches) { std::memset(&regs, 0, sizeof(regs)); } regfile &processor::get_regs() { return regs; } const regfile &processor::get_regs() const { return regs; } ram &processor::get_mem() { return mem; } const ram &processor::get_mem() const { return mem; } void processor::exec(instruction instr) { uint32_t op = instr.r.op; regs.pc += 4U; if (op == 0b000000U || op == 0b010000U) { // r type exec_typer(instr); } else if (op == 0b000010U || op == 0b000011U) { // j type exec_typej(instr); } else { // i type exec_typei(instr); } }
5d900c982e23f689aca348d22fe486b3392e8f5c
592c8ae293cfc4418b086226843bdeeeeae60899
/2020S/Luogu/P1022.cpp
e70a4e936900fd79b209e25287123600460483f4
[ "MIT" ]
permissive
Magic-Xin/Coding
d60c342c56be9e790b612d76b4c4ea77e8f33437
19a27cf248069b92a1ef6fbc26effce5dd984221
refs/heads/master
2022-11-25T03:34:35.328418
2022-09-05T11:24:29
2022-09-05T11:24:29
209,703,898
15
2
MIT
2022-11-22T10:13:25
2019-09-20T04:15:48
C++
UTF-8
C++
false
false
1,080
cpp
P1022.cpp
#include<bits/stdc++.h> #include<stdio.h> using namespace std; char c,a; int f = 1, now = 1, k, b, x; bool r; double sum; int main(){ while(cin >> c) { if(c == '-'){ b += now * f * x; x = 0; f = -1; r = 0; } if(c == '+'){ b += now * f * x; x = 0; f = 1; r = 0; } if(c == '='){ b += now * f * x; x = 0; f = 1; now = -1; r = 0; } if(c >= 'a' && c <= 'z') { if(r) { k += now * f * x; x = 0; } else{ k += now * f; } a = c; r = 0; } if(c >= '0' && c <= '9'){ x = x * 10 + c - '0'; r = 1; } } b += now * f * x; sum = double(-b * 1.0 / k); if(sum == -0.0){ printf("%c=0.000", a); } else{ printf("%c=%.3lf", a, sum); } return 0; }
7605c8324b37935c11e55ae29de64f75fb569728
4d1a438ee0c80053e33431d10683ce4872118957
/mugshot-dependencies/trunk/airbag/src/client/mac/handler/exception_handler_test.cc
0fbe1d82c0b13ef4ddda59be735d80ec6730719b
[ "BSD-3-Clause" ]
permissive
nihed/magnetism
7a5223e7dd0ae172937358c1b72df7e9ec5f28b8
c64dfb9b221862e81c9e77bb055f65dcee422027
refs/heads/master
2016-09-05T20:01:07.262277
2009-04-29T06:48:39
2009-04-29T06:48:39
39,454,577
1
0
null
null
null
null
UTF-8
C++
false
false
3,177
cc
exception_handler_test.cc
// // Copyright (c) 2006, Google Inc. // 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 Google Inc. 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. /* g++ -framework CoreFoundation -I../../.. \ ../../minidump_file_writer.cc \ ../../../common/convert_UTF.c \ ../../../common/string_conversion.cc \ ../../../common/mac/string_utilities.cc \ exception_handler.cc \ minidump_generator.cc \ exception_handler_test.cc \ -o exception_handler_test */ #include <pthread.h> #include <pwd.h> #include <unistd.h> #include <CoreFoundation/CoreFoundation.h> #include "exception_handler.h" #include "minidump_generator.h" using std::string; using google_airbag::ExceptionHandler; static void *SleepyFunction(void *) { while (1) { sleep(10000); } } static void Crasher() { int *a = NULL; fprintf(stdout, "Going to crash...\n"); fprintf(stdout, "A = %d", *a); } static void SoonToCrash() { Crasher(); } bool MDCallback(const char *dump_dir, const char *file_name, void *context, bool success) { string path(dump_dir); string dest(dump_dir); path.append(file_name); path.append(".dmp"); fprintf(stdout, "Minidump: %s\n", path.c_str()); // Indicate that we've handled the callback return true; } int main(int argc, char * const argv[]) { char buffer[PATH_MAX]; struct passwd *user = getpwuid(getuid()); // Home dir snprintf(buffer, sizeof(buffer), "/Users/%s/Desktop/", user->pw_name); string path(buffer); ExceptionHandler eh(path, NULL, MDCallback, NULL, true); pthread_t t; if (pthread_create(&t, NULL, SleepyFunction, NULL) == 0) { pthread_detach(t); } else { perror("pthread_create"); } // Dump a test eh.WriteMinidump(); // Test the handler SoonToCrash(); return 0; }
842b32c22d73c93c9807d1fb03cf6f632d0dba1c
cfd8c061954fc604f9683ef5eb3adaa02230214e
/solutions/pairs_of_songs_with_total_durations_divisible_by_60.cpp
a7e4ff8fb50d62d0f8ee19ed75c4097e8a2a151f
[ "Apache-2.0" ]
permissive
kmykoh97/My-Leetcode
fe976b4069f8aff564ee6d2af626c94b88f83e04
0ffdea16c3025805873aafb6feffacaf3411a258
refs/heads/master
2023-01-28T03:59:05.516327
2020-12-11T14:00:57
2020-12-11T14:00:57
263,032,005
0
0
null
null
null
null
UTF-8
C++
false
false
1,070
cpp
pairs_of_songs_with_total_durations_divisible_by_60.cpp
// You are given a list of songs where the ith song has a duration of time[i] seconds. // Return the number of pairs of songs for which their total duration in seconds is divisible by 60. Formally, we want the number of indices i, j such that i < j with (time[i] + time[j]) % 60 == 0. // Example 1: // Input: time = [30,20,150,100,40] // Output: 3 // Explanation: Three pairs have a total duration divisible by 60: // (time[0] = 30, time[2] = 150): total duration 180 // (time[1] = 20, time[3] = 100): total duration 120 // (time[1] = 20, time[4] = 40): total duration 60 // Example 2: // Input: time = [60,60,60] // Output: 3 // Explanation: All three pairs have a total duration of 120, which is divisible by 60. // Constraints: // 1 <= time.length <= 6 * 104 // 1 <= time[i] <= 500 // solution: 2 sum class Solution { public: int numPairsDivisibleBy60(vector<int>& time) { vector<int> m(60); int res = 0; for (auto t : time) { res += m[(60-t%60)%60]; ++m[t%60]; } return res; } };
a3305d3b84437b03c244d46f09156a8419fee22a
51be8db88a49f7bebeefddf431faff6048ac4f37
/xpcc/src/xpcc/architecture/platform/avr/atmega/analog_sensors.hpp
5fe7be65dc67557a3929e4604b88c17a550206d9
[ "MIT" ]
permissive
jrahlf/3D-Non-Contact-Laser-Profilometer
0a2cee1089efdcba780f7b8d79ba41196aa22291
912eb8890442f897c951594c79a8a594096bc119
refs/heads/master
2016-08-04T23:07:48.199953
2014-07-13T07:09:31
2014-07-13T07:09:31
17,915,736
6
3
null
null
null
null
UTF-8
C++
false
false
4,396
hpp
analog_sensors.hpp
// coding: utf-8 // ---------------------------------------------------------------------------- /* Copyright (c) 2011, Roboterclub Aachen e.V. * 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 Roboterclub Aachen e.V. 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 ROBOTERCLUB AACHEN E.V. ''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 ROBOTERCLUB AACHEN E.V. 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 XPCC_ATMEGA__ANALOG_SENSORS_HPP #define XPCC_ATMEGA__ANALOG_SENSORS_HPP #include <stdint.h> #include <xpcc/math/utils/misc.hpp> namespace xpcc { namespace atmega { /** * \brief Generic ADC wrapper for analog sensors. * * This template class stores 16bit ADC values in a buffer and * provides an easy interface for managing that data. * * The code will read the ADC channels you specify in an array. * This means you can remap the ADC channels in the order that they * should appear in the buffer. * The array must obviously have as many elements as channels! * For example, if channels 0,2,7 are connected, but the sensors * are in the wrong order, just remap them with the array {7,0,2}. * * To make use of oversampling and averaging, set SAMPLES > 0. * This will loop 2^SAMPLES times through the ADC channels, adding * the average of each result to the buffer. * Be aware that averaging more than 64 values (SAMPLES>6) could cause * a 16bit overflow depending on your ADC values (10bit * 64 = 16bit). * * \ingroup atmega * \author Niklas Hauser * * \tparam ADConv AdcInterrupt class * \tparam CHANNELS number of ADC channels connected to sensor(s) * \tparam SAMPLES 2^SAMPLES number of samples to average for each channel */ template < typename ADConv, uint8_t CHANNELS, uint8_t SAMPLES=0 > class AnalogSensors { public: /** * \param sensorMapping * first element of a remap array * \param sensorData */ static inline void initialize(uint8_t* sensorMapping, uint16_t* sensorData); /** * Starts the ADC readout routine and buffers the results, * sets isNewDataAvailable() to \c true. * \return \c false when a readout is in progress, \c true otherwise */ static inline bool readSensors(); /** * \return pointer to first element of 16bit result array * This method resets isNewDataAvailable() to \c false. */ static ALWAYS_INLINE uint16_t* getData(); /** * \return pointer to first element of 16bit result array, without * changing isNewDataAvailable() */ static ALWAYS_INLINE uint16_t* readData(); /** * \return \c true if new data is available and has not yet been read. */ static ALWAYS_INLINE bool isNewDataAvailable(); private: static void sampleAdc(); static ADConv adc; static bool newData; static uint8_t* map; static uint16_t *data; static uint16_t numberOfSamples; }; } } #include "analog_sensors_impl.hpp" #endif // XPCC_ATMEGA__ANALOG_SENSORS_HPP
ea39142df11cddd181dbadbd41f3f0aeb2347947
500670c60a356af799e55f73952b4462e0fb744b
/libraries/uartnet_link_layer/link.cpp
49d19c0bad46bb2e4eb9f0f46b64b75d06a8fd24
[]
no_license
bowen-liu/P2P-UART-Network
d8d23ee167cb39cdc1711e51c85a21007e596816
474806358c4d1165fe25b4fff7e2ac0f97185303
refs/heads/master
2021-09-10T23:00:07.912864
2018-04-03T19:20:18
2018-04-03T19:20:18
83,370,286
7
0
null
null
null
null
UTF-8
C++
false
false
3,954
cpp
link.cpp
/*This file must be declared as a .cpp file since it uses the HardwareSerial Object from Arduino's library*/ #include "link.h" /******************************* Initialization *******************************/ void link_init(HardwareSerial *port, uint8_t my_id, LINK_TYPE link_type, LINK *link) { link->port = port; link->link_type = link_type; link->end_link_type = UNKNOWN; link->id = my_id; link->rbuf_writeidx = 0; link->rbuf_valid = 0; link->rbuf_expectedsize = 0; link->rqueue_pending = 0; link->rqueue_head = 0; link->squeue_pending = 0; link->squeue_lastsent = 0; link->rtable_entries = 0; memset(link->recvbuf, 0, RECV_BUFFER_SIZE); memset(link->recv_queue, 0, RECV_QUEUE_SIZE * sizeof(FRAME)); memset(link->send_queue, 0, SEND_QUEUE_SIZE * sizeof(RAW_FRAME)); //memset(link.rtable, 0, RTABLE_LENGTH * sizeof(NODE)); for(int i=0; i<RTABLE_LENGTH; i++ ) { link->rtable[i].hops = 0; link->rtable[i].rtt = 0; link->rtable[i].ticks = 0; link->rtable[i].last_ping_recvd = 0; link->rtable[i].last_ping_sent = 0; } } /*************************** RECEIVED FRAMES AND QUEUE THEM ***************************/ uint8_t read_serial(LINK *link) { uint8_t frames_received = 0; size_t bytes; RAW_FRAME rawframe; //See if any new bytes are available for reading bytes = check_new_bytes(link); //Check if buffer contains one or more complete packets if (!(bytes > 0 || link->rbuf_valid)) return 0; //Extract frames from the raw receive buffer rawframe = extract_frame_from_rbuf(link); while(rawframe.size > 0) { //Parse the frame and store it in the recvd buffer parse_raw_and_store(rawframe, link); //Check if the rbuf contains more complete packets proc_buf(NULL, 0, link); rawframe = extract_frame_from_rbuf(link); frames_received++; } return frames_received; } FRAME pop_recv_queue(LINK *link) { FRAME retframe; FRAME *curhead; //Make sure the recv queue has pending data first if(link->rqueue_pending == 0) { retframe.size = 0; return retframe; } //Copy the current head out of the recv queue curhead = &link->recv_queue[link->rqueue_head]; memcpy(&retframe, curhead, sizeof(FRAME)); //Advances queue head and cleanup if (++link->rqueue_head >= RECV_QUEUE_SIZE) link->rqueue_head = 0; curhead->size = 0; link->rqueue_pending--; //Remember to free the payload return retframe; } /*************************** SENDING FRAMES ***************************/ //IMPORTANT: User must free frame.payload MANUALLY when using any of these 3 functions! uint8_t send_frame(FRAME frame, LINK *link) { return add_to_send_queue(frame_to_raw(frame), link); } uint8_t create_send_frame(uint8_t src, uint8_t dst, uint8_t size, uchar *payload, LINK *link) { return add_to_send_queue(frame_to_raw(create_frame(src, dst, size, payload)), link); } uint8_t create_send_cframe(uint8_t src, uint8_t dst, uint8_t size, uchar *payload, LINK *link) { return add_to_send_queue(frame_to_raw(create_cframe(src, dst, size, payload)), link); } uint8_t transmit_next(LINK *link) { uint8_t i, j; //Check if we have anything to transmit if (link->squeue_pending == 0) return 0; //Find the next packet to transmit, starting from the last sending index for (i = link->squeue_lastsent, j = 0; j < SEND_QUEUE_SIZE; j++) { //Wrap index i around to the beginning if needed if (i >= SEND_QUEUE_SIZE - 1) i = 0; else if (i < SEND_QUEUE_SIZE - 1) i++; if (link->send_queue[i].size > 0) break; } //Transmit the packet out onto the link link->port->write(link->send_queue[i].buf, link->send_queue[i].size); /* printf("\nTransmitting:\n"); print_frame(raw_to_frame(link->send_queue[i])); printf("\n\n"); */ //cleanup & mark this slot as free link->squeue_lastsent = i; link->squeue_pending--; link->send_queue[i].size = 0; free(link->send_queue[i].buf); return i; }
280fb544a68fad025a082d29db086a7caf9c6275
08189f1de22be2d632a5bf0d1ff086d893517c9b
/src/cec_wrapper.cpp
801bcbe835879bf2e38db4e03e01b63cc70354f8
[]
no_license
runoshun/rpi-event-monitor
11f2c08d44b527c2fa43ec533c7ce72f5bb4fa40
b9954d4bfbcd754d20321160ef11373bb4889a6e
refs/heads/master
2021-01-21T13:21:40.098614
2016-05-22T06:42:43
2016-05-22T06:42:43
50,776,896
1
0
null
null
null
null
UTF-8
C++
false
false
6,122
cpp
cec_wrapper.cpp
#include "cec_wrapper.h" #include <string> #include <iostream> #include <stdio.h> #include <glib.h> #include <cec.h> #include <cecloader.h> using namespace CEC; namespace RpiEvtMon { namespace Cec { typedef struct route { bool is_activated; } route_t; route_t* create_route() { route_t* r = new route_t; r->is_activated = false; return r; } typedef struct wrapper { const char * command; ICECAdapter* adapter; bool is_adapter_opened; const ICECCallbacks* callbacks; const libcec_configuration* config; GHashTable* routes; } t; void set_command(t* wrapper, const char * command) { wrapper->command = command; } void fire_command(t* wrapper, gint address, bool activated) { char const * which; if(activated) { which = "activate"; } else { which = "deactivate"; } if(wrapper->command != NULL) { int len = strlen(wrapper->command) + 20; char command[len]; snprintf(command, len, "%s %s %04x", wrapper->command, which, address); GError* err; if(!g_spawn_command_line_async(command, &err)) { g_error("spawning command '%s' is failed, %s", command, err->message); g_error_free(err); } } } int cec_log_message(void *cbParam, const cec_log_message message) { std::string strLevel; t* wrapper = (t*)cbParam; switch (message.level) { case CEC_LOG_ERROR: g_error("%s", message.message); break; case CEC_LOG_WARNING: g_warning("%s", message.message); break; case CEC_LOG_NOTICE: g_info("%s", message.message); break; case CEC_LOG_TRAFFIC: g_debug("TRAFFIC: %s", message.message); break; case CEC_LOG_DEBUG: g_debug("DEBUG: %s", message.message); break; default: break; } return 0; } void deactivate_all(t* wrapper, gpointer active_addr) { GHashTableIter iter; gpointer k, v; g_hash_table_iter_init (&iter, wrapper->routes); while (g_hash_table_iter_next (&iter, &k, &v)) { route_t* r = (route_t*)v; if(k == active_addr || !r->is_activated) { continue; } else { g_debug("cec_command : fire deactivate command. addr = %04x", GPOINTER_TO_INT(k)); r->is_activated = false; fire_command(wrapper, GPOINTER_TO_INT(k), false); } } } int cec_command(void *cbParam, const cec_command cmd) { t* wrapper = (t*)cbParam; if (cmd.opcode == CEC_OPCODE_ROUTING_CHANGE && cmd.parameters.size == 4) { g_debug("cec_command : CEC_OPCODE_ROUTING_CHANGE"); gint addr = (cmd.parameters[2] << 8 | (gint)cmd.parameters[3]); gpointer key = GINT_TO_POINTER(addr); route_t* route = (route_t*)g_hash_table_lookup(wrapper->routes, key); if(route == NULL) { route = create_route(); g_hash_table_insert(wrapper->routes, key, route); } g_debug("cec_command : fire activate command. addr = %04x", addr); route->is_activated = true; fire_command(wrapper, addr, true); deactivate_all(wrapper, key); } else if (cmd.opcode == CEC_OPCODE_ACTIVE_SOURCE) { deactivate_all(wrapper, 0); } return 1; } bool init(t* wrapper) { ICECCallbacks* cec_callbacks = new ICECCallbacks; libcec_configuration* cec_config = new libcec_configuration; wrapper->callbacks = cec_callbacks; wrapper->config = cec_config; cec_config->Clear(); cec_callbacks->Clear(); cec_callbacks->CBCecLogMessage = &cec_log_message; cec_callbacks->CBCecCommand = &cec_command; snprintf(cec_config->strDeviceName, 13, "RpiEvtMon"); cec_config->clientVersion = LIBCEC_VERSION_CURRENT; cec_config->bActivateSource = 0; cec_config->callbacks = cec_callbacks; cec_config->callbackParam = (void *)wrapper; cec_config->deviceTypes.Add(CEC_DEVICE_TYPE_PLAYBACK_DEVICE); wrapper->adapter = LibCecInitialise(cec_config); if(!wrapper->adapter) { g_error("can't initialize libcec."); destory(wrapper); return false; } wrapper->adapter->InitVideoStandalone(); cec_adapter devices[10]; std::string port; uint8_t devicesFound = wrapper->adapter->FindAdapters(devices, 10, NULL); if(devicesFound <= 0) { g_error("no device found."); destory(wrapper); return false; } port = devices[0].comm; if(!wrapper->adapter->Open(port.c_str())) { g_error("can't open cec adapter."); destory(wrapper); return false; } wrapper->is_adapter_opened = true; return true; } t* create() { t* wrapper = new t; wrapper->command = NULL; wrapper->callbacks = NULL; wrapper->config = NULL; wrapper->is_adapter_opened = false; wrapper->routes = g_hash_table_new(g_direct_hash, g_direct_equal); return wrapper; } void destory(t* wrapper) { if(wrapper->adapter) { if(wrapper->is_adapter_opened) { wrapper->adapter->Close(); } UnloadLibCec(wrapper->adapter); wrapper->adapter = NULL; } g_hash_table_destroy(wrapper->routes); delete wrapper->callbacks; delete wrapper->config; delete wrapper; } } }// namespace RpiEventMonitor::Cec
c8c76d5bfe42f1841aabd4805a88ae4cb33c854c
00840c5da67b07a7c9b3488a292ec2aaa1616be3
/ch09/ex9_22.cpp
e262daf15c5de4c54e14f2f61b8616809ff616d9
[ "CC0-1.0" ]
permissive
TychoMagneticAnomaly-1/Cpp-Primer
db6609800967e1d00a08af8828694862c36e5e64
6cdcda3627fc5cea0ee490d63cf36f6d0238443d
refs/heads/master
2022-02-26T20:11:08.476530
2022-01-16T08:19:49
2022-01-16T08:19:49
250,958,969
1
0
CC0-1.0
2020-03-29T05:14:22
2020-03-29T05:14:22
null
UTF-8
C++
false
false
451
cpp
ex9_22.cpp
#include <iostream> #include <vector> void double_and_insert(std::vector<int>& v, int some_val) { auto mid = [&]{ return v.begin() + v.size() / 2; }; for (auto curr = v.begin(); curr != mid(); ++curr) if (*curr == some_val) ++(curr = v.insert(curr, 2 * some_val)); } int main() { std::vector<int> v{ 1, 9, 1, 9, 9, 9, 1, 1 }; double_and_insert(v, 1); for (auto i : v) std::cout << i << std::endl; }
fc87cd6f8572f355ec8036c37c68e615c8f55d69
f551416f5cea25ed50fadfe8ecc51e49edb14b61
/Arduino/EmoT_LED_Test/PoseDetector.h
19b985d9a12f778e92be2de89828429045de4d08
[]
no_license
0x0c/EmoT
cf72528e74f210c4fef6441202788e48e8ef57a7
cddb9b91d5537b9757d2d17574fee59252e7570b
refs/heads/master
2020-12-30T20:27:06.870076
2017-09-01T11:26:51
2017-09-01T11:26:51
96,243,056
4
1
null
null
null
null
UTF-8
C++
false
false
11,002
h
PoseDetector.h
// class PoseDetector { // public: // enum Pose { // question,vsign,arm,standing,beer,sushi // }; // static double classify(int i[5]) // { // double p = -1; // p = PoseDetector::N139c75e935(i); // return p; // } // static double N139c75e935(int i[5]) { // double p = -1; // if (i[3] == 0) { // p = 2; // } else if (i[3] <= 11527.0) { // p = PoseDetector::N5011e0e36(i); // } else if (i[3] > 11527.0) { // p = PoseDetector::Nc5c2bb337(i); // } // return p; // } // static double N5011e0e36(int i[5]) { // double p = -1; // if (i[3] == 0) { // p = 5; // } else if (i[3] <= 10234.0) { // p = 5; // } else if (i[3] > 10234.0) { // p = 2; // } // return p; // } // static double Nc5c2bb337(int i[5]) { // double p = -1; // if (i[1] == 0) { // p = 3; // } else if (i[1] <= 8128.0) { // p = PoseDetector::N7738fb1b38(i); // } else if (i[1] > 8128.0) { // p = PoseDetector::N3dede6c339(i); // } // return p; // } // static double N7738fb1b38(int i[5]) { // double p = -1; // if (i[1] == 0) { // p = 4; // } else if (i[1] <= 6684.0) { // p = 4; // } else if (i[1] > 6684.0) { // p = 3; // } // return p; // } // static double N3dede6c339(int i[5]) { // double p = -1; // if (i[4] == 0) { // p = 1; // } else if (i[4] <= 11985.0) { // p = PoseDetector::N4dc92bf840(i); // } else if (i[4] > 11985.0) { // p = PoseDetector::N3d83b5a155(i); // } // return p; // } // static double N4dc92bf840(int i[5]) { // double p = -1; // if (i[4] == 0) { // p = 1; // } else if (i[4] <= 11617.0) { // p = 1; // } else if (i[4] > 11617.0) { // p = PoseDetector::N5265cead41(i); // } // return p; // } // static double N5265cead41(int i[5]) { // double p = -1; // if (i[1] == 0) { // p = 1; // } else if (i[1] <= 8833.0) { // p = PoseDetector::N19e3ea1e42(i); // } else if (i[1] > 8833.0) { // p = PoseDetector::N427fb1d345(i); // } // return p; // } // static double N19e3ea1e42(int i[5]) { // double p = -1; // if (i[2] == 0) { // p = 1; // } else if (i[2] <= 12366.0) { // p = PoseDetector::N421f64d943(i); // } else if (i[2] > 12366.0) { // p = 0; // } // return p; // } // static double N421f64d943(int i[5]) { // double p = -1; // if (i[0] == 0) { // p = 1; // } else if (i[0] <= 11174.0) { // p = 1; // } else if (i[0] > 11174.0) { // p = PoseDetector::N1b16047944(i); // } // return p; // } // static double N1b16047944(int i[5]) { // double p = -1; // if (i[1] == 0) { // p = 1; // } else if (i[1] <= 8697.0) { // p = 1; // } else if (i[1] > 8697.0) { // p = 0; // } // return p; // } // static double N427fb1d345(int i[5]) { // double p = -1; // if (i[0] == 0) { // p = 1; // } else if (i[0] <= 11174.0) { // p = PoseDetector::N4d73b5c046(i); // } else if (i[0] > 11174.0) { // p = 0; // } // return p; // } // static double N4d73b5c046(int i[5]) { // double p = -1; // if (i[1] == 0) { // p = 1; // } else if (i[1] <= 9278.0) { // p = PoseDetector::N67a177f947(i); // } else if (i[1] > 9278.0) { // p = PoseDetector::N338669ac54(i); // } // return p; // } // static double N67a177f947(int i[5]) { // double p = -1; // if (i[2] == 0) { // p = 1; // } else if (i[2] <= 12398.0) { // p = PoseDetector::N19cbb19648(i); // } else if (i[2] > 12398.0) { // p = PoseDetector::N5ea0f39052(i); // } // return p; // } // static double N19cbb19648(int i[5]) { // double p = -1; // if (i[4] == 0) { // p = 1; // } else if (i[4] <= 11861.0) { // p = PoseDetector::Nbf7fc1549(i); // } else if (i[4] > 11861.0) { // p = PoseDetector::N45c6ccd650(i); // } // return p; // } // static double Nbf7fc1549(int i[5]) { // double p = -1; // if (i[3] == 0) { // p = 1; // } else if (i[3] <= 13065.0) { // p = 1; // } else if (i[3] > 13065.0) { // p = 0; // } // return p; // } // static double N45c6ccd650(int i[5]) { // double p = -1; // if (i[0] == 0) { // p = 1; // } else if (i[0] <= 11059.0) { // p = 1; // } else if (i[0] > 11059.0) { // p = PoseDetector::N7eb2196351(i); // } // return p; // } // static double N7eb2196351(int i[5]) { // double p = -1; // if (i[3] == 0) { // p = 1; // } else if (i[3] <= 12561.0) { // p = 1; // } else if (i[3] > 12561.0) { // p = 0; // } // return p; // } // static double N5ea0f39052(int i[5]) { // double p = -1; // if (i[3] == 0) { // p = 1; // } else if (i[3] <= 12463.0) { // p = 1; // } else if (i[3] > 12463.0) { // p = PoseDetector::N18d6a37953(i); // } // return p; // } // static double N18d6a37953(int i[5]) { // double p = -1; // if (i[3] == 0) { // p = 0; // } else if (i[3] <= 12962.0) { // p = 0; // } else if (i[3] > 12962.0) { // p = 1; // } // return p; // } // static double N338669ac54(int i[5]) { // double p = -1; // if (i[4] == 0) { // p = 1; // } else if (i[4] <= 11648.0) { // p = 1; // } else if (i[4] > 11648.0) { // p = 0; // } // return p; // } // static double N3d83b5a155(int i[5]) { // double p = -1; // if (i[1] == 0) { // p = 1; // } else if (i[1] <= 8629.0) { // p = 1; // } else if (i[1] > 8629.0) { // p = 0; // } // return p; // } // }; class PoseDetector { public: enum Pose { question,vsign,arm,standing,beer,sushi }; static double classify(int i[5]) { double p = -1; p = PoseDetector::N1cfe168477(i); return p; } static double N1cfe168477(int i[5]) { double p = -1; if (i[1] == 0) { p = 2; } else if (i[1] <= 8128.0) { p = PoseDetector::N6d7842fa78(i); } else if (i[1] > 8128.0) { p = PoseDetector::N78c5f13180(i); } return p; } static double N6d7842fa78(int i[5]) { double p = -1; if (i[1] == 0) { p = 4; } else if (i[1] <= 6684.0) { p = 4; } else if (i[1] > 6684.0) { p = PoseDetector::N7275633b79(i); } return p; } static double N7275633b79(int i[5]) { double p = -1; if (i[0] == 0) { p = 3; } else if (i[0] <= 11861.0) { p = 3; } else if (i[0] > 11861.0) { p = 2; } return p; } static double N78c5f13180(int i[5]) { double p = -1; if (i[0] == 0) { p = 0; } else if (i[0] <= 12142.0) { p = PoseDetector::Nb5e05e981(i); } else if (i[0] > 12142.0) { p = 5; } return p; } static double Nb5e05e981(int i[5]) { double p = -1; if (i[4] == 0) { p = 1; } else if (i[4] <= 11985.0) { p = PoseDetector::N49d609d382(i); } else if (i[4] > 11985.0) { p = PoseDetector::N16f3233597(i); } return p; } static double N49d609d382(int i[5]) { double p = -1; if (i[4] == 0) { p = 1; } else if (i[4] <= 11617.0) { p = 1; } else if (i[4] > 11617.0) { p = PoseDetector::N31f218483(i); } return p; } static double N31f218483(int i[5]) { double p = -1; if (i[1] == 0) { p = 1; } else if (i[1] <= 8833.0) { p = PoseDetector::N70d162b584(i); } else if (i[1] > 8833.0) { p = PoseDetector::N1470352987(i); } return p; } static double N70d162b584(int i[5]) { double p = -1; if (i[2] == 0) { p = 1; } else if (i[2] <= 12366.0) { p = PoseDetector::N42a792f085(i); } else if (i[2] > 12366.0) { p = 0; } return p; } static double N42a792f085(int i[5]) { double p = -1; if (i[0] == 0) { p = 1; } else if (i[0] <= 11174.0) { p = 1; } else if (i[0] > 11174.0) { p = PoseDetector::N79fecc086(i); } return p; } static double N79fecc086(int i[5]) { double p = -1; if (i[1] == 0) { p = 1; } else if (i[1] <= 8697.0) { p = 1; } else if (i[1] > 8697.0) { p = 0; } return p; } static double N1470352987(int i[5]) { double p = -1; if (i[0] == 0) { p = 1; } else if (i[0] <= 11174.0) { p = PoseDetector::N52b2213a88(i); } else if (i[0] > 11174.0) { p = 0; } return p; } static double N52b2213a88(int i[5]) { double p = -1; if (i[1] == 0) { p = 1; } else if (i[1] <= 9278.0) { p = PoseDetector::N2ca3914089(i); } else if (i[1] > 9278.0) { p = PoseDetector::N3ceda90396(i); } return p; } static double N2ca3914089(int i[5]) { double p = -1; if (i[2] == 0) { p = 1; } else if (i[2] <= 12398.0) { p = PoseDetector::N269517a590(i); } else if (i[2] > 12398.0) { p = PoseDetector::N7cecbe4694(i); } return p; } static double N269517a590(int i[5]) { double p = -1; if (i[4] == 0) { p = 1; } else if (i[4] <= 11861.0) { p = PoseDetector::N643656d91(i); } else if (i[4] > 11861.0) { p = PoseDetector::N32b7da5192(i); } return p; } static double N643656d91(int i[5]) { double p = -1; if (i[3] == 0) { p = 1; } else if (i[3] <= 13065.0) { p = 1; } else if (i[3] > 13065.0) { p = 0; } return p; } static double N32b7da5192(int i[5]) { double p = -1; if (i[0] == 0) { p = 1; } else if (i[0] <= 11059.0) { p = 1; } else if (i[0] > 11059.0) { p = PoseDetector::N445e15da93(i); } return p; } static double N445e15da93(int i[5]) { double p = -1; if (i[3] == 0) { p = 1; } else if (i[3] <= 12561.0) { p = 1; } else if (i[3] > 12561.0) { p = 0; } return p; } static double N7cecbe4694(int i[5]) { double p = -1; if (i[3] == 0) { p = 1; } else if (i[3] <= 12463.0) { p = 1; } else if (i[3] > 12463.0) { p = PoseDetector::N1ac025bd95(i); } return p; } static double N1ac025bd95(int i[5]) { double p = -1; if (i[3] == 0) { p = 0; } else if (i[3] <= 12962.0) { p = 0; } else if (i[3] > 12962.0) { p = 1; } return p; } static double N3ceda90396(int i[5]) { double p = -1; if (i[4] == 0) { p = 1; } else if (i[4] <= 11648.0) { p = 1; } else if (i[4] > 11648.0) { p = 0; } return p; } static double N16f3233597(int i[5]) { double p = -1; if (i[1] == 0) { p = 1; } else if (i[1] <= 8629.0) { p = 1; } else if (i[1] > 8629.0) { p = 0; } return p; } };
913cfb68f9295ff9588890f3c49ee5bb90581794
a19ee98b6d7a5a699770980df02d30169cd1af52
/Service/Scanner.cpp
014a43ebcf64f4c087a05be22663381b5aa811ba
[]
no_license
KirinatorMAN/Antivirus
3ba8b0d4d3038776a2984d9defac09e9478cec96
e66e13c032ba86a59a46a5e18f046d381ff62c8a
refs/heads/master
2023-04-08T23:20:43.597410
2021-04-22T14:15:47
2021-04-22T14:15:47
353,634,427
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
5,879
cpp
Scanner.cpp
#include "Scanner.h" #include "PipeNamesBuffsizesPaths.h" bool Scanner::shouldStop = false; Scanner::Scanner(std::shared_ptr<InformationStorage> infoStorage) { this->infoStorage = infoStorage; } message Scanner::scanDirectory(const std::string& path, HANDLE pipe) { message result; namespace fs = std::filesystem; uint64_t numberOfFiles = std::count_if(fs::recursive_directory_iterator(path.data()), fs::recursive_directory_iterator{}, [](auto p) {return fs::is_regular_file(p); }); result.nArr.emplace_back(numberOfFiles); result.cmd = COMMAND::START; Messenger::sendMessage(pipe, PIPE_BUFSIZE, result); result.nArr.clear(); Database db = Database(DATABASE_PATH); size_t virusCounter = 0; size_t filesCounter = 0; for (auto& p : fs::recursive_directory_iterator(path.data())) { if (shouldStop) { result.cmd = COMMAND::STOP; result.sArr.clear(); result.nArr.emplace_back(filesCounter); result.nArr.emplace_back(virusCounter); return result; } if (std::filesystem::is_directory(p.path())) continue; filesCounter++; if (scanFile(p.path().string(), pipe, db)) virusCounter++; } result.cmd = COMMAND::SCAN_RESULT; result.sArr.clear(); result.nArr.emplace_back(filesCounter); result.nArr.emplace_back(virusCounter); return result; } bool Scanner::scanFile(const std::string& path, HANDLE pipe, Database db) { message result; result.cmd = COMMAND::START; bool isVirus = false; std::ifstream fileStream(path.c_str(), std::ios::binary); uint16_t mzHeader = 0; uint32_t zipHeader = 0; fileStream.read((char*)&mzHeader, sizeof(uint16_t)); fileStream.seekg(0); fileStream.read((char*)&zipHeader, sizeof(uint32_t)); fileStream.close(); if (!result.sArr.empty()) result.sArr.at(0) = path; else result.sArr.emplace_back(path); if (mzHeader == MZHEADER) { size_t res = scanExe(path, db); if (res) { isVirus = true; infoStorage->addThreat(path, "Найден вредонос: " + db.MW_NAME.at(res)); result.sArr.emplace_back("Найден вредонос: " + db.MW_NAME.at(res)); } else result.sArr.emplace_back("Не опасен"); } else if (zipHeader == ZIPHEADER) { size_t res = scanZip(path, db); if (res) { isVirus = true; infoStorage->addThreat(path, "Найден вредонос: опасный ZIP"); result.sArr.emplace_back("Найден вредонос: опасный ZIP"); } else result.sArr.emplace_back("Не опасен"); } else result.sArr.emplace_back("Не исполняемый"); Messenger::sendMessage(pipe, PIPE_BUFSIZE, result); result.sArr.clear(); //std::cout << path << '\n'; return isVirus; } size_t Scanner::scanZip(std::string inputPath, Database db) { //std::cout << "Распаковка: " << inputPath << std::endl; std::string unzipPath = unzip(inputPath); size_t virusCounter = 0, zipVirCounter = 0; namespace fs = std::filesystem; for (auto& p : fs::recursive_directory_iterator(unzipPath.data())) { if (std::filesystem::is_directory(p.path())) continue; std::string path = p.path().string(); std::ifstream fileStream(path.c_str(), std::ios::binary); uint16_t mzHeader = 0; uint32_t zipHeader = 0; fileStream.read((char*)&mzHeader, sizeof(uint16_t)); fileStream.seekg(0); fileStream.read((char*)&zipHeader, sizeof(uint32_t)); fileStream.close(); if (mzHeader == MZHEADER) { size_t res = scanExe(path, db); if (res) virusCounter++; } else if (zipHeader == ZIPHEADER) { zipVirCounter = scanZip(path, db); } } std::filesystem::remove_all(unzipPath); if (virusCounter > 0) zipVirCounter++; return zipVirCounter; } size_t Scanner::scanExe(std::string path, Database db) { uint64_t fSize = 0; std::ifstream stream(path, std::ios::binary); fSize = std::filesystem::file_size(path); size_t resultPosition = 0; uint32_t offset = db.getMinOFFSET_BEGIN(); stream.seekg(offset); while (!stream.eof() && offset < fSize) { std::string buf(BUFSIZE, 0); stream.read(buf.data(), BUFSIZE); resultPosition = db.check(buf, offset); if (resultPosition) break; offset += BUFSIZE; } return resultPosition; } void Scanner::startScan(const std::string& path, HANDLE pipe) { shouldStop = false; if (std::filesystem::is_directory(path)) { message scanResult = scanDirectory(path, pipe); Messenger::sendMessage(pipe, PIPE_BUFSIZE, scanResult); } else { message scanRes; scanRes.cmd = COMMAND::START; scanRes.nArr.emplace_back(1); Messenger::sendMessage(pipe, PIPE_BUFSIZE, scanRes); Database db = Database(DATABASE_PATH); scanRes.cmd = COMMAND::SCAN_RESULT; if (scanFile(path, pipe, db)) scanRes.nArr.emplace_back(1); else scanRes.nArr.emplace_back(0); Messenger::sendMessage(pipe, PIPE_BUFSIZE, scanRes); } } void Scanner::stopScan() { shouldStop = true; } std::string Scanner::unzip(const std::string& zipPath) { const std::string inputFolder = UNPACKING_PATH; std::filesystem::path zipFileName(zipPath); zipFileName = zipFileName.replace_extension("").filename(); std::string pathToZip = inputFolder + zipFileName.string(); std::filesystem::create_directory(pathToZip); int err; struct zip* hZip = zip_open(zipPath.c_str(), 0, &err); if (hZip) { size_t totalIndex = zip_get_num_entries(hZip, 0); for (size_t i = 0; i < totalIndex; i++) { struct zip_stat st; zip_stat_init(&st); zip_stat_index(hZip, i, 0, &st); struct zip_file* zf = zip_fopen_index(hZip, i, 0); if (!zf) { zip_close(hZip); return {}; } std::vector<char> buffer; buffer.resize(st.size); zip_fread(zf, buffer.data(), st.size); zip_fclose(zf); std::string destinationPath = pathToZip + "\\" + st.name; std::ofstream outfile(destinationPath, std::ios::binary | std::ios::trunc); outfile.write(buffer.data(), st.size); outfile.close(); } zip_close(hZip); } return pathToZip; }
013f0cfa59460323cd935f757e7e5c1c425910cc
247611a46841ab59d7f5776352a3731bf4ae62da
/Source/core/animation/IEexecute.cpp
47f4a74d3013ef49ea9463d9c69dc08a8aa70e78
[]
no_license
ComeOnSweetCandy/Iridescent-Game-Engine
d002cb4ec5c558fe713767db1d0a717b2204c9b0
d815d610975ca9a6ba29c235fccb195ad31f3edf
refs/heads/master
2020-03-28T20:08:44.878661
2017-10-13T10:03:16
2017-10-13T10:03:16
94,608,382
0
0
null
null
null
null
UTF-8
C++
false
false
556
cpp
IEexecute.cpp
#define __IE_DLL_EXPORTS__ #include "IEexecute.h" IE_BEGIN IEExecute::IEExecute() { } IEExecute::~IEExecute() { } void IEExecute::Initialization() { } IEExecute * IEExecute::Create() { IEExecute * object = new IEExecute(); object->Initialization(); return object; } void IEExecute::CompletedAction(IENode * node) { if (!m_hasCompletedAction) { m_hasCompletedAction = true; } } void IEExecute::SetCircle() { } void IEExecute::SetLoop() { } bool IEExecute::Run(IENode * node) { //node->AssembleDisplacement(); return true; } IE_END
e0e3cbd24ffb0a4b801f26d7a70f92d725f9dd45
922656620794f16b7562197d9a8cb77ee629b771
/src/place.h
ca3a5adf705d1a92c7bb518ee5826a7d649048fd
[]
no_license
rahenri/blackbit
f7bd36e91708d2b7e2fd94098556286e6ccc6c18
42d924c5aa605a28ed583596ebc391208ae24de6
refs/heads/master
2021-06-18T21:50:52.360579
2021-06-10T14:35:38
2021-06-10T14:35:38
193,802,237
0
0
null
null
null
null
UTF-8
C++
false
false
1,117
h
place.h
#pragma once #include <numeric> struct __attribute__((__packed__)) Place { public: inline Place() : _place(0) {} /* not BB */ inline int8_t line() const { return _place >> 3; } /* not BB */ inline int8_t col() const { return _place & 7; } /* not BB */ static inline Place of_line_of_col(int8_t lin, int8_t col) { return Place(col | (lin << 3)); } inline Place down() const { return Place(_place - 8); } inline Place up() const { return Place(_place + 8); } inline Place right() const { return Place(_place + 1); } inline Place left() const { return Place(_place - 1); } static inline Place of_int(int8_t place) { return Place(place); } inline int8_t to_int() const { return _place; } inline bool operator==(const Place &other) const { return _place == other._place; } inline bool operator!=(const Place &other) const { return _place != other._place; } inline bool is_valid() const { return _place >= 0 && _place < 64; } static inline Place invalid() { return of_int(64); } private: int8_t _place; inline Place(int8_t place) : _place(place) {} };
4d743071281b6565a038831d0159a101995ea7d1
bf8cafe7e308686e2062fea7cd7f6133ac9c0093
/leetcode/assign_intialize.cpp
a7c98f4cbad91f18ce28f056ff7b76f4da017ee5
[]
no_license
dheerajkhatri/bajinga
0d5ee1e735bb41956894e7fec02a587a204584b8
83dd43c99a99666c4b25f7fe9ccbffedcaddb38f
refs/heads/master
2020-12-14T07:31:32.875274
2015-10-18T18:22:02
2015-10-18T18:22:02
43,668,399
0
0
null
null
null
null
UTF-8
C++
false
false
451
cpp
assign_intialize.cpp
#include <bits/stdc++.h> using namespace std; class point{ public: // point(double x, double y){x=x;y=y;} //simple assignment (not initialization) // point(){this->x=0;this->y=0;} //self refrential method (doctor who :P) point() :x(0.0),y(0.0){} //intializer list must for const variables private: double x,y; }; int main(){ // const int special; // special = 10; const int special = 10; cout<<special<<endl; return 0; }
90702be28591caab123c89ed5215917033f68a26
79a634d9357a750cbd0efea04d932938e1b7f632
/Contest/ACM/2010_bak/MULTIPLE_2010/BJTU/problems/J.Chain/pchain.cpp
b0477ca64d6026d2370012828431e34aa85fb878
[]
no_license
hphp/Algorithm
5f42fe188422427a7762dbbe7af539b89fa796ed
ccbb368a37eed1b0cb37356026b299380f9c008b
refs/heads/master
2016-09-06T02:24:43.141927
2014-05-27T00:49:44
2014-05-27T00:49:44
14,009,913
1
0
null
null
null
null
UTF-8
C++
false
false
5,089
cpp
pchain.cpp
#include<cstdio> #include<cstring> #include<iostream> #include<vector> using namespace std; const int maxn=300010; struct node{ int left,right,father; int x; int total; bool reverse; }; int n,root,now; node a[maxn]; void leftrotate(int y){ int x=a[y].father; a[y].father=a[x].father; if (a[x].father!=0){ if (a[a[x].father].left==x) a[a[x].father].left=y; else a[a[x].father].right=y; } a[x].right=a[y].left; if (a[y].left!=0) a[a[y].left].father=x; a[y].left=x; a[x].father=y; a[x].total=1+a[a[x].left].total+a[a[x].right].total; a[y].total=1+a[a[y].left].total+a[a[y].right].total; } void rightrotate(int x){ int y=a[x].father; a[x].father=a[y].father; if (a[y].father!=0){ if (a[a[y].father].left==y) a[a[y].father].left=x; else a[a[y].father].right=x; } a[y].left=a[x].right; if (a[x].right!=0) a[a[x].right].father=y; a[x].right=y; a[y].father=x; a[y].total=1+a[a[y].left].total+a[a[y].right].total; a[x].total=1+a[a[x].left].total+a[a[x].right].total; } void splay(int cur){ int p; while (a[cur].father!=0){ p=a[cur].father; if (a[p].father==0){ if (cur==a[p].left) rightrotate(cur); else leftrotate(cur); break; } if (cur==a[p].left) if (p==a[a[p].father].left){ rightrotate(p); rightrotate(cur); } else{ rightrotate(cur); leftrotate(cur); } else if (p==a[a[p].father].right){ leftrotate(p); leftrotate(cur); } else{ leftrotate(cur); rightrotate(cur); } } root=cur; } int build(int fa,int l,int r){ if (l>r) return 0; else if (l==r){ a[l].x=l;a[l].father=fa;a[l].total=1; return l; } int cur=(l+r)/2; a[cur].x=cur;a[cur].total=r-l+1;a[cur].father=fa; a[cur].left=build(cur,l,cur-1); a[cur].right=build(cur,cur+1,r); return cur; } void flip(int cur){ swap(a[cur].left,a[cur].right); a[cur].reverse=false; if (a[cur].left!=0) if (a[a[cur].left].reverse) a[a[cur].left].reverse=false; else a[a[cur].left].reverse=true; if (a[cur].right!=0) if (a[a[cur].right].reverse) a[a[cur].right].reverse=false; else a[a[cur].right].reverse=true; } void getkth(int k){ int cur=root; while (1){ if (a[cur].reverse) flip(cur); if (k>a[a[cur].left].total+1){ k-=(a[a[cur].left].total+1); cur=a[cur].right; } else if (k!=a[a[cur].left].total+1) cur=a[cur].left; else break; } splay(cur); } void getmin(){ int cur=root; while (1){ if (a[cur].reverse) flip(cur); if (a[cur].left!=0) cur=a[cur].left; else break; } splay(cur); } void getmax(){ int cur=root; while (1){ if (a[cur].reverse) flip(cur); if (a[cur].right!=0) cur=a[cur].right; else break; } splay(cur); } void reverse(int x,int y){ getkth(x); int tmpA=0,tmpB=0; if (a[root].left!=0){ tmpA=a[root].left; a[root].total-=a[tmpA].total; a[root].left=0; a[tmpA].father=0; } getkth(y-x+1); if (a[root].right!=0){ tmpB=a[root].right; a[root].total-=a[tmpB].total; a[root].right=0; a[tmpB].father=0; } if (a[root].reverse) a[root].reverse=false; else a[root].reverse=true; getmax(); if (tmpB!=0){ a[root].right=tmpB; a[tmpB].father=root; a[root].total+=a[tmpB].total; } getmin(); if (tmpA!=0){ a[root].left=tmpA; a[tmpA].father=root; a[root].total+=a[tmpA].total; } } void merge(int x,int y){ if (x==0){ root=y; return; } if (y==0){ root=x; return; } root=x; getmax(); if (y!=0){ a[y].father=root; a[root].right=y; a[root].total+=a[y].total; } return; } void cut(int x,int y,int z){ getkth(x); int tmpA=0,tmpB=0,tmpXY; if (a[root].left!=0){ tmpA=a[root].left; a[root].total-=a[tmpA].total; a[tmpA].father=0; a[root].left=0; } getkth(y-x+1); if (a[root].right!=0){ tmpB=a[root].right; a[root].total-=a[tmpB].total; a[tmpB].father=0; a[root].right=0; } tmpXY=root; merge(tmpA,tmpB); if (z==0){ tmpB=root; tmpA=0; } else{ getkth(z); tmpA=root; tmpB=a[root].right; if (tmpB!=0) a[tmpB].father=0; a[root].right=0; } merge(tmpA,tmpXY); tmpA=root; merge(tmpA,tmpB); } void print(int cur){ now++; if (a[cur].reverse) flip(cur); if (a[cur].left!=0) print(a[cur].left); if (now<n) printf("%d ",a[cur].x); else printf("%d\n",a[cur].x); if (a[cur].right!=0) print(a[cur].right); } int main(){ freopen("pchain.in","r",stdin); freopen("pchain.out","w",stdout); int command,x,y,z; while (scanf("%d%d",&n,&command)>0,n!=-1){ memset(a,0,sizeof(a)); root=now=0; char st[100]; root=build(0,1,n); for (int i=0;i<command;i++){ scanf("%s",st); if (st[0]=='C'){ scanf("%d%d%d",&x,&y,&z); cut(x,y,z); } else{ scanf("%d%d",&x,&y); reverse(x,y); } } now=0;print(root); } return 0; }
64c3769212799101e0f3929aced563c5b9fcf774
cfeac52f970e8901871bd02d9acb7de66b9fb6b4
/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobDataSetOverrideParameters.h
e4bd6ad0b1079c01757f8aaa37a46e312ef4bb30
[ "Apache-2.0", "MIT", "JSON" ]
permissive
aws/aws-sdk-cpp
aff116ddf9ca2b41e45c47dba1c2b7754935c585
9a7606a6c98e13c759032c2e920c7c64a6a35264
refs/heads/main
2023-08-25T11:16:55.982089
2023-08-24T18:14:53
2023-08-24T18:14:53
35,440,404
1,681
1,133
Apache-2.0
2023-09-12T15:59:33
2015-05-11T17:57:32
null
UTF-8
C++
false
false
4,120
h
AssetBundleImportJobDataSetOverrideParameters.h
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/quicksight/QuickSight_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QuickSight { namespace Model { /** * <p>The override parameters for a single dataset that is being * imported.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/AssetBundleImportJobDataSetOverrideParameters">AWS * API Reference</a></p> */ class AssetBundleImportJobDataSetOverrideParameters { public: AWS_QUICKSIGHT_API AssetBundleImportJobDataSetOverrideParameters(); AWS_QUICKSIGHT_API AssetBundleImportJobDataSetOverrideParameters(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API AssetBundleImportJobDataSetOverrideParameters& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The ID of the dataset to apply overrides to.</p> */ inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } /** * <p>The ID of the dataset to apply overrides to.</p> */ inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; } /** * <p>The ID of the dataset to apply overrides to.</p> */ inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; } /** * <p>The ID of the dataset to apply overrides to.</p> */ inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); } /** * <p>The ID of the dataset to apply overrides to.</p> */ inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); } /** * <p>The ID of the dataset to apply overrides to.</p> */ inline AssetBundleImportJobDataSetOverrideParameters& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} /** * <p>The ID of the dataset to apply overrides to.</p> */ inline AssetBundleImportJobDataSetOverrideParameters& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} /** * <p>The ID of the dataset to apply overrides to.</p> */ inline AssetBundleImportJobDataSetOverrideParameters& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} /** * <p>A new name for the dataset.</p> */ inline const Aws::String& GetName() const{ return m_name; } /** * <p>A new name for the dataset.</p> */ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** * <p>A new name for the dataset.</p> */ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** * <p>A new name for the dataset.</p> */ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** * <p>A new name for the dataset.</p> */ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** * <p>A new name for the dataset.</p> */ inline AssetBundleImportJobDataSetOverrideParameters& WithName(const Aws::String& value) { SetName(value); return *this;} /** * <p>A new name for the dataset.</p> */ inline AssetBundleImportJobDataSetOverrideParameters& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** * <p>A new name for the dataset.</p> */ inline AssetBundleImportJobDataSetOverrideParameters& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_dataSetId; bool m_dataSetIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws
4a40297e1fa744615597f4c990ebcaf8191816c8
c1eaae8ae7eaef0d1d6313d039ab46636bb850f3
/src/scenes/ConnectControllerScene.cc
1e9bd4338db94f13cd654617f78fe371d5ce406c
[]
no_license
JoaoBlimping/pigEngine
dbba540eb97628cff04f76edefa0ef1da3a80949
d4311f72eae8c33e23d08a33027534e19e1ec79a
refs/heads/master
2021-05-31T12:15:57.656475
2016-01-21T04:01:06
2016-01-21T04:01:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
357
cc
ConnectControllerScene.cc
#include "ConnectControllerScene.hh" void ConnectControllerScene::logic(float deltaTime) { //TODO: make it be able to end } void ConnectControllerScene::render(SDL_Renderer * renderer,float deltaTime) { //do a nice background colour SDL_SetRenderDrawColor(renderer,100,100,255,255); SDL_RenderFillRect(renderer,NULL); //write some nice old text }
4c73a29cb075e4890c37970803ed5627ee086a52
2c9e0541ed8a22bcdc81ae2f9610a118f62c4c4d
/harmony/tests/vts/vm/src/test/vm/jvmti/funcs/RedefineClasses/RedefineClasses0106/RedefineClasses0106.cpp
c14c12df926aa87413418513293be0be18204409
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
JetBrains/jdk8u_tests
774de7dffd513fd61458b4f7c26edd7924c7f1a5
263c74f1842954bae0b34ec3703ad35668b3ffa2
refs/heads/master
2023-08-07T17:57:58.511814
2017-03-20T08:13:25
2017-03-20T08:16:11
70,048,797
11
9
null
null
null
null
UTF-8
C++
false
false
9,556
cpp
RedefineClasses0106.cpp
/* Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable 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. */ /** * @author Valentin Al. Sitnick * @version $Revision: 1.1 $ * */ /* *********************************************************************** */ #include "events.h" #include "utils.h" #include "fake.h" static bool cont = false; static bool test = false; static bool util = false; static bool flag = false; const char test_case_name[] = "RedefineClasses0106"; /* *********************************************************************** */ static unsigned char A_changed[] = { 0xCA, 0xFE, 0xBA, 0xBE, 0x0, 0x0, 0x0, 0x99, 0x0, 0x1B, 0xA, 0x0, 0x7, 0x0, 0x16, 0x3, 0xCA, 0xFE, 0xBE, 0xBA, 0x7, 0x0, 0x17, 0xA, 0x0, 0x3, 0x0, 0x16, 0x7, 0x0, 0x18, 0x7, 0x0, 0x19, 0x7, 0x0, 0x1A, 0x1, 0x0, 0x6, 0x3C, 0x69, 0x6E, 0x69, 0x74, 0x3E, 0x1, 0x0, 0x3, 0x28, 0x29, 0x56, 0x1, 0x0, 0x4, 0x43, 0x6F, 0x64, 0x65, 0x1, 0x0, 0xF, 0x4C, 0x69, 0x6E, 0x65, 0x4E, 0x75, 0x6D, 0x62, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6C, 0x65, 0x1, 0x0, 0x12, 0x4C, 0x6F, 0x63, 0x61, 0x6C, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6C, 0x65, 0x54, 0x61, 0x62, 0x6C, 0x65, 0x1, 0x0, 0x4, 0x74, 0x68, 0x69, 0x73, 0x1, 0x0, 0x2C, 0x4C, 0x63, 0x6F, 0x6D, 0x2F, 0x6F, 0x70, 0x65, 0x6E, 0x69, 0x6E, 0x74, 0x65, 0x6C, 0x2F, 0x64, 0x72, 0x6C, 0x2F, 0x76, 0x74, 0x73, 0x2F, 0x74, 0x65, 0x73, 0x74, 0x2F, 0x76, 0x6D, 0x2F, 0x6A, 0x76, 0x6D, 0x74, 0x69, 0x2F, 0x41, 0x5F, 0x30, 0x31, 0x30, 0x36, 0x3B, 0x1, 0x0, 0xE, 0x6D, 0x65, 0x67, 0x61, 0x5F, 0x73, 0x75, 0x70, 0x65, 0x72, 0x5F, 0x72, 0x75, 0x6E, 0x1, 0x0, 0x3, 0x74, 0x65, 0x78, 0x1, 0x0, 0x15, 0x4C, 0x6A, 0x61, 0x76, 0x61, 0x2F, 0x6C, 0x61, 0x6E, 0x67, 0x2F, 0x54, 0x68, 0x72, 0x6F, 0x77, 0x61, 0x62, 0x6C, 0x65, 0x3B, 0x1, 0x0, 0x4, 0x74, 0x65, 0x73, 0x74, 0x1, 0x0, 0x1, 0x49, 0x1, 0x0, 0xA, 0x53, 0x6F, 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6C, 0x65, 0x1, 0x0, 0x18, 0x52, 0x65, 0x64, 0x65, 0x66, 0x69, 0x6E, 0x65, 0x43, 0x6C, 0x61, 0x73, 0x73, 0x65, 0x73, 0x30, 0x31, 0x30, 0x36, 0x2E, 0x6A, 0x61, 0x76, 0x61, 0xC, 0x0, 0x8, 0x0, 0x9, 0x1, 0x0, 0x1E, 0x6A, 0x61, 0x76, 0x61, 0x2F, 0x6C, 0x61, 0x6E, 0x67, 0x2F, 0x49, 0x6E, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x65, 0x64, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6F, 0x6E, 0x1, 0x0, 0x13, 0x6A, 0x61, 0x76, 0x61, 0x2F, 0x6C, 0x61, 0x6E, 0x67, 0x2F, 0x54, 0x68, 0x72, 0x6F, 0x77, 0x61, 0x62, 0x6C, 0x65, 0x1, 0x0, 0x2A, 0x63, 0x6F, 0x6D, 0x2F, 0x6F, 0x70, 0x65, 0x6E, 0x69, 0x6E, 0x74, 0x65, 0x6C, 0x2F, 0x64, 0x72, 0x6C, 0x2F, 0x76, 0x74, 0x73, 0x2F, 0x74, 0x65, 0x73, 0x74, 0x2F, 0x76, 0x6D, 0x2F, 0x6A, 0x76, 0x6D, 0x74, 0x69, 0x2F, 0x41, 0x5F, 0x30, 0x31, 0x30, 0x36, 0x1, 0x0, 0x10, 0x6A, 0x61, 0x76, 0x61, 0x2F, 0x6C, 0x61, 0x6E, 0x67, 0x2F, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x0, 0x20, 0x0, 0x6, 0x0, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x0, 0x8, 0x0, 0x9, 0x0, 0x1, 0x0, 0xA, 0x0, 0x0, 0x0, 0x2F, 0x0, 0x1, 0x0, 0x1, 0x0, 0x0, 0x0, 0x5, 0x2A, 0xB7, 0x0, 0x1, 0xB1, 0x0, 0x0, 0x0, 0x2, 0x0, 0xB, 0x0, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x0, 0x0, 0x15, 0x0, 0xC, 0x0, 0x0, 0x0, 0xC, 0x0, 0x1, 0x0, 0x0, 0x0, 0x5, 0x0, 0xD, 0x0, 0xE, 0x0, 0x0, 0x0, 0x9, 0x0, 0xF, 0x0, 0x9, 0x0, 0x1, 0x0, 0xA, 0x0, 0x0, 0x0, 0x55, 0x0, 0x2, 0x0, 0x2, 0x0, 0x0, 0x0, 0xD, 0x12, 0x2, 0x3B, 0xBB, 0x0, 0x3, 0x59, 0xB7, 0x0, 0x4, 0xBF, 0x4C, 0xB1, 0x0, 0x1, 0x0, 0x3, 0x0, 0xB, 0x0, 0xB, 0x0, 0x5, 0x0, 0x2, 0x0, 0xB, 0x0, 0x0, 0x0, 0x12, 0x0, 0x4, 0x0, 0x0, 0x0, 0x17, 0x0, 0x3, 0x0, 0x1C, 0x0, 0xB, 0x0, 0x1D, 0x0, 0xC, 0x0, 0x1E, 0x0, 0xC, 0x0, 0x0, 0x0, 0x16, 0x0, 0x2, 0x0, 0xC, 0x0, 0x0, 0x0, 0x10, 0x0, 0x11, 0x0, 0x1, 0x0, 0x3, 0x0, 0xA, 0x0, 0x12, 0x0, 0x13, 0x0, 0x0, 0x0, 0x1, 0x0, 0x14, 0x0, 0x0, 0x0, 0x2, 0x0, 0x15 }; /* *********************************************************************** */ JNIEXPORT jint JNICALL Agent_OnLoad(prms_AGENT_ONLOAD) { Callbacks CB; check_AGENT_ONLOAD; jvmtiEvent events[] = { JVMTI_EVENT_CLASS_PREPARE, JVMTI_EVENT_EXCEPTION, JVMTI_EVENT_VM_DEATH }; cb_exc; cb_clprep; cb_death; return func_for_Agent_OnLoad(vm, options, reserved, &CB, events, sizeof(events)/4, test_case_name, DEBUG_OUT); } /* *********************************************************************** */ void JNICALL callbackClassPrepare(prms_CLS_PRPR) { check_CLS_PRPR; char* signature; char* generic; jvmtiError result; result = jvmti_env->GetClassSignature(klass, &signature,&generic); if (DEBUG_OUT) { fprintf(stderr, "\tnative: --- prepare ---------------------------------\n"); fprintf(stderr, "\tnative: GetClassSignature result = %d (must be zero) \n", result); fprintf(stderr, "\tnative: klass ptr is %p \n", klass); fprintf(stderr, "\tnative: signature is %s \n", signature); fprintf(stderr, "\tnative: generic is %s \n", generic); fprintf(stderr, "\tnative: --- prepare end -----------------------------\n"); fflush(stderr); } if (result != JVMTI_ERROR_NONE) return; if (strcmp(signature, "Lorg/apache/harmony/vts/test/vm/jvmti/A_0106;")) return; fprintf(stderr, "\tnative: --- prepare finish ---------------------------------\n"); fprintf(stderr, "\tnative: GetClassSignature result = %d (must be zero) \n", result); fprintf(stderr, "\tnative: klass ptr is %p \n", klass); fprintf(stderr, "\tnative: signature is %s \n", signature); fprintf(stderr, "\tnative: generic is %s \n", generic); fprintf(stderr, "\tnative: --- prepare finish end -----------------------------\n"); fflush(stderr); util = true; jvmtiClassDefinition classdefs[2]; classdefs[0].klass = klass; classdefs[0].class_byte_count = 556; classdefs[0].class_bytes = A_changed; result = jvmti_env->RedefineClasses( 1, classdefs ); fprintf(stderr, "\tnative: RedefineClasses result = %d (must be JVMTI_ERROR_UNSUPPORTED_VERSION (68)) \n", result); fprintf(stderr, "\tnative: klass ptr is %p \n", klass); fprintf(stderr, "\tnative: signature is %s \n", signature); fprintf(stderr, "\tnative: generic is %s \n", generic); fflush(stderr); if ( result == JVMTI_ERROR_UNSUPPORTED_VERSION ) test = true; } void JNICALL callbackException(prms_EXCPT) { check_EXCPT; if (!cont) return; if (flag) return; jint depth = 0; jint varnum; jint value; jint index = 0; jint slot = 0; jvmtiLocalVariableEntry* table; jvmtiError result; /* * Function separate all other exceptions in all other method */ if (!check_phase_and_method_debug(jvmti_env, method, SPP_LIVE_ONLY, "mega_super_run", DEBUG_OUT)) return; flag = true; util = true; result = jvmti_env->GetLocalVariableTable(method, &varnum, &table); fprintf(stderr, "\tnative: GetLocalVariableTable result = %d (must be zero) \n", result); fprintf(stderr, "\tnative: varnum = %d (must be zero) \n", varnum); fprintf(stderr, "\tnative: table = %p (must be zero) \n", table); if (result != JVMTI_ERROR_NONE) return; for (int i = 0; i < varnum; i++) if (!strcmp(table[i].name, "test")) index = i; result = jvmti_env->GetLocalInt(NULL, depth, slot, &value); fprintf(stderr, "\tnative: GetLocalInt result = %d (must be zero) \n", result); fprintf(stderr, "\tnative: depth is %d \n", depth); fprintf(stderr, "\tnative: table[i].slot is %d \n", table[index].slot); fprintf(stderr, "\tnative: value is %p (must be 0xdeadbeef) \n", (void*)value); if ((result == JVMTI_ERROR_NONE) && (value == 0xdeadbeef)) test = true; } void JNICALL callbackVMDeath(prms_VMDEATH) { check_VMDEATH; func_for_callback_VMDeath(jni_env, jvmti_env, test_case_name, test, util); } /* *********************************************************************** */
4c3f509d2fdd0329889c101dfcf115047d9850a5
5254b5e2bc646f00dd49538dffae4ca81e81078a
/device/deviceController.cpp
85abd0c797455f3569c407a86d9c60a272b9e258
[]
no_license
happydpc/Conf_lls_QML
48700258dbe70b0fb188b149526029d47ccd3875
a350f1b2391f666b27d059d13b174cdca5d7ef90
refs/heads/master
2021-10-08T13:11:27.422071
2018-12-03T08:50:24
2018-12-03T08:50:24
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,519
cpp
deviceController.cpp
#include "deviceController.h" #include "device/Progress_TMK24/Progress_tmk24Service.h" #include "device/Progress_TMK24/Progress_tmk24.h" #include "device/Nozzle_Revision_0_00_Oct_2018/Nozzle_Revision_0_00_Service.h" #include "device/Nozzle_Revision_0_00_Oct_2018/Nozzle_Revision_0_00_Oct_2018.h" DeviceController::DeviceController(interfacesAbstract *p_int_abstract) { this->deviceFactory = std::make_shared<DevicesFactory>(); this->deviceCollector = std::make_shared<DeviceCollector>(p_int_abstract); this->updateTimer = std::make_unique<QTimer>(); this->devMutex = std::make_unique<QMutex>(); this->updateTimer->start(100); serviceList.push_back(std::make_shared<Progress_tmk24Service>("PROGRESS TMK24")); serviceList.push_back(std::make_shared<Nozzle_Rev_0_00_Service>("Nozzle Rev 0.0")); connect(this->updateTimer.get(), SIGNAL(timeout()), this, SLOT(updater())); connect(this->deviceCollector.get(), &DeviceCollector::reqReadyReplyDataToDevice, this, [&](QByteArray replyData, CommandController::sCommandData command) { if(devMutex.get()->tryLock(100)) { auto dev = deviceFactory.get()->findDeviceByUnicIdent(command.deviceIdent); if(dev != nullptr) { dev->second->placeDataReplyToCommand(replyData, command); } devMutex.get()->unlock(); } }); } DevicesFactory* DeviceController::getDeviceFactory() const { DevicesFactory* p_ret_factoty = nullptr; p_ret_factoty = deviceFactory.get(); return p_ret_factoty; } DeviceCollector* DeviceController::getDeviceCollector() const { DeviceCollector* p_ret_collector = nullptr; p_ret_collector = deviceCollector.get(); return p_ret_collector; } void DeviceController::resetAll() { deviceFactory.reset(); deviceCollector.reset(); } void DeviceController::updater() { static int indexProcessedDev = 0; // if collector is ready if(deviceCollector.get()->getIsIdle()) { // if deviceMap is not empty if(deviceFactory.get()->getDeviceCount()) { // bust all device if(indexProcessedDev < deviceFactory.get()->getDeviceCount()-1) { indexProcessedDev ++; } else { indexProcessedDev = 0; } DeviceAbstract *p_abstr_dev = nullptr; p_abstr_dev = getDeviceFactory()->getDeviceToDeviceAbstract(indexProcessedDev); if(p_abstr_dev != nullptr) { switch(p_abstr_dev->getState()) { case DeviceAbstract::STATE_DISCONNECTED: deviceCollector.get()->addCommand(p_abstr_dev->getCommandToCheckConnected()); break; case DeviceAbstract::STATE_GET_TYPE: deviceCollector.get()->addCommand(p_abstr_dev->getCommandToGetType()); break; case DeviceAbstract::STATE_CHECK_PASSWORD: deviceCollector.get()->addCommand(p_abstr_dev->getCommandtoCheckPassword()); break; case DeviceAbstract::STATE_START_INIT: deviceCollector.get()->addCommand(p_abstr_dev->getCommandListToInit()); break; case DeviceAbstract::STATE_NORMAL_READY: deviceCollector.get()->addCommand(p_abstr_dev->getCommandListToCurrentData()); break; } } } } } bool DeviceController::addDevice(QString devTypeName, QStringList keyParam, QStringList valueParam) { if(devMutex->tryLock(1000)) { for(auto service:serviceList) { if(service.get()->getDeviceType() == devTypeName) { deviceFactory.get()->addNewDevice(devTypeName, keyParam, valueParam, service.get()); devMutex->unlock(); return true; } } devMutex->unlock(); } return false; } bool DeviceController::removeDevice(QString devId) { if(devMutex->tryLock(1000)) { deviceFactory.get()->removeDevice(devId); devMutex->unlock(); } } //if(typeCommand == "change device head name") { // for(auto i=0; i<keys.length(); i++) { // if(keys[i] == "newHeader") { // res = interfaceTree->changeDeviceHeader(getCurrentInterfaceName(), // getDeviceFactoryByIndex(interfaceTree->getIoIndex())->getDeviceNameWithId(interfaceTree->getDevIndex()), values[i]); // getDeviceFactoryByIndex(interfaceTree->getIoIndex())->setDeviceHeader(interfaceTree->getDevIndex(), values[i]); // return res; // } // } // } //} //********************************************/ // its for send deffered request //********************************************/ bool DeviceController::sendCommadToDev(QString operation, QStringList keys, QStringList values) { bool res = false; for(int i=0; i<keys.size(); i++) { if(keys.at(i).toLower() == "devid") { if(devMutex->tryLock(1000)) { auto dev = deviceFactory->findDeviceByUnicIdent(values.at(i)); if(dev != nullptr) { auto devComman = dev->second->getCommandCustom(operation, QPair<QStringList,QStringList>(keys, values)); if(!devComman.empty()) { deviceCollector->addCommand(devComman); } devMutex->unlock(); } res = true; } break; } } return res; } //********************************************/ // its for imediately exect command //********************************************/ QStringList DeviceController::exeCommadToDev(QString operation, QStringList keys, QStringList values) { QStringList res; if(devMutex->tryLock(1000)) { for(int i=0; i<keys.size(); i++) { if(keys.at(i).toLower() == "devid") { auto dev = deviceFactory->findDeviceByUnicIdent(values.at(i)); if(dev != nullptr) { res = dev->second->execCommand(operation, QPair<QStringList,QStringList>(keys, values)); devMutex->unlock(); } } } } return res; } void DeviceController::setDeviceReInitByIndex(int index) { deviceFactory->findDeviceByIndex(index)->second->setState(DeviceAbstract::STATE_DISCONNECTED); }
604c624ef51b86b38f9f0735175fd193b91336c2
5ce1e1a28e97a610cdde9ef98083deceb507dcaf
/pathfinder.h
a8f844efa3a0e89bc2ded5bdd88c5f2d6d32b6e3
[]
no_license
sahmed586/Pathfinding-Algorithm-Project
b070884748f3bdfa89b4bd6f4374989c3ceb0f80
a1923a8732bf4650207adf5bcc43326ed7343fd1
refs/heads/main
2023-03-06T02:00:24.283095
2021-02-26T18:12:55
2021-02-26T18:12:55
342,659,066
0
0
null
null
null
null
UTF-8
C++
false
false
536
h
pathfinder.h
// CSC 2110-2111 - Group #7 //Akansha A, Sadia A // pathfinder.h #pragma once #include <iostream> #include "cell.h" using namespace std; class pathfinder{ private: cell * *map; // pointer to 2D array of cell objects position currentPosition; // current position in path void display(); // prints path bool DFSUtil(int row, int col); // helper function public: void search(); // get path from initial postion to goal // constructor pathfinder(cell** pmap, int initialColumn, int initialRow); };
dce4bd2a0e0e2271d4c10f9f51b1d23941eec781
584f5184eb0f79e355a4361c19d17ab8c2305f4d
/imu_driver/src/imu_decoder.cpp
2521af5de53c51cfee0606c6c9f5c189ac2c380c
[]
no_license
yalan2017/imu_driver
7b91ca5a6d320e1595e7694499db026670861de5
1901b64eecde0e30ad33a390cd3fc2f3b7e99ac8
refs/heads/master
2021-01-16T19:27:52.372858
2017-08-13T11:51:32
2017-08-13T11:51:32
100,173,132
1
0
null
null
null
null
UTF-8
C++
false
false
4,472
cpp
imu_decoder.cpp
#include <ros/ros.h> #include <cereal_port/CerealPort.h> // #include "imu_driver/JY901_frame.h" #include "imu_driver/JY901.h" #include "sensor_msgs/Imu.h" #include "std_msgs/Float64.h" #include "std_msgs/Int8.h" #include "std_msgs/Int32.h" #include "std_msgs/Int8MultiArray.h" #include "std_msgs/Int32MultiArray.h" #include "std_msgs/Float64MultiArray.h" cereal::CerealPort serial_port; ros::Publisher imu_pub; CJY901 ::CJY901 () { } void CJY901 ::CopeSerialData(char ucData[],unsigned short usLength) { static unsigned char chrTemp[2000]; static unsigned char ucRxCnt = 0; static unsigned short usRxLength = 0; memcpy(chrTemp,ucData,usLength); usRxLength += usLength; while (usRxLength >= 11) { if (chrTemp[0] != 0x55) { usRxLength--; memcpy(&chrTemp[0],&chrTemp[1],usRxLength); continue; } switch(chrTemp[1]) { case 0x50: memcpy(&stcTime,&chrTemp[2],8);break; case 0x51: memcpy(&stcAcc,&chrTemp[2],8);break; case 0x52: memcpy(&stcGyro,&chrTemp[2],8);break; case 0x53: memcpy(&stcAngle,&chrTemp[2],8);break; case 0x54: memcpy(&stcMag,&chrTemp[2],8);break; case 0x55: memcpy(&stcDStatus,&chrTemp[2],8);break; case 0x56: memcpy(&stcPress,&chrTemp[2],8);break; case 0x57: memcpy(&stcLonLat,&chrTemp[2],8);break; case 0x58: memcpy(&stcGPSV,&chrTemp[2],8);break; } usRxLength -= 11; memcpy(&chrTemp[0],&chrTemp[11],usRxLength); } } CJY901 JY901 = CJY901(); void *rcvThread(void *arg) { unsigned char ucComNo[2] ={0,0}; char chrBuffer[2000]; unsigned short usLength=0,usCnt=0; unsigned long ulBaund=9600,ulComNo=3; while(1){ // ROS_INFO("1"); usLength = serial_port.read(chrBuffer,2000,1); //usLength = CollectUARTData(ulComNo,chrBuffer); if (usLength>0) { JY901.CopeSerialData(chrBuffer,usLength); } ros::Duration(0.01).sleep(); if (usCnt++>=0) { // ROS_INFO("2"); usCnt=0; // converting imu data to sensor_msgs::Imu, reference link below // https://gist.github.com/ShikherVerma/1b6ad5144688ed774835 sensor_msgs::Imu imu_msg = sensor_msgs::Imu(); imu_msg.header.stamp = ros::Time::now(); imu_msg.header.frame_id = "imu_link"; imu_msg.orientation.x = (float)JY901.stcAngle.Angle[0]/32768*180;//(float)JY901.stcGyro.w[0]/32768*2000; //????? imu_msg.orientation.y = (float)JY901.stcAngle.Angle[1]/32768*180;//(float)JY901.stcGyro.w[1]/32768*2000; //????? imu_msg.orientation.z = (float)JY901.stcAngle.Angle[2]/32768*180;//(float)JY901.stcGyro.w[2]/32768*2000; //????? imu_msg.orientation.w = 0.0; //imu_msg.angular_velocity_covariance = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; imu_msg.angular_velocity.x = (float)JY901.stcGyro.w[0]/32768*2000;//(float)JY901.stcAngle.Angle[0]/32768*180; //????? imu_msg.angular_velocity.y = (float)JY901.stcGyro.w[1]/32768*2000;//(float)JY901.stcAngle.Angle[1]/32768*180; //????? imu_msg.angular_velocity.z = (float)JY901.stcGyro.w[2]/32768*2000;//(float)JY901.stcAngle.Angle[2]/32768*180; //????? //imu_msg.angular_velocity_covariance = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; imu_msg.linear_acceleration.x = (float)JY901.stcAcc.a[0]/32768*16; imu_msg.linear_acceleration.y = (float)JY901.stcAcc.a[1]/32768*16; imu_msg.linear_acceleration.z = (float)JY901.stcAcc.a[2]/32768*16; //imu_msg.angular_velocity_covariance = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; imu_pub.publish(imu_msg); ROS_INFO("IMU SENDIND DATA"); ros::Duration(0.1).sleep();// } } } int main(int argc, char** argv) { ros::init(argc, argv, "imu_node"); std::string portname; int baudrate; ros::NodeHandle pn("~"); ros::NodeHandle nh; imu_pub = nh.advertise<sensor_msgs::Imu>("imu/data", 10); pn.param<std::string>("port", portname, "/dev/ttyUSB0");//ttyUSB1 pn.param("baudrate", baudrate, 115200); // ros::Duration(0.1).sleep();// try{ serial_port.open((char*)portname.c_str(), baudrate); } catch(cereal::Exception& e) { ROS_INFO("unable to open imu com"); } //Create receive thread pthread_t rcvThrID; //receive thread ID int err; err = pthread_create(&rcvThrID, NULL, rcvThread, NULL); if (err != 0) { ROS_ERROR("unable to create receive thread"); return -1; } ros::spin(); return 0; }
b28b3c2a2e0201b29ed758e60886b48760f5f8a9
7bcf78cc75710a949fe581317982724a262defb7
/sedziak_z7/main.cpp
4e348633c7f31dcf18181f16f24b1e42d1d23e6b
[]
no_license
Levii01/Studies_exercise
56a6a94a026ba485e7a3217dfb1dd6d915aca151
6f69f1e50d61d5eaddd43058046f6e254f0e4bc4
refs/heads/master
2021-01-11T15:56:40.251609
2017-01-27T20:13:12
2017-01-27T20:13:12
79,962,890
0
0
null
null
null
null
UTF-8
C++
false
false
3,956
cpp
main.cpp
#include <iostream> #include <cstdlib> #include <fstream> #include <iomanip> const int n=6; const int A=1965, B=1980; const double P=800; struct moto { std::string marka; int rocznik; double cena; }; int main() { moto S[n]; char litera='s'; // ostatnia litera marki int licznik=0; // ilosc samochodow, ktorych marka konczy sie na 's' bool jest_litera=false; double suma=0; // wczytaj dane z pliku std::fstream dane_we; std::string nazwa_pliku_wejsciowego; do { std::cout << "Podaj nazwe pliku z danymi: "; std::cin >> nazwa_pliku_wejsciowego; dane_we.open(nazwa_pliku_wejsciowego.c_str(), std::ios::in); if(!dane_we.good()) std::cout << "Problem z wczytaniem danych. Spróbuj ponownie.\n\n"; }while(!dane_we.good()); std::cout << "\n"; // sprawdzenie pliku i wczytanie for(int i=0; i<n; i++) { dane_we >> S[i].marka >> S[i].rocznik >> S[i].cena; } dane_we.close(); // wyszukanie roczników A-B i sprawdzenie marek kończących się na 's' for(int i=0; i<n; i++) { if(S[i].marka[S[i].marka.size()-1] == litera) // jesli ostatnia litera to 'litera' if((S[i].rocznik>=A) && (S[i].rocznik<=B)) // i jesli rocznik jest miedzy <A,B> { licznik++; suma+=S[i].cena; jest_litera=true; } } // jesli marka nie konczyla sie na s, oblicz srednia ze wszystkich if(!jest_litera) { licznik=n; for(int i=0; i<n; i++) { suma+=S[i].cena; } } // tablica std::cout << "\n\n"; for(int i=0; i<n; i++) { std::cout << std::setw(22) << std::right << "Marka:\t" << S[i].marka << "\n"; std::cout << std::setw(22) << std::right << "Rocznik:\t" << S[i].rocznik << " r.\n"; std::cout << std::setw(22) << std::right << std::fixed << std::setprecision(2) << "Cena:\t" << S[i].cena << " zł\n\n"; } // std::cout << "\n\nSrednia z S: " << std::fixed << std::setprecision(2) << suma/licznik << " zł\n"; for(int i=0; i<n; i++) { if((S[i].rocznik==2016) && (S[i].cena > suma/licznik+P)) S[i].cena=S[i].cena-S[i].cena*0.1; } // wyświetlenie tablicy std::cout << "\n\n"; std::cout << "-------------------------------------------------\n"; std::cout << "- Tablica po ewentualnej obnizce rocznika 2016 -\n"; std::cout << "-------------------------------------------------\n\n"; for(int i=0; i<n; i++) { std::cout << std::setw(22) << std::right << "Marka:\t" << S[i].marka << "\n"; std::cout << std::setw(22) << std::right << "Rocznik:\t" << S[i].rocznik << " r.\n"; std::cout << std::setw(22) << std::right << std::fixed << std::setprecision(2) << "Cena:\t" << S[i].cena << " zł\n\n"; } // zamiana miejsc najdroższy/najtańszy int i_max=0, i_min=0; for(int i=0; i<n; i++) { if(S[i].cena<S[i_min].cena) i_min=i; if(S[i].cena>S[i_max].cena) i_max=i; } std::cout << "najdrozszy: " << S[i_max].marka << std::endl; std::cout << "najtanszy: " << S[i_min].marka << std::endl; // zamiana moto temp; temp=S[i_min]; S[i_min]=S[i_max]; S[i_max]=temp; // wydrukuj tablice std::cout << "\n\n"; std::cout << "-------------------------------------------------\n"; std::cout << "- Zamiana miejscami najdrozszego z najtanszym -\n"; std::cout << "-------------------------------------------------\n\n"; for(int i=0; i<n; i++) { std::cout << std::setw(22) << std::right << "Marka:\t" << S[i].marka << "\n"; std::cout << std::setw(22) << std::right << "Rocznik:\t" << S[i].rocznik << " r.\n"; std::cout << std::setw(22) << std::right << std::fixed << std::setprecision(2) << "Cena:\t" << S[i].cena << " zł\n\n"; } std::cout << "\n\n"; return 0; }
44ace5dba96c097645435cbcac5b9b2dd2e82155
d8783a5ca4acb93d9391b8b13e4de1556022f079
/compare_output.cpp
932d3fdf75dd90ccc6101e4c8d9d1e2cb46975c4
[]
no_license
rishitc/External-Sort-Using-Cpp
416eccabfe064667a8d6bd58b2ac41cbd0fdd48d
65f14fc5db7577f69c606d0c42c9bcfcfd9a75d3
refs/heads/master
2023-02-16T03:38:54.232323
2021-01-11T18:35:32
2021-01-11T18:35:32
328,711,812
0
0
null
null
null
null
UTF-8
C++
false
false
942
cpp
compare_output.cpp
#include <iostream> #include <fstream> #include <stdio.h> using namespace std; int main(int argc, char* argv[]) { string input_1 = argv[1]; string input_2 = argv[2]; ifstream input1, input2; input1.open(input_1.c_str()); input2.open(input_2.c_str()); while (!input1.eof() && !input2.eof()) { string sen1, sen2; getline(input1, sen1); getline(input2, sen2); if (sen1.compare(sen2) != 0) { cout << sen1 << ' ' << sen2 << endl; } } if (!input1.eof()) { cout << "input1 not eof" << endl; while (!input1.eof()) { string sen; getline(input1, sen); cout << sen << endl; } } if (!input2.eof()) { cout << "input2 not eof" << endl; while (!input2.eof()) { string sen; getline(input2, sen); cout << sen << endl; } } return 0; }
ef4c01a0f5b91054716ff6773eb0a862fbbb9f32
2a5db4d9e51d29445f72d1ffd3f98609523b082d
/media-driver/media_driver/agnostic/common/hw/mhw_block_manager.h
4c7d1d8d79ae234eb806ed20b6536c355ae50cf1
[ "BSD-3-Clause", "MIT" ]
permissive
mintaka33/media
19f26239aee1d889860867a536024ffc137c2776
4ab1435ef3b3269ff9c0fa71072c3f81275a4b9d
refs/heads/master
2021-05-11T04:01:48.314310
2018-02-02T03:43:36
2018-02-02T03:43:36
117,930,190
0
1
null
null
null
null
UTF-8
C++
false
false
23,806
h
mhw_block_manager.h
/* * Copyright (c) 2015-2017, Intel Corporation * * 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. */ //! //! \file mhw_block_manager.h //! \brief This modules implements state heap block manager used in MHW //! #ifndef __MHW_BLOCK_MANAGER_H__ #define __MHW_BLOCK_MANAGER_H__ #include "mos_os.h" #include "mhw_state_heap.h" #include "mhw_memory_pool.h" #define BLOCK_MANAGER_CHK_STATUS(_stmt) \ MOS_CHK_STATUS_RETURN(MOS_COMPONENT_HW, MOS_HW_SUBCOMP_ALL, _stmt) #define BLOCK_MANAGER_CHK_STATUS_MESSAGE(_stmt, _message, ...) \ MOS_CHK_STATUS_MESSAGE_RETURN(MOS_COMPONENT_HW, MOS_HW_SUBCOMP_ALL, _stmt, _message, ##__VA_ARGS__) #define BLOCK_MANAGER_CHK_NULL(_ptr) \ MOS_CHK_NULL_RETURN(MOS_COMPONENT_HW, MOS_HW_SUBCOMP_ALL, _ptr) #define MHW_BLOCK_MANAGER_INVALID_TAG ((uint32_t)-1) // Maximum allocation array size #define MHW_BLOCK_MANAGER_MAX_BLOCK_ARRAY 64 typedef struct _MHW_BLOCK_MANAGER_PARAMS { uint32_t dwPoolInitialCount; //!< Initial number of memory blocks in pool uint32_t dwPoolMaxCount; //!< Maximum number of memory blocks in pool uint32_t dwPoolIncrement; //!< Memory block pool increment uint32_t dwHeapInitialSize; //!< Initial heap size uint32_t dwHeapIncrement; //!< Heap size increment uint32_t dwHeapMaxSize; //!< Maximum overall heap size uint32_t dwHeapMaxCount; //!< Maximum number of heaps uint32_t dwHeapGranularity; //!< Block granularity uint32_t dwHeapBlockMinSize; //!< Minimum block fragment size (never create a block smaller than this) } MHW_BLOCK_MANAGER_PARAMS, *PMHW_BLOCK_MANAGER_PARAMS; #define MHW_BLOCK_POSITION_TAIL (NULL) #define MHW_BLOCK_POSITION_HEAD ((PMHW_STATE_HEAP_MEMORY_BLOCK) -1) typedef struct _MHW_BLOCK_LIST { PMHW_BLOCK_MANAGER pBlockManager; //!< Block Manager the list belongs to PMHW_STATE_HEAP_MEMORY_BLOCK pHead; //!< Head of the list PMHW_STATE_HEAP_MEMORY_BLOCK pTail; //!< Tail of the list MHW_BLOCK_STATE BlockState; //!< Described the type of block the list contains int32_t iCount; //!< Number of elements on the list uint32_t dwSize; //!< Total memory in the list char szListName[16]; //!< List name for debugging purposes } MHW_BLOCK_LIST, *PMHW_BLOCK_LIST; struct MHW_BLOCK_MANAGER { private: MHW_BLOCK_MANAGER_PARAMS m_Params; //!< Block Manager configuration MHW_MEMORY_POOL m_MemoryPool; //!< Memory pool of PMHW_STATE_HEAP_MEMORY_BLOCK objects MHW_BLOCK_LIST m_BlockList[MHW_BLOCK_STATE_COUNT]; //!< Block lists associated with each block state PMHW_STATE_HEAP m_pStateHeap; //!< Points to state heap public: //! //! \brief Initializes the MHW_BLOCK_MANAGER //! \details Constructor of MHW_BLOCK_MANAGER which initializes all parameters and members //! \param [in] pParams //! Pointer to block manager params. If it is null, default param will be used. //! MHW_BLOCK_MANAGER(PMHW_BLOCK_MANAGER_PARAMS pParams); //! //! \brief Destructor of MHW_BLOCK_MANAGER ~MHW_BLOCK_MANAGER(); //! //! \brief Adds newly created state heap to block manager //! \details Adds a new state heap to memory block manager. A new memory free memory block is added to //! the free list representing the new available heap. //! \param [in] pStateHeap //! Pointer to the newly created state heap //! \return MOS_STATUS //! Returns the status of the operation //! MOS_STATUS RegisterStateHeap(PMHW_STATE_HEAP pStateHeap); //! //! \brief Unregisters state heap from block manager prior to deallocation //! \details Removes state heap from block manager. Memory blocks must be all deleted. //! \param [in] pStateHeap //! Pointer to the newly created state heap //! \return MOS_STATUS //! Returns the status of the operation //! MOS_STATUS UnregisterStateHeap(PMHW_STATE_HEAP pStateHeap); //! //! \brief Update block states based on last executed tag //! \details Update block states based on last executed tag //! submitted unlocked blocks are released; //! move to allocated //! \param [in] dwSyncTag //! sync tag //! \return MOS_STATUS //! Returns the status of the operation //! MOS_STATUS Refresh(uint32_t dwSyncTag); //! //! \brief Allocate memory block with scratch space //! \details Allocate memory block with scratch space //! \param [in] dwSize //! Size of memory block to allocate //! \param [in] dwAlignment //! Alignment //! \param [in] dwScratchSpace //! Scratch space size //! \return PMHW_STATE_HEAP_MEMORY_BLOCK //! Pointer to the allocated memory block //! PMHW_STATE_HEAP_MEMORY_BLOCK AllocateWithScratchSpace( uint32_t dwSize, uint32_t dwAlignment, uint32_t dwScratchSpace); //! //! \brief Allocate free block of memory //! \details Allocate free memory block of memory for use by the client //! \param [in] dwSize //! Size of memory to be allocated //! \param [in] dwAlignment //! Memory alignment //! \param [in] pHeapAffinity //! Pointer to heap affinity //! \return PMHW_STATE_HEAP_MEMORY_BLOCK //! Pointer to allocated memory block //! PMHW_STATE_HEAP_MEMORY_BLOCK AllocateBlock( uint32_t dwSize, uint32_t dwAlignment, PMHW_STATE_HEAP pHeapAffinity); //! //! \brief Free memory block //! \details Free memory block according to the sync tag //! \param [in] pBlock //! Pointer to memory block to be freed //! \param [in] dwSyncTag //! Sync tag //! \return MOS_STATUS //! Returns the status of the operation //! MOS_STATUS FreeBlock( PMHW_STATE_HEAP_MEMORY_BLOCK pBlock, uint32_t dwSyncTag); //! //! \brief Calculate the memory of space required //! \details Calculate the memory of space required //! \param [in] pdwSizes //! Pointer to memory block to be freed //! \param [in] iCount //! Sync tag //! \param [in] dwAlignment //! alignment //! \param [in] bHeapAffinity //! heap affinity //! \param [in] pHeapAffinity //! pointer to state heap affinity //! \return uint32_t Size of space needed by client //! uint32_t CalculateSpaceNeeded( const uint32_t *pdwSizes, int32_t iCount, uint32_t dwAlignment, bool bHeapAffinity, PMHW_STATE_HEAP pHeapAffinity); //! //! \brief Submit memory block //! \details Submit memory block according to the sync tag //! \param [in] pBlock //! Pointer to memory block to be submitted //! \param [in] dwSyncTag //! Sync tag //! \return MOS_STATUS //! Returns the status of the operation //! MOS_STATUS SubmitBlock( PMHW_STATE_HEAP_MEMORY_BLOCK pBlock, uint32_t dwSyncTag); //! //! \brief Set state heap to block manager //! \details Set state heap to block manager //! \param [in] pStateHeap //! Pointer to state heap //! void SetStateHeap(PMHW_STATE_HEAP pStateHeap); // Multiple Block Allocation algorithm description (multiple kernel load): // // Multiple blocks must be efficiently allocated in multiple heaps or in a single heap. // // Each load may introduce block fragmentation. The more kernels are loaded, the greater // are the chances to fragment the heap, reducing the chances of finding contiguous for a // larger kernel. Therefore, the efficient way to use the heap is to load larger kernels // first ensuring they have enough contiguous space, and then load the smaller kernels, // which are more likely to fit in remaining blocks. // // So the algorithm is the following: // // 1) The total size of all blocks is calculated to check if there's even a fighting chance // to load them all - if the amount available is insufficient, other measures will be taken. // // 2) In order to allocate blocks according to size, we first sort the array of sizes // using an index array (never touching the source array!) - this is done by a merge sort // implementation, which is O(n*log(n)) - may try using other algorithm such as QuickSort - // although quicksort is not always the best (may be O(n^2) in same cases) // // 3) Select a specific heap (or nullptr if bHeapAffinity is false). Check if there is enough space // to load all blocks - ignoring the fragmentation for now. Only by traversing the list of // blocks we will be able to determine if the heap can be used or not. Trying to load larger // kernels FIRST helps identifying heap fragmentation issues faster than leaving it for last. // // 4) Load the array of kernels one at a time according to size (larger first). Select a specific // heap or nullptr (if any heap, don't care). // // 5) If all succeeded, then we are ready to return the list of blocks to the client. // // 6) If it fails, release the already allocated blocks. the algorithm does check for space in the // current heap before even starting the loop. The failure will not happen for lack of space, // but because of fragmentation of free space. In case of bHeapAffinity = false, we also check // the aggregate free space. // // 7) If the heap affinity is selected and the intended heap is also provided, we're done - if we // were not able to load the blocks, the overall operation has failed. If affinity is selected but // the heap was not provided, we try the next heap until no more heaps are available. This particular // situation is intended for loading all blocks in the same heap without specifying which one. // //! //! \brief Allocate multiple blocks //! \details Allocate multiple blocks //! \param [in] pdwSizes //! Pointer to sizes //! \param [in] iCount //! Count of blocks to be allocated //! \param [in] dwAlignment //! Alignment //! \param [in] bHeapAffinity //! true if all blocks must be allocated in the same heap //! \param [in] pHeapAffinity //! Pointer to heap affinity //! \return PMHW_STATE_HEAP_MEMORY_BLOCK //! Pointer to allocated memory block //! PMHW_STATE_HEAP_MEMORY_BLOCK AllocateMultiple( uint32_t *pdwSizes, int32_t iCount, uint32_t dwAlignment, bool bHeapAffinity, PMHW_STATE_HEAP pHeapAffinity); private: //! //! \brief Gets memory block from pool //! \details Gets memory block from pool, extending the pool if necessary //! \return PMHW_STATE_HEAP_MEMORY_BLOCK //! Returns a pointer to the memory block, nullptr if failed to allocate or //! all blocks are in use and the pool reached its maximum size. //! PMHW_STATE_HEAP_MEMORY_BLOCK GetBlockFromPool(); //! //! \brief Extends pool of MHW_STATE_HEAP_MEMORY_BLOCK objects //! \details Allocates an array of MHW_STATE_HEAP_MEMORY_BLOCK objects and appends to the pool of objects for reuse. //! The allocation of memory block structures is limited to the maximum number defined when creating //! the Memory Block Manager object. The increase in number of memory blocks may be due to increased //! block fragmentation, system load or other factors (increase in queue depth, increas in memory //! blocks maintained by the client - such as number of kernels loaded). //! \param [in] dwCount //! Number of additional blocks to add to the pool //! \return N/A //! void ExtendPool(uint32_t dwCount); //! //! \brief Attach block into appropriate memory block list //! \details Sets block state and inserts it into the memory block list associated with the new state. //! The block may be inserted at the "Head" or "Tail" of the list, or after another block from the same list. //! \param [in]BlockState //! New block state, defines which list the block is to be inserted. //! NOTE: The block must not belong to any other list before calling this function (pPrev/pNext = nullptr). //! \param [in] pBlock //! Pointer to memory block //! \param [in] pBlockPos //! Pointer to memory block after which the block is to be inserted (inserted AFTER pBlockPos) //! If set to MHW_BLOCK_POSITION_HEAD, inserts block at the head of the list. //! If set to MHW_BLOCK_POSITION_TAIL, inserts block at the tail of the list. //! \return MOS_STATUS //! Returns error code //! MOS_STATUS AttachBlock( MHW_BLOCK_STATE BlockState, PMHW_STATE_HEAP_MEMORY_BLOCK pBlock, PMHW_STATE_HEAP_MEMORY_BLOCK pBlockPos); //! //! \brief INTERNAL function to insert a block into a block list. //! \details Insert a block into a block list at a given position (head, tail, insert after block) //! Ensures that the list and the block position are both valid. //! Does not check if the block is still attached to another list. //! IMPORTANT: Block must be detached, at the risk of corrupting other block lists. //! This function does not track state heap usage //! \param [in] pList //! Pointer to memory block list structure //! \param [in] BlockState //! New block state, defines the state of the new block, //! must match the state associated with the list and reference block //! \param [in] pBlock //! Pointer to memory block to be inserted //! \param [in] pBlockPos //! Pointer to memory block after which the block is to be inserted (inserted AFTER pBlockPos) //! If set to MHW_BLOCK_POSITION_HEAD, inserts block at the head of the list. //! If set to MHW_BLOCK_POSITION_TAIL, inserts block at the tail of the list. //! \return MOS_STATUS //! Returns error code //! MOS_STATUS AttachBlockInternal( PMHW_BLOCK_LIST pList, MHW_BLOCK_STATE BlockState, PMHW_STATE_HEAP_MEMORY_BLOCK pBlock, PMHW_STATE_HEAP_MEMORY_BLOCK pBlockPos); //! //! \brief Removes a block from a memory block list //! \details Removes a block from a memory block list from a given //! \param [in] BlockState //! Block state defines from which list the block is to be removed. //! \param [in] pBlockPos //! Defines the object in list to be detached. //! If set to MHW_BLOCK_POSITION_HEAD, detaches the first block in the list. //! If set to MHW_BLOCK_POSITION_TAIL, detaches the last block in the list. //! \return PMHW_STATE_HEAP_MEMORY_BLOCK //! Returns a pointer to the block detached, nullptr if the list is empty or invalid. //! PMHW_STATE_HEAP_MEMORY_BLOCK DetachBlock( MHW_BLOCK_STATE BlockState, PMHW_STATE_HEAP_MEMORY_BLOCK pBlockPos); //! //! \brief INTERNAL function to remove a block from a block list. //! \details Removes a block from a list provided. The caller may specify the block //! to remove, or request the head or tail of the list. //! Ensures that the list and the block position are both valid. //! Does not check if the block is still attached to another list. //! IMPORTANT: Block must be detached, at the risk of corrupting other block lists. //! This function does not track state heap usage //! \param [in] pList //! Pointer to memory block list structure //! \param [in] pBlock //! Pointer to memory block to be inserted //! \return PMHW_STATE_HEAP_MEMORY_BLOCK //! Returns block, nullptr if failure or no block available //! PMHW_STATE_HEAP_MEMORY_BLOCK DetachBlockInternal( PMHW_BLOCK_LIST pList, PMHW_STATE_HEAP_MEMORY_BLOCK pBlock); //! //! \brief Interface to move block from one list to another //! \details Moves a block from a list into another //! Ensures that the list and the block position are both valid. //! Does not check if the block is still attached to another list. //! IMPORTANT: Block must be detached, at the risk of corrupting other block lists. //! This function does not track state heap usage //! \param [in] pSrcList //! Pointer to source list //! \param [in] pDstList //! Pointer to destination list //! \param [in] pBlock //! Pointer to memory block to be moved //! \param [in] pBlockPos //! Pointer to memory block after which the block is to be inserted (inserted AFTER pBlockPos) //! If set to MHW_BLOCK_POSITION_HEAD, inserts block at the head of the list. //! If set to MHW_BLOCK_POSITION_TAIL, inserts block at the tail of the list. //! \return MOS_STATUS //! Returns error code //! MOS_STATUS MoveBlock( PMHW_BLOCK_LIST pSrcList, // Source list PMHW_BLOCK_LIST pDstList, // Destination list PMHW_STATE_HEAP_MEMORY_BLOCK pBlock, // Block to be moved (or HEAD/TAIL of source list) PMHW_STATE_HEAP_MEMORY_BLOCK pBlockPos); // Position to insert (or HEAD/TAIL of target list) //! //! \brief Returns memory block object to pool //! \details Returns memory block object to pool //! \param [in] pBlock //! Pointer to memory block to be returned back to pool //! \return N/A //! void ReturnBlockToPool(PMHW_STATE_HEAP_MEMORY_BLOCK pBlock); //! //! \brief Consolidate free memory //! \details Consolidate free memory blocks adjacent to a given free block (within the same state heap). //! \param [in] pBlock //! Pointer to free memory block //! \return N/A //! void ConsolidateBlock(PMHW_STATE_HEAP_MEMORY_BLOCK pBlock); //! //! \brief INTERNAL: Move block from free to allocated list //! \details Move block from free to allocated list, setting up pointer/offset to data //! \param [in] pBlock //! Pointer to free memory block //! \param uint32_t dwAlignment //! [in] Data alignment, assured to be power of 2 by caller //! \return MOS_STATUS //! Returns the status of the operation //! MOS_STATUS AllocateBlockInternal( PMHW_STATE_HEAP_MEMORY_BLOCK pBlock, uint32_t dwAlignment); //! //! \brief Split block internal //! \details Split block internal //! \param [in] pBlock //! Pointer to block to be splitted //! \param [in] dwSplitSize //! Size of the block to be splitted //! \param [in] dwAlignment //! Data alignment, assured to be power of 2 by caller //! \param [in] bBackward //! if true, use higher part of the block //! \return MOS_STATUS //! Returns the status of the operation //! MOS_STATUS SplitBlockInternal( PMHW_STATE_HEAP_MEMORY_BLOCK pBlock, uint32_t dwSplitSize, uint32_t dwAlignment, bool bBackward); //! //! \brief Merge blocks //! \details Merge blocks //! \param [in] pBlockL //! Pointer to block in lower memory //! \param [in] pBlockH //! Pointer to block in higher memory //! \param [in] dwAlignment //! Data alignment, assured to be power of 2 by caller //! \param [in] bBackward //! if True, pBlcokL is merged into pBlockH //! if False, pBlockH is merged into pBlockL //! \return MOS_STATUS //! Returns the status of the operation //! MOS_STATUS MergeBlocksInternal( PMHW_STATE_HEAP_MEMORY_BLOCK pBlockL, PMHW_STATE_HEAP_MEMORY_BLOCK pBlockH, uint32_t dwAlignment, bool bBackward); //! //! \brief ResizeBlock //! \details ResizeBlock //! \param [in] pBlock //! Pointer to block to be resized //! \param [in] dwNewSize //! new size of block //! \param [in] dwAlignment //! Data alignment, assured to be power of 2 by caller //! \param [in] bBackward //! if True, allow block to grow forward/backwards (moving its start offset) //! if False, Always grow/shrink forward; //! \return MOS_STATUS //! Returns the status of the operation //! MOS_STATUS ResizeBlock( PMHW_STATE_HEAP_MEMORY_BLOCK pBlock, uint32_t dwNewSize, uint32_t dwAlignment, bool bBackward); }; #endif // __MHW_BLOCK_MANAGER_H__
e328b6a6c11cf447474f94ad9e4231e94fb0940c
36006487fbed2c19a2367e968afc11e76a55bb95
/Codeforces/832B.cpp
a3e662ce3d680bc1b687a9064f863a76e85c4949
[]
no_license
AkVaya/CP_Solutions
99bd280470997f048ca2ee9b9dda83488d19ca7e
60fd900aad28caf34b15b75ce736141dbc074d9f
refs/heads/master
2021-09-27T13:57:38.897747
2021-09-16T16:43:55
2021-09-16T16:43:55
232,780,223
0
0
null
null
null
null
UTF-8
C++
false
false
1,505
cpp
832B.cpp
#include<bits/stdc++.h> using namespace std; int main(){ string s,t; bool check = true; unordered_set<char> allowed; cin>>s>>t; int q,ind = -1; for(auto i : s){ allowed.insert(i); } for (int i = 0; i < t.length(); ++i) { if(t[i]=='*'){ ind = i; break; } } cin>>q; while(q--){ cin>>s; if((ind==-1 && s.length()!=t.length())){ cout<<"NO\n"; continue; } check=true; if(ind==-1){ for (int i = 0; i < s.length(); ++i) { if(t[i]!='?' && s[i]!=t[i]){ check=false; break; } else{ if(allowed.find(s[i])==allowed.end()){ check=true; break; } } } } else{ if(s.length()<t.length()-1){ cout<<"NO\n"; continue; } for (int i = 0; i < ind; ++i) { if(t[i]!='?' && s[i]!=t[i]){ check=false; break; } else{ if(t[i]=='?' && allowed.find(s[i])==allowed.end()){ check=false; break; } } } auto it1=s.end(),it2=t.end(); it1--; it2--; while(it1>=s.begin() && it2>=t.begin() && *it2!='*'){ //cout<<*it1<<' '<<*it2<<endl; if(*it2!='?' && *it1!=*it2){ check=false; break; } else{ if(*it2=='?' && allowed.find(*it1)==allowed.end()){ check=false; break; } } --it1; --it2; } it2 = s.begin()+ind; while(it2<=it1){ if(allowed.find(*it2)!=allowed.end()){ check=false; break; } it2++; } } //cout<<s<<' '; cout<<(check ? "YES\n" : "NO\n"); } return 0; }
007cf2c6968fde581a472a90a297eaa02762087a
ed3a1bfb78362eab5dbed63b529d404f913f031c
/435LGame/main.cpp
7c69f8b4dd5b5931e2dc49d47f6723c8a99b09cd
[]
no_license
AliAkbarH/435LGame
6ca4c4c009bc2973eb8560c6af704640c633a9f3
02a156a9a5cbccde8e7c072d919eafefba4b826f
refs/heads/master
2020-03-30T01:39:25.807514
2018-12-09T18:09:00
2018-12-09T18:09:00
150,587,361
0
0
null
2018-11-07T05:46:45
2018-09-27T12:59:32
C++
UTF-8
C++
false
false
690
cpp
main.cpp
/** * \mainpage EECE435L Game * \author Ali Al Akbar Haidoura * \author Camille farhat * \date 9-12-2018 * \brief A game containing two sub-games designed to help kids learn programming */ #include <QApplication> #include <QtWidgets> #include<QPushButton> #include<signinwidget.h> #include<logginwidget.h> #include<gameswidget.h> #include<logonwidget.h> #include <QGraphicsItem> #include <QGraphicsPixmapItem> #include <QGraphicsScene> #include <QGraphicsView> #include <QApplication> #include "game1scene.h" #include"gameswidget.h" int main(int argc, char **argv) { QApplication app (argc, argv); LogOnWidget *LogonWidget=new LogOnWidget(); LogonWidget->show(); return app.exec(); }
431e39874a6373d4512bba83183bdaf96be1f96f
41bccfc44386c15e239b336b540004abcc024122
/checkZlib/checkZlib.cpp
6a953eb9b87a0c7be71d865aca4bd6aca4c16709
[]
no_license
agangotia/ZlibCompressor
860275e90c0cd1e40858362d3a357b811c8feeda
2231d62b061569052e87c4685241c72430290c7e
refs/heads/master
2021-01-01T17:47:11.912893
2013-11-21T18:02:54
2013-11-21T18:02:54
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,647
cpp
checkZlib.cpp
// checkZlib.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <stdio.h> #include <stdint.h> #include <string> #include "CompressionZutil.h" #define nMaxFileSizeToread 1024*1024*1024 #define nBuffer 16*1024*1024 using namespace carbonite::dedupexperiment; uint64_t getSizeForFile(std::string fileName); int readContents(std::string fileName,unsigned char* P,uint64_t sizeFile); int _tmain(int argc, _TCHAR* argv[]) { std::string fName="Database"; uint64_t sizeFile=getSizeForFile(fName); if(sizeFile>0){ fprintf(stderr, "File Length >0!\n"); unsigned char* P=new unsigned char[sizeFile]; if(readContents(fName,P,sizeFile)==0){ fprintf(stderr, "FileContent read!\n"); uint64_t sCompressedSizeZUTIL=CompressionZutil::prepareCompressZUTILInBlocksOf13M(P,sizeFile); fprintf(stderr, "UnCompressed Size ::%llu!\n",sizeFile); fprintf(stderr, "Compressed Size ::%llu!\n",sCompressedSizeZUTIL); } delete P; } fwprintf(stdout,L"Lets roll"); return 0; } int readContents(std::string fileName,unsigned char* P,uint64_t sizeFile){ FILE *fp=NULL; fp = fopen(fileName.c_str(), "rb"); if (NULL==fp) { fprintf(stderr, "Unable to open file ::%s to get file length!\n",fileName.c_str()); return 1; } uint64_t nBytesRead4File=0L; //normal read //nBytesRead4File = fread(P, 1, sizeFile, fp); if(sizeFile<=(uint64_t)nMaxFileSizeToread){//read all of file //if file size is less than nBuffer if(sizeFile<=nBuffer){ nBytesRead4File = fread(P, 1, sizeFile, fp); }else{//if file size is bigger than nBuffer //read in loops uint64_t nBytesReadInPass=0L; while(nBytesRead4File<sizeFile){//read in buffers nBytesReadInPass=0L; if(nBytesRead4File+nBuffer<sizeFile){//read nBuffer nBytesReadInPass = fread(P+nBytesRead4File, 1, nBuffer, fp); }else{//read remaining size nBytesReadInPass= fread(P+nBytesRead4File, 1, sizeFile-nBytesRead4File, fp); } nBytesRead4File+=nBytesReadInPass; } } } fclose( fp ); if(nBytesRead4File==sizeFile){ fprintf(stderr, "Read Success!\n"); return 0; } return 1; } uint64_t getSizeForFile(std::string fileName){ uint64_t length=0L; FILE *fp=NULL; fp = fopen(fileName.c_str(), "rb"); if (NULL==fp) { fprintf(stderr, "Unable to open file ::%s to get file length!\n",fileName.c_str()); return length; } /* fseek() to SEEK_END and then ftell() to get position */ _fseeki64(fp, 0, SEEK_END); length=_ftelli64(fp); fclose( fp ); return length; }
0547985907387176881c800ef60a9b45ec7158e0
c140db9d127803a03199db78ff5507b503b316fb
/cpp/includes/objects/globals.hpp
3b4a3aca6e72f81c069bc1257c8852c891a98283
[ "Apache-2.0" ]
permissive
shangma/rapp-api
dedaf7ed140549568f1e83306b039ae81482a4ae
e842401e1a83754a51874b996646355e627a9b18
refs/heads/master
2021-01-23T08:11:23.688892
2016-07-01T12:29:01
2016-07-01T12:29:01
null
0
0
null
null
null
null
UTF-8
C++
false
false
152
hpp
globals.hpp
#ifndef RAPP_OBJECTS_GLOBALS #define RAPP_OBJECTS_GLOBALS namespace rapp { /// Common global types namespace types { typedef char byte; } } #endif
9333c38bbf9aa1420650aa1b7dde8a2567fc8c5e
8110781934e5ac078ace2430aa5d8d4c91837562
/libs/ezsat/testbench.cc
f5a91f3fb6863793f28b7b07a7665729127f5624
[ "ISC", "MIT", "LicenseRef-scancode-other-copyleft", "BSD-2-Clause" ]
permissive
YosysHQ/yosys
91acb592cb47b8298b115572faa02edfa468c1f0
72bec94ef4f0ce8090f22c16cd5163b816e8c698
refs/heads/master
2023-09-01T17:46:13.846954
2023-09-01T08:15:51
2023-09-01T08:15:51
7,454,197
2,389
769
ISC
2023-09-13T15:43:31
2013-01-05T10:10:48
C++
UTF-8
C++
false
false
11,356
cc
testbench.cc
/* * ezSAT -- A simple and easy to use CNF generator for SAT solvers * * Copyright (C) 2013 Claire Xenia Wolf <claire@yosyshq.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * */ #include "ezminisat.h" #include <stdio.h> struct xorshift128 { uint32_t x, y, z, w; xorshift128() { x = 123456789; y = 362436069; z = 521288629; w = 88675123; } uint32_t operator()() { uint32_t t = x ^ (x << 11); x = y; y = z; z = w; w ^= (w >> 19) ^ t ^ (t >> 8); return w; } }; bool test(ezSAT &sat, int assumption = 0) { std::vector<int> modelExpressions; std::vector<bool> modelValues; for (int id = 1; id <= sat.numLiterals(); id++) if (sat.bound(id)) modelExpressions.push_back(id); if (sat.solve(modelExpressions, modelValues, assumption)) { printf("satisfiable:"); for (int i = 0; i < int(modelExpressions.size()); i++) printf(" %s=%d", sat.to_string(modelExpressions[i]).c_str(), int(modelValues[i])); printf("\n\n"); return true; } else { printf("not satisfiable.\n\n"); return false; } } // ------------------------------------------------------------------------------------------------------------ void test_simple() { printf("==== %s ====\n\n", __PRETTY_FUNCTION__); ezMiniSAT sat; sat.non_incremental(); sat.assume(sat.OR("A", "B")); sat.assume(sat.NOT(sat.AND("A", "B"))); test(sat); } // ------------------------------------------------------------------------------------------------------------ void test_xorshift32_try(ezSAT &sat, uint32_t input_pattern) { uint32_t output_pattern = input_pattern; output_pattern ^= output_pattern << 13; output_pattern ^= output_pattern >> 17; output_pattern ^= output_pattern << 5; std::vector<int> modelExpressions; std::vector<int> forwardAssumptions, backwardAssumptions; std::vector<bool> forwardModel, backwardModel; sat.vec_append(modelExpressions, sat.vec_var("i", 32)); sat.vec_append(modelExpressions, sat.vec_var("o", 32)); sat.vec_append_unsigned(forwardAssumptions, sat.vec_var("i", 32), input_pattern); sat.vec_append_unsigned(backwardAssumptions, sat.vec_var("o", 32), output_pattern); if (!sat.solve(modelExpressions, backwardModel, backwardAssumptions)) { printf("backward solving failed!\n"); abort(); } if (!sat.solve(modelExpressions, forwardModel, forwardAssumptions)) { printf("forward solving failed!\n"); abort(); } printf("xorshift32 test with input pattern 0x%08x:\n", input_pattern); printf("forward solution: input=0x%08x output=0x%08x\n", (unsigned int)sat.vec_model_get_unsigned(modelExpressions, forwardModel, sat.vec_var("i", 32)), (unsigned int)sat.vec_model_get_unsigned(modelExpressions, forwardModel, sat.vec_var("o", 32))); printf("backward solution: input=0x%08x output=0x%08x\n", (unsigned int)sat.vec_model_get_unsigned(modelExpressions, backwardModel, sat.vec_var("i", 32)), (unsigned int)sat.vec_model_get_unsigned(modelExpressions, backwardModel, sat.vec_var("o", 32))); if (forwardModel != backwardModel) { printf("forward and backward results are inconsistend!\n"); abort(); } printf("passed.\n\n"); } void test_xorshift32() { printf("==== %s ====\n\n", __PRETTY_FUNCTION__); ezMiniSAT sat; sat.keep_cnf(); xorshift128 rng; std::vector<int> bits = sat.vec_var("i", 32); bits = sat.vec_xor(bits, sat.vec_shl(bits, 13)); bits = sat.vec_xor(bits, sat.vec_shr(bits, 17)); bits = sat.vec_xor(bits, sat.vec_shl(bits, 5)); sat.vec_set(bits, sat.vec_var("o", 32)); test_xorshift32_try(sat, 0); test_xorshift32_try(sat, 314159265); test_xorshift32_try(sat, rng()); test_xorshift32_try(sat, rng()); test_xorshift32_try(sat, rng()); test_xorshift32_try(sat, rng()); sat.printDIMACS(stdout, true); printf("\n"); } // ------------------------------------------------------------------------------------------------------------ #define CHECK(_expr1, _expr2) check(#_expr1, _expr1, #_expr2, _expr2) void check(const char *expr1_str, bool expr1, const char *expr2_str, bool expr2) { if (expr1 == expr2) { printf("[ %s ] == [ %s ] .. ok (%s == %s)\n", expr1_str, expr2_str, expr1 ? "true" : "false", expr2 ? "true" : "false"); } else { printf("[ %s ] != [ %s ] .. ERROR (%s != %s)\n", expr1_str, expr2_str, expr1 ? "true" : "false", expr2 ? "true" : "false"); abort(); } } void test_signed(int8_t a, int8_t b, int8_t c) { ezMiniSAT sat; std::vector<int> av = sat.vec_const_signed(a, 8); std::vector<int> bv = sat.vec_const_signed(b, 8); std::vector<int> cv = sat.vec_const_signed(c, 8); printf("Testing signed arithmetic using: a=%+d, b=%+d, c=%+d\n", int(a), int(b), int(c)); CHECK(a < b+c, sat.solve(sat.vec_lt_signed(av, sat.vec_add(bv, cv)))); CHECK(a <= b-c, sat.solve(sat.vec_le_signed(av, sat.vec_sub(bv, cv)))); CHECK(a > b+c, sat.solve(sat.vec_gt_signed(av, sat.vec_add(bv, cv)))); CHECK(a >= b-c, sat.solve(sat.vec_ge_signed(av, sat.vec_sub(bv, cv)))); printf("\n"); } void test_unsigned(uint8_t a, uint8_t b, uint8_t c) { ezMiniSAT sat; if (b < c) b ^= c, c ^= b, b ^= c; std::vector<int> av = sat.vec_const_unsigned(a, 8); std::vector<int> bv = sat.vec_const_unsigned(b, 8); std::vector<int> cv = sat.vec_const_unsigned(c, 8); printf("Testing unsigned arithmetic using: a=%d, b=%d, c=%d\n", int(a), int(b), int(c)); CHECK(a < b+c, sat.solve(sat.vec_lt_unsigned(av, sat.vec_add(bv, cv)))); CHECK(a <= b-c, sat.solve(sat.vec_le_unsigned(av, sat.vec_sub(bv, cv)))); CHECK(a > b+c, sat.solve(sat.vec_gt_unsigned(av, sat.vec_add(bv, cv)))); CHECK(a >= b-c, sat.solve(sat.vec_ge_unsigned(av, sat.vec_sub(bv, cv)))); printf("\n"); } void test_count(uint32_t x) { ezMiniSAT sat; int count = 0; for (int i = 0; i < 32; i++) if (((x >> i) & 1) != 0) count++; printf("Testing bit counting using x=0x%08x (%d set bits) .. ", x, count); std::vector<int> v = sat.vec_const_unsigned(x, 32); std::vector<int> cv6 = sat.vec_const_unsigned(count, 6); std::vector<int> cv4 = sat.vec_const_unsigned(count <= 15 ? count : 15, 4); if (cv6 != sat.vec_count(v, 6, false)) { fprintf(stderr, "FAILED 6bit-no-clipping test!\n"); abort(); } if (cv4 != sat.vec_count(v, 4, true)) { fprintf(stderr, "FAILED 4bit-clipping test!\n"); abort(); } printf("ok.\n"); } void test_arith() { printf("==== %s ====\n\n", __PRETTY_FUNCTION__); xorshift128 rng; for (int i = 0; i < 100; i++) test_signed(rng() % 19 - 10, rng() % 19 - 10, rng() % 19 - 10); for (int i = 0; i < 100; i++) test_unsigned(rng() % 10, rng() % 10, rng() % 10); test_count(0x00000000); test_count(0xffffffff); for (int i = 0; i < 30; i++) test_count(rng()); printf("\n"); } // ------------------------------------------------------------------------------------------------------------ void test_onehot() { printf("==== %s ====\n\n", __PRETTY_FUNCTION__); ezMiniSAT ez; int a = ez.frozen_literal("a"); int b = ez.frozen_literal("b"); int c = ez.frozen_literal("c"); int d = ez.frozen_literal("d"); std::vector<int> abcd; abcd.push_back(a); abcd.push_back(b); abcd.push_back(c); abcd.push_back(d); ez.assume(ez.onehot(abcd)); int solution_counter = 0; while (1) { std::vector<bool> modelValues; bool ok = ez.solve(abcd, modelValues); if (!ok) break; printf("Solution: %d %d %d %d\n", int(modelValues[0]), int(modelValues[1]), int(modelValues[2]), int(modelValues[3])); int count_hot = 0; std::vector<int> sol; for (int i = 0; i < 4; i++) { if (modelValues[i]) count_hot++; sol.push_back(modelValues[i] ? abcd[i] : ez.NOT(abcd[i])); } ez.assume(ez.NOT(ez.expression(ezSAT::OpAnd, sol))); if (count_hot != 1) { fprintf(stderr, "Wrong number of hot bits!\n"); abort(); } solution_counter++; } if (solution_counter != 4) { fprintf(stderr, "Wrong number of one-hot solutions!\n"); abort(); } printf("\n"); } void test_manyhot() { printf("==== %s ====\n\n", __PRETTY_FUNCTION__); ezMiniSAT ez; int a = ez.frozen_literal("a"); int b = ez.frozen_literal("b"); int c = ez.frozen_literal("c"); int d = ez.frozen_literal("d"); std::vector<int> abcd; abcd.push_back(a); abcd.push_back(b); abcd.push_back(c); abcd.push_back(d); ez.assume(ez.manyhot(abcd, 1, 2)); int solution_counter = 0; while (1) { std::vector<bool> modelValues; bool ok = ez.solve(abcd, modelValues); if (!ok) break; printf("Solution: %d %d %d %d\n", int(modelValues[0]), int(modelValues[1]), int(modelValues[2]), int(modelValues[3])); int count_hot = 0; std::vector<int> sol; for (int i = 0; i < 4; i++) { if (modelValues[i]) count_hot++; sol.push_back(modelValues[i] ? abcd[i] : ez.NOT(abcd[i])); } ez.assume(ez.NOT(ez.expression(ezSAT::OpAnd, sol))); if (count_hot != 1 && count_hot != 2) { fprintf(stderr, "Wrong number of hot bits!\n"); abort(); } solution_counter++; } if (solution_counter != 4 + 4*3/2) { fprintf(stderr, "Wrong number of one-hot solutions!\n"); abort(); } printf("\n"); } void test_ordered() { printf("==== %s ====\n\n", __PRETTY_FUNCTION__); ezMiniSAT ez; int a = ez.frozen_literal("a"); int b = ez.frozen_literal("b"); int c = ez.frozen_literal("c"); int x = ez.frozen_literal("x"); int y = ez.frozen_literal("y"); int z = ez.frozen_literal("z"); std::vector<int> abc; abc.push_back(a); abc.push_back(b); abc.push_back(c); std::vector<int> xyz; xyz.push_back(x); xyz.push_back(y); xyz.push_back(z); ez.assume(ez.ordered(abc, xyz)); int solution_counter = 0; while (1) { std::vector<int> modelVariables; std::vector<bool> modelValues; modelVariables.push_back(a); modelVariables.push_back(b); modelVariables.push_back(c); modelVariables.push_back(x); modelVariables.push_back(y); modelVariables.push_back(z); bool ok = ez.solve(modelVariables, modelValues); if (!ok) break; printf("Solution: %d %d %d | %d %d %d\n", int(modelValues[0]), int(modelValues[1]), int(modelValues[2]), int(modelValues[3]), int(modelValues[4]), int(modelValues[5])); std::vector<int> sol; for (size_t i = 0; i < modelVariables.size(); i++) sol.push_back(modelValues[i] ? modelVariables[i] : ez.NOT(modelVariables[i])); ez.assume(ez.NOT(ez.expression(ezSAT::OpAnd, sol))); solution_counter++; } if (solution_counter != 8+7+6+5+4+3+2+1) { fprintf(stderr, "Wrong number of solutions!\n"); abort(); } printf("\n"); } // ------------------------------------------------------------------------------------------------------------ int main() { test_simple(); test_xorshift32(); test_arith(); test_onehot(); test_manyhot(); test_ordered(); printf("Passed all tests.\n\n"); return 0; }
1b23e012bf8e0d4d5f0f384f048cc970efe1f3f5
3170ee59b930cdb4612a50f28200c83898f1c272
/NatureFight/Classes/ResourceManager.cpp
8147fe345b9fcf37fedd7e95961a10fe4218307a
[]
no_license
DadTraining/YearEnd2019_Group2
ab3475081cdcada3db89a8d075e19b362b2fcb62
dc7405b71911c964ea3f11678b4cbf0701afc7c7
refs/heads/master
2022-06-24T01:06:15.809715
2020-01-17T14:54:24
2020-01-17T14:54:24
227,056,167
0
1
null
2019-12-17T07:28:43
2019-12-10T07:31:46
C++
UTF-8
C++
false
false
3,954
cpp
ResourceManager.cpp
#include "ResourceManager.h" int ResourceManager::LevelPlayer = 1; ResourceManager* ResourceManager::s_instance; ResourceManager::ResourceManager() { //s_instance = new ResourceManager[10]; /*m_sprites = new std::map<char, Sprite*>[10]; m_buttons = new std::map<char, ui::Button*>; m_labels = new std::map<char, Label*>;*/ } ResourceManager::~ResourceManager() { } ResourceManager* ResourceManager::GetInstance() { if (s_instance==nullptr) { s_instance = new ResourceManager(); } return s_instance; } void ResourceManager::Init(const std::string path) { m_dataFolderPath = FileUtils::getInstance()->getStringFromFile(path); Load(m_dataFolderPath); } void ResourceManager::Load(std::string fileName) { m_framecachePlayer.clear(); CCLOG("Load 1****************** %s: ", fileName.c_str()); int count = 0; while (!m_dataFolderPath.empty()) { std::string line = m_dataFolderPath.substr(0, m_dataFolderPath.find("\n")); std::istringstream is(line); int num; std::string text, text2; is >> num >> text >> text2; m_dataFolderPath.erase(0, m_dataFolderPath.find("\n") + 1); if (num == 0) { count++; continue; } if (count == 1) { CCLOG("Load 2******************"); auto sprite = Sprite::create(text); CCLOG("Load 3******************"); sprite->retain(); CCLOG("Load 4******************"); m_sprites.insert({ num,sprite }); CCLOG("Load 5******************"); continue; } if (count == 2) { auto button = ui::Button::create(text, text2); CCLOG("Load 6******************"); button->retain(); CCLOG("Load 7******************"); m_buttons.insert({ num,button }); continue; } if (count == 3) { auto label = Label::createWithTTF("temp", text, 20); CCLOG("Load 8******************"); label->retain(); CCLOG("Load 9******************"); m_labels.insert({ num,label }); } if (count == 4) { auto spriteCache = SpriteFrameCache::getInstance(); spriteCache->addSpriteFramesWithFile(text); CCLOG("Load 10******************"); spriteCache->retain(); CCLOG("Load 11******************"); m_framecachePlayer.insert({ num,spriteCache }); spriteCache->destroyInstance(); CCLOG("Load 12******************"); } if (count == 5) { auto spriteCache = SpriteFrameCache::getInstance(); spriteCache->addSpriteFramesWithFile(text); CCLOG("Load 10******************"); spriteCache->retain(); CCLOG("Load 11******************"); m_framecacheAI.insert({ num,spriteCache }); spriteCache->destroyInstance(); CCLOG("Load 12******************"); } } CCLOG("Load END******************"); } Sprite* ResourceManager::GetSpriteById(int id) { auto sprite = m_sprites.find(id)->second; return sprite; } ui::Button* ResourceManager::GetButtonById(int id) { auto button = m_buttons.find(id)->second; return button; } Label* ResourceManager::GetLabelById(int id) { auto label = m_labels.find(id)->second; return label; } SpriteFrameCache* ResourceManager::GetFramePlayerById(int id) { auto frame = m_framecachePlayer.find(id)->second; return frame; } SpriteFrameCache* ResourceManager::GetFrameAIById(int id) { auto frame = m_framecacheAI.find(id)->second; return frame; } void ResourceManager::SetLevelPlayer(int level) { LevelPlayer = level; } Sprite* ResourceManager::DuplicateSprite(Sprite* sprite) { Sprite* pRet = Sprite::createWithTexture(sprite->getTexture()); if (sprite->getChildrenCount() > 0) { for (int child = 0; child < sprite->getChildrenCount(); child++) { Sprite* spriteChild = (Sprite*)sprite->getChildren().at(child); Sprite* clone = DuplicateSprite((Sprite*)spriteChild); clone->boundingBox() = spriteChild->boundingBox(); clone->setContentSize(spriteChild->getContentSize()); clone->setPosition(spriteChild->getPosition()); clone->setAnchorPoint(spriteChild->getAnchorPoint()); pRet->addChild(clone, spriteChild->getZOrder(), spriteChild->getTag()); } } return pRet; }
6bcdbb8650e62b4003e6fc6d4923226c3eac56be
057fdc8f0cfe51041878cafebafbef0a3b07360c
/src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/int64/transpose/avx/transpose_int64_avx.h
76f7ea681dee765ec0f2e6dde3c207adfed15234
[ "Apache-2.0" ]
permissive
wonderzy/ppl.nn
8ca93f7bd4d136b88489674a12fa31544c3217d6
7dd75a1077867fc9a762449953417088446ae2f8
refs/heads/master
2023-06-06T13:45:00.119077
2021-07-01T13:39:47
2021-07-01T13:39:47
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,685
h
transpose_int64_avx.h
#ifndef __ST_PPL_KERNEL_X86_INT64_TRANSPOSE_AVX_TRANSPOSE_INT64_AVX_H_ #define __ST_PPL_KERNEL_X86_INT64_TRANSPOSE_AVX_TRANSPOSE_INT64_AVX_H_ #include <immintrin.h> #include "ppl/kernel/x86/common/internal_include.h" namespace ppl { namespace kernel { namespace x86 { #define TRANSPOSE_4X4_INT64_AVX_MACRO() \ do { \ ymm4 = _mm256_unpacklo_pd(ymm0, ymm1); \ ymm5 = _mm256_unpackhi_pd(ymm0, ymm1); \ ymm6 = _mm256_unpacklo_pd(ymm2, ymm3); \ ymm7 = _mm256_unpackhi_pd(ymm2, ymm3); \ ymm0 = _mm256_permute2f128_pd(ymm4, ymm6, 0x20); \ ymm1 = _mm256_permute2f128_pd(ymm4, ymm6, 0x31); \ ymm2 = _mm256_permute2f128_pd(ymm5, ymm7, 0x20); \ ymm3 = _mm256_permute2f128_pd(ymm5, ymm7, 0x31); \ } while (false) inline void transpose_4x4_int64_avx( const int64_t *src, const int64_t src_stride, const int64_t dst_stride, int64_t *dst) { __m256d ymm0, ymm1, ymm2, ymm3; __m256d ymm4, ymm5, ymm6, ymm7; ymm0 = _mm256_loadu_pd((const double *)src + 0 * src_stride); ymm1 = _mm256_loadu_pd((const double *)src + 1 * src_stride); ymm2 = _mm256_loadu_pd((const double *)src + 2 * src_stride); ymm3 = _mm256_loadu_pd((const double *)src + 3 * src_stride); TRANSPOSE_4X4_INT64_AVX_MACRO(); _mm256_storeu_pd((double *)dst + 0 * dst_stride, ymm0); _mm256_storeu_pd((double *)dst + 1 * dst_stride, ymm1); _mm256_storeu_pd((double *)dst + 2 * dst_stride, ymm2); _mm256_storeu_pd((double *)dst + 3 * dst_stride, ymm3); } }}}; // namespace ppl::kernel::x86 #endif
a5a8d079ad8eab1137ca1010af1252acfdf3c394
3243c7bc1378cddae61999265aba70db517ef7a6
/Sandbox/src/GameLayer.cpp
423e4856b41a859aabf8309d6b87d70121a181e5
[]
no_license
francolerch/OpenGLEngine
175238838269187dea0eb4ab785547f78b21824c
d2a9048b302d69c748d8b094b079941bd2e59177
refs/heads/master
2023-06-22T06:12:25.845263
2021-07-10T14:08:06
2021-07-10T14:08:06
234,412,936
0
0
null
null
null
null
UTF-8
C++
false
false
14,356
cpp
GameLayer.cpp
#include "GameLayer.h" #include <imgui/imgui.h> #include "Scene/Components.h" namespace SANDBOX { GameLayer::GameLayer() : Layer("EditorLayer") { m_DirectoryIcon = CreateRef<Texture>("resources/Icons/ContentBrowser/DirectoryIcon.png"); m_FileIcon = CreateRef<Texture>("resources/Icons/ContentBrowser/FileIcon.png"); } void GameLayer::OnAttach() { OGLE::FrameBufferSpecification fbSpec; fbSpec.Width = 1280; fbSpec.Height = 720; m_FrameBuffer = OGLE::FrameBuffer::Create(fbSpec); m_ActiveScene = CreateScope<Scene>(); Entity m_ActiveCamera = m_ActiveScene->CreateEntity("Camera"); m_ActiveCamera.AddComponent<CameraComponent>(); Entity Cube = m_ActiveScene->CreateEntity("Cube"); Cube.AddComponent<RenderComponent>("assets/models/me/cube.obj"); Entity DirectionalLight = m_ActiveScene->CreateEntity("Directional Light"); DirectionalLight.AddComponent<DirectionalLightComponent>(); } void GameLayer::OnDetach() { } void GameLayer::OnUpdate(float ts) { // updates if (OGLE::FrameBufferSpecification spec = m_FrameBuffer->GetSpecification(); m_ViewportSize.x > 0.0f && m_ViewportSize.y > 0.0f && // zero sized framebuffer is invalid (spec.Width != m_ViewportSize.x || spec.Height != m_ViewportSize.y)) { m_FrameBuffer->Resize((uint32_t)m_ViewportSize.x, (uint32_t)m_ViewportSize.y); //m_CameraController.OnResize(m_ViewportSize.x, m_ViewportSize.y); //m_EditorCamera.SetViewportSize(m_ViewportSize.x, m_ViewportSize.y); //m_ActiveScene->OnViewportResize((uint32_t)m_ViewportSize.x, (uint32_t)m_ViewportSize.y); } m_ActiveScene->OnUpdate(ts); // render Scene m_FrameBuffer->Bind(); OGLE::Renderer::SetClearColor({ 0.1f, 0.1f, 0.1f, 1 }); OGLE::Renderer::Clear(); m_ActiveScene->OnDraw(); m_FrameBuffer->Unbind(); } void GameLayer::OnImGuiRender() { static bool p_open = true; static bool opt_fullscreen = true; static bool opt_padding = false; static ImGuiDockNodeFlags dockspace_flags = ImGuiDockNodeFlags_None; // Viewport // We are using the ImGuiWindowFlags_NoDocking flag to make the parent window not dockable into, // because it would be confusing to have two docking targets within each others. ImGuiWindowFlags window_flags = ImGuiWindowFlags_MenuBar | ImGuiWindowFlags_NoDocking; if (opt_fullscreen) { const ImGuiViewport* viewport = ImGui::GetMainViewport(); ImGui::SetNextWindowPos(viewport->WorkPos); ImGui::SetNextWindowSize(viewport->WorkSize); ImGui::SetNextWindowViewport(viewport->ID); ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f); ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0.0f); window_flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove; window_flags |= ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoNavFocus; } else { dockspace_flags &= ~ImGuiDockNodeFlags_PassthruCentralNode; } // When using ImGuiDockNodeFlags_PassthruCentralNode, DockSpace() will render our background // and handle the pass-thru hole, so we ask Begin() to not render a background. if (dockspace_flags & ImGuiDockNodeFlags_PassthruCentralNode) window_flags |= ImGuiWindowFlags_NoBackground; // Important: note that we proceed even if Begin() returns false (aka window is collapsed). // This is because we want to keep our DockSpace() active. If a DockSpace() is inactive, // all active windows docked into it will lose their parent and become undocked. // We cannot preserve the docking relationship between an active window and an inactive docking, otherwise // any change of dockspace/settings would lead to windows being stuck in limbo and never being visible. if (!opt_padding) ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0.0f, 0.0f)); ImGui::Begin("DockSpace Demo", &p_open, window_flags); if (!opt_padding) ImGui::PopStyleVar(); if (opt_fullscreen) ImGui::PopStyleVar(2); // DockSpace ImGuiIO& io = ImGui::GetIO(); if (io.ConfigFlags & ImGuiConfigFlags_DockingEnable) { ImGuiID dockspace_id = ImGui::GetID("MyDockSpace"); ImGui::DockSpace(dockspace_id, ImVec2(0.0f, 0.0f), dockspace_flags); } if (ImGui::BeginMenuBar()) { if (ImGui::BeginMenu("Options")) { // Disabling fullscreen would allow the window to be moved to the front of other windows, // which we can't undo at the moment without finer window depth/z control. ImGui::MenuItem("Fullscreen", NULL, &opt_fullscreen); ImGui::MenuItem("Padding", NULL, &opt_padding); ImGui::Separator(); if (ImGui::MenuItem("Flag: NoSplit", "", (dockspace_flags & ImGuiDockNodeFlags_NoSplit) != 0)) { dockspace_flags ^= ImGuiDockNodeFlags_NoSplit; } if (ImGui::MenuItem("Flag: NoResize", "", (dockspace_flags & ImGuiDockNodeFlags_NoResize) != 0)) { dockspace_flags ^= ImGuiDockNodeFlags_NoResize; } if (ImGui::MenuItem("Flag: NoDockingInCentralNode", "", (dockspace_flags & ImGuiDockNodeFlags_NoDockingInCentralNode) != 0)) { dockspace_flags ^= ImGuiDockNodeFlags_NoDockingInCentralNode; } if (ImGui::MenuItem("Flag: AutoHideTabBar", "", (dockspace_flags & ImGuiDockNodeFlags_AutoHideTabBar) != 0)) { dockspace_flags ^= ImGuiDockNodeFlags_AutoHideTabBar; } if (ImGui::MenuItem("Flag: PassthruCentralNode", "", (dockspace_flags & ImGuiDockNodeFlags_PassthruCentralNode) != 0, opt_fullscreen)) { dockspace_flags ^= ImGuiDockNodeFlags_PassthruCentralNode; } ImGui::Separator(); if (ImGui::MenuItem("Close", NULL, false, p_open != NULL)) p_open = false; ImGui::EndMenu(); } ImGui::EndMenuBar(); } ImGui::End(); // Editor view ImGui::Begin("Editor", &p_open); ImVec2 viewportPanelSize = ImGui::GetContentRegionAvail(); m_ViewportSize = { viewportPanelSize.x, viewportPanelSize.y }; uint32_t textureID = m_FrameBuffer->GetColorAttachmentRendererID(); ImGui::Image(reinterpret_cast<void*>(textureID), ImVec2{ viewportPanelSize.x, viewportPanelSize.y }, ImVec2{ 0, 1 }, ImVec2{ 1, 0 }); ImGui::End(); // Inspector ImGui::ShowDemoWindow(&p_open); ImGui::Begin("Scene Hierarchy", &p_open); m_ActiveScene->Reg().each([&](auto entityID) { Entity entity{ entityID , m_ActiveScene.get() }; auto& tag = entity.GetComponent<TagComponent>().m_Tag; ImGuiTreeNodeFlags flags = ((m_SelectionContext == entity) ? ImGuiTreeNodeFlags_Selected : 0) | ImGuiTreeNodeFlags_OpenOnArrow; flags |= ImGuiTreeNodeFlags_SpanAvailWidth; bool opened = ImGui::TreeNodeEx((void*)(uint64_t)(uint32_t)entity, flags, tag.c_str()); if (ImGui::IsItemClicked()) { m_SelectionContext = entity; } bool entityDeleted = false; if (ImGui::BeginPopupContextItem()) { if (ImGui::MenuItem("Delete Entity")) entityDeleted = true; ImGui::EndPopup(); } if (opened) { /*ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_SpanAvailWidth; bool opened = ImGui::TreeNodeEx((void*)9817239, flags, tag.c_str()); if (opened) ImGui::TreePop(); */ ImGui::TreePop(); } if (entityDeleted) { m_ActiveScene->DestroyEntity(entity); if (m_SelectionContext == entity) m_SelectionContext = {}; } }); if (ImGui::IsMouseDown(0) && ImGui::IsWindowHovered()) m_SelectionContext = {}; // Right-click on blank space if (ImGui::BeginPopupContextWindow(0, 1, false)) { if (ImGui::MenuItem("Create Empty Entity")) m_ActiveScene->CreateEntity("Empty Entity"); ImGui::EndPopup(); } ImGui::End(); ImGui::Begin("Properties"); if (m_SelectionContext) { const ImGuiTreeNodeFlags treeNodeFlags = ImGuiTreeNodeFlags_DefaultOpen | ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_SpanAvailWidth | ImGuiTreeNodeFlags_AllowItemOverlap | ImGuiTreeNodeFlags_FramePadding; if (m_SelectionContext.HasComponent<TransformComponent>()) { std::string name = "Transform"; TransformComponent& component = m_SelectionContext.GetComponent<TransformComponent>(); ImVec2 contentRegionAvailable = ImGui::GetContentRegionAvail(); ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2{ 4, 4 }); float lineHeight = 1.f;//GImGui->Font->FontSize + GImGui->Style.FramePadding.y * 2.0f; ImGui::Separator(); bool open = ImGui::TreeNodeEx((void*)typeid(TransformComponent).hash_code(), treeNodeFlags, name.c_str()); ImGui::PopStyleVar( ); ImGui::SameLine(contentRegionAvailable.x - lineHeight * 0.5f); if (ImGui::Button("+", ImVec2{ lineHeight, lineHeight })) { ImGui::OpenPopup("ComponentSettings"); } bool removeComponent = false; if (ImGui::BeginPopup("ComponentSettings")) { if (ImGui::MenuItem("Remove component")) removeComponent = true; ImGui::EndPopup(); } if (open) { std::string label = "Translation"; glm::vec3& values = component.Translation; float columnWidth = 100.0f; float resetValue = 0.0f; ImGuiIO & io = ImGui::GetIO(); auto boldFont = io.Fonts->Fonts[0]; ImGui::PushID(label.c_str()); ImGui::Columns(2); ImGui::SetColumnWidth(0, columnWidth); ImGui::Text(label.c_str()); ImGui::NextColumn(); //ImGui::PushMultiItemsWidths(3, ImGui::CalcItemWidth()); //ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2{ 0, 0 }); ImGui::PushItemWidth(80); ImGui::DragFloat("X", &values.x, 0.1f); ImGui::SameLine(); ImGui::DragFloat("Y", &values.y, 0.1f); ImGui::SameLine(); ImGui::DragFloat("Z", &values.z, 0.1f); ImGui::PopItemWidth(); ImGui::Columns(1); ImGui::PopID(); label = "Rotation"; glm::vec3& values2 = component.Rotation; ImGui::PushID(label.c_str()); ImGui::Columns(2); ImGui::SetColumnWidth(0, columnWidth); ImGui::Text(label.c_str()); ImGui::NextColumn(); //ImGui::PushMultiItemsWidths(3, ImGui::CalcItemWidth()); //ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2{ 0, 0 }); ImGui::PushItemWidth(80); ImGui::DragFloat("X", &values2.x, 0.1f); ImGui::SameLine(); ImGui::DragFloat("Y", &values2.y, 0.1f); ImGui::SameLine(); ImGui::DragFloat("Z", &values2.z, 0.1f); ImGui::PopItemWidth(); ImGui::Columns(1); ImGui::PopID(); label = "Scale"; glm::vec3& values3 = component.Scale; ImGui::PushID(label.c_str()); ImGui::Columns(2); ImGui::SetColumnWidth(0, columnWidth); ImGui::Text(label.c_str()); ImGui::NextColumn(); //ImGui::PushMultiItemsWidths(3, ImGui::CalcItemWidth()); //ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2{ 0, 0 }); ImGui::PushItemWidth(80); ImGui::DragFloat("X", &values3.x, 0.1f, 0.f, 1000.f); ImGui::SameLine(); ImGui::DragFloat("Y", &values3.y, 0.1f, 0.f, 1000.f); ImGui::SameLine(); ImGui::DragFloat("Z", &values3.z, 0.1f, 0.f, 1000.f); ImGui::PopItemWidth(); ImGui::Columns(1); ImGui::PopID(); ImGui::TreePop(); } if (removeComponent) m_SelectionContext.RemoveComponent<TransformComponent>(); } if (m_SelectionContext.HasComponent<DirectionalLightComponent>()) { std::string name = "Direcional Light"; DirectionalLightComponent& component = m_SelectionContext.GetComponent<DirectionalLightComponent>(); ImVec2 contentRegionAvailable = ImGui::GetContentRegionAvail(); ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2{ 4, 4 }); float lineHeight = 1.f;//GImGui->Font->FontSize + GImGui->Style.FramePadding.y * 2.0f; ImGui::Separator(); bool open = ImGui::TreeNodeEx((void*)typeid(DirectionalLightComponent).hash_code(), treeNodeFlags, name.c_str()); ImGui::PopStyleVar( ); ImGui::SameLine(contentRegionAvailable.x - lineHeight * 0.5f); if (ImGui::Button("+", ImVec2{ lineHeight, lineHeight })) { ImGui::OpenPopup("ComponentSettings"); } if (open) { std::string label = "Intensity"; float columnWidth = 100.0f; float resetValue = 0.0f; ImGuiIO& io = ImGui::GetIO(); auto boldFont = io.Fonts->Fonts[0]; ImGui::PushID(label.c_str()); ImGui::Columns(2); ImGui::SetColumnWidth(0, columnWidth); ImGui::Text(label.c_str()); ImGui::NextColumn(); //ImGui::PushMultiItemsWidths(3, ImGui::CalcItemWidth()); //ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2{ 0, 0 }); ImGui::PushItemWidth(80); ImGui::DragFloat("X", &component.m_Intensity, 0.01f); ImGui::PopItemWidth(); ImGui::Columns(1); ImGui::PopID(); ImGui::TreePop(); } } } ImGui::End(); // Editor view ImGui::Begin("Content Browser", &p_open); static std::filesystem::path s_AssetsDirectory = "assets"; if (m_CurrentDirectory != std::filesystem::path(s_AssetsDirectory)) { if (ImGui::Button("<-")) { m_CurrentDirectory = m_CurrentDirectory.parent_path(); } } static float padding = 0.f; static float thumbnailSize = 75; float cellsize = thumbnailSize + padding; float panelWidth = ImGui::GetContentRegionAvail().x; int columnCount = (int)(panelWidth / cellsize); if (columnCount < 1) { columnCount = 1; } ImGui::Columns(columnCount, 0, false); for (const auto& directoryEntry : std::filesystem::directory_iterator(m_CurrentDirectory)) { const auto& path = directoryEntry.path(); auto relativePath = std::filesystem::relative(path, s_AssetsDirectory); std::string filenameString = relativePath.filename().string(); Ref<Texture> icon = directoryEntry.is_directory() ? m_DirectoryIcon : m_FileIcon; ImGui::ImageButton((ImTextureID)icon->GetRendererID(), { thumbnailSize, thumbnailSize }); if (ImGui::IsItemHovered() && ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) { if (directoryEntry.is_directory()) { m_CurrentDirectory /= path.filename(); } } float font_size = ImGui::GetFontSize() * filenameString.size(); //ImGui::SetCursorPosX((thumbnailSize - font_size) * 0.5f); ImGui::TextWrapped(filenameString.c_str()); ImGui::NextColumn(); } ImGui::Columns(1); ImGui::SliderFloat("Thumbnail Size", &thumbnailSize, 50, 150); ImGui::SliderFloat("Padding Size", &padding, 0, 16); ImGui::End(); } }
6d3a916aa257971149f0182b3a9e92fcb995e12c
4b7126744844a5da9e93b218e1d85620ec1727ae
/examples/labels.cpp
6662f7831f87f69189d2956afa4482c255ed366c
[ "MIT" ]
permissive
tonykero/Metasm
e1ad08ded80f3c7e9254db7489f8b79b9c926cef
e3c3db98daf0e5d57489016afe5493add7bd40d9
refs/heads/master
2021-01-20T15:18:25.086176
2017-06-26T15:25:22
2017-06-26T15:25:22
82,803,209
11
0
null
null
null
null
UTF-8
C++
false
false
594
cpp
labels.cpp
#include <Metasm.hpp> #include <iostream> using namespace std; int main() { meta::Engine engine(4); std::string script = "PUSH 23\n" "PUSH 23\n" "JE EQUAL\n" "PUSH 0\n" "JMP EXIT\n" "LBL EQUAL\n" "PUSH 1\n" "LBL EXIT\n" "PRINT\n"; engine.load_script(script); std::function<int(void)> function = engine.compile(); std::cout << function() << std::endl; engine.compile("lbl", true); }
aa0cac6b8bcae64fb1bfc3080332fa12e833ddab
981098a8731388efb013a9087b2d81cf12d95804
/tests/asio_queue_suite.cpp
a07aa271e5d9b764413a5de8e9b62c43175da885
[ "MIT" ]
permissive
mambaru/wflow
ad3a9de04c995ab44b3268adf7f72689382cf49f
2aeac046e86179a95f22b3abc19b555503fb3a9b
refs/heads/master
2023-08-30T16:49:42.506412
2023-08-03T18:57:47
2023-08-03T18:57:48
127,921,496
2
0
MIT
2021-04-22T12:31:17
2018-04-03T14:32:09
C++
UTF-8
C++
false
false
652
cpp
asio_queue_suite.cpp
#include <fas/testing.hpp> #include <wflow/queue/asio_queue.hpp> #include "delayed_common_suite.hpp" UNIT(asio_queue1, "") { boost::asio::io_context io; auto pq = std::make_shared< ::wflow::asio_queue >(io, 0); delayed_unit1(t, *pq); } UNIT(asio_queue2, "") { boost::asio::io_context io; auto pq = std::make_shared< ::wflow::asio_queue >(io, 0); delayed_unit2(t, *pq); } UNIT(asio_queue3, "") { boost::asio::io_context io; auto pq = std::make_shared< ::wflow::asio_queue >(io, 0); delayed_unit3(t, *pq); } BEGIN_SUITE(asio_queue, "") ADD_UNIT(asio_queue1) ADD_UNIT(asio_queue2) ADD_UNIT(asio_queue3) END_SUITE(asio_queue)
956dd340cbe1a1078e09a41730a3f887dbd1f8de
61b4f780fab617bc1657814bc9703193774900b1
/SOURCE/DescriptorEnemy.h
0ea1fce53da77ac13cfbd2f029a675013b5d9ca6
[ "MIT" ]
permissive
vplesko/DungeonsOfPain
2b693cb37f0201f3c962de7b30e56701d736cbdd
cb56c138a12bdc08376a2ba04f02d24527344202
refs/heads/master
2022-01-06T05:25:24.139760
2018-01-04T12:05:09
2018-01-04T12:05:09
null
0
0
null
null
null
null
UTF-8
C++
false
false
441
h
DescriptorEnemy.h
#ifndef _Descriptor_Enemy_h_ #define _Descriptor_Enemy_h_ #include "DescriptorCombatant.h" class DescriptorEnemy : public DescriptorCombatant { public: std::string handle, name; unsigned genWeight; int diff; std::string textureFileName; std::string missileTextureFileName; private: void apply(const pugi::xml_node &node); public: DescriptorEnemy(const pugi::xml_node &node); bool diffInRange(int min, int max) const; }; #endif
ede372fd6709f2c17442586c83ca793e03530d37
ddeaf3d04e85ece302beaf9e82f83c2ab198fb60
/scanner/app/Fork/module/PrinterDevice.h
2b0a395f8d918a3527153eae0381eff382733194
[]
no_license
waterlemon6/olicom-maxwell
2382aab0d91f53926e280049de3f2a101b4ad652
e447d02b10673d63b5bbd3eec667484f37fee340
refs/heads/master
2020-05-17T22:58:36.547684
2020-01-13T03:15:20
2020-01-13T03:15:20
184,017,723
0
0
null
null
null
null
UTF-8
C++
false
false
669
h
PrinterDevice.h
#ifndef __PRINTER_DEVICE_H__ #define __PRINTER_DEVICE_H__ #include "Module.h" #define PRINTER_NOT_ERROR 0x08 #define PRINTER_SELECTED 0x10 #define PRINTER_PAPER_EMPTY 0x20 #define GET_PRINTER_STATUS _IOR('w', 0x21, unsigned char) #define SET_PRINTER_STATUS _IOWR('w', 0x22, unsigned char) class PrinterDevice : public Module { public: PrinterDevice() = default; ~PrinterDevice() override = default; int GetStatus(); int SetStatus(unsigned char status); void ShowStatus(); int Poll(short int events, int time); ssize_t Write(unsigned char *data, unsigned long size); ssize_t Read(unsigned char *data, unsigned long size); }; #endif
f491199fdfff82ab6ab83466ae6092efd67fbcc6
0dc6eaffdb2268cd63ae2986389a3e4d8a242c8c
/4.cpp
64e3298fbf2dd5eb3fe50b1ccca0750bbfcf6d88
[]
no_license
sazalHub/Project-Euler
cfa8ca7156204d6a992e7ae891ef1210fa8586fc
b24d96528ced79ce5f704ae46f19751958f2c55b
refs/heads/master
2021-01-12T10:00:57.951816
2019-04-05T18:59:04
2019-04-05T18:59:04
76,333,085
0
0
null
2016-12-13T07:27:57
2016-12-13T07:13:41
C++
UTF-8
C++
false
false
1,103
cpp
4.cpp
#include<bits/stdc++.h> #define ll long long using namespace std; vector<ll>palindromes; bool isPalin(ll n) { ll num=0,t=n; while(t!=0) { ll r = t%10; t/=10; num=num*10+r; } if (n==num) return true; else return false; } void PalinGenerator() { for (ll i=100;i<=999;i++) { for (ll j=100;j<=999;j++) { ll product = i*j; if (isPalin(product)) { ///cout<<product<<endl; palindromes.push_back(product); } } } ///cout<<palindromes.size()<<endl; } int main () { PalinGenerator(); ll len = palindromes.size(); ll cases; cin>>cases; while(cases--) { ll N; cin>>N; ll ans=-1; for (ll i=0;i<len;i++) { if (palindromes[i]<N) { if (ans<palindromes[i]) ans=palindromes[i]; } } cout<<ans<<endl; } return 0; }
258d9a5424b6c8b267d92b3bc8c902465fdf9b2c
280b3a71a76defbc2a4df66db7f38b48eff9ba32
/apps/model.cpp
7ed61a936b7c6e9ba836ad704662470a9e1be401
[ "MIT" ]
permissive
yangfengzzz/DigitalRender
46cc8956767bcc8db28eb3b3513e05af2c1b235a
c8220fe2e59b40d24fe3b33589b4b1c5de5cd3f2
refs/heads/main
2023-02-01T18:01:16.587795
2020-12-17T13:36:05
2020-12-17T13:36:05
309,258,567
1
0
null
null
null
null
UTF-8
C++
false
false
2,221
cpp
model.cpp
// // model.cpp // apps // // Created by 杨丰 on 2020/11/30. // #include "model.hpp" #include <bx/pixelformat.h> #include <bx/commandline.h> #include <bx/endian.h> #include <bx/math.h> #include <bx/readerwriter.h> #include <bx/string.h> #include <bimg/decode.h> #include "common/entry/entry.h" namespace vox { Model::Model(std::string directory, aiNode *node, const aiScene *scene, Node* parent, const Shader& shader): Renderable(shader), directory(directory), node(node), scene(scene) { this->parent = parent; this->name = std::string(node->mName.C_Str()); this->renderable = this; for(unsigned int i = 0; i < node->mNumChildren; i++) { childNodes.push_back(std::make_shared<Model>(directory, node->mChildren[i], scene, this, shader)); } processNode(); } Model::~Model() { for (size_t i = 0; i < meshes.size(); i++) { bgfx::destroy(meshes[i].m_vbh); bgfx::destroy(meshes[i].m_ibh); for (size_t j = 0; j < meshes[i].samples.size(); j++) { bgfx::destroy(meshes[i].samples[j]); bgfx::destroy(meshes[i].textures[j].m_texture); } } } // draws the model, and thus all its meshes void Model::draw() { glm::mat4 modelMatrix = worldTransform() * localTransform; for(unsigned int i = 0; i < meshes.size(); i++) { // Set model matrix for rendering. bgfx::setTransform(glm::value_ptr(modelMatrix)); // Set instance data buffer. bgfx::setInstanceDataBuffer(&getInstanceDataBuffer()); meshes[i].draw(); } } void Model::processNode() { meshes.resize(node->mNumMeshes); // process each mesh located at the current node for(unsigned int i = 0; i < node->mNumMeshes; i++) { // the node object only contains indices to index the actual objects in the scene. // the scene contains all the data, // node is just to keep stuff organized (like relations between nodes). aiMesh* mesh = scene->mMeshes[node->mMeshes[i]]; aiMaterial* material = scene->mMaterials[mesh->mMaterialIndex]; meshes[i].load(mesh, material, this); } } }
54da7266a75b9122ede8abe66206e9eeee473c5c
2c5e6a833394d6e9fef94d357e64f1ee90a6acba
/important_problems/2580_sudoku.cpp
9d43696021a16c166c2ff63105b289977bf1ff64
[]
no_license
oikkoikk/ALOHA
f2fa91863a01997464f106a65704a6382bc49bd9
36b33211ee5d0b350f6d6e6f577bf8922c3e1782
refs/heads/master
2023-04-11T19:45:01.017321
2023-03-15T15:15:24
2023-03-15T15:15:24
254,006,898
2
0
null
null
null
null
UTF-8
C++
false
false
2,359
cpp
2580_sudoku.cpp
#include <iostream> using namespace std; #define MAX_NUM 10 int sudoku_size = 9; int sudoku[MAX_NUM][MAX_NUM]; bool chk_row[MAX_NUM][MAX_NUM]; // 행에 숫자(1~9)가 존재하는지 여부 확인 bool chk_col[MAX_NUM][MAX_NUM]; // 열에 숫자(1~9)가 존재하는지 여부 확인 bool chk_square[MAX_NUM][MAX_NUM]; // 정사각형(3x3)에 숫자(1~9)가 존재하는지 여부 확인 // (x,y)가 몇 번째 정사각형(0~8)에 해당하는지 return. /* 0 1 2 3 4 5 6 7 8 */ int square(int x, int y) { return (x / 3) * 3 + (y / 3); } void print_Sudoku() { for (int i = 0; i < sudoku_size; i++) { for (int j = 0; j < sudoku_size; j++) { cout << sudoku[i][j] << " "; } cout << "\n"; } } void Backtracking(int depth) { if (depth == 81) { print_Sudoku(); return; } int x = depth / sudoku_size, y = depth % sudoku_size; if (sudoku[x][y] != 0) { Backtracking(depth + 1); } // 0이 들어가있는 곳이면 else { // 들어갈 숫자 찾기 for (int i = 1; i <= 9; i++) { // 해당 열, 행, 정사각형 안에 i가 없으면 i를 사용한다 if (chk_row[x][i] == 0 && chk_col[y][i] == 0 && (!chk_square[square(x, y)][i])) { chk_row[x][i] = chk_col[y][i] = chk_square[square(x, y)][i] = true; sudoku[x][y] = i; Backtracking(depth + 1); // 숫자 i가 아니면 백트래킹 sudoku[x][y] = 0; chk_row[x][i] = chk_col[y][i] = chk_square[square(x, y)][i] = false; } } } } int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); for (int i = 0; i < sudoku_size; i++) { for (int j = 0; j < sudoku_size; j++) { cin >> sudoku[i][j]; if (sudoku[i][j] != 0) { // 각 열, 행, 정사각형에 입력된 숫자가 있다고 저장한다.(i행에 ~라는 수가 이미 존재함.)(j열에 ~라는 수가 이미 존재함.) chk_row[i][sudoku[i][j]] = true; chk_col[j][sudoku[i][j]] = true; chk_square[square(i, j)][sudoku[i][j]] = true; } } } Backtracking(0); return 0; }
824090b5165655bf2930b3547e516f2d2cad31a5
d5320e25c6dabe006a89991bf05f2e2f00679c43
/testsuffixtree/testsuffixarray.cpp
ac4979b4e63956cf05a3354a490d0ca1e0e2c267
[]
no_license
impr0t/suffixtree
f66597f0f54a88177d8846b2c3585e2f174ff123
92458256e0ee939292fda528a4c0fffbd7201d82
refs/heads/master
2020-03-08T02:24:05.658656
2018-04-11T16:25:35
2018-04-11T16:25:35
126,114,534
0
0
null
null
null
null
UTF-8
C++
false
false
1,197
cpp
testsuffixarray.cpp
// // testsuffixarray.cpp // testsuffixtree // // Created by Brad Lindsay on 2018-04-10. // Copyright © 2018 Brad Lindsay. All rights reserved. // #include "include/catch.hpp" #include "../suffixtree/suffixarray.hpp" SCENARIO("Build produces a suffix array.") { GIVEN("The string = 'ababaa'") { SuffixArray *sa = new SuffixArray(); sa->build("ababaa"); REQUIRE(sa->getLast().size() == 7); } } SCENARIO("Build parallel produces a suffix array.") { // GIVEN("The string = 'ababaa'") { // SuffixArray *sa = new SuffixArray(); // sa->buildParallel("ababaa"); // REQUIRE(sa->getLast().size() == 6); // } REQUIRE(true); // This is a hack because build parallel is junk. } SCENARIO("Get all substring positions for a given text.") { GIVEN("The string = 'ababaa'") { SuffixArray *sa = new SuffixArray(); sa->build("ababaa"); REQUIRE(sa->getAllSubstringPositions("ba").size() == 2); } } SCENARIO("Get the last processed suffix array.") { GIVEN("The string = 'ababaa'") { SuffixArray *sa = new SuffixArray(); sa->build("ababaa"); REQUIRE(sa->getLast().size() == 7); } }
a3f662265f4abd48e06d631c959e97ab87fda413
df3ac0b513a1826a3a232cb7903ee8c8a5d65b15
/util/sieve/sieve.h
c9f13283e4091652897f82d849ea4118cc7e5f9e
[]
no_license
rutrum/mn-cpp
205bf900dc3d6ad9af95e656e5cf859d36fb71d3
b60da2c35e5f765a7b8606111997c6cec5a655bd
refs/heads/master
2023-01-04T21:29:50.225979
2020-10-22T21:04:21
2020-10-22T21:04:21
258,602,255
0
0
null
null
null
null
UTF-8
C++
false
false
2,317
h
sieve.h
using namespace std; class Sieve { boost::dynamic_bitset<> primes; public: Sieve(uint64_t n) { primes.resize(n + 1); init_sieve(); } uint64_t count() { return primes.size() - primes.count(); } void print() { for (uint64_t i = 0; i < primes.size(); i++) { cout << i << " " << (primes[i] == 0) << endl; } } bool is_prime(uint64_t n) { return primes[n] == 0; } // Returns the last prime in the sieve. 0 if no such prime; int last_prime() { for (uint64_t i = primes.size() - 1; i >= 0; i--) { if (primes[i] - 0) { return i; } } return 0; } int prev_prime(uint64_t n) { for (uint64_t i = n - 1; i >= 0; i--) { if (primes[i] == 0) { return i; } } return 0; } // Returns the next prime greater than n // returns 0 if next prime isn't within sieve. int next_prime(uint64_t n) { for (uint64_t i = n + 1; i < primes.size(); i++) { if (primes[i] == 0) { return i; } } return 0; } private: void init_sieve() { primes[0] = 1; // 1 is true but 0 is not, for our case // multiples of 2 for (uint64_t j = 4; j < primes.size(); j += 2) { primes[j] = 1; } // multiples of 3 and not 2 for (uint64_t j = 9; j < primes.size(); j += 6) { primes[j] = 1; } // integers 5 mod 6 for (uint64_t i = 5; i * i < primes.size(); i += 6) { if (primes[i] == 0) { for (uint64_t j = i * i; j < primes.size(); j += 4 * i) { primes[j] = 1; j += 2 * i; if (j < primes.size()) { primes[j] = 1; } } } } // integers 1 mod 6 for (uint64_t i = 7; i * i < primes.size(); i += 6) { if (primes[i] == 0) { for (uint64_t j = i * i; j < primes.size(); j += 2 * i) { primes[j] = 1; j += 4 * i; if (j < primes.size()) { primes[j] = 1; } } } } } };
2c029d56dfd3d322e5b75267c622008f3cfb0764
c0485eca6176f98f2f879d90b4dbd020c08e120d
/src/game/player/SwordGraphics.hpp
f71f25912579e2cd08086457820036719c7764b6
[]
no_license
mangannn/slash
8772ca81d15ab27aeedde03da2276056f46e5aa1
926afa45846c7d9310ce24194d6cbffb335526ec
refs/heads/master
2021-01-09T20:56:02.820532
2018-06-21T12:46:07
2018-06-21T12:46:07
61,660,696
0
0
null
null
null
null
UTF-8
C++
false
false
1,204
hpp
SwordGraphics.hpp
#ifndef _SWORD_GRAPHICS_H_ #define _SWORD_GRAPHICS_H_ #include <SFML/Graphics.hpp> class SwordGraphics { public: Color swordColor = Color(220, 30, 40); const static int SWORD_VERTEX_COUNT = 6; Vertex swordVertices[SWORD_VERTEX_COUNT] = { Vertex(Vector2f(0, 0), swordColor), Vertex(Vector2f(0, 0), tintColor(swordColor, 1)), Vertex(Vector2f(0, 0), tintColor(swordColor, 2)), Vertex(Vector2f(0, 0), tintColor(swordColor, 3)), Vertex(Vector2f(0, 0), tintColor(swordColor, 4)), Vertex(Vector2f(0, 0), tintColor(swordColor, 5)) }; Vector2f swordVelocities[SWORD_VERTEX_COUNT] = { // (rotspeed:growspeed) Vector2f(0, 0), Vector2f(0, 0), Vector2f(0, 0), Vector2f(0, 0), Vector2f(0, 0), Vector2f(0, 0), }; void draw(RenderTarget *target, Vector2f swordOri, Vector2f swordTip) { Transform t; t.translate(swordOri); target->draw(swordVertices, SWORD_VERTEX_COUNT, sf::TrianglesFan, t); } void update(float elapsedTime, Vector2f swordTip) { swordVertices[1].position = swordTip; // Follow sword edge for (int i = 2; i < SWORD_VERTEX_COUNT; i++) { approach(&swordVertices[i].position, swordVertices[i - 1].position, 20.0f * elapsedTime); } } }; #endif
ed1e70da940189f3d1cda1e5f45cd0e90cca6e87
a1085d5a40de3f0a12b02c3b728c1ebbfcce515d
/Src/Singleton/Chat.cpp
62bd5410d5d736f03c4cea3b25824e2ff7d2d493
[]
no_license
ljwlaji/BattleNet
0792ce255d7b86c0fa6fd007c0aa96a195346aca
7d885b4678e39a166572afaa7336847750b3ea00
refs/heads/master
2021-01-23T16:53:10.251214
2017-06-17T18:25:39
2017-06-17T18:25:39
93,308,431
3
0
null
null
null
null
GB18030
C++
false
false
2,537
cpp
Chat.cpp
#include "DataBase.h" #include "Chat.h" #include "Log.h" #include "Config.h" #include "World.h" #include "WorldPacket.h" #include "Opcodes.h" #include "WorldSession.h" static Chat* _char = nullptr; Chat* Chat::GetInstance() { if (!_char) _char = new Chat(); return _char; } void Chat::OnStart() { sLog->OutLog("聊天系统开启..."); sLog->OutLog("删除遗留数据..."); sDataBase->PExcude(CharacterDataBase, "DELETE * FROM playfun_message_in_put"); ChatResultDelay = sConfig->GetIntDefault("ChatSelectTimeDelay", 500); CurrentDelay = ChatResultDelay; sLog->OutLog("聊天系统轮询时间设置为 500(毫秒)"); } void Chat::HandleChatOutPut() { _res.clear(); sDataBase->GetResult(CharacterDataBase, _res, "SELECT sender_player_name,channel,recv_battle_net_account,message,date,status,guild_id FROM playfun_message_out_put WHRER status = 0"); if (!_res.empty()) { for (Result::iterator itr = _res.begin(); itr != _res.end(); itr++) { SingleRow = itr->second; SenderName = SingleRow.at(0).GetString(); Channel = (BattleNet_Message_Channel)SingleRow.at(1).GetInt(); recv_battle_net_account = SingleRow.at(2).GetInt(); message = SingleRow.at(3).GetString(); date = SingleRow.at(4).GetInt(); Status = (BattleNet_Message_Status)SingleRow.at(5).GetInt(); guild_id = SingleRow.at(6).GetInt(); if (SingleBattleNetAccount* info = sWorld->GetBattleNetInfo(recv_battle_net_account)) { if (info->IsOnline) { WorldPacket packet(SMSG_MESSAGE_CHAT, 40 + 2 + 40 + 4 + 2 + 4); packet << (std::string)SenderName; packet << (uint8)Channel; packet << (std::string)message; packet << (uint32)date; packet << (uint8)Status; packet << (uint32)guild_id; if (WorldSession* m_session = sWorld->GetSessionBySocket(info->m_session->GetSocket())) { m_session->SendPacket(&packet); } } } } } } void Chat::Update(const uint32 & diff) { if (ChatResultDelay <= diff) { HandleChatOutPut(); ChatResultDelay = CurrentDelay; } else ChatResultDelay -= diff; } void Chat::HandleMessageInPut(const std::string & SenderName, BattleNet_Message_Channel _channel, const std::string & Message, uint32 RecvPlayer,uint32 guildid) { sDataBase->PExcude(CharacterDataBase, "INSERT INTO playfun_message_in_put(sender_battle_name,channel,recv_player_guid,message,date,status,guild_id) VALUES('%s',%d,%d,'%s',%d,0,%d)", SenderName.c_str(), (int)_channel, RecvPlayer, Message.c_str(), time(NULL), guildid); } Chat::Chat() { } Chat::~Chat() { }
22e1031c89b21727f3d226e33c4b00f5685fe509
fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd
/components/search_provider_logos/google_logo_api.h
c8274594403f6809f8e5875c719d4cf8bcd2f0d4
[ "BSD-3-Clause" ]
permissive
wzyy2/chromium-browser
2644b0daf58f8b3caee8a6c09a2b448b2dfe059c
eb905f00a0f7e141e8d6c89be8fb26192a88c4b7
refs/heads/master
2022-11-23T20:25:08.120045
2018-01-16T06:41:26
2018-01-16T06:41:26
117,618,467
3
2
BSD-3-Clause
2022-11-20T22:03:57
2018-01-16T02:09:10
null
UTF-8
C++
false
false
2,325
h
google_logo_api.h
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SEARCH_PROVIDER_LOGOS_GOOGLE_LOGO_API_H_ #define COMPONENTS_SEARCH_PROVIDER_LOGOS_GOOGLE_LOGO_API_H_ #include <memory> #include <string> #include "base/time/time.h" #include "components/search_provider_logos/logo_common.h" #include "url/gurl.h" namespace search_provider_logos { // Returns the URL where the doodle can be downloaded, e.g. // https://www.google.com/async/newtab_mobile. This depends on the user's // Google domain. GURL GetGoogleDoodleURL(const GURL& google_base_url); // These return the correct callbacks for appending queryparams and parsing the // response ("Legacy" or "New"), based on the value of features::kUseDdljsonApi. AppendQueryparamsToLogoURL GetGoogleAppendQueryparamsCallback( bool gray_background); ParseLogoResponse GetGoogleParseLogoResponseCallback(const GURL& base_url); // Implements AppendQueryparamsToLogoURL, defined in logo_tracker.h, for Google // doodles (old newtab_mobile API). GURL GoogleLegacyAppendQueryparamsToLogoURL(bool gray_background, const GURL& logo_url, const std::string& fingerprint); // Implements ParseLogoResponse, defined in logo_tracker.h, for Google doodles // (old newtab_mobile API). std::unique_ptr<EncodedLogo> GoogleLegacyParseLogoResponse( std::unique_ptr<std::string> response, base::Time response_time, bool* parsing_failed); // Implements AppendQueryparamsToLogoURL, defined in logo_tracker.h, for Google // or third-party doodles (new ddljson API). GURL GoogleNewAppendQueryparamsToLogoURL(bool gray_background, const GURL& logo_url, const std::string& fingerprint); // Implements ParseLogoResponse, defined in logo_tracker.h, for Google or // third-party doodles (new ddljson API). std::unique_ptr<EncodedLogo> GoogleNewParseLogoResponse( const GURL& base_url, std::unique_ptr<std::string> response, base::Time response_time, bool* parsing_failed); } // namespace search_provider_logos #endif // COMPONENTS_SEARCH_PROVIDER_LOGOS_GOOGLE_LOGO_API_H_
7eafb00e59b2a445b99cc12e8309c1b1f010b8d2
d8dde07d7c9cf75f7f18a91ab1dd74a4a261a9e7
/contest/poj/vol_05/1442.cc
2bc088f53c25d6dbcc3966cb858f0801abbfac8b
[]
no_license
tiankonguse/ACM
349109d3804e5b1a1de109ec48a2cb3b0dceaafc
ef70b8794c560cb87a6ba8f267e0cc5e9d06c31b
refs/heads/master
2022-10-09T19:58:38.805515
2022-09-30T06:59:53
2022-09-30T06:59:53
8,998,504
82
51
null
2020-11-09T05:17:09
2013-03-25T04:04:26
C++
UTF-8
C++
false
false
1,945
cc
1442.cc
#include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <cmath> #include <string> #include <vector> #include <queue> #include <set> #include <map> #define inf 0x3f3f3f3f #define Inf 0x3FFFFFFFFFFFFFFFLL #define maxn 30030 using namespace std; struct BinaryIndexedTrees{ int num[maxn]; void init(){ memset(num,0,sizeof(num)); } int lowbit(int x){ return x&(-x); } void update(int p,int c){ while(p<maxn){ num[p] += c; p += lowbit(p); } } int sum(int p){ int t=0; while(p>0){ t += num[p]; p -= lowbit(p); } return t; } int find_kth(int k){ // if (k > limit), return maxn; if (k < 0) return 1 int now=0; for(int i=20;i>=0;i--){ now |= (1<<i); if(now>=maxn || num[now]>=k){ now ^= (1<<i); } else k -= num[now]; } return now + 1; } }bit; int rk[maxn], arr[maxn], mp[maxn], q[maxn], mx; bool cmp(int a, int b){ return arr[a] < arr[b]; } int main(){ int n, m, cnt; while(~scanf("%d%d", &n, &m)){ for(int i=1;i<=n;i++) scanf("%d", &arr[i]); for(int i=1;i<=m;i++) scanf("%d", &q[i]); for(int i=1;i<=n;i++) rk[i] = i; sort(rk + 1, rk + n + 1, cmp); mp[1] = arr[rk[1]]; arr[rk[1]] = mx = 1; for(int i=2;i<=n;i++){ if(arr[rk[i]] == mp[mx]) arr[rk[i]] = mx; else mp[++mx] = arr[rk[i]], arr[rk[i]] = mx; } // for(int i=1;i<=n;i++) printf("%d ", arr[i]); puts(""); cnt = 1; bit.init(); for(int i=1;i<=n;i++){ bit.update(arr[i], 1); while(cnt <= m && i == q[cnt]){ printf("%d\n", mp[bit.find_kth(cnt++)]); } if(cnt > m) break; } } return 0; }
bb30e88021b67567be134f4834b0aa838917f0be
d6b4bdf418ae6ab89b721a79f198de812311c783
/antiddos/include/tencentcloud/antiddos/v20200309/model/CCReqLimitPolicyRecord.h
158747e484164ab2438705f7b3ab0096fa049c95
[ "Apache-2.0" ]
permissive
TencentCloud/tencentcloud-sdk-cpp-intl-en
d0781d461e84eb81775c2145bacae13084561c15
d403a6b1cf3456322bbdfb462b63e77b1e71f3dc
refs/heads/master
2023-08-21T12:29:54.125071
2023-08-21T01:12:39
2023-08-21T01:12:39
277,769,407
2
0
null
null
null
null
UTF-8
C++
false
false
11,575
h
CCReqLimitPolicyRecord.h
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * 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. */ #ifndef TENCENTCLOUD_ANTIDDOS_V20200309_MODEL_CCREQLIMITPOLICYRECORD_H_ #define TENCENTCLOUD_ANTIDDOS_V20200309_MODEL_CCREQLIMITPOLICYRECORD_H_ #include <string> #include <vector> #include <map> #include <tencentcloud/core/utils/rapidjson/document.h> #include <tencentcloud/core/utils/rapidjson/writer.h> #include <tencentcloud/core/utils/rapidjson/stringbuffer.h> #include <tencentcloud/core/AbstractModel.h> namespace TencentCloud { namespace Antiddos { namespace V20200309 { namespace Model { /** * Configuration fields of CC frequency limit policies */ class CCReqLimitPolicyRecord : public AbstractModel { public: CCReqLimitPolicyRecord(); ~CCReqLimitPolicyRecord() = default; void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const; CoreInternalOutcome Deserialize(const rapidjson::Value &value); /** * 获取Sampling interval (in seconds). Valid values: `1`, `10`, `30`, and `60`. * @return Period Sampling interval (in seconds). Valid values: `1`, `10`, `30`, and `60`. * */ uint64_t GetPeriod() const; /** * 设置Sampling interval (in seconds). Valid values: `1`, `10`, `30`, and `60`. * @param _period Sampling interval (in seconds). Valid values: `1`, `10`, `30`, and `60`. * */ void SetPeriod(const uint64_t& _period); /** * 判断参数 Period 是否已赋值 * @return Period 是否已赋值 * */ bool PeriodHasBeenSet() const; /** * 获取Number of requests. Value range: 1-2000. * @return RequestNum Number of requests. Value range: 1-2000. * */ uint64_t GetRequestNum() const; /** * 设置Number of requests. Value range: 1-2000. * @param _requestNum Number of requests. Value range: 1-2000. * */ void SetRequestNum(const uint64_t& _requestNum); /** * 判断参数 RequestNum 是否已赋值 * @return RequestNum 是否已赋值 * */ bool RequestNumHasBeenSet() const; /** * 获取Action of limiting request frequency. Valid values: `alg` (limit request frequency via verification codes) and `drop`(drop requests). * @return Action Action of limiting request frequency. Valid values: `alg` (limit request frequency via verification codes) and `drop`(drop requests). * */ std::string GetAction() const; /** * 设置Action of limiting request frequency. Valid values: `alg` (limit request frequency via verification codes) and `drop`(drop requests). * @param _action Action of limiting request frequency. Valid values: `alg` (limit request frequency via verification codes) and `drop`(drop requests). * */ void SetAction(const std::string& _action); /** * 判断参数 Action 是否已赋值 * @return Action 是否已赋值 * */ bool ActionHasBeenSet() const; /** * 获取Sets an interval of the frequency limit policy. Value range: 1-86400 (in seconds). * @return ExecuteDuration Sets an interval of the frequency limit policy. Value range: 1-86400 (in seconds). * */ uint64_t GetExecuteDuration() const; /** * 设置Sets an interval of the frequency limit policy. Value range: 1-86400 (in seconds). * @param _executeDuration Sets an interval of the frequency limit policy. Value range: 1-86400 (in seconds). * */ void SetExecuteDuration(const uint64_t& _executeDuration); /** * 判断参数 ExecuteDuration 是否已赋值 * @return ExecuteDuration 是否已赋值 * */ bool ExecuteDurationHasBeenSet() const; /** * 获取Filters values of configuration fields. `include`: The value is included. `equal`: The value matches the configuration field. * @return Mode Filters values of configuration fields. `include`: The value is included. `equal`: The value matches the configuration field. * */ std::string GetMode() const; /** * 设置Filters values of configuration fields. `include`: The value is included. `equal`: The value matches the configuration field. * @param _mode Filters values of configuration fields. `include`: The value is included. `equal`: The value matches the configuration field. * */ void SetMode(const std::string& _mode); /** * 判断参数 Mode 是否已赋值 * @return Mode 是否已赋值 * */ bool ModeHasBeenSet() const; /** * 获取URI, which cannot be used together with `User-Agent` and `Cookie`. * @return Uri URI, which cannot be used together with `User-Agent` and `Cookie`. * */ std::string GetUri() const; /** * 设置URI, which cannot be used together with `User-Agent` and `Cookie`. * @param _uri URI, which cannot be used together with `User-Agent` and `Cookie`. * */ void SetUri(const std::string& _uri); /** * 判断参数 Uri 是否已赋值 * @return Uri 是否已赋值 * */ bool UriHasBeenSet() const; /** * 获取User-Agent, which cannot be used together with `Uri` and `Cookie`. * @return UserAgent User-Agent, which cannot be used together with `Uri` and `Cookie`. * */ std::string GetUserAgent() const; /** * 设置User-Agent, which cannot be used together with `Uri` and `Cookie`. * @param _userAgent User-Agent, which cannot be used together with `Uri` and `Cookie`. * */ void SetUserAgent(const std::string& _userAgent); /** * 判断参数 UserAgent 是否已赋值 * @return UserAgent 是否已赋值 * */ bool UserAgentHasBeenSet() const; /** * 获取Cookie, which cannot be used together with `Uri` and `User-Agent`. * @return Cookie Cookie, which cannot be used together with `Uri` and `User-Agent`. * */ std::string GetCookie() const; /** * 设置Cookie, which cannot be used together with `Uri` and `User-Agent`. * @param _cookie Cookie, which cannot be used together with `Uri` and `User-Agent`. * */ void SetCookie(const std::string& _cookie); /** * 判断参数 Cookie 是否已赋值 * @return Cookie 是否已赋值 * */ bool CookieHasBeenSet() const; private: /** * Sampling interval (in seconds). Valid values: `1`, `10`, `30`, and `60`. */ uint64_t m_period; bool m_periodHasBeenSet; /** * Number of requests. Value range: 1-2000. */ uint64_t m_requestNum; bool m_requestNumHasBeenSet; /** * Action of limiting request frequency. Valid values: `alg` (limit request frequency via verification codes) and `drop`(drop requests). */ std::string m_action; bool m_actionHasBeenSet; /** * Sets an interval of the frequency limit policy. Value range: 1-86400 (in seconds). */ uint64_t m_executeDuration; bool m_executeDurationHasBeenSet; /** * Filters values of configuration fields. `include`: The value is included. `equal`: The value matches the configuration field. */ std::string m_mode; bool m_modeHasBeenSet; /** * URI, which cannot be used together with `User-Agent` and `Cookie`. */ std::string m_uri; bool m_uriHasBeenSet; /** * User-Agent, which cannot be used together with `Uri` and `Cookie`. */ std::string m_userAgent; bool m_userAgentHasBeenSet; /** * Cookie, which cannot be used together with `Uri` and `User-Agent`. */ std::string m_cookie; bool m_cookieHasBeenSet; }; } } } } #endif // !TENCENTCLOUD_ANTIDDOS_V20200309_MODEL_CCREQLIMITPOLICYRECORD_H_
e25655162cb860c862b621e260a7916d84700be9
08a3e4b23b102107781af559533be232a7b7c257
/desolarized.h
44b281a1ef417317c21146bbf217dba612e06318
[ "BSD-3-Clause" ]
permissive
j3parker/desolarized
03a59f6522aa2cd202f5a073aac1d058dc57bf48
1c23afd568fb96a97f37cc799ca8e4485df9ba4e
refs/heads/master
2021-06-24T02:28:04.338112
2016-12-23T18:29:04
2016-12-26T20:09:55
26,096,362
0
0
null
null
null
null
UTF-8
C++
false
false
2,442
h
desolarized.h
#ifndef _DESOLARIZED_H_ #define _DESOLARIZED_H_ #include <array> #include "colour.h" namespace desolarized { const LAB kYellow = LAB(79, 10, 65); const LAB kOrange = LAB(65, 45, 300); const LAB kRed = LAB(50, 65, 45); const LAB kMagenta = LAB(50, 65, -5); const LAB kViolet = LAB(50, 15, -45); const LAB kBlue = LAB(55, -10, -45); const LAB kCyan = LAB(60, -35, -5); const LAB kGreen = LAB(60, -25, 65); namespace { const int kLABStepSize = 10; } #define COLOUR_VARIANTS(c) \ const LAB c##Light = c + LAB(kLABStepSize, 0, 0); \ const LAB c##Dark = c - LAB(kLABStepSize, 0, 0); COLOUR_VARIANTS(kYellow); COLOUR_VARIANTS(kOrange); COLOUR_VARIANTS(kRed); COLOUR_VARIANTS(kMagenta); COLOUR_VARIANTS(kViolet); COLOUR_VARIANTS(kBlue); COLOUR_VARIANTS(kCyan); COLOUR_VARIANTS(kGreen); #undef COLOUR_VARIANTS enum class Colour : unsigned int { Yellow, Orange, Red, Magenta, Violet, Blue, Cyan, Green }; const int kNumberOfColours = 8; #define COLOUR_ARRAY(var) \ const std::array<LAB, kNumberOfColours> kColours##var = { \ kYellow##var, kOrange##var, kRed##var, kMagenta##var, \ kViolet##var, kBlue##var, kCyan##var, kGreen##var}; COLOUR_ARRAY(); COLOUR_ARRAY(Light); COLOUR_ARRAY(Dark); std::array<std::string, kNumberOfColours> kColourName = { "yellow", "orange", "red", "magenta", "violet", "blue", "cyan", "green"}; #undef COLOUR_ARRAY const LAB kBase03 = LAB(10, 0, -10); const LAB kBase02 = LAB(25, 0, -10); const LAB kBase01 = LAB(50, 0, -9); const LAB kBase00 = LAB(60, 0, -9); const LAB kBase0 = LAB(75, 0, -7); const LAB kBase1 = LAB(85, 0, -5); const LAB kBase2 = LAB(95, 0, -4); const LAB kBase3 = LAB(101, 0, 0); enum class Shade : unsigned int { Foreground, Foreground2, Background, Background2 }; const int kNumberOfShades = 4; #define SHADE_ARRAY \ const std::array<LAB, kNumberOfShades> kShades = { \ kForeground, kForeground2, kBackground, kBackground2}; namespace light { const LAB kForeground = kBase03; const LAB kForeground2 = kBase00; const LAB kBackground = kBase3; const LAB kBackground2 = kBase2; const LAB kMuted = kBase2; SHADE_ARRAY; } namespace dark { const LAB kForeground = kBase0; const LAB kForeground2 = kBase01; const LAB kBackground = kBase03; const LAB kBackground2 = kBase02; const LAB kMuted = kBase02; SHADE_ARRAY; } #undef SHADE_ARRAY } #endif
2cc1b72e3581037f7b801bbb5ffa26609fa9cec0
2377cfa2b0256f0b2cc7a9a23f93e5e717e79473
/pandey9/personType.cpp
a42dfacd5cdf31bc7407cbe3096abbf4d05d97ef
[]
no_license
sushildevy/CSIS_252
2ca82a8c7bd722254e0e62bd7bd72d02ee56f324
868055d0687d869e1ef2d9f3c2131d70647368fe
refs/heads/master
2022-11-14T20:44:28.811667
2020-07-06T23:59:55
2020-07-06T23:59:55
277,673,324
0
0
null
null
null
null
UTF-8
C++
false
false
1,303
cpp
personType.cpp
// File: personType.cpp // Author: Sushil Pandey // Program: prog9 // Date: 04/17/2018 // Description: // This file contains the implementation for a personType class #include "personType.h" #include "dateType.h" #include <iostream> #include <string> using namespace std; ostream& operator<<(ostream& out, const personType& p) { out<<p.getName() << ";" <<p.getBirthDay(); return out; } bool personType::operator==(const personType& p) const { return getBirthDay()==p.getBirthDay(); } bool personType::operator<(const personType& p) const { return getBirthDay() < p.getBirthDay(); } bool personType::operator<=(const personType& p) const { return *this<p || *this==p; } bool personType::operator>(const personType& p) const { return !(*this<=p); } bool personType::operator>=(const personType& p) const { return !(*this<p); } bool personType::operator!=(const personType& p) const { return !(*this==p); } personType::personType(const string& n, dateType& obj) { setName(n); setBirthDay(obj); } string personType::getName() const { return name; } void personType::setName(const string& n) { name=n; } dateType personType::getBirthDay() const { return BirthDay; } void personType::setBirthDay(const dateType& obj) { BirthDay=obj; }
cb7526b6406b769e950a7a328d1ac432a980ce46
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_1483488_0/C++/sspa/main.cpp
49e2ce88b73f52e2451cccc6cfbe3e60dea381ce
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
C++
false
false
1,017
cpp
main.cpp
#include <iostream> #include <algorithm> #include <string.h> #include <stdio.h> #include <map> using namespace std; int a,b; int work(int x,int k) { int h[11]={0}; int i=0; while(x) { h[i]=x%10; x/=10; i++; } int ret=0; for(int j=k;j>=0;j--) ret=ret*10+h[j]; for(int j=i-1;j>k;j--) ret=ret*10+h[j]; return ret; } int main() { freopen("in","r",stdin); freopen("out","w",stdout); int ca,t=0; for(scanf("%d",&ca);ca--;) { map<pair<int,int>,int> hash; printf("Case #%d: ",++t); int a,b; int ans=0; scanf("%d%d",&a,&b); for(int i=a;i<b;i++) { for(int j=0;j<=9;j++) { int tmp=work(i,j); if(i<tmp && tmp<=b) { if(hash[make_pair(i,tmp)]==0) ans++; hash[make_pair(i,tmp)]=1; } } } printf("%d\n",ans); } return 0; }
30306298e4de0c009cbe4afdbb618a83c028ba77
2c3d97d8403dd5b488da4d8ea9c229f916b71849
/Bluetooth.h
0465c201786405f163043dae49e8c4b1e80b4c31
[]
no_license
Bluecane/arduino_app
27f627e72372348fe1b07accb689ee54342ed985
240a5f7e747d4bd63457dbdef4697a9fd399d9e1
refs/heads/master
2021-01-21T04:27:39.200810
2016-08-06T13:50:20
2016-08-06T13:50:20
55,557,205
0
0
null
2016-08-06T13:50:21
2016-04-05T22:09:00
C++
UTF-8
C++
false
false
359
h
Bluetooth.h
/** * Bluetooth serial wrapper **/ #ifndef Bluetooth_h #define Bluetooth_h #include "Arduino.h" #include "SoftwareSerial.h" class Bluetooth { public: Bluetooth(int pinTX = 10, int pinRX = 11, int vel = 9600); char send(char msg); void receive(char (*callback)(char)); bool available(); private: SoftwareSerial *btserial; }; #endif
dd5221f644c425d0a1552df8110d1319267b7576
5660ceafa5ed1e2b812d8f85a99bf00971e29d6b
/src/audio/SoundBuffer.h
65625d906edb8afdfe695d091fd1fb90a0c8fc4a
[]
no_license
markwash/playground
3a163583d214ada409ded3bd45b57c65aee1efb2
63e264a6d136b2de85fe0055ae0f801063b01418
refs/heads/master
2016-09-06T12:58:28.768139
2011-04-01T18:12:26
2011-04-01T18:12:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
586
h
SoundBuffer.h
// Copyright 2011 <Mark Washenberger> #ifndef SRC_AUDIO_SOUNDBUFFER_H_ #define SRC_AUDIO_SOUNDBUFFER_H_ #include <stdint.h> namespace pg { namespace audio { class SoundBuffer { public: SoundBuffer(); explicit SoundBuffer(int size); ~SoundBuffer(); void Init(); int channels(); int16_t *data(); int frames(); int max_frames(); int size(); void set_channels(int channels); void set_frames(int frames); private: int channels_; int frames_; int size_; int16_t *data_; }; } // namespace audio } // namespace pg #endif // SRC_AUDIO_SOUNDBUFFER_H_
c96c284f4c9737ab852a7bcd9617870d1723d530
8e56ba44a699f3f5feb44d12ab6356a09bc5a86d
/LearningOpenGL/Project1/SpringForceGenerator.cpp
d6f802ccb77e5f5cbed82ef6a68255cbfc64252a
[]
no_license
rbtres/GamePhysics
37d85253c8401450145a303c38e7fc0403fe2ca1
7f8ed55597ab036584508878da4eed940981e1b9
refs/heads/master
2016-09-06T14:34:13.459734
2015-04-29T23:30:23
2015-04-29T23:30:23
29,218,084
0
0
null
null
null
null
UTF-8
C++
false
false
640
cpp
SpringForceGenerator.cpp
#include "SpringForceGenerator.h" #include <cmath> SpringForceGenerator::SpringForceGenerator() { m_k = 5; } SpringForceGenerator::~SpringForceGenerator() { } void SpringForceGenerator::UpdateForce(PhysicsObject* object) { Vector3D force; force = object->getPos(); force -= m_AnchorObject->getPos(); float magnitude = force.Magnitude(); magnitude = fabs(magnitude - m_restLength); magnitude *= m_k; force.Normalize(); force = force * -magnitude; object->addForce(force); } void SpringForceGenerator::UpdateForce(PhysicsObject* addedBody, PhysicsObject* otherBody) { m_AnchorObject = otherBody; UpdateForce(addedBody); }
0171549f83883f95c4348189d65c0b694cddab02
666e2ff7aa1a4bcf3592331062ce774373fe6fa6
/sip/headers/sip_header_cseq.cpp
d4617e34cff184098822e4d6b9a6f4ee883688f0
[]
no_license
asyr625/mini_sip
aeffd6e5ea1dafafa817b1137859b41351fe9580
12ea4b9a03585b5c7e5b5faeeed0a5bc6a9c19cc
refs/heads/master
2021-01-20T12:06:33.212419
2015-11-24T02:33:26
2015-11-24T02:33:26
46,761,914
0
1
null
null
null
null
UTF-8
C++
false
false
1,527
cpp
sip_header_cseq.cpp
#include "sip_header_cseq.h" #include "string_utils.h" SRef<Sip_Header_Value *> cseqFactory(const std::string &build_from){ return new Sip_Header_Value_CSeq(build_from); } Sip_Header_Factory_Func_Ptr sip_header_cseq_factory = cseqFactory; const std::string sipHeaderValueCSeqTypeStr = "CSeq"; Sip_Header_Value_CSeq::Sip_Header_Value_CSeq(const std::string &build_from) : Sip_Header_Value(SIP_HEADER_TYPE_CSEQ,sipHeaderValueCSeqTypeStr) { unsigned maxlen=(unsigned)build_from.size(); unsigned i=0; while (i<maxlen && is_ws(build_from[i])) i++; std::string num; while (i<maxlen && ((build_from[i]>='0' && build_from[i]<='9') || build_from[i]=='-')) { num+=build_from[i]; i++; } while (i<maxlen && is_ws(build_from[i]) ) i++; _method = build_from.substr(i); set_cseq(atoi((trim(num)).c_str())); } Sip_Header_Value_CSeq::Sip_Header_Value_CSeq(const std::string &meth, int s) : Sip_Header_Value(SIP_HEADER_TYPE_CSEQ,sipHeaderValueCSeqTypeStr), _method(meth), _seq(s) { } Sip_Header_Value_CSeq::~Sip_Header_Value_CSeq() { } std::string Sip_Header_Value_CSeq::get_string() const { return itoa(_seq) +" "+ _method; } std::string Sip_Header_Value_CSeq::get_method() const { return _method; } void Sip_Header_Value_CSeq::set_method(const std::string &m) { this->_method = m; } void Sip_Header_Value_CSeq::set_cseq(int32_t n) { this->_seq = n; } int32_t Sip_Header_Value_CSeq::get_cseq() const { return _seq; }
e3a63d8f735b290bf861d325afe8d76af26b0969
260bdca70f0c5cc47a61de222faa49fba5f81fbf
/201816040114/Ex03_13/Ex03_13.cpp
0a60e225ad9618f814e3535d4fa2a50ef07e9e67
[]
no_license
XueLing-c/Assignment_03
354095fb237dd81a25cf8ff7ff454b6fb57ccf52
78b1ebe738d3aae0f1254a75c4e325dfb6339035
refs/heads/master
2020-09-01T13:32:11.242017
2019-11-01T11:06:05
2019-11-01T11:06:05
218,968,811
0
0
null
2019-11-01T10:59:08
2019-11-01T10:59:08
null
UTF-8
C++
false
false
287
cpp
Ex03_13.cpp
#include <iostream> using namespace std; #include "Invoice.h" int main() { Invoice invoice("C516","to click something",12,13); cout<<invoice.getPartNumber()<<" "<<invoice.getDescribe()<<" "<<invoice.getSalesAmount()<<" "<<invoice.getPrice()<<" "<<invoice.getInvoiceAmount(); }
36d5081562a453dc70e041f4ee6fd81e453b693b
4cfc6c4425786ac3128af32ed6a7c4d97b154a8f
/libraries/CustomHeaderLibs/tool/out_pin.hpp
e0ba3ce4d2b9b8cf51ddb17e01e901bfcacd0f58
[ "WTFPL" ]
permissive
mskoenz/arduino_crash_course
9aa1417daa84442c20de27df11646bd40525d039
cc7031e827dd13211cb9ce84f6d758f6e635e6a8
refs/heads/master
2020-05-16T23:58:43.635800
2019-11-18T09:00:33
2019-11-18T09:00:33
13,575,894
0
0
null
2013-10-24T14:39:30
2013-10-14T23:23:07
C
UTF-8
C++
false
false
1,900
hpp
out_pin.hpp
// Author: Mario S. Könz <mskoenz@gmx.net> // Date: 04.07.2013 15:35:23 EDT // File: out_pin.hpp /* This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by Sam Hocevar. See * http://www.wtfpl.net/ or COPYING for more details. */ #ifndef __OUT_PIN_HEADER #define __OUT_PIN_HEADER #include <Arduino.h> #include "./pin_concept.hpp" namespace tool { template<typename pin_concept> class out_pin_class_base { public: //------------------- ctors ------------------- out_pin_class_base(): state_(LOW) { pinMode(pin, OUTPUT); digitalWrite(pin, state_); } //------------------- ops ------------------- operator bool() const { return state_; } //------------------- assignment ------------------- out_pin_class_base & operator=(bool const & s) { state_ = s; digitalWrite(pin, state_); return (*this); } //------------------- modes ------------------- void on() { state_ = HIGH; digitalWrite(pin, state_); } void off() { state_ = LOW; digitalWrite(pin, state_); } void flip() { state_ = !state_; digitalWrite(pin, state_); } private: bool state_; constexpr static uint8_t pin = pin_concept::physical_pin(); }; template<typename pin_concept> class out_pin_class: public out_pin_class_base<pin_concept> { }; template<uint8_t pin> class out_pin_class<tool::intern<pin>>: public out_pin_class_base<tool::intern<pin>> { }; }//end namespace tool #endif //__OUT_PIN_HEADER
d1658ad8cc204de4bd45a118ddc8456d9a69c03a
8776e5e32be27c16c7f8cd2a9a4259b6fb7a012b
/im_server/common/HashList.cpp
445f5d4ccf236df6a8719912adb4dc5489f5603b
[]
no_license
736229999/im
970b9754da2e15fd5cdaaed6ba189e7c497e15e3
dc00c52e77a99fae28df9dba8366e31b578a7831
refs/heads/master
2021-01-15T11:11:56.737294
2017-06-14T07:56:44
2017-06-14T07:56:44
null
0
0
null
null
null
null
UTF-8
C++
false
false
938
cpp
HashList.cpp
#include "stdafx.h" #include "HashList.h" HashListItem::HashListItem() { m_hashPre = NULL; m_hashNext= NULL; m_ListPre = NULL; m_ListNext= NULL; } HashListItem::~HashListItem() { } ////////////////////////////////////////////////////////////////////////// TranPacketItem::TranPacketItem() { m_id = 0; m_seq = 0; m_vlink = 0; } uint32 TranPacketItem::GetHashNum() { return m_seq + m_id + m_vlink; } bool TranPacketItem::IsMatch(HashListItem& CompareItem) { TranPacketItem* pCompareItem = (TranPacketItem*)&CompareItem; if( m_id == pCompareItem->m_id && m_seq == pCompareItem->m_seq && m_vlink== pCompareItem->m_vlink ) { return true; } return false; } void TranPacketItem::InitIndex(HashListItem& IndexItem) { TranPacketItem* pIndexItem = (TranPacketItem*)&IndexItem; m_id = pIndexItem->m_id; m_seq= pIndexItem->m_seq; m_vlink = pIndexItem->m_vlink; } CHashList<TranPacketItem> g_hashlist;
20ddf4771144027a9bcadeaa15db066834b509ea
6394118fe656ead590e5ea8f390b77556ff70905
/include/test_interface.h
2946fa70ace7a7ec394e770651870c95aa220c0a
[]
no_license
pdJeeves/MCell-Test-Framework
bcb6bc801dedfa3f954da5a0b4e38c14cb958d25
a3b807ae5f5a6317854744eba1b845e58ef74b20
refs/heads/master
2020-12-24T13:52:34.364129
2014-05-02T14:23:28
2014-05-02T14:23:28
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,172
h
test_interface.h
#ifndef _test_interface_h_ #define _test_interface_h_ #include "scheduler_interface.h" #include "data_table.hpp" //working dir - where mcell puts files //current dir - where we put files //so only need to know working. extern int least_edit_distance(const std::string & a, const std::string & b); template<typename T> class test_interface { protected: typedef std::vector<data_table<T> > table_map; table_map _loaded; int _return_code; int _signal_code; std::string _logfile; std::string _errfile; public: test_interface() { _return_code = 0; _signal_code = 0; boost::filesystem::path location = script_scheduler()->get_working_directory(); _logfile = (location / std::string("logfile")).native(); _errfile = (location / std::string("errfile")).native(); } std::string get_logfile() const { return _logfile; } std::string get_errfile() const { return _errfile; } int get_return_code() const { return _return_code; } int get_signal_code() const { return _signal_code; } data_table<T> GetOutput(std::string name) { if(_loaded.empty()) { return data_table<T>(name); } int cur = 0; int min = 10000; for(int i = 0; i < _loaded.size() && min != 0; ++i) { int temp = least_edit_distance(name, _loaded[i].get_name()); if(temp < min) { min = temp; cur = i; } } if(((double) min / name.size()) < 1) { return _loaded[cur]; } return data_table<T>(name); } }; class double_test : public test_interface<double> { public: static double_test create_double_test(std::string name); static double_test create_double_test_option(std::string name, bool verbose); private: double_test(std::string name, bool verbose); void initialize(const std::string & name, bool verbose); }; class average_test : public test_interface<average> { public: static average_test create_average_test(std::string name, int iterations); static average_test create_average_test_option(std::string name, int iterations, bool verbose); private: average_test(std::string name, int iterations, bool verbose); void initialize(const std::string & name, int iterations, bool verbose); }; #endif
07dfd93860ebbc016723da7010d4e44ae48fdc68
e51cb6b7d8a4e5d370291caecda6dfa5b6a11f1b
/testXML/mainwindow.cpp
f98ee3e5bc03e6465d7760da1faae9b257e5d83a
[]
no_license
xjs-js/QT
1c3539a43b65651325b990c4c0dcc51cc2e31914
e2ff83b44e9a07db43f777df96891b9f95c27e98
refs/heads/master
2020-07-10T13:34:55.534709
2020-05-25T02:05:10
2020-05-25T02:05:10
204,274,161
0
0
null
null
null
null
UTF-8
C++
false
false
2,413
cpp
mainwindow.cpp
#include "mainwindow.h" #include "ui_mainwindow.h" #include "pugixml.hpp" #include <iostream> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); ui->textEdit->setContextMenuPolicy(Qt::CustomContextMenu); connect(ui->textEdit, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(ShowContextMenu(const QPoint &))); connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(OnPushButtonClicked())); LoadXML(); createActions(); } MainWindow::~MainWindow() { delete ui; } void MainWindow::LoadXML() { pugi::xml_document doc; QString path = "/Users/js/Program/qt/testXML/test.xml"; pugi::xml_parse_result result = doc.load_file(path.toStdString().c_str(), pugi::parse_full, pugi::encoding_auto); if (result) { pugi::xml_node root = doc.child("root"); pugi::xml_node text = root.child("text"); QString str = QString(text.text().get()); ui->textEdit->setHtml(str.toStdString().c_str()); } } void MainWindow::createActions() { hello = new QAction(tr("hello"), this); connect(hello, SIGNAL(triggered()), this, SLOT(OnHello())); bye = new QAction(tr("bye"), this); connect(bye, SIGNAL(triggered()), this, SLOT(OnBye())); } void MainWindow::OnPushButtonClicked() { pugi::xml_document doc; QString path = "/Users/js/Program/qt/testXML/test.xml"; pugi::xml_parse_result result = doc.load_file(path.toStdString().c_str(), pugi::parse_full, pugi::encoding_auto); if (result) { pugi::xml_node root = doc.child("标注"); pugi::xml_node text = root.child("取消标注"); QString str = ui->textEdit->toHtml(); text.text().set(str.toStdString().c_str()); } doc.save_file(path.toStdString().c_str()); } void MainWindow::ShowContextMenu(const QPoint &pt) { QMenu *menu = ui->textEdit->createStandardContextMenu(); menu->addAction(hello); menu->addAction(bye); menu->exec(ui->textEdit->mapToGlobal(pt)); } void MainWindow::OnHello() { QTextCharFormat fmt; fmt.setForeground(Qt::red); QTextCursor cursor(ui->textEdit->document()); ui->textEdit->setCurrentCharFormat(fmt); } void MainWindow::OnBye() { QTextCharFormat fmt; fmt.setForeground(Qt::black); QTextCursor cursor(ui->textEdit->document()); ui->textEdit->setCurrentCharFormat(fmt); }
c4c5a7bb7b78ad0c889c80ae9c09a940bf436f1b
334eb563a92f30a78c6d4d692ce439e757f3bed2
/LikatorJurnal/catmaster.h
6ac282ded4d2bce09fcc3f2dd147793406ebb7e9
[]
no_license
yrasik1986/Likator
a2e4e3eb7eb8971cf1621f3c8141e3c403ad9c1f
8ba390a5ba99490a8aee09a37aef19fe9211b98d
refs/heads/dev
2020-12-21T08:12:08.002592
2020-10-18T15:37:32
2020-10-18T15:37:32
236,368,840
1
0
null
null
null
null
UTF-8
C++
false
false
536
h
catmaster.h
#ifndef CATMASTER_H #define CATMASTER_H #include <QDialog> #include <QSqlQueryModel> #include "addcatmaster.h" #include "dellcatmaster.h" namespace Ui { class CatMaster; } class CatMaster : public QDialog { Q_OBJECT public: explicit CatMaster(QWidget *parent = nullptr); ~CatMaster(); private slots: void on_addButton_clicked(); void LoadCatMasters(); void on_delButton_clicked(); private: Ui::CatMaster *ui; AddCatMaster *addCatMaster; DellCatMaster *dellCatMaster; }; #endif // CATMASTER_H
46e6579de75b22c43933f71b02e60edaed3f7c57
20cf6482b7f5a68bd0029414c02f7ec4747c0c5f
/triton2/server/logic/inc/chat.h
4004e1bc2fd6dcfcba3aeb9aa7c28afe26dd0657
[]
no_license
kensniper/triton2
732907c76c001b2454e08ca81ad72ace45625f6c
7ad2a359e85df85be9d87010047a198980c121ae
refs/heads/master
2023-03-23T02:20:56.487117
2017-02-26T00:00:59
2017-02-26T00:00:59
null
0
0
null
null
null
null
GB18030
C++
false
false
3,495
h
chat.h
#ifndef _CHAT_H_ #define _CHAT_H_ #pragma once #include "object.h" #include "chattype.h" #include <time.h> #include "sceneobj_define.h" #include "scenecfg_manager.h" //#define SPEAKCOUNT 6 // ********************************************************************** // // CChat // ********************************************************************** // class TimeLimit { //enum { MAX_CHATMSG_LEN = 200 }; private: time_t ChatTime; time_t FirMessTime; time_t SecMessTime; char MessBuffer[ MAX_MASSAGE_LEN ]; int MessCount; private: int CheckMess( const char *pMess, int MessTime ); public: enum { SendOk = 1, // 可以发言 NotInTimeLimit = 2, // 发言频率过快 NotInMessLimit = 3, // 一句话6秒内重复三次 INCOOLTIME = 4, // 处于跨服或者刚登录服务器的冷却时间 }; public: TimeLimit(); int Initialize(); int Resume(); int CanSendMess( const char *p, int ChatLimitTime, int MessLimitTime ); int SetChatTime( int nChatTime, int nFirMsgTime, int nSecMsgTime ); }; class CChat : public CObj { private: int mForbiddenChannel; int mFreeTime; // 禁止过期时间(未来时间), 单位: 秒 enum { InCommonTime,InPtoPTime,InWorldTime }; public: CChat( ) { if( CObj::msCreateMode ) { Initialize(); } else { Resume(); } } virtual ~CChat() {}; virtual int Initialize() { mForbiddenChannel = 0; mFreeTime = 0; return 0; } virtual int Resume() {return 0;} bool InChannel( CHAT_CHANNEL vChannel ); // 设置禁言频道 void SetChannel( int vChannel, bool IfSetChannelTrue = false ); // 初始化禁言频道 void InitialChannel( int vChannel, int nPeriod ); // 得到被禁频道 int GetForbidenChannel( ); // 得到解禁时间 inline int GetForbidenFreeTime( ) { return mFreeTime; } //时间限制代码 //TimeLimit PtoPTimeLimit; TimeLimit CommonTimeLimit; TimeLimit WorldTimeLimit; TimeLimit CounrtyTimeLimit; //时间限制代码 }; struct sAutoMsg { //char PlayerName[NAME_LENGTH]; int PlayerId; char MessBuff[ MAX_MASSAGE_LEN ]; int time; int count; int channel; sAutoMsg( ) { if ( CObj::msCreateMode ) { Initialize(); } else { Resume(); } } int Initialize(); int Resume(); } ; class CAutoMsg { private: int mSpeakNum; //现在使用自动喊话的玩家个数 int mCurChatPos; //获取队列中当前可以发言的玩家信息 int mGetChatBegin; //标志是否处于循环获取喊话队列内容的过程中 sAutoMsg mDeletedChat; //保存最近一次被删除的玩家信息 public: sAutoMsg mAutoMessBuff[ MAXAUTOCHATNUM ]; enum { CHATCOMPLETE = 1, //完成喊话队列一次循环检测 CURCHATNOTINTIME, //喊话队列中的当前玩家未到发言时间 CURCHATINTIME, //喊话队列中当前玩家满足时间要求可以发言 CURCHATCOMPLETE //当前玩家的自动喊话已经结束 }; public: void SetCurPos( int pos = 0 ); int InsertAutoMess( int playerid, const char *pMess, int time, int channel, int chatcount ); int GetCurrentChat( sAutoMsg *CurAutoChat); int ModifyAutoMess( int playerid, const char *pMess, int time, int channel, int chatcount = 1 ); int DelAutoMess( int playerid, int iscurrentplayer = 1 ); int ChangeChatCount( int playerid, int count ) ; int GetSpeakNum( ); public: CAutoMsg( ); int Initialize(); int Resume(); ~CAutoMsg( ){ }; }; #endif
7d1b4abcbc060ed2960ee85352a286b14e9be495
218ab40c9f828fc9c65dc2b6017ede7506559d8a
/Hw9/Hw9/main.cpp
ea20c74157429fc712d08ca7549e187361ea3dcb
[]
no_license
antonio7905/Computer-Vision_Hw
401901edf26bb717311d3d940d569e0a7dba5519
37b0a6031d6d71d7b4f208da96d47b93513c325f
refs/heads/master
2022-10-21T04:24:48.185717
2017-06-05T03:17:57
2017-06-05T03:17:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,138
cpp
main.cpp
// // main.cpp // Hw9 // // Created by Antonio Tsai on 22/05/2017. // Copyright © 2017 TTU. All rights reserved. // // tess.cpp: // Recognize text on an image using Tesseract API and print it to the screen // Usage: ./tess image.png #include <tesseract/baseapi.h> #include <leptonica/allheaders.h> #include <tesseract/strngs.h> #include <iostream> using namespace tesseract; using namespace std; int main(int argc, const char * argv[]) { char* image_path = (char*)"/Users/Antonio/Documents/openCV/plate1.jpg"; char *outText; TessBaseAPI *api = new TessBaseAPI(); // Initialize tesseract-ocr with English, without specifying tessdata path if (api->Init(NULL, "eng")) { fprintf(stderr, "Could not initialize tesseract.\n"); exit(1); } // Open input image with leptonica library Pix *image = pixRead(image_path); api->SetImage(image); // Get OCR result outText = api->GetUTF8Text(); printf("OCR output:\n%s", outText); // Destroy used object and release memory api->End(); delete [] outText; pixDestroy(&image); return 0; }
e9f16164bd7fa35a67f11abae4c319e2443f5094
a312f03975dd63cc696115af04ee04726364be47
/client2.0/src/YouMeCommon/MonitorDataReport.h
8ff5391e6060d9b247ed0ba1f85cf677dbdbed5a
[]
no_license
Andy8871/YouMeIM
389c679bf37fb73d67654589ba20c21e9dcda0e2
d69b2ab3a190e99acf221dce1054e298580b6ac7
refs/heads/master
2021-01-12T12:58:19.067361
2016-10-06T09:26:49
2016-10-06T09:26:49
70,139,683
2
1
null
null
null
null
UTF-8
C++
false
false
1,788
h
MonitorDataReport.h
#pragma once #include <YouMeCommon/CrossPlatformDefine/PlatformDef.h> #include <YouMeCommon/XVariant.h> #include <YouMeCommon/SqliteOperator.h> #include <YouMeCommon/XSemaphore.h> #include <mutex> #include <thread> #include <map> /************************************************************************/ /* 保存了上报的东西 */ /************************************************************************/ namespace youmecommon { const XString s_szYoumeTableName[] = { __XT("report") }; //一对多的配置 const XString s_szYoumeCreateTableSQL[] = { __XT("create table report (id int,value blob);") }; //数据上报一半都是一个应用程序只需要需要一个,为了避免不必要的多次初始化或者反初始化,建议new 一个全局的来用 class CMonitorDataReport { public: CMonitorDataReport(); ~CMonitorDataReport(); //初始化和反初始化, 参数三只需要给一个db 的文件名,不需要全路径 bool Init(const XString& strDomainOrIP, int iPort, const XString& strLocalDbName, const XString& strDefalutIP); void UnInit(); //开始上报,上报统一protobuf 协议的二进制数据 bool Report(int iEvtType, const std::vector<CXVariant>& reportData, XINT64 ulReportTime); private: //上报线程 void ReportProc(); bool m_bInit; //服务器相关参数 XString m_strDefaultIP; XString m_strReportAddr; int m_iPort; //上报线程 CXSemaphore m_wait; std::mutex m_mutex; std::thread m_reportThread; //本地db CSqliteDb m_sqliteDb; int m_iMaxID; //保存从数据库读出的数据 std::map<int, CXSharedArray<char> >m_needReportMap; //用来保存域名DNS 解析的ip或者默认的ip std::vector<XString> m_cachReportIP; }; }
17cd9043b4995eca6df74b1ef81ef2c0c4e4e06b
dbe8bdc2b3d9d4c13d7fc9c13895f7bcd226db05
/HuaWei/3明明的随机数.cpp
54d4b0673d4c88c1082a8ec4abfc1306e6c10508
[ "MIT" ]
permissive
zl6977/BasicKnowledge
8740515e786826984c2c7e05e5cdb1d75717637e
60d361c83243c24407be844dd9201adf83c6a0e5
refs/heads/master
2020-05-27T06:38:18.670076
2019-01-28T17:13:25
2019-01-28T17:13:25
188,524,708
1
0
null
2019-05-25T05:29:01
2019-05-25T05:29:01
null
UTF-8
C++
false
false
368
cpp
3明明的随机数.cpp
#include "stdafx.h" #include "HuaWei.h" #include<iostream> #include<set> #include<string> using namespace std; int test_3() { int num = 0; while (cin >> num) { int value; set<int> iset; for (int i = 0; i<num; i++) { cin >> value; iset.insert(value); } for (auto m = iset.begin();m != iset.end();m++) { cout << *m << endl; } } return 0; }
b8a0c6dbaf70356af8a125193f0352909935b191
cfeac52f970e8901871bd02d9acb7de66b9fb6b4
/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/FilledMapFieldWells.h
ae47d8c445b0a2f346219c7cdd7a933f698d8cb4
[ "Apache-2.0", "MIT", "JSON" ]
permissive
aws/aws-sdk-cpp
aff116ddf9ca2b41e45c47dba1c2b7754935c585
9a7606a6c98e13c759032c2e920c7c64a6a35264
refs/heads/main
2023-08-25T11:16:55.982089
2023-08-24T18:14:53
2023-08-24T18:14:53
35,440,404
1,681
1,133
Apache-2.0
2023-09-12T15:59:33
2015-05-11T17:57:32
null
UTF-8
C++
false
false
2,760
h
FilledMapFieldWells.h
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/quicksight/QuickSight_EXPORTS.h> #include <aws/quicksight/model/FilledMapAggregatedFieldWells.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QuickSight { namespace Model { /** * <p>The field wells of a <code>FilledMapVisual</code>.</p> <p>This is a union * type structure. For this structure to be valid, only one of the attributes can * be defined.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/FilledMapFieldWells">AWS * API Reference</a></p> */ class FilledMapFieldWells { public: AWS_QUICKSIGHT_API FilledMapFieldWells(); AWS_QUICKSIGHT_API FilledMapFieldWells(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API FilledMapFieldWells& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The aggregated field well of the filled map.</p> */ inline const FilledMapAggregatedFieldWells& GetFilledMapAggregatedFieldWells() const{ return m_filledMapAggregatedFieldWells; } /** * <p>The aggregated field well of the filled map.</p> */ inline bool FilledMapAggregatedFieldWellsHasBeenSet() const { return m_filledMapAggregatedFieldWellsHasBeenSet; } /** * <p>The aggregated field well of the filled map.</p> */ inline void SetFilledMapAggregatedFieldWells(const FilledMapAggregatedFieldWells& value) { m_filledMapAggregatedFieldWellsHasBeenSet = true; m_filledMapAggregatedFieldWells = value; } /** * <p>The aggregated field well of the filled map.</p> */ inline void SetFilledMapAggregatedFieldWells(FilledMapAggregatedFieldWells&& value) { m_filledMapAggregatedFieldWellsHasBeenSet = true; m_filledMapAggregatedFieldWells = std::move(value); } /** * <p>The aggregated field well of the filled map.</p> */ inline FilledMapFieldWells& WithFilledMapAggregatedFieldWells(const FilledMapAggregatedFieldWells& value) { SetFilledMapAggregatedFieldWells(value); return *this;} /** * <p>The aggregated field well of the filled map.</p> */ inline FilledMapFieldWells& WithFilledMapAggregatedFieldWells(FilledMapAggregatedFieldWells&& value) { SetFilledMapAggregatedFieldWells(std::move(value)); return *this;} private: FilledMapAggregatedFieldWells m_filledMapAggregatedFieldWells; bool m_filledMapAggregatedFieldWellsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws
6619a555c0a3ef71ff71e30432725af1dc2582f5
21398f93e869699e6bbd73bf2346f538b2b368e9
/linearprobing-omp/linearprobing.cpp
09d71ca4cdbbc2c5650148e98638c7d977a4a96e
[ "BSD-3-Clause" ]
permissive
zjin-lcf/HeCBench
fc67fa11d052ca5b9fbaac9ecee3d7a3ab3af08f
e2e13ff587c392361989cece0956d827167aa7b9
refs/heads/master
2023-08-18T05:08:57.134834
2023-08-14T01:22:41
2023-08-14T01:22:41
285,634,219
89
34
BSD-3-Clause
2023-09-08T18:28:55
2020-08-06T17:44:38
C++
UTF-8
C++
false
false
3,982
cpp
linearprobing.cpp
#include <stdio.h> #include <stdint.h> #include <string.h> #include <vector> #include <chrono> #include "linearprobing.h" // 32 bit Murmur3 hash uint32_t hash(uint32_t k) { k ^= k >> 16; k *= 0x85ebca6b; k ^= k >> 13; k *= 0xc2b2ae35; k ^= k >> 16; return k & (kHashTableCapacity-1); } // Insert the key/values in kvs into the hashtable double insert_hashtable(KeyValue*__restrict pHashTable, const KeyValue*__restrict kvs, uint32_t num_kvs) { // Insert all the keys into the hash table const int threadblocksize = 256; int gridsize = ((uint32_t)num_kvs + threadblocksize - 1) / threadblocksize; auto start = std::chrono::steady_clock::now(); #pragma omp target teams distribute parallel for \ num_teams(gridsize) thread_limit(threadblocksize) for (unsigned int tid = 0; tid < num_kvs; tid++) { uint32_t key = kvs[tid].key; uint32_t value = kvs[tid].value; uint32_t slot = hash(key); while (true) { uint32_t prev; #pragma omp atomic capture //#pragma omp critical { prev = pHashTable[slot].key; pHashTable[slot].key = (prev == kEmpty) ? key : prev; } if (prev == kEmpty || prev == key) { pHashTable[slot].value = value; break; //return; } slot = (slot + 1) & (kHashTableCapacity-1); } } auto end = std::chrono::steady_clock::now(); auto time = std::chrono::duration_cast<std::chrono::nanoseconds>(end - start).count(); return time; } // Delete each key in kvs from the hash table, if the key exists // A deleted key is left in the hash table, but its value is set to kEmpty // Deleted keys are not reused; once a key is assigned a slot, it never moves double delete_hashtable(KeyValue* pHashTable, const KeyValue* kvs, uint32_t num_kvs) { // Insert all the keys into the hash table const int threadblocksize = 256; int gridsize = ((uint32_t)num_kvs + threadblocksize - 1) / threadblocksize; auto start = std::chrono::steady_clock::now(); #pragma omp target teams distribute parallel for \ num_teams(gridsize) thread_limit(threadblocksize) for (unsigned int tid = 0; tid < num_kvs; tid++) { uint32_t key = kvs[tid].key; uint32_t slot = hash(key); while (true) { if (pHashTable[slot].key == key) { pHashTable[slot].value = kEmpty; break; //return; } if (pHashTable[slot].key == kEmpty) { break; //return; } slot = (slot + 1) & (kHashTableCapacity - 1); } } auto end = std::chrono::steady_clock::now(); auto time = std::chrono::duration_cast<std::chrono::nanoseconds>(end - start).count(); return time; } // Iterate over every item in the hashtable; return non-empty key/values std::vector<KeyValue> iterate_hashtable(KeyValue* pHashTable, KeyValue *device_kvs) { uint32_t kvs_size = 0; const int threadblocksize = 256; int gridsize = (kHashTableCapacity + threadblocksize - 1) / threadblocksize; auto start = std::chrono::steady_clock::now(); #pragma omp target teams distribute parallel for \ num_teams(gridsize) thread_limit(threadblocksize) map(tofrom: kvs_size) for (unsigned int tid = 0; tid < kHashTableCapacity; tid++) { if (pHashTable[tid].key != kEmpty) { uint32_t value = pHashTable[tid].value; if (value != kEmpty) { uint32_t size; #pragma omp atomic capture { size = kvs_size; kvs_size++; } device_kvs[size] = pHashTable[tid]; } } } auto end = std::chrono::steady_clock::now(); auto time = std::chrono::duration_cast<std::chrono::nanoseconds>(end - start).count(); printf("Kernel execution time (iterate): %f (s)\n", time * 1e-9f); uint32_t num_kvs = kvs_size; std::vector<KeyValue> kvs; kvs.resize(num_kvs); #pragma omp target update from (device_kvs[0:num_kvs]) memcpy(kvs.data(), device_kvs, sizeof(KeyValue) * num_kvs); return kvs; }
b4cb8d4617b376332b1af3b4f073006f5ec0f6ae
c8d3961ede782158448a77cd8036ef1330155381
/TestCommandReader/TestStatementReader.cpp
07e68bd829fd68bfaaa7cf3332248e08153c88af
[]
no_license
connect2nelson/MerchantGuideToGalaxy
a1e2426c10348a96e96f282dd4e35af3e631d762
45e3ed9d3a31da8f33191d254089a0ab0e4b68e8
refs/heads/master
2021-05-08T11:27:45.740761
2018-02-01T21:46:55
2018-02-01T21:46:55
119,897,722
1
0
null
null
null
null
UTF-8
C++
false
false
1,038
cpp
TestStatementReader.cpp
// TestCommandReader.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "gtest\gtest.h" #include "StatementReader.h" #include <string> using namespace std; TEST(read_from_file, StatementReader) { StatementReader * reader = StatementReaderFactory::getStatementReader("FILE"); vector<string> vecOfStrings; do { string stmt = reader->readStatement(); if (!stmt.empty()) vecOfStrings.push_back(stmt); } while (reader->isValidState()); EXPECT_EQ(vecOfStrings.size(), 12); reader->close(); EXPECT_EQ(reader->isValidState(), false); } TEST(read_from_console, StatementReader) { StatementReader * reader = StatementReaderFactory::getStatementReader("CONSOLE"); vector<string> vecOfStrings; int count = 0; do { string stmt = reader->readStatement(); if (!stmt.empty()) { vecOfStrings.push_back(stmt); count++; } } while (reader->isValidState()); EXPECT_EQ(vecOfStrings.size(),count); reader->close(); EXPECT_EQ(reader->isValidState(), false); }
553aa13bfa3d454bf212404be4da76b66b81cd5f
28ae1453e6fbb1bd41a0d866eecbe11b4daf1e0f
/src/GOF Four/Behavioral/iterator_/aggregate.cpp
7355369a2d7ddf42f074bb479303b00e15c642a4
[ "MIT" ]
permissive
haomiao/DesignPattern
f4a874e273feb6bf8245d6cbd0bc81735ee732d2
3841fca5e8f08348e60af42566e57951d7d1c4dd
refs/heads/master
2021-04-15T12:49:02.635962
2019-10-19T04:14:54
2019-10-19T04:14:54
63,339,913
1
1
null
null
null
null
UTF-8
C++
false
false
43
cpp
aggregate.cpp
#include "stdafx.h" #include "aggregate.h"
50e5a5776a1bb87a411f9eeed092a02453d133cf
6b40e9dccf2edc767c44df3acd9b626fcd586b4d
/NT/multimedia/directx/dsound/dsound/ksvad.cpp
99b2150fea51c1716f9ce54cb1672521d36f463f
[]
no_license
jjzhang166/WinNT5_src_20201004
712894fcf94fb82c49e5cd09d719da00740e0436
b2db264153b80fbb91ef5fc9f57b387e223dbfc2
refs/heads/Win2K3
2023-08-12T01:31:59.670176
2021-10-14T15:14:37
2021-10-14T15:14:37
586,134,273
1
0
null
2023-01-07T03:47:45
2023-01-07T03:47:44
null
UTF-8
C++
false
false
152,967
cpp
ksvad.cpp
/*************************************************************************** * * Copyright (C) 1995-2001 Microsoft Corporation. All Rights Reserved. * * File: ksvad.cpp * Content: WDM/CSA Virtual Audio Device class * History: * Date By Reason * ==== == ====== * 2/25/97 dereks Created * 1999-2001 duganp Fixes and updates * ***************************************************************************/ #ifdef NOKS #error ksvad.cpp being built with NOKS defined #endif #include "ksvad.h" // Our public interface // Default speaker index table; maps the first speaker (LEFT) // to channel 0 and the second speaker (RIGHT) to channel 1. INT CKsRenderDevice::m_anDefaultSpeakerIndexTable[] = {0, 1}; /*************************************************************************** * * CKsRenderDevice * * Description: * Object constructor. * * Arguments: * (void) * * Returns: * (void) * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::CKsRenderDevice" CKsRenderDevice::CKsRenderDevice ( void ) : CRenderDevice(VAD_DEVICETYPE_KSRENDER), CKsDevice(VAD_DEVICETYPE_KSRENDER) { DPF_ENTER(); DPF_CONSTRUCT(CKsRenderDevice); // Initialize defaults m_pPinCache = NULL; m_paTopologyInformation = NULL; m_pwfxFormat = NULL; m_nSrcQuality = DIRECTSOUNDMIXER_SRCQUALITY_DEFAULT; m_dwSpeakerConfig = -1; // Invalid value; forces first SetSpeakerConfig() call to set it up m_hPin = NULL; m_liDriverVersion.QuadPart = 0; m_lSpeakerPositions = SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT; m_ulChannelCount = 2; m_pnSpeakerIndexTable = m_anDefaultSpeakerIndexTable; m_ulPanNodeId = NODE_UNINITIALIZED; m_ulSurroundNodeId = NODE_UNINITIALIZED; m_ulDacNodeId = NODE_UNINITIALIZED; m_dwMinHwSampleRate = -1; m_dwMaxHwSampleRate = -1; m_fIncludeAec = FALSE; DPF_LEAVE_VOID(); } /*************************************************************************** * * ~CKsRenderDevice * * Description: * Object destructor * * Arguments: * (void) * * Returns: * (void) * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::~CKsRenderDevice" CKsRenderDevice::~CKsRenderDevice ( void ) { DPF_ENTER(); DPF_DESTRUCT(CKsRenderDevice); CLOSE_HANDLE(m_hPin); RELEASE(m_pPinCache); MEMFREE(m_paTopologyInformation); MEMFREE(m_pwfxFormat); if (m_pnSpeakerIndexTable != m_anDefaultSpeakerIndexTable) MEMFREE(m_pnSpeakerIndexTable); DPF_LEAVE_VOID(); } /*************************************************************************** * * Initialize * * Description: * Initializes the device. If this function fails, the object should * be immediately deleted. * * Arguments: * CDeviceDescription * [in]: driver description. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::Initialize" HRESULT CKsRenderDevice::Initialize ( CDeviceDescription * pDesc ) { HRESULT hr = DS_OK; DPF_ENTER(); ASSERT(CDevice::m_vdtDeviceType == pDesc->m_vdtDeviceType); ASSERT(CKsDevice::m_vdtKsDevType == pDesc->m_vdtDeviceType); // Initialize the base classes hr = CKsDevice::Initialize(pDesc); if(SUCCEEDED(hr)) { hr = CRenderDevice::Initialize(pDesc); } // Get topology information if(SUCCEEDED(hr)) { m_paTopologyInformation = MEMALLOC_A(KSRDTOPOLOGY, m_ulPinCount); hr = HRFROMP(m_paTopologyInformation); } for(ULONG i = 0; i < m_ulValidPinCount && SUCCEEDED(hr); i++) { hr = GetTopologyInformation(m_paTopologies[m_pulValidPins[i]], &m_paTopologyInformation[m_pulValidPins[i]]); } // Order the valid pins from least-capable to most-capable (manbug 30402) if(SUCCEEDED(hr)) { PULONG pulValidPinsCopy = MEMALLOC_A(ULONG, m_ulValidPinCount); hr = HRFROMP(pulValidPinsCopy); if(SUCCEEDED(hr)) { CopyMemory(pulValidPinsCopy, m_pulValidPins, sizeof(ULONG) * m_ulValidPinCount); HRESULT hrTemp; ULONG i; int nCurSlot = 0; // Place the pins not capable of HW 3D first in the list for(i = 0; i < m_ulValidPinCount; i++) { hrTemp = ValidatePinCaps(m_pulValidPins[i], DSBCAPS_LOCHARDWARE|DSBCAPS_CTRL3D, GUID_NULL); if (FAILED(hrTemp)) { m_pulValidPins[nCurSlot++] = pulValidPinsCopy[i]; pulValidPinsCopy[i] = -1; } } // Now place all the others pins for(i = 0; i < m_ulValidPinCount; i++) { if (pulValidPinsCopy[i] != -1) { m_pulValidPins[nCurSlot++] = pulValidPinsCopy[i]; } } MEMFREE(pulValidPinsCopy); } } // Determine the Virtual Source Index which will be used to associate // each pin with the Wave Out master volume. if(SUCCEEDED(hr)) { hr = KsCreateSysAudioVirtualSource(m_hDevice, &m_ulVirtualSourceIndex); if(FAILED(hr)) { DPF(DPFLVL_ERROR, "Can't create virtual source"); } } // Initialize the default format if(SUCCEEDED(hr)) { m_pwfxFormat = AllocDefWfx(); hr = HRFROMP(m_pwfxFormat); } // Create the pin cache if(SUCCEEDED(hr)) { m_pPinCache = NEW(CKsRenderPinCache); hr = HRFROMP(m_pPinCache); } // Get the driver version number if(SUCCEEDED(hr)) { GetDriverVersion(&m_liDriverVersion); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * GetCaps * * Description: * Fills a DSCAPS structure with the capabilities of the device. * * Arguments: * LPDSCAPS [out]: receives caps. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::GetCaps" HRESULT CKsRenderDevice::GetCaps ( LPDSCAPS pCaps ) { BOOL fHardwareRenderer = TRUE; HRESULT hr = DS_OK; KSDATARANGE_AUDIO DataRange; KSPIN_CINSTANCES PinInstances; KSPIN_CINSTANCES ThreedPinInstances; DPF_ENTER(); ASSERT(sizeof(*pCaps) == pCaps->dwSize); // Get caps for the hardware renderer hr = GetKsDeviceCaps(DSBCAPS_LOCHARDWARE, GUID_NULL, &DataRange, &PinInstances, &ThreedPinInstances); // If we failed to find a hardware renderer, go ahead and get software caps if(S_FALSE == hr) { DPF(DPFLVL_MOREINFO, "No hardware renderer found. Getting software renderer caps"); fHardwareRenderer = FALSE; hr = GetKsDeviceCaps(DSBCAPS_LOCSOFTWARE, GUID_NULL, &DataRange, &PinInstances, &ThreedPinInstances); } if(S_FALSE == hr) { DPF(DPFLVL_ERROR, "No usable renderer found!"); ASSERT(S_FALSE != hr); hr = DSERR_NODRIVER; } // Fill out caps structure if(SUCCEEDED(hr)) { ZeroMemoryOffset(pCaps, pCaps->dwSize, sizeof(pCaps->dwSize)); #pragma TODO("We should qualify whether or not the driver really does support CONTINUOUSRATE") pCaps->dwFlags = DSCAPS_CONTINUOUSRATE; if(DataRange.MaximumChannels >= 1) { pCaps->dwFlags |= DSCAPS_PRIMARYMONO | DSCAPS_SECONDARYMONO; } if(DataRange.MaximumChannels >= 2) { pCaps->dwFlags |= DSCAPS_PRIMARYSTEREO | DSCAPS_SECONDARYSTEREO; } if(DataRange.MinimumBitsPerSample <= 8 && DataRange.MaximumBitsPerSample >= 8) { pCaps->dwFlags |= DSCAPS_PRIMARY8BIT | DSCAPS_SECONDARY8BIT; } if(DataRange.MinimumBitsPerSample <= 16 && DataRange.MaximumBitsPerSample >= 16) { pCaps->dwFlags |= DSCAPS_PRIMARY16BIT | DSCAPS_SECONDARY16BIT; } pCaps->dwMinSecondarySampleRate = DataRange.MinimumSampleFrequency; pCaps->dwMaxSecondarySampleRate = DataRange.MaximumSampleFrequency; // Cache this data for use by GetFrequencyRange() m_dwMinHwSampleRate = pCaps->dwMinSecondarySampleRate; m_dwMaxHwSampleRate = pCaps->dwMaxSecondarySampleRate; if(fHardwareRenderer) { pCaps->dwMaxHwMixingAllBuffers = pCaps->dwMaxHwMixingStaticBuffers = pCaps->dwMaxHwMixingStreamingBuffers = PinInstances.PossibleCount; pCaps->dwFreeHwMixingAllBuffers = pCaps->dwFreeHwMixingStaticBuffers = pCaps->dwFreeHwMixingStreamingBuffers = PinInstances.PossibleCount - PinInstances.CurrentCount; pCaps->dwMaxHw3DAllBuffers = pCaps->dwMaxHw3DStaticBuffers = pCaps->dwMaxHw3DStreamingBuffers = ThreedPinInstances.PossibleCount; pCaps->dwFreeHw3DAllBuffers = pCaps->dwFreeHw3DStaticBuffers = pCaps->dwFreeHw3DStreamingBuffers = ThreedPinInstances.PossibleCount - ThreedPinInstances.CurrentCount; } pCaps->dwReserved1 = m_liDriverVersion.LowPart; pCaps->dwReserved2 = m_liDriverVersion.HighPart; } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * GetFrequencyRange * * Description: * Obtains this device's minimum and maximum supported frequencies. * Caches this information to avoid repeated calls to GetCaps(). * * Arguments: * LPDWORD [out]: * LPDWORD [out]: * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::GetFrequencyRange" HRESULT CKsRenderDevice::GetFrequencyRange(LPDWORD pdwMinHwSampleRate, LPDWORD pdwMaxHwSampleRate) { HRESULT hr = DSERR_GENERIC; DPF_ENTER(); ASSERT(pdwMinHwSampleRate && pdwMaxHwSampleRate); if (m_dwMinHwSampleRate == -1) { DSCAPS dscaps; InitStruct(&dscaps, sizeof dscaps); GetCaps(&dscaps); } if (m_dwMinHwSampleRate != -1) { *pdwMinHwSampleRate = m_dwMinHwSampleRate; *pdwMaxHwSampleRate = m_dwMaxHwSampleRate; hr = DS_OK; } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * GetKsDeviceCaps * * Description: * Gets capabilities for the underlying KS device. * * Arguments: * DWORD [in]: device location flags. * REFGUID [in]: 3D algorithm identifier. * PKSDATARANGE_AUDIO [out]: receives aggregate dataranges for all * pins. * PKSPIN_CINSTANCES [out]: receives aggregate instance count of * pins. * PKSPIN_CINSTANCES [out]: receives aggregate instance count of * 3D pins. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::GetKsDeviceCaps" HRESULT CKsRenderDevice::GetKsDeviceCaps ( DWORD dwLocation, REFGUID guid3dAlgorithm, PKSDATARANGE_AUDIO pAggregateDataRange, PKSPIN_CINSTANCES pAggregatePinInstances, PKSPIN_CINSTANCES pAggregateThreedPinInstances ) { HRESULT hr = S_FALSE; KSDATARANGE_AUDIO DataRange; PKSDATARANGE_AUDIO pDataRange; KSPIN_CINSTANCES PinInstances; PKSPIN_CINSTANCES pPinInstances; KSPIN_CINSTANCES ThreedPinInstances; PKSPIN_CINSTANCES pThreedPinInstances; HRESULT hrTemp; DPF_ENTER(); ASSERT(DSBCAPS_LOCSOFTWARE == dwLocation || DSBCAPS_LOCHARDWARE == dwLocation); ZeroMemory(pAggregateDataRange, sizeof(*pAggregateDataRange)); ZeroMemory(pAggregatePinInstances, sizeof(*pAggregatePinInstances)); ZeroMemory(pAggregateThreedPinInstances, sizeof(*pAggregateThreedPinInstances)); pDataRange = pAggregateDataRange; pPinInstances = pAggregatePinInstances; pThreedPinInstances = pAggregateThreedPinInstances; // Get the audio data ranges and number of pins for all valid pins for(ULONG i = 0; i < m_ulValidPinCount; i++) { // Qualify the basic pin capabilities hrTemp = ValidatePinCaps(m_pulValidPins[i], dwLocation, guid3dAlgorithm); if(FAILED(hrTemp)) continue; // Get audio datarange hr = KsGetPinPcmAudioDataRange(m_hDevice, m_pulValidPins[i], pDataRange); if(FAILED(hr)) continue; if(pAggregateDataRange == pDataRange) pDataRange = &DataRange; else KsAggregatePinAudioDataRange(pDataRange, pAggregateDataRange); // Are we allowed to look for 2D pins? if((DSBCAPS_LOCHARDWARE == dwLocation) && (m_dwAccelerationFlags & DIRECTSOUNDMIXER_ACCELERATIONF_NOHWBUFFERS)) continue; // Get 2D pin instances. On WDM 1.0, fall back on the sysaudio property // to ask how many there really are #ifndef WINNT if (g_ulWdmVersion == WDM_1_0) { hr = KsGetRenderPinInstances(m_hDevice, m_pulValidPins[i], pPinInstances); } else #endif // !WINNT { hr = KsGetPinInstances(m_hDevice, m_pulValidPins[i], pPinInstances); } if(FAILED(hr)) break; if(pAggregatePinInstances == pPinInstances) pPinInstances = &PinInstances; else KsAggregatePinInstances(pPinInstances, pAggregatePinInstances); // Are we allowed to look for 3D pins? if((DSBCAPS_LOCHARDWARE == dwLocation) && (m_dwAccelerationFlags & DIRECTSOUNDMIXER_ACCELERATIONF_NOHW3D)) continue; // Does the device even support 3D? hrTemp = ValidatePinCaps(m_pulValidPins[i], dwLocation | DSBCAPS_CTRL3D, GUID_NULL); if(FAILED(hrTemp)) continue; // Get 3D pin instances hr = KsGetPinInstances(m_hDevice, m_pulValidPins[i], pThreedPinInstances); if(FAILED(hr)) break; if(pAggregateThreedPinInstances == pThreedPinInstances) pThreedPinInstances = &ThreedPinInstances; else KsAggregatePinInstances(pThreedPinInstances, pAggregateThreedPinInstances); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * CreatePrimaryBuffer * * Description: * Creates a primary buffer object. * * Arguments: * DWORD [in]: buffer flags. * LPVOID [in]: buffer instance identifier. * CPrimaryRenderWaveBuffer ** [out]: receives pointer to primary * buffer. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::CreatePrimaryBuffer" HRESULT CKsRenderDevice::CreatePrimaryBuffer ( DWORD dwFlags, LPVOID pvInstance, CPrimaryRenderWaveBuffer ** ppBuffer ) { CKsPrimaryRenderWaveBuffer *pBuffer; HRESULT hr; DPF_ENTER(); pBuffer = NEW(CKsPrimaryRenderWaveBuffer(this, pvInstance)); hr = HRFROMP(pBuffer); if(SUCCEEDED(hr)) { hr = pBuffer->Initialize(dwFlags); } if(SUCCEEDED(hr)) { *ppBuffer = pBuffer; } else { RELEASE(pBuffer); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * CreateSecondaryBuffer * * Description: * Creates a wave buffer. * * Arguments: * LPVADRBUFFERDESC [in]: buffer description. * LPVOID [in]: buffer instance identifier. * CSecondaryRenderWaveBuffer ** [out]: receives pointer to new wave * buffer. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::CreateSecondaryBuffer" HRESULT CKsRenderDevice::CreateSecondaryBuffer ( LPCVADRBUFFERDESC pDesc, LPVOID pvInstance, CSecondaryRenderWaveBuffer ** ppBuffer ) { CKsSecondaryRenderWaveBuffer * pBuffer; HRESULT hr; DPF_ENTER(); pBuffer = NEW(CKsSecondaryRenderWaveBuffer(this, pvInstance)); hr = HRFROMP(pBuffer); if(SUCCEEDED(hr)) { hr = pBuffer->Initialize(pDesc, NULL); } if(SUCCEEDED(hr)) { *ppBuffer = pBuffer; } else { ABSOLUTE_RELEASE(pBuffer); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * CreateKsSecondaryBuffer * * Description: * Creates a wave buffer. * * Arguments: * LPVADRBUFFERDESC [in]: buffer description. * LPVOID [in]: buffer instance identifier. * CSecondaryRenderWaveBuffer ** [out]: receives pointer to new wave * buffer. * CSysMemBuffer * [in]: System memory buffer to use. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::CreateKsSecondaryBuffer" HRESULT CKsRenderDevice::CreateKsSecondaryBuffer ( LPCVADRBUFFERDESC pDesc, LPVOID pvInstance, CSecondaryRenderWaveBuffer ** ppBuffer, CSysMemBuffer * pSysMemBuffer ) { CKsSecondaryRenderWaveBuffer * pBuffer; HRESULT hr; DPF_ENTER(); pBuffer = NEW(CKsSecondaryRenderWaveBuffer(this, pvInstance)); hr = HRFROMP(pBuffer); if(SUCCEEDED(hr)) { hr = pBuffer->Initialize(pDesc, NULL, pSysMemBuffer); } if(SUCCEEDED(hr)) { *ppBuffer = pBuffer; } else { ABSOLUTE_RELEASE(pBuffer); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * GetGlobalFormat * * Description: * Retrieves the format for the device. * * Arguments: * LPWAVEFORMATEX [out]: receives format. * LPDWORD [in/out]: size of the above format. On entry, this argument * contains the size of the buffer. On exit, this * contains the required size of the buffer. Call * this function twice: once to get the size, and * again to get the actual data. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::GetGlobalFormat" HRESULT CKsRenderDevice::GetGlobalFormat ( LPWAVEFORMATEX pwfxFormat, LPDWORD pdwSize ) { HRESULT hr; DPF_ENTER(); hr = CopyWfxApi(m_pwfxFormat, pwfxFormat, pdwSize); DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetGlobalFormat * * Description: * Sets the format for the device. * * Arguments: * LPWAVEFORMATEX [in]: new format, or NULL to reapply the current * format. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::SetGlobalFormat" HRESULT CKsRenderDevice::SetGlobalFormat ( LPCWAVEFORMATEX pwfxFormat ) { LPWAVEFORMATEX pwfxOld = m_pwfxFormat; CNode<CPrimaryRenderWaveBuffer *> * pNode; HRESULT hr; DPF_ENTER(); // Save a copy of the new format m_pwfxFormat = CopyWfxAlloc(pwfxFormat); hr = HRFROMP(m_pwfxFormat); // Update all primary buffers for(pNode = m_lstPrimaryBuffers.GetListHead(); pNode && SUCCEEDED(hr); pNode = pNode->m_pNext) { hr = ((CKsPrimaryRenderWaveBuffer *)pNode->m_data)->OnSetFormat(); } // Clean up if(SUCCEEDED(hr)) { MEMFREE(pwfxOld); } else { MEMFREE(m_pwfxFormat); m_pwfxFormat = pwfxOld; } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetSrcQuality * * Description: * Sets the mixer's SRC quality. * * Arguments: * DIRECTSOUNDMIXER_SRCQUALITY [in]: mixer SRC quality. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::SetSrcQuality" HRESULT CKsRenderDevice::SetSrcQuality ( DIRECTSOUNDMIXER_SRCQUALITY SrcQuality ) { CNode<CSecondaryRenderWaveBuffer *> * pNode; DPF_ENTER(); // Update all existing buffers. We don't care if they succeed or not. for(pNode = m_lstSecondaryBuffers.GetListHead(); pNode; pNode = pNode->m_pNext) { ((CKsSecondaryRenderWaveBuffer *)pNode->m_data)->SetSrcQuality(SrcQuality); } // Save the new SRC quality as the default m_nSrcQuality = SrcQuality; DPF_LEAVE_HRESULT(DS_OK); return DS_OK; } /*************************************************************************** * * SetSpeakerConfig * * Description: * Tries to set the device's speaker configuration. If successful, * stores it in m_dwSpeakerConfig. Some pseudocode follows: * * 1. If no pins have yet been instantiated: set the config and geometry * on the DAC node, if found. (Assumes that this node can only be found * on the driver.) (If the config is Surround and the card has a Dolby * encoder, this should force the card into 4-channel mode.) * * 2. If no pins instantiated: if the speaker config is Surround, try to * enable kmixer's encoder. (Will fail if the card's in 4-channel mode, * which is correct.) * * 3. If pins instantiated: read the pan node's channel config, and see * if it supports the requested spk. config - otherwise, fail the call. * * Usage A: When dsound opens a KS device, SetSpeakerConfig() gets called * twice (once before any pins are instantiated, once after), so if all * goes well the second call should succeed. * * Usage B: When an app calls the API's SetSpeakerConfig(), the KS device * must already be open, hence the call will fail unless we're already in * the configuration requested - which is correct. (I'm not about to try * to tear down all the pins, change the config and recreate them - apart * from the glitching involved, this isn't guaranteed to work anyway, * since most drivers can't change mode if ANY streams are active on them, * including non-dsound ones.) This API call always changes the config in * the registry and returns DS_OK, even if it fails, so next time dsound * starts up another attempt will be made to set the config. * * The astute reader will have noticed a flaw in all this: if we enable * kmixer's surround encoder, and the app creates a Pan3D buffer which * happens to get a HW-accelerated pin, we'll only have two channels to * play with, not four. To handle this, CreateMultiPan3dObject() checks * the supermix table on the pin, and if it doesn't have the expected no. * of outputs we drop down to stereo Pan3D. * * Arguments: * DWORD [in]: speaker configuration in dsound DSSPEAKER format. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::SetSpeakerConfig" HRESULT CKsRenderDevice::SetSpeakerConfig(DWORD dwReqSpeakerConfig) { LONG lKsSpeakerConfig; LONG lKsStereoSpeakerGeometry; HRESULT hr, hrTemp; DPF_ENTER(); DPF(DPFLVL_MOREINFO, "Current configuration is 0x%8.8lX; requested 0x%8.8lX; %s created", m_dwSpeakerConfig, dwReqSpeakerConfig, m_hPin ? TEXT("some pins already") : TEXT("no pins yet")); // First let the base class do its thing hr = CRenderDevice::SetSpeakerConfig(dwReqSpeakerConfig); // Only do any work if the speaker config is changing if (SUCCEEDED(hr) && (dwReqSpeakerConfig != m_dwSpeakerConfig)) { DsSpeakerConfigToKsProperties(dwReqSpeakerConfig, &lKsSpeakerConfig, &lKsStereoSpeakerGeometry); // Inform the driver (via its DAC node) of the speaker config change. // This will fail (harmlessly) on some cards with DS3D acceleration, // which expect this info on the 3D node of a specific pin instance; // these cards will be handled by the legacy code in ks3d.cpp. if (IS_VALID_NODE(m_ulDacNodeId)) // We found a DAC node { hrTemp = KsSetNodeProperty(m_hDevice, KSPROPSETID_Audio, KSPROPERTY_AUDIO_CHANNEL_CONFIG, m_ulDacNodeId, &lKsSpeakerConfig, sizeof lKsSpeakerConfig); DPF(DPFLVL_MOREINFO, "Setting the CHANNEL_CONFIG property on the DAC returned %s", HRESULTtoSTRING(hrTemp)); // NOTE: if the speaker config is Surround, and the card supports it, this call will succeed // and set up a >2 channel config on the card, which will make kmixer refuse to enable its // surround node below; that should make multichannel Pan3D work fine, so all is well. if (SUCCEEDED(hrTemp) && lKsSpeakerConfig == KSAUDIO_SPEAKER_STEREO) { // In this case, we should set the speaker "geometry" (angular separation) too. hrTemp = KsSetNodeProperty(m_hDevice, KSPROPSETID_Audio, KSPROPERTY_AUDIO_STEREO_SPEAKER_GEOMETRY, m_ulDacNodeId, &lKsStereoSpeakerGeometry, sizeof lKsStereoSpeakerGeometry); DPF(DPFLVL_MOREINFO, "Setting the SPEAKER_GEOMETRY property on the DAC returned %s", HRESULTtoSTRING(hrTemp)); } // NOTE 2: we don't care whether these calls succeed or fail (either because the driver // doesn't support them, or because it has active streams and can't reconfigure itself); // what matters is whether the card ends up in the requested speaker, and we check this // below, indirectly, by looking at kmixer's output format. } // Enable of disable the Prologic surround encoder node in KMixer if necessary. // This only works if no pins have yet been instantiated. if (IS_VALID_NODE(m_ulSurroundNodeId) && // We have a Surround node... (m_hPin == NULL) && // No pins have been created yet... (m_dwSpeakerConfig == -1 || // We haven't got a speaker config yet... ((dwReqSpeakerConfig == DSSPEAKER_SURROUND) != // or the surround state is changing (m_dwSpeakerConfig == DSSPEAKER_SURROUND)))) { BOOL fEnable = (dwReqSpeakerConfig == DSSPEAKER_SURROUND); hrTemp = KsSetNodeProperty(m_hDevice, KSPROPSETID_Audio, KSPROPERTY_AUDIO_SURROUND_ENCODE, m_ulSurroundNodeId, &fEnable, sizeof fEnable); DPF(FAILED(hrTemp) ? DPFLVL_WARNING : DPFLVL_MOREINFO, "%sabling KMixer's Surround encoder returned %s (failure expected on Win2K)", fEnable ? TEXT("En") : TEXT("Dis"), HRESULTtoSTRING(hrTemp)); } // Ask the pan node (immediately after supermix) for its channel positions table. // This can only work if some pin has been instantiated - any will do; we use m_hPin. if (IS_VALID_NODE(m_ulPanNodeId) && (m_hPin != NULL)) { KSAUDIO_CHANNEL_CONFIG ChannelConfig; hr = KsGetNodeProperty(m_hPin, KSPROPSETID_Audio, KSPROPERTY_AUDIO_CHANNEL_CONFIG, m_ulPanNodeId, &ChannelConfig, sizeof ChannelConfig); if (FAILED(hr)) { DPF(DPFLVL_WARNING, "Failed to obtain the pan node's channel config (%s)", HRESULTtoSTRING(hr)); } else // Save the channel positions, to support SetChannelVolume() { if (m_pnSpeakerIndexTable != m_anDefaultSpeakerIndexTable) MEMFREE(m_pnSpeakerIndexTable); m_pnSpeakerIndexTable = MEMALLOC_A(int, MAX_SPEAKER_POSITIONS); hr = HRFROMP(m_pnSpeakerIndexTable); if (FAILED(hr)) m_pnSpeakerIndexTable = m_anDefaultSpeakerIndexTable; else { m_lSpeakerPositions = ChannelConfig.ActiveSpeakerPositions; m_ulChannelCount = 0; int nIndex = 0; for (LONG lSpkr = 1; lSpkr != SPEAKER_ALL; lSpkr <<= 1) m_pnSpeakerIndexTable[nIndex++] = (m_lSpeakerPositions & lSpkr) ? m_ulChannelCount++ : -1; ASSERT(m_ulChannelCount == ULONG(CountBits(m_lSpeakerPositions))); // Figure out if our channel positions now match the requested speaker config if (m_lSpeakerPositions == lKsSpeakerConfig) { // Success; update our copy of the speaker configuration m_dwSpeakerConfig = dwReqSpeakerConfig; } else { DPF(DPFLVL_WARNING, "Pan node's channel config (0x%lX) doesn't match requested config (0x%lX)", m_lSpeakerPositions, lKsSpeakerConfig); } // FIXME: for now we require a perfect match between our // desired speaker config and the real channel config. // Later on we could allow cases in which the former is // a subset of the latter, but we'd have to maintain a // mapping from our speaker positions to KS's channels. } } } // Finally, make sure we return a useful return code if (SUCCEEDED(hr) && (m_dwSpeakerConfig != dwReqSpeakerConfig)) { hr = DSERR_CONTROLUNAVAIL; } } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * CreateRenderPin * * Description: * Creates a pin. * * Arguments: * ULONG [in]: pin id. * DWORD [in]: buffer flags. * LPCWAVEFORMATEX [in]: pin format. * REFGUID [in]: pin 3D algorithm. * LPHANDLE [out]: receives pin handle. * PULONG [out]: receives pin id. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::CreateRenderPin" HRESULT CKsRenderDevice::CreateRenderPin ( ULONG ulPinId, DWORD dwFlags, LPCWAVEFORMATEX pwfxFormat, REFGUID guid3dAlgorithm, LPHANDLE phPin, PULONG pulPinId ) { #ifdef NO_DSOUND_FORMAT_SPECIFIER PKSAUDIOPINDESC pPinDesc = NULL; #else LPVOID pPinDesc = NULL; #endif HANDLE hPin = NULL; HRESULT hr; PKSPIN_CONNECT pConnect = NULL; DPF_ENTER(); // If no pin id was specified, we'll try each pin id until one succeeds if(-1 == ulPinId) { hr = DSERR_NODRIVER; for(ULONG i = 0; i < m_ulValidPinCount && FAILED(hr); i++) hr = CreateRenderPin(m_pulValidPins[i], dwFlags, pwfxFormat, guid3dAlgorithm, phPin, pulPinId); } else { // Validate that the pin id is capable of creating this pin hr = ValidatePinCaps(ulPinId, dwFlags, guid3dAlgorithm); // If specified, make sysaudio include AEC in the render graph if(SUCCEEDED(hr) && m_fIncludeAec) { // Validate that the pin id is capable of creating this pin hr = m_paTopologies[ulPinId]->FindRenderPinWithAec ( phPin, NULL, NULL, m_guidAecInstance, m_dwAecFlags, &m_paTopologyInformation[ulPinId].AecNode ); if(SUCCEEDED(hr) && IS_VALID_NODE(m_paTopologyInformation[ulPinId].AecNode.NodeId)) { hr = KsSysAudioSelectGraph ( m_hDevice, ulPinId, m_paTopologyInformation[ulPinId].AecNode.NodeId ); if(FAILED(hr)) { DPF(DPFLVL_ERROR, "Unable to set SysAudio device instance"); // If KsSysAudioSelectGraph() fails, we assume that it is // because the graph has already been built without AEC, // and return a useful return code: hr = DSERR_FXUNAVAILABLE; } } } // Build the pin description if(SUCCEEDED(hr)) { #ifdef NO_DSOUND_FORMAT_SPECIFIER hr = KsBuildRenderPinDescription(ulPinId, pwfxFormat, &pPinDesc); pConnect = &pPinDesc->Connect; #else // NO_DSOUND_FORMAT_SPECIFIER #ifndef WINNT if (g_ulWdmVersion == WDM_1_0) { hr = KsBuildRenderPinDescription_10(ulPinId, dwFlags, pwfxFormat, guid3dAlgorithm, (PKSDSRENDERPINDESC_10 *)&pPinDesc); pConnect = &((PKSDSRENDERPINDESC_10)pPinDesc)->Connect; } else #endif // !WINNT { hr = KsBuildRenderPinDescription(ulPinId, dwFlags, pwfxFormat, guid3dAlgorithm, (PKSDSRENDERPINDESC *)&pPinDesc); pConnect = &((PKSDSRENDERPINDESC)pPinDesc)->Connect; } #endif // NO_DSOUND_FORMAT_SPECIFIER } // Create the pin if(SUCCEEDED(hr)) { hr = CreatePin(pConnect, GENERIC_WRITE, KSSTATE_STOP, &hPin); } if(SUCCEEDED(hr)) { if(!MakeHandleGlobal(&hPin)) { hr = DSERR_OUTOFMEMORY; } } #ifdef NO_DSOUND_FORMAT_SPECIFIER // Enable required nodes if(SUCCEEDED(hr) && (dwFlags & DSBCAPS_CTRL3D)) { hr = KsEnableTopologyNode(hPin, m_paTopologyInformation[ulPinId].ThreedNode.NodeId, TRUE); } if(SUCCEEDED(hr) && (dwFlags & DSBCAPS_CTRLFREQUENCY)) { hr = KsEnableTopologyNode(hPin, m_paTopologyInformation[ulPinId].SrcNode.NodeId, TRUE); } if(SUCCEEDED(hr) && (dwFlags & (DSBCAPS_CTRLPAN #ifdef FUTURE_MULTIPAN_SUPPORT | DSBCAPS_CTRLCHANNELVOLUME #endif ))) { hr = KsEnableTopologyNode(hPin, m_paTopologyInformation[ulPinId].PanNode.Node.NodeId, TRUE); } if(SUCCEEDED(hr) && (dwFlags & DSBCAPS_CTRLVOLUME)) { hr = KsEnableTopologyNode(hPin, m_paTopologyInformation[ulPinId].VolumeNode.Node.NodeId, TRUE); } // Tell the 3D node which algorithm to use #pragma TODO("Tell the 3D node which algorithm to use") #endif // NO_DSOUND_FORMAT_SPECIFIER // Transition the pin to the pause state if(SUCCEEDED(hr)) { hr = KsTransitionState(hPin, KSSTATE_STOP, KSSTATE_PAUSE); } // Success if(SUCCEEDED(hr)) { *phPin = hPin; if(pulPinId) { *pulPinId = pConnect->PinId; } } else { CLOSE_HANDLE(hPin); } MEMFREE(pPinDesc); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * GetTopologyInformation * * Description: * Gets topology information. * * Arguments: * CKsDeviceTopology * [in]: topology object. * PKSRDTOPOLOGY [out]: receives topology information. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::GetTopologyInformation" HRESULT CKsRenderDevice::GetTopologyInformation ( CKsTopology * pTopology, PKSRDTOPOLOGY pInfo ) { PKSTOPOLOGY_CONNECTION pSummingConnection; PKSTOPOLOGY_CONNECTION pSuperMixerConnection; PKSTOPOLOGY_CONNECTION pSrcConnection; PKSTOPOLOGY_CONNECTION pVolumeConnection; PKSTOPOLOGY_CONNECTION pPanConnection; PKSTOPOLOGY_CONNECTION pThreedConnection; PKSTOPOLOGY_CONNECTION pMuteConnection; PKSTOPOLOGY_CONNECTION pSurroundConnection; PKSTOPOLOGY_CONNECTION pDacConnection; HRESULT hr; DPF_ENTER(); // Find topology nodes pSummingConnection = pTopology->FindControlConnection(NULL, NULL, KSNODETYPE_SUM); pSuperMixerConnection = pTopology->FindControlConnection(NULL, pSummingConnection, KSNODETYPE_SUPERMIX); pSrcConnection = pTopology->FindControlConnection(NULL, pSummingConnection, KSNODETYPE_SRC); pVolumeConnection = pTopology->FindControlConnection(NULL, pSummingConnection, KSNODETYPE_VOLUME); pPanConnection = pTopology->FindControlConnection(pSuperMixerConnection, pSummingConnection, KSNODETYPE_VOLUME); pThreedConnection = pTopology->FindControlConnection(NULL, pSummingConnection, KSNODETYPE_3D_EFFECTS); pMuteConnection = pTopology->FindControlConnection(NULL, pSummingConnection, KSNODETYPE_MUTE); pSurroundConnection = pTopology->FindControlConnection(NULL, NULL, KSNODETYPE_SURROUND_ENCODER); pDacConnection = pTopology->FindControlConnection(NULL, NULL, KSNODETYPE_DAC); // Fill in data about each node hr = KsGetNodeInformation(m_hDevice, pTopology->GetNodeIdFromConnection(pSummingConnection), &pInfo->SummingNode); if(SUCCEEDED(hr)) { hr = KsGetNodeInformation(m_hDevice, pTopology->GetNodeIdFromConnection(pSuperMixerConnection), &pInfo->SuperMixNode); } if(SUCCEEDED(hr)) { hr = KsGetNodeInformation(m_hDevice, pTopology->GetNodeIdFromConnection(pSrcConnection), &pInfo->SrcNode); } if(SUCCEEDED(hr)) { hr = KsGetVolumeNodeInformation(m_hDevice, pTopology->GetNodeIdFromConnection(pVolumeConnection), &pInfo->VolumeNode); } if(SUCCEEDED(hr)) { hr = KsGetVolumeNodeInformation(m_hDevice, pTopology->GetNodeIdFromConnection(pPanConnection), &pInfo->PanNode); // This code is a little odd. We have as many CKsTopology objects as valid pins, // all identical except for the m_ulPinId member; and m_ulPinCount KSRDTOPOLOGY // structs, most of which are never filled in. Pending a full rewrite, we store // the node IDs we need to use in CKsRenderDevice in this hackish manner: if (IS_VALID_NODE(pInfo->PanNode.Node.NodeId) && pInfo->PanNode.Node.CpuResources == KSAUDIO_CPU_RESOURCES_HOST_CPU) { if (m_ulPanNodeId == NODE_UNINITIALIZED) { m_ulPanNodeId = pInfo->PanNode.Node.NodeId; DPF(DPFLVL_MOREINFO, "Found kmixer's pan node id: %d", m_ulPanNodeId); } else { // Complain if we find two different SW pan nodes in the topology ASSERT(m_ulPanNodeId == pInfo->PanNode.Node.NodeId); } } } if(SUCCEEDED(hr)) { hr = KsGetNodeInformation(m_hDevice, pTopology->GetNodeIdFromConnection(pThreedConnection), &pInfo->ThreedNode); } if(SUCCEEDED(hr)) { hr = KsGetNodeInformation(m_hDevice, pTopology->GetNodeIdFromConnection(pMuteConnection), &pInfo->MuteNode); } if(SUCCEEDED(hr)) { hr = KsGetNodeInformation(m_hDevice, pTopology->GetNodeIdFromConnection(pSurroundConnection), &pInfo->SurroundNode); // Bogus code follows - see comment above if (IS_VALID_NODE(pInfo->SurroundNode.NodeId) && pInfo->SurroundNode.CpuResources != KSAUDIO_CPU_RESOURCES_NOT_HOST_CPU) { // We don't use "CpuResources == KSAUDIO_CPU_RESOURCES_HOST_CPU" because kmixer // appears not to support KSPROPERTY_AUDIO_CPU_RESOURCES on its surround node. if (m_ulSurroundNodeId == NODE_UNINITIALIZED) { m_ulSurroundNodeId = pInfo->SurroundNode.NodeId; DPF(DPFLVL_MOREINFO, "Found kmixer's Surround node id: %d", m_ulSurroundNodeId); } else { // Complain if we find 2 different SW surround nodes in the topology ASSERT(m_ulSurroundNodeId == pInfo->SurroundNode.NodeId); } } } if(SUCCEEDED(hr)) { hr = KsGetNodeInformation(m_hDevice, pTopology->GetNodeIdFromConnection(pDacConnection), &pInfo->DacNode); // Bogus code follows - see comment above if (IS_VALID_NODE(pInfo->DacNode.NodeId) && pInfo->DacNode.CpuResources != KSAUDIO_CPU_RESOURCES_HOST_CPU) { if (m_ulDacNodeId == NODE_UNINITIALIZED) { m_ulDacNodeId = pInfo->DacNode.NodeId; DPF(DPFLVL_MOREINFO, "Found driver's DAC node id: %d", m_ulDacNodeId); } else { // Complain if we find two different DACs on the card ASSERT(m_ulDacNodeId == pInfo->DacNode.NodeId); } } } // Set the AecNode to UNITIALIZED since we cannot determine the // NodeId and the CpuResources until the FullDuplexObject is created. if(SUCCEEDED(hr)) { pInfo->AecNode.NodeId = NODE_UNINITIALIZED; pInfo->AecNode.CpuResources = KSAUDIO_CPU_RESOURCES_UNINITIALIZED; } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * ValidatePinCaps * * Description: * Validates that certain capabilities of the pin are implemented. * * Arguments: * ULONG [in]: pin id. * DWORD [in]: buffer flags. * REFGUID [in]: 3D algorithm. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::ValidatePinCaps" HRESULT CKsRenderDevice::ValidatePinCaps ( ULONG ulPinId, DWORD dwFlags, REFGUID guid3dAlgorithm ) { ULONG ulInvalidCpuResources = KSAUDIO_CPU_RESOURCES_UNINITIALIZED; HRESULT hr = DS_OK; DPF_ENTER(); ASSERT(IS_VALID_READ_PTR(m_paTopologyInformation, (ulPinId+1) * sizeof *m_paTopologyInformation)); if (!m_paTopologyInformation) { // This should never happen, but it has happened, in stress. // So we treat the symptom and at least don't GPF (OSR 139942). hr = DSERR_GENERIC; } // Determine which CPU resource identifier is invalid. We look for an // invalid identifier instead of a valid identifier because the node // may not actually exist (or may not support KSPROPERTY_AUDIO_CPU_RESOURCES). // If we don't have any resource information about the node, we assume // the best. if (SUCCEEDED(hr)) { if(dwFlags & DSBCAPS_LOCHARDWARE) { ulInvalidCpuResources = KSAUDIO_CPU_RESOURCES_HOST_CPU; } else if(dwFlags & DSBCAPS_LOCSOFTWARE) { ulInvalidCpuResources = KSAUDIO_CPU_RESOURCES_NOT_HOST_CPU; } // Check required mixer resources if(KSAUDIO_CPU_RESOURCES_UNINITIALIZED != ulInvalidCpuResources) { if(ulInvalidCpuResources == m_paTopologyInformation[ulPinId].SummingNode.CpuResources) { DPF(DPFLVL_INFO, "Pin %d: Invalid CPU resources on summing node (%s)", ulPinId, m_paTopologyInformation[ulPinId].SummingNode.CpuResources == KSAUDIO_CPU_RESOURCES_NOT_HOST_CPU ? TEXT("NOT_HOST_CPU") : m_paTopologyInformation[ulPinId].SummingNode.CpuResources == KSAUDIO_CPU_RESOURCES_HOST_CPU ? TEXT("HOST_CPU") : m_paTopologyInformation[ulPinId].SummingNode.CpuResources == KSAUDIO_CPU_RESOURCES_UNINITIALIZED ? TEXT("uninitialized") : TEXT("impossible value!")); hr = DSERR_INVALIDCALL; } } } // Check required SRC resources if(SUCCEEDED(hr) && KSAUDIO_CPU_RESOURCES_UNINITIALIZED != ulInvalidCpuResources) { if(ulInvalidCpuResources == m_paTopologyInformation[ulPinId].SrcNode.CpuResources) { DPF(DPFLVL_INFO, "Pin %d: Invalid CPU resources on SRC node (%s)", ulPinId, m_paTopologyInformation[ulPinId].SrcNode.CpuResources == KSAUDIO_CPU_RESOURCES_NOT_HOST_CPU ? TEXT("NOT_HOST_CPU") : m_paTopologyInformation[ulPinId].SrcNode.CpuResources == KSAUDIO_CPU_RESOURCES_HOST_CPU ? TEXT("HOST_CPU") : m_paTopologyInformation[ulPinId].SrcNode.CpuResources == KSAUDIO_CPU_RESOURCES_UNINITIALIZED ? TEXT("uninitialized") : TEXT("impossible value!")); hr = DSERR_INVALIDPARAM; } } // Check optional 3D resources if(SUCCEEDED(hr) && (dwFlags & DSBCAPS_CTRL3D)) { if(!IS_VALID_NODE(m_paTopologyInformation[ulPinId].ThreedNode.NodeId)) { // DPF(DPFLVL_MOREINFO, "Pin %d: Invalid 3D node", ulPinId); // Too noisy hr = DSERR_CONTROLUNAVAIL; } if(SUCCEEDED(hr) && KSAUDIO_CPU_RESOURCES_UNINITIALIZED != ulInvalidCpuResources) { if(ulInvalidCpuResources == m_paTopologyInformation[ulPinId].ThreedNode.CpuResources) { DPF(DPFLVL_INFO, "Pin %d: Invalid CPU resources on 3D node (%s)", ulPinId, m_paTopologyInformation[ulPinId].ThreedNode.CpuResources == KSAUDIO_CPU_RESOURCES_NOT_HOST_CPU ? TEXT("NOT_HOST_CPU") : m_paTopologyInformation[ulPinId].ThreedNode.CpuResources == KSAUDIO_CPU_RESOURCES_HOST_CPU ? TEXT("HOST_CPU") : m_paTopologyInformation[ulPinId].ThreedNode.CpuResources == KSAUDIO_CPU_RESOURCES_UNINITIALIZED ? TEXT("uninitialized") : TEXT("impossible value!")); hr = DSERR_INVALIDCALL; } } } // Check optional SRC resources if(SUCCEEDED(hr) && (dwFlags & DSBCAPS_CTRLFREQUENCY)) { if(!IS_VALID_NODE(m_paTopologyInformation[ulPinId].SrcNode.NodeId)) { DPF(DPFLVL_INFO, "Pin %d: Invalid SRC node", ulPinId); hr = DSERR_CONTROLUNAVAIL; } } // Check optional volume resources if(SUCCEEDED(hr) && (dwFlags & DSBCAPS_CTRLVOLUME)) { if(!IS_VALID_NODE(m_paTopologyInformation[ulPinId].VolumeNode.Node.NodeId)) { DPF(DPFLVL_INFO, "Pin %d: Invalid volume node", ulPinId); hr = DSERR_CONTROLUNAVAIL; } } // Check optional pan resources if(SUCCEEDED(hr) && (dwFlags & (DSBCAPS_CTRLPAN #ifdef FUTURE_MULTIPAN_SUPPORT | DSBCAPS_CTRLCHANNELVOLUME #endif ))) { if(!IS_VALID_NODE(m_paTopologyInformation[ulPinId].PanNode.Node.NodeId)) { DPF(DPFLVL_INFO, "Pin %d: Invalid pan node", ulPinId); hr = DSERR_CONTROLUNAVAIL; } } #ifdef FUTURE_MULTIPAN_SUPPORT // Check optional channel volume resources if(SUCCEEDED(hr) && (dwFlags & DSBCAPS_CTRLCHANNELVOLUME)) { // To support CTRLCHANNELVOLUME we need CTRLPAN support, plus support for the // KSPROPERTY_AUDIO_MIX_LEVEL_CAPS/TABLE on the Supermix node ULONG ulSuperMixNodeId = m_paTopologyInformation[ulPinId].SuperMixNode.NodeId; if(!IS_VALID_NODE(ulSuperMixNodeId)) { DPF(DPFLVL_INFO, "Pin %d: Invalid supermix node", ulPinId); hr = DSERR_CONTROLUNAVAIL; } else { // FIXME: Check support for the properties above? } } #endif // FUTURE_MULTIPAN_SUPPORT #pragma TODO("Validate the 3D algorithm") DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * PreloadSoftwareGraph * * Description: * Pre-loads the software render graph. * * Arguments: * (void) * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderDevice::PreloadSoftwareGraph" HRESULT CKsRenderDevice::PreloadSoftwareGraph ( void ) { HRESULT hr = DSERR_NODRIVER; KSDATARANGE_AUDIO DataRange; WAVEFORMATEX wfx; DPF_ENTER(); ASSERT(IS_VALID_READ_PTR(m_pulValidPins, m_ulValidPinCount * sizeof *m_pulValidPins)); if (m_hPin == NULL) { // Create the pin we use to preload kmixer. Note: if kmixer appears in more // than one pin ID's graph, only the first will be loaded. for(ULONG i = 0; i < m_ulValidPinCount && FAILED(hr); i++) { hr = ValidatePinCaps(m_pulValidPins[i], DSBCAPS_LOCSOFTWARE, GUID_NULL); if(SUCCEEDED(hr)) { hr = KsGetPinPcmAudioDataRange(m_hDevice, m_pulValidPins[i], &DataRange); } if(SUCCEEDED(hr)) { FillPcmWfx(&wfx, 1, DataRange.MinimumSampleFrequency, (WORD)DataRange.MinimumBitsPerSample); hr = CreateRenderPin(m_pulValidPins[i], DSBCAPS_LOCSOFTWARE, &wfx, GUID_NULL, &m_hPin, NULL); } } } else { // Got one last time hr = S_OK; } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * CKsPrimaryRenderWaveBuffer * * Description: * Object constructor. * * Arguments: * CKsRenderDevice * [in]: parent device. * LPVOID [in]: buffer instance identifier. * * Returns: * (void) * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsPrimaryRenderWaveBuffer::CKsPrimaryRenderWaveBuffer" CKsPrimaryRenderWaveBuffer::CKsPrimaryRenderWaveBuffer ( CKsRenderDevice * pKsDevice, LPVOID pvInstance ) : CPrimaryRenderWaveBuffer(pKsDevice, pvInstance) { DPF_ENTER(); DPF_CONSTRUCT(CKsPrimaryRenderWaveBuffer); // Initialize defaults m_pKsDevice = pKsDevice; m_p3dListener = NULL; m_pSecondaryBuffer = NULL; m_dwState = VAD_BUFFERSTATE_STOPPED; DPF_LEAVE_VOID(); } /*************************************************************************** * * ~CKsPrimaryRenderWaveBuffer * * Description: * Object destructor. * * Arguments: * (void) * * Returns: * (void) * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsPrimaryRenderWaveBuffer::~CKsPrimaryRenderWaveBuffer" CKsPrimaryRenderWaveBuffer::~CKsPrimaryRenderWaveBuffer ( void ) { DPF_ENTER(); DPF_DESTRUCT(CKsPrimaryRenderWaveBuffer); // Free owned objects ABSOLUTE_RELEASE(m_p3dListener); ABSOLUTE_RELEASE(m_pSecondaryBuffer); DPF_LEAVE_VOID(); } /*************************************************************************** * * Initialize * * Description: * Initializes the object. * * Arguments: * DWORD [in]: buffer flags. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsPrimaryRenderWaveBuffer::Initialize" HRESULT CKsPrimaryRenderWaveBuffer::Initialize ( DWORD dwFlags ) { HRESULT hr; VADRBUFFERDESC vrbd; DPF_ENTER(); // Preload the software graph hr = m_pKsDevice->PreloadSoftwareGraph(); if(SUCCEEDED(hr)) { vrbd.dwFlags = DSBCAPS_PRIMARYBUFFER | DSBCAPS_LOCSOFTWARE; vrbd.dwBufferBytes = DEF_PRIMARY_SIZE; vrbd.pwfxFormat = m_pKsDevice->m_pwfxFormat; vrbd.guid3dAlgorithm = GUID_NULL; hr = CPrimaryRenderWaveBuffer::Initialize(&vrbd, m_pSecondaryBuffer, NULL); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * RequestWriteAccess * * Description: * Requests write access to the primary buffer. * * Arguments: * BOOL [in]: TRUE to request primary access, FALSE to relenquish it. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsPrimaryRenderWaveBuffer::RequestWriteAccess" HRESULT CKsPrimaryRenderWaveBuffer::RequestWriteAccess ( BOOL fRequest ) { HRESULT hr = DS_OK; DPF_ENTER(); // If we're becoming WRITEPRIMARY, we need to create a pin if(fRequest) { if(!m_pSecondaryBuffer) { hr = m_pKsDevice->CreateKsSecondaryBuffer(&m_vrbd, m_pvInstance, (CSecondaryRenderWaveBuffer **)&m_pSecondaryBuffer, m_pSysMemBuffer); if(SUCCEEDED(hr)) { hr = SetState(m_dwState); } if(FAILED(hr)) { RELEASE(m_pSecondaryBuffer); } } } else { RELEASE(m_pSecondaryBuffer); } if(SUCCEEDED(hr)) { hr = FixUpBaseClass(); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * CommitToDevice * * Description: * Commits changed buffer wave data to the device. * * Arguments: * DWORD [in]: byte index into the system memory buffer of the changed * data. * DWORD [in]: size, in bytes, of the changed data. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsPrimaryRenderWaveBuffer::CommitToDevice" HRESULT CKsPrimaryRenderWaveBuffer::CommitToDevice ( DWORD ibCommit, DWORD cbCommit ) { HRESULT hr; DPF_ENTER(); ASSERT(m_pSecondaryBuffer); hr = m_pSecondaryBuffer->CommitToDevice(ibCommit, cbCommit); DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * GetState * * Description: * Gets buffer state. * * Arguments: * LPDWORD [out]: receives buffer state. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsPrimaryRenderWaveBuffer::GetState" HRESULT CKsPrimaryRenderWaveBuffer::GetState(LPDWORD pdwState) { DPF_ENTER(); *pdwState = m_dwState; DPF_LEAVE_HRESULT(DS_OK); return DS_OK; } /*************************************************************************** * * SetState * * Description: * Sets buffer state. * * Arguments: * DWORD [in]: buffer state. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsPrimaryRenderWaveBuffer::SetState" HRESULT CKsPrimaryRenderWaveBuffer::SetState(DWORD dwState) { static const DWORD dwValidMask = VAD_BUFFERSTATE_STARTED | VAD_BUFFERSTATE_LOOPING | VAD_BUFFERSTATE_WHENIDLE; static const DWORD dwSecondaryMask = VAD_BUFFERSTATE_STARTED | VAD_BUFFERSTATE_LOOPING; static const DWORD dwPwiMask = VAD_BUFFERSTATE_STARTED | VAD_BUFFERSTATE_WHENIDLE; HRESULT hr = DS_OK; DPF_ENTER(); ASSERT(IS_VALID_FLAGS(dwState, dwValidMask)); // Ignore any play when idle calls. This state doesn't apply to // KS buffers. if((dwState & dwPwiMask) != dwPwiMask && m_pSecondaryBuffer) { hr = m_pSecondaryBuffer->SetState(dwState & dwSecondaryMask); if(SUCCEEDED(hr) && !(dwState & VAD_BUFFERSTATE_STARTED)) { hr = m_pSecondaryBuffer->SetCursorPosition(0); } } if (SUCCEEDED(hr)) { m_dwState = dwState; } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * GetCursorPosition * * Description: * Gets the current play/write positions for the given buffer. * * Arguments: * LPDWORD [out]: receives play cursor position. * LPDWORD [out]: receives write cursor position. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsPrimaryRenderWaveBuffer::GetCursorPosition" HRESULT CKsPrimaryRenderWaveBuffer::GetCursorPosition ( LPDWORD pdwPlay, LPDWORD pdwWrite ) { HRESULT hr; DPF_ENTER(); ASSERT(m_pSecondaryBuffer); hr = m_pSecondaryBuffer->GetCursorPosition(pdwPlay, pdwWrite); DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * OnSetFormat * * Description: * Informs the primary buffer of a format change. * * Arguments: * (void) * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsPrimaryRenderWaveBuffer::OnSetFormat" HRESULT CKsPrimaryRenderWaveBuffer::OnSetFormat ( void ) { HRESULT hr = DS_OK; DPF_ENTER(); LPWAVEFORMATEX pwfex = CopyWfxAlloc(m_pKsDevice->m_pwfxFormat); hr = HRFROMP(pwfex); // Change the format of the secondary buffer if(SUCCEEDED(hr) && m_pSecondaryBuffer) { hr = m_pSecondaryBuffer->SetFormat(m_pKsDevice->m_pwfxFormat); } // Save format if (SUCCEEDED(hr)) { MEMFREE(m_vrbd.pwfxFormat); m_vrbd.pwfxFormat = pwfex; } else { MEMFREE(pwfex); } // Fix up the base class if(SUCCEEDED(hr)) { hr = FixUpBaseClass(); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * Create3dListener * * Description: * Creates the 3D listener. * * Arguments: * C3dListener ** [out]: receives pointer to the 3D listener object. * The caller is responsible for freeing this * object. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsPrimaryRenderWaveBuffer::Create3dListener" HRESULT CKsPrimaryRenderWaveBuffer::Create3dListener ( C3dListener ** pp3dListener ) { HRESULT hr = DS_OK; DPF_ENTER(); if(!m_p3dListener) { m_p3dListener = NEW(CKs3dListener); hr = HRFROMP(m_p3dListener); } if(SUCCEEDED(hr)) { *pp3dListener = ADDREF(m_p3dListener); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * FixUpBaseClass * * Description: * Fixes up the CRenderWaveBuffer base class. * * Arguments: * (void) * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsPrimaryRenderWaveBuffer::FixUpBaseClass" HRESULT CKsPrimaryRenderWaveBuffer::FixUpBaseClass ( void ) { HRESULT hr = DS_OK; VADRBUFFERCAPS vrbc; DPF_ENTER(); if(m_pSecondaryBuffer) { hr = m_pSecondaryBuffer->GetCaps(&vrbc); if(SUCCEEDED(hr)) { ASSERT(LXOR(vrbc.dwFlags & DSBCAPS_LOCHARDWARE, vrbc.dwFlags & DSBCAPS_LOCSOFTWARE)); m_vrbd.dwFlags = (m_vrbd.dwFlags & ~DSBCAPS_LOCMASK) | (vrbc.dwFlags & DSBCAPS_LOCMASK); } } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * CKsSecondaryRenderWaveBuffer * * Description: * Object constructor. * * Arguments: * CKsRenderDevice * [in]: parent device. * LPVOID [in]: buffer instance identifier. * * Returns: * (void) * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::CKsSecondaryRenderWaveBuffer" CKsSecondaryRenderWaveBuffer::CKsSecondaryRenderWaveBuffer ( CKsRenderDevice * pKsDevice, LPVOID pvInstance ) : CSecondaryRenderWaveBuffer(pKsDevice, pvInstance) { DPF_ENTER(); DPF_CONSTRUCT(CKsSecondaryRenderWaveBuffer); // Initialize defaults m_pKsDevice = pKsDevice; m_pPin = NULL; m_dwState = VAD_BUFFERSTATE_STOPPED; m_pCallbackEvent = NULL; m_pLoopingEvent = NULL; m_paNotes = NULL; m_pStopNote = NULL; m_cNotes = 0; m_dwPositionCache = 0; m_fNoVirtRequested = FALSE; m_fSoft3dAlgUnavail = FALSE; DPF_LEAVE_VOID(); } /*************************************************************************** * * ~CKsSecondaryRenderWaveBuffer * * Description: * Object destructor. * * Arguments: * (void) * * Returns: * (void) * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::~CKsSecondaryRenderWaveBuffer" CKsSecondaryRenderWaveBuffer::~CKsSecondaryRenderWaveBuffer ( void ) { DPF_ENTER(); DPF_DESTRUCT(CKsSecondaryRenderWaveBuffer); // Stop the buffer SetStopState(FALSE, FALSE); // Forcibly release stuff in case SetStopState() failed if (m_pCallbackEvent) { m_pKsDevice->m_pEventPool->FreeEvent(m_pCallbackEvent); m_pCallbackEvent = NULL; } RELEASE(m_pLoopingEvent); // Free notification positions FreeNotificationPositions(); // Free the pin FreePin(TRUE); DPF_LEAVE_VOID(); } /*************************************************************************** * * Initialize * * Description: * Initializes the wave buffer object. If this function fails, the * object should be immediately deleted. * * Arguments: * LPCVADRBUFFERDESC [in]: buffer description. * CKsSecondaryRenderWaveBuffer* [in]: pointer to the buffer to duplicate * from, or NULL to initialize as a * new buffer. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::Initialize" HRESULT CKsSecondaryRenderWaveBuffer::Initialize ( LPCVADRBUFFERDESC pDesc, CKsSecondaryRenderWaveBuffer * pSource, CSysMemBuffer * pSysMemBuffer ) { DWORD dwLocationFlags; HRESULT hr; DPF_ENTER(); ASSERT(LXOR(pDesc, pSource)); // Initialize the base class hr = CSecondaryRenderWaveBuffer::Initialize(pDesc, pSource, pSysMemBuffer); // Mask off the location flags since they're not used here (only in AcquireResources) dwLocationFlags = m_vrbd.dwFlags & DSBCAPS_LOCMASK; m_vrbd.dwFlags &= ~DSBCAPS_LOCMASK; // If this is a 3D buffer, set up the fallback software 3D algorithm mechanism if(SUCCEEDED(hr) && (m_vrbd.dwFlags & DSBCAPS_CTRL3D)) { // If NoVirt specifically requested, enable the fallback to 2D NoVirt hardware if(m_vrbd.guid3dAlgorithm == DS3DALG_NO_VIRTUALIZATION) { m_fNoVirtRequested = TRUE; } // If 3D algorithm is DS3DALG_DEFAULT (i.e. NULL), replace with default if(IS_NULL_GUID(&m_vrbd.guid3dAlgorithm)) { m_vrbd.guid3dAlgorithm = *m_pKsDevice->GetDefault3dAlgorithm(); DPF(DPFLVL_MOREINFO, "Using default 3D algorithm " DPF_GUID_STRING, DPF_GUID_VAL(m_vrbd.guid3dAlgorithm)); } // The HRTF algorithms aren't supported on WDM 1.0, so in this case we // fall back to a NoVirt 2D software pin. if (g_ulWdmVersion == WDM_1_0 && (m_vrbd.guid3dAlgorithm == DS3DALG_HRTF_LIGHT || m_vrbd.guid3dAlgorithm == DS3DALG_HRTF_FULL)) { m_vrbd.guid3dAlgorithm = DS3DALG_NO_VIRTUALIZATION; m_fSoft3dAlgUnavail = TRUE; RPF(DPFLVL_MOREINFO, "WDM 1.0: Replacing HRTF 3D algorithm with NO_VIRTUALIZATION"); } // 3D buffers need a frequency control for Doppler, unless they use effects, and the are not sink if (!(m_vrbd.dwFlags & DSBCAPS_CTRLFX) && !(m_vrbd.dwFlags & DSBCAPS_SINKIN)) { m_vrbd.dwFlags |= DSBCAPS_CTRLFREQUENCY; } } // Set up the default buffer properties if(SUCCEEDED(hr)) { if(pSource) { m_lVolume = pSource->m_lVolume; m_lPan = pSource->m_lPan; m_fMute = pSource->m_fMute; m_nSrcQuality = pSource->m_nSrcQuality; } else { m_lVolume = DSBVOLUME_MAX; m_lPan = DSBPAN_CENTER; m_fMute = FALSE; m_nSrcQuality = m_pKsDevice->m_nSrcQuality; } } // Acquire resources if(SUCCEEDED(hr) && !(m_vrbd.dwFlags & DSBCAPS_LOCDEFER)) { hr = AcquireResources(dwLocationFlags); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * AcquireResources * * Description: * Acquires hardware resources for the buffer. * * Arguments: * DWORD [in]: location flags. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::AcquireResources" HRESULT CKsSecondaryRenderWaveBuffer::AcquireResources ( DWORD dwLocationFlags ) { CKsRenderPin * pPin = NULL; HRESULT hr = DS_OK; DPF_ENTER(); ASSERT(!HasAcquiredResources()); dwLocationFlags &= DSBCAPS_LOCMASK; // Modify the buffer flags to conform to the acceleration flags if(m_pKsDevice->m_dwAccelerationFlags & DIRECTSOUNDMIXER_ACCELERATIONF_NOHWBUFFERS) { if(dwLocationFlags & DSBCAPS_LOCHARDWARE) { RPF(DPFLVL_ERROR, "Specified LOCHARDWARE with hardware buffer acceleration features disabled"); hr = DSERR_INVALIDCALL; } else { dwLocationFlags = DSBCAPS_LOCSOFTWARE; } } if(SUCCEEDED(hr) && (m_vrbd.dwFlags & DSBCAPS_CTRL3D)) { if(m_pKsDevice->m_dwAccelerationFlags & DIRECTSOUNDMIXER_ACCELERATIONF_NOHW3D) { if(dwLocationFlags & DSBCAPS_LOCHARDWARE) { RPF(DPFLVL_ERROR, "Specified LOCHARDWARE | CTRL3D with hardware 3D acceleration features disabled"); hr = DSERR_INVALIDCALL; } else { dwLocationFlags = DSBCAPS_LOCSOFTWARE; } } } // Acquire pin resources if(SUCCEEDED(hr)) { hr = DSERR_GENERIC; m_hrSuccessCode = DS_OK; if(!(dwLocationFlags & DSBCAPS_LOCSOFTWARE)) { // Try to create a hardware pin hr = CreatePin(m_vrbd.dwFlags | DSBCAPS_LOCHARDWARE, m_vrbd.pwfxFormat, GUID_NULL, &pPin); if(FAILED(hr) && m_fNoVirtRequested) { // The app specifically requested DS3DALG_NO_VIRTUALIZATION, // so try to create a NoVirt 2D hardware pin hr = CreatePin((m_vrbd.dwFlags & ~DSBCAPS_CTRL3D) | DSBCAPS_LOCHARDWARE | DSBCAPS_CTRLNOVIRT, m_vrbd.pwfxFormat, GUID_NULL, &pPin); } } if(FAILED(hr) && !(dwLocationFlags & DSBCAPS_LOCHARDWARE)) { if ((m_vrbd.dwFlags & DSBCAPS_CTRL3D) && (m_vrbd.guid3dAlgorithm == DS3DALG_NO_VIRTUALIZATION)) { // The app either wants NoVirt, or wanted an HRTF algorithm // which isn't supported on WDM 1.0; in either case, we try // to create a NoVirt 2D software pin. hr = CreatePin((m_vrbd.dwFlags & ~DSBCAPS_CTRL3D) | DSBCAPS_LOCSOFTWARE | DSBCAPS_CTRLNOVIRT, m_vrbd.pwfxFormat, GUID_NULL, &pPin); if (m_fSoft3dAlgUnavail) { // The app had asked for an unsupported HRTF algorithm; // return special success code DS_NO_VIRTUALIZATION. m_hrSuccessCode = DS_NO_VIRTUALIZATION; } } else { // Try to create a software pin hr = CreatePin(m_vrbd.dwFlags | DSBCAPS_LOCSOFTWARE, m_vrbd.pwfxFormat, m_vrbd.guid3dAlgorithm, &pPin); } } } // Handle resource acquistion if(SUCCEEDED(hr)) { hr = HandleResourceAcquisition(pPin); if (FAILED(hr)) RELEASE(pPin); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * StealResources * * Description: * Steals hardware resources from another object. * * Arguments: * CSecondaryRenderWaveBuffer * [in]: source object. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::StealResources" HRESULT CKsSecondaryRenderWaveBuffer::StealResources ( CSecondaryRenderWaveBuffer * pSource ) { CKsSecondaryRenderWaveBuffer * pKsSource = (CKsSecondaryRenderWaveBuffer *)pSource; CKsRenderPin * pPin; HRESULT hr; DPF_ENTER(); ASSERT(!HasAcquiredResources()); ASSERT(pKsSource->HasAcquiredResources()); // Steal the pin pPin = ADDREF(pKsSource->m_pPin); // Free the source buffer's resources hr = pKsSource->FreeResources(); // Synch up buffer and pin properties if(SUCCEEDED(hr)) { hr = HandleResourceAcquisition(pPin); if (FAILED(hr)) RELEASE(pPin); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * CreatePin * * Description: * Creates a pin. * * Arguments: * DWORD [in]: flags. * LPCWAVEFORMATEX [in]: format. * REFGUID [in]: 3D algorithm. * CKsRenderPin ** [out]: receives pin. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::CreatePin" HRESULT CKsSecondaryRenderWaveBuffer::CreatePin ( DWORD dwFlags, LPCWAVEFORMATEX pwfxFormat, REFGUID guid3dAlgorithm, CKsRenderPin ** ppPin ) { CKsRenderPin * pPin = NULL; HRESULT hr; DPF_ENTER(); // Can we get a pin from the cache? If not, create a new one hr = m_pKsDevice->m_pPinCache->GetPinFromCache(dwFlags, pwfxFormat, guid3dAlgorithm, &pPin); if(SUCCEEDED(hr)) { DPF(DPFLVL_MOREINFO, "Buffer at 0x%p reusing pin at 0x%p", this, pPin); } else { pPin = NEW(CKsRenderPin(m_pKsDevice)); hr = HRFROMP(pPin); if(SUCCEEDED(hr)) { hr = pPin->Initialize(dwFlags, pwfxFormat, guid3dAlgorithm); } } if(SUCCEEDED(hr)) { *ppPin = pPin; } else { ABSOLUTE_RELEASE(pPin); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * HandleResourceAcquisition * * Description: * Applies all buffer properties to the pin. * * Arguments: * CKsRenderPin * [in]: pin. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::HandleResourceAcquisition" HRESULT CKsSecondaryRenderWaveBuffer::HandleResourceAcquisition ( CKsRenderPin * pPin ) { HRESULT hr = DS_OK; DPF_ENTER(); ASSERT(!HasAcquiredResources()); // If we're CTRLCHANNELVOLUME, set up the supermix table accordingly. // FIXME: we only have to keep redoing this here if the pin can be used // for non-CTRLCHANNELVOLUME playback too, which is impossible? // FIXME: if a pin has previously had SetSuperMix() called on it and is // then stolen or recycled as a normal pin, we should set the supermix // table back to the usual "only first 2 channels active" mode. #ifdef FUTURE_MULTIPAN_SUPPORT if(m_vrbd.dwFlags & DSBCAPS_CTRLCHANNELVOLUME) { hr = pPin->SetSuperMix(); } #endif // Set attenuation levels if (SUCCEEDED(hr) && (pPin->m_dwFlags & DSBCAPS_CTRLVOLUME)) { hr = pPin->SetVolume(m_lVolume); } if(SUCCEEDED(hr) && (pPin->m_dwFlags & DSBCAPS_CTRLPAN)) { hr = pPin->SetPan(m_lPan); } // Set mute. We have to set mute after setting volume because // SetMute may change the current pin volume. if(SUCCEEDED(hr)) { hr = pPin->SetMute(m_fMute); } // Set frequency if(SUCCEEDED(hr) && (pPin->m_dwFlags & DSBCAPS_CTRLFREQUENCY)) { hr = pPin->SetFrequency(m_vrbd.pwfxFormat->nSamplesPerSec); } // Set SRC quality. We don't care if this succeeds or not. if(SUCCEEDED(hr)) { pPin->SetSrcQuality(m_nSrcQuality); } // Enable notification positions if(SUCCEEDED(hr)) { hr = pPin->EnableNotificationPositions(m_paNotes, m_cNotes); } // Set the pin position if(SUCCEEDED(hr)) { hr = pPin->SetCursorPosition(m_dwPositionCache); } // Success if(SUCCEEDED(hr)) { DPF(DPFLVL_MOREINFO, "Buffer at 0x%p has acquired resources at 0x%p", this, pPin); // Save a pointer to the pin object m_pPin = pPin; // Set our buffer location according to the pin's location m_vrbd.dwFlags |= (pPin->m_dwFlags & DSBCAPS_LOCMASK); ASSERT(HasAcquiredResources()); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * FreeResources * * Description: * Frees the pin and all resources attached to it. * * Arguments: * (void) * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::FreeResources" HRESULT CKsSecondaryRenderWaveBuffer::FreeResources ( void ) { HRESULT hr; DPF_ENTER(); hr = FreePin(FALSE); DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * FreePin * * Description: * Frees the pin. * * Arguments: * BOOL [in]: TRUE to cache the pin before freeing. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::FreePin" HRESULT CKsSecondaryRenderWaveBuffer::FreePin ( BOOL fCache ) { const DWORD dwNoCacheMask = DSBCAPS_PRIMARYBUFFER | DSBCAPS_LOCHARDWARE; HRESULT hr = DS_OK; DPF_ENTER(); if(HasAcquiredResources()) { // Make sure the pin is stopped hr = SetStopState(FALSE, TRUE); // Save the buffer position if(SUCCEEDED(hr)) { hr = GetCursorPosition(&m_dwPositionCache, NULL); } // Never cache a DRM pin if (FormatTagFromWfx(m_vrbd.pwfxFormat) == WAVE_FORMAT_DRM) { DPF(DPFLVL_INFO, "Not caching DRM format pin"); fCache = FALSE; } // Cache the pin if(SUCCEEDED(hr) && fCache && !(m_vrbd.dwFlags & dwNoCacheMask)) { hr = m_pKsDevice->m_pPinCache->AddPinToCache(m_pPin); } // Free the pin if(SUCCEEDED(hr)) { RELEASE(m_pPin); } // Remove the buffer location flags if(SUCCEEDED(hr)) { m_vrbd.dwFlags &= ~DSBCAPS_LOCMASK; } if(SUCCEEDED(hr)) { DPF(DPFLVL_MOREINFO, "Buffer at 0x%p has freed its resources", this); } } if (HasAcquiredResources()) { DPF(DPFLVL_ERROR, "Buffer at 0x%p failed to free pin resources", this); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * Duplicate * * Description: * Duplicates the buffer. * * Arguments: * CSecondaryRenderWaveBuffer ** [out]: receives duplicate buffer. Use * Release to free this object. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::Duplicate" HRESULT CKsSecondaryRenderWaveBuffer::Duplicate ( CSecondaryRenderWaveBuffer ** ppBuffer ) { CKsSecondaryRenderWaveBuffer * pBuffer; HRESULT hr; DPF_ENTER(); pBuffer = NEW(CKsSecondaryRenderWaveBuffer(m_pKsDevice, m_pvInstance)); hr = HRFROMP(pBuffer); if(SUCCEEDED(hr)) { hr = pBuffer->Initialize(NULL, this, m_pSysMemBuffer); } if(SUCCEEDED(hr)) { *ppBuffer = pBuffer; } else { ABSOLUTE_RELEASE(pBuffer); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * CommitToDevice * * Description: * Commits changed buffer wave data to the device. * * Arguments: * DWORD [in]: byte index into the system memory buffer of the changed * data. * DWORD [in]: size, in bytes, of the changed data. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::CommitToDevice" HRESULT CKsSecondaryRenderWaveBuffer::CommitToDevice ( DWORD ibCommit, DWORD cbCommit ) { DPF_ENTER(); // Kmixer uses our system memory buffer, so there's nothing to do DPF_LEAVE_HRESULT(DS_OK); return DS_OK; } /*************************************************************************** * * GetState * * Description: * Gets buffer state. * * Arguments: * LPDWORD [out]: receives buffer state. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::GetState" HRESULT CKsSecondaryRenderWaveBuffer::GetState(LPDWORD pdwState) { DPF_ENTER(); // Get the buffer state if(m_dwState & VAD_BUFFERSTATE_STARTED && !(m_dwState & VAD_BUFFERSTATE_LOOPING)) { ASSERT(HasAcquiredResources()); ASSERT(m_pCallbackEvent); // Are we really still playing? if(WAIT_OBJECT_0 == m_pCallbackEvent->Wait(0)) { // No EventSignalCallback(m_pCallbackEvent); } } *pdwState = m_dwState; DPF_LEAVE_HRESULT(DS_OK); return DS_OK; } /*************************************************************************** * * SetState * * Description: * Sets buffer state. * * Arguments: * DWORD [in]: buffer state. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::SetState" HRESULT CKsSecondaryRenderWaveBuffer::SetState(DWORD dwState) { const DWORD dwValidMask = VAD_BUFFERSTATE_STARTED | VAD_BUFFERSTATE_LOOPING; const BOOL fLoop = MAKEBOOL(dwState & VAD_BUFFERSTATE_LOOPING); HRESULT hr = DS_OK; DPF_ENTER(); ASSERT(IS_VALID_FLAGS(dwState, dwValidMask)); // Update the buffer state if((dwState & dwValidMask) != m_dwState) { if(dwState & VAD_BUFFERSTATE_STARTED) { // If we're LOCDEFER and need resources, get them if((m_vrbd.dwFlags & DSBCAPS_LOCDEFER) && !HasAcquiredResources()) AcquireResources(m_vrbd.dwFlags & DSBCAPS_LOCMASK); if(SUCCEEDED(hr)) hr = SetPlayState(fLoop); } else { hr = SetStopState(FALSE, TRUE); // If we're LOCDEFER and stopped, free our resources if(SUCCEEDED(hr) && (m_vrbd.dwFlags & DSBCAPS_LOCDEFER)) FreePin(TRUE); } } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetPlayState * * Description: * Sets the buffer to a "play" state. * * Arguments: * BOOL [in]: TRUE to play looped. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::SetPlayState" HRESULT CKsSecondaryRenderWaveBuffer::SetPlayState ( BOOL fLoop ) { HRESULT hr = DS_OK; CEvent * pEvent; DPF_ENTER(); ASSERT(HasAcquiredResources()); // Set up the OVERLAPPED event if(fLoop) { if(!m_pLoopingEvent) { m_pLoopingEvent = NEW(CEvent); hr = HRFROMP(m_pLoopingEvent); } if(SUCCEEDED(hr)) { pEvent = m_pLoopingEvent; } } else { if(!m_pCallbackEvent) { hr = AllocCallbackEvent(m_pKsDevice->m_pEventPool, &m_pCallbackEvent); } if(SUCCEEDED(hr)) { pEvent = m_pCallbackEvent; } } // Start the pin playing if(SUCCEEDED(hr)) { hr = m_pPin->SetPlayState(m_pSysMemBuffer->GetPlayBuffer(), m_pSysMemBuffer->GetSize(), fLoop, pEvent->GetEventHandle()); } // Update the buffer state flags if(SUCCEEDED(hr)) { m_dwState = VAD_BUFFERSTATE_STARTED; if(fLoop) { m_dwState |= VAD_BUFFERSTATE_LOOPING; } } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetStopState * * Description: * Sets the buffer to a "stop" state. * * Arguments: * BOOL: TRUE if there's a pending write IRP. * BOOL: whether to cache the current position. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::SetStopState" HRESULT CKsSecondaryRenderWaveBuffer::SetStopState ( BOOL fNaturalStop, BOOL fCachePosition ) { HRESULT hr = DS_OK; DPF_ENTER(); if(m_dwState & VAD_BUFFERSTATE_STARTED) { ASSERT(HasAcquiredResources()); // Stop the pin hr = m_pPin->SetStopState(fNaturalStop, fCachePosition); // Free the overlapped events if(SUCCEEDED(hr)) { if(m_pCallbackEvent) { m_pKsDevice->m_pEventPool->FreeEvent(m_pCallbackEvent); m_pCallbackEvent = NULL; } RELEASE(m_pLoopingEvent); } // Signal the application's stop event if(SUCCEEDED(hr) && m_pStopNote) { SetEvent(m_pStopNote->hEventNotify); } // Update the buffer state flags if(SUCCEEDED(hr)) { m_dwState = VAD_BUFFERSTATE_STOPPED; } } DPF_LEAVE_HRESULT(hr); return hr; } /**************************************************************************** * * GetCursorPosition * * Description: * Retrieves the current play and write cursor positions. * * Arguments: * LPDWORD [out]: receives the play position. * LPDWORD [out]: receives the write position. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::GetCursorPosition" HRESULT CKsSecondaryRenderWaveBuffer::GetCursorPosition ( LPDWORD pdwPlay, LPDWORD pdwWrite ) { HRESULT hr = DS_OK; DPF_ENTER(); if(HasAcquiredResources()) { hr = m_pPin->GetCursorPosition(pdwPlay, pdwWrite); } else { ASSERT(&m_dwPositionCache != pdwPlay); ASSERT(&m_dwPositionCache != pdwWrite); if(pdwPlay) { *pdwPlay = m_dwPositionCache; } if(pdwWrite) { *pdwWrite = m_dwPositionCache; } } if(SUCCEEDED(hr) && pdwWrite && (m_vrbd.dwFlags & DSBCAPS_LOCHARDWARE) && (m_dwState & VAD_BUFFERSTATE_STARTED)) { *pdwWrite = PadHardwareWriteCursor(*pdwWrite, m_pSysMemBuffer->GetSize(), m_vrbd.pwfxFormat); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetCursorPosition * * Description: * Sets the current play cursor position. * * Arguments: * DWORD [in]: play position. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::SetCursorPosition" HRESULT CKsSecondaryRenderWaveBuffer::SetCursorPosition ( DWORD dwPlay ) { HRESULT hr = DS_OK; DPF_ENTER(); if(HasAcquiredResources()) { hr = m_pPin->SetCursorPosition(dwPlay); } else { m_dwPositionCache = dwPlay; } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetFrequency * * Description: * Sets the buffer frequency. * * Arguments: * DWORD [in]: new frequency. * BOOL [in]: whether to clamp to the driver's supported frequency * range, if the call fails on a hardware buffer. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::SetFrequency" HRESULT CKsSecondaryRenderWaveBuffer::SetFrequency ( DWORD dwFrequency, BOOL fClamp ) { HRESULT hr = DS_OK; DPF_ENTER(); if (m_vrbd.dwFlags & DSBCAPS_CTRLFX) { DPF(DPFLVL_INFO, "Called on FX buffer - ignored"); } else { if (HasAcquiredResources()) { hr = m_pPin->SetFrequency(dwFrequency); if (FAILED(hr) && (m_vrbd.dwFlags & DSBCAPS_LOCHARDWARE) && fClamp) { DWORD dwMinHwSampleRate, dwMaxHwSampleRate; hr = m_pKsDevice->GetFrequencyRange(&dwMinHwSampleRate, &dwMaxHwSampleRate); if (SUCCEEDED(hr)) { dwFrequency = BETWEEN(dwFrequency, dwMinHwSampleRate, dwMaxHwSampleRate); hr = m_pPin->SetFrequency(dwFrequency); } } } if (SUCCEEDED(hr)) { m_vrbd.pwfxFormat->nSamplesPerSec = dwFrequency; } } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetMute * * Description: * Mutes or unmutes the buffer. * * Arguments: * BOOL [in]: TRUE to mute the buffer, FALSE to restore it. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::SetMute" HRESULT CKsSecondaryRenderWaveBuffer::SetMute ( BOOL fMute ) { HRESULT hr = DS_OK; DPF_ENTER(); if(HasAcquiredResources()) { hr = m_pPin->SetMute(fMute); } if(SUCCEEDED(hr)) { m_fMute = fMute; } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetSrcQuality * * Description: * Sets the quality of the buffer's sample rate converter. * * Arguments: * DIRECTSOUNDMIXER_SRCQUALITY [in]: new quality. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::SetSrcQuality" HRESULT CKsSecondaryRenderWaveBuffer::SetSrcQuality ( DIRECTSOUNDMIXER_SRCQUALITY nSrcQuality ) { HRESULT hr = DS_OK; DPF_ENTER(); if(HasAcquiredResources()) { hr = m_pPin->SetSrcQuality(nSrcQuality); } if(SUCCEEDED(hr)) { m_nSrcQuality = nSrcQuality; } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetAttenuation * * Description: * Sets the attenuation for two stereo channels. * * Arguments: * PDSVOLUMEPAN [in]: attenuation structure. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::SetAttenuation" HRESULT CKsSecondaryRenderWaveBuffer::SetAttenuation ( PDSVOLUMEPAN pdsvp ) { HRESULT hr = DS_OK; DPF_ENTER(); if(HasAcquiredResources()) { if (!m_fMute) hr = m_pPin->SetVolume(pdsvp->lVolume); if(SUCCEEDED(hr)) hr = m_pPin->SetPan(pdsvp->lPan); } if(SUCCEEDED(hr)) { m_lVolume = pdsvp->lVolume; m_lPan = pdsvp->lPan; } DPF_LEAVE_HRESULT(hr); return hr; } #ifdef FUTURE_MULTIPAN_SUPPORT /*************************************************************************** * * SetChannelAttenuations * * Description: * Sets this buffer's attenuation on the channels corresponding to * the requested speaker positions. * * We get called from CDirectSoundSecondaryBuffer's methods SetVolume() * and SetChannelVolume(), since both of them modify the channel levels * matrix. This is analogous to how SetVolume() and SetPan() both end * up calling SetAttenuation(), for regular CTRLPAN buffers. * * Note: we're using the term "speaker" here for a channel's positional * destination, even though our device's output channels may not feed * into speakers at all. This is to avoid ambiguity with the "channels" * present in our audio data stream. * * Arguments: * LONG [in]: main volume level * DWORD [in]: number of speaker positions * const DWORD* [in]: array of speaker position codes * const LONG* [in]: array of speaker position levels * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::SetChannelAttenuations" HRESULT CKsSecondaryRenderWaveBuffer::SetChannelAttenuations ( LONG lVolume, DWORD dwSpeakerCount, const DWORD * pdwSpeakers, const LONG * plSpeakerVolumes ) { HRESULT hr = DS_OK; DPF_ENTER(); ASSERT(m_pPin->m_dwFlags & DSBCAPS_CTRLCHANNELVOLUME); if (dwSpeakerCount == 0) { // We're in a SetVolume() API call and SetChannelVolume() has not been // called yet; so we translate directly into a SetVolume() on our pin ASSERT(!pdwSpeakers && !plSpeakerVolumes); // Sanity checking if (!m_fMute) hr = m_pPin->SetVolume(lVolume); } else // Non-zero dwSpeakerCount: { ASSERT(pdwSpeakers && plSpeakerVolumes); // We set up a complete array of channel levels, then fill it in according // to the values passed in plSpeakerVolumes. LONG * plAllChannelVolumes = MEMALLOC_A(LONG, m_pKsDevice->m_ulChannelCount); hr = HRFROMP(plAllChannelVolumes); if (SUCCEEDED(hr)) for (ULONG i=0; i < m_pKsDevice->m_ulChannelCount; ++i) plAllChannelVolumes[i] = DSBVOLUME_MIN; for (DWORD i=0; i < dwSpeakerCount && SUCCEEDED(hr); ++i) { // See if the requested speaker position is available on the device if (pdwSpeakers[i] & m_pKsDevice->m_lSpeakerPositions) { // If so, find out which of our output channels has that position // (m_pnSpeakerIndexTable maps from speaker positions to channels) DWORD dwSpeaker = HighestBit(pdwSpeakers[i]) - 1; ASSERT(dwSpeaker < m_pKsDevice->m_ulChannelCount); plAllChannelVolumes[m_pKsDevice->m_pnSpeakerIndexTable[dwSpeaker]] = plSpeakerVolumes[i]; } else { hr = DSERR_INVALIDPARAM; RPF(DPFLVL_ERROR, "Channel position 0x$lx is not available", pdwSpeakers[i]); } } if (SUCCEEDED(hr)) hr = SetAllChannelAttenuations(lVolume, m_pKsDevice->m_ulChannelCount, plAllChannelVolumes); MEMFREE(plAllChannelVolumes); } DPF_LEAVE_HRESULT(hr); return hr; } #endif // FUTURE_MULTIPAN_SUPPORT /*************************************************************************** * * SetAllChannelAttenuations * * Description: * Sets the attenuation on all channels of this buffer. * * Arguments: * LONG [in]: main volume level * DWORD [in]: number of channels * PLONG [in]: channel attenuation levels * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::SetAllChannelAttenuations" HRESULT CKsSecondaryRenderWaveBuffer::SetAllChannelAttenuations ( LONG lVolume, DWORD dwChannelCount, LPLONG plChannelVolumes ) { HRESULT hr = DS_OK; DPF_ENTER(); if (HasAcquiredResources()) { if (!m_fMute) hr = m_pPin->SetVolume(lVolume); if (SUCCEEDED(hr)) hr = m_pPin->SetChannelLevels(dwChannelCount, plChannelVolumes); } if (SUCCEEDED(hr)) m_lVolume = lVolume; DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetNotificationPositions * * Description: * Sets buffer notification positions. * * Arguments: * DWORD [in]: DSBPOSITIONNOTIFY structure count. * LPCDSBPOSITIONNOTIFY [in]: offsets and events. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::SetNotificationPositions" HRESULT CKsSecondaryRenderWaveBuffer::SetNotificationPositions ( DWORD dwCount, LPCDSBPOSITIONNOTIFY paNotes ) { const DWORD dwProcessId = GetCurrentProcessId(); LPDSBPOSITIONNOTIFY paNotesCopy = NULL; HRESULT hr = DS_OK; DWORD i; DPF_ENTER(); // Make a local copy of the notifications, converting all the // handles to global. if(paNotes) { paNotesCopy = MEMALLOC_A_COPY(DSBPOSITIONNOTIFY, dwCount, paNotes); hr = HRFROMP(paNotesCopy); } if(paNotesCopy) { for(i = 0; i < dwCount && SUCCEEDED(hr); i++) { paNotesCopy[i].hEventNotify = GetGlobalHandleCopy(paNotesCopy[i].hEventNotify, dwProcessId, FALSE); hr = HRFROMP(paNotesCopy[i].hEventNotify); } } // Disable any current events if(SUCCEEDED(hr)) { hr = FreeNotificationPositions(); } // Save the new events if(SUCCEEDED(hr)) { m_paNotes = paNotesCopy; m_cNotes = dwCount; } if(SUCCEEDED(hr)) { for(i = 0; i < m_cNotes; i++) { if(DSBPN_OFFSETSTOP == m_paNotes[i].dwOffset) { // We won't actually pass the stop event down to Kmixer, but // instead will keep our own copy of it m_pStopNote = &m_paNotes[i]; break; } } } // Enable position notifications if(SUCCEEDED(hr) && HasAcquiredResources()) { hr = m_pPin->EnableNotificationPositions(m_paNotes, m_cNotes); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * FreeNotificationPositions * * Description: * Removes all position notifications and frees allocated resources. * * Arguments: * (void) * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::FreeNotificationPositions" HRESULT CKsSecondaryRenderWaveBuffer::FreeNotificationPositions ( void ) { HRESULT hr = DS_OK; UINT i; DPF_ENTER(); // Disable all position notification events if(HasAcquiredResources()) { hr = m_pPin->DisableNotificationPositions(); } // Clean up if(SUCCEEDED(hr)) { for(i = 0; i < m_cNotes; i++) { CLOSE_HANDLE(m_paNotes[i].hEventNotify); } MEMFREE(m_paNotes); m_pStopNote = NULL; m_cNotes = 0; } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetFormat * * Description: * Sets the buffer format. * * Arguments: * LPCWAVEFORMATEX [in]: new format. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::SetFormat" HRESULT CKsSecondaryRenderWaveBuffer::SetFormat ( LPCWAVEFORMATEX pwfxFormat ) { const DWORD dwLocationFlags = (m_vrbd.dwFlags & DSBCAPS_LOCMASK); DWORD dwState; HRESULT hr; DPF_ENTER(); // Fix up the buffer description MEMFREE(m_vrbd.pwfxFormat); m_vrbd.pwfxFormat = CopyWfxAlloc(pwfxFormat); hr = HRFROMP(m_vrbd.pwfxFormat); // Save the buffer state if(SUCCEEDED(hr)) { hr = GetState(&dwState); } // We can't change the format of the pin, so we'll free and reaquire // resources. if(SUCCEEDED(hr) && HasAcquiredResources()) { hr = FreePin(TRUE); if(SUCCEEDED(hr)) { hr = AcquireResources(dwLocationFlags); } if(SUCCEEDED(hr)) { hr = SetState(dwState); } } if(SUCCEEDED(hr)) { DPF(DPFLVL_INFO, "Buffer format set to %lu Hz, %u-bit, %s...", pwfxFormat->nSamplesPerSec, pwfxFormat->wBitsPerSample, (1 == pwfxFormat->nChannels) ? TEXT("mono") : TEXT("stereo")); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * EventSignalCallback * * Description: * Callback function called when a pin's IO completion event is * signalled. This function is called from within the callback event * pool's lock, so we get thread synchronization for free. * * Arguments: * CCallbackEvent * [in]: callback event. * * Returns: * (void) * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::EventSignalCallback" void CKsSecondaryRenderWaveBuffer::EventSignalCallback ( CCallbackEvent * pEvent ) { DPF_ENTER(); ASSERT(HasAcquiredResources()); // Allow the buffer to handle the stop event SetStopState(TRUE, FALSE); DPF_LEAVE_VOID(); } /*************************************************************************** * * CreatePropertySet * * Description: * Creates the property set object. * * Arguments: * CPropertySet ** [out]: receives pointer to the property set object. * The caller is responsible for freeing this * object. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::CreatePropertySet" HRESULT CKsSecondaryRenderWaveBuffer::CreatePropertySet ( CPropertySet ** ppPropertySet ) { HRESULT hr = DS_OK; CKsPropertySet * pPropertySet; DPF_ENTER(); ASSERT(HasAcquiredResources()); if(m_pKsDevice->m_dwAccelerationFlags & DIRECTSOUNDMIXER_ACCELERATIONF_NOHWPROPSETS) { hr = DSERR_UNSUPPORTED; } if(SUCCEEDED(hr)) { pPropertySet = NEW(CKsPropertySet(m_pPin->m_hPin, m_pvInstance, m_pKsDevice->m_paTopologies[m_pPin->m_ulPinId])); hr = HRFROMP(pPropertySet); } if(SUCCEEDED(hr)) { *ppPropertySet = pPropertySet; } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * Create3dObject * * Description: * Creates the 3D object. * * Arguments: * C3dListener * [in]: listener object. * C3dObject ** [out]: receives pointer to 3D object. The caller is * responsible for freeing this object. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::Create3dObject" HRESULT CKsSecondaryRenderWaveBuffer::Create3dObject ( C3dListener * p3dListener, C3dObject ** pp3dObject ) { const BOOL fMute3dAtMaxDistance = MAKEBOOL(m_vrbd.dwFlags & DSBCAPS_MUTE3DATMAXDISTANCE); C3dObject * p3dObject = NULL; HRESULT hr = DSERR_UNSUPPORTED; DPF_ENTER(); ASSERT(HasAcquiredResources()); ASSERT(m_vrbd.dwFlags & DSBCAPS_CTRL3D); if(m_pPin->m_dwFlags & DSBCAPS_CTRL3D) { if(IS_HARDWARE_NODE(m_pKsDevice->m_paTopologyInformation[m_pPin->m_ulPinId].ThreedNode.CpuResources)) { // The IIR 3D object supports both hardware and software pins. We'll // try to create that one first. If it fails, we'll fall back on // a standard hardware 3D object. if(DS3DALG_HRTF_FULL == m_vrbd.guid3dAlgorithm || DS3DALG_HRTF_LIGHT == m_vrbd.guid3dAlgorithm) { hr = CreateIir3dObject(p3dListener, &p3dObject); } if(FAILED(hr)) { hr = CreateHw3dObject(p3dListener, &p3dObject); } } else if(DS3DALG_HRTF_FULL == m_vrbd.guid3dAlgorithm || DS3DALG_HRTF_LIGHT == m_vrbd.guid3dAlgorithm) { hr = CreateIir3dObject(p3dListener, &p3dObject); } else if(DS3DALG_ITD == m_vrbd.guid3dAlgorithm) { hr = CreateItd3dObject(p3dListener, &p3dObject); } } else if(DS3DALG_NO_VIRTUALIZATION == m_vrbd.guid3dAlgorithm) { // See if we have a multichannel speaker configuration BYTE bSpkConf = DSSPEAKER_CONFIG(m_pKsDevice->m_dwSpeakerConfig); BOOL fMultiChannel = bSpkConf == DSSPEAKER_QUAD || bSpkConf == DSSPEAKER_SURROUND || bSpkConf == DSSPEAKER_5POINT1 || bSpkConf == DSSPEAKER_7POINT1; if (fMultiChannel) { hr = CreateMultiPan3dObject(p3dListener, fMute3dAtMaxDistance, m_vrbd.pwfxFormat->nSamplesPerSec, &p3dObject); if (FAILED(hr)) { DPF(DPFLVL_INFO, "Multichannel pan object creation failed with %s", HRESULTtoSTRING(hr)); } } if (!fMultiChannel || FAILED(hr)) { hr = CreatePan3dObject(p3dListener, fMute3dAtMaxDistance, m_vrbd.pwfxFormat->nSamplesPerSec, &p3dObject); } } if(SUCCEEDED(hr)) { *pp3dObject = p3dObject; } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * CreateHw3dObject * * Description: * Creates the 3D object. * * Arguments: * C3dListener * [in]: listener object. * C3dObject ** [out]: receives pointer to 3D object. The caller is * responsible for freeing this object. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::CreateHw3dObject" HRESULT CKsSecondaryRenderWaveBuffer::CreateHw3dObject ( C3dListener * p3dListener, C3dObject ** pp3dObject ) { const BOOL fMute3dAtMaxDistance = MAKEBOOL(m_vrbd.dwFlags & DSBCAPS_MUTE3DATMAXDISTANCE); const BOOL fDopplerEnabled = !MAKEBOOL((m_vrbd.dwFlags & DSBCAPS_CTRLFX) && !(m_vrbd.dwFlags & DSBCAPS_SINKIN)); const PKSNODE pNode = &m_pKsDevice->m_paTopologyInformation[m_pPin->m_ulPinId].ThreedNode; CKsHw3dObject * p3dObject; HRESULT hr; DPF_ENTER(); p3dObject = NEW(CKsHw3dObject((CKs3dListener *)p3dListener, fMute3dAtMaxDistance, fDopplerEnabled, m_pvInstance, pNode->NodeId, this)); hr = HRFROMP(p3dObject); if(SUCCEEDED(hr)) { hr = p3dObject->Initialize(); } if(SUCCEEDED(hr)) { *pp3dObject = p3dObject; } else { RELEASE(p3dObject); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * CreateIir3dObject * * Description: * Creates the 3D object. * * Arguments: * C3dListener * [in]: listener object. * C3dObject ** [out]: receives pointer to 3D object. The caller is * responsible for freeing this object. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::CreateIir3dObject" HRESULT CKsSecondaryRenderWaveBuffer::CreateIir3dObject ( C3dListener * p3dListener, C3dObject ** pp3dObject ) { const BOOL fMute3dAtMaxDistance = MAKEBOOL(m_vrbd.dwFlags & DSBCAPS_MUTE3DATMAXDISTANCE); const BOOL fDopplerEnabled = !MAKEBOOL((m_vrbd.dwFlags & DSBCAPS_CTRLFX) && !(m_vrbd.dwFlags & DSBCAPS_SINKIN)); const PKSNODE pNode = &m_pKsDevice->m_paTopologyInformation[m_pPin->m_ulPinId].ThreedNode; CKsIir3dObject * p3dObject; HRESULT hr; DPF_ENTER(); p3dObject = NEW(CKsIir3dObject((CKs3dListener *)p3dListener, m_vrbd.guid3dAlgorithm, fMute3dAtMaxDistance, fDopplerEnabled, m_vrbd.pwfxFormat->nSamplesPerSec, this, m_pPin->m_hPin, pNode->NodeId, pNode->CpuResources)); hr = HRFROMP(p3dObject); if(SUCCEEDED(hr)) { hr = p3dObject->Initialize(); } if(SUCCEEDED(hr)) { *pp3dObject = p3dObject; } else { RELEASE(p3dObject); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * CreateItd3dObject * * Description: * Creates the 3D object. * * Arguments: * C3dListener * [in]: listener object. * C3dObject ** [out]: receives pointer to 3D object. The caller is * responsible for freeing this object. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::CreateItd3dObject" HRESULT CKsSecondaryRenderWaveBuffer::CreateItd3dObject ( C3dListener * p3dListener, C3dObject ** pp3dObject ) { const BOOL fMute3dAtMaxDistance = MAKEBOOL(m_vrbd.dwFlags & DSBCAPS_MUTE3DATMAXDISTANCE); const BOOL fDopplerEnabled = !MAKEBOOL((m_vrbd.dwFlags & DSBCAPS_CTRLFX) && !(m_vrbd.dwFlags & DSBCAPS_SINKIN)); const PKSNODE pNode = &m_pKsDevice->m_paTopologyInformation[m_pPin->m_ulPinId].ThreedNode; CKsItd3dObject * p3dObject; HRESULT hr; DPF_ENTER(); p3dObject = NEW(CKsItd3dObject((CKs3dListener *)p3dListener, fMute3dAtMaxDistance, fDopplerEnabled, m_vrbd.pwfxFormat->nSamplesPerSec, this, m_pPin->m_hPin, pNode->NodeId)); hr = HRFROMP(p3dObject); if(SUCCEEDED(hr)) { hr = p3dObject->Initialize(); } if(SUCCEEDED(hr)) { *pp3dObject = p3dObject; } else { RELEASE(p3dObject); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * CreateMultiPan3dObject * * Description: * Creates a multichannel panning 3D object. * * Arguments: * C3dListener * [in]: 3D listener object. * BOOL [in]: whether to mute the sound at max distance. * DWORD [in]: buffer frequency. * C3dObject ** [out]: receives pointer to 3D object. The caller is * responsible for freeing this object. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::CreateMultiPan3dObject" HRESULT CKsSecondaryRenderWaveBuffer::CreateMultiPan3dObject ( C3dListener * p3dListener, BOOL fMute3dAtMaxDistance, DWORD dwFrequency, C3dObject ** pp3dObject ) { const BOOL fDopplerEnabled = !MAKEBOOL((m_vrbd.dwFlags & DSBCAPS_CTRLFX) && !(m_vrbd.dwFlags & DSBCAPS_SINKIN)); CMultiPan3dObject * p3dObject = NULL; HRESULT hr; DPF_ENTER(); // First set up the supermix table properly for this buffer's pin; // if this fails, there is no need to create the CMultiPan3dObject. hr = m_pPin->SetSuperMix(); if (SUCCEEDED(hr)) { p3dObject = NEW(CMultiPan3dObject((CMultiPan3dListener*)p3dListener, fMute3dAtMaxDistance, fDopplerEnabled, dwFrequency, this)); hr = HRFROMP(p3dObject); } if (SUCCEEDED(hr)) hr = p3dObject->Initialize(); if (SUCCEEDED(hr)) *pp3dObject = p3dObject; else RELEASE(p3dObject); DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * HasAcquiredResources * * Description: * Determines whether or not hardware resources have been acquired. * * Arguments: * (void) * * Returns: * BOOL: TRUE if resources have been acquired. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsSecondaryRenderWaveBuffer::HasAcquiredResources" BOOL CKsSecondaryRenderWaveBuffer::HasAcquiredResources ( void ) { if(m_pPin) { ASSERT(LXOR(m_vrbd.dwFlags & DSBCAPS_LOCHARDWARE, m_vrbd.dwFlags & DSBCAPS_LOCSOFTWARE)); } else { ASSERT(!(m_vrbd.dwFlags & DSBCAPS_LOCMASK)); } return MAKEBOOL(m_pPin); } /*************************************************************************** * * CKsRenderPin * * Description: * Object constructor. * * Arguments: * CKsRenderDevice * [in]: parent device. * * Returns: * (void) * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::CKsRenderPin" CKsRenderPin::CKsRenderPin ( CKsRenderDevice * pKsDevice ) { DPF_ENTER(); DPF_CONSTRUCT(CKsRenderPin); // Initialize defaults m_pKsDevice = pKsDevice; m_ulPinId = MAX_ULONG; m_dwFlags = 0; m_pwfxFormat = NULL; m_guid3dAlgorithm = GUID_NULL; m_hPin = NULL; m_dwState = VAD_BUFFERSTATE_STOPPED; m_paEventData = NULL; m_cEventData = 0; m_dwPositionCache = 0; DPF_LEAVE_VOID(); } /*************************************************************************** * * ~CKsRenderPin * * Description: * Object destructor. * * Arguments: * (void) * * Returns: * (void) * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::~CKsRenderPin" CKsRenderPin::~CKsRenderPin ( void ) { DPF_ENTER(); DPF_DESTRUCT(CKsRenderPin); SetStopState(FALSE, FALSE); DisableNotificationPositions(); CLOSE_HANDLE(m_hPin); MEMFREE(m_pwfxFormat); DPF_LEAVE_VOID(); } /*************************************************************************** * * Initialize * * Description: * Initializes the render pin object. If this function fails, the * object should be immediately deleted. * * Arguments: * DWORD [in]: Pin creation flags. * LPCVADRBUFFERDESC [in]: buffer description. * REFGUID [in]: GUID of 3D algorithm to be used, if applicable. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::Initialize" HRESULT CKsRenderPin::Initialize ( DWORD dwFlags, LPCWAVEFORMATEX pwfxFormat, REFGUID guid3dAlgorithm ) { HRESULT hr; DPF_ENTER(); if(dwFlags & DSBCAPS_CTRL3D) { ASSERT(DS3DALG_NO_VIRTUALIZATION != guid3dAlgorithm); } else { ASSERT(IS_NULL_GUID(&guid3dAlgorithm)); } m_dwFlags = dwFlags; m_guid3dAlgorithm = guid3dAlgorithm; // For non-PCM formats we don't always require the VOLUME/PAN/FREQUENCY caps. // This fixes Millennium bug 139752 (cannot play AC3 format, DVD is blocked) WORD wFormatTag = FormatTagFromWfx(pwfxFormat); if (wFormatTag == WAVE_FORMAT_PCM || wFormatTag == WAVE_FORMAT_IEEE_FLOAT) { m_dwFlags |= DSBCAPS_CTRLVOLUME | DSBCAPS_CTRLPAN | DSBCAPS_CTRLFREQUENCY; } m_pwfxFormat = CopyWfxAlloc(pwfxFormat); hr = HRFROMP(m_pwfxFormat); // Create the pin if(SUCCEEDED(hr)) { hr = m_pKsDevice->CreateRenderPin(-1, m_dwFlags, m_pwfxFormat, m_guid3dAlgorithm, &m_hPin, &m_ulPinId); } #ifdef FUTURE_MULTIPAN_SUPPORT // If we're CTRLCHANNELVOLUME, set up the supermix table accordingly. // This is done here so we will correctly return DSERR_CONTROLUNAVAIL if a // driver's Supermix node doesn't support the MIX_LEVEL_TABLE properties. if(SUCCEEDED(hr) && (m_dwFlags & DSBCAPS_CTRLCHANNELVOLUME)) { hr = SetSuperMix(); } #endif // Attach the new pin to the render device's virtual source to allow // wave out volume/pan changes to affect the pin. if(SUCCEEDED(hr)) { hr = KsAttachVirtualSource(m_hPin, m_pKsDevice->m_ulVirtualSourceIndex); } // Set up the default pin properties if(SUCCEEDED(hr)) { m_lVolume = DSBVOLUME_MAX; m_lPan = DSBPAN_CENTER; m_fMute = FALSE; m_nSrcQuality = DIRECTSOUNDMIXER_SRCQUALITY_PINDEFAULT; } DPF_LEAVE_HRESULT(hr); return hr; } /**************************************************************************** * * GetCursorPosition * * Description: * Retrieves the pin's current play and write cursor positions. * * Arguments: * LPDWORD [out]: receives the play position. * LPDWORD [out]: receives the write position. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::GetCursorPosition" HRESULT CKsRenderPin::GetCursorPosition ( LPDWORD pdwPlay, LPDWORD pdwWrite ) { HRESULT hr = DS_OK; KSAUDIO_POSITION Position; DPF_ENTER(); if(m_dwState & VAD_BUFFERSTATE_STARTED) { hr = KsGetProperty(m_hPin, KSPROPSETID_Audio, KSPROPERTY_AUDIO_POSITION, &Position, sizeof(Position)); } else { ASSERT(&m_dwPositionCache != pdwPlay); ASSERT(&m_dwPositionCache != pdwWrite); Position.PlayOffset = m_dwPositionCache; Position.WriteOffset = m_dwPositionCache; } if(SUCCEEDED(hr)) { if(pdwPlay) { *pdwPlay = (DWORD)Position.PlayOffset; } if(pdwWrite) { *pdwWrite = (DWORD)Position.WriteOffset; } } else { DPF(DPFLVL_ERROR, "Unable to get cursor position"); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetCursorPosition * * Description: * Sets the current play cursor position. * * Arguments: * DWORD [in]: play position. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::SetCursorPosition" HRESULT CKsRenderPin::SetCursorPosition ( DWORD dwPosition ) { HRESULT hr = DS_OK; KSAUDIO_POSITION Position; DPF_ENTER(); if(m_dwState & VAD_BUFFERSTATE_STARTED) { Position.PlayOffset = dwPosition; hr = KsSetProperty(m_hPin, KSPROPSETID_Audio, KSPROPERTY_AUDIO_POSITION, &Position, sizeof(Position)); } else { m_dwPositionCache = dwPosition; } if(FAILED(hr)) { DPF(DPFLVL_ERROR, "Unable to set cursor position"); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetFrequency * * Description: * Sets the pin's frequency. * * Arguments: * DWORD [in]: new frequency. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::SetFrequency" HRESULT CKsRenderPin::SetFrequency ( DWORD dwFrequency ) { HRESULT hr = DS_OK; DPF_ENTER(); if(dwFrequency != m_pwfxFormat->nSamplesPerSec) { ASSERT(m_dwFlags & DSBCAPS_CTRLFREQUENCY); ASSERT(IS_VALID_NODE(m_pKsDevice->m_paTopologyInformation[m_ulPinId].SrcNode.NodeId)); hr = KsSetNodeProperty(m_hPin, KSPROPSETID_Audio, KSPROPERTY_AUDIO_SAMPLING_RATE, m_pKsDevice->m_paTopologyInformation[m_ulPinId].SrcNode.NodeId, &dwFrequency, sizeof(dwFrequency)); if(SUCCEEDED(hr)) { m_pwfxFormat->nSamplesPerSec = dwFrequency; } } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetMute * * Description: * Mutes or unmutes the pin. * * Arguments: * BOOL [in]: TRUE to mute the buffer, FALSE to restore it. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::SetMute" HRESULT CKsRenderPin::SetMute ( BOOL fMute ) { HRESULT hr = DS_OK; LONG lVolume; DPF_ENTER(); if(fMute != m_fMute) { if(IS_VALID_NODE(m_pKsDevice->m_paTopologyInformation[m_ulPinId].MuteNode.NodeId)) { hr = KsSetPinMute(m_hPin, m_pKsDevice->m_paTopologyInformation[m_ulPinId].MuteNode.NodeId, fMute); } else if (m_dwFlags & DSBCAPS_CTRLVOLUME) // Only try the below if we have a volume node; otherwise, just return OK { lVolume = m_lVolume; m_lVolume = ~m_lVolume; hr = SetVolume(fMute ? DSBVOLUME_MIN : lVolume); if(SUCCEEDED(hr)) { m_lVolume = lVolume; } } if(SUCCEEDED(hr)) { m_fMute = fMute; } } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetSrcQuality * * Description: * Sets the quality of the pin's sample rate converter. * * Arguments: * DIRECTSOUNDMIXER_SRCQUALITY [in]: new quality. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::SetSrcQuality" HRESULT CKsRenderPin::SetSrcQuality ( DIRECTSOUNDMIXER_SRCQUALITY nSrcQuality ) { ULONG aulKsQuality[] = { KSAUDIO_QUALITY_WORST, KSAUDIO_QUALITY_PC, KSAUDIO_QUALITY_BASIC, KSAUDIO_QUALITY_ADVANCED }; HRESULT hr = DS_OK; DPF_ENTER(); ASSERT(nSrcQuality >= 0 && nSrcQuality < NUMELMS(aulKsQuality)); if(nSrcQuality != m_nSrcQuality) { if(IS_VALID_NODE(m_pKsDevice->m_paTopologyInformation[m_ulPinId].SrcNode.NodeId)) { hr = KsSetNodeProperty(m_hPin, KSPROPSETID_Audio, KSPROPERTY_AUDIO_QUALITY, m_pKsDevice->m_paTopologyInformation[m_ulPinId].SrcNode.NodeId, &aulKsQuality[nSrcQuality], sizeof(aulKsQuality[nSrcQuality])); } else { hr = DSERR_UNSUPPORTED; } if(SUCCEEDED(hr)) { m_nSrcQuality = nSrcQuality; } } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetVolume * * Description: * Sets the attenuation for each channel. * * Arguments: * LONG [in]: attenuation. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::SetVolume" HRESULT CKsRenderPin::SetVolume ( LONG lVolume ) { HRESULT hr = DS_OK; LONG lLevel; DPF_ENTER(); if(lVolume != m_lVolume) { ASSERT(m_dwFlags & DSBCAPS_CTRLVOLUME); ASSERT(IS_VALID_NODE(m_pKsDevice->m_paTopologyInformation[m_ulPinId].VolumeNode.Node.NodeId)); lLevel = DsAttenuationToKsVolume(lVolume, &m_pKsDevice->m_paTopologyInformation[m_ulPinId].VolumeNode.VolumeRange); hr = KsSetChannelProperty(m_hPin, KSPROPSETID_Audio, KSPROPERTY_AUDIO_VOLUMELEVEL, m_pKsDevice->m_paTopologyInformation[m_ulPinId].VolumeNode.Node.NodeId, -1, &lLevel, sizeof(lLevel)); if(SUCCEEDED(hr)) { m_lVolume = lVolume; } else { DPF(DPFLVL_ERROR, "Unable to set local volume"); } } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetPan * * Description: * Sets the attenuation for each channel. * * Arguments: * LONG [in]: attenuation. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::SetPan" HRESULT CKsRenderPin::SetPan ( LONG lPan ) { HRESULT hr = DS_OK; ULONG ulChannel; LONG lLevel; LONG lPanValue[2]; DPF_ENTER(); if(lPan != m_lPan) { ASSERT(m_dwFlags & DSBCAPS_CTRLPAN); ASSERT(IS_VALID_NODE(m_pKsDevice->m_paTopologyInformation[m_ulPinId].PanNode.Node.NodeId)); VolumePanToAttenuation(DSBVOLUME_MAX, lPan, &lPanValue[0], &lPanValue[1]); for(ulChannel = 0; ulChannel < 2; ulChannel++) { lLevel = DsAttenuationToKsVolume(lPanValue[ulChannel], &m_pKsDevice->m_paTopologyInformation[m_ulPinId].PanNode.VolumeRange); hr = KsSetChannelProperty(m_hPin, KSPROPSETID_Audio, KSPROPERTY_AUDIO_VOLUMELEVEL, m_pKsDevice->m_paTopologyInformation[m_ulPinId].PanNode.Node.NodeId, ulChannel, &lLevel, sizeof(lLevel)); if(FAILED(hr)) { DPF(DPFLVL_ERROR, "Unable to set local pan on channel %lu", ulChannel); break; } } if(SUCCEEDED(hr)) { m_lPan = lPan; } } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetSuperMix * * Description: * Sets up this pin's supermix node for multichannel pan control. * (By making every input channel present on all output channels.) * * Arguments: * (void) * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::SetSuperMix" HRESULT CKsRenderPin::SetSuperMix(void) { PKSAUDIO_MIXCAP_TABLE pMixcapTable = NULL; PKSAUDIO_MIXLEVEL pMixLevels = NULL; ULONG ulSuperMixNodeId = m_pKsDevice->m_paTopologyInformation[m_ulPinId].SuperMixNode.NodeId; HRESULT hr = DS_OK; DPF_ENTER(); ASSERT(IS_VALID_NODE(ulSuperMixNodeId)); // If this is a common-or-garden 2-channel pin, it already has the supermix // table set up correctly for CTRLCHANNELVOLUME, so we just return success. if (m_pKsDevice->m_ulChannelCount != 2) { // In the interest of speed, rather than make two system calls we // assume that there are at most 2 inputs and 32 outputs, so that // the most MixCaps structures we can ever get back are 64: size_t nMixcapTableSize = sizeof(KSAUDIO_MIXCAP_TABLE) + 64 * sizeof(KSAUDIO_MIX_CAPS); pMixcapTable = (PKSAUDIO_MIXCAP_TABLE) MEMALLOC_A(CHAR, nMixcapTableSize); hr = HRFROMP(pMixcapTable); if (SUCCEEDED(hr)) { DPF(DPFLVL_MOREINFO, "Reading supermix table on node id %d", ulSuperMixNodeId); hr = KsGetNodeProperty(m_hPin, KSPROPSETID_Audio, KSPROPERTY_AUDIO_MIX_LEVEL_CAPS, ulSuperMixNodeId, pMixcapTable, nMixcapTableSize); } if (SUCCEEDED(hr)) { DPF(DPFLVL_MOREINFO, "Supermix table has %d inputs and %d outputs", pMixcapTable->InputChannels, pMixcapTable->OutputChannels); ASSERT(pMixcapTable->InputChannels <= 2); ASSERT(pMixcapTable->OutputChannels <= 32); if (pMixcapTable->OutputChannels != m_pKsDevice->m_ulChannelCount) DPF(DPFLVL_WARNING, "Supermix node has %d outputs, but there are %d bits set in the pan node's CHANNEL_CONFIG", pMixcapTable->OutputChannels, m_pKsDevice->m_ulChannelCount); pMixLevels = MEMALLOC_A(KSAUDIO_MIXLEVEL, pMixcapTable->InputChannels * pMixcapTable->OutputChannels); hr = HRFROMP(pMixLevels); } if (SUCCEEDED(hr)) { hr = KsGetNodeProperty(m_hPin, KSPROPSETID_Audio, KSPROPERTY_AUDIO_MIX_LEVEL_TABLE, ulSuperMixNodeId, pMixLevels, sizeof(KSAUDIO_MIXLEVEL) * pMixcapTable->InputChannels * pMixcapTable->OutputChannels); } if (SUCCEEDED(hr)) { // Set up the supermix table so that every input is present on all outputs. for (ULONG m=0; m<pMixcapTable->InputChannels; ++m) { for (ULONG n=0; n<pMixcapTable->OutputChannels; ++n) { PKSAUDIO_MIXLEVEL pMixLevel = pMixLevels + m*pMixcapTable->OutputChannels + n; pMixLevel->Mute = FALSE; pMixLevel->Level = 0; // Means "no attenuation" - full signal. } } hr = KsSetNodeProperty(m_hPin, KSPROPSETID_Audio, KSPROPERTY_AUDIO_MIX_LEVEL_TABLE, ulSuperMixNodeId, pMixLevels, sizeof(KSAUDIO_MIXLEVEL) * pMixcapTable->InputChannels * pMixcapTable->OutputChannels); } if (pMixLevels) MEMFREE(pMixLevels); if (pMixcapTable) MEMFREE(pMixcapTable); // If the property set calls failed, return DSERR_CONTROLUNAVAIL if (FAILED(hr) && hr != DSERR_OUTOFMEMORY) hr = DSERR_CONTROLUNAVAIL; } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetChannelLevels * * Description: * Sets the attenuation for each channel. * * Arguments: * DWORD [in]: number of channels * const LONG * [in]: channel attenuation levels * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::SetChannelLevels" HRESULT CKsRenderPin::SetChannelLevels ( DWORD dwChannelCount, const LONG * plChannelVolumes ) { ULONG ulPanNodeId = m_pKsDevice->m_paTopologyInformation[m_ulPinId].PanNode.Node.NodeId; HRESULT hr = DS_OK; DPF_ENTER(); ASSERT(IS_VALID_NODE(ulPanNodeId)); if (dwChannelCount != m_pKsDevice->m_ulChannelCount) DPF(DPFLVL_WARNING, "Called with dwChannelCount = %d, but no. of bits set in pan node's CHANNEL_CONFIG = %d", dwChannelCount, m_pKsDevice->m_ulChannelCount); for (DWORD dwChan=0; dwChan<dwChannelCount && SUCCEEDED(hr); ++dwChan) { LONG lLevel = DsAttenuationToKsVolume(plChannelVolumes[dwChan], &m_pKsDevice->m_paTopologyInformation[m_ulPinId].PanNode.VolumeRange); hr = KsSetChannelProperty(m_hPin, KSPROPSETID_Audio, KSPROPERTY_AUDIO_VOLUMELEVEL, ulPanNodeId, dwChan, &lLevel, sizeof lLevel); if (FAILED(hr)) DPF(DPFLVL_WARNING, "Failed to set level %ld on channel %d", lLevel, dwChan); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetPlayState * * Description: * Sets the buffer to a "play" state. * * Arguments: * LPCVOID [in]: data buffer pointer. * DWORD [in]: size of data bufer. * BOOL [in]: TRUE to play looped. * HANDLE [in]: overlapped event handle. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::SetPlayState" HRESULT CKsRenderPin::SetPlayState ( LPCVOID pvBuffer, DWORD cbBuffer, BOOL fLoop, HANDLE hEvent ) { HRESULT hr; BOOL fStreamStarted = FALSE; DPF_ENTER(); // If we're already playing, stop the buffer before contining hr = SetStopState(FALSE, TRUE); // Update the buffer state flags if(SUCCEEDED(hr)) { m_dwState = VAD_BUFFERSTATE_STARTED; if(fLoop) { m_dwState |= VAD_BUFFERSTATE_LOOPING; } } // Set up the OVERLAPPED data if(SUCCEEDED(hr)) { m_kssio.Overlapped.hEvent = hEvent; } // Feed the stream if(SUCCEEDED(hr)) { hr = KsWriteStream(m_hPin, pvBuffer, cbBuffer, fLoop ? KSSTREAM_HEADER_OPTIONSF_LOOPEDDATA : 0, &m_kssio); } // Set the play cursor position if(SUCCEEDED(hr)) { fStreamStarted = TRUE; hr = SetCursorPosition(m_dwPositionCache); } // Start making noise if(SUCCEEDED(hr)) { hr = KsSetState(m_hPin, KSSTATE_RUN); } // Clean up if(FAILED(hr)) { if (fStreamStarted) { // Stream was started, but we're going back to the stop state. // Make sure we don't leave stream I/O hanging around. KsCancelPendingIrps(m_hPin, &m_kssio, TRUE); } m_dwState = VAD_BUFFERSTATE_STOPPED; } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * SetStopState * * Description: * Sets the buffer to a "stop" state. * * Arguments: * BOOL [in]: TRUE if pin played to completion and is being notified * of the event. * BOOL [in]: TRUE to cache the pin position. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::SetStopState" HRESULT CKsRenderPin::SetStopState ( BOOL fNaturalStop, BOOL fCachePosition ) { HRESULT hr = DS_OK; DPF_ENTER(); if(m_dwState & VAD_BUFFERSTATE_STARTED) { if(fNaturalStop) { ASSERT(m_kssio.fPendingIrp); m_kssio.fPendingIrp = FALSE; fCachePosition = FALSE; } // Pause the pin hr = KsSetState(m_hPin, KSSTATE_PAUSE); // Cache the play cursor position if(SUCCEEDED(hr)) { if(fCachePosition) { hr = GetCursorPosition(&m_dwPositionCache, NULL); } else { m_dwPositionCache = 0; } } // Cancel the pending write IRP if(SUCCEEDED(hr) && m_kssio.fPendingIrp) { hr = KsCancelPendingIrps(m_hPin, &m_kssio, TRUE); } // Update the buffer state flags if(SUCCEEDED(hr)) { m_dwState = VAD_BUFFERSTATE_STOPPED; } } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * EnableNotificationPositions * * Description: * Enables set position notifications. * * Arguments: * LPCDSBPOSITIONNOTIFY [in]: notification positions. * DWORD [in]: count of notification positions. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::EnableNotificationPositions" HRESULT CKsRenderPin::EnableNotificationPositions ( LPCDSBPOSITIONNOTIFY paNotes, DWORD cNotes ) { PLOOPEDSTREAMING_POSITION_EVENT_DATA pEventData; HRESULT hr; DPF_ENTER(); // Disable any current notifications hr = DisableNotificationPositions(); // Count the number of notifications for(DWORD i=0; i<cNotes && SUCCEEDED(hr); i++) { if(DSBPN_OFFSETSTOP != paNotes[i].dwOffset) { m_cEventData++; } } // Allocate event data if(SUCCEEDED(hr)) { m_paEventData = MEMALLOC_A(LOOPEDSTREAMING_POSITION_EVENT_DATA, m_cEventData); hr = HRFROMP(m_paEventData); } // Enable notifications for(pEventData = m_paEventData, i = 0; i < cNotes && SUCCEEDED(hr); i++) { if(DSBPN_OFFSETSTOP == paNotes[i].dwOffset) { continue; } hr = KsEnablePositionEvent(m_hPin, paNotes[i].dwOffset, paNotes[i].hEventNotify, pEventData++); if(FAILED(hr)) { RPF(DPFLVL_ERROR, "Unable to set notify number %lu", i); } } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * DisableNotificationPositions * * Description: * Removes position notifications and frees allocated resources. * * Arguments: * (void) * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPin::DisableNotificationPositions" HRESULT CKsRenderPin::DisableNotificationPositions ( void ) { HRESULT hr = DS_OK; DPF_ENTER(); // Disable all position notification events for(DWORD i=0; i<m_cEventData && SUCCEEDED(hr); i++) { hr = KsDisablePositionEvent(m_hPin, &m_paEventData[i]); if(FAILED(hr)) DPF(DPFLVL_ERROR, "Unable to disable notify number %lu", i); } MEMFREE(m_paEventData); m_cEventData = 0; DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * CKsRenderPinCache * * Description: * Object constructor. * * Arguments: * (void) * * Returns: * (void) * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPinCache::CKsRenderPinCache" const DWORD CKsRenderPinCache::m_dwTimeout = 5000; // 5 seconds CKsRenderPinCache::CKsRenderPinCache ( void ) { DPF_ENTER(); DPF_CONSTRUCT(CKsRenderPinCache); DPF_LEAVE_VOID(); } /*************************************************************************** * * ~CKsRenderPinCache * * Description: * Object destructor. * * Arguments: * (void) * * Returns: * (void) * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPinCache::~CKsRenderPinCache" CKsRenderPinCache::~CKsRenderPinCache ( void ) { DPF_ENTER(); DPF_DESTRUCT(CKsRenderPinCache); // Flush any remaining pins from the cache FlushCache(); DPF_LEAVE_VOID(); } /*************************************************************************** * * AddPinToCache * * Description: * Adds a pin to the cache. * * Arguments: * CKsRenderPin * [in]: pin cache data. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPinCache::AddPinToCache" HRESULT CKsRenderPinCache::AddPinToCache ( CKsRenderPin * pPin ) { CNode<KSPINCACHE> * pNode; KSPINCACHE kspc; HRESULT hr; DPF_ENTER(); // Remove any expired pins from the cache FlushExpiredPins(); // Add the pin to the cache list kspc.Pin = ADDREF(pPin); kspc.CacheTime = GetTickCount(); pNode = m_lstPinCache.AddNodeToList(kspc); hr = HRFROMP(pNode); DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * GetPinFromCache * * Description: * Gets a pin from the cache. * * Arguments: * DWORD [in]: dsound buffer flags. * LPCWAVEFORMATEX: * REFGUID: * CKsRenderPin ** [out]: receives pin data. * * Returns: * HRESULT: DirectSound/COM result code. * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPinCache::GetPinFromCache" HRESULT CKsRenderPinCache::GetPinFromCache ( DWORD dwFlags, LPCWAVEFORMATEX pwfxFormat, REFGUID guid3dAlgorithm, CKsRenderPin ** ppPin ) { HRESULT hr = DS_OK; COMPAREBUFFER cmp[2]; CNode<KSPINCACHE> * pNode; DPF_ENTER(); cmp[0].dwFlags = dwFlags; cmp[0].pwfxFormat = pwfxFormat; cmp[0].guid3dAlgorithm = guid3dAlgorithm; for(pNode = m_lstPinCache.GetListHead(); pNode; pNode = pNode->m_pNext) { cmp[1].dwFlags = pNode->m_data.Pin->m_dwFlags; cmp[1].pwfxFormat = pNode->m_data.Pin->m_pwfxFormat; cmp[1].guid3dAlgorithm = pNode->m_data.Pin->m_guid3dAlgorithm; if(CompareBufferProperties(&cmp[0], &cmp[1])) { break; } } if(!pNode) { hr = DSERR_BADFORMAT; } if(SUCCEEDED(hr)) { *ppPin = ADDREF(pNode->m_data.Pin); RemovePinFromCache(pNode); } DPF_LEAVE_HRESULT(hr); return hr; } /*************************************************************************** * * RemovePinFromCache * * Description: * Removes a pin from the cache. * * Arguments: * CNode<KSPINCACHE> * [in]: pin node. * * Returns: * (void) * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPinCache::RemovePinFromCache" void CKsRenderPinCache::RemovePinFromCache ( CNode<KSPINCACHE> * pNode ) { DPF_ENTER(); // Free the pin RELEASE(pNode->m_data.Pin); // Remove the pin from the list m_lstPinCache.RemoveNodeFromList(pNode); DPF_LEAVE_VOID(); } /*************************************************************************** * * FlushExpiredPins * * Description: * Removes expired pins from the cache. * * Arguments: * (void) * * Returns: * (void) * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPinCache::FlushExpiredPins" void CKsRenderPinCache::FlushExpiredPins ( void ) { const DWORD dwTime = GetTickCount(); CNode<KSPINCACHE> * pNode; CNode<KSPINCACHE> * pNext; DPF_ENTER(); // Remove all pins whose timeouts have elapsed pNode = m_lstPinCache.GetListHead(); while(pNode) { pNext = pNode->m_pNext; if(pNode->m_data.CacheTime + m_dwTimeout <= dwTime) { RemovePinFromCache(pNode); } pNode = pNext; } DPF_LEAVE_VOID(); } /*************************************************************************** * * FlushCache * * Description: * Removes all pins from the cache. * * Arguments: * (void) * * Returns: * (void) * ***************************************************************************/ #undef DPF_FNAME #define DPF_FNAME "CKsRenderPinCache::FlushCache" void CKsRenderPinCache::FlushCache ( void ) { CNode<KSPINCACHE> * pNode; DPF_ENTER(); // Remove all pins from the cache while(pNode = m_lstPinCache.GetListHead()) { RemovePinFromCache(pNode); } DPF_LEAVE_VOID(); }
cd4e0ae781b6b55575bae2d22a95a3dd9e5677b3
cfeac52f970e8901871bd02d9acb7de66b9fb6b4
/generated/src/aws-cpp-sdk-workspaces-web/source/model/AssociateUserSettingsRequest.cpp
9442eb4a7fcb743836f601556572368885051d19
[ "Apache-2.0", "MIT", "JSON" ]
permissive
aws/aws-sdk-cpp
aff116ddf9ca2b41e45c47dba1c2b7754935c585
9a7606a6c98e13c759032c2e920c7c64a6a35264
refs/heads/main
2023-08-25T11:16:55.982089
2023-08-24T18:14:53
2023-08-24T18:14:53
35,440,404
1,681
1,133
Apache-2.0
2023-09-12T15:59:33
2015-05-11T17:57:32
null
UTF-8
C++
false
false
975
cpp
AssociateUserSettingsRequest.cpp
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/workspaces-web/model/AssociateUserSettingsRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/http/URI.h> #include <aws/core/utils/memory/stl/AWSStringStream.h> #include <utility> using namespace Aws::WorkSpacesWeb::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws::Http; AssociateUserSettingsRequest::AssociateUserSettingsRequest() : m_portalArnHasBeenSet(false), m_userSettingsArnHasBeenSet(false) { } Aws::String AssociateUserSettingsRequest::SerializePayload() const { return {}; } void AssociateUserSettingsRequest::AddQueryStringParameters(URI& uri) const { Aws::StringStream ss; if(m_userSettingsArnHasBeenSet) { ss << m_userSettingsArn; uri.AddQueryStringParameter("userSettingsArn", ss.str()); ss.str(""); } }
64c3bf46c8129bed2f1cdd2dd6fa87dac10833da
399a6763af6d388ae654c5b28b71a53d60d7d5ea
/modbusMaster.cpp
bf98f9b44048e9d46df64796545914bb819b91dd
[]
no_license
juancarrascom/qt_modbus_demo
63cd827c1b296b3fdef40b55c9a35edd236d1b0e
9a57bda9d8625580800aaefaa38c4775ddc1eb91
refs/heads/main
2023-08-22T19:26:33.561088
2021-10-06T10:29:19
2021-10-06T10:29:19
414,166,246
0
0
null
null
null
null
UTF-8
C++
false
false
4,779
cpp
modbusMaster.cpp
#include "modbusMaster.h" #include <QDebug> modbusMaster::modbusMaster(QObject *parent) : QObject(parent) { qDebug()<<"Init mosbusMaster Class"; } bool modbusMaster::initModbusSerialMaster(QString portName, QSerialPort::BaudRate baudRate, QSerialPort::DataBits dataBits, QSerialPort::Parity parity, QSerialPort::StopBits stopBits) { m_master = new QModbusRtuSerialMaster(this); if(!m_master) { qDebug()<<"init master error"; return 0; } m_master->setConnectionParameter(QModbusDevice::SerialPortNameParameter, portName); m_master->setConnectionParameter(QModbusDevice::SerialBaudRateParameter, baudRate); m_master->setConnectionParameter(QModbusDevice::SerialDataBitsParameter, dataBits); m_master->setConnectionParameter(QModbusDevice::SerialParityParameter, parity); m_master->setConnectionParameter(QModbusDevice::SerialStopBitsParameter, stopBits); return 1; } bool modbusMaster::connectDevice() { m_master->connectDevice(); return 1; } bool modbusMaster::disconnectDevice() { m_master->disconnectDevice(); } bool modbusMaster::writeRegisterData(QString str, int startAddress, int num) { QByteArray byte = QByteArray::fromHex(str.toLatin1().data()); QString hexStr = byte.toHex().data(); // enviar información de datos QModbusDataUnit writeUnit(QModbusDataUnit::HoldingRegisters ,startAddress,num); // el tipo de registro recibido a la tabla QModbusDataUnit::RegisterType table = writeUnit.registerType(); for(int i = 0;i < writeUnit.valueCount(); i++) { int j = 2*i; QString str = hexStr.mid(j,2); bool ok; int hex = str.toInt(&ok,16); writeUnit.setValue(i,hex); } if(auto* reply = m_master->sendWriteRequest(writeUnit,0x01)) { if(!reply->isFinished()) { connect(reply,&QModbusReply::finished,this,[this,reply]() { if(reply->error() == QModbusDevice::ProtocolError) { qDebug()<<"write response Protocol Error:"<<reply->errorString(); return 0; } else if(reply->error() != QModbusDevice::NoError) { qDebug()<<"write response error:"<<reply->errorString(); return 0; } reply->deleteLater(); }); } else { reply->deleteLater(); return 1; } } else { qDebug()<<"write error: "<<m_master->errorString(); return 0; } } void modbusMaster::readRegisterData(quint16 startAddress, quint16 num, quint16 slaveAddress) { if(!m_master) return; m_master->setTimeout(10); qDebug()<<m_master->timeout(); qDebug()<<"Read Register Data"; QModbusDataUnit readUnit(QModbusDataUnit::HoldingRegisters,startAddress,num); if(auto *reply = m_master->sendReadRequest(readUnit,slaveAddress)) { if(!reply->isFinished()) QObject::connect(reply,&QModbusReply::finished,this,&modbusMaster::readyRead); else delete reply; } else { qDebug()<<"Read error: "<<m_master->errorString(); } } void modbusMaster::readyRead() { qDebug()<<"Ready Read"; auto reply = qobject_cast<QModbusReply*>(sender()); if(!reply) return; qDebug()<<reply->rawResult(); QList<uint8_t> sensor_value; if(reply->error() == QModbusDevice::NoError) { const QModbusDataUnit unit = reply->result(); for(uint i=0; i< unit.valueCount();i++) { const QString entry = tr("Address: %1, Value: %2").arg(unit.startAddress() + i) .arg(QString::number(unit.value(i), unit.registerType() <= QModbusDataUnit::Coils ? 10 : 16)); sensor_value.append(unit.value(i)); // qDebug()<<entry; } qDebug()<<sensor_value; } else if (reply->error() == QModbusDevice::ProtocolError) { qDebug()<<"Protocol Error: "<<reply->errorString(); qDebug()<<"Modbus Exception: "<<reply->rawResult().exceptionCode(); } else { qDebug()<<"Read response error:"<<reply->errorString(); qDebug()<<"code: "<<reply->error(); } reply->deleteLater(); }
e73456a7c6753f2977ebcfc42be92573247f1d5a
40074bb9c41a722e9d5d0384312d7f89df3f05d9
/backgroundkeepalive/src/main/cpp/keep-alive.cpp
30e5c39d60faa33d9d7de1880ce1475b790f808e
[ "Apache-2.0" ]
permissive
happyduak/AndroidOpen
6cd009d91567bcc3831d34da18222f6280b9e2c4
eacb223b01f8797c883d97000e37d1dc85ce6ab3
refs/heads/master
2020-03-22T15:00:29.187630
2017-11-09T11:30:31
2017-11-09T11:30:31
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,913
cpp
keep-alive.cpp
// // Created by shenhua on 2017-11-08-0008. // #include <jni.h> #include <string> #include <android/log.h> #include <fcntl.h> #include <sys/wait.h> #include <stdlib.h> #include <sys/stat.h> #define THREAD_COUNT 1 #define LOG_TAG "JNI LOG" #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG, __VA_ARGS__) #define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__) JavaVM *jvm = NULL; jobject jobj = NULL; const char *jServiceName; void *thread(void *arg); int isServiceExist(); void runService(); extern "C" JNIEXPORT void JNICALL Java_com_shenhua_backgroundkeepalive_MainActivity_startJniService(JNIEnv *env, jobject instance, jstring service) { LOGD("jni start......"); jServiceName = env->GetStringUTFChars(service, JNI_FALSE); env->GetJavaVM(&jvm); jobj = env->NewGlobalRef(instance); pthread_t pt[THREAD_COUNT]; for (int i = 0; i < THREAD_COUNT; ++i) { pthread_create(&pt[i], NULL, &thread, (void *) i); } } JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) { JNIEnv *env = NULL; jint result = -1; if (vm->GetEnv((void **) &env, JNI_VERSION_1_4) != JNI_OK) { LOGE("GetEnv failed!"); return result; } return JNI_VERSION_1_4; } void *thread(void *arg) { JNIEnv *env; jclass jclazz; jmethodID jmid; if (jvm->AttachCurrentThread(&env, NULL) != JNI_OK) { LOGE("%s: AttachCurrentThread failed.", __FUNCTION__); return NULL; } jclazz = env->GetObjectClass(jobj); if (jclazz == NULL) { LOGE("GetObjectClass Error."); goto error; } jmid = env->GetStaticMethodID(jclazz, "fromJNI", "(I)V"); if (jmid == NULL) { LOGE("GetStaticMethodID Error."); goto error; } env->CallStaticVoidMethod(jclazz, jmid, (uintptr_t) arg); // fork一个进程父进程 pid_t pid; struct rlimit r; if ((pid = fork()) < 0) { LOGD("deamon 1--"); perror("fork"); exit(0); } else if (pid != 0) { LOGD("deamon 2--"); } // 第二次fork出来的子进程与父进程脱离了关系 setsid(); umask(0); LOGD("deamon 3--"); if ((pid = fork()) < 0) { LOGD("deamon 4--"); perror("fork"); exit(0); } else if (pid != 0) { LOGD("deamon 5--"); } // 进程活动时,其工作目录所在的文件系统不能卸下 chdir("/"); LOGD("deamon 6--"); if (r.rlim_max == RLIM_INFINITY) { r.rlim_max = 1024; } int isExit; isExit = -3; // isExit = isDeamonExist(); LOGE("start >>> %d: isDeamonExist.", isExit); if (isExit == -1) { return NULL; } while (1) { LOGE("service start success.-----------------"); isExit = isServiceExist(); runService(); LOGD("+++ %d: service id isExit..", isExit); sleep(5); } error: if (jvm->DetachCurrentThread() != JNI_OK) { LOGE("%s: DetachCurrentThread failed.", __FUNCTION__); } pthread_exit(0); } // always return 0; int isServiceExist() { char buf[1024]; char command[1024]; FILE *file; int ret = 0; sprintf(command, "pid of %s", jServiceName); if ((file = popen(command, "r")) == NULL) { LOGE("isServiceExist popen failed"); exit(1); } if ((fgets(buf, 1024, file)) != NULL) { ret = 1; LOGD("isServiceExist pid is:%s", buf); } pclose(file); return ret; } void runService() { FILE *file; char command[1024]; sprintf(command, "am startservice -a %s", jServiceName); LOGD(">>>> run cmd:%s", command); if ((file = popen(command, "r")) == NULL) { LOGE("runService popen failed"); exit(1); } else { LOGD(">>>> runService popen success"); } pclose(file); }
fe8e183d19e8268ddd6809af4cb74969b5477f28
c2f318ed8dd34022421fd13fb378ea54f59d39fd
/source/jit/SpecialFunctions.hpp
3e0a5e58b48fa68850c47d161bcf23155647ac54
[]
no_license
dlaxar/cij-vm
a8f030e1cf9277642a4956ab27ff79fe3733391e
c3c6c30572c090c073e20777dec744ef93bcaae3
refs/heads/master
2020-03-28T12:27:55.158860
2018-09-11T10:35:11
2018-09-11T10:35:11
148,301,232
0
0
null
null
null
null
UTF-8
C++
false
false
1,927
hpp
SpecialFunctions.hpp
#pragma once #include <jit/allocator/memory/HeapAllocator.hpp> #include <jit/JitEngine.hpp> #include <interpreter/InterpretEngine.hpp> #define SPECIAL_FUNCTIONS (8) #define SPECIAL_F_IDX_ALLOCATE (0) #define SPECIAL_F_PTR_ALLOCATE &am2017s::jit::allocator::allocate #define SPECIAL_F_IDX_START (1) #define SPECIAL_F_PTR_START &am2017s::bytecode::special::begin #define SPECIAL_F_IDX_END (2) #define SPECIAL_F_PTR_END &am2017s::bytecode::special::end #define SPECIAL_F_IDX_PRINT_FLOAT (3) #define SPECIAL_F_PTR_PRINT_FLOAT &am2017s::bytecode::special::print_float #define SPECIAL_F_IDX_ALLOC_ARRAY (4) #define SPECIAL_F_PTR_ALLOC_ARRAY &am2017s::jit::allocator::allocate_array #define SPECIAL_F_IDX_PRINTA_INT (5) #define SPECIAL_F_PTR_PRINTA_INT &am2017s::bytecode::special::printa_int; #define SPECIAL_F_IDX_PRINT_DOUBLE (6) #define SPECIAL_F_PTR_PRINT_DOUBLE &am2017s::bytecode::special::print_double; #define SPECIAL_F_IDX_EXIT (7) #define SPECIAL_F_PTR_EXIT &am2017s::bytecode::special::exit; ////// DONT FORGET TO CHANGE SPECIAL_FUNCTIONS ////// DONT FORGET TO CHANGE SPECIAL_FUNCTIONS ////// DONT FORGET TO CHANGE SPECIAL_FUNCTIONS ////// DONT FORGET TO CHANGE SPECIAL_FUNCTIONS namespace am2017s { namespace bytecode { namespace special { u16 resolveSpecialBuiltinOpcodes(u8 builtinOpcode); [[gnu::sysv_abi]] void begin(jit::JitEngine* e); [[gnu::sysv_abi]] void end(jit::JitEngine* e); [[gnu::sysv_abi]] void print_float(jit::JitEngine* e, float f); [[gnu::sysv_abi]] void print_double(jit::JitEngine* e, double f); [[gnu::sysv_abi]] void printa_int(jit::JitEngine* e, i32* array); [[gnu::sysv_abi]] void exit(jit::JitEngine* e, i32 code); [[gnu::sysv_abi]] void begin_int(interpreter::InterpretEngine* e); [[gnu::sysv_abi]] void end_int(interpreter::InterpretEngine* e); }}}
104e09e6ad45f05f30e5f4b856705b9dba8d8d62
73ee941896043f9b3e2ab40028d24ddd202f695f
/external/chromium_org/chrome_frame/crash_reporting/minidump_test.cc
d8aa653e211a8989f95281401e8b27d83e5379b0
[ "BSD-3-Clause" ]
permissive
CyFI-Lab-Public/RetroScope
d441ea28b33aceeb9888c330a54b033cd7d48b05
276b5b03d63f49235db74f2c501057abb9e79d89
refs/heads/master
2022-04-08T23:11:44.482107
2016-09-22T20:15:43
2016-09-22T20:15:43
58,890,600
5
3
null
null
null
null
UTF-8
C++
false
false
15,581
cc
minidump_test.cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <windows.h> #include <dbghelp.h> #include <objbase.h> #include "base/basictypes.h" #include "base/command_line.h" #include "base/file_util.h" #include "base/file_version_info.h" #include "base/files/file_path.h" #include "base/logging.h" #include "base/win/scoped_handle.h" #include "gtest/gtest.h" namespace { // Convenience to get to the PEB pointer in a TEB. struct FakeTEB { char dummy[0x30]; void* peb; }; // Minidump with stacks, PEB, TEB, and unloaded module list. const MINIDUMP_TYPE kSmallDumpType = static_cast<MINIDUMP_TYPE>( MiniDumpWithProcessThreadData | // Get PEB and TEB. MiniDumpWithUnloadedModules); // Get unloaded modules when available. // Minidump with all of the above, plus memory referenced from stack. const MINIDUMP_TYPE kLargerDumpType = static_cast<MINIDUMP_TYPE>( MiniDumpWithProcessThreadData | // Get PEB and TEB. MiniDumpWithUnloadedModules | // Get unloaded modules when available. MiniDumpWithIndirectlyReferencedMemory); // Get memory referenced by stack. // Large dump with all process memory. const MINIDUMP_TYPE kFullDumpType = static_cast<MINIDUMP_TYPE>( MiniDumpWithFullMemory | // Full memory from process. MiniDumpWithProcessThreadData | // Get PEB and TEB. MiniDumpWithHandleData | // Get all handle information. MiniDumpWithUnloadedModules); // Get unloaded modules when available. class MinidumpTest: public testing::Test { public: MinidumpTest() : dump_file_view_(NULL) { } virtual void SetUp() { // Make sure URLMon isn't loaded into our process. ASSERT_EQ(NULL, ::GetModuleHandle(L"urlmon.dll")); // Then load and unload it to ensure we have something to // stock the unloaded module list with. HMODULE urlmon = ::LoadLibrary(L"urlmon.dll"); ASSERT_TRUE(urlmon != NULL); ASSERT_TRUE(::FreeLibrary(urlmon)); ASSERT_TRUE(file_util::CreateTemporaryFile(&dump_file_)); dump_file_handle_.Set(::CreateFile(dump_file_.value().c_str(), GENERIC_WRITE | GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL)); ASSERT_TRUE(dump_file_handle_.IsValid()); } virtual void TearDown() { if (dump_file_view_ != NULL) { EXPECT_TRUE(::UnmapViewOfFile(dump_file_view_)); dump_file_mapping_.Close(); } dump_file_handle_.Close(); EXPECT_TRUE(base::DeleteFile(dump_file_, false)); } void EnsureDumpMapped() { ASSERT_TRUE(dump_file_handle_.IsValid()); if (dump_file_view_ == NULL) { ASSERT_FALSE(dump_file_mapping_.IsValid()); dump_file_mapping_.Set(::CreateFileMapping(dump_file_handle_, NULL, PAGE_READONLY, 0, 0, NULL)); ASSERT_TRUE(dump_file_mapping_.IsValid()); dump_file_view_ = ::MapViewOfFile(dump_file_mapping_.Get(), FILE_MAP_READ, 0, 0, 0); ASSERT_TRUE(dump_file_view_ != NULL); } } bool WriteDump(ULONG flags) { // Fake exception is access violation on write to this. EXCEPTION_RECORD ex_record = { STATUS_ACCESS_VIOLATION, // ExceptionCode 0, // ExceptionFlags NULL, // ExceptionRecord; reinterpret_cast<void*>(0xCAFEBABE), // ExceptionAddress; 2, // NumberParameters; { EXCEPTION_WRITE_FAULT, reinterpret_cast<ULONG_PTR>(this) } }; CONTEXT ctx_record = {}; EXCEPTION_POINTERS ex_ptrs = { &ex_record, &ctx_record, }; MINIDUMP_EXCEPTION_INFORMATION ex_info = { ::GetCurrentThreadId(), &ex_ptrs, FALSE, }; // Capture our register context. ::RtlCaptureContext(&ctx_record); // And write a dump BOOL result = ::MiniDumpWriteDump(::GetCurrentProcess(), ::GetCurrentProcessId(), dump_file_handle_.Get(), static_cast<MINIDUMP_TYPE>(flags), &ex_info, NULL, NULL); VLOG(1) << "Flags: " << flags << " mindump size: " << ::GetFileSize(dump_file_handle_.Get(), NULL); return result == TRUE; } bool DumpHasStream(ULONG stream_number) { EnsureDumpMapped(); MINIDUMP_DIRECTORY* directory = NULL; void* stream = NULL; ULONG stream_size = 0; BOOL ret = ::MiniDumpReadDumpStream(dump_file_view_, stream_number, &directory, &stream, &stream_size); return ret != FALSE && stream != NULL && stream_size > 0; } template <class StreamType> size_t GetStream(ULONG stream_number, StreamType** stream) { EnsureDumpMapped(); MINIDUMP_DIRECTORY* directory = NULL; ULONG memory_list_size = 0; BOOL ret = ::MiniDumpReadDumpStream(dump_file_view_, stream_number, &directory, reinterpret_cast<void**>(stream), &memory_list_size); return ret ? memory_list_size : 0; } bool DumpHasTebs() { MINIDUMP_THREAD_LIST* thread_list = NULL; size_t thread_list_size = GetStream(ThreadListStream, &thread_list); if (thread_list_size > 0 && thread_list != NULL) { for (ULONG i = 0; i < thread_list->NumberOfThreads; ++i) { if (!DumpHasMemory(thread_list->Threads[i].Teb)) return false; } return true; } // No thread list, no TEB info. return false; } bool DumpHasPeb() { MINIDUMP_THREAD_LIST* thread_list = NULL; size_t thread_list_size = GetStream(ThreadListStream, &thread_list); if (thread_list_size > 0 && thread_list != NULL && thread_list->NumberOfThreads > 0) { FakeTEB* teb = NULL; if (!DumpHasMemory(thread_list->Threads[0].Teb, &teb)) return false; return DumpHasMemory(teb->peb); } return false; } bool DumpHasMemory(ULONG64 address) { return DumpHasMemory<uint8>(address, NULL); } bool DumpHasMemory(const void* address) { return DumpHasMemory<uint8>(address, NULL); } template <class StructureType> bool DumpHasMemory(ULONG64 address, StructureType** structure = NULL) { // We can't cope with 64 bit addresses for now. if (address > 0xFFFFFFFFUL) return false; return DumpHasMemory(reinterpret_cast<void*>(address), structure); } template <class StructureType> bool DumpHasMemory(const void* addr_in, StructureType** structure = NULL) { uintptr_t address = reinterpret_cast<uintptr_t>(addr_in); MINIDUMP_MEMORY_LIST* memory_list = NULL; size_t memory_list_size = GetStream(MemoryListStream, &memory_list); if (memory_list_size > 0 && memory_list != NULL) { for (ULONG i = 0; i < memory_list->NumberOfMemoryRanges; ++i) { MINIDUMP_MEMORY_DESCRIPTOR& descr = memory_list->MemoryRanges[i]; const uintptr_t range_start = static_cast<uintptr_t>(descr.StartOfMemoryRange); uintptr_t range_end = range_start + descr.Memory.DataSize; if (address >= range_start && address + sizeof(StructureType) < range_end) { // The start address falls in the range, and the end address is // in bounds, return a pointer to the structure if requested. if (structure != NULL) *structure = reinterpret_cast<StructureType*>( RVA_TO_ADDR(dump_file_view_, descr.Memory.Rva)); return true; } } } // We didn't find the range in a MINIDUMP_MEMORY_LIST, so maybe this // is a full dump using MINIDUMP_MEMORY64_LIST with all the memory at the // end of the dump file. MINIDUMP_MEMORY64_LIST* memory64_list = NULL; memory_list_size = GetStream(Memory64ListStream, &memory64_list); if (memory_list_size > 0 && memory64_list != NULL) { // Keep track of where the current descriptor maps to. RVA64 curr_rva = memory64_list->BaseRva; for (ULONG i = 0; i < memory64_list->NumberOfMemoryRanges; ++i) { MINIDUMP_MEMORY_DESCRIPTOR64& descr = memory64_list->MemoryRanges[i]; uintptr_t range_start = static_cast<uintptr_t>(descr.StartOfMemoryRange); uintptr_t range_end = range_start + static_cast<size_t>(descr.DataSize); if (address >= range_start && address + sizeof(StructureType) < range_end) { // The start address falls in the range, and the end address is // in bounds, return a pointer to the structure if requested. if (structure != NULL) *structure = reinterpret_cast<StructureType*>( RVA_TO_ADDR(dump_file_view_, curr_rva)); return true; } // Advance the current RVA. curr_rva += descr.DataSize; } } return false; } protected: base::win::ScopedHandle dump_file_handle_; base::win::ScopedHandle dump_file_mapping_; void* dump_file_view_; base::FilePath dump_file_; }; TEST_F(MinidumpTest, Version) { API_VERSION* version = ::ImagehlpApiVersion(); VLOG(1) << "Imagehlp Api Version: " << version->MajorVersion << "." << version->MinorVersion << "." << version->Revision; HMODULE dbg_help = ::GetModuleHandle(L"dbghelp.dll"); ASSERT_TRUE(dbg_help != NULL); wchar_t dbg_help_file[1024] = {}; ASSERT_TRUE(::GetModuleFileName(dbg_help, dbg_help_file, arraysize(dbg_help_file))); scoped_ptr<FileVersionInfo> file_info( FileVersionInfo::CreateFileVersionInfo(base::FilePath(dbg_help_file))); ASSERT_TRUE(file_info != NULL); VLOG(1) << "DbgHelp.dll version: " << file_info->file_version(); } TEST_F(MinidumpTest, Normal) { EXPECT_TRUE(WriteDump(MiniDumpNormal)); // We expect threads, modules and some memory. EXPECT_TRUE(DumpHasStream(ThreadListStream)); EXPECT_TRUE(DumpHasStream(ModuleListStream)); EXPECT_TRUE(DumpHasStream(MemoryListStream)); EXPECT_TRUE(DumpHasStream(ExceptionStream)); EXPECT_TRUE(DumpHasStream(SystemInfoStream)); EXPECT_TRUE(DumpHasStream(MiscInfoStream)); EXPECT_FALSE(DumpHasStream(ThreadExListStream)); EXPECT_FALSE(DumpHasStream(Memory64ListStream)); EXPECT_FALSE(DumpHasStream(CommentStreamA)); EXPECT_FALSE(DumpHasStream(CommentStreamW)); EXPECT_FALSE(DumpHasStream(HandleDataStream)); EXPECT_FALSE(DumpHasStream(FunctionTableStream)); EXPECT_FALSE(DumpHasStream(UnloadedModuleListStream)); EXPECT_FALSE(DumpHasStream(MemoryInfoListStream)); EXPECT_FALSE(DumpHasStream(ThreadInfoListStream)); EXPECT_FALSE(DumpHasStream(HandleOperationListStream)); EXPECT_FALSE(DumpHasStream(TokenStream)); // We expect no PEB nor TEBs in this dump. EXPECT_FALSE(DumpHasTebs()); EXPECT_FALSE(DumpHasPeb()); // We expect no off-stack memory in this dump. EXPECT_FALSE(DumpHasMemory(this)); } TEST_F(MinidumpTest, SmallDump) { ASSERT_TRUE(WriteDump(kSmallDumpType)); EXPECT_TRUE(DumpHasStream(ThreadListStream)); EXPECT_TRUE(DumpHasStream(ModuleListStream)); EXPECT_TRUE(DumpHasStream(MemoryListStream)); EXPECT_TRUE(DumpHasStream(ExceptionStream)); EXPECT_TRUE(DumpHasStream(SystemInfoStream)); EXPECT_TRUE(DumpHasStream(UnloadedModuleListStream)); EXPECT_TRUE(DumpHasStream(MiscInfoStream)); // We expect PEB and TEBs in this dump. EXPECT_TRUE(DumpHasTebs()); EXPECT_TRUE(DumpHasPeb()); EXPECT_FALSE(DumpHasStream(ThreadExListStream)); EXPECT_FALSE(DumpHasStream(Memory64ListStream)); EXPECT_FALSE(DumpHasStream(CommentStreamA)); EXPECT_FALSE(DumpHasStream(CommentStreamW)); EXPECT_FALSE(DumpHasStream(HandleDataStream)); EXPECT_FALSE(DumpHasStream(FunctionTableStream)); EXPECT_FALSE(DumpHasStream(MemoryInfoListStream)); EXPECT_FALSE(DumpHasStream(ThreadInfoListStream)); EXPECT_FALSE(DumpHasStream(HandleOperationListStream)); EXPECT_FALSE(DumpHasStream(TokenStream)); // We expect no off-stack memory in this dump. EXPECT_FALSE(DumpHasMemory(this)); } TEST_F(MinidumpTest, LargerDump) { ASSERT_TRUE(WriteDump(kLargerDumpType)); // The dump should have all of these streams. EXPECT_TRUE(DumpHasStream(ThreadListStream)); EXPECT_TRUE(DumpHasStream(ModuleListStream)); EXPECT_TRUE(DumpHasStream(MemoryListStream)); EXPECT_TRUE(DumpHasStream(ExceptionStream)); EXPECT_TRUE(DumpHasStream(SystemInfoStream)); EXPECT_TRUE(DumpHasStream(UnloadedModuleListStream)); EXPECT_TRUE(DumpHasStream(MiscInfoStream)); // We expect memory referenced by stack in this dump. EXPECT_TRUE(DumpHasMemory(this)); // We expect PEB and TEBs in this dump. EXPECT_TRUE(DumpHasTebs()); EXPECT_TRUE(DumpHasPeb()); EXPECT_FALSE(DumpHasStream(ThreadExListStream)); EXPECT_FALSE(DumpHasStream(Memory64ListStream)); EXPECT_FALSE(DumpHasStream(CommentStreamA)); EXPECT_FALSE(DumpHasStream(CommentStreamW)); EXPECT_FALSE(DumpHasStream(HandleDataStream)); EXPECT_FALSE(DumpHasStream(FunctionTableStream)); EXPECT_FALSE(DumpHasStream(MemoryInfoListStream)); EXPECT_FALSE(DumpHasStream(ThreadInfoListStream)); EXPECT_FALSE(DumpHasStream(HandleOperationListStream)); EXPECT_FALSE(DumpHasStream(TokenStream)); } TEST_F(MinidumpTest, FullDump) { ASSERT_TRUE(WriteDump(kFullDumpType)); // The dump should have all of these streams. EXPECT_TRUE(DumpHasStream(ThreadListStream)); EXPECT_TRUE(DumpHasStream(ModuleListStream)); EXPECT_TRUE(DumpHasStream(Memory64ListStream)); EXPECT_TRUE(DumpHasStream(ExceptionStream)); EXPECT_TRUE(DumpHasStream(SystemInfoStream)); EXPECT_TRUE(DumpHasStream(UnloadedModuleListStream)); EXPECT_TRUE(DumpHasStream(MiscInfoStream)); EXPECT_TRUE(DumpHasStream(HandleDataStream)); // We expect memory referenced by stack in this dump. EXPECT_TRUE(DumpHasMemory(this)); // We expect PEB and TEBs in this dump. EXPECT_TRUE(DumpHasTebs()); EXPECT_TRUE(DumpHasPeb()); EXPECT_FALSE(DumpHasStream(ThreadExListStream)); EXPECT_FALSE(DumpHasStream(MemoryListStream)); EXPECT_FALSE(DumpHasStream(CommentStreamA)); EXPECT_FALSE(DumpHasStream(CommentStreamW)); EXPECT_FALSE(DumpHasStream(FunctionTableStream)); EXPECT_FALSE(DumpHasStream(MemoryInfoListStream)); EXPECT_FALSE(DumpHasStream(ThreadInfoListStream)); EXPECT_FALSE(DumpHasStream(HandleOperationListStream)); EXPECT_FALSE(DumpHasStream(TokenStream)); } } // namespace int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); CommandLine::Init(argc, argv); logging::LoggingSettings settings; settings.logging_dest = logging::LOG_TO_ALL; settings.log_file = L"CON"; settings.lock_log = logging::DONT_LOCK_LOG_FILE; logging::InitLogging(settings); return RUN_ALL_TESTS(); }
226cd77daa3bb765cec445d5a37a5cbbaa9edf73
0f9efd5a6c7fc517f5d0b031226b6eab8f03c852
/ke_mode/winnt/ntke_cpprtl/eh/frame_based/_x86/eh_msvc_internal_data.cpp
a23ec844787b22a59a0ed51e65e0c7bec53e87ca
[ "MIT" ]
permissive
mining8/project_ntke_cpprtl
612f2d73573115ad452597f6712def0d4fb89319
f2d3fd36a2c44f968f7b10c344abe7e0b7aa2e4c
refs/heads/master
2020-04-29T10:39:54.846278
2018-04-13T15:35:22
2018-04-13T15:35:22
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,366
cpp
eh_msvc_internal_data.cpp
///////////////////////////////////////////////////////////////////////////// //// copyright (c) 2012-2017 project_ntke_cpprtl //// mailto:kt133a@seznam.cz //// license: the MIT license ///////////////////////////////////////////////////////////////////////////// #include "eh_msvc_internal_data.h" #include "eh_exception_registration.h" namespace cpprtl { namespace msvc_internal_data { namespace eh { #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable:4731) // frame pointer register 'ebp' modified by inline assembly code #endif //_MSC_VER continuation_ft aux_::funclet::invoke(aux_::funclet* const f, exception_registration const& exc_reg) { ::size_t const frame_base = exc_reg.frame_pointer(); __asm { mov eax , f // modify registers by 'xor' to point the compiler for saving them at the function prolog // TODO check if only the x86.ecx and x86.ebp saving is necessary xor esi , esi xor edi , edi xor ebx , ebx xor ecx , ecx // set the frame base of the funclet and invoke the funclet push ebp mov ebp , frame_base call eax pop ebp } // return x86.eax - 'funclet* f' if the funclet being actually called has nothing to return } #ifdef _MSC_VER #pragma warning(pop) #endif //_MSC_VER #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable:4731) // frame pointer register 'ebp' modified by inline assembly code #endif //_MSC_VER void aux_::continuation::invoke(aux_::continuation* const c, exception_registration const& exc_reg) { ::size_t const frame_base = exc_reg.frame_pointer(); ::size_t const stack_ptr = exc_reg.stack_pointer(); __asm { // unlinking the current exception_registration (if any) is expected to be done by the caller of this function // set the continuation address mov eax , c // set up the stack frame mov ebx , stack_ptr mov ebp , frame_base // be aware after this point the current stack frame is unavailable mov esp , ebx // jump to continuation jmp eax } } #ifdef _MSC_VER #pragma warning(pop) #endif //_MSC_VER } // namespace eh } // namespace msvc_internal_data } // namespace cpprtl
5d267779a47970348053f24602d75376295fe582
a4232c1b0e3c4db8911e4b4565cb4e154e8d3beb
/Devkit-kode/SPI_Interface/SPI_IF.h
0da47958a44331611fafd72afe88a39df2fe2cf5
[]
no_license
Kledal/semesterprojekt3
d197614a55c1f29cf913c45064a52f4877ef1105
c7a36a4f1c7fd4fd31082d54ad7c131dd52cd4ac
refs/heads/master
2020-04-30T04:24:33.486539
2014-12-08T13:52:42
2014-12-08T13:52:42
26,537,320
0
0
null
null
null
null
UTF-8
C++
false
false
893
h
SPI_IF.h
#ifndef SPI_IF_H #define SPI_IF_H #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string> #include <stdlib.h> #include <stdio.h> int getBatIF( ) { int fd_bat; int temp_bat; int len_bat = 3; char buffer_bat[6] = {0}; fd_bat = open("/sys/class/psoc/psoc1/battery", O_RDONLY); if (read(fd_bat, buffer_bat, len_bat) > 3) std::cout << "Error read in getBatIF"; //cast from char array to int temp_bat = atoi(buffer_bat); close(fd_bat); return temp_bat; } int getSpeedIF( ) { int fd_speed; int temp_speed; int len_speed = 3; char buffer_speed[6] = {0}; fd_speed = open("/sys/class/psoc/psoc1/speed", O_RDONLY); if (read(fd_speed, buffer_speed, len_speed) > 3) std::cout << "Error read in getBatIF"; //cast from char array to int temp_speed = atoi(buffer_speed); close(fd_speed); return temp_speed; } #endif // SPI_IF_H
d3144655f92fcd7abc4e7d5666a318a840a9c187
ad378a3d14b53b0cda7799ec3a7ac5254d577621
/test/test/type/param/Function.main.cpp
7adf7342cb11840f338f8c903acc3ae2689b587f
[ "MIT" ]
permissive
AnantaYudica/basic
2f537a3eda8f108ed79a8594c87c160beb0b1984
dcbf8c9eebb42a4e6a66b3c56ebc3a7e30626950
refs/heads/master
2021-07-10T01:50:46.784042
2020-06-17T08:21:37
2020-06-17T08:21:37
139,540,770
0
0
null
null
null
null
UTF-8
C++
false
false
1,770
cpp
Function.main.cpp
#include "Test.h" #include "test/type/param/Function.h" #include <cstdio> #include <cassert> #include <cstring> char * gbuffer; #define BUFFER_SIZE 1024 #define EMPTY_CSTR "" #define VALUE1_INT 14 #define VALUE1_CSTR "14" #define VALUE2_CHAR '4' #define VALUE2_CSTR "4" #define VALUE3_FLOAT 3.14f #define VALUE3_CSTR "3.14" void Print() { snprintf(gbuffer, BUFFER_SIZE, EMPTY_CSTR); } int Print(int i) { snprintf(gbuffer, BUFFER_SIZE, "%d", i); return 1; } int Print(int i, char c) { snprintf(gbuffer, BUFFER_SIZE, "%d%c", i, c); return 1; } void Print(int i, char c, float f) { snprintf(gbuffer, BUFFER_SIZE, "%d%c%.2f", i, c, f); } int main() { gbuffer = new char[BUFFER_SIZE]; typedef basic::test::type::Parameter<> P0; typedef basic::test::type::Parameter<int> P1; typedef basic::test::type::Parameter<int, char> P2; typedef basic::test::type::Parameter<int, char, float> P3; typedef basic::test::type::param::Function<P0> PF0; typedef basic::test::type::param::Function<P1> PF1; typedef basic::test::type::param::Function<P2> PF2; typedef basic::test::type::param::Function<P3> PF3; PF0::Call<void>(&Print); printf("output : \"%s\"\n", gbuffer); assert(strcmp(EMPTY_CSTR, gbuffer) == 0); PF1::Call<int>(&Print, VALUE1_INT); printf("output : \"%s\"\n", gbuffer); assert(strcmp(VALUE1_CSTR, gbuffer) == 0); PF2::Call<int>(&Print, VALUE1_INT, VALUE2_CHAR); printf("output : \"%s\"\n", gbuffer); assert(strcmp(VALUE1_CSTR VALUE2_CSTR, gbuffer) == 0); PF3::Call<void>(&Print, VALUE1_INT, VALUE2_CHAR, VALUE3_FLOAT); printf("output : \"%s\"\n", gbuffer); assert(strcmp(VALUE1_CSTR VALUE2_CSTR VALUE3_CSTR, gbuffer) == 0); delete[] gbuffer; }
a749afba8d0544fbf5e51dc93f098fa4512c31ed
144204c519069fe75ecf084a5aefefea142542b7
/rootfs/rootfs/usr/local/include/argh.hh
d757fbc22ad4df9cb08e08b15171066a99ceb945
[]
no_license
bopopescu/UnitedSafety
fcb6baf9b3382cc1b45c58079da1dcc33b95d434
baea1b16c2fd44e224fb9120d026da2535123bd7
refs/heads/master
2022-10-10T04:04:58.528055
2020-06-11T18:29:19
2020-06-11T18:29:19
282,259,268
1
0
null
2020-07-24T15:48:24
2020-07-24T15:48:24
null
UTF-8
C++
false
false
4,908
hh
argh.hh
#ifndef optrar_argh_hh #define optrar_argh_hh /* Copyright (C) 1992,2001 Bisqwit (http://iki.fi/bisqwit/) */ /* * C++ USAGE EXAMPLE * #include <argh.hh> int main(int argc, const char *const *argv) { vector<string> files; string buildfn; bool worst = false; ParamHandler Argh; Argh.AddLong("worst", 'w').SetBool().SetDesc("Least optimal."); Argh.AddLong("help", 'h').SetBool().SetDesc("This help."); Argh.AddLong("version", 'V').SetBool().SetDesc("Displays version information."); Argh.AddLong("build", 'b').SetString().SetDesc("Builds the archive.", "<file>"); Argh.AddLong("make", 'b'); Argh.AddBool('k'); Argh.AddDesc('k', "This option does nothing."); Argh.AddLong("idle", 500).SetDesc("This option does nothing."); Argh.StartParse(argc, argv); for(;;) { int c = Argh.GetParam(); if(c == -1)break; switch(c) { case 'w': worst = Argh.GetBool(); break; case 'V': printf("%s\n", VERSION); return 0; case 'b': buildfn = Argh.GetString(); break; case 'k': break; // -k case 500: break; // --idle case 'h': printf( "This is software\n" "\nUsage: software [<option> [<...>]] <file> [<...>]\n" "\nThis software does something for the files.\n" "\nOptions:\n"); Argh.ListOptions(); printf("\nNo warranty whatsoever.\n"); return 0; default: files.push_back(Argh.GetString()); } } if(!Argh.ok())return -1; if(!files.size()) { fprintf(stderr, "Error: At least one file must be specified.\n"); return -1; } ... } */ /* The header begins here. */ #include <string> class ParamHandler { private: /* No copying */ void operator=(const ParamHandler &); ParamHandler (const ParamHandler &); class Reference; public: typedef long keytype; ParamHandler(); virtual ~ParamHandler(); virtual void PrintOpt(unsigned space, const std::string &opts, const std::string &desc); Reference AddLong(const std::string &longname, keytype alias); Reference AddBool(keytype c); Reference AddInt(keytype c, int min, int max); Reference AddFloat(keytype c, double min, double max); Reference AddString(keytype c, unsigned min=1, unsigned max=std::string::npos); Reference AddDesc(keytype c, const std::string &s, const std::string &param=""); void StartParse(int ac, const char *const *av, int firstarg=1); const std::string ProgName() const { return A0; } /* --not-x, --no-x, --without-x and --with-x are recognized. * Therefore you should use GetBool(). */ inline const bool GetBool() const { return polarity; } inline const int GetInt() const { return intparm; } inline const double GetFloat() const { return doubleparm; } inline const std::string &GetString() const { return param; } inline const bool ok() const { return !error; } keytype GetParam(); void ListOptions(); private: static inline keytype char2opt(char c1, char c2) { return (unsigned char)c1 + (unsigned char)c2 * 256; } static inline keytype char3opt(char c1, char c2, char c3) { return (unsigned char)c1 + 256 * char2opt(c2, c3); } void ErrorIllegalOption(keytype key); void ErrorNeedsArg(keytype key); void ErrorNeedsArg(const std::string &longo); void ErrorNeedNoArg(const std::string &longo); void InternalError(keytype key, const char *s); void ErrorOutOfRange(const std::string &param); void ErrorUnknownOption(const char *s, bool negafail); public: /* argh_atypemap needs this and I don't know how to make it friend. */ class ArgInfo { public: char type; int min,max;unsigned maxl;double fmin,fmax; }; private: class argh_aliasmap *aliases; class argh_descsmap *descs; class argh_atypemap *argtypes; class Reference { ParamHandler *par; keytype key; public: Reference(ParamHandler *p, keytype k) : par(p), key(k) { } Reference &SetBool(); Reference &SetInt(int min, int max); Reference &SetFloat(double min, double max); Reference &SetString(unsigned min=1, unsigned max=std::string::npos); Reference &SetDesc(const std::string &s, const std::string &param=""); }; Reference MakeRef(keytype key); int ParseError(); int ShortOpt(keytype key, const char *s); private: int argc; const char *const *argv; const char *A0; /* parser volatile */ int argpos; bool opts; std::string longo, longobuf; std::string param; const char *shortpointer; bool error, polarity; int intparm; double doubleparm; }; #endif
ed513444277215cd2d304ae45a667bbb867b4918
9f520bcbde8a70e14d5870fd9a88c0989a8fcd61
/pitzDaily/12/U
92f8477d3acdccf420e0d4a7dae8908662e902e0
[]
no_license
asAmrita/adjoinShapOptimization
6d47c89fb14d090941da706bd7c39004f515cfea
079cbec87529be37f81cca3ea8b28c50b9ceb8c5
refs/heads/master
2020-08-06T21:32:45.429939
2019-10-06T09:58:20
2019-10-06T09:58:20
213,144,901
1
0
null
null
null
null
UTF-8
C++
false
false
239,311
U
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1806 | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; location "12"; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField nonuniform List<vector> 6400 ( (-0.000347435379991 -0.00040448209596 0) (-0.000926078890683 -0.000405652886265 0) (-0.00138066020972 -0.000391944365279 0) (-0.0021884527054 -0.000483678659423 0) (-0.00303632780428 -0.000418521951656 0) (-0.00454652959408 -0.000404954346955 0) (-0.00631395267016 -0.000676859391383 0) (-0.00632918331199 -0.000962144604467 0) (-0.00459827352253 -0.000938671363727 0) (-0.00316240861936 -0.00110493885521 0) (-0.00398365564923 -0.00200718632902 0) (-0.0025923136665 -0.00175677068019 0) (-0.0015887449263 -0.00145934434353 0) (-0.000137800350224 -0.00120976732555 0) (0.00142373309895 -0.000949930901595 0) (0.002996253466 -0.000723079103217 0) (0.00458178426206 -0.000528319853899 0) (0.0061805995583 -0.000360777971151 0) (0.00779438800683 -0.00021627781707 0) (0.00942510222194 -9.15736815686e-05 0) (0.0110745977234 1.5983082807e-05 0) (0.0127437756649 0.000108619893585 0) (0.0144328818494 0.000188249608058 0) (0.0161410863301 0.000256512959364 0) (0.017866999354 0.000314790461828 0) (0.0196083091224 0.000364231279927 0) (0.0213622910469 0.000405749203435 0) (0.0231253951882 0.000440061640711 0) (0.0248937052458 0.000467683495813 0) (0.0266624710994 0.000488970588632 0) (0.0284265241298 0.000504111495113 0) (0.0301797702033 0.000513167363463 0) (0.0319155715618 0.000516061473504 0) (0.0336262107425 0.000512610016211 0) (0.0353032415949 0.000502510286093 0) (0.0369369247171 0.000485359146054 0) (0.03851654077 0.000460640906028 0) (0.0400297870373 0.000427731311265 0) (0.0414630352424 0.000385885274243 0) (0.0428006659969 0.00033422475638 0) (0.0440252395935 0.000271725627815 0) (0.0451167308766 0.000197190175319 0) (0.0460525715043 0.000109237541913 0) (0.0468067571364 6.28367946982e-06 0) (0.0473498114228 -0.000113394510237 0) (0.0476481271145 -0.000251425670709 0) (0.0476653129816 -0.000408334447894 0) (0.047358859632 -0.000580346981657 0) (0.0467957197344 -0.000767003539471 0) (0.0458989170115 -0.00098203928016 0) (0.044561586897 -0.00124211428177 0) (0.0426733281478 -0.00155339335242 0) (0.0401293613973 -0.00191218600022 0) (0.0368229543025 -0.00231938720263 0) (0.0326247269281 -0.00278860452879 0) (0.0273594635566 -0.00334977009691 0) (0.0207780001083 -0.00405257313721 0) (0.0124982039518 -0.00499728740597 0) (0.00159720287247 -0.00652691192202 0) (-0.0101669915585 -0.00995111290947 0) (-0.00523975233053 -0.00788708908538 0) (0.000507009231067 -0.00334853137482 0) (-0.0023170911884 -0.00051699341465 0) (-0.00642070633321 0.000971008448144 0) (-0.0093601938411 0.00166317194257 0) (-0.0105373047261 0.00170767427332 0) (-0.0112181020741 0.00118925109217 0) (-0.0123322011321 0.000779396941543 0) (-0.0155224034267 0.00158176691424 0) (-0.0160059083756 0.00302393574986 0) (-0.0136084024203 0.00500364535435 0) (-0.000957845760246 0.00340403563463 0) (0.00392995712119 0.00171291047294 0) (0.00935896262665 0.000712355635971 0) (0.00806487709958 0.000170162361365 0) (0.0107594468645 0.000225330918331 0) (0.00781309014831 -0.000113741216772 0) (0.00979184922785 -0.000508986000807 0) (0.00408192413326 -0.000960833425981 0) (0.00275341653459 -0.00188051252942 0) (-9.57583944402e-05 -0.000459162356814 0) (-0.000409629510883 -0.000593655004131 0) (-0.000649690706998 -0.000574377913906 0) (-0.000736261114732 -0.000480522379499 0) (-0.00106215810928 -0.000591942157 0) (-0.00160707944485 -0.00080560313616 0) (-0.00223067048632 -0.00109493806497 0) (-0.0023426508019 -0.00149114181507 0) (-0.000727425598832 -0.000669416234443 0) (0.000769457349882 -0.000592786460721 0) (0.00224768965357 -0.00107168205891 0) (0.00437291987991 -0.000848455294791 0) (0.00648297173119 -0.000447141580665 0) (0.0085778314772 -5.13798709661e-05 0) (0.010673149896 0.0003098872889 0) (0.0127667480555 0.000629114286822 0) (0.0148699265156 0.000911060604931 0) (0.016989514334 0.00116052554501 0) (0.0191279352719 0.00138120654221 0) (0.021285766506 0.0015758196056 0) (0.0234621438086 0.00174679373687 0) (0.0256559177805 0.00189622503135 0) (0.0278652946957 0.00202617142716 0) (0.0300885053219 0.0021384102416 0) (0.0323233072165 0.00223461547646 0) (0.0345674998289 0.00231612124478 0) (0.0368184263977 0.00238409295181 0) (0.0390734082276 0.00243933400383 0) (0.0413292683751 0.00248246202327 0) (0.043582705893 0.00251374790881 0) (0.0458298441011 0.00253328801522 0) (0.0480665559731 0.00254086083904 0) (0.0502880367325 0.00253608753081 0) (0.0524890884054 0.00251829611913 0) (0.0546637149771 0.00248666657404 0) (0.0568053715929 0.00244009617392 0) (0.0589065788213 0.002377327592 0) (0.0609591397141 0.00229681055359 0) (0.0629537679423 0.00219681209693 0) (0.0648802744116 0.00207526977421 0) (0.0667272028241 0.00192988410315 0) (0.0684819875402 0.00175796035806 0) (0.0701305868511 0.00155649200234 0) (0.0716575992577 0.00132200944227 0) (0.0730458169989 0.00105072426315 0) (0.0742759965394 0.000738557210478 0) (0.075325132387 0.000381807107097 0) (0.0761658831263 -2.16083932375e-05 0) (0.0767008020798 -0.000477926994917 0) (0.0768990079535 -0.00100404938064 0) (0.0767189325727 -0.00162916254463 0) (0.0760778161779 -0.00237130530117 0) (0.0748957425328 -0.00322271315978 0) (0.0731080577108 -0.00417148426683 0) (0.0706439648983 -0.00522640985787 0) (0.0674047235888 -0.00642342309217 0) (0.0632540346343 -0.00782161752579 0) (0.0580403055843 -0.00951276263481 0) (0.051602103899 -0.0116918866118 0) (0.0441984429088 -0.0149437900902 0) (0.0397979697655 -0.017894407418 0) (0.0371126102159 -0.0185056300392 0) (0.0325301458675 -0.0165201591001 0) (0.0241720205477 -0.0122879466157 0) (0.0119086276644 -0.00684923705243 0) (0.00592290200895 -0.00171157549614 0) (0.00326035385682 -8.48244651594e-06 0) (-0.004346141995 0.00145445700287 0) (-0.0664564988973 0.0105271495325 0) (-0.0243291522487 0.0053149777592 0) (-0.0144300602966 0.00605234339899 0) (0.000163208977534 0.00294258693919 0) (0.00356506552244 0.00158088815501 0) (0.00885499427518 0.00229408317553 0) (0.0123515743873 0.00249870553544 0) (0.0156961466948 0.00145585078117 0) (0.0160802412801 -0.000459092725337 0) (0.0142975878171 -0.00303398994513 0) (0.00731019451716 -0.00295223019093 0) (0.00357599603025 -0.00367647519348 0) (-0.000125343334123 -0.000753967890075 0) (-0.00038793574833 -0.000871595021502 0) (-0.000591617904071 -0.000846444641978 -9.29480147592e-29) (-0.00104178570653 -0.00104216732988 1.03535816366e-28) (-0.00159600242043 -0.00153780189766 1.30434978809e-28) (-0.00191787155105 -0.00220968969379 -1.77817188083e-28) (-0.00158402177225 -0.00301578211306 2.50855298564e-28) (-0.00048353962551 -0.00311353294153 -3.02820686143e-28) (0.00183434664243 -0.000719285402245 0) (0.00342676995725 -0.000115095921092 0) (0.00531927101174 5.57167648021e-05 0) (0.00725995288042 0.000515830836795 0) (0.00918495361812 0.00104002652612 0) (0.0110877572948 0.00150528550237 0) (0.0129997183111 0.001916500668 0) (0.0149341049526 0.00228032740591 0) (0.0168984895944 0.0026037498385 0) (0.0188961581185 0.00289213129447 0) (0.0209276444362 0.00314952598684 0) (0.0229918719579 0.00337894811166 0) (0.0250869756087 0.00358297528012 0) (0.027210651254 0.00376372376475 0) (0.0293604096484 0.00392315391841 0) (0.0315335997763 0.00406285857318 0) (0.0337274808693 0.0041842775843 0) (0.0359391585041 0.00428845846512 0) (0.0381656059924 0.0043762658938 0) (0.0404035795301 0.00444815752477 0) (0.0426496216162 0.00450439932211 0) (0.044899970105 0.00454485827747 -4.61010144002e-28) (0.0471505509069 0.00456921579878 4.44218991967e-28) (0.0493968838479 0.00457677193077 0) (0.0516340665588 0.00456664842965 0) (0.0538566777559 0.0045376002175 0) (0.0560587532249 0.00448820221906 0) (0.0582336865758 0.00441666527311 0) (0.0603741978646 0.00432100260279 0) (0.0624722315406 0.00419884774866 0) (0.0645189178596 0.00404759741365 0) (0.066504467251 0.00386422841896 0) (0.0684181240668 0.00364541462913 0) (0.0702480544828 0.00338733994164 0) (0.0719812851991 0.00308579086208 0) (0.0736035601285 0.00273596515028 0) (0.0750992017813 0.00233254203715 0) (0.0764507956069 0.00186943918087 0) (0.0776387873486 0.00133958689541 0) (0.0786414505687 0.000733410449859 0) (0.079435495155 3.93192745578e-05 0) (0.079996480798 -0.000761144466775 0) (0.0803214365028 -0.00169910792525 0) (0.0803673373025 -0.00281003127322 0) (0.0800517117448 -0.00409727234578 0) (0.0793267288396 -0.00553556039742 0) (0.0781711746282 -0.00711788357325 0) (0.0765560301484 -0.00886923071817 0) (0.0744402140011 -0.0108370225103 0) (0.0718141662989 -0.0130689202672 0) (0.0687399526012 -0.0155876164433 0) (0.0654118683764 -0.0183482944876 0) (0.0623935923135 -0.0206007352512 0) (0.0595401482605 -0.0212668573212 0) (0.0557972754263 -0.0201482378514 0) (0.050246857485 -0.017746867003 0) (0.0426618607017 -0.0148162142343 0) (0.0350165817303 -0.0117102444633 0) (0.0269735899565 -0.00834096984876 0) (0.0183558304221 -0.00519327651578 0) (0.00804836778326 -0.0026415448341 0) (0.00260192053256 0.000607921289584 0) (0.0018576890665 0.00470406796736 0) (0.00925253783716 0.0100036506792 0) (0.0206374264801 0.0144296134215 0) (0.0341208615483 0.0136501879691 0) (0.0302852821721 0.0037120356889 0) (0.02464286893 -0.00126499792727 0) (0.023287465994 -0.0019403072353 0) (0.0204540446947 -0.00375698528215 0) (0.0280521434464 -0.0138896361566 0) (0.0132878486833 -0.0127276587918 0) (-0.000172907619204 -0.0011992474592 0) (-0.000167274515261 -0.000608216113418 0) (-0.000680322357016 -0.00145978818353 0) (-0.00171091881956 -0.00250604732201 0) (-0.00246820060821 -0.00423361054783 0) (-0.00433349357173 -0.0107663431583 0) (-0.00146283138016 -0.00762503297692 0) (0.000907493327145 -0.004222450455 0) (0.00302043433108 -0.00166328981564 0) (0.00489143132963 -3.57103093093e-05 0) (0.0066654931291 0.00105226866523 0) (0.0084266078347 0.00187073658274 0) (0.0101950006594 0.00252528478296 0) (0.011969762048 0.00306183776659 0) (0.0137664617223 0.00351833808447 0) (0.0155947917195 0.00391784156477 0) (0.0174596651169 0.00427389489514 0) (0.019363079895 0.00459458172444 0) (0.0213052171796 0.00488490480881 0) (0.0232852211515 0.00514816050166 0) (0.0253015697247 0.00538666723084 0) (0.0273523712941 0.00560217403087 0) (0.0294354346971 0.00579603512071 0) (0.0315483768455 0.00596931460605 0) (0.0336885889364 0.00612279954941 0) (0.035853279543 0.0062570258165 0) (0.0380394099323 0.00637225546651 0) (0.040243713426 0.00646848934375 0) (0.0424626211171 0.00654544204802 0) (0.04469226861 0.00660255504336 0) (0.0469284171839 0.00663897451648 0) (0.0491664505808 0.00665356456899 0) (0.0514012924928 0.00664488635418 0) (0.0536273942311 0.00661120802646 0) (0.0558386485938 0.00655048237917 0) (0.058028368986 0.00646035003068 0) (0.0601891996361 0.00633811268869 0) (0.0623130868139 0.00618072613069 0) (0.0643911852983 0.0059847659992 0) (0.0664138222143 0.00574640688586 0) (0.0683703990859 0.00546137688764 0) (0.0702493473961 0.00512491807888 0) (0.0720380211874 0.00473172317382 0) (0.0737226335727 0.0042758645198 0) (0.0752881191443 0.00375068122298 0) (0.0767180355063 0.00314859763406 3.1580890828e-28) (0.0779944489312 0.00246077025163 -3.13246344431e-28) (0.0790981112027 0.00167647722483 0) (0.0800089445155 0.000782684440205 0) (0.0807066189973 -0.000235891988159 0) (0.0811842570279 -0.00140662342931 0) (0.0814698774247 -0.00277209017434 0) (0.0814925458592 -0.00435344943087 0) (0.0811920114123 -0.00612829015048 0) (0.080573646642 -0.00806705442278 0) (0.0796466272037 -0.0101648217658 0) (0.0784007337232 -0.0124403177759 0) (0.076839786963 -0.0148990460913 2.91097390391e-28) (0.0750242755217 -0.0174859895397 -2.88510333268e-28) (0.0730627127046 -0.0200520130455 0) (0.0710478285542 -0.0221833556513 0) (0.0688124128277 -0.0233548986538 0) (0.0658413534898 -0.0233803446591 0) (0.0616099897893 -0.0224511849123 0) (0.0558893292677 -0.02085786473 0) (0.0489754114126 -0.0187336725257 0) (0.041231461402 -0.0162088026675 0) (0.0331631057283 -0.013226457765 0) (0.0252809068124 -0.00947779836811 0) (0.0188359035461 -0.00457712919666 0) (0.0138716344975 0.00234807058702 0) (0.0145020896779 0.011163578166 0) (0.0181908372036 0.0098308638916 0) (0.0149029870177 -0.00176778816476 0) (0.0167442985747 -0.0080314581024 0) (0.0168917625893 -0.00731918092199 0) (0.0154937913584 -0.00421003841054 0) (0.0102059041821 -0.00279218344747 0) (0.00974381015591 -0.00753142778479 0) (0.0169584518489 -0.0311787839989 0) (-8.60763008256e-05 -0.000939150105877 0) (-8.34649317635e-05 -0.000654680688407 0) (-0.000837952889103 -0.00261964222566 0) (-0.00195057649907 -0.00375476939544 0) (-0.00304324949928 -0.00780801184044 0) (-0.00245769503275 -0.011061126241 0) (0.000150913782495 -0.00583147569999 0) (0.00225789129341 -0.00222451355337 0) (0.00410812283583 9.24649384275e-05 0) (0.00580638589363 0.00160694738448 0) (0.00744574068882 0.0026597659275 0) (0.00908252939634 0.0034450502616 0) (0.0107374026161 0.00408030588347 0) (0.0124174190522 0.00461791223898 0) (0.0141299716443 0.00508842709461 0) (0.0158802547431 0.00551021150438 0) (0.0176711948195 0.00589420885975 0) (0.0195040455158 0.00624690604243 0) (0.0213789500712 0.00657220585855 0) (0.0232952876285 0.00687250268985 0) (0.0252519226015 0.0071493343231 0) (0.0272473230308 0.00740370378092 0) (0.0292796552721 0.00763628045007 0) (0.031346804891 0.00784746197873 0) (0.0334464073674 0.00803742880833 0) (0.0355758308241 0.00820612819317 0) (0.0377321803335 0.00835328815507 0) (0.03991226509 0.0084783838809 0) (0.0421125897073 0.00858064367327 0) (0.044329313244 0.00865901478076 0) (0.0465582316278 0.00871216889414 -4.22095091432e-28) (0.0487947305435 0.00873847033658 4.08122679066e-28) (0.051033760165 0.00873598081872 0) (0.0532697823718 0.00870242865197 0) (0.0554967382496 0.00863521024692 0) (0.0577079898101 0.00853135775925 0) (0.0598962807547 0.00838753420778 0) (0.0620536730607 0.0081999964528 0) (0.0641715017603 0.00796458049355 0) (0.0662403070337 0.00767665600557 0) (0.0682497842316 0.00733109754344 0) (0.0701887125642 0.00692222476989 0) (0.0720449022895 0.00644375144493 0) (0.0738051226377 0.00588869618854 0) (0.07545505514 0.00524928266552 0) (0.076979253159 0.00451677058438 0) (0.0783611913295 0.0036812354836 0) (0.0795834571846 0.0027312674117 0) (0.0806281730429 0.00165377481242 0) (0.0814782242199 0.000433922138249 0) (0.0821128074283 -0.00094610702235 0) (0.0825696539938 -0.00252761824186 0) (0.0828245029262 -0.00434597087879 0) (0.0827978368907 -0.00639596527302 0) (0.0824856615388 -0.00862985546732 0) (0.081913678048 -0.0110128424329 0) (0.0810761436123 -0.0135374873136 0) (0.0799466730279 -0.0161897029086 0) (0.0785394344902 -0.0189037870815 0) (0.076908621858 -0.0215500211274 0) (0.0750685305109 -0.0239026099017 0) (0.0728816846401 -0.0256745028414 0) (0.0700240867529 -0.026688268236 0) (0.0661284196344 -0.0269440138533 0) (0.0609599624387 -0.0265092869081 0) (0.0545169736244 -0.0253942195543 0) (0.0469907711038 -0.023528275339 0) (0.0387350318011 -0.0206782078538 0) (0.0302093254578 -0.0164107635032 0) (0.0221202253855 -0.01013987107 0) (0.015434100431 -0.00101763188036 0) (0.017705534269 0.00402725807314 0) (0.0150989928091 -0.0038962015416 0) (0.017874402615 -0.00955693682449 0) (0.0156658163989 -0.00991386938356 0) (0.0145224373586 -0.00788295457504 0) (0.0110457354357 -0.0049181930394 0) (0.0091801579336 -0.00451612474961 0) (0.00871321817921 -0.00925453862079 0) (0.0176844626227 -0.045564629263 0) (-5.93904564847e-05 -0.000705535880871 0) (-9.19232982601e-05 -0.000765302477544 0) (-0.000951684007974 -0.00328115623815 0) (-0.00159280310976 -0.00420677485782 0) (-0.00405410093504 -0.0163562293612 0) (-0.00114263953028 -0.00901000860818 0) (0.00117852789328 -0.00357700477517 0) (0.00309636452519 -0.000268779954323 0) (0.00479029546509 0.00178664836507 0) (0.00637361209904 0.00315877270459 0) (0.00791936234648 0.00414876788068 0) (0.00946930012393 0.00491935783017 0) (0.0110428397145 0.00556010532328 0) (0.0126488584202 0.00611715088227 0) (0.014292954126 0.00661600893497 0) (0.0159787777334 0.00707151469736 0) (0.0177084705298 0.00749245802091 0) (0.0194830515244 0.00788407845769 0) (0.0213027184646 0.00824949731624 0) (0.0231670695717 0.00859057342047 0) (0.0250752379442 0.00890838885945 0) (0.0270259840756 0.00920353623674 0) (0.0290177417326 0.00947626190078 0) (0.031048650281 0.00972654892417 0) (0.0331165610519 0.00995414129911 0) (0.0352190421123 0.0101585584026 0) (0.0373533660331 0.0103390819246 0) (0.0395165004989 0.0104947499838 0) (0.0417050857854 0.0106243347991 0) (0.0439154164024 0.0107263319794 0) (0.0461434113196 0.0107989372748 0) (0.0483845884974 0.0108400347713 0) (0.0506340288765 0.0108471739939 0) (0.0528863444821 0.0108175565231 0) (0.0551356365512 0.0107480121491 0) (0.0573754576514 0.0106349818695 0) (0.0595987643613 0.0104744907576 0) (0.0617978741239 0.0102621246496 0) (0.0639644133807 0.0099929968087 0) (0.0660892706604 0.00966171508228 0) (0.0681625423974 0.00926233857343 0) (0.0701734859458 0.00878833080385 0) (0.0721104692231 0.00823250000951 0) (0.0739609342126 0.00758692975825 0) (0.075711371249 0.0068428896821 0) (0.0773473336223 0.00599072834254 0) (0.0788535141118 0.00501974719173 0) (0.0802139356908 0.00391809018779 0) (0.0814122993011 0.00267271740173 0) (0.082432658405 0.00126951750785 0) (0.0832583085132 -0.000305751668783 0) (0.0838780431856 -0.00208323586922 0) (0.0843436609853 -0.00411300054169 0) (0.0845736961056 -0.00640527897347 0) (0.084523055029 -0.00891264441625 0) (0.0842216563093 -0.0115791355194 0) (0.0836646925071 -0.0143750466281 0) (0.0827948623232 -0.0172808321891 0) (0.0815749166293 -0.0202453137829 0) (0.0800144287323 -0.0231662700307 0) (0.0781019133599 -0.0259013113 0) (0.0757303049205 -0.0282787761901 0) (0.0726773340941 -0.0301570073731 0) (0.0686644109704 -0.0314606710363 0) (0.0634538440466 -0.0321362811428 0) (0.0569214990084 -0.0320782182554 0) (0.0490768798472 -0.0310738424918 0) (0.0400535097915 -0.0287409488311 0) (0.0300639619805 -0.0244751268513 0) (0.0193089358214 -0.017182919277 0) (0.014265652976 -0.00900934550668 0) (0.0137419211803 -0.00756302449822 0) (0.0185971879589 -0.0135578903722 0) (0.0174031686423 -0.0139546431344 0) (0.0142286289301 -0.0121513090336 0) (0.0133823239092 -0.00986202034146 0) (0.00895759210831 -0.00590631668688 0) (0.00810547905515 -0.00497465653387 0) (0.00731559361327 -0.00844265770691 0) (0.0177065204603 -0.0566844525279 0) (-6.13427290568e-05 -0.000719510267804 0) (-0.000156603221562 -0.00109622331514 0) (-0.00118109242287 -0.00400181999253 0) (-0.00125598581899 -0.00460732970675 0) (-0.00277048088201 -0.0150314544154 0) (-0.000246253798725 -0.00649793358458 0) (0.00186880518522 -0.00140509843936 0) (0.00364593605787 0.00152862501162 0) (0.00523324270817 0.00336471333967 0) (0.00673299433981 0.00462920489583 0) (0.0082060874209 0.00557980195959 1.01494209209e-27) (0.00968724254407 0.00634927019345 -9.48940133271e-28) (0.011194742304 0.00700840391435 0) (0.0127380870439 0.00759500458243 0) (0.0143227306216 0.00812994693363 0) (0.0159519905805 0.00862522810178 0) (0.0176278397576 0.00908794311115 0) (0.0193513097164 0.0095223419597 0) (0.0211227445026 0.00993096499922 0) (0.0229419549099 0.010315288525 0) (0.024808323755 0.0106761028894 0) (0.0267208643651 0.0110137262397 0) (0.0286782626859 0.0113281268809 0) (0.0306788945363 0.0116189842877 0) (0.0327208389991 0.0118857191393 0) (0.034801875883 0.0121274997833 0) (0.0369194837446 0.0123432394653 0) (0.0390708259262 0.0125315842893 0) (0.0412527387031 0.0126908993621 0) (0.0434617094522 0.0128192511017 0) (0.0456938573611 0.0129143896572 0) (0.0479449052797 0.0129737294848 3.8983255801e-28) (0.0502101541175 0.0129943297602 -3.77860086313e-28) (0.0524844490853 0.0129728735435 0) (0.0547621484011 0.0129056455545 0) (0.0570370844025 0.0127885086701 0) (0.0593025272113 0.0126168773766 0) (0.0615511414969 0.0123856896074 0) (0.0637749463236 0.0120893737201 0) (0.0659652693718 0.0117218133064 0) (0.0681127058948 0.0112763053549 0) (0.070207075083 0.0107455154676 0) (0.0722373856732 0.0101214249789 0) (0.0741918067299 0.00939527471278 0) (0.0760576599112 0.00855750137811 0) (0.0778214381698 0.00759767665324 0) (0.079468873623 0.00650445622973 0) (0.0809850678028 0.00526557440035 0) (0.0823547097438 0.00386792184644 0) (0.0835623370388 0.00229778415369 0) (0.0845934182888 0.000541390786821 0) (0.0854191008576 -0.00141824885717 0) (0.0860905495347 -0.00363891143709 0) (0.0865720382536 -0.00614886385039 0) (0.086782257881 -0.00892009385465 0) (0.0867358369903 -0.0118835181352 0) (0.0864332081702 -0.0149880802298 0) (0.0858020382943 -0.0182140650331 0) (0.0847594414123 -0.021530051863 0) (0.083272182579 -0.0248597710855 0) (0.0813108703007 -0.0281030601285 0) (0.0787812870039 -0.0311474127778 0) (0.075508248021 -0.0338863298423 0) (0.0712560460513 -0.0362272217723 0) (0.0657764474802 -0.038062077169 0) (0.0588580231855 -0.0392141063426 0) (0.0503521045801 -0.0393800936552 0) (0.0401766411467 -0.0380670090187 0) (0.02812288703 -0.0345350924489 0) (0.016541163473 -0.0270589481308 0) (0.014598637836 -0.0161114870174 0) (0.0184255375205 -0.0162818988456 0) (0.020961712318 -0.0187446296264 0) (0.0169559203414 -0.0175703933316 0) (0.0144025252106 -0.015931569505 0) (0.0102991976986 -0.0101756736931 0) (0.00877742560174 -0.00782896608118 0) (0.00674214732059 -0.00558153126614 0) (0.00511749432581 -0.00749270035577 0) (0.0168159598681 -0.0649473628134 0) (-6.68439919447e-05 -0.000887905814919 0) (-0.000259168767498 -0.00169964308336 0) (-0.00143112566656 -0.00493779726963 0) (-0.00296573306465 -0.0134636965344 0) (-0.00221207462962 -0.0122980991072 0) (0.00036595809956 -0.00385184664985 0) (0.00235634561611 0.000642289443329 0) (0.00402453684888 0.00320659126584 0) (0.00552708043819 0.0048515059201 0) (0.00695624579685 0.00603015818997 0) (0.00836570097706 0.00695524085648 0) (0.00978630742299 0.00773273649329 0) (0.011235318197 0.00841795710696 0) (0.0127223381743 0.00904058678047 0) (0.0142529365559 0.00961708159079 0) (0.0158304852649 0.0101569047829 0) (0.0174570410803 0.010665670198 0) (0.0191337874167 0.0111467627983 0) (0.0208612714118 0.0116022056758 0) (0.022639542662 0.0120331439467 0) (0.0244682347774 0.0124401197699 0) (0.0263466176021 0.0128232319961 0) (0.0282736275348 0.0131822249133 0) (0.0302478872204 0.0135165369686 0) (0.0322677140813 0.0138253222008 0) (0.0343311237795 0.0141074571311 0) (0.0364358262361 0.0143615364983 0) (0.0385792185112 0.0145858637542 0) (0.0407583719901 0.0147784368749 0) (0.0429700173578 0.0149369321377 0) (0.0452105248935 0.0150586858666 0) (0.0474758830701 0.0151406748148 0) (0.0497616730857 0.0151794955426 0) (0.0520630420282 0.0151713419601 0) (0.054374672365 0.0151119821262 0) (0.0566907503839 0.0149967321809 0) (0.0590049313551 0.0148204294199 0) (0.0613103041642 0.0145774012617 0) (0.0635993533964 0.0142614331295 0) (0.0658639219802 0.0138657311249 0) (0.0680951730498 0.0133828836293 0) (0.0702835548717 0.0128048174036 0) (0.0724187691308 0.0121227538562 0) (0.0744897478023 0.0113271622152 0) (0.0764846424908 0.0104077189169 2.93701343175e-28) (0.078390833324 0.00935327496712 -2.90765629214e-28) (0.0801949647556 0.00815185225746 0) (0.0818830148244 0.00679068368947 0) (0.0834404001262 0.00525633815747 0) (0.0848521376059 0.00353496652544 0) (0.0861033684766 0.00161267194847 0) (0.0871727489547 -0.000523155961136 0) (0.0880458116943 -0.00291658821346 0) (0.0887738059473 -0.00562647394288 0) (0.0892647369546 -0.00864854320105 0) (0.0894872021815 -0.0119154086 0) (0.0894516635075 -0.0153586227734 0) (0.0890893036295 -0.0189560054244 0) (0.0882816776355 -0.0226926796767 0) (0.0869537575506 -0.0265211595068 0) (0.0850574558638 -0.0303696960058 0) (0.0825008595694 -0.034161435467 0) (0.0791254757694 -0.0378211523029 0) (0.0747056612757 -0.0412679860297 0) (0.0689675873508 -0.0443865384005 0) (0.0616179995151 -0.0469778124131 0) (0.0523634296602 -0.0486939053662 0) (0.0409286122284 -0.0489488149127 0) (0.0265665799714 -0.046570401261 0) (0.0177745376065 -0.0408894107702 0) (0.016645629901 -0.0221249441226 0) (0.0233775556563 -0.0224288464937 0) (0.0221608020276 -0.0230623249713 0) (0.0169515021862 -0.0221394314925 0) (0.015515192955 -0.0211234066983 0) (0.0102201880934 -0.0130646215767 0) (0.00875722883456 -0.0106865443737 0) (0.00567359363784 -0.00750960472069 0) (0.00189304526354 -0.00659898107003 0) (0.0136483131065 -0.068955321847 0) (-4.73090636449e-05 -0.00111379252189 0) (-0.000379006650864 -0.00257722998421 0) (-0.00171381037808 -0.00571016912252 0) (-0.0047131894761 -0.0216623362791 0) (-0.00167384469728 -0.00878741633202 0) (0.000860013030104 -0.00121373906137 0) (0.00273520470306 0.00256810833465 0) (0.00430388191017 0.00477630844886 0) (0.00572497545216 0.006252813658 0) (0.00708508531156 0.00736270720722 0) (0.00843269627233 0.00827361573992 0) (0.00979546178905 0.00906700848157 0) (0.0111892104132 0.00978457191703 0) (0.0126231226494 0.0104485667155 0) (0.014102707021 0.0110713696974 0) (0.0156314064745 0.0116601407168 0) (0.0172114227115 0.0122191583265 0) (0.0188441356586 0.0127510153067 0) (0.0205303253368 0.0132572487875 0) (0.0222702926883 0.0137386835917 0) (0.0240639324272 0.0141956247977 0) (0.025910775783 0.0146279672024 0) (0.0278100200338 0.0150352565 0) (0.0297605450879 0.0154167217033 0) (0.0317609251355 0.0157712887797 0) (0.0338094318376 0.0160975833202 0) (0.0359040346305 0.0163939246114 0) (0.0380423943087 0.016658315803 0) (0.0402218546241 0.0168884292792 0) (0.0424394283531 0.0170815911344 0) (0.0446917819941 0.0172347620286 0) (0.0469752158019 0.0173445183903 0) (0.0492856428779 0.0174070300202 3.61735994128e-28) (0.0516185642122 0.0174180384597 -3.51235310339e-28) (0.0539690431025 0.0173728312142 0) (0.0563316760101 0.0172662167243 0) (0.0587005631299 0.0170924943959 0) (0.06106927596 0.0168454252022 0) (0.0634308251304 0.0165181966286 0) (0.0657776262236 0.0161033882422 0) (0.0681014669775 0.0155929315246 0) (0.0703934744837 0.014978071501 0) (0.0726440859766 0.0142493244686 0) (0.074843023034 0.0133964420989 0) (0.0769792732292 0.0124083785418 0) (0.0790410796205 0.0112732772502 0) (0.0810159391984 0.00997848020823 0) (0.0828906083887 0.00851058785718 0) (0.0846511067738 0.00685558381192 0) (0.0862827197186 0.00499906658672 0) (0.0877699985557 0.00292663714425 0) (0.0890957853429 0.000624771192671 0) (0.0902196168454 -0.00193041348559 0) (0.0911958888052 -0.0048226924325 0) (0.0919820905528 -0.00807592252529 0) (0.092500267794 -0.0116422299797 0) (0.0927616998275 -0.0154437250246 0) (0.09271337233 -0.0194452145307 0) (0.0922183121117 -0.0236446705206 0) (0.0911631892863 -0.0280270054969 0) (0.0894759008679 -0.0325462749209 0) (0.0870625119996 -0.0371556450661 0) (0.083769181462 -0.0418114344052 0) (0.0793649957884 -0.0464630782584 0) (0.0735402385565 -0.051026568643 0) (0.0659118748907 -0.0553367770971 0) (0.0560155404483 -0.0590793184237 0) (0.0431045573808 -0.0617192624768 0) (0.0270387096208 -0.0615498592891 0) (0.0196043943111 -0.0463535367857 0) (0.0227592289627 -0.0309090730624 0) (0.0262953981185 -0.0280488341019 0) (0.0228997332968 -0.0277629355959 0) (0.0175829067258 -0.0280735367826 0) (0.0131376525074 -0.0214323709591 0) (0.0111080387913 -0.017512525386 0) (0.00751519307303 -0.0145674181558 0) (0.00320659471559 -0.012011789867 0) (-0.00429000292384 -0.0124577421502 0) (0.00347817327264 -0.0771734265281 0) (-3.19561590492e-05 -0.00135374567792 0) (-0.000428255500567 -0.00354963907606 0) (-0.00175400669008 -0.00539960315475 0) (-0.00469380374365 -0.0195171568002 0) (-0.000841907853599 -0.00490081411054 0) (0.0013950634568 0.00119405690966 0) (0.00308507356027 0.00431384436498 0) (0.00452896017142 0.00621862601988 0) (0.00585736706474 0.00755995277136 0) (0.00714322922719 0.00862148286467 0) (0.00842706487822 0.00953088689988 0) (0.0097319571348 0.0103484941891 0) (0.0110714076768 0.0111044682729 0) (0.0124535839748 0.0118147542917 0) (0.0138836511069 0.0124882288122 0) (0.0153650248892 0.0131300626144 0) (0.0169000314379 0.013743365514 0) (0.0184902517802 0.0143300163086 0) (0.0201367046447 0.0148910940523 0) (0.0218399493439 0.0154271082053 0) (0.0236001457338 0.0159381248493 0) (0.0254170939727 0.0164238359151 0) (0.0272902600512 0.0168835965924 0) (0.0292187947561 0.0173164424313 0) (0.0312015446849 0.0177210947073 0) (0.0332370592806 0.0180959566299 0) (0.0353235914827 0.0184391051777 0) (0.0374590952592 0.0187482780098 0) (0.0396412179094 0.019020859184 0) (0.0418672900488 0.0192538613431 0) (0.0441343113526 0.0194439079726 0) (0.0464389346099 0.0195872122748 0) (0.048777446275 0.0196795565886 0) (0.0511457458055 0.0197162680468 0) (0.0535393220568 0.0196921948554 0) (0.055953228833 0.0196016781644 0) (0.0583820579617 0.0194385244543 0) (0.0608199118715 0.0191959728376 0) (0.0632603742353 0.0188666628855 0) (0.065696480555 0.0184425970504 0) (0.0681206876343 0.0179151043267 0) (0.070524843609 0.0172747993763 0) (0.0729001578716 0.0165115456286 0) (0.0752371719499 0.015614417736 0) (0.077525730644 0.0145716753519 0) (0.0797549518604 0.0133707467545 0) (0.0819131921519 0.011998240607 0) (0.083987998874 0.010439987869 0) (0.0859660368207 0.00868114213867 0) (0.0878329694137 0.00670634500603 0) (0.0895732950556 0.00449999901502 0) (0.091170501309 0.00204664251135 0) (0.0925946738648 -0.000669537407744 0) (0.093822224415 -0.00372085619223 0) (0.0949137929391 -0.00717736627454 0) (0.0957733016217 -0.0110221862208 0) (0.0963770697964 -0.0151824700912 0) (0.0966953161402 -0.0196011874517 0) (0.0965978510713 -0.0242848037223 0) (0.0959388193844 -0.0292464263405 0) (0.0946181937521 -0.0344696387168 0) (0.0925392897477 -0.0399396885964 0) (0.089551452454 -0.0456472125798 0) (0.0854216388405 -0.0515866189691 0) (0.0798148525639 -0.0577385949461 0) (0.072279180215 -0.0640301911291 0) (0.0622413536799 -0.0702785048204 0) (0.0483584091898 -0.0761911483592 0) (0.0323852519299 -0.0798003985817 0) (0.0225482192744 -0.0508520851219 0) (0.0274746504034 -0.0381355076937 0) (0.027850789286 -0.0337890898296 0) (0.0230604046215 -0.0320859197365 0) (0.0204173185107 -0.0354549287166 0) (0.0130731738723 -0.024300267061 0) (0.0111658518703 -0.0220243567405 0) (0.00621080883278 -0.0196583408924 0) (0.000495164042498 -0.0185585225113 0) (-0.0104428361601 -0.0222963191986 0) (-0.00788649323914 -0.0556691301102 0) (-5.75023046566e-05 -0.00164700460895 0) (-0.000343703913284 -0.00403464544748 0) (-0.00153922880599 -0.00539202171626 0) (-0.00273673482859 -0.0130956107179 0) (0.000174921856779 -0.00185363484041 0) (0.0019572338064 0.00311914018057 0) (0.00341213190373 0.00580498989324 0) (0.00470770343149 0.00750522636301 0) (0.00593329446472 0.00876051645111 0) (0.00714067722347 0.00980022490695 0) (0.0083591176892 0.0107231794528 0) (0.00960573537229 0.0115740940298 0) (0.0108910570043 0.0123745823399 0) (0.0122219193049 0.0131358436209 0) (0.0136029993793 0.0138640618344 0) (0.0150376345587 0.0145628260139 0) (0.0165282641618 0.0152342751599 0) (0.0180766703192 0.0158796616293 0) (0.0196841140337 0.0164996367496 0) (0.0213514143228 0.0170943985159 0) (0.0230789998189 0.0176637683465 0) (0.0248669429059 0.0182072306284 0) (0.0267149864193 0.0187239501099 0) (0.0286225619659 0.0192127767977 0) (0.0305888043279 0.0196722412831 0) (0.0326125588066 0.0201005455281 0) (0.0346923851774 0.0204955488589 0) (0.0368265556004 0.0208547531385 0) (0.0390130500975 0.0211752848715 0) (0.0412495472396 0.0214538777703 0) (0.0435334132159 0.0216868522954 0) (0.0458616870302 0.0218700959791 0) (0.0482310646547 0.0219990403059 0) (0.0506378800263 0.0220686384065 0) (0.0530780854467 0.022073338675 0) (0.0555472293654 0.0220070590476 0) (0.0580404338625 0.0218631564864 0) (0.060552369939 0.0216343969898 0) (0.0630772326666 0.0213129202295 0) (0.0656087145041 0.0208902049401 0) (0.0681399784066 0.0203570289183 0) (0.0706636292075 0.0197034310837 0) (0.0731716839467 0.0189186696584 0) (0.0756555393341 0.0179911861801 0) (0.0781059351605 0.0169085702998 0) (0.0805129093505 0.0156575390475 0) (0.0828657396893 0.014223926399 0) (0.0851528616423 0.0125927027296 0) (0.0873617450483 0.0107480191311 0) (0.0894787176809 0.00867330268757 0) (0.0914887416023 0.00635139251937 0) (0.0933751872683 0.00376477220658 0) (0.0951176598213 0.000896242648251 0) (0.0966626149702 -0.00229260617454 0) (0.098066262335 -0.00591958599721 0) (0.0992990019128 -0.010008881694 0) (0.100289368772 -0.0145062239085 0) (0.101026288921 -0.0193380508951 0) (0.101407511204 -0.0245057988275 0) (0.101266156617 -0.0300420624879 0) (0.100476331934 -0.035968046978 0) (0.0989357345871 -0.0423021699792 0) (0.0965010907278 -0.0490716636626 0) (0.0929544331758 -0.0563250965949 0) (0.0879663016212 -0.0641287247743 0) (0.0810653453225 -0.0725415039791 0) (0.0716731543009 -0.0815775650964 0) (0.0578349742396 -0.0912755650236 0) (0.0438259156923 -0.099786248678 0) (0.0282206081543 -0.0605387804449 0) (0.0304902075759 -0.0464367102094 0) (0.0271886066306 -0.0387754412323 0) (0.0218566315367 -0.0353660801186 0) (0.0225726100495 -0.0424116262107 0) (0.0154636718327 -0.0315413561701 0) (0.0115425346436 -0.0274823366419 0) (0.00593690982162 -0.0249003996462 0) (0.000942803727434 -0.0251085406822 0) (-0.00812716829614 -0.0334777235207 0) (-0.00720903203515 -0.0465441793531 0) (-0.000155849985298 -0.00210971912656 0) (-0.000478839726811 -0.00400955644862 0) (-0.00154317853225 -0.00737122906487 0) (-0.000746439842452 -0.00962927388722 0) (0.00108829766804 -0.00014543558551 0) (0.00244773147851 0.00450571410436 0) (0.00367017498534 0.00701824603504 0) (0.00482143079421 0.00862695430335 0) (0.00594795065788 0.00985119806014 0) (0.00707936384243 0.0108973926537 0) (0.00823372338381 0.0118490898761 0) (0.0094225913173 0.0127420317002 0) (0.0106538874633 0.0135926645479 0) (0.0119333490934 0.0144091596705 0) (0.0132652956997 0.0151958567485 0) (0.0146530557678 0.015955171407 0) (0.0160992167889 0.0166884590997 0) (0.0176057790798 0.0173964241286 0) (0.0191742514097 0.0180793155799 0) (0.0208057149798 0.0187370210889 0) (0.0225008667336 0.0193691106047 0) (0.0242600537938 0.0199748538375 0) (0.026083299435 0.0205532233943 0) (0.0279703252303 0.0211028875056 0) (0.0299205658638 0.0216221972466 0) (0.0319331797943 0.0221091688478 0) (0.0340070529362 0.0225614653753 0) (0.0361407992065 0.0229763764565 0) (0.0383327558442 0.0233507992503 0) (0.0405809769296 0.0236812174607 0) (0.0428832228628 0.0239636815362 0) (0.0452369487188 0.0241937862093 0) (0.0476392893743 0.0243666490775 0) (0.0500870440828 0.0244768857977 0) (0.0525766585051 0.0245185860568 0) (0.0551042065726 0.024485285298 0) (0.0576653702607 0.0243699369316 0) (0.060255419353 0.0241648794781 0) (0.0628691893728 0.0238618040674 0) (0.0655010593478 0.0234517162188 0) (0.0681449276074 0.0229248982948 0) (0.0707941864767 0.0222708661519 0) (0.0734416936806 0.0214783279074 0) (0.076079739821 0.0205351381114 0) (0.0787000081272 0.0194282575816 0) (0.0812935228977 0.0181437120966 0) (0.08385057902 0.0166665633397 0) (0.0863606427482 0.0149808836634 0) (0.0888122074151 0.0130697526276 0) (0.0911925896636 0.0109152602105 0) (0.0934876436645 0.00849854505558 0) (0.0956813896494 0.0057998738386 0) (0.097756074931 0.00279881925186 0) (0.0996762868386 -0.000527576419013 0) (0.101396491852 -0.0042884408049 0) (0.103021183623 -0.00857301200872 0) (0.104456512759 -0.0133583438316 0) (0.105673163597 -0.018576425516 0) (0.106607551435 -0.0242024873386 0) (0.107098604126 -0.0302811436327 0) (0.107000875995 -0.0368711475481 0) (0.106200995947 -0.044022645536 0) (0.104571296557 -0.0518017241609 0) (0.101931707509 -0.0603107373014 0) (0.0979990075473 -0.0697028594223 0) (0.0923454975724 -0.0801794727355 0) (0.0844928959656 -0.0919771800434 0) (0.0720464836953 -0.105487791372 0) (0.061464943302 -0.119650569033 0) (0.0395511137707 -0.0783324021795 0) (0.0337451825989 -0.0578388059957 0) (0.0258451502671 -0.043350196103 0) (0.0200949365617 -0.0374298560704 0) (0.0198388959505 -0.0417996719484 0) (0.0150420447328 -0.0360569356492 0) (0.0111976960127 -0.033303473813 0) (0.00581049026216 -0.0296967407371 0) (0.00160231848081 -0.0297315565411 0) (-0.0038489952207 -0.0415647669633 0) (-0.00382348032931 -0.0479707108252 0) (-0.000231651558976 -0.00259271479715 0) (-0.000738126951534 -0.00408141315809 0) (-0.00146348605487 -0.00549182523402 0) (0.000418142381351 -0.00792657840863 0) (0.00159671676528 0.000684699395312 0) (0.00273017469938 0.00547797818483 0) (0.00380110068622 0.00800267539644 0) (0.00484813126498 0.00960761179717 0) (0.0058953922644 0.0108438846823 0) (0.00696014330658 0.0119183234405 0) (0.00805431298909 0.0129102343928 0) (0.00918662917854 0.0138518054064 0) (0.0103638391939 0.0147570129536 0) (0.01159130733 0.0156323119951 0) (0.0128733485421 0.0164808213637 0) (0.0142134438895 0.0173040656934 0) (0.0156143989988 0.0181027389701 0) (0.0170784575151 0.0188770433906 0) (0.0186073836352 0.0196268366509 0) (0.0202025188588 0.0203516918878 0) (0.021864826173 0.0210509187294 0) (0.0235949244192 0.0217235659721 0) (0.0253931192419 0.0223684122965 0) (0.0272594267622 0.0229839493852 0) (0.0291935925104 0.0235683585724 0) (0.0311951016763 0.0241194858326 0) (0.0332631847967 0.0246348156957 0) (0.035396817076 0.025111447774 0) (0.0375947157519 0.0255460732223 0) (0.0398553332027 0.0259349533127 0) (0.0421768490212 0.0262738964597 0) (0.044557158592 0.0265582367345 0) (0.0469938612278 0.0267828099609 0) (0.0494842456744 0.0269419309329 0) (0.0520252757623 0.0270293671796 -3.13796245487e-28) (0.0546135740151 0.0270383133289 3.05184207964e-28) (0.0572454056566 0.0269613609684 0) (0.0599166609017 0.0267904687254 0) (0.0626228376394 0.0265169268313 0) (0.0653590224246 0.0261313216345 0) (0.0681198712425 0.0256234935772 0) (0.0708995877217 0.0249824951449 0) (0.0736918990233 0.0241965414368 0) (0.07649002617 0.0232529614273 0) (0.0792866468866 0.0221381413838 0) (0.0820738448263 0.0208374707207 0) (0.084843040932 0.0193352795181 0) (0.0875848939625 0.0176147805159 0) (0.0902891595745 0.0156580004981 0) (0.0929444903075 0.0134457151395 0) (0.0955381605305 0.0109573715728 0) (0.0980557373713 0.00817101764304 0) (0.10048081604 0.00506323670439 0) (0.102792846758 0.00160962876129 0) (0.104934566333 -0.00224092990818 0) (0.106951469929 -0.00665808256014 0) (0.10886378393 -0.0116680820544 0) (0.110605232475 -0.0172210082942 0) (0.112144887319 -0.0232621001066 0) (0.113359408641 -0.0298320206014 0) (0.114091457167 -0.0370119587515 0) (0.114215870625 -0.04488446595 0) (0.113625314639 -0.0535549739701 0) (0.112193010769 -0.0631678451316 0) (0.109721937642 -0.0739421771139 0) (0.105898054493 -0.0861959158143 0) (0.100447314045 -0.100357555697 0) (0.0910780936318 -0.117079253734 0) (0.0845662228233 -0.136690683244 0) (0.0626655612887 -0.107458842034 0) (0.0429560660089 -0.0754643661918 0) (0.0284548648104 -0.0502052531475 0) (0.0220920696311 -0.0420579944199 0) (0.0203346935527 -0.0452841514704 0) (0.0138352475539 -0.0394380970003 0) (0.00935118926781 -0.0365459463303 0) (0.00547095768236 -0.033155227776 0) (0.0011151473025 -0.0332852926802 0) (-0.00222569273544 -0.0424657857574 0) (-0.00157617364571 -0.0424561532329 0) (-0.000255591202343 -0.00323066081205 0) (-0.000900384914056 -0.00480212474596 0) (-0.00165906577894 -0.00539499757502 0) (0.00019643514394 -0.00786371841537 0) (0.0015878679151 0.00120485396031 0) (0.00274977929386 0.00626904909276 0) (0.00378953430728 0.00886202421318 0) (0.00478688146837 0.0104945143778 0) (0.00577932874199 0.0117599861342 0) (0.0067877386335 0.0128719145394 0) (0.00782533768683 0.0139093130055 0) (0.00890161983417 0.0149030486962 0) (0.0100239106555 0.0158657560184 0) (0.0111980420376 0.0168027021151 0) (0.0124287052054 0.0177160071832 0) (0.0137196957372 0.0186063916491 0) (0.0150740951346 0.0194739159008 0) (0.0164944064238 0.0203182846841 0) (0.0179826461 0.0211389583129 0) (0.0195404086286 0.0219351852641 0) (0.0211689127551 0.0227060061111 0) (0.0228690427371 0.0234502442752 0) (0.02464138286 0.0241664872106 0) (0.0264862474508 0.0248530580539 0) (0.0284037004231 0.0255079819368 0) (0.030393567438 0.0261289499149 0) (0.0324554389606 0.0267132865512 0) (0.0345886703473 0.027257920595 0) (0.0367923776273 0.0277593599638 0) (0.0390654326396 0.0282136668239 0) (0.0414064545071 0.0286164346898 0) (0.0438138005918 0.028962764248 0) (0.046285554625 0.0292472409179 0) (0.0488195152463 0.0294639101292 0) (0.0514131826375 0.0296062535339 0) (0.0540637459768 0.0296671615404 0) (0.0567680693757 0.0296389061364 0) (0.0595226787961 0.0295131088543 0) (0.0623237477288 0.0292807085067 0) (0.0651670837536 0.0289319226266 0) (0.0680481135963 0.0284562079799 0) (0.0709618680328 0.027842212868 0) (0.0739029635462 0.0270777276464 0) (0.0768655808157 0.0261496245424 0) (0.0798434350565 0.0250437945829 0) (0.082829736337 0.0237450704378 0) (0.0858171316067 0.0222371440092 0) (0.0887976226949 0.0205024647732 0) (0.0917624464399 0.0185221275208 0) (0.0947019046256 0.0162757291622 0) (0.0976051238091 0.0137412078276 0) (0.100459735185 0.0108946431671 0) (0.103251460029 0.00771006851474 0) (0.105963953813 0.00415935993304 0) (0.108568227127 0.000210132115211 0) (0.110988461219 -0.00427922798766 0) (0.113392533911 -0.00942897924019 0) (0.115712097325 -0.015222674393 0) (0.117910827539 -0.0216067312523 0) (0.119918094705 -0.0285883712464 0) (0.121586678529 -0.0362509396333 0) (0.122789149897 -0.0447060240086 0) (0.123433514523 -0.0540898741823 0) (0.123446528877 -0.0645708821757 0) (0.122741541523 -0.0763952348111 0) (0.121168866165 -0.0899322230831 0) (0.11869686825 -0.105692301949 0) (0.113866563496 -0.124326497681 0) (0.110283678678 -0.147055920643 0) (0.102114303608 -0.14676847516 0) (0.0679251230688 -0.102023405376 0) (0.0398401902509 -0.0635812681047 0) (0.0274478435579 -0.0502321499554 0) (0.0232183061744 -0.0511640616202 0) (0.0172055412457 -0.0514994979759 0) (0.00891702503456 -0.040276770762 0) (0.0056828410565 -0.0384200688246 0) (0.00125400664219 -0.0381772670172 0) (-0.00124444482267 -0.0405048133741 0) (-0.000814044528788 -0.0408756462909 0) (-0.000251764252488 -0.00381226419385 0) (-0.00104738733241 -0.00596055337976 0) (-0.00288764643061 -0.013105614426 0) (-0.000396139098871 -0.00921502123937 0) (0.00134351882371 0.00183160870286 0) (0.00262202626031 0.00710365203179 0) (0.00368752414286 0.00969670467111 0) (0.00466426310913 0.0113323065813 0) (0.0056147092853 0.0126185071753 0) (0.00657110844305 0.0137649995344 0) (0.00755238279834 0.0148473872175 0) (0.00857108565395 0.0158941555184 0) (0.00963626489946 0.0169161238562 0) (0.0107547412 0.0179170964564 0) (0.0119317952546 0.0188980263742 0) (0.0131716004882 0.0198587312022 0) (0.014477520348 0.0207985865874 0) (0.0158523010388 0.0217167733105 0) (0.0172981928876 0.0226123379622 0) (0.0188170227329 0.0234841924482 0) (0.0204102485297 0.0243311016188 0) (0.0220790059218 0.0251516650838 0) (0.0238241523938 0.0259442880487 0) (0.0256463008003 0.0267071408332 0) (0.0275458423473 0.02743811014 0) (0.0295229550911 0.0281347512562 0) (0.0315776055496 0.0287942466298 0) (0.0337095450518 0.0294133738484 0) (0.0359183066964 0.0299884774881 0) (0.0382031992852 0.0305154436679 0) (0.0405633006321 0.0309896740767 0) (0.0429974474078 0.0314060623523 0) (0.045504225414 0.0317589698192 0) (0.0480819581161 0.0320422029734 0) (0.0507286965712 0.0322489884029 0) (0.0534422080415 0.0323719481925 -2.92703119746e-28) (0.0562199661022 0.0324030713514 2.84676045911e-28) (0.0590591398038 0.032333685208 0) (0.0619565846952 0.0321544214204 0) (0.0649088332768 0.0318551810618 0) (0.0679120872695 0.0314250920545 0) (0.0709622088515 0.030852464099 0) (0.0740547123884 0.0301247325806 0) (0.0771847528436 0.0292283974672 0) (0.0803471109 0.0281489463057 0) (0.0835361690061 0.0268707680538 0) (0.0867458768456 0.0253770435704 0) (0.089969695882 0.0236496199359 0) (0.0932005198247 0.0216688488151 0) (0.0964305536054 0.0194133963113 0) (0.0996511391781 0.0168599962032 0) (0.102852519997 0.0139831569953 0) (0.106023571663 0.0107547856869 0) (0.109151499841 0.00714373505089 0) (0.112222017713 0.00311551552721 0) (0.115191961112 -0.00137973100005 0) (0.118059513919 -0.00657683725315 2.27416280532e-28) (0.120963122231 -0.0125091040159 -2.12704581422e-28) (0.12384379082 -0.0191422378474 0) (0.126664718457 -0.026443520062 0) (0.129323157226 -0.0344721469364 0) (0.131699974368 -0.0433512786078 0) (0.133707716434 -0.0532337270835 0) (0.135309845861 -0.0642976286595 0) (0.136518402014 -0.0767774347734 0) (0.137339887045 -0.0910210507729 0) (0.137886249754 -0.107509578762 0) (0.13752542993 -0.126755034593 0) (0.137641249003 -0.149982637395 0) (0.137106987978 -0.164166072421 0) (0.122751488216 -0.151701882806 0) (0.077005355995 -0.0977871194628 0) (0.0407491355672 -0.0596415534763 0) (0.0274187519183 -0.0547760190726 0) (0.0220708860785 -0.0593769141655 0) (0.0103345626411 -0.0457191845568 0) (0.0044189639157 -0.0435166136772 0) (0.00189845079818 -0.0435450232191 0) (0.000234841609994 -0.0452300048101 0) (-0.000135849666447 -0.0383483740205 0) (-0.000236837067788 -0.00445140181289 0) (-0.00116574724418 -0.00719103130162 0) (-0.00444589276113 -0.0244031626971 0) (-0.000754784633447 -0.00981882103149 -1.63859993631e-28) (0.001152615822 0.00291637662467 1.28159572383e-28) (0.00249265231228 0.00807558763048 0) (0.00356624858752 0.0105484925517 0) (0.00451633215551 0.0121397843645 0) (0.0054203530371 0.0134258245893 0) (0.00632022458029 0.0145976632609 0) (0.00724067981511 0.0157216742807 0) (0.00819761148452 0.0168212347708 0) (0.00920191820195 0.0179039395353 0) (0.0102614168717 0.0189713669227 0) (0.0113819120123 0.0200228985487 0) (0.012567875937 0.0210572553544 0) (0.0138228821661 0.0220730473029 0) (0.0151498682467 0.0230689017444 0) (0.0165512775637 0.0240434386706 0) (0.0180291383036 0.0249952261095 0) (0.0195851203491 0.0259227540777 0) (0.0212205934021 0.0268244092565 0) (0.0229366788464 0.0276984351894 0) (0.0247342908378 0.0285428744019 0) (0.0266141567998 0.0293555007999 0) (0.0285768221853 0.0301337553525 0) (0.0306226440727 0.0308746978189 0) (0.0327517861795 0.0315749726907 0) (0.0349642141313 0.0322307817124 0) (0.0372596914624 0.0328378554419 0) (0.0396377709328 0.0333914263313 0) (0.042097785226 0.0338862028215 0) (0.0446388357177 0.0343163469221 0) (0.0472597835042 0.0346754511597 0) (0.0499592396746 0.0349565163438 0) (0.0527355575618 0.0351519261721 0) (0.0555868240885 0.0352534220031 0) (0.0585108535167 0.0352520735301 0) (0.0615051812024 0.0351382490732 0) (0.0645670606344 0.0349015797223 0) (0.0676934610908 0.0345309214083 0) (0.070881068799 0.0340143073035 0) (0.0741262882431 0.0333388951992 0) (0.0774252458359 0.0324908998333 0) (0.0807737912436 0.0314555154186 0) (0.0841674976976 0.0302168151156 0) (0.087601654352 0.0287576328471 0) (0.0910712509571 0.0270594102453 0) (0.0945709443063 0.0251020128661 0) (0.0980950042068 0.0228634928362 0) (0.101637223114 0.0203198013587 0) (0.105190794098 0.0174444168457 0) (0.108748161029 0.0142079058548 0) (0.112300913284 0.0105774161574 0) (0.11584016363 0.0065161347675 0) (0.119351150389 0.00198317984783 0) (0.122782645946 -0.00314919827042 0) (0.126246823318 -0.00909136465624 0) (0.129815256629 -0.0158383119486 0) (0.133449639827 -0.0233413909292 0) (0.137104684671 -0.031608937291 0) (0.140690064255 -0.0407444586368 0) (0.144119399391 -0.0508993823084 0) (0.147366093497 -0.0622520005337 0) (0.15050138326 -0.0750042099092 0) (0.153653812662 -0.0894345118051 0) (0.15703260636 -0.105933494353 0) (0.160577887717 -0.124897514881 0) (0.164933882384 -0.147190405444 0) (0.170276255815 -0.167275638354 0) (0.170456956936 -0.17478872064 0) (0.153954257802 -0.159402153702 0) (0.104929959255 -0.111735142503 0) (0.0545893030345 -0.0684645616675 0) (0.033008106661 -0.0637455600664 0) (0.0161422475167 -0.0630411347526 0) (0.00466386825867 -0.0430166731222 0) (0.00234706633852 -0.0382542243794 0) (0.00123193593418 -0.039299917739 0) (0.000323221561184 -0.0381980986465 0) (-0.000201538882413 -0.00491669837357 0) (-0.00123718496651 -0.00865984599209 0) (-0.00634167527666 -0.0426318373178 0) (-0.000717782688022 -0.00926357725884 0) (0.00115308160304 0.00434841615984 0) (0.00244882070665 0.00912903845186 0) (0.00347679022592 0.01139793939 0) (0.00437099868305 0.012906263388 0) (0.00521070124629 0.0141730114323 0) (0.00604204959377 0.0153617710941 0) (0.0068931161594 0.0165248763324 0) (0.00778184932457 0.0176778630509 0) (0.00872026293555 0.0188235689824 0) (0.0097166925964 0.0199605101572 0) (0.0107771447663 0.0210860808654 0) (0.0119061730601 0.0221977402779 0) (0.0131074269172 0.02329329086 0) (0.0143839513384 0.0243708082029 0) (0.0157383296324 0.025428491113 0) (0.0171727481043 0.0264645683146 0) (0.0186890565825 0.0274772684964 0) (0.0202888368843 0.02846479183 0) (0.0219734683563 0.0294252558174 0) (0.0237441712965 0.0303566136895 0) (0.0256020244906 0.0312565593832 0) (0.0275479567132 0.0321224440722 0) (0.0295827321559 0.032951222792 0) (0.0317069408999 0.0337394255315 0) (0.033920997837 0.0344831308476 0) (0.0362251376388 0.035177934943 0) (0.0386194057414 0.0358189203782 0) (0.0411036450509 0.0364006305349 0) (0.043677485536 0.0369170476045 0) (0.0463403346686 0.037361573013 0) (0.0490913710529 0.0377270052558 0) (0.0519295370596 0.0380055174415 0) (0.0548535337821 0.0381886318275 2.73058606463e-28) (0.0578618159274 0.0382671947639 -2.65455242457e-28) (0.0609525907932 0.0382313475158 0) (0.0641238188371 0.0380704961874 0) (0.0673732198158 0.0377732743655 0) (0.0706982815196 0.0373275020053 0) (0.0740962748413 0.0367201319264 0) (0.0775642714623 0.035937187739 0) (0.0810991673139 0.0349636816923 0) (0.0846977070568 0.0337835163997 0) (0.088356512215 0.0323793551518 0) (0.0920721060805 0.0307324644506 0) (0.0958409388068 0.028822508398 0) (0.0996594004049 0.0266272977134 0) (0.103523824783 0.0241224659437 0) (0.107430472667 0.0212810755957 0) (0.111375496545 0.0180731287526 0) (0.115354903635 0.0144650077606 0) (0.119364471068 0.0104188776169 0) (0.123399686759 0.00589248516576 0) (0.127451644544 0.000832598366166 0) (0.131460041535 -0.00500007979412 0) (0.135681864611 -0.0117106448744 0) (0.140113991445 -0.0192641179769 0) (0.144734556028 -0.0276338409981 0) (0.149502639364 -0.0368638568892 0) (0.154343275661 -0.0470792158798 0) (0.159219319919 -0.058449371267 0) (0.164209512214 -0.0711446784681 0) (0.169510593785 -0.0853567690546 0) (0.175401308691 -0.101352008682 0) (0.182100083648 -0.119408913393 0) (0.190060995253 -0.139983914766 0) (0.199670726083 -0.160854229909 0) (0.208216780071 -0.176259947405 0) (0.208674618832 -0.18026311982 0) (0.195773465878 -0.169399890269 0) (0.140794037528 -0.125665636966 0) (0.0973235993491 -0.103029718992 0) (0.041767562088 -0.0668879061616 0) (0.012241660468 -0.0419003362157 0) (0.00502217298907 -0.0404422601409 0) (0.00140663990154 -0.0408073981527 0) (2.78321147719e-05 -0.0334418151422 0) (-0.000125770755505 -0.0053275886693 0) (-0.00105620121537 -0.00925059882076 0) (-0.00596005110704 -0.0547589135152 0) (-0.000162768823801 -0.00706023686658 0) (0.00138831414211 0.00587164691851 0) (0.00252366355503 0.0101545052603 0) (0.00344113713276 0.0121925717018 0) (0.00424026411252 0.0136005891282 0) (0.00499101795028 0.0148393622321 0) (0.00573790296037 0.0160427062692 0) (0.00650887149239 0.0172462192051 0) (0.00732187496058 0.0184557771798 0) (0.00818880550508 0.0196684040406 0) (0.00911774943327 0.0208789840703 0) (0.0101144257324 0.0220826957062 -5.86199291034e-28) (0.0111831766646 0.023275715609 5.61972326738e-28) (0.0123275618419 0.0244550975041 0) (0.0135506448034 0.0256184253159 0) (0.01485508971 0.0267635088011 0) (0.0162431949488 0.0278882579919 0) (0.0177169534246 0.0289906728728 0) (0.0192781416496 0.0300688145259 0) (0.020928395427 0.0311207298244 0) (0.0226692559403 0.0321443354496 0) (0.02450217335 0.0331372851279 0) (0.0264284806631 0.0340968635976 0) (0.0284493636171 0.0350199371431 0) (0.0305658536207 0.0359029394102 0) (0.0327788310068 0.0367418480873 0) (0.0350890218668 0.0375321453753 0) (0.0374969818011 0.0382687817694 0) (0.0400030795364 0.0389461504278 0) (0.0426074837229 0.0395580702992 0) (0.0453101568061 0.0400977691789 0) (0.0481108491001 0.0405578643649 0) (0.0510090944193 0.0409303397783 0) (0.054004204421 0.0412065238343 0) (0.0570952668702 0.0413770655892 0) (0.060281145781 0.0414319115861 0) (0.0635604882433 0.0413602784164 0) (0.0669317352614 0.0411506235156 0) (0.0703931415096 0.040790607259 2.35992343297e-28) (0.0739428008465 0.0402670489755 -2.30426577562e-28) (0.0775786825123 0.039565867254 0) (0.0812986739656 0.0386720073702 0) (0.0851006354652 0.0375693427645 0) (0.0889824611888 0.0362405533615 0) (0.0929421525443 0.03466696343 0) (0.0969778967525 0.0328283406892 0) (0.101088156671 0.0307026351936 0) (0.105271761759 0.0282656566367 0) (0.109528006357 0.0254906626356 0) (0.113856746005 0.02234786016 0) (0.118258511396 0.0188037847449 0) (0.12273463928 0.0148205766541 0) (0.127287462142 0.010355030573 0) (0.131921757506 0.00535744364646 0) (0.136639547064 -0.000235080507562 0) (0.141408502441 -0.00676672109717 0) (0.146565414003 -0.0142114367558 0) (0.152077845196 -0.0225320893236 0) (0.157933551004 -0.0317151671891 0) (0.164098831166 -0.0418196594202 0) (0.170525226506 -0.0529846614609 0) (0.177251007534 -0.0653612007632 0) (0.184470350582 -0.0790698551636 0) (0.192493378738 -0.0942477816152 0) (0.201640513481 -0.111049149846 0) (0.212300359699 -0.129664010246 0) (0.224843583126 -0.149212533437 0) (0.23828994521 -0.166807718382 0) (0.248879477656 -0.178892030621 0) (0.254247999527 -0.183602914294 0) (0.241027946651 -0.172936588446 0) (0.213879828937 -0.16155360316 0) (0.1788589607 -0.148683984891 0) (0.0915830918107 -0.0863966284357 0) (0.0303667445799 -0.0434871080916 0) (0.00514115467262 -0.0296383681232 0) (0.0015609882881 -0.0303533620413 0) (-4.51627706918e-05 -0.00542575140981 0) (-0.000702143566176 -0.00856053635214 0) (-0.003211041483 -0.0471745753822 0) (0.000712167880733 -0.00457595876788 0) (0.00180176654725 0.00717400133043 0) (0.00269972289716 0.0110402881672 0) (0.00345242258458 0.0128681641627 0) (0.00411904713408 0.0141816942606 0) (0.00475628544236 0.0153981529107 0) (0.0054027848685 0.0166227127572 0) (0.00608313991712 0.0178734768607 0) (0.00681316966851 0.019146151254 0) (0.00760330770206 0.0204316823043 0) (0.00846054466773 0.0217212324416 0) (0.00938978849667 0.0230078557461 0) (0.0103948745299 0.0242866664767 0) (0.0114791293035 0.0255541650779 0) (0.0126455633864 0.0268075640442 0) (0.0138968737281 0.0280443360997 0) (0.0152354228927 0.029262108454 0) (0.0166633159124 0.0304587125128 0) (0.0181825149062 0.0316321449001 0) (0.019794925411 0.0327804598664 0) (0.0215024339391 0.0339016043099 0) (0.0233068919027 0.034993234234 0) (0.0252100575341 0.0360525857783 0) (0.0272135522775 0.0370764478275 0) (0.029318861495 0.0380611790262 0) (0.0315273526539 0.0390026826814 0) (0.033840266478 0.0398963478926 0) (0.0362586902645 0.0407370056764 0) (0.0387835321892 0.0415189088932 0) (0.0414155101835 0.0422357239945 0) (0.0441551480156 0.0428805202875 0) (0.0470027737192 0.0434457499315 0) (0.0499585133521 0.0439232257667 0) (0.0530222863872 0.0443040997041 0) (0.0561938023297 0.0445788442016 2.54683964946e-28) (0.0594725644633 0.0447372328884 -2.47386142892e-28) (0.0628578781183 0.0447683217289 0) (0.0663488691153 0.0446604256319 0) (0.0699445096852 0.0444010921928 0) (0.0736436580615 0.0439770649646 0) (0.0774451083797 0.043374237838 0) (0.0813476573268 0.0425775901139 0) (0.0853501837407 0.041571103802 0) (0.0894517480492 0.0403376492338 0) (0.0936517073133 0.0388588398648 0) (0.0979498538716 0.0371148382639 0) (0.102346571321 0.0350841129571 0) (0.106843018571 0.0327431230536 0) (0.111441331791 0.0300659289431 0) (0.116144859444 0.0270236994649 0) (0.12095843733 0.0235841164923 0) (0.125888752698 0.0197106440245 0) (0.130944894352 0.0153616619931 0) (0.136139446861 0.0104894310964 0) (0.141487395416 0.00504002330831 0) (0.147009512558 -0.00107738463207 0) (0.152740272589 -0.00824713767684 0) (0.159019314155 -0.0163481518174 0) (0.165824013715 -0.0253380242561 0) (0.173156982916 -0.0352020041218 0) (0.180989995451 -0.0460020153081 0) (0.189305751457 -0.0578640660218 0) (0.198224526858 -0.0708790731073 0) (0.208030203182 -0.0850881816591 0) (0.219065164063 -0.100527358585 0) (0.231672342999 -0.117238369931 0) (0.246147939621 -0.134852696028 0) (0.262210220099 -0.152017783321 0) (0.277978842155 -0.166671282933 0) (0.291742269717 -0.17728884934 0) (0.296771634098 -0.178857348782 0) (0.289620289617 -0.177548694946 0) (0.275106182317 -0.177997352798 0) (0.240531677293 -0.164566745776 0) (0.202471139095 -0.146660598722 0) (0.0536160985483 -0.0447790240592 0) (0.0128681316683 -0.0208007296 0) (4.55765114577e-05 -0.00540299079296 0) (-0.000339250139869 -0.00775724410821 0) (-0.000823308178799 -0.039884721841 0) (0.00163715583252 -0.00310210922332 0) (0.00229864861804 0.00812019620671 0) (0.00293087125099 0.0117035656342 0) (0.00348267176123 0.0133635138224 0) (0.0039883157192 0.0146087758719 0) (0.00449273897373 0.0158233823711 0) (0.00502633924487 0.0170852001186 0) (0.00560787507958 0.018395719493 0) (0.00624927592203 0.0197413730292 0) (0.00695838609021 0.0211076630482 0) (0.00774037463093 0.0224824784371 0) (0.00859889473319 0.02385721319 0) (0.00953706092767 0.0252264033707 0) (0.0105578906047 0.0265863450188 0) (0.0116643150423 0.0279340512918 0) (0.0128590297542 0.0292667067233 0) (0.0141444199669 0.0305817161849 0) (0.0155226826934 0.0318768374839 0) (0.0169959796707 0.0331500990694 0) (0.0185665165377 0.034399654532 0) (0.0202365658416 0.0356235567348 0) (0.0220084155823 0.0368195023356 0) (0.0238842715564 0.0379846857614 0) (0.0258661988385 0.0391158255111 0) (0.0279561524385 0.0402092355037 0) (0.0301560145933 0.0412607798079 0) (0.0324675725236 0.0422657728303 0) (0.034892466374 0.0432189312149 0) (0.0374321574945 0.0441143693107 0) (0.0400879206012 0.0449456083868 0) (0.0428608500587 0.0457055715054 0) (0.0457518586772 0.0463865596774 0) (0.0487616700781 0.0469802261622 0) (0.0518908085323 0.0474775578095 0) (0.0551395960116 0.0478688607738 0) (0.0585081541588 0.0481437493104 0) (0.0619964165553 0.048291133954 0) (0.065604148758 0.0482992102826 2.29962168899e-28) (0.0693309833379 0.0481554429955 -2.23781594623e-28) (0.0731764672544 0.0478465455971 0) (0.0771401290401 0.0473584476969 0) (0.0812215624295 0.0466762503949 0) (0.0854205348904 0.04578415889 0) (0.0897371174597 0.0446653925705 0) (0.0941718456086 0.0433020578855 0) (0.098725907019 0.0416749834961 0) (0.103401367651 0.0397634992759 0) (0.108201430507 0.0375451568471 0) (0.113130741311 0.0349953708944 0) (0.118195735201 0.0320869774125 0) (0.1234050523 0.0287896870344 0) (0.12877003829 0.0250694469827 0) (0.13430540607 0.0208877137845 0) (0.140030078123 0.0162007379185 0) (0.145968187943 0.0109591657979 0) (0.152150005611 0.00510512206406 0) (0.158622284759 -0.00149373662191 0) (0.165472763677 -0.00919480900187 0) (0.173056970098 -0.017822656626 0) (0.181362399385 -0.0273161840911 0) (0.190391620433 -0.0376460787228 0) (0.200113668826 -0.0488680294511 0) (0.210544779072 -0.0610668760456 0) (0.221867562601 -0.0742505755488 0) (0.234388798786 -0.088367676502 0) (0.24841605881 -0.103364960658 0) (0.264171567627 -0.119062006496 0) (0.281582086092 -0.13486801379 0) (0.299732014338 -0.14974337636 0) (0.317399543539 -0.162771930644 0) (0.331175237258 -0.171420556852 0) (0.337541163013 -0.178054642038 0) (0.337444282527 -0.185845447692 0) (0.325569212397 -0.188231351129 0) (0.306211979418 -0.190320486055 0) (0.208726098992 -0.150571289279 0) (0.129924166082 -0.160592552988 0) (0.000107800099535 -0.00502123120224 0) (-3.89769324076e-05 -0.00726084024665 0) (0.000936422680696 -0.0326760309275 0) (0.00248048050941 -0.00197375241565 0) (0.00280007433113 0.00873121457476 0) (0.00316335081136 0.012085592921 0) (0.00349353193549 0.0136288569563 0) (0.00382108869462 0.0148495106358 0) (0.00418148749727 0.0160954550732 0) (0.0045952306591 0.0174182685348 0) (0.00507347606027 0.0188053841581 0) (0.00562307438309 0.0202362358167 0) (0.00624854494051 0.0216923185034 0) (0.00695275668636 0.0231591597607 0) (0.00773782874931 0.0246272890057 0) (0.00860607406414 0.0260914003257 0) (0.00956023387586 0.0275480007587 0) (0.010603188815 0.0289940623622 0) (0.0117376133586 0.0304265177789 0) (0.0129658770961 0.0318426421727 0) (0.014290277933 0.0332402934867 0) (0.0157132206743 0.0346176641989 0) (0.0172372650327 0.0359731160619 0) (0.0188651213193 0.0373048794119 0) (0.0205995567403 0.038610702593 0) (0.022443241489 0.0398877171397 0) (0.0243986896911 0.0411325757627 0) (0.026468345729 0.0423415979007 0) (0.0286546503617 0.0435106553303 0) (0.0309599744628 0.0446349970178 0) (0.0333865319157 0.0457092170373 0) (0.0359363445497 0.0467272852854 0) (0.0386112521313 0.047682584112 0) (0.0414129309356 0.0485679049341 0) (0.0443428936705 0.0493754088753 0) (0.0474024701205 0.0500965955418 0) (0.0505927919862 0.0507222882812 0) (0.0539147849719 0.0512426281409 0) (0.0573691718614 0.0516470701957 0) (0.0609564820892 0.0519243825957 0) (0.0646770755411 0.0520626468502 0) (0.0685311792615 0.0520492589959 0) (0.0725189455232 0.0518709254597 0) (0.0766405281663 0.0515136527451 0) (0.0808961863141 0.0509627232063 0) (0.0852864126025 0.0502026561122 0) (0.0898120964154 0.0492171432278 0) (0.0944747195523 0.0479889572196 0) (0.0992765958393 0.0464998186008 0) (0.104221151684 0.0447302183166 0) (0.109313260784 0.0426591789439 0) (0.114559627294 0.0402639511321 0) (0.11996923533 0.0375196285489 0) (0.125553860113 0.0343986823093 0) (0.131328671453 0.0308704097584 0) (0.137312947611 0.02690032551 0) (0.143530934865 0.0224495353741 0) (0.150012844087 0.0174741291888 0) (0.156796084328 0.0119245604578 0) (0.163931257905 0.00574438746788 0) (0.171500553921 -0.00120621567484 0) (0.17960033852 -0.009303024386 0) (0.18863841981 -0.0182844807469 0) (0.198603821698 -0.0280540562298 0) (0.209486864957 -0.0385746406237 0) (0.221241134169 -0.049890991179 0) (0.233900584606 -0.0620267289853 0) (0.247663086406 -0.074908469799 0) (0.262794731941 -0.0884221223372 0) (0.279487636313 -0.10244304825 0) (0.297733741629 -0.116749389526 0) (0.317091323777 -0.130957796734 0) (0.336803691749 -0.144750930987 0) (0.355129171284 -0.157212880397 0) (0.369697879784 -0.169271654968 0) (0.379891621342 -0.182941238339 0) (0.382628900556 -0.196549788313 0) (0.383156123587 -0.214304464475 0) (0.343791101264 -0.210966997672 0) (0.305733590272 -0.237830171956 0) (0.000134210301852 -0.00434543748277 0) (0.000166923135695 -0.00690848916306 0) (0.0021235841175 -0.0274870577378 0) (0.00322576992542 -0.000984283191572 0) (0.00325211122876 0.00900249058078 0) (0.00334437586338 0.0121422042613 0) (0.00344378119098 0.013632388352 0) (0.00358808645508 0.014886225242 0) (0.00380257131614 0.0162052186102 0) (0.00409602681091 0.017617081061 0) (0.00447087525768 0.0190996395834 0) (0.00492836058835 0.0206287110265 0) (0.00546943982862 0.022183742107 0) (0.00609451491724 0.0237490815679 0) (0.00680408396239 0.0253154172862 0) (0.00759973566301 0.0268785812518 0) (0.00848409120082 0.0284357494004 0) (0.00946006638209 0.0299839120989 0) (0.0105302897731 0.0315197112289 0) (0.0116970830491 0.0330404551662 0) (0.0129628988875 0.0345443072385 0) (0.014330474709 0.0360297415914 0) (0.0158027955371 0.0374954445545 0) (0.0173830726352 0.038939925703 0) (0.0190745916366 0.0403609930961 0) (0.0208804985016 0.0417556886048 0) (0.0228037568791 0.0431205996753 0) (0.024847338196 0.0444521171717 0) (0.0270143054407 0.0457461660376 0) (0.0293076563991 0.0469979144948 0) (0.0317301888598 0.0482018083036 0) (0.034284488083 0.0493516624169 0) (0.0369729665277 0.0504407322087 0) (0.0397979042248 0.0514616988273 0) (0.0427614361831 0.0524065929055 0) (0.045865515162 0.0532667581591 0) (0.0491118852832 0.0540328468924 0) (0.0525020741352 0.0546948245714 0) (0.0560373910551 0.0552419751893 0) (0.0597189354462 0.0556629104109 2.25973498342e-28) (0.0635476156043 0.0559455856617 -2.19181066885e-28) (0.0675241892176 0.0560773193079 0) (0.0716493231846 0.0560448112783 0) (0.0759236814911 0.0558341558479 0) (0.080348038559 0.0554308471716 0) (0.084923429389 0.0548197703429 0) (0.0896513344949 0.0539851756041 0) (0.0945339124005 0.052910624934 0) (0.0995742774544 0.0515789075126 0) (0.104776836504 0.0499719096033 0) (0.11014768045 0.0480704344226 0) (0.115695044322 0.0458539568352 0) (0.12142982822 0.0433003097095 0) (0.127366196008 0.0403852940672 0) (0.133522245075 0.0370822202368 0) (0.139920777497 0.0333613904528 0) (0.146590183638 0.0291895594141 0) (0.153565488291 0.024529386587 0) (0.160889598019 0.0193388924906 0) (0.168614694923 0.0135709801426 0) (0.176811531503 0.00717674659862 0) (0.185598787803 6.34861260324e-05 0) (0.195054713026 -0.00823311639483 0) (0.205629112752 -0.017358646731 0) (0.217350053137 -0.0271492854406 0) (0.230168800629 -0.0375717862914 0) (0.244003529734 -0.0486478864059 0) (0.258882299355 -0.0603507177707 0) (0.27497431649 -0.0725674134058 0) (0.292462872506 -0.0851717918938 0) (0.311402779834 -0.098081407645 0) (0.331602965258 -0.111256199456 0) (0.352656235846 -0.124770122921 0) (0.373737114292 -0.138572351182 0) (0.393640897091 -0.153330594213 0) (0.411950646554 -0.17050413299 0) (0.427532910843 -0.190405514019 0) (0.444486659063 -0.215949860984 0) (0.450417884734 -0.235523984805 0) (0.443681189265 -0.256480366523 0) (5.90874042956e-05 -0.00340855226897 0) (0.000213040316381 -0.00661960809447 0) (0.00319525416647 -0.0235560798706 0) (0.00388300517361 -8.99136417669e-05 0) (0.0036068799967 0.00892170889437 0) (0.00342170678825 0.0118566234749 0) (0.00329329972085 0.0133685900637 0) (0.00326218926145 0.0147195367839 0) (0.00333860912731 0.0161552484917 0) (0.00351786658127 0.0176841451654 0) (0.00379347836554 0.0192797830667 0) (0.0041613515432 0.0209191650283 0) (0.00461913545663 0.0225815746908 0) (0.00516490609235 0.0242511880884 0) (0.00579761033137 0.0259198757045 0) (0.006518363211 0.0275857150078 0) (0.00732994942856 0.0292468840057 0) (0.0082354523955 0.0309003280433 -5.01960361812e-28) (0.00923738863744 0.0325423325669 4.81052706623e-28) (0.0103380010563 0.0341705751645 0) (0.0115400258417 0.0357838439955 0) (0.0128466627187 0.0373809501945 0) (0.0142614038272 0.0389610043412 0) (0.0157880276876 0.040522845688 0) (0.0174303787966 0.0420642793218 0) (0.0191920850189 0.0435822161276 0) (0.0210765691032 0.0450732533985 0) (0.0230873884393 0.0465340020016 0) (0.0252283176136 0.0479604817137 0) (0.0275030159054 0.0493476966257 0) (0.0299148621285 0.0506898862519 0) (0.0324670027532 0.0519806986001 0) (0.0351624402135 0.0532132908707 0) (0.038004092757 0.0543802668462 0) (0.040994753174 0.0554735296426 0) (0.0441370161528 0.0564842534264 0) (0.0474332491244 0.057402902449 0) (0.0508855837768 0.0582192472 0) (0.054495912262 0.0589223758691 0) (0.0582658839025 0.0595007131386 0) (0.0621969195119 0.0599420544999 0) (0.0662902463725 0.0602336085358 0) (0.0705469618 0.0603620397565 0) (0.0749681211466 0.0603135100713 0) (0.0795548617873 0.0600737160737 0) (0.0843085621898 0.0596279192539 0) (0.0892310496882 0.0589609622325 0) (0.0943248560173 0.0580572663748 0) (0.0995935348976 0.0569008002411 0) (0.10504203986 0.0554750119114 0) (0.110677175074 0.0537627114713 0) (0.116508112868 0.0517458958971 0) (0.122546987646 0.0494055053427 0) (0.128809552978 0.0467211091286 0) (0.135315913928 0.0436705257831 0) (0.142091325149 0.0402293924814 0) (0.149167086298 0.0363707121008 0) (0.15658155541 0.0320644163323 0) (0.164381338304 0.027276990827 0) (0.172622751015 0.0219712229546 0) (0.18137333924 0.0161060258211 0) (0.190721971554 0.00964336834987 0) (0.200800379461 0.00257505993406 0) (0.211740740567 -0.005580558538 0) (0.223846453389 -0.014614137001 0) (0.237322787224 -0.0241998412666 0) (0.252059701248 -0.0342632507273 0) (0.267939166022 -0.0448154422366 0) (0.284954459308 -0.0558261662232 0) (0.30321762548 -0.0671904676242 0) (0.322838424344 -0.078842999173 0) (0.343798332117 -0.0908436336855 0) (0.365934540759 -0.103430561244 0) (0.388917619173 -0.116928005461 0) (0.412286814961 -0.131982451909 0) (0.435962669336 -0.149635188705 0) (0.459516003677 -0.170414070578 0) (0.485134117297 -0.195555587555 0) (0.508324328249 -0.218715942383 0) (0.531617386799 -0.239894911238 0) (-5.26648906684e-05 -0.00264018462294 0) (0.000117420958722 -0.00637604836235 0) (0.00418827717586 -0.019980307798 0) (0.00437798437755 0.000640677190296 0) (0.00378615262557 0.00848315114 -1.02843666224e-28) (0.00333712684643 0.0112531916968 9.86720356653e-29) (0.00300650919684 0.0128728566786 0) (0.00282308629039 0.014386186346 0) (0.00277828101808 0.0159787690995 0) (0.0028547173282 0.0176480969633 0) (0.00303855198234 0.0193702859509 0) (0.00332151628434 0.0211272020117 0) (0.00369864363617 0.0229001864015 0) (0.00416606343557 0.0246743948566 0) (0.00472140747422 0.0264439926157 0) (0.0053656236999 0.0282122494859 0) (0.00610194713292 0.0299794502541 0) (0.00693367480395 0.0317406732707 0) (0.00786307362869 0.0334909726701 0) (0.00889242537786 0.0352288148004 0) (0.0100250044163 0.0369540827759 0) (0.0112646132317 0.0386659029318 0) (0.0126153160653 0.0403639250566 -4.071914124e-28) (0.0140815195026 0.042047402478 0) (0.0156676548062 0.0437140024757 0) (0.0173778452691 0.0453604691499 0) (0.0192160040626 0.0469834638393 0) (0.0211863771579 0.048579985745 0) (0.0232935645929 0.0501461833937 0) (0.0255418986925 0.0516767925879 0) (0.0279353116442 0.0531658111256 0) (0.0304775167871 0.0546067088938 0) (0.0331721391817 0.0559925777045 0) (0.0360227929857 0.0573159826259 0) (0.0390329699864 0.0585686834131 0) (0.0422059261907 0.0597416580674 0) (0.0455446629632 0.0608251585126 0) (0.0490519293322 0.0618087348065 0) (0.0527302056613 0.0626812437102 0) (0.0565816857473 0.0634308753773 0) (0.0606082759494 0.0640452104483 0) (0.0648116275361 0.0645112899776 0) (0.0691931931557 0.0648156845787 0) (0.0737543145072 0.0649445662111 0) (0.078496342195 0.0648837823889 0) (0.0834208030662 0.0646189296312 0) (0.0885296154419 0.0641354207943 0) (0.0938253678721 0.0634185396248 0) (0.0993116616462 0.0624534748363 0) (0.104993532219 0.061225321789 0) (0.110877946024 0.0597190404821 0) (0.116974381732 0.0579193543863 0) (0.123295482333 0.0558105798318 0) (0.12985777823 0.0533763796812 0) (0.136682459118 0.0505994462008 0) (0.143796200179 0.0474611340312 0) (0.151232032131 0.0439410731283 0) (0.159030287863 0.0400168146513 0) (0.167239643918 0.0356635730071 0) (0.175918302487 0.0308541564531 0) (0.185135440259 0.0255592555521 0) (0.194972765407 0.0197480399165 0) (0.205521708406 0.0133973665227 0) (0.216912004799 0.00651022115504 0) (0.229330954157 -0.00116656970126 0) (0.242929027027 -0.00985259689516 0) (0.258073032098 -0.0190178520472 0) (0.274665097571 -0.0284944320186 0) (0.292533457345 -0.0383088646185 0) (0.311611611104 -0.048455079987 0) (0.331964880168 -0.0589091266574 0) (0.353674224104 -0.0697081421308 0) (0.376755923356 -0.0810644478626 0) (0.401147102924 -0.0933717637774 0) (0.426751361247 -0.10724484403 0) (0.453670719426 -0.123503096142 0) (0.481838353187 -0.142741222697 0) (0.512625797518 -0.165831776956 0) (0.54399010537 -0.190128410893 0) (0.586294793258 -0.213386134874 0) (-0.000162766996481 -0.00246025573767 0) (-5.63991742824e-06 -0.00645066651252 0) (0.00476259958078 -0.0163492618138 0) (0.00453230280905 0.00101632186867 0) (0.00370031494054 0.00772493529444 0) (0.00304611482103 0.0104185114283 0) (0.00256407268707 0.0122207821705 0) (0.00226306194445 0.0139436179509 0) (0.00211917831475 0.0157208563305 0) (0.00210693804598 0.0175466002221 0) (0.00220788988734 0.0194035149901 0) (0.00241179876179 0.0212814280789 0) (0.0027119708958 0.0231649111817 0) (0.00310301575935 0.0250408260552 0) (0.0035815394046 0.0269068568515 0) (0.00414863033897 0.0287733210014 0) (0.00480805088186 0.0306428981383 0) (0.00556328681753 0.0325081912776 0) (0.00641622471071 0.0343637032217 0) (0.00736919161132 0.0362114246026 0) (0.00842636530186 0.0380506804209 0) (0.00959235197652 0.0398796831362 0) (0.0108719440946 0.0416986440993 4.08329942822e-28) (0.0122702608992 0.0435074126047 0) (0.0137922973346 0.0453033637704 0) (0.015442708866 0.0470831018139 0) (0.0172259679438 0.0488435131426 0) (0.0191471432285 0.0505821763042 0) (0.0212117923853 0.052295273692 0) (0.0234248908728 0.0539770142598 0) (0.0257908952461 0.0556211617476 0) (0.0283141204214 0.0572210860576 0) (0.0309988685092 0.0587699156474 0) (0.0338495247272 0.0602602011611 0) (0.0368703224233 0.0616834829615 0) (0.0400651859715 0.0630304952604 0) (0.0434377650242 0.0642912551861 0) (0.0469914472832 0.0654550655737 0) (0.0507293225827 0.066510507296 0) (0.0546541338235 0.0674454700709 0) (0.0587682631472 0.06824724526 0) (0.0630737555627 0.0689026258474 0) (0.0675723690682 0.0693980004424 0) (0.0722656453841 0.0697194550402 0) (0.0771550221301 0.0698528885448 0) (0.0822419908016 0.069784134979 0) (0.0875283168156 0.0694990887485 0) (0.0930163238751 0.0689838256522 0) (0.0987092609994 0.0682247123402 0) (0.104611753595 0.0672084908757 0) (0.110730352439 0.065922323039 0) (0.117074172017 0.0643537739293 0) (0.123655616108 0.062490716289 0) (0.130491162224 0.0603211428063 0) (0.13760218884 0.0578328927799 0) (0.145015812804 0.0550133119015 0) (0.152765735474 0.0518488927242 0) (0.160893085578 0.0483249442445 0) (0.169447275887 0.0444253735421 0) (0.178486861363 0.0401326575499 0) (0.188080363791 0.0354281240974 0) (0.198306915724 0.0302927552237 0) (0.209255263904 0.024708501902 0) (0.221023956701 0.018655942662 0) (0.233746796987 0.0121409297393 0) (0.247577836248 0.00520943251739 0) (0.262732133015 -0.00255490189891 0) (0.279330950348 -0.0111133568701 0) (0.297597617491 -0.0199534058579 0) (0.317347852868 -0.0289679673963 0) (0.33846699796 -0.0382144111546 0) (0.360962236459 -0.0477779139495 0) (0.384921221738 -0.0578108729274 0) (0.410445791215 -0.0686204937027 0) (0.437648475988 -0.0807111499156 0) (0.466763473891 -0.0947798652981 0) (0.497999776181 -0.1115110346 0) (0.532434507089 -0.131754724404 0) (0.568181316355 -0.15465252155 0) (0.620536026726 -0.178071757058 0) (-0.000238334206113 -0.00281004380154 0) (7.71410471415e-05 -0.00630613192571 0) (0.00461893342549 -0.0135972427979 0) (0.00428229715083 0.000816282239417 0) (0.00333061749014 0.00674429488153 0) (0.00255182191225 0.00946864937071 0) (0.00197592152039 0.0115053165084 0) (0.00159470708825 0.0134635160598 0) (0.00137518387346 0.0154373882328 0) (0.00128952681785 0.0174242854557 0) (0.00131776635113 0.0194165335679 0) (0.00144883152174 0.0214138993121 0) (0.00167529757059 0.0234047024515 0) (0.00199070445981 0.0253778500699 0) (0.00239073804376 0.0273353793537 0) (0.00287832096492 0.0292946469554 0) (0.00345926302081 0.0312605729338 0) (0.00413600581212 0.0332228559963 0) (0.0049093276068 0.0351751837276 0) (0.00578158367377 0.0371253280195 0) (0.00675799112741 0.0390737316639 0) (0.00784399964935 0.0410183998181 0) (0.00904511212498 0.0429600030407 0) (0.0103673331969 0.0448971223959 0) (0.0118163818894 0.0468257747634 0) (0.013397764753 0.0487427422318 0) (0.0151165176125 0.0506454238607 0) (0.016978642852 0.0525321666358 0) (0.0189907924609 0.054399009461 0) (0.0211585030966 0.0562392997496 0) (0.0234867464839 0.058046652962 0) (0.0259805393629 0.059814351106 0) (0.0286449436902 0.0615356695525 0) (0.0314852171999 0.0632032305444 0) (0.0345063518003 0.0648082457841 0) (0.0377129290078 0.0663411422362 0) (0.0411092655745 0.0677916687866 0) (0.044699425012 0.0691488511425 0) (0.0484871350136 0.0704009394478 0) (0.0524757030425 0.0715354399579 0) (0.0566679871124 0.0725392634313 0) (0.0610664214821 0.0733988588823 0) (0.0656730464301 0.0741003184414 0) (0.0704895542533 0.0746295087567 0) (0.0755173736608 0.0749722302478 0) (0.0807578128607 0.0751143957672 0) (0.0862122632105 0.0750422193324 0) (0.091882483402 0.0747424142269 0) (0.0977709713389 0.0742023895492 0) (0.103881444894 0.0734104341393 0) (0.110219433816 0.0723558649615 0) (0.11679299097 0.0710291126489 0) (0.123613499293 0.0694217079646 0) (0.130696547342 0.067526147765 0) (0.138062821237 0.0653356369342 0) (0.145738977799 0.0628437383624 0) (0.153758460837 0.0600439771408 0) (0.162162255486 0.0569294738369 0) (0.170999566163 0.0534926699824 0) (0.180328418842 0.0497252282288 0) (0.190216153407 0.0456181519842 0) (0.200739725705 0.0411621572336 0) (0.211985771438 0.0363481987608 0) (0.224050737692 0.0311668204112 0) (0.237043968141 0.0256089361261 0) (0.25106950992 0.0196896162602 0) (0.266265545465 0.013434174177 0) (0.282804773504 0.00691201211704 0) (0.300898314911 -0.000282352328631 0) (0.320606759908 -0.00813379965078 0) (0.342029390473 -0.0164154045548 0) (0.365167656988 -0.0248700898011 0) (0.389957211288 -0.0335955635329 0) (0.416484465248 -0.0428481425099 0) (0.444950666877 -0.0530024505756 0) (0.475694216288 -0.0646000206054 0) (0.509088906526 -0.0782694383786 0) (0.546048635084 -0.094739245067 0) (0.584691779576 -0.113917724227 0) (0.643402685387 -0.13520324216 0) (-0.000276940953854 -0.00338671950716 0) (0.000189409027824 -0.00623904585076 0) (0.00400680058518 -0.012571281923 0) (0.00369764323892 7.99137481069e-05 0) (0.00272923618178 0.00565232185763 0) (0.00189956183955 0.00850204405364 0) (0.00127476574453 0.0108009590403 0) (0.000842757794076 0.013003451876 0) (0.000568034334183 0.0151772866475 0) (0.000423842533574 0.0173254913768 0) (0.000389996703169 0.0194494185902 0) (0.000455593517398 0.0215601222516 0) (0.000612932626011 0.0236500594511 0) (0.000854776119678 0.025710695205 0) (0.00117625020182 0.0277485241276 0) (0.00158225825348 0.0297913416461 0) (0.00208067405521 0.0318473065858 0) (0.00267315671231 0.0339004584683 0) (0.00336011471246 0.035943756368 0) (0.00414671094876 0.037990953167 0) (0.00503735728246 0.0400419407009 0) (0.00603765490577 0.0420939619191 0) (0.00715363507885 0.0441510053081 0) (0.00839201712685 0.0462121791499 0) (0.00975905953344 0.048274758478 0) (0.0112612555995 0.0503322794652 0) (0.0129046815424 0.0523814579517 0) (0.0146966802475 0.0544215322189 0) (0.0166451667148 0.0564483017939 0) (0.0187559747775 0.0584538688159 0) (0.0210346319601 0.0604320080533 0) (0.0234870492785 0.062375947026 0) (0.0261191416809 0.0642792027113 0) (0.0289371637466 0.0661343975688 0) (0.0319468622678 0.0679321987866 0) (0.0351534525592 0.0696627841136 0) (0.0385619509941 0.0713156382671 0) (0.0421771407578 0.0728794525383 0) (0.0460034208887 0.074342065789 0) (0.0500446741921 0.0756904910059 0) (0.0543042430702 0.0769111624059 0) (0.0587849661537 0.0779900832333 0) (0.0634891805929 0.0789129168171 0) (0.0684187170086 0.0796651412613 0) (0.0735749486275 0.0802322615851 0) (0.0789588976606 0.080600046833 0) (0.0845714117078 0.080754791282 0) (0.090413420606 0.0806835960084 0) (0.0964863025651 0.0803746699817 0) (0.102792373118 0.0798176317336 0) (0.10933552387 0.0790037927403 0) (0.116122011528 0.0779263728744 0) (0.123161382657 0.0765805915944 0) (0.130467471882 0.0749635825895 0) (0.13805940531 0.0730741270683 0) (0.145962531922 0.0709122370667 0) (0.154209240284 0.0684786660541 0) (0.162839631932 0.0657744240172 0) (0.171902055051 0.0628003888702 0) (0.181453496909 0.0595570645004 0) (0.191559837536 0.056044537402 0) (0.202295944697 0.0522626153122 0) (0.213745598759 0.0482110984383 0) (0.22600135283 0.0438901178446 0) (0.239164175749 0.0393008275463 0) (0.253339550682 0.0344490982935 0) (0.268642067658 0.0293300205543 0) (0.285175850466 0.0239687771845 0) (0.303058317115 0.0184053709981 0) (0.322459971843 0.0126873027437 0) (0.343580384161 0.00662628905186 0) (0.366573039964 -6.64326909739e-05 0) (0.391534981706 -0.00745673817276 0) (0.418612803737 -0.0154899887969 0) (0.448027185509 -0.0239460076267 0) (0.480039131528 -0.0331424368992 0) (0.515038048886 -0.0435709795649 0) (0.553818372788 -0.0558473553685 0) (0.594856396515 -0.070254010595 0) (0.658373016069 -0.0874692058153 0) (-0.00023877641699 -0.00412908512843 0) (0.000144383107868 -0.0111248384898 0) (0.0029720203605 -0.0130195846785 0) (0.00284019711823 -0.000920065928998 0) (0.0019633037004 0.00452693060079 0) (0.00114014031439 0.00757637673317 0) (0.00050062099685 0.010170274905 0) (4.18696528757e-05 0.0126304140575 0) (-0.000271263166308 0.0150093063934 0) (-0.000462270296375 0.0173176378478 0) (-0.000549572141411 0.01956491467 0) (-0.000542589239222 0.0217769077373 0) (-0.000449121325788 0.0239521771943 0) (-0.000276954534865 0.0260850506903 0) (-3.08386088651e-05 0.028187368282 0) (0.000294736619737 0.0302991093389 0) (0.000708958289257 0.0324319338092 0) (0.00121296858863 0.0345623763888 0) (0.0018060929005 0.0366829563147 0) (0.00249685654064 0.0388178403993 0) (0.00329118403042 0.0409653309018 0) (0.00419665943472 0.04312068875 0) (0.00522025242651 0.0452890966877 0) (0.00636719787546 0.0474679811434 0) (0.00764357603338 0.0496555800821 0) (0.0090571074853 0.0518476703582 0) (0.0106145518181 0.0540442130427 0) (0.0123245707177 0.0562420333555 0) (0.0141967867911 0.0584341725813 0) (0.0162375243396 0.0606107242019 0) (0.0184532585036 0.0627664886134 0) (0.0208508890243 0.0648945695283 0) (0.0234371843276 0.066988864026 0) (0.0262195675134 0.0690419248586 0) (0.0292044883501 0.0710434723029 0) (0.0323977980614 0.0729834762214 0) (0.0358052959683 0.0748511887072 0) (0.039432534237 0.0766349674158 0) (0.0432845971927 0.0783221328435 0) (0.0473659409792 0.0798990447952 0) (0.0516803946611 0.0813515630353 0) (0.0562312366364 0.0826651570716 1.884832334e-28) (0.0610211424089 0.0838249161059 0) (0.0660521104772 0.0848157340562 0) (0.0713254595331 0.0856225805484 0) (0.076841889401 0.0862308024101 0) (0.0826015994021 0.086626453928 0) (0.0886044969484 0.0867966736385 0) (0.0948505216085 0.0867301010629 0) (0.101340123382 0.0864173270466 0) (0.108074928577 0.08585135259 0) (0.11505862843 0.0850279929869 0) (0.12229805961 0.0839461113689 0) (0.129804394396 0.082607594234 0) (0.137594312591 0.0810170385291 0) (0.145691046881 0.0791812102391 0) (0.154125225067 0.0771083745058 0) (0.162935488011 0.0748076246604 0) (0.172168890606 0.0722883041618 0) (0.181881115842 0.0695595991539 0) (0.19213652545 0.0666303190817 0) (0.203008062381 0.0635088704931 0) (0.214577007646 0.0602033702761 0) (0.226932565854 0.0567218732642 0) (0.240171216328 0.0530727594897 0) (0.254395342832 0.049265124157 0) (0.269712423266 0.0453060618259 0) (0.28623266466 0.0412056333432 0) (0.304072760969 0.036956654423 0) (0.323340761699 0.0325605740979 0) (0.344143085164 0.0280442949378 0) (0.366663955635 0.0234231901836 0) (0.39113637391 0.0187132105126 0) (0.417795971228 0.0137308259286 0) (0.447020401854 0.007978396802 0) (0.47920973046 0.00130219215763 0) (0.514842441127 -0.00650788405055 0) (0.554682168543 -0.0155828973557 0) (0.59775200534 -0.0256343599806 0) (0.66530514377 -0.0375949644411 0) (-0.000156936240475 -0.00467982324805 0) (4.58000300503e-05 -0.0219307460291 0) (0.00197596662574 -0.0148314557919 0) (0.00187999292103 -0.00196362352111 0) (0.00110630913119 0.00344816841834 0) (0.000323437045445 0.00677393920186 0) (-0.000304060642923 0.00972516358109 0) (-0.000772940036033 0.0124811758263 0) (-0.00111319345059 0.0150771647275 0) (-0.00134089832276 0.0175398913263 0) (-0.00147441878856 0.0198965397929 0) (-0.00152169665387 0.0221872091478 0) (-0.00148900993924 0.0244179157348 0) (-0.00138439993294 0.0265905765056 0) (-0.00121232650811 0.0287233858629 0) (-0.000965402648734 0.0308731144388 0) (-0.000633147944572 0.0330591639781 0) (-0.000216880510702 0.0352463879998 0) (0.000282306817903 0.0374254872075 0) (0.00087501371671 0.0396339004791 0) (0.00156618613536 0.0418646854386 0) (0.00236447613119 0.0441107803571 0) (0.00328080302109 0.0463814149119 0) (0.00432137402164 0.0486718687409 0) (0.00549733950817 0.0509820198395 0) (0.00681259454457 0.0533043828492 0) (0.00827359801431 0.0556406717538 0) (0.00989028785802 0.0579900950059 0) (0.0116738812488 0.0603480797894 0) (0.0136305551235 0.0626999290278 0) (0.0157683753111 0.0650394713817 0) (0.0180961052738 0.0673587994951 0) (0.0206216050602 0.0696526418436 0) (0.0233534732532 0.0719133292213 0) (0.0262986857084 0.0741291436741 0) (0.029463816877 0.0762901636875 0) (0.0328555864996 0.0783852629899 0) (0.0364803655179 0.0804023433685 0) (0.0403439456732 0.0823281743181 0) (0.0444513199298 0.084148270949 0) (0.0488067896893 0.0858478274975 0) (0.0534141152088 0.0874117015601 -1.86270335834e-28) (0.0582763692119 0.0888242547319 0) (0.0633957672833 0.0900695798051 0) (0.0687736220167 0.0911318479636 0) (0.0744103389402 0.0919956603125 0) (0.0803054539402 0.0926464432498 0) (0.0864577489297 0.093070914781 0) (0.0928654960003 0.0932576354523 0) (0.0995268692463 0.0931976310276 0) (0.106440611927 0.0928851020103 0) (0.113607031284 0.0923181073696 0) (0.121029306139 0.0914990256215 0) (0.128714959301 0.0904346087973 0) (0.136677297467 0.0891355872673 1.20610095217e-28) (0.14493663515 0.0876159094656 -1.17276915944e-28) (0.153521204237 0.0858917951983 0) (0.162467725817 0.0839807769326 0) (0.171821684915 0.0819008761675 0) (0.181637368904 0.0796699858451 0) (0.191977730874 0.0773054901042 0) (0.202914122062 0.0748240882849 0) (0.214525909857 0.0722417853592 0) (0.226899979547 0.0695739723406 0) (0.240130092809 0.0668355284947 0) (0.254316086924 0.0640407905641 0) (0.269563308091 0.0612028434973 0) (0.285982173235 0.0583330517896 0) (0.303688649713 0.0554382272596 0) (0.322803665145 0.0525228392229 0) (0.343461176753 0.0495712712382 0) (0.365813477555 0.0465526764791 0) (0.390010348267 0.0434732362254 0) (0.416242739215 0.0403507900126 0) (0.444857287846 0.0371735999742 0) (0.476339905666 0.0339779356865 0) (0.511222275449 0.0308284959247 0) (0.550350855925 0.0275709597006 0) (0.593242173716 0.0237068406784 0) (0.661717047753 0.0192757867891 0) (-9.72861960517e-05 -0.00486267966006 0) (2.87790442561e-05 -0.0322815115801 0) (0.00119116978903 -0.0161496647034 0) (0.000971409661576 -0.00284741202181 0) (0.000234859140783 0.00255168708199 0) (-0.000507856228724 0.00626030290023 0) (-0.00110516401346 0.00960087214399 0) (-0.00155947412892 0.0126355776777 0) (-0.00190786506806 0.0154207878177 0) (-0.00216067293227 0.0180140477301 0) (-0.00232987343918 0.020467804126 0) (-0.00242493037505 0.0228213729863 0) (-0.0024527047616 0.0250910804334 0) (-0.00241762774339 0.027289777837 0) (-0.0023239723966 0.0294414415286 0) (-0.00216268854247 0.0316108829987 0) (-0.001919173149 0.0338177633657 0) (-0.00159476471676 0.0360224249011 0) (-0.00119198176654 0.0382244591501 0) (-0.000698011163489 0.0404803935499 0) (-0.000111066335536 0.0427740286243 0) (0.000578461054738 0.0450931942037 4.44629620253e-28) (0.00138340062219 0.0474519645752 -4.23895484451e-28) (0.00230722220728 0.0498403983369 0) (0.0033638701571 0.0522616393937 0) (0.00456182461702 0.0547066841679 0) (0.00591321306088 0.0571802596104 0) (0.00742485712757 0.0596790690677 0) (0.0091073258354 0.0621963182539 0) (0.0109661386211 0.0647163684257 0) (0.01301147209 0.0672410417484 0) (0.0152535296935 0.069757604314 0) (0.0177014787384 0.0722588002379 0) (0.0203661950254 0.0747360878936 0) (0.0232551477873 0.0771759276986 0) (0.0263756518657 0.0795691332393 0) (0.0297354765246 0.0819039229665 0) (0.0333418425073 0.0841676460347 0) (0.0372012739798 0.0863462917142 0) (0.0413192762034 0.0884243038883 0) (0.0457005874431 0.0903862280772 0) (0.050349484943 0.0922162474274 0) (0.0552694823855 0.0938978014227 0) (0.0604630560232 0.095413951385 0) (0.0659315800462 0.0967478017814 0) (0.0716752542209 0.0978828723365 0) (0.0776930240802 0.098803522331 0) (0.0839825638387 0.0994954985663 1.46241576955e-28) (0.0905403702086 0.099946613318 0) (0.0973620268689 0.100147568801 0) (0.104442795365 0.100093016689 0) (0.111778727118 0.099782697244 0) (0.119368286675 0.099222263895 0) (0.127214254307 0.0984234680454 0) (0.135325564626 0.0974036127596 0) (0.143718803192 0.0961844507184 0) (0.152419218227 0.0947908091953 0) (0.161461248539 0.0932492320531 0) (0.170888653097 0.0915868267312 0) (0.180754358676 0.0898304169012 0) (0.1911201324 0.0880059999492 0) (0.202056152467 0.0861384698928 0) (0.213640522251 0.0842515229801 0) (0.225958737712 0.0823676699412 0) (0.239103132184 0.0805082555021 0) (0.25317233219 0.0786933959717 0) (0.268270892537 0.0769417000088 0) (0.284509321199 0.0752700200384 0) (0.302004904039 0.0736928908816 0) (0.320883148894 0.0722224502855 0) (0.341281778868 0.0708664519648 0) (0.36335704722 0.069633122277 0) (0.387289965597 0.0685300508654 0) (0.413302258984 0.0675434708641 0) (0.441682383728 0.0666672809615 0) (0.472793974115 0.065977014792 0) (0.507072272187 0.0656228889178 0) (0.545229746345 0.065813556535 0) (0.586332658172 0.0668550396786 0) (0.65081258892 0.0696036464301 0) (-5.79030612565e-05 -0.00484356034382 0) (8.44586338567e-05 -0.0414294281032 0) (0.000565688305182 -0.0169833273909 0) (0.000136438984437 -0.00352149721048 0) (-0.000614802478462 0.00200864818943 0) (-0.00132112984309 0.00610771922776 0) (-0.00190000940825 0.00968218974259 0) (-0.00236456829506 0.0128629873217 0) (-0.00272775993341 0.0157637055563 0) (-0.00300368109126 0.0184541725537 0) (-0.00320298770908 0.0209941907661 0) (-0.00333374548192 0.0234275005016 0) (-0.00340187656201 0.0257746393137 0) (-0.00341057918118 0.0280519328556 0) (-0.00336372792999 0.0302836376464 0) (-0.00326179181894 0.032510338658 0) (-0.00310189297045 0.0347358162303 0) (-0.00287762873499 0.0369469698427 0) (-0.00258123019224 0.039159265364 0) (-0.0021948588146 0.0414356858403 0) (-0.00171783361425 0.0437547465756 0) (-0.00114137342418 0.0461146010971 0) (-0.000450938970136 0.0485368611167 0) (0.000352640759042 0.0510024101618 0) (0.0012876994948 0.0535191622726 0) (0.00236036649176 0.0560739917735 0) (0.00358271181478 0.058673853412 0) (0.00496649032701 0.0613130973237 0) (0.00653097127791 0.063985701168 0) (0.00827782624887 0.0666718159049 0) (0.0102160385556 0.0693758994501 0) (0.0123569975218 0.0720837646035 0) (0.0147110453496 0.0747964326495 0) (0.0172910180528 0.0774982422565 0) (0.0201051361448 0.0801708482459 0) (0.0231628856759 0.0828067951458 0) (0.0264731155765 0.085393080892 0) (0.0300437286966 0.0879164459684 0) (0.0338820780002 0.0903620111257 0) (0.037994123947 0.0927126351171 0) (0.0423850134694 0.0949523050417 0) (0.0470595884933 0.0970645548134 0) (0.0520217976086 0.0990316437613 0) (0.0572743677118 0.100835337925 0) (0.0628187869402 0.102457428392 0) (0.0686551598022 0.103880036236 0) (0.0747819937409 0.105086009955 0) (0.0811959989333 0.106059502873 -1.43710420928e-28) (0.0878919534168 0.106786755216 0) (0.094862668487 0.107257100455 1.3288971235e-28) (0.102099368916 0.107464545359 0) (0.1095929054 0.107409646615 0) (0.117335835557 0.107100953948 0) (0.125324962471 0.106555391381 0) (0.133563763687 0.105797464644 0) (0.142064267306 0.104857609106 0) (0.150848197676 0.103770187296 0) (0.159947433751 0.10257156821 0) (0.169403949992 0.101298567498 0) (0.179269434143 0.0999873407824 0) (0.189604745546 0.0986727120529 0) (0.200479325722 0.0973878399736 0) (0.211970617443 0.0961641151485 0) (0.224163521785 0.0950311763154 0) (0.237149902946 0.0940169641559 0) (0.251028188752 0.0931477570034 0) (0.265903136969 0.092448186836 0) (0.281885933711 0.0919413420475 0) (0.299094785969 0.0916491353109 0) (0.317656293822 0.0915933049497 0) (0.337708604401 0.091796872314 0) (0.359406750335 0.0922877682578 0) (0.382929022941 0.0931039028466 0) (0.40848781009 0.0942986388155 0) (0.436344500517 0.0959524423308 0) (0.466824232392 0.0981931565877 0) (0.500295848511 0.101182776695 0) (0.537319804597 0.105121023547 0) (0.576389439016 0.110272896578 0) (0.635621744807 0.117214361817 0) (-2.48206752593e-05 -0.00474095024953 0) (0.000213801415784 -0.0492648198072 0) (-1.40924595985e-05 -0.0173176818786 0) (-0.000646845959937 -0.00388858348442 0) (-0.00143048307295 0.00177052947043 0) (-0.00213206320853 0.00605707059091 0) (-0.00271226892265 0.00975798295925 1.0252665762e-28) (-0.00317894709779 0.0130360732583 -9.62136434148e-29) (-0.00355383014803 0.0160212504397 0) (-0.00385309509889 0.0187904964337 0) (-0.00408514267417 0.0214051341356 0) (-0.00425545102573 0.0239106864806 0) (-0.00436833080721 0.0263312415095 0) (-0.00442460075345 0.0286859953592 0) (-0.00442508138221 0.0309991777701 0) (-0.00437098625984 0.0333092689771 0) (-0.00426335812563 0.0356216472039 0) (-0.00409663292724 0.0379242945682 0) (-0.0038679060026 0.0402147242609 0) (-0.00357708493855 0.0425220223254 0) (-0.0032180811922 0.0448585990908 0) (-0.00276556056945 0.0472445091849 0) (-0.002198651034 0.0497011222755 0) (-0.00152160989454 0.052207775153 0) (-0.000712850178083 0.0547934408918 0) (0.00023002377341 0.0574367588059 0) (0.00131982640078 0.0601464892722 0) (0.00256891076846 0.0629119630895 0) (0.00399605532493 0.0657281273692 0) (0.00560490448345 0.068570481658 0) (0.00741768258823 0.0714507909796 0) (0.00944220440578 0.0743486342536 0) (0.0116858481702 0.0772669725512 0) (0.0141637322342 0.080190772547 0) (0.0168845035283 0.083102088583 0) (0.019860052024 0.08599052834 0) (0.0231012123973 0.0888392213333 0) (0.0266172902676 0.0916346555238 0) (0.030416398552 0.09436094189 0) (0.0345048563506 0.096998658 0) (0.0388882048055 0.099531465141 0) (0.043571893867 0.101942157726 0) (0.0485602740536 0.104211568327 0) (0.0538562138863 0.106319876228 0) (0.0594612934524 0.108247323066 0) (0.0653755989925 0.109974368993 0) (0.0715973823761 0.111481949403 0) (0.078122651932 0.112751994691 0) (0.0849447113184 0.113768208726 0) (0.0920535998342 0.114517163677 -1.30435627005e-28) (0.099436005657 0.114990637235 0) (0.107076545379 0.115188729719 1.20386401972e-28) (0.114960500935 0.115122325568 0) (0.123077302993 0.114813784047 0) (0.131423797896 0.114295708673 0) (0.140006628794 0.113608441341 0) (0.148843518768 0.112797128639 0) (0.157963599803 0.111909047448 0) (0.167407086528 0.110991540063 0) (0.177224600369 0.1100906509 0) (0.18747637937 0.10925036866 0) (0.198231516087 0.108512317025 0) (0.209567295025 0.107915719621 0) (0.221568642599 0.10749749986 0) (0.234327693193 0.107292426158 0) (0.247943464806 0.107333265745 0) (0.262521679099 0.107651005984 0) (0.278174782095 0.108275267212 0) (0.295022294464 0.109235188777 0) (0.31319167958 0.110561096202 0) (0.332820111465 0.112287386279 0) (0.354057443142 0.114457720298 0) (0.377070035758 0.117132419328 0) (0.402047578953 0.120397648519 0) (0.4292069638 0.124374915949 0) (0.458803211424 0.129237999148 0) (0.491083166457 0.135168600109 0) (0.526381541191 0.142308644563 0) (0.562803432479 0.150782982415 0) (0.615588839174 0.160136817386 0) (1.48950949926e-06 -0.00463583376251 0) (0.000440489467586 -0.0547637706258 0) (-0.000598674646476 -0.0171205399787 0) (-0.00139522128623 -0.00418780251876 0) (-0.00221884850548 0.00155604712263 0) (-0.00292155488593 0.00595991853993 0) (-0.00350089762156 0.00975395259296 0) (-0.00397942738566 0.0131094276005 0) (-0.00437590477155 0.0161571557024 0) (-0.00470494047565 0.0189871211884 0) (-0.00497366287802 0.021665521159 0) (-0.00518681884425 0.0242372443719 0) (-0.00534746869959 0.0267290251048 0) (-0.0054545777091 0.0291628997621 0) (-0.0055062463197 0.0315639161739 0) (-0.00550553003316 0.0339580995333 0) (-0.00545533791309 0.0363543433331 0) (-0.00534925450553 0.038748994592 0) (-0.00517987154336 0.0411405199841 0) (-0.0049458017192 0.0435559231003 0) (-0.00464734202301 0.0460073976883 0) (-0.00427862215614 0.0484756212441 0) (-0.00382906252346 0.0509720049416 0) (-0.00328818459745 0.0535131639548 0) (-0.00261651832921 0.0561486601736 0) (-0.00180969526409 0.0588469660746 0) (-0.000857526340178 0.0616383582847 0) (0.000250807019023 0.0645068179113 0) (0.00153565156048 0.0674482302784 0) (0.00300024789875 0.0704324930191 0) (0.00466733781147 0.0734785660403 0) (0.00654716718442 0.0765570517478 0) (0.00866249119769 0.0796789286908 0) (0.0110211953331 0.0828220360629 0) (0.0136299615833 0.0859655781305 0) (0.0165043640913 0.0891100974937 0) (0.0196565596298 0.0922303159383 0) (0.0230974236013 0.0953092654586 0) (0.0268377455158 0.0983295242782 0) (0.0308839449364 0.101268355332 0) (0.0352418938437 0.104109587907 0) (0.0399177394907 0.106835087715 0) (0.04491610983 0.109423737882 0) (0.0502398630542 0.111853964049 0) (0.0558905155306 0.114104248246 0) (0.0618680888892 0.116153172414 0) (0.068170718193 0.117979461151 0) (0.074794034648 0.11956225908 0) (0.0817303087157 0.120881697402 0) (0.0889670236904 0.121919761553 0) (0.096485900059 0.122663767518 0) (0.104264165959 0.123111529023 -1.18071949066e-28) (0.112278253466 0.123275502302 1.1274308555e-28) (0.120508656269 0.123183896168 0) (0.128944356826 0.122878689478 0) (0.137585828059 0.122411779323 0) (0.146446415108 0.121840716943 0) (0.155552420692 0.12122502808 0) (0.164942395777 0.120623568719 0) (0.17466608606 0.12009292596 0) (0.184783349114 0.119686665735 0) (0.195363213782 0.119455148442 0) (0.206483147608 0.119445661014 0) (0.218228527696 0.119702677822 0) (0.230692279827 0.12026813072 0) (0.243974638656 0.121181672564 0) (0.258182986716 0.122480977514 0) (0.27343174237 0.12420227388 0) (0.289842284986 0.126381388737 0) (0.307542991065 0.129055781435 0) (0.326669427776 0.132268195962 0) (0.347365306264 0.136072782621 0) (0.369783429199 0.140543595945 0) (0.394089142049 0.145784558688 0) (0.420449801776 0.151936522819 0) (0.44904294573 0.159185792323 0) (0.479955165636 0.167619850047 0) (0.513142877514 0.177097705427 0) (0.546537900339 0.187320453133 0) (0.590554039725 0.196152447443 0) (2.15097003404e-05 -0.004510235502 0) (0.000619069865365 -0.0559537941088 0) (-0.00116582870183 -0.0172449745664 0) (-0.00209726014991 -0.00466370612746 0) (-0.00295688341238 0.00124366004195 0) (-0.00367010135648 0.00575265108286 0) (-0.00426468181808 0.00961377021059 0) (-0.00477156829279 0.0130313146374 0) (-0.00520336043193 0.0161364669691 0) (-0.00557014445202 0.0190230813961 0) (-0.00588008804343 0.0217593920746 0) (-0.00613953186645 0.0243911343404 0) (-0.00635143142542 0.026947349451 0) (-0.0065135675059 0.0294521112308 0) (-0.00662233683061 0.0319305795439 0) (-0.00667867360876 0.0344065385355 0) (-0.00668588892066 0.0368913550053 0) (-0.00664069076935 0.0393858267536 0) (-0.00653280668733 0.0418919829766 0) (-0.0063597432055 0.0444241743171 0) (-0.00612433797799 0.0469919370682 0) (-0.00581940851541 0.0495841748262 0) (-0.00543302538473 0.0522133682945 0) (-0.0049606573814 0.0548904953491 -3.98237646672e-28) (-0.00440031314942 0.0575955144202 3.88487337261e-28) (-0.00373708173243 0.060345246242 0) (-0.00293205073677 0.0632042791976 0) (-0.00197171160265 0.0661466757774 0) (-0.000834215185311 0.0691853531297 0) (0.0004801406482 0.07228905117 0) (0.00199700563408 0.0754834127548 0) (0.00372532525762 0.0787284945977 0) (0.0056881401288 0.0820439683369 0) (0.00790065775999 0.0853983574004 0) (0.0103789830425 0.0887726919844 0) (0.0131336478388 0.092168877728 0) (0.0161769360504 0.0955581685956 0) (0.0195221699288 0.0989291879817 0) (0.0231826951572 0.102255733308 0) (0.0271664812524 0.105508951499 0) (0.0314803598171 0.108673707817 0) (0.036131026666 0.111730467037 0) (0.0411233100412 0.114655461931 0) (0.0464597827369 0.117425029913 0) (0.0521416681137 0.120015854096 0) (0.0581686596709 0.122404488022 0) (0.0645387547526 0.124567274564 0) (0.0712474928515 0.126480187103 0) (0.0782867061652 0.128118774791 0) (0.0856417756074 0.12945811093 0) (0.0932890820036 0.130477951316 0) (0.101197157753 0.13117128921 0) (0.109331780005 0.13155117692 -1.10624098762e-28) (0.117662798585 0.13165236473 0) (0.126170102026 0.131527990884 -1.01533296945e-28) (0.134847322561 0.131243676305 0) (0.143703200088 0.130871377692 0) (0.152761247291 0.130484441653 0) (0.162058502584 0.130154320993 0) (0.171644002573 0.129948828396 0) (0.181577365637 0.129931519203 0) (0.191927675033 0.130161776209 0) (0.202772704398 0.130695229773 0) (0.214198452114 0.13158426145 0) (0.226298903529 0.132878451994 0) (0.239175930648 0.134624917235 0) (0.252939215165 0.136868604063 0) (0.267706065944 0.139652668757 0) (0.283600990445 0.143019264938 0) (0.300754829134 0.147011169503 0) (0.319303273046 0.151675069996 0) (0.339385231563 0.157067498258 0) (0.361139786043 0.163263528697 0) (0.384702668249 0.170364964283 0) (0.410169768664 0.178506363353 0) (0.437615154644 0.187844920881 0) (0.466884917783 0.198219332842 0) (0.497364039681 0.20898556115 0) (0.527135853339 0.219040647507 0) (0.559065731726 0.223899590932 0) (3.0231292149e-05 -0.00438200159251 0) (0.00063069180755 -0.0543435382088 0) (-0.0017059198467 -0.0178116023914 0) (-0.00273321282223 -0.00531749945716 0) (-0.00364193502354 0.000790399159391 0) (-0.00439803601004 0.0054219353411 0) (-0.00502643844357 0.00935972888462 0) (-0.00556740436573 0.0128384218371 7.36492643426e-28) (-0.0060372063394 0.0159961478904 0) (-0.00644575179309 0.0189320501446 0) (-0.00680151396244 0.0217178035062 0) (-0.00711094172987 0.0244010286831 0) (-0.00737667838778 0.0270129517246 0) (-0.00759670965714 0.0295792763189 0) (-0.00776697261101 0.0321251403219 0) (-0.00788662365134 0.0346729017644 0) (-0.00795871784881 0.0372364456021 0) (-0.00798157165209 0.0398203429624 0) (-0.00794435705482 0.0424282333018 0) (-0.00783836557447 0.0450731123111 0) (-0.0076649462257 0.0477655925752 0) (-0.00742206817309 0.0504992270874 0) (-0.00710071962294 0.0532751270258 0) (-0.0066955050533 0.0560983017718 0) (-0.00619992121558 0.0589577105813 0) (-0.0056006600257 0.061872301421 0) (-0.00489923016795 0.0648401203591 0) (-0.00408443561246 0.0678585353367 0) (-0.00310189703288 0.0709843416134 0) (-0.00194301594136 0.0741839604161 0) (-0.000579659752385 0.077501602948 0) (0.000991023295873 0.080891472467 0) (0.00279757373821 0.0843843580005 0) (0.00485260310907 0.0879370952924 0) (0.0071721972683 0.091532379911 0) (0.00978552445406 0.0951765416912 0) (0.012700719387 0.0988324145427 0) (0.0159297657412 0.102489304988 0) (0.0194897353314 0.106130213459 0) (0.0233899873491 0.109709595278 0) (0.0276396774749 0.113212528961 0) (0.0322473045777 0.116617025662 0) (0.0372174423956 0.119895706252 0) (0.0425522084288 0.123022280498 0) (0.0482521483583 0.125971495764 0) (0.0543161884869 0.128717883217 0) (0.0607418926331 0.131235422587 0) (0.0675247799689 0.133496803736 0) (0.0746568843725 0.135472183559 0) (0.0821221595777 0.137126821702 0) (0.0898913095258 0.138428729621 0) (0.0979226722686 0.139362675258 0) (0.106169336513 0.139941179072 0) (0.114588722509 0.140206658306 0) (0.12315050088 0.140225863262 9.96725373909e-29) (0.131840997318 0.140080879117 9.4693556547e-29) (0.140664320356 0.139860435813 0) (0.149641358387 0.139653416711 0) (0.158807814773 0.139544962272 0) (0.168212109415 0.139614722701 0) (0.177913604045 0.139936578343 0) (0.187981323858 0.140579169355 0) (0.198493187145 0.141606748823 0) (0.20953565405 0.143080038565 0) (0.221203690542 0.14505690539 0) (0.233600897069 0.147592805411 0) (0.246839667978 0.150740992628 0) (0.261041160728 0.154552605989 0) (0.276334808465 0.15907679116 0) (0.292856940471 0.164361211889 0) (0.310747840627 0.170453606638 0) (0.330147219285 0.177404847284 0) (0.351184617519 0.185273500038 0) (0.373955553831 0.194117130163 0) (0.398430249947 0.203991246054 0) (0.424503613801 0.214872304096 0) (0.451551385469 0.226037168157 0) (0.478153420128 0.236137624998 0) (0.502720596683 0.242953457172 0) (0.51711938954 0.239925610222 0) (3.96222065989e-05 -0.00435913010179 0) (0.000504596700827 -0.0512001747451 0) (-0.00222142491874 -0.0186352170228 0) (-0.00333306046232 -0.00609987769461 0) (-0.00430209370466 0.000248807074989 0) (-0.00511315159092 0.00501184729192 0) (-0.00578445809229 0.00902405632552 0) (-0.0063642100879 0.0125571459375 -7.2896664257e-28) (-0.00687453451074 0.0157615177796 0) (-0.00732754709279 0.0187409814263 0) (-0.0077322080288 0.0215696324595 -6.06539526911e-28) (-0.00809461496528 0.0242971711399 0) (-0.00841702279595 0.0269573626674 0) (-0.00869809114292 0.0295776139124 0) (-0.00893488394205 0.0321827313109 0) (-0.00912594052263 0.034794049465 0) (-0.00927144154894 0.0374263961307 0) (-0.00936831904057 0.040086910674 0) (-0.00940693361667 0.0427815446793 0) (-0.00937664523811 0.0455233175529 0) (-0.00927666621797 0.0483253150677 0) (-0.00910743613802 0.051185667923 0) (-0.00885807934816 0.0541025595025 0) (-0.00851886872648 0.0570814439328 0) (-0.00808423956274 0.0601175416491 0) (-0.00754939010042 0.0632103853991 0) (-0.00691213980983 0.0663597007241 0) (-0.00616017707518 0.0695678753125 0) (-0.00527826199851 0.0728315250651 0) (-0.00426444032925 0.0761350375285 0) (-0.00305873407098 0.0795690956521 0) (-0.00164839063993 0.0830820918149 0) (8.50489492168e-07 0.0867309139941 0) (0.00189381570219 0.0904623751521 0) (0.00405190737608 0.0942644376385 0) (0.00650456827645 0.0981468323244 0) (0.0092644077385 0.102061024381 0) (0.0123585849796 0.106003098817 0) (0.0157977116035 0.109952290658 0) (0.0195931945583 0.113862777309 0) (0.0237581347395 0.117716893903 0) (0.0283032612796 0.121485353057 0) (0.0332349268522 0.1251353401 0) (0.0385540357311 0.128637101226 0) (0.0442601553961 0.13196284993 0) (0.050350805061 0.135085226208 0) (0.0568225228586 0.137976014752 0) (0.0636704568292 0.140604900913 0) (0.0708873178402 0.142936264714 0) (0.0784564713284 0.144922073318 0) (0.0863425909876 0.146513080073 0) (0.0944921063264 0.147681432512 0) (0.102843191846 0.148437947087 0) (0.111339088144 0.148834498119 0) (0.119938363098 0.148954700177 0) (0.128619869592 0.148900443009 -9.30775110129e-29) (0.137383293262 0.148779871426 8.81901080984e-29) (0.146247174709 0.148699154708 0) (0.155246039316 0.14875808704 0) (0.164427654149 0.149048601694 0) (0.173850890007 0.149655075263 0) (0.183584321875 0.150655524091 0) (0.193705504436 0.152123047726 0) (0.20430080261 0.154127154097 0) (0.215465610675 0.156734758963 0) (0.227304827853 0.160010794467 0) (0.239933415894 0.164018395501 0) (0.253476836175 0.168818688548 0) (0.268071051277 0.174470213145 0) (0.283861455863 0.181027977892 0) (0.301000090246 0.188542369676 0) (0.319638609227 0.197056032958 0) (0.339911912663 0.20659457428 0) (0.361863947554 0.21709927335 0) (0.385262648416 0.228384879206 0) (0.409678252277 0.239865401724 0) (0.433492858223 0.249653192497 0) (0.454109241818 0.255238299739 0) (0.468846814863 0.25252268621 0) (0.454982431077 0.234486692433 0) (4.98979035263e-05 -0.00442303913317 0) (0.000289091834163 -0.0473106828322 0) (-0.00271612998907 -0.0195656295117 0) (-0.0039140460552 -0.00697328619146 0) (-0.00494273807094 -0.000377051991696 0) (-0.00581312367389 0.00452225255457 0) (-0.00653335857038 0.00861515093477 0) (-0.00715760577861 0.0122077489867 0) (-0.00771277472253 0.0154630753946 0) (-0.00821398106927 0.0184891885342 0) (-0.00867105105793 0.0213619034124 5.97957181712e-28) (-0.00909003121379 0.024132865806 0) (-0.0094730438474 0.0268381186461 0) (-0.00981889950017 0.0295065043004 0) (-0.0101249096539 0.0321628207709 -4.90984616826e-28) (-0.0103892026755 0.0348276491206 0) (-0.0106106413434 0.0375162841141 0) (-0.0107856674854 0.0402389834338 0) (-0.0109064435272 0.0430048232077 0) (-0.0109637011471 0.0458271554552 0) (-0.0109521662204 0.0487201794327 0) (-0.0108674036362 0.0516862228614 0) (-0.010698905263 0.054723569695 0) (-0.0104384037913 0.0578383707408 0) (-0.01008121747 0.0610318694665 0) (-0.0096168952306 0.0643026797399 0) (-0.00903752848798 0.0676512324769 0) (-0.00834221469031 0.0710695422864 0) (-0.00752260945335 0.0745449753034 0) (-0.00656707599149 0.0780723111777 0) (-0.0054613801438 0.0816680411532 0) (-0.00419806641458 0.0853125096655 0) (-0.00270519938506 0.0891125805682 0) (-0.000972284983695 0.0930025823736 0) (0.00102484631139 0.0969938614342 0) (0.00331585453216 0.101098995895 0) (0.00591291601926 0.105259478923 0) (0.00884388505349 0.109478910482 0) (0.0121447559205 0.113735247036 0) (0.015815278243 0.117971837439 0) (0.0198748960165 0.12218143323 0) (0.0243376760748 0.126328091675 0) (0.0292127660728 0.13036715893 0) (0.0345022722897 0.134263008101 0) (0.0402037358023 0.137984320711 0) (0.0463125659969 0.141501255125 0) (0.0528234907228 0.14478389375 0) (0.05973029615 0.147799615734 0) (0.0670263468007 0.150507312237 0) (0.0746953226731 0.152841683652 0) (0.0826954324816 0.154729201654 0) (0.0909592713421 0.156123916452 0) (0.0994077643178 0.157033946949 0) (0.107968418693 0.157523314839 0) (0.116588200181 0.157696666661 0) (0.125238696381 0.15767956351 0) (0.133915612046 0.157602349612 -8.68266593341e-29) (0.14263548124 0.157590089415 0) (0.151431729716 0.157757951727 7.86604991583e-29) (0.160351251531 0.158210321905 0) (0.169451941278 0.159042016034 0) (0.178801218466 0.160340361538 0) (0.188475405856 0.162187405411 0) (0.198559766367 0.164661815564 0) (0.209149028622 0.16784031201 0) (0.220348247576 0.17179853967 0) (0.232273887377 0.176611376118 0) (0.245054941084 0.182352655759 0) (0.258833920688 0.189094173656 0) (0.27376715404 0.196903845312 0) (0.290024493583 0.205842254685 0) (0.307781778791 0.215951916497 0) (0.327203186633 0.227218950599 0) (0.348272256414 0.239371115077 0) (0.37049144123 0.251738439741 0) (0.392909269318 0.262544037508 0) (0.412217903129 0.267796785067 0) (0.424436683043 0.262891806829 0) (0.419477384198 0.242241644501 0) (0.377626944843 0.207470380024 0) (8.19354860248e-05 -0.00455483331615 0) (7.1042888514e-05 -0.0431576765412 0) (-0.00311438463156 -0.0205632743486 0) (-0.00444605314315 -0.00799151513701 0) (-0.00555301091866 -0.00112777048448 0) (-0.00650033265909 0.00393734800747 0) (-0.00728293763438 0.00813650313924 0) (-0.0079605861949 0.0118064579574 0) (-0.0085654810537 0.0151244673999 0) (-0.00911697686507 0.0182044066828 0) (-0.00962679051085 0.0211248017699 0) (-0.0101018080606 0.0239398608158 0) (-0.0105447837664 0.0266881327262 0) (-0.0109553164503 0.0294001281582 0) (-0.0113314733219 0.0321016281091 4.82052758105e-28) (-0.0116712948088 0.034813982568 0) (-0.0119723961204 0.0375536182407 0) (-0.0122302634508 0.0403326884794 -4.22635754779e-28) (-0.0124375869916 0.0431617032727 0) (-0.0125860976093 0.0460529611575 0) (-0.0126690020019 0.0490190716298 0) (-0.0126786506562 0.0520673618938 0) (-0.0126054925023 0.0552020881636 0) (-0.0124415697696 0.0584300079158 0) (-0.0121769890753 0.0617538702589 0) (-0.0117963726611 0.0651746746041 0) (-0.0112927310632 0.0686963613631 0) (-0.0106670234577 0.0723138208543 0) (-0.00990769135972 0.0760142344755 0) (-0.00900186237711 0.079789288128 0) (-0.00794736070347 0.083634515176 0) (-0.0067325879929 0.0875393604492 0) (-0.00534667571085 0.0915103072969 0) (-0.00376032210296 0.0955651187972 0) (-0.00191637706914 0.0997421116979 0) (0.00022008790562 0.104054214625 0) (0.00265645195006 0.108446143217 0) (0.00542603549906 0.112930857925 0) (0.00856571895067 0.117488302693 0) (0.0120932017002 0.122049315703 0) (0.0160293230496 0.126612246501 0) (0.0203898966548 0.131141551184 0) (0.0251897507377 0.13558572802 0) (0.0304339557756 0.139895417571 0) (0.0361202804757 0.144032595388 0) (0.0422406065167 0.147963790504 0) (0.0487868416363 0.151657175921 0) (0.0557498264287 0.155078970154 0) (0.063122571972 0.158183821248 0) (0.0708898917048 0.160885039621 0) (0.0790029405676 0.163076143641 0) (0.0873783913924 0.164686533577 0) (0.0959176110657 0.165721098191 0) (0.104531207735 0.166259853597 0) (0.113154565255 0.166433561543 0) (0.121752611273 0.1663957125 0) (0.130317699158 0.166301556536 0) (0.138864687874 0.166296362597 0) (0.147425838719 0.166511010124 -7.76614790762e-29) (0.156046732524 0.167062169665 0) (0.164783536785 0.168054748326 0) (0.173701518784 0.169585102164 0) (0.182874556094 0.171744127982 0) (0.192385396228 0.174619859303 0) (0.202326461077 0.178299389428 0) (0.212801085804 0.182870137869 0) (0.223925069903 0.188420442138 0) (0.23582853748 0.195039486809 0) (0.248657956225 0.202816471564 0) (0.262578328836 0.211838460483 0) (0.277776639889 0.222186472813 0) (0.294453192352 0.233913911587 0) (0.312807790035 0.246955228187 0) (0.332702908517 0.260670871302 0) (0.35331325308 0.2736372706 0) (0.372964611553 0.282173439623 0) (0.38583022516 0.278983580025 0) (0.3839643724 0.255352250709 0) (0.340551839136 0.204924867444 0) (0.29272377417 0.170204700832 0) (0.000116424296961 -0.00467874614275 0) (-0.000101513774278 -0.0391005699867 0) (-0.0032176209605 -0.0217487602135 0) (-0.00489583221105 -0.00926051108661 0) (-0.00614085735625 -0.00205439001304 0) (-0.00719242705609 0.00323458975468 0) (-0.00804868270071 0.0075724179843 0) (-0.00878458298484 0.0113340943463 0) (-0.00944101029801 0.0147187520094 0) (-0.0100427621268 0.0178512710493 0) (-0.0106044097555 0.0208161701621 0) (-0.0111344202291 0.0236720040065 0) (-0.0116367185161 0.0264607954426 0) (-0.0121119367428 0.0292151640596 0) (-0.0125588679525 0.0319619743636 0) (-0.0129754266831 0.0347229910026 0) (-0.0133581632167 0.0375152840761 0) (-0.0137015431064 0.0403523478875 4.13857711266e-28) (-0.0139981158648 0.0432457336487 0) (-0.0142399980359 0.0462072252889 0) (-0.0144203379998 0.0492480374087 0) (-0.0145310744046 0.0523765860953 0) (-0.0145617791044 0.0556004588551 0) (-0.0145021585308 0.0589258553337 0) (-0.0143410140601 0.0623566949796 0) (-0.0140636731213 0.0658998685187 0) (-0.0136591252262 0.0695646620041 0) (-0.013122392356 0.07334890872 0) (-0.0124417552376 0.0772437379629 0) (-0.0116043078325 0.0812460387394 0) (-0.0106018267979 0.0853495417731 0) (-0.00942409377146 0.0895381048794 0) (-0.00807350770958 0.09379762021 0) (-0.00653761762825 0.0981219134557 0) (-0.00480555958768 0.102492992018 0) (-0.0028042987429 0.107018310857 0) (-0.000513711861594 0.111636071388 0) (0.00210489996276 0.116374211324 0) (0.0050898834907 0.121223876746 0) (0.00846054392813 0.126104148385 0) (0.012256499989 0.131020795262 0) (0.0164988650736 0.135932242606 0) (0.02120510954 0.140788975129 0) (0.0263872690681 0.145531179739 0) (0.0320466543871 0.150106223449 0) (0.0381726403446 0.154473333779 0) (0.0447528858452 0.158597199098 0) (0.051773125698 0.162444040977 0) (0.0592233880234 0.165966464431 0) (0.067090225488 0.169052797429 0) (0.0753169242929 0.17155328294 0) (0.0838021033865 0.173365126164 0) (0.0924254568618 0.174490306224 9.4740758573e-29) (0.101080123785 0.175029997736 -9.16910106676e-29) (0.109690524437 0.175146986351 0) (0.118215893541 0.175027075972 0) (0.126645950634 0.174852829839 0) (0.134994114061 0.174790543542 0) (0.143291215766 0.174986690049 0) (0.151580850289 0.175569664851 -7.06723684694e-29) (0.159916470145 0.176653832215 0) (0.168359952325 0.178344034527 0) (0.17698125942 0.180739697771 0) (0.185858892124 0.183938141063 0) (0.195080916642 0.188037075537 0) (0.20474645583 0.193136301358 0) (0.214967611994 0.199338749287 0) (0.225871771103 0.206750818509 0) (0.237604656577 0.215482128689 0) (0.250333721921 0.225643490462 0) (0.264255889215 0.237343407624 0) (0.279577828892 0.250644192534 0) (0.296491286056 0.265354103437 0) (0.314509311567 0.280112456918 0) (0.332266345758 0.292292027436 0) (0.347197014963 0.295428012885 0) (0.350238993927 0.278572033318 0) (0.321848739705 0.229120988025 0) (0.269594054422 0.171760202603 0) (0.19983490966 0.134842074869 0) (0.000153961501317 -0.00478983056764 0) (-0.00030237918554 -0.027481484294 0) (-0.00296433011211 -0.0232524677122 0) (-0.00527247623893 -0.0109387635685 0) (-0.00671523501805 -0.00324154448713 0) (-0.00789129758965 0.00234889871832 0) (-0.00882704185089 0.00685733975033 0) (-0.00962265448552 0.0107198775657 0) (-0.0103307215357 0.0141691265634 0) (-0.010982478338 0.0173476312895 0) (-0.0115961261133 0.0203495825556 0) (-0.0121821754521 0.0232397070164 0) (-0.0127458470242 0.0260642216597 0) (-0.013288663805 0.02885821219 0) (-0.0138097092133 0.0316497764175 0) (-0.0143064936644 0.0344613470289 0) (-0.014774836636 0.0373106163352 0) (-0.0152083899146 0.0402118885857 0) (-0.0155991606416 0.0431773642597 0) (-0.0159388866018 0.0462187178937 0) (-0.0162199263821 0.0493465563335 0) (-0.0164342076747 0.0525689731343 0) (-0.0165712677945 0.0558929456967 0) (-0.0166189276922 0.0593244503878 0) (-0.0165654833333 0.0628688171064 0) (-0.0163980314554 0.0665333955719 0) (-0.0161043591708 0.0703280086625 2.86489294414e-28) (-0.0156759099066 0.0742562413947 -2.77267652738e-28) (-0.0150985732758 0.0783159658916 0) (-0.0143529191208 0.0825084366458 0) (-0.013425329475 0.086831652648 0) (-0.0123068323191 0.0912782001354 0) (-0.010992053758 0.0958356111874 0) (-0.009475862343 0.100480149201 0) (-0.0077573978634 0.105184404566 0) (-0.0058197817643 0.109964602659 0) (-0.00363615875267 0.114818676838 0) (-0.00114159478311 0.119815585179 0) (0.00170912632975 0.124951894583 0) (0.00493658510046 0.130146828342 0) (0.00858752441455 0.135414029188 0) (0.0126975760688 0.140710988372 0) (0.0172970514151 0.145981451629 0) (0.0224010767824 0.15117018007 0) (0.0280196097009 0.156205059563 0) (0.0341451780486 0.161032350772 0) (0.0407597510052 0.165608347275 0) (0.0478419032407 0.169899043331 0) (0.0553737028419 0.173857869214 0) (0.0633436866832 0.177346406329 0) (0.0716861419184 0.180159684559 0) (0.0802796302384 0.182154394234 0) (0.0889804488476 0.183331169735 0) (0.0976644709069 0.183818885971 0) (0.106246381279 0.183818812808 0) (0.114680929807 0.18355327715 0) (0.122955885552 0.183233999881 0) (0.13108326868 0.183048535046 0) (0.139091989154 0.18315831838 0) (0.147022764649 0.183702554883 7.00618867911e-29) (0.154925168852 0.184804141781 6.5469249794e-29) (0.162856300002 0.186575646127 0) (0.170880595901 0.189124425604 0) (0.179070417957 0.192556696688 0) (0.1875071974 0.1969805616 0) (0.196283033664 0.202508212875 0) (0.205502744951 0.209257436772 0) (0.21528634825 0.21735253521 0) (0.225772896468 0.226924951627 0) (0.237124623419 0.238111351575 0) (0.249539156001 0.251051219931 0) (0.263204331744 0.265794815085 0) (0.278231817121 0.281848755865 0) (0.293434790541 0.296473079551 0) (0.306628790795 0.304855702153 0) (0.312534292798 0.295656992396 0) (0.292664206163 0.253223116233 0) (0.238553679257 0.185480321839 0) (0.1795439831 0.125593261996 0) (0.0856700668879 0.0792447032524 0) (0.000209694293992 -0.0047363953751 0) (-0.000575794691485 -0.014736966658 0) (-0.00279868770695 -0.0255871952337 0) (-0.005571967438 -0.0132329687247 0) (-0.00725538729464 -0.00479077458372 0) (-0.00857444310092 0.00121776015879 0) (-0.00959924194769 0.00594222710006 0) (-0.0104585217811 0.00991923398877 0) (-0.0112194240662 0.01343220017 0) (-0.0119218297002 0.0166501323128 0) (-0.0125887905622 0.0196812941175 0) (-0.0132332349295 0.0225983857801 0) (-0.0138616376384 0.0254524340396 0) (-0.0144763075909 0.0282811704555 0) (-0.0150766210777 0.0311139543508 0) (-0.0156596383868 0.0339741594904 0) (-0.016220131441 0.0368802325771 0) (-0.0167507182249 0.0398470272051 0) (-0.0172429158687 0.0428873149853 0) (-0.0176882524432 0.0460130133574 0) (-0.0180782625314 0.0492348832423 3.45667620211e-28) (-0.0184032615732 0.0525614059852 0) (-0.0186516566141 0.0559989176869 0) (-0.0188111886629 0.0595530574962 0) (-0.0188698684102 0.0632299680827 0) (-0.018815537233 0.0670365342601 0) (-0.0186360069914 0.0709805638728 0) (-0.0183191160541 0.0750654399463 0) (-0.0178494857039 0.0792895258091 0) (-0.017209045758 0.0836563782623 0) (-0.0163826469915 0.0881728753205 0) (-0.0153523435783 0.092839566636 0) (-0.0141017866421 0.0976497927202 0) (-0.0126258176347 0.102590722989 0) (-0.0109169460073 0.107641610919 0) (-0.00897380826174 0.112781140746 0) (-0.00679477190276 0.117978465352 0) (-0.00437260574565 0.123231286199 0) (-0.00161120505756 0.128669652006 0) (0.00150474686214 0.134183239697 0) (0.00503407281325 0.13979935805 0) (0.0090134047173 0.14548221356 0) (0.0134969093933 0.151175226492 0) (0.0185122574161 0.156814475119 0) (0.0240771315564 0.162330971495 0) (0.0301935521549 0.16764483815 0) (0.0368430175418 0.17269718902 0) (0.0439948200412 0.177450848929 0) (0.0516148915868 0.181862030715 0) (0.0596936494006 0.185767432922 0) (0.0681548197427 0.188893420521 0) (0.0768552827188 0.191047424117 0) (0.0856267704298 0.192231947578 0) (0.0943290124287 0.192611316123 0) (0.102868694602 0.192431921856 0) (0.111197368616 0.191956273526 0) (0.119301353465 0.191426352342 0) (0.127191063345 0.191050525346 0) (0.134892754349 0.19100410136 0) (0.142443216253 0.19143585345 -6.6487363463e-29) (0.149886879387 0.192476089904 -6.50936421642e-29) (0.15727464217 0.194244120412 0) (0.164663798602 0.196854411846 0) (0.172118688626 0.200421313869 0) (0.179711823951 0.205062622233 0) (0.187525414101 0.210902208207 0) (0.195653337545 0.218072029719 0) (0.204203260209 0.226713579559 0) (0.213301452687 0.236979771423 0) (0.223095887165 0.249031558379 0) (0.233770537814 0.263039589405 0) (0.245450954044 0.278989875619 0) (0.258059884434 0.295771088233 0) (0.269481690429 0.308350217289 0) (0.277144709369 0.308826443698 0) (0.268768982486 0.279408862849 0) (0.228882742583 0.215781379284 0) (0.109062621329 0.0928496787117 0) (0.0252777649845 0.0242427680879 0) (0.0135162355257 0.0372604205189 0) (0.000344138749872 -0.00448422113678 0) (-0.000791769853664 -0.0103908800606 0) (-0.00271978664622 -0.0299023372526 0) (-0.00556226112519 -0.0165133254086 0) (-0.00768478428449 -0.00679681328583 0) (-0.00921548524819 -0.000170343355298 0) (-0.0103513152169 0.00484232338025 0) (-0.0112788231798 0.00895564996705 0) (-0.0120920083644 0.0125332791007 0) (-0.0128446843632 0.0157833283733 0) (-0.0135662965263 0.0188336896314 0) (-0.0142722939142 0.0217672763939 0) (-0.014970011396 0.0246407795168 0) (-0.015662015031 0.0274949649735 0) (-0.0163477191031 0.0303606849188 0) (-0.0170236758266 0.033262232275 0) (-0.0176835827576 0.0362188125541 0) (-0.0183191178507 0.039246099326 0) (-0.0189213185476 0.042357760775 0) (-0.0194812938964 0.0455661226514 0) (-0.0199895672044 0.048881964046 -3.38480398702e-28) (-0.0204349606041 0.0523140119499 0) (-0.0208048618566 0.0558691779429 0) (-0.0210867829188 0.0595537502604 0) (-0.0212686909929 0.0633743554553 0) (-0.0213375250068 0.0673382685189 0) (-0.0212783456975 0.0714517147015 0) (-0.0210754628447 0.0757165973917 0) (-0.0207139473036 0.0801313241821 0) (-0.0201793660387 0.0846976910153 0) (-0.0194552564967 0.089420385073 0) (-0.0185209577477 0.0943002211268 0) (-0.017359496236 0.0993400291983 0) (-0.0159556461228 0.10453999093 0) (-0.0142894697716 0.109888379829 0) (-0.012354753996 0.115373047555 0) (-0.0101487984823 0.120964085542 0) (-0.00768183459434 0.126623630237 0) (-0.00495056860579 0.132350655815 0) (-0.00188345376359 0.138202191 0) (0.00157081937965 0.144178118422 0) (0.00545378475791 0.150250442575 0) (0.00982623376436 0.156372397828 0) (0.0147517530396 0.162476939703 0) (0.0202542656788 0.168485906943 0) (0.0263529784329 0.17431435656 0) (0.0330359559306 0.17987124335 0) (0.0402671574088 0.185108516901 0) (0.0479840391152 0.189983710844 0) (0.0561785052515 0.19431691791 0) (0.0647615417893 0.197750971104 0) (0.073567373992 0.20003543622 0) (0.0824026916267 0.201179794945 0) (0.0911131763118 0.201392410933 0) (0.0995995859929 0.20097109453 0) (0.107811422378 0.200221331593 0) (0.115733766792 0.199415568176 0) (0.123374920846 0.198781906598 -7.00992017417e-29) (0.130757558988 0.198508034936 0) (0.137913384917 0.198750862304 6.60809082739e-29) (0.144880429517 0.19964683435 0) (0.151702035297 0.201320904998 0) (0.158426874827 0.203893589125 0) (0.165109547765 0.207486299483 0) (0.171811568744 0.212225301891 0) (0.178602649449 0.218244762043 0) (0.185562389913 0.225689138374 0) (0.192781455041 0.234715160883 0) (0.200368863411 0.245494960772 0) (0.208449092948 0.258207584142 0) (0.217170444871 0.273048479594 0) (0.226521230821 0.289810996159 0) (0.235998931159 0.306143263622 0) (0.242097054081 0.313151673399 0) (0.240583584771 0.298691668849 0) (0.207472488174 0.235665078042 0) (0.084891700169 0.0879350804964 0) (0.0219500329103 0.0217501233564 0) (0.0122817179724 0.0194806212037 0) (0.00595206523801 0.0198528678445 0) (0.000363796356718 -0.00418452201898 0) (-0.000696421183768 -0.010503867063 0) (-0.00100162216388 -0.0364074158012 0) (-0.00511854490498 -0.0212078853595 0) (-0.00799270220214 -0.0092788760985 0) (-0.00983031470701 -0.00175194061162 0) (-0.0110924351114 0.00363556855457 0) (-0.012082696619 0.00790678132891 0) (-0.0129399997274 0.0115468383559 0) (-0.0137373709926 0.0148181259212 0) (-0.0145116136584 0.0178736427204 0) (-0.0152803286422 0.0208080648126 0) (-0.0160509332853 0.02368423483 0) (-0.0168255289027 0.0265468462108 0) (-0.0176030477531 0.0294291714078 0) (-0.0183792695021 0.0323567674959 0) (-0.0191468865396 0.0353497831476 0) (-0.0198968356678 0.0384249489339 0) (-0.0206195404357 0.0415969902109 0) (-0.0213052072749 0.0448788772557 0) (-0.0219430453863 0.0482816846111 0) (-0.0225203525005 0.0518146604359 0) (-0.0230235897466 0.0554856955187 0) (-0.0234401814506 0.059302146785 0) (-0.0237579333281 0.063271040625 0) (-0.0239625049189 0.0673988868249 0) (-0.0240360135154 0.0716906828508 0) (-0.0239594536131 0.0761486212303 0) (-0.0237164776944 0.0807729481384 0) (-0.0232923866372 0.0855643324174 0) (-0.0226697309102 0.0905236448133 0) (-0.0218290143263 0.0956504587398 0) (-0.0207541556731 0.100945327657 0) (-0.0194269119655 0.106405780759 0) (-0.017825612562 0.112029904754 0) (-0.0159325813144 0.117819587327 0) (-0.0137321190559 0.123760074647 0) (-0.0112213496504 0.129827367266 0) (-0.00841377450277 0.135986937868 0) (-0.00531693210128 0.142192820095 0) (-0.00186506127552 0.148534937758 0) (0.00198596884535 0.15501419615 0) (0.00629276118368 0.161574850128 0) (0.0111359094403 0.168159250854 0) (0.0165814741669 0.174679431119 0) (0.0226571118824 0.181047397477 0) (0.0293691933202 0.187138737277 0) (0.0366904787811 0.192882482013 0) (0.0445134163888 0.198227640511 0) (0.0528310169538 0.202994730909 0) (0.0615385435009 0.206726771326 0) (0.0704475874479 0.209107772126 0) (0.0793400398361 0.210161263694 0) (0.0880506103182 0.210148436476 0) (0.0964762556464 0.209423959438 0) (0.104565259884 0.208337933422 0) (0.112301294205 0.20719256374 7.05771571571e-29) (0.119689764761 0.2062340387 6.94661227163e-29) (0.126748670054 0.205660694968 0) (0.133503458498 0.205636043674 0) (0.13998457911 0.206301387002 0) (0.146226653401 0.207786138697 0) (0.152268490533 0.210215676667 0) (0.158153559833 0.213717091363 0) (0.163930678033 0.218423468839 0) (0.169654915141 0.224477177329 0) (0.175388851168 0.23203271516 0) (0.181202278385 0.241259097725 0) (0.187186274076 0.252344988807 0) (0.193434703518 0.265479081861 0) (0.200043888255 0.280880517666 0) (0.20683486868 0.297914267802 0) (0.212771440451 0.311990928267 0) (0.212838131971 0.307911716245 0) (0.197323749122 0.266530071641 0) (0.101677927544 0.127247314034 0) (0.0301325782556 0.0363384903179 0) (0.0126863488134 0.0175558003872 0) (0.00867874752322 0.0188773841475 0) (0.00355062059359 0.0204567497699 0) (0.000363246303094 -0.00421615814435 0) (-0.000486387833184 -0.0107194308657 0) (0.000834438168281 -0.03594286426 0) (-0.00489406326777 -0.0263269202923 0) (-0.00846660820318 -0.0119329724382 0) (-0.0105181313295 -0.0033652298632 0) (-0.011856944492 0.00243669371791 0) (-0.0128785528032 0.00686521864046 0) (-0.0137595848798 0.0105521970323 0) (-0.0145890605356 0.0138251522156 0) (-0.015408713558 0.0168659879457 0) (-0.0162367928695 0.0197816666679 0) (-0.0170804512175 0.0226408871258 0) (-0.0179410356195 0.0254922578522 0) (-0.0188160042906 0.0283716858299 0) (-0.019699563554 0.0313062096306 0) (-0.020583307252 0.0343170363045 0) (-0.0214575424305 0.0374219866622 0) (-0.0223119941552 0.0406368784912 0) (-0.0231356914448 0.0439757935401 0) (-0.0239164021761 0.0474507524701 0) (-0.0246402530401 0.0510720670654 0) (-0.0252930017237 0.0548493013266 0) (-0.0258611671612 0.0587913221762 0) (-0.026330728536 0.0629052969138 0) (-0.0266848347401 0.0671964859217 0) (-0.026903462765 0.0716686741313 0) (-0.0269663649657 0.0763249348338 0) (-0.0268560639268 0.0811681373891 0) (-0.0265562329572 0.0861997741266 0) (-0.026047519567 0.0914189467223 0) (-0.025308023887 0.0968231506525 0) (-0.0243179500177 0.102408774586 0) (-0.0230592330282 0.108169586204 0) (-0.0215148922787 0.114101748078 0) (-0.0196666105972 0.120203847579 0) (-0.0174929135127 0.126472380459 0) (-0.0149748609737 0.132901449341 0) (-0.0121073343361 0.139473796923 0) (-0.00889806612881 0.146145390972 0) (-0.00536395118023 0.152880108079 0) (-0.00146279967211 0.159759218716 0) (0.00285957976132 0.166780212085 0) (0.00767424762851 0.173861531117 0) (0.0130746470135 0.180916623308 0) (0.0191341155417 0.187848185125 0) (0.025871179465 0.194506586411 0) (0.0332926782084 0.200783542996 0) (0.0412303898021 0.206597916444 0) (0.0496780892545 0.211799131437 0) (0.0585114469045 0.215812960039 0) (0.0675207601858 0.218252130668 0) (0.0764640429806 0.219162955498 0) (0.0851689876013 0.218867662188 0) (0.0935306459965 0.217781837732 -7.35736129442e-29) (0.101496426723 0.216300531475 0) (0.109048027838 0.214754115979 -6.98223664665e-29) (0.116186908349 0.21340482447 0) (0.122925213408 0.212459801154 0) (0.129280992472 0.212087699574 0) (0.135276103152 0.212433456918 0) (0.140935515118 0.213629821835 0) (0.146287297478 0.215805763607 0) (0.151362826483 0.21909250214 0) (0.156197087544 0.223627857981 0) (0.160828945934 0.229559715898 0) (0.165301818639 0.237049115645 0) (0.169660703491 0.246273386782 0) (0.173981366349 0.257434652868 0) (0.178310816737 0.270723296454 0) (0.182673112125 0.286401084793 0) (0.186761909265 0.303021771631 0) (0.189258970875 0.312535644034 0) (0.183631418309 0.291251705191 0) (0.142506991484 0.21093590968 0) (0.041508837669 0.0613099661632 0) (0.0164190035196 0.0191388592569 0) (0.00833939570963 0.0134976193412 0) (0.0075131504046 0.0198921984725 0) (0.00203758810262 0.0164481065834 0) (0.000418598392217 -0.00444166485105 0) (-4.55038993464e-05 -0.0114347550968 0) (-0.000288188822318 -0.0337843736961 0) (-0.00555673389226 -0.0299970360361 0) (-0.00923953912601 -0.0142775678408 0) (-0.0113123754171 -0.00485374604235 0) (-0.0126502971285 0.00131811780162 0) (-0.0136616781768 0.0058775304498 0) (-0.0145405734577 0.00958423517256 0) (-0.015386046004 0.0128328860097 0) (-0.0162416170854 0.0158365517047 0) (-0.0171241913694 0.0187145293716 0) (-0.0180395095719 0.0215404351754 0) (-0.01898748955 0.0243652909569 0) (-0.0199635353012 0.0272264369178 0) (-0.0209598198318 0.0301521272123 0) (-0.0219666853629 0.0331648370656 0) (-0.0229738560043 0.0362836247228 0) (-0.0239704640007 0.039525496445 0) (-0.0249442865173 0.0429057803306 0) (-0.0258814821252 0.0464376812908 0) (-0.0267672345271 0.0501326571563 0) (-0.0275866438705 0.0540015405903 0) (-0.0283242883213 0.0580544236483 0) (-0.0289630497384 0.0622993954475 0) (-0.0294835389781 0.0667421631206 0) (-0.0298647234865 0.0713874943016 0) (-0.0300861070435 0.076240382209 0) (-0.0301283113741 0.0813055171734 0) (-0.0299707826454 0.0865845539465 2.1283127896e-28) (-0.0295903860065 0.0920747359784 -2.05146911245e-28) (-0.0289633409031 0.0977717152204 0) (-0.0280681018673 0.103671269376 0) (-0.0268845285675 0.109767306882 0) (-0.0253933699289 0.116051676381 0) (-0.0235761731368 0.1225141135 0) (-0.0214148884275 0.12914626557 0) (-0.01889222936 0.135942522175 0) (-0.0159901067222 0.142899987488 0) (-0.012695066296 0.150003015785 0) (-0.00901205502373 0.157223223494 0) (-0.00497887847621 0.164516650565 0) (-0.000549566549676 0.171979152516 0) (0.00433257223701 0.179582156995 0) (0.0097411210346 0.187196045933 0) (0.0158029925463 0.194723622771 0) (0.0225660046413 0.201983158746 0) (0.0300972453436 0.208822737067 0) (0.0381573349528 0.215098017092 0) (0.0467407996763 0.220726728624 0) (0.0556993357025 0.224999467908 -8.49782229796e-29) (0.0648050152928 0.227455048372 8.17209551371e-29) (0.0737934284281 0.228172275124 0) (0.0824899808453 0.227541137683 7.36937470634e-29) (0.0907891585403 0.226040423719 7.24934673584e-29) (0.0986372829767 0.22410906449 0) (0.106013114181 0.222103270333 0) (0.112912917641 0.22029903765 0) (0.119341741382 0.218910566992 0) (0.12530919362 0.218110363707 0) (0.13082770051 0.218045991792 0) (0.135911962758 0.218852533086 0) (0.140578817319 0.220661380646 0) (0.144847182964 0.223606264809 0) (0.148737794999 0.227827490746 0) (0.152272718007 0.233475144574 0) (0.155474909667 0.240712140312 0) (0.158360459337 0.249717710527 0) (0.16099450546 0.260700594002 0) (0.163335163291 0.273839700827 0) (0.165304443384 0.289475320376 0) (0.166526137674 0.304675151361 0) (0.164973767138 0.306216452477 0) (0.147970816538 0.259029709081 0) (0.0611982468308 0.105880714693 0) (0.0105507755098 0.0203329616412 0) (0.00813459117443 0.0138248800846 0) (0.00608887831145 0.0131984969719 0) (0.00644392656207 0.0254231079771 0) (0.000639403825437 0.0161341169126 0) (0.000459918478958 -0.00424326250761 0) (0.000872908627502 -0.0134745248078 0) (-0.00189348371547 -0.0310931110342 0) (-0.00615668242922 -0.0320365797007 0) (-0.00989318193139 -0.0164714970066 -1.41816180868e-28) (-0.0120471002556 -0.00630492116256 1.42915889712e-31) (-0.0134067204485 0.000238217404383 9.41126653226e-29) (-0.0144020414702 0.00492306137652 0) (-0.015265134208 0.00863019170702 0) (-0.0161141120468 0.0118311239253 0) (-0.016997319041 0.0147768797838 0) (-0.0179299928296 0.0176003914235 0) (-0.0189153098189 0.0203790870933 0) (-0.0199508113966 0.02316524412 0) (-0.021029689957 0.0259966627141 0) (-0.0221424677821 0.0289024564431 0) (-0.023278415028 0.0319064523837 0) (-0.0244264776896 0.035028989617 0) (-0.0255748787557 0.0382879739119 0) (-0.0267099564592 0.0416993229557 0) (-0.0278161608877 0.0452769720749 0) (-0.0288774213422 0.0490336705707 0) (-0.0298778352341 0.0529816373129 0) (-0.0308002469855 0.0571322958848 0) (-0.0316248800961 0.061495441568 0) (-0.0323302460846 0.0660787908198 0) (-0.0328944843151 0.0708893374564 0) (-0.0332959341592 0.0759338679489 0) (-0.0335119934503 0.081217110342 0) (-0.0335170740558 0.0867402239617 0) (-0.0332841077631 0.09250114069 0) (-0.0327876823756 0.0984966387801 0) (-0.0320040397461 0.10472285253 0) (-0.0309090658751 0.111172556552 0) (-0.0294790557736 0.117834671032 0) (-0.0276930154867 0.124695378501 0) (-0.0255325270858 0.131740916194 0) (-0.0229825535245 0.138957355136 0) (-0.0200291532054 0.14633259967 0) (-0.0166570702989 0.153860394298 0) (-0.0128519224576 0.161535716906 0) (-0.00862204247842 0.169335712147 0) (-0.00401668964132 0.177213568816 0) (0.00103852597017 0.185317870661 0) (0.00655908979963 0.193517054425 0) (0.0126709105004 0.201672919272 0) (0.0194712137163 0.209573300999 0) (0.0271233458299 0.217009243832 0) (0.0353119866046 0.223730596779 0) (0.0440347209757 0.229772509025 0) (0.053115145471 0.234274279508 0) (0.0623121365051 0.236702508852 0) (0.0713406996553 0.237178119853 0) (0.0800293037684 0.236163292429 -7.24467959999e-29) (0.0882724114042 0.234200200526 0) (0.0960144438773 0.231769224258 0) (0.103229927075 0.229249481922 0) (0.109908502351 0.22692842502 0) (0.11604687462 0.225025768336 0) (0.121645238391 0.223716895471 0) (0.126705951273 0.223151263215 0) (0.131233073803 0.223465573969 0) (0.135232163411 0.224792693997 0) (0.138709897438 0.227267519009 0) (0.14167336037 0.231030742305 0) (0.144128659975 0.236231381547 0) (0.146079199677 0.243028817331 0) (0.147510185919 0.251595012396 0) (0.14848658531 0.262129897023 0) (0.148796289395 0.274768904699 0) (0.148278683344 0.289946547932 0) (0.146855065535 0.30215886689 0) (0.14121282903 0.291673263551 0) (0.10384469655 0.207388369592 0) (0.0189060672114 0.0480357329935 0) (0.00681573664498 0.0156968331773 0) (0.00632788744339 0.0149527385996 0) (0.00529370183233 0.0140297946125 0) (0.00373821450001 0.0201551543861 0) (0.00048079472861 0.0164187054566 0) (0.00035070564998 -0.00382191821004 0) (0.00125639861164 -0.0119518475137 0) (-0.00153184232037 -0.0292340011073 0) (-0.00478411577399 -0.0347115350985 0) (-0.00969973589957 -0.0195330738535 0) (-0.0124843727304 -0.00809609169017 0) (-0.0140150873101 -0.000944314885067 0) (-0.0150497828374 0.00394248125545 0) (-0.0159064632116 0.00766395703696 0) (-0.016755046978 0.0108017675585 0) (-0.0176605852374 0.0136686679376 0) (-0.0186395910776 0.0164184890912 0) (-0.0196929448057 0.0191331176927 0) (-0.020815750417 0.0218661510546 0) (-0.0219990862861 0.0246561334431 0) (-0.0232322190694 0.0275329158673 0) (-0.0245033659492 0.0305209675802 0) (-0.0258001158781 0.0336410626366 0) (-0.027109072427 0.0369111406116 0) (-0.0284148933414 0.0403468395666 0) (-0.0297008584854 0.0439625053584 0) (-0.0309501715763 0.0477726366848 0) (-0.0321457609222 0.0517916759644 0) (-0.0332685612275 0.0560326570622 0) (-0.0342965314232 0.0605068762936 0) (-0.0352062763438 0.0652247393148 0) (-0.0359742853841 0.070196177115 0) (-0.0365759336873 0.0754294257046 0) (-0.0369843909778 0.0809291238964 0) (-0.0371705716634 0.0866967179045 0) (-0.0371050626472 0.0927321611042 1.89373149931e-28) (-0.0367600358793 0.0990334523411 -1.82161045266e-28) (-0.0361075648974 0.105595488583 0) (-0.0351180255745 0.112409107098 0) (-0.0337629674304 0.119462334136 0) (-0.032018209745 0.126741349817 0) (-0.0298626089482 0.134229741058 0) (-0.0272774291886 0.141908615104 0) (-0.0242496957362 0.149757361642 0) (-0.0207719672952 0.157759584761 0) (-0.0168340767457 0.165905082573 0) (-0.0124249609589 0.17418993577 0) (-0.00756247432561 0.182595570401 0) (-0.00229529007954 0.191104106778 0) (0.00346691644561 0.199882245304 0) (0.00972622425835 0.208695570521 0) (0.0165955215294 0.217279798542 0) (0.024384105648 0.225349440248 0) (0.0327073938893 0.232496945564 0) (0.0415703150604 0.238929595023 -8.28874794692e-29) (0.0507663046787 0.243623715121 0) (0.0600481721614 0.245980523675 0) (0.0691125188448 0.246171412553 0) (0.0777968038158 0.244732270318 0) (0.0859950000571 0.242266593389 0) (0.0936482722346 0.239292453613 0) (0.100725296766 0.236208544072 0) (0.107207538592 0.233311578247 0) (0.113082076702 0.230825598254 0) (0.118338803858 0.22892825827 0) (0.12296946464 0.227770555887 0) (0.126967328483 0.227490444981 0) (0.130326881943 0.228221758148 0) (0.13304331887 0.230099731872 0) (0.135111502177 0.233264149326 0) (0.136524161481 0.237860770822 0) (0.137269490625 0.244041605971 0) (0.137307109576 0.251963852664 0) (0.136730034042 0.261801475556 0) (0.135050718391 0.273600325896 0) (0.132112332858 0.28780063127 0) (0.127950780061 0.294395215878 0) (0.114434425075 0.265615481976 0) (0.0475010576811 0.114528025758 0) (0.00565886691722 0.0219468075543 0) (0.00500779288217 0.0138119944655 0) (0.00523222764798 0.015722093897 0) (0.00351014982187 0.0140114717954 0) (0.0026791576172 0.0204466674204 0) (0.000718125268189 0.0172894674015 0) (0.000143014453471 -0.00352851412728 0) (0.000884926181804 -0.00904773570034 0) (3.41424621548e-05 -0.0292121624625 0) (-0.00376143449406 -0.0311222096992 0) (-0.00832852518686 -0.0235916126367 0) (-0.0124827261509 -0.0107135729164 0) (-0.0143647912434 -0.00246129407891 0) (-0.0155401620991 0.00285619549974 0) (-0.0164256922302 0.00665869877577 0) (-0.0172796439729 0.00973611787649 0) (-0.0182057404124 0.0125051068984 0) (-0.019228636512 0.0151592351957 0) (-0.0203488414597 0.0177891130159 0) (-0.0215601836265 0.0204511567312 0) (-0.0228518935032 0.0231852436469 0) (-0.0242113988189 0.0260217108676 0) (-0.0256250954951 0.0289847542374 0) (-0.0270786450595 0.03209464865 0) (-0.0285565435085 0.0353688267206 0) (-0.0300419152134 0.0388228684922 0) (-0.0315178046999 0.0424721265672 0) (-0.0329673704256 0.0463324498084 0) (-0.0343719926659 0.0504193707904 0) (-0.035710100853 0.0547468668958 0) (-0.0369580128195 0.0593278949192 0) (-0.0380912823783 0.0641761584749 0) (-0.0390839860337 0.0693047116062 0) (-0.0399072665448 0.0747234290198 0) (-0.0405298468234 0.0804390708418 0) (-0.0409194421694 0.0864559464871 0) (-0.0410433996009 0.092775717592 0) (-0.0408689813547 0.099396254696 0) (-0.0403628751682 0.106310406205 0) (-0.039491711529 0.113506903843 0) (-0.0382244865536 0.120972585395 0) (-0.0365328354589 0.128691784719 0) (-0.034390172402 0.136644630974 0) (-0.0317735594775 0.144809924773 0) (-0.0286674594519 0.153165975446 0) (-0.0250628649192 0.161689435019 0) (-0.020955486327 0.170357302314 0) (-0.0163441336113 0.179154797918 0) (-0.0112304618366 0.188078366659 0) (-0.00565022112085 0.197108313171 0) (0.000372508349563 0.206315430449 0) (0.00692852533936 0.215796461429 0) (0.0139386597769 0.22510025886 0) (0.0218847679196 0.233847553224 0) (0.030351729063 0.241397095681 8.50174989432e-29) (0.0393531946837 0.248189207869 1.60846101529e-28) (0.0486554492022 0.253032819942 -7.60133410146e-29) (0.0580141028219 0.255275638838 0) (0.0671101354115 0.255145384655 0) (0.0757965430407 0.253249982944 0) (0.0839652896506 0.250249833901 0) (0.0915524093456 0.246695716956 0) (0.098518856589 0.243002300345 0) (0.104836221926 0.239473634625 0) (0.110480661151 0.236337306632 0) (0.115430859187 0.233773061631 0) (0.11966745128 0.231933461137 0) (0.123172764393 0.230957767667 0) (0.125930534816 0.23098077505 0) (0.127925338869 0.232137991326 0) (0.129141610604 0.234568113509 0) (0.129561844455 0.238413367008 0) (0.129164799024 0.243818004756 0) (0.127894872338 0.250924455895 0) (0.12592169951 0.259880346957 0) (0.122429599441 0.270648633734 0) (0.117854231783 0.283634549328 0) (0.112283144363 0.282009113038 0) (0.0870611233143 0.228555879272 0) (0.0190989708591 0.0629136376601 0) (0.00662963390176 0.0189248756291 0) (0.00608365689352 0.0156328163084 0) (0.00549066764213 0.0166791870372 0) (0.00259845698687 0.0140246698917 0) (0.00181714202638 0.0205745178923 0) (0.000566616171381 0.0176002262649 0) (-5.25325916473e-05 -0.00341813615072 0) (0.000341503462452 -0.00758039379879 0) (0.00139542833132 -0.0215802858214 0) (-0.00148915760771 -0.0288818686039 0) (-0.00547864416085 -0.0292377866537 1.70980912335e-27) (-0.0115392761513 -0.0150030864458 0) (-0.0142953462072 -0.00465084916326 0) (-0.0157763538489 0.00151356208132 0) (-0.0167691048412 0.00556464551944 0) (-0.0176506653642 0.00862035638759 0) (-0.0186016411692 0.0112830448988 0) (-0.0196681765467 0.0138215079431 0) (-0.0208549752267 0.0163452594444 0) (-0.0221568609714 0.0189168003229 0) (-0.0235615148801 0.0215779626847 0) (-0.0250539529455 0.0243592182907 0) (-0.026618110664 0.0272841989361 0) (-0.0282373708414 0.0303723629483 0) (-0.0298943338404 0.0336406906444 0) (-0.03157118602 0.0371052928029 0) (-0.0332503812516 0.0407826399728 0) (-0.0349137446189 0.0446890554983 0) (-0.0365406627546 0.0488402863187 0) (-0.0381079066619 0.0532516913828 0) (-0.0395914097266 0.0579391524393 0) (-0.0409658757885 0.0629190570011 0) (-0.0422021065762 0.0682058672618 0) (-0.0432673895349 0.0738111315051 0) (-0.0441272358713 0.0797451622168 0) (-0.0447452804161 0.08601607744 0) (-0.0450834832283 0.0926274051753 0) (-0.0451027376873 0.0995781149491 0) (-0.0447634327696 0.106861826166 0) (-0.0440274596982 0.114466824675 0) (-0.0428593153155 0.122376997739 0) (-0.0412254348772 0.130571120861 0) (-0.0390962700318 0.139023851916 0) (-0.0364478075969 0.147709633211 0) (-0.0332610099849 0.156602390872 0) (-0.0295223151654 0.165675070656 0) (-0.0252254844281 0.174902000518 0) (-0.0203753788852 0.184258575352 0) (-0.0149839750043 0.193729025054 0) (-0.00906965730565 0.203305500464 0) (-0.00270481184482 0.212961142403 0) (0.0042115660914 0.22299052559 0) (0.0114854932006 0.233030266231 0) (0.0196208457794 0.242504926537 0) (0.0282471693363 0.250429173502 -8.31957574619e-29) (0.0373837778335 0.257540362874 0) (0.0467808718825 0.262485652313 0) (0.056206419527 0.264575212807 0) (0.0653297436638 0.264095567245 0) (0.0740268536345 0.261721855491 0) (0.0821851902949 0.258164575416 0) (0.0897333628799 0.254001051583 0) (0.0966224561582 0.249658205773 0) (0.102812381134 0.245445835513 0) (0.10826699125 0.241594738607 0) (0.112952815033 0.238286961383 0) (0.116838752321 0.235677019903 0) (0.119895921016 0.233905917917 0) (0.122097399932 0.233109915309 0) (0.123417823468 0.233425454845 0) (0.123832589724 0.234991098793 0) (0.123316444916 0.237946918723 0) (0.121842266744 0.242431445748 0) (0.119343378588 0.24857592639 0) (0.116085641288 0.256509136289 0) (0.110810819211 0.266165912875 0) (0.105154402708 0.277988479719 0) (0.0980897712842 0.266442175359 0) (0.0634200263797 0.183827086607 0) (0.00587521551916 0.0389713370115 0) (0.00462311581122 0.0152007975994 0) (0.00506190423899 0.0131595046827 0) (0.0043025754589 0.0145162355767 0) (0.00175888497469 0.0154817366678 0) (0.000488263288211 0.0189108789466 0) (0.000261502545033 0.0184818197431 0) (-0.000185870723067 -0.00340037037752 0) (-5.24691745163e-05 -0.00667894678144 0) (0.00180349631514 -0.013960239243 4.25309034953e-28) (0.000575121933207 -0.0286070510135 0) (-0.00374771555058 -0.0286379303164 -9.18994125759e-28) (-0.00868906439427 -0.020931380851 0) (-0.0136040933174 -0.00809849454259 0) (-0.0156128082157 -0.000349007563024 0) (-0.0168439579996 0.00427950917039 0) (-0.0178119652005 0.00741423102547 0) (-0.0188068832397 0.00998644192742 0) (-0.0199232862913 0.0123959644583 0) (-0.0211787187611 0.01479273011 0) (-0.0225738623304 0.0172528940426 0) (-0.0240961016334 0.0198226617422 0) (-0.0257281978746 0.0225329934389 0) (-0.0274513140887 0.0254065440045 0) (-0.0292462580097 0.0284614811441 0) (-0.0310938688122 0.0317139972186 0) (-0.0329753172232 0.0351801593018 0) (-0.034871767519 0.038876596939 0) (-0.0367632982783 0.0428202461798 0) (-0.0386279966817 0.047028348978 0) (-0.040442169041 0.0515190221244 0) (-0.0421808254604 0.0563113573711 0) (-0.0438158225704 0.0614234344204 0) (-0.0453143605907 0.0668711395045 0) (-0.0466413459954 0.0726694037493 0) (-0.0477598565077 0.0788317995037 0) (-0.0486287937662 0.0853681535217 0) (-0.0492042137284 0.0922837244779 0) (-0.0494410164418 0.0995797103047 0) (-0.049292869209 0.107251632978 0) (-0.048714213367 0.115288460213 0) (-0.0476617861844 0.123672413785 0) (-0.0460953965051 0.132378626869 0) (-0.0439814248583 0.141376840674 0) (-0.0412932779877 0.150632832455 0) (-0.0380107994241 0.160109879877 0) (-0.0341214222299 0.169772933971 0) (-0.029619019431 0.179590565877 0) (-0.0245079626999 0.189535913169 0) (-0.0188043926 0.199587006614 0) (-0.0125340185832 0.209726343499 0) (-0.00574134772863 0.21994295928 1.0132467475e-28) (0.00151576278805 0.230337383716 0) (0.00919881440168 0.241084224221 0) (0.0175826578385 0.251312660776 0) (0.026389811898 0.259586884311 0) (0.0356569088345 0.266968835088 0) (0.0451367093352 0.271965148619 0) (0.0546174895775 0.273867336229 0) (0.0637627392031 0.273019448901 0) (0.0724803123991 0.27015630564 0) (0.0806499180052 0.266029277113 0) (0.0881900735003 0.261234957676 0) (0.0950396143073 0.256208758073 0) (0.101144834165 0.251265022079 0) (0.106455837784 0.246637831581 0) (0.110925890168 0.242512081318 0) (0.114511329591 0.239044898987 0) (0.117171443649 0.236379745645 0) (0.118868342457 0.23465523264 0) (0.119566782576 0.234009985099 0) (0.119233885563 0.234584339987 0) (0.117838383228 0.236519077126 0) (0.115350333247 0.239950901588 0) (0.11169591756 0.245003225578 0) (0.107232214747 0.251780609459 0) (0.100096606236 0.26018744774 0) (0.0932857965984 0.27044592786 0) (0.0823119835817 0.245426144276 0) (0.0358492105886 0.117411870098 0) (0.000327309138211 0.0260516055012 0) (0.00246281661859 0.0135631790448 0) (0.00479196226626 0.0137187273669 0) (0.0026633827266 0.0125579994964 0) (0.000695973171127 0.013404597511 0) (-0.00162853424487 0.0219479409378 0) (-0.000954735036551 0.0170475934427 0) (-0.000300459573163 -0.00335039624655 0) (-0.000499472467012 -0.00573541269003 0) (0.0012558650242 -0.010640532766 -3.98131169164e-28) (0.00193481978279 -0.0244897543594 0) (-0.00067679979755 -0.0282690441242 0) (-0.00403136042212 -0.0263552910869 0) (-0.011358322543 -0.0135796678122 0) (-0.014759832375 -0.00323445131295 0) (-0.0164765585158 0.00256562649528 0) (-0.0176619372785 0.00603169108 0) (-0.0187581709571 0.00857720459921 0) (-0.019946028789 0.010864912463 0) (-0.0212779602662 0.0131187292604 0) (-0.0227715992729 0.0154462722601 0) (-0.0244180132546 0.0179049063733 0) (-0.0261982858802 0.0205278290833 0) (-0.0280904729389 0.023336394675 0) (-0.0300725022642 0.0263466905391 0) (-0.0321231611605 0.0295733480668 0) (-0.034222174567 0.0330315650769 0) (-0.0363495544383 0.0367377737565 0) (-0.0384844255643 0.0407098352828 0) (-0.0406042186068 0.0449671116846 0) (-0.0426845835975 0.0495304824426 0) (-0.0446985503914 0.054421549248 0) (-0.0466149480229 0.0596611192295 0) (-0.0483989004476 0.0652691822236 0) (-0.0500128586342 0.0712652358349 0) (-0.0514148963963 0.0776654781065 0) (-0.0525581711855 0.0844814467209 0) (-0.0533937743584 0.0917212393954 0) (-0.0538707324713 0.0993876045259 0) (-0.0539352717264 0.107476066148 0) (-0.0535338660599 0.115975604101 0) (-0.0526149919243 0.124867495857 0) (-0.0511304939152 0.134124571316 0) (-0.0490391640163 0.143712207236 0) (-0.0463081622204 0.153588242625 0) (-0.0429151471706 0.163705931246 0) (-0.0388490706907 0.174017284203 0) (-0.0341091199665 0.184476685931 0) (-0.0287067510448 0.195047939441 0) (-0.0226617907989 0.205703504587 0) (-0.0160034948828 0.216422880487 0) (-0.0087759582247 0.227191226723 -9.6945699494e-29) (-0.00107880865781 0.238008452649 0) (0.00703150328102 0.249283167061 0) (0.0157644753558 0.260265232166 0) (0.0247701071988 0.26886030839 0) (0.0341612879908 0.276456198816 0) (0.0437126643802 0.281452575672 0) (0.0532356287709 0.28314033232 0) (0.062395805834 0.281915809504 0) (0.0711436393542 0.278563948927 0) (0.0793476745337 0.273865378404 0) (0.0869134327185 0.268427615911 0) (0.0937648954446 0.262690831805 0) (0.0998327318994 0.256973088636 0) (0.105051738398 0.251512165623 0) (0.10936062969 0.246496571138 0) (0.112702007367 0.242086837984 0) (0.115022259656 0.238429721054 0) (0.11627153774 0.235667218106 0) (0.116403896996 0.233941646415 0) (0.115377567214 0.233397494431 0) (0.113155397031 0.234180445794 0) (0.109707253586 0.236432810873 0) (0.10496482025 0.240283007794 0) (0.0993988418253 0.245825280178 0) (0.0906448984458 0.252954609045 0) (0.0834296587806 0.261340996749 0) (0.0671350811676 0.218586860503 0) (0.0233856148024 0.0887711924847 0) (0.00285882820763 0.0211870198288 0) (0.00228075144567 0.0150378758641 0) (0.00273758272821 0.0111296408242 0) (0.000569939011794 0.0131114383932 0) (-0.000942760483023 0.0117278541399 0) (-0.00391632916422 0.0192670843977 0) (-0.00303722373285 0.0216941462084 0) (-0.000392704485987 -0.00339926195656 0) (-0.000736230520976 -0.00492369964281 0) (0.000530439581839 -0.00855381357271 0) (0.00213870527613 -0.0162384161583 0) (0.00191191120276 -0.0238342379891 0) (-0.00057929905655 -0.0271096631818 0) (-0.00579641285917 -0.0218952541574 0) (-0.0125755954056 -0.00830566275463 0) (-0.0153558738324 -3.61647101772e-05 0) (-0.017025268875 0.00425884480167 0) (-0.0183568772881 0.00697295199117 0) (-0.0196715739242 0.00919124126036 0) (-0.0210996090933 0.0113034492112 0) (-0.0227012103112 0.0134810069881 0) (-0.0244804248039 0.0158087619882 0) (-0.0264191488673 0.0183271687581 0) (-0.0284923230284 0.0210567615758 0) (-0.0306745648756 0.0240106378558 0) (-0.0329422864637 0.02720079493 0) (-0.0352736496362 0.0306409128113 0) (-0.0376475704774 0.0343471895071 0) (-0.0400424764471 0.0383384953053 0) (-0.0424353169276 0.0426362937099 0) (-0.0448008630688 0.0472641925303 0) (-0.0471106083457 0.0522468501829 0) (-0.0493316685527 0.0576092343272 0) (-0.0514269994371 0.0633762887129 0) (-0.0533548916398 0.0695714827944 0) (-0.0550678458194 0.0762148126832 0) (-0.0565141613794 0.0833225177845 0) (-0.0576387544028 0.0909063853846 0) (-0.0583819567605 0.0989703226109 0) (-0.0586819239834 0.107510416966 0) (-0.058477350275 0.116515068985 0) (-0.0577076399998 0.12596240951 0) (-0.056315718196 0.13582101112 0) (-0.0542520517715 0.146050236986 0) (-0.0514769054065 0.156600256267 0) (-0.0479629866164 0.167414533237 0) (-0.0436974126403 0.178431639233 0) (-0.0386845942471 0.189591128515 0) (-0.0329463933951 0.200840219555 -9.72322997739e-29) (-0.0265160510009 0.212135996258 0) (-0.0194352771489 0.223450825218 0) (-0.0117562067419 0.234770461899 0) (-0.00355023129558 0.24608905929 0) (0.0049466112801 0.257670673953 0) (0.0141404074472 0.269366172319 0) (0.0233728343804 0.278237618112 0) (0.0328785896328 0.285979666593 0) (0.0424930386805 0.290927002554 0) (0.0520446058964 0.292382048079 0) (0.0612106952803 0.290783827681 0) (0.0699973828247 0.286956598625 0) (0.0782591674045 0.281696274034 0) (0.0858855999802 0.275611954797 0) (0.092783104761 0.269144913043 0) (0.0988646912373 0.262616429852 0) (0.1040482119 0.256268602625 0) (0.108256288295 0.250294389899 0) (0.111416228087 0.244858504577 0) (0.11345988577 0.240111775597 0) (0.11432376268 0.236200540687 0) (0.113949316213 0.23327199619 0) (0.112283383469 0.231476496877 0) (0.109279081899 0.230967663952 0) (0.104899988358 0.231900736163 0) (0.0990801879958 0.234428012852 0) (0.092387608112 0.23868253251 0) (0.0821116016857 0.244696423381 0) (0.0745162772266 0.251723692891 0) (0.0543722841045 0.188215125107 0) (0.0113065473999 0.058785628456 0) (0.00187580126888 0.0161853059515 0) (0.000714983592604 0.013837630792 0) (0.000328853535904 0.00928968294257 0) (-0.00159685159299 0.0108276880914 0) (-0.00436144938283 0.012457707402 0) (-0.0083045639154 0.0164819575573 0) (-0.0062219357358 0.0224559505424 0) (-0.000323623025889 -0.00343126154969 0) (-0.00056299995558 -0.00428991716428 0) (0.000200197045847 -0.00700564046849 0) (0.00174851871458 -0.0116771705159 0) (0.00266726767622 -0.0154603362814 0) (0.00224362871282 -0.0220642570446 0) (-0.000296460664915 -0.0251367360998 0) (-0.00725232599066 -0.0163679688822 0) (-0.0130972711703 -0.00448024175972 0) (-0.0156536880919 0.00170286529298 0) (-0.0174453109829 0.00499575046385 0) (-0.0190053368636 0.00729993238972 0) (-0.0205735493256 0.00930876938051 0) (-0.0223012911649 0.0113316151746 0) (-0.024226152631 0.0135116729383 0) (-0.0263366689978 0.0159095566294 0) (-0.0286054087146 0.0185473581598 0) (-0.0310031329288 0.0214342135541 0) (-0.0335034884282 0.02457812168 0) (-0.0360830902205 0.0279903412476 0) (-0.0387201428608 0.0316864834367 0) (-0.0413928388346 0.0356864853269 0) (-0.0440779682515 0.0400141542755 0) (-0.0467496869074 0.0446963629762 0) (-0.0493782613014 0.0497619620248 0) (-0.0519291217916 0.0552408975821 0) (-0.0543624996415 0.0611632967375 0) (-0.0566327366635 0.0675576571025 0) (-0.0586877944682 0.0744496468715 0) (-0.0604699652165 0.0818610672341 0) (-0.0619156027822 0.0898073239281 0) (-0.0629560535102 0.0982956011005 0) (-0.0635205262409 0.107324540182 0) (-0.0635366451328 0.116881312085 0) (-0.0629329089996 0.126940439977 0) (-0.0616430071751 0.137464595432 0) (-0.0596085238965 0.148403671844 0) (-0.0567821460551 0.15969650742 0) (-0.0531313231252 0.171272803759 0) (-0.0486422050668 0.183056149568 0) (-0.0433234622872 0.19497080172 0) (-0.0372057832967 0.20694656043 9.31389038498e-29) (-0.0303387653792 0.218923912308 0) (-0.0227871749197 0.230858766032 0) (-0.0146226321936 0.242727660436 0) (-0.00591339959426 0.254523864141 0) (0.00302588614641 0.266382516004 7.80869011097e-29) (0.0126922782442 0.278621026455 -7.36584892732e-29) (0.0221851465889 0.287705260766 0) (0.0317850796798 0.295512581606 0) (0.0414558454745 0.300364834384 0) (0.0510227565358 0.301578890025 0) (0.0601836512823 0.299621915025 0) (0.0690153549102 0.295345987369 0) (0.0773568682055 0.289546029074 0) (0.0850790608118 0.282822486767 0) (0.0920681719545 0.275614180666 0) (0.0982176305419 0.268245326299 0) (0.103426633451 0.260962979673 0) (0.1075999012 0.253965276982 0) (0.11064742321 0.247421712332 0) (0.112484341303 0.241487851013 0) (0.113031280649 0.236315148081 0) (0.112214700874 0.232056330777 0) (0.109966681313 0.228867518863 0) (0.106224074516 0.226908868434 0) (0.100929754312 0.226345718069 0) (0.0939899020581 0.227352847611 0) (0.0859613049201 0.230117057499 0) (0.0738055764077 0.234898415372 0) (0.0645875990262 0.240786767614 0) (0.0400869965139 0.150239688344 0) (0.00183537805294 0.0369910562706 0) (0.000686678567422 0.0150215308067 0) (-0.000355304098911 0.014173621356 0) (-0.000736006944475 0.00799666393153 0) (-0.00232187510984 0.00823713661091 0) (-0.00634082872807 0.00840147616142 0) (-0.0131923195464 0.0106222268823 0) (-0.011097077484 0.0187855151634 0) (-0.000105109331148 -0.00343494320212 0) (-0.000200560102958 -0.00415357956133 0) (0.000138090909809 -0.00588448470576 0) (0.00128738059769 -0.00944358792003 0) (0.0024290339226 -0.0115549183384 0) (0.00306611123629 -0.0145459466126 0) (0.00252578692453 -0.020351971173 0) (0.000891980771522 -0.0247284300229 0) (-0.00856615081615 -0.0118092248975 0) (-0.0131711211965 -0.00235862788681 0) (-0.0157808149209 0.00231967772822 0) (-0.0177920126184 0.00504082177052 0) (-0.0195978390286 0.00706530255955 0) (-0.0214897873082 0.00895686398081 0) (-0.0235814608194 0.0109818901479 0) (-0.0258824279962 0.0132463499046 0) (-0.0283655693429 0.0157817602994 0) (-0.0309975443807 0.0185930742466 0) (-0.0337488719544 0.0216827163218 0) (-0.0365947397182 0.0250584752091 0) (-0.0395130705056 0.0287349153137 0) (-0.0424823553965 0.0327329740936 0) (-0.0454797371871 0.0370790463589 0) (-0.0484793673321 0.0418038662589 0) (-0.0514509357954 0.0469413272188 0) (-0.0543585242785 0.0525273410461 0) (-0.0571597329901 0.0585984553123 0) (-0.0598048532704 0.0651900604631 0) (-0.0622365076648 0.0723347876852 0) (-0.0643898673258 0.0800606502645 0) (-0.0661928074969 0.088388516056 0) (-0.0675671157259 0.0973305516809 0) (-0.0684298611421 0.106887740734 0) (-0.068695531394 0.117046994458 0) (-0.0682802196454 0.127780450162 1.17418767438e-28) (-0.0671047996472 0.139043260795 -1.12198002091e-28) (-0.0650997897298 0.150773557147 0) (-0.0622102251669 0.162894227086 1.00707449218e-28) (-0.0583991654811 0.175314785844 0) (-0.0536535657765 0.187938200941 0) (-0.0479885560819 0.200668350122 0) (-0.0414471452548 0.21341632499 0) (-0.0340966166153 0.226106803357 0) (-0.0260249514546 0.238679763063 0) (-0.0173335400606 0.251096599708 0) (-0.00811794303628 0.263341294841 0) (0.00130263945629 0.275459537026 0) (0.0114046341284 0.288037089898 0) (0.0211912505558 0.297248829734 0) (0.030853043882 0.305025799696 0) (0.0405724466752 0.309739679724 0) (0.0501419204347 0.310714913498 0) (0.0592845168657 0.308426506419 0) (0.0681637790908 0.303742373475 0) (0.0766040230316 0.297437918473 0) (0.084455395659 0.290093970112 0) (0.0915817374386 0.282143456792 0) (0.0978552470661 0.27391328081 0) (0.103154732517 0.265655841184 0) (0.107364869838 0.257574831844 0) (0.110375751641 0.249844818657 0) (0.112083016366 0.242626692551 0) (0.112388869653 0.236078014767 0) (0.111202769567 0.230357711753 0) (0.108440230691 0.225626570299 0) (0.104018772259 0.222045928326 0) (0.097851673899 0.219777162805 0) (0.0897922925602 0.218985383171 0) (0.080268540911 0.219841664567 0) (0.065873021265 0.222661154906 0) (0.0534533215772 0.226127444406 0) (0.0256587509424 0.105216553482 0) (0.00298854468856 0.0293643681794 0) (0.00201350978664 0.0153866679931 0) (0.000114518458051 0.0137285215909 0) (-0.000488712419839 0.00679334218499 0) (-0.0014024634697 0.00585651918567 0) (-0.00487100661313 0.00478543550536 0) (-0.00936603014965 0.00541612796104 0) (-0.0132788742885 0.0118104990906 0) (8.8280242729e-05 -0.00343956006152 0) (0.000173629800513 -0.00435329900441 0) (0.000168445510637 -0.00547490031239 0) (0.000827781408147 -0.00793096143489 0) (0.00193027979222 -0.00972193538238 0) (0.00289388357997 -0.0112197586209 0) (0.00343965311397 -0.0143178953021 0) (0.00346962258558 -0.0204499981936 0) (-0.000408886621786 -0.0226356863094 0) (-0.00882429503712 -0.00914049136836 0) (-0.0129332568538 -0.00166018091898 0) (-0.0157643556444 0.00212486956885 0) (-0.0180022968313 0.00443452963991 0) (-0.02014693181 0.00628470178583 0) (-0.0224466323854 0.00816960508739 0) (-0.0249672232875 0.0102973009021 0) (-0.027691060899 0.0127251266366 0) (-0.0305816313452 0.0154567425731 0) (-0.033606377824 0.0184875263349 0) (-0.0367394896306 0.021820555395 0) (-0.0399593429026 0.0254688364874 0) (-0.0432455525499 0.0294543580656 0) (-0.0465764418964 0.0338065619281 0) (-0.0499269579945 0.0385608413599 0) (-0.0532669192743 0.0437571162593 0) (-0.0565595317496 0.0494383711691 0) (-0.0597601570956 0.0556489730859 0) (-0.0628152859461 0.0624327625052 0) (-0.0656619495138 0.0698310390127 0) (-0.0682275599312 0.0778801494143 0) (-0.0704301722954 0.0866087207049 0) (-0.072179662266 0.0960349825547 0) (-0.073379536729 0.106163429676 0) (-0.0739297298113 0.116982151431 0) (-0.0737300820614 0.128459981847 0) (-0.072685590168 0.140543757966 1.05508931076e-28) (-0.0707132467085 0.153158294241 0) (-0.0677470731504 0.166205520277 -9.69599366742e-29) (-0.0637459139007 0.179568920442 0) (-0.0587012837672 0.19312235446 0) (-0.052639613718 0.206740253157 0) (-0.0456217576331 0.220309603839 0) (-0.0377384252258 0.23373713085 0) (-0.0291041415901 0.246948923765 0) (-0.0198504878902 0.259895816755 0) (-0.010111469136 0.272551422086 -7.07049496559e-29) (-0.000203867337201 0.284910349013 6.99770372072e-29) (0.0102684483528 0.297627054381 0) (0.0203734316111 0.306853069469 0) (0.0300555954112 0.314489680051 0) (0.0398085761747 0.319023086825 0) (0.0493665616688 0.319771504194 0) (0.0584756792963 0.317191190722 0) (0.0674003073144 0.31215327343 0) (0.0759535323157 0.305392960876 0) (0.0839639206308 0.297460009401 0) (0.0912715548514 0.288778112371 0) (0.0977262826963 0.279676364317 0) (0.103184798292 0.270412221955 0) (0.107509183599 0.261194648693 0) (0.110566266289 0.252203017713 0) (0.112228479033 0.243604225804 0) (0.112376619848 0.235563799621 0) (0.110901818843 0.228248940437 0) (0.107703948658 0.221825466504 0) (0.102684825046 0.216451791315 0) (0.0957360042967 0.212271913751 0) (0.0866755870091 0.209407858103 0) (0.0758181734925 0.207934334137 0) (0.059654034094 0.207988180655 0) (0.0439443225078 0.207552509887 0) (0.0198490791492 0.0823894260613 0) (0.00936640153775 0.0266539360183 0) (0.00520411789793 0.0143862673599 0) (0.00138780044967 0.0121760712588 0) (0.000393799515369 0.00568019183816 0) (0.000282782688159 0.0040678927856 0) (-0.00283029617876 0.00232710671153 0) (-0.00512758696599 0.00228807773819 0) (0.00337633043432 0.00954590032444 0) (0.000207114324839 -0.00340483961338 0) (0.000458429640981 -0.00466794249328 0) (0.000152663494783 -0.0055514832141 0) (0.000314784105238 -0.00671113011571 0) (0.00133754202558 -0.00852529589505 0) (0.002419364984 -0.00959353554809 0) (0.00337653642808 -0.0108647171177 0) (0.00441468382143 -0.0153510495397 0) (0.00443665494786 -0.0213523593025 0) (-0.000784931989247 -0.0195220462554 0) (-0.00826410139426 -0.00802544223502 0) (-0.0124565866775 -0.00198999593446 0) (-0.0154868044996 0.00114649210936 0) (-0.018073338993 0.0031720532336 0) (-0.0206748644413 0.00499075039211 0) (-0.0234684039863 0.00699993625338 0) (-0.0264736678774 0.00932743670695 0) (-0.0296571174823 0.0119838630521 0) (-0.03298463472 0.014957694312 0) (-0.0364306756005 0.0182463165443 0) (-0.0399754024488 0.0218608083885 0) (-0.0436008872286 0.0258244113044 0) (-0.0472878979843 0.0301702498524 0) (-0.0510133840709 0.0349393340903 0) (-0.0547483363227 0.0401788441689 0) (-0.058455915702 0.0459403370404 0) (-0.0620898325682 0.0522777934021 0) (-0.0655930285065 0.0592454216444 0) (-0.0688967718632 0.0668952314218 0) (-0.0719202256051 0.0752741579947 0) (-0.0745706078553 0.0844208108119 0) (-0.0767441930267 0.0943618651932 0) (-0.0783282587705 0.105107886873 0) (-0.079204371263 0.116649092843 0) (-0.079253120137 0.128951022424 0) (-0.0783607379706 0.141951352837 -1.02147007583e-28) (-0.0764261855334 0.155557292143 0) (-0.0733702110524 0.169645123945 0) (-0.0691470316416 0.184065762025 0) (-0.0637532856191 0.198653579246 0) (-0.0572330939353 0.213242611591 0) (-0.0496757378176 0.227686629533 0) (-0.0412048061018 0.24187090152 0) (-0.0319675547758 0.25570795023 0) (-0.0221288367726 0.269143906895 0) (-0.0118587622244 0.2821514441 0) (-0.00147531552363 0.294719589416 0) (0.0092813230883 0.307386414597 0) (0.0197085432085 0.31649726585 0) (0.0293667737275 0.323877071109 0) (0.0391254964874 0.328187067169 0) (0.0486535374665 0.328728253577 0) (0.057711456486 0.325906590199 0) (0.0666733560367 0.320582652915 0) (0.075347100762 0.313428725953 0) (0.083540535664 0.304951843616 0) (0.0910700643755 0.295563145837 0) (0.0977628880376 0.285592757076 0) (0.103451933818 0.275301649281 0) (0.10797362932 0.264902597706 0) (0.111166994393 0.254578522239 0) (0.112876024314 0.244503156592 0) (0.112956030554 0.234853511117 0) (0.111278529074 0.225809905591 0) (0.107730247885 0.217547278781 0) (0.102204772047 0.210222450588 0) (0.0945871065821 0.203958989828 0) (0.0846930488005 0.198826718535 0) (0.0727838152673 0.194787997921 0) (0.0555051943696 0.191769351277 0) (0.0381268554953 0.18719241271 0) (0.0173215873871 0.0651989779134 0) (0.0125417493983 0.0210177616627 0) (0.00739360721352 0.0110886660051 0) (0.00233580820583 0.0087334068626 0) (0.00128361909616 0.00353529471615 0) (0.00210916782187 0.00212072081646 0) (-0.00164877021592 -0.000301833306922 0) (-0.00446537303607 0.00108102675714 1.15745620234e-28) (0.0140160478652 -0.00650749480482 0) (0.00036008267871 -0.00331034497945 0) (0.000609283670322 -0.00413052196184 0) (-0.000185612319198 -0.00557976172717 0) (-0.000278523863043 -0.0060933248113 0) (0.000698034008975 -0.00718993000931 0) (0.00201585713103 -0.0084515970496 0) (0.00314942969924 -0.00925920074678 0) (0.00420496323468 -0.0107035916099 0) (0.00589779635987 -0.0165795758314 0) (0.00882818521384 -0.0253360857613 0) (6.94624855676e-06 -0.0177336199997 0) (-0.0070971125998 -0.00830383161351 0) (-0.0115164664438 -0.00333739175818 0) (-0.0149190917558 -0.000656969090798 0) (-0.018023178247 0.00128223382934 0) (-0.0212042904235 0.00324944990776 0) (-0.0245626963297 0.00551150212245 0) (-0.0280921163309 0.00811452182078 0) (-0.0317639638972 0.0110453410912 0) (-0.0355566623591 0.0142962662719 0) (-0.0394548089717 0.0178767925808 0) (-0.043445161685 0.0218121158232 0) (-0.0475128884641 0.02614004068 0) (-0.0516386881015 0.0309084743007 0) (-0.0557962839428 0.0361734022942 0) (-0.0599500865107 0.0419967860597 0) (-0.0640531495367 0.04844429821 0) (-0.0680454437896 0.0555828751696 0) (-0.0718525533398 0.0634778728782 0) (-0.0753848988295 0.0721897198942 0) (-0.0785376586575 0.0817699758778 0) (-0.081191599969 0.092256714427 0) (-0.0832151408386 0.103669125952 0) (-0.0844679864558 0.116001666091 0) (-0.084806860679 0.129217908384 0) (-0.0840936075993 0.143244789397 0) (-0.0822053167687 0.157968057356 0) (-0.079047169122 0.173231670818 0) (-0.0745668514235 0.188842373587 0) (-0.0687683302027 0.204582272136 0) (-0.0617201937608 0.220232793868 0) (-0.0535515793346 0.235605047986 0) (-0.0444329721559 0.250559549112 0) (-0.0345545478779 0.264994712095 0) (-0.0241193121497 0.278858213488 0) (-0.0133297513167 0.292131532518 0) (-0.00251829617876 0.304808488106 0) (0.00848589627091 0.317332582368 0) (0.0191666426086 0.326158673663 0) (0.0287577595687 0.333165987539 0) (0.0384810238121 0.337207359565 0) (0.0479525037807 0.337565025524 0) (0.0569378669087 0.334561347975 0) (0.0659218759662 0.329030994581 0) (0.0747149126334 0.321558822506 0) (0.0831071435597 0.312597684633 0) (0.090893481552 0.302542743932 0) (0.097879419588 0.291722763426 0) (0.103872634604 0.280398608486 0) (0.108680294002 0.268783537827 0) (0.112107355996 0.257060883251 0) (0.113961659906 0.245412120127 0) (0.114066974843 0.234031673689 0) (0.112273053395 0.223121677312 0) (0.108456035696 0.212874823057 0) (0.102508643282 0.203453392211 0) (0.0943225691349 0.194966382642 0) (0.0837337138161 0.187439643705 0) (0.0709712953668 0.180745153416 0) (0.0529608469685 0.17465862157 0) (0.0345245299606 0.166253681641 0) (0.0157434284765 0.052087285588 0) (0.0137218170945 0.0150764172192 0) (0.00913563576526 0.00719292182947 0) (0.00444527558034 0.00450647266825 0) (0.00317127661465 0.000661055011541 0) (0.0030667446154 0.000109809210667 0) (0.000243066035655 -0.00279130160607 0) (0.00214600882434 -0.00394533932875 -1.63283286492e-28) (0.0182458651331 -0.0169357198785 0) (0.00025682008761 -0.0031214325267 0) (0.000900655063137 -0.00675962352364 0) (-0.000225571541366 -0.00761391137525 0) (-0.000311431095738 -0.00572716000153 0) (0.000517281174978 -0.00616058097454 0) (0.00171724095534 -0.00701090478777 0) (0.00303330723571 -0.00815213521257 0) (0.00408672144781 -0.00892759897353 0) (0.00511860552439 -0.0103918113638 0) (0.00820368141887 -0.0174954721426 0) (0.0117625700014 -0.0266777421555 0) (0.00189141646368 -0.0178858219482 0) (-0.00520373949552 -0.0100124802319 0) (-0.010055775887 -0.00577539718852 0) (-0.0140813823029 -0.00326858466926 0) (-0.0178794288677 -0.00114674365141 0) (-0.0217340571969 0.00114775180076 0) (-0.0257005833683 0.00375534229845 0) (-0.029781236652 0.0066801797131 0) (-0.0339687882307 0.00991553057183 0) (-0.0382580832113 0.0134720675605 0) (-0.0426445532353 0.0173788804205 0) (-0.0471209074415 0.0216802752714 0) (-0.0516742797523 0.0264329220167 0) (-0.0562834434594 0.0317037007265 0) (-0.0609159873268 0.037567262491 0) (-0.0655258199019 0.0441034983941 0) (-0.0700509633038 0.051394852045 0) (-0.07441177401 0.0595231871307 0) (-0.0785097146149 0.0685659682032 1.43592375347e-28) (-0.0822268462705 0.0785916046259 0) (-0.0854263981835 0.0896535965956 0) (-0.0879547500955 0.101783541761 0) (-0.0896455750476 0.114983098735 0) (-0.0903265898123 0.129215126509 0) (-0.0898294251813 0.144395069856 0) (-0.088003279434 0.160383376871 0) (-0.0847324507793 0.176982247738 -8.00576257515e-29) (-0.0799571040733 0.193939517012 7.6631592738e-29) (-0.0736924614547 0.210966570961 0) (-0.0660409401338 0.227774060531 0) (-0.0571861790233 0.244121116056 0) (-0.0473602754717 0.259846333752 0) (-0.0368073561135 0.274836206201 0) (-0.0257769316619 0.289045720202 0) (-0.0145019066961 0.302475377969 0) (-0.00333009935781 0.31513972272 0) (0.00785272743321 0.327415252959 0) (0.0187086970047 0.335803455977 0) (0.0281948013433 0.34233608438 0) (0.03783076483 0.34606635468 0) (0.0472075211155 0.346265479313 0) (0.0560938946149 0.343144471136 0) (0.065076753307 0.337496386593 0) (0.0739771091939 0.329793150437 0) (0.0825729427674 0.320422633606 0) (0.0906426932556 0.309760306837 0) (0.0979728434483 0.298129264899 0) (0.104344705886 0.285783488692 0) (0.10953221117 0.272930547677 0) (0.11329760751 0.259747623487 0) (0.115401098042 0.246424703769 0) (0.115625901785 0.233182995149 0) (0.113796565024 0.220260039816 0) (0.109780761509 0.207879648581 0) (0.103476739112 0.196220539166 0) (0.0947916431788 0.185386359457 0) (0.0835909771662 0.175369867688 0) (0.0700679982191 0.165973184239 0) (0.0514799182748 0.156853694705 0) (0.031976889192 0.144817518626 0) (0.0145946533776 0.0415382864804 0) (0.0142506899351 0.00995364619285 0) (0.0107396772902 0.00364505352614 0) (0.00708501043169 0.000868343297003 0) (0.00508104430549 -0.00236965011168 -9.0685466664e-29) (0.00428242410068 -0.00168190144065 0) (0.00197542637173 -0.00211668301544 0) (0.0118494357929 -0.00791752278257 0) (0.0203613024136 -0.0176988698691 0) (0.000124808833397 -0.00321269615743 0) (0.00050735060331 -0.00706794401407 0) (-3.49505607123e-05 -0.00904185048417 0) (6.92156153796e-05 -0.00526304546573 0) (0.000726131333094 -0.00519481491659 0) (0.00164278740355 -0.00586874271138 0) (0.0027773612443 -0.00679358500193 0) (0.00400576241005 -0.00789668164254 -4.00029527813e-29) (0.00493573183232 -0.0085512522925 3.88130143777e-29) (0.00600239566331 -0.00990372200296 0) (0.0101396732363 -0.0175741407044 0) (0.0143511433586 -0.0272867493341 0) (0.00489825736598 -0.0199447237766 0) (-0.00252861926988 -0.0132184392537 0) (-0.00810622592761 -0.00928856699363 0) (-0.0130024746983 -0.0065614921235 0) (-0.0176300251139 -0.00399590829583 0) (-0.0222034062451 -0.00124941902549 0) (-0.026802248432 0.00175133141861 0) (-0.0314603100404 0.00502177493942 0) (-0.0361955805007 0.00858294984717 0) (-0.0410199588613 0.0124729506193 0) (-0.0459391142181 0.0167459051369 0) (-0.0509508804022 0.0214702774152 0) (-0.0560426192932 0.0267268694425 0) (-0.0611879929125 0.0326060177752 0) (-0.0663440142863 0.0392048558342 0) (-0.0714484105666 0.0466246803178 0) (-0.0764172633101 0.0549676592436 0) (-0.0811432290493 0.0643326756636 -1.44082303758e-28) (-0.0854945312174 0.0748098648869 0) (-0.0893149254076 0.0864734327144 0) (-0.0924255596733 0.099372652511 0) (-0.0946292752176 0.113520765787 0) (-0.0957183567855 0.1288827153 0) (-0.0954871093418 0.145361912591 0) (-0.0937494472586 0.162788336842 0) (-0.0903628298173 0.180910762302 0) (-0.085256425222 0.199399789944 0) (-0.0784600820246 0.217870628566 0) (-0.0701237067212 0.235937270554 0) (-0.060507465814 0.253294268208 0) (-0.0499242208243 0.269768634017 0) (-0.0386780518154 0.285245294556 0) (-0.0270716011341 0.299698123305 0) (-0.0153682493022 0.313155337956 0) (-0.00392196251263 0.325666463352 0) (0.00734507679286 0.337566765751 0) (0.0182822862039 0.345387106852 0) (0.0276287455017 0.351369537565 0) (0.0371249720875 0.354757962562 0) (0.0463597911505 0.354822523973 0) (0.0551154686521 0.351649245805 0) (0.0640651412094 0.345976711956 0) (0.0730483493876 0.338138997052 0) (0.081838940628 0.328449216461 0) (0.0902073400645 0.317258891709 0) (0.0979261346996 0.304878500744 0) (0.104749811735 0.291543883129 0) (0.110415330887 0.277446626505 0) (0.11463028415 0.262745086257 0) (0.117090207961 0.247638226403 0) (0.117524974999 0.232388608525 0) (0.1157293414 0.217289357694 0) (0.111565093023 0.202613865504 0) (0.104942515206 0.188570812455 0) (0.0957911364987 0.175266953758 0) (0.084008448507 0.16266675313 0) (0.0697354415419 0.150507445242 0) (0.0505857980254 0.138321382641 0) (0.0297895797642 0.122664078785 0) (0.0135564433899 0.0322970019762 0) (0.0148619907211 0.00580899402214 0) (0.012324085227 0.000576117522497 0) (0.0097474579017 -0.00211742939121 -9.54688530101e-29) (0.00808730787579 -0.00479615232616 9.89642219991e-29) (0.00668928557392 -0.00396326911985 0) (0.00282843444279 -0.00147283675167 0) (0.00864798300822 0.0137382166204 0) (0.00895475451502 0.00644165335285 0) (-5.8700438201e-05 -0.00395223820162 0) (-0.000303779546817 -0.00667839113307 0) (-0.000303755817589 -0.00867545127069 0) (0.000328805173033 -0.0046347111112 0) (0.000878603798064 -0.00444367277 0) (0.0015345420352 -0.0049031194811 0) (0.00244795346287 -0.00569225322547 0) (0.0035504281358 -0.00663966866489 0) (0.00473692953678 -0.00765440526147 0) (0.00555480494899 -0.00811875878157 0) (0.006506221904 -0.0091678091164 0) (0.0118701506979 -0.017443860757 0) (0.0177500584973 -0.0287818817012 0) (0.00905616876078 -0.023920566858 0) (0.000990243973885 -0.0179566017493 0) (-0.00568670005358 -0.0137285923582 0) (-0.0116388319338 -0.0103613865675 0) (-0.0171522764982 -0.00717991693392 0) (-0.0224700672071 -0.00393044103518 0) (-0.0277276974484 -0.000519555943285 0) (-0.0329968586207 0.0031107539162 0) (-0.0383215029266 0.00701837800954 0) (-0.0437302754816 0.011274703897 0) (-0.04923877504 0.0159655935339 0) (-0.0548486222528 0.0211905519006 0) (-0.0605438379783 0.0270595667279 2.11987120328e-28) (-0.0662879372724 0.0336906399929 0) (-0.0720208806836 0.0412079561147 0) (-0.0776561395959 0.0497385903371 0) (-0.0830784548076 0.0594081945243 0) (-0.0881420000926 0.0703348482075 0) (-0.0926697442167 0.0826204968443 0) (-0.0964545142918 0.0963390269002 0) (-0.099263051698 0.111521764396 0) (-0.100845287417 0.128140079008 0) (-0.100949202838 0.146086118067 0) (-0.0993442613884 0.16515361906 0) (-0.0958522956435 0.185024021688 0) (-0.090386492721 0.205266014929 0) (-0.0829943253738 0.22536400022 0) (-0.0738894231419 0.24479945407 -5.8690435669e-29) (-0.0634393892296 0.263185636471 5.7078943102e-29) (-0.0520650348466 0.280359567679 0) (-0.040132533983 0.296222227322 0) (-0.027997387795 0.310789871658 0) (-0.0159469154099 0.324130484965 0) (-0.00432253498104 0.336335053828 0) (0.0069198348003 0.347723310474 0) (0.0178215964176 0.354879240452 0) (0.0269930712157 0.36026124176 0) (0.036308296095 0.363291308617 0) (0.0453529143343 0.363242303381 0) (0.0539426197873 0.360076669533 0) (0.0628182211146 0.354471527013 0) (0.0718461502404 0.346601656349 0) (0.0808065649152 0.336697131055 0) (0.089474084637 0.325080553115 0) (0.0976157399343 0.31203965085 0) (0.10495967913 0.297774851584 0) (0.111203771051 0.282445769329 0) (0.115984376779 0.266168381868 0) (0.118907214341 0.249151024405 0) (0.119631458575 0.231720573787 0) (0.117917389214 0.214255199395 0) (0.113625646313 0.197102558867 0) (0.106687832677 0.180517166624 0) (0.0970648548749 0.164614914877 0) (0.0846880846559 0.149327639894 0) (0.069633175348 0.134311412253 0) (0.0498687661318 0.118921037791 0) (0.027483334533 0.0995079741563 0) (0.0123611102169 0.0236599906534 0) (0.0154208669889 0.00240813838695 -9.84452998968e-29) (0.0136009125094 -0.00204138535306 0) (0.0119906777461 -0.00452647278996 1.00498618429e-28) (0.011327093673 -0.00657517605709 0) (0.00869774151411 -0.00551019611352 0) (0.00382034149166 -0.0015095599348 0) (0.00629605702281 0.0131898517591 0) (0.00131459481438 -0.00263171659894 0) (-0.000601289457277 -0.00440554866783 0) (-0.00164362934195 -0.00659183152497 0) (-0.000879431391661 -0.0075003927069 0) (0.000373503189712 -0.00405459472868 0) (0.000850108798182 -0.00390395521692 0) (0.00133293827399 -0.00423463940688 0) (0.00200300110677 -0.00476218253194 0) (0.00293796576706 -0.00555383692815 0) (0.00405602733885 -0.00646056698431 0) (0.00524049235769 -0.00739032852118 0) (0.00592941846327 -0.00765316361344 0) (0.00673347894114 -0.00832991715549 0) (0.0136821059942 -0.0175640706212 0) (0.0217930076174 -0.0307548373901 0) (0.0146792014685 -0.0301229091386 0) (0.00551848606981 -0.0240574136473 0) (-0.00266334159836 -0.0188541235974 0) (-0.00978211320199 -0.014581497284 0) (-0.0162017401058 -0.0107146712871 0) (-0.0222942332157 -0.00694507886137 0) (-0.0282518513023 -0.00311167558946 0) (-0.0341816685375 0.000891758576512 0) (-0.0401531106935 0.00517087365501 0) (-0.0462132199183 0.00983981573049 0) (-0.0523874107257 0.0150247848335 0) (-0.0586765456261 0.0208610702359 -2.23593253606e-28) (-0.0650556003428 0.0274920206377 0) (-0.0714706787883 0.0350696401161 0) (-0.0778354507996 0.0437514700167 0) (-0.0840286003187 0.0536964871927 0) (-0.089891514024 0.0650589278436 0) (-0.095226067498 0.0779773885852 0) (-0.0997941541078 0.092559896184 0) (-0.103321908639 0.108864974191 0) (-0.105508783491 0.126877249716 0) (-0.106046694863 0.14648000295 0) (-0.104648155368 0.167425817124 0) (-0.101086838495 0.189312787814 0) (-0.0952515990347 0.211575581785 0) (-0.0872089152521 0.23352051147 0) (-0.0772569648896 0.254443339226 0) (-0.0659115004113 0.273852780641 0) (-0.0537365516685 0.291641463817 0) (-0.0411558927749 0.307753894338 0) (-0.028575022725 0.322280649629 0) (-0.0162850772036 0.335347616025 0) (-0.00458801789595 0.347091870103 0) (0.00651671061492 0.357839648516 0) (0.0172576628396 0.364274992563 0) (0.0262236592705 0.369028430048 0) (0.0353279528187 0.37169421374 0) (0.044139743929 0.371547707038 0) (0.052528016613 0.368439494548 0) (0.0612806202755 0.362984954904 0) (0.0703010990821 0.355185875381 0) (0.0793885761427 0.34518316659 0) (0.0883374851048 0.333265055812 0) (0.0969218515736 0.319683189049 0) (0.104844994477 0.30457775901 0) (0.111767863361 0.288052799214 0) (0.117231955572 0.270139267691 0) (0.120716019563 0.25105646015 0) (0.121786365097 0.231232342262 0) (0.120165705888 0.211172606626 0) (0.115722801802 0.191332262384 0) (0.108425343831 0.17203071924 0) (0.0982812052747 0.153397995919 0) (0.0852664672304 0.135321635692 0) (0.0693988910021 0.117339082329 0) (0.0489800482785 0.0985446832784 0) (0.0248549839402 0.0750118224817 0) (0.0108369935895 0.0148170608362 0) (0.0156410477051 -0.000861057779017 9.77340180386e-29) (0.0142376544267 -0.00432138077569 8.62040903648e-29) (0.0129119924041 -0.00632543420378 0) (0.0123405642716 -0.0074512156356 0) (0.0112050065279 -0.00650969098279 0) (0.00414389677973 -0.00162345359012 0) (0.00372758979586 0.0103045956821 0) (-0.00130277884364 -0.00417718231778 0) (-0.000914130219695 -0.0109888545539 0) (-0.00149504747996 -0.00708664103093 0) (-0.000555928834567 -0.00508029630972 0) (0.000413108087247 -0.00338867289936 0) (0.000767076871975 -0.00343398527094 0) (0.00110136401258 -0.00367002571327 0) (0.00159053032557 -0.00407833790978 0) (0.00228357855059 -0.00460947688558 0) (0.00325299622186 -0.00537569128628 0) (0.00439375208855 -0.0062317682603 0) (0.00557339763757 -0.00708044111237 0) (0.0061363494045 -0.00716622667677 0) (0.0067767079839 -0.00746825504393 0) (0.0157218612864 -0.0178390568059 0) (0.0261815590238 -0.0321450395677 0) (0.0227989199995 -0.0392039368242 0) (0.0112590451287 -0.0311598196718 0) (0.00129337252087 -0.0245643949522 0) (-0.00695861991719 -0.0193054939784 0) (-0.0143438134403 -0.0147187686472 0) (-0.0212939758166 -0.0103999692837 0) (-0.0280222364997 -0.00613000057099 0) (-0.0346842191104 -0.0017304001143 -3.46675807022e-28) (-0.041388549397 0.00296379374196 0) (-0.048200049431 0.00812340985237 0) (-0.0551450195361 0.0139179161291 0) (-0.062218193783 0.0205204626684 0) (-0.0693781990925 0.0281173375642 0) (-0.076542949589 0.0369041707963 0) (-0.0835892791533 0.0470816553859 0) (-0.0903492425508 0.0588504849264 0) (-0.0966052254495 0.0723974996696 0) (-0.1020885506 0.0878777281469 0) (-0.10648034549 0.105388844793 0) (-0.109422516344 0.124940672829 0) (-0.110537969591 0.146412826202 0) (-0.109466339714 0.169513767071 0) (-0.105916740894 0.19373878812 0) (-0.0997388567961 0.21835123079 0) (-0.0910162929155 0.242412468273 0) (-0.0801519510024 0.264954508692 0) (-0.067866736647 0.285344451037 0) (-0.0549167541619 0.303617682676 0) (-0.041762048349 0.319806419843 0) (-0.0288553640907 0.334116556769 0) (-0.0164624572593 0.346748791766 0) (-0.00481109856246 0.35789196071 0) (0.00604653918956 0.367890784755 0) (0.0165171445433 0.373591430319 0) (0.0252630895496 0.377715336121 0) (0.0341386823475 0.380020299627 0) (0.0426878326392 0.379785335927 0) (0.0508458013244 0.376769683507 0) (0.059423017606 0.371532402966 0) (0.0683722127899 0.363901006976 0) (0.077525878889 0.353924005072 0) (0.0867166879744 0.341850186023 0) (0.0957439696837 0.327879663654 0) (0.104288291546 0.312058860963 0) (0.111985101671 0.294403089728 0) (0.11824632667 0.274782136882 0) (0.122369014336 0.253433032461 0) (0.123800045239 0.230943558865 0) (0.122225804825 0.208007962822 0) (0.11753891046 0.185231162412 0) (0.109764453469 0.163021122675 0) (0.0989817779357 0.141529070393 0) (0.0852389985779 0.120586239833 0) (0.0685448296906 0.0995818328477 0) (0.0475324462199 0.0772691483659 0) (0.0221244108179 0.0493453850516 0) (0.00935606430317 0.00497573312298 0) (0.0151741921154 -0.00455499226818 0) (0.0140865646695 -0.00650873016725 -8.18800790225e-29) (0.0122340456507 -0.00770367762712 0) (0.0114062199097 -0.00813400203228 -9.48525584391e-29) (0.00995878855488 -0.00588463007383 0) (0.00443914695328 -0.00159122535494 0) (0.00271737852592 0.00853956785434 0) (-0.00121983178329 -0.00330087638264 0) (0.000404123441465 -0.0115952258593 0) (-0.000157920390159 -0.00797124401474 0) (5.42848856894e-06 -0.00366258841929 0) (0.000485279893671 -0.00316388149179 0) (0.000793723252636 -0.00328010142562 0) (0.00106223334043 -0.00343459577187 0) (0.00135716993129 -0.0035749277808 0) (0.00181846182535 -0.00391388759943 0) (0.00251013599096 -0.00442144821681 0) (0.00348413980217 -0.00513587814452 0) (0.00465033762442 -0.00596763916742 0) (0.00578157427431 -0.00672423997223 0) (0.00615345331499 -0.00667819894036 0) (0.00670534674111 -0.0066229837894 0) (0.0121553424523 -0.0118470769969 0) (0.0259170973634 -0.027654920341 0) (0.0337852524509 -0.0496020974698 0) (0.0188939304593 -0.039205456941 0) (0.00734652047707 -0.0309354769999 0) (-0.00231864455143 -0.0247163941774 0) (-0.0109233871513 -0.0193719861287 0) (-0.0188472927896 -0.0144956666551 0) (-0.0264517899472 -0.0097480904123 4.06835763612e-28) (-0.0339850908967 -0.00490346917353 0) (-0.0415719639743 0.000303078315302 0) (-0.0492793109873 0.0060847514947 0) (-0.0571386731214 0.0126469894978 0) (-0.0651293297119 0.0202255901726 0) (-0.0731803995816 0.0290643698667 0) (-0.0811749404459 0.0394158950639 0) (-0.088943616816 0.0515408596089 0) (-0.0962568674327 0.0656911783572 0) (-0.102818376654 0.0820824988708 0) (-0.108265272681 0.100872867259 0) (-0.112171756939 0.122112027609 0) (-0.11407712503 0.145689038277 0) (-0.1135289965 0.171263710109 0) (-0.110147063022 0.198216551575 0) (-0.103720922218 0.225583906957 0) (-0.0943352849022 0.252100181474 0) (-0.0825167092775 0.276415267506 0) (-0.0692697208225 0.297693336873 0) (-0.0556156244853 0.316268450619 0) (-0.0420024203729 0.33232366289 0) (-0.0289265270092 0.346233632404 0) (-0.0165902630406 0.358283686489 0) (-0.0051087927983 0.368711778471 0) (0.00541047532109 0.377882711669 0) (0.0155340899662 0.382876978186 0) (0.0240668191255 0.386402670657 0) (0.0327121666053 0.388359998156 0) (0.0409899381785 0.388037006941 0) (0.0489034264088 0.385130524673 0) (0.0572568415693 0.380152899691 0) (0.0660648083518 0.372772194644 0) (0.0752079590262 0.362944396792 0) (0.0845767609756 0.350875992897 0) (0.0940219038618 0.33670064682 0) (0.103201781919 0.320328704806 0) (0.11175564527 0.301642352194 0) (0.118913128709 0.280216516384 0) (0.123709569621 0.256327393211 0) (0.125444403651 0.230817316625 0) (0.123776785891 0.204651467652 0) (0.118645972613 0.178637051787 0) (0.110161593438 0.153297733459 0) (0.0985041692625 0.128813199915 0) (0.0838288883734 0.104970261564 0) (0.0662100200945 0.0810098019929 0) (0.0446941306384 0.0553319097905 0) (0.0189179001617 0.0233511541974 0) (0.00733596626621 -0.00898523211523 0) (0.0131851316422 -0.00931923244379 0) (0.0131234325257 -0.0088742480632 0) (0.0106102142289 -0.0090343398451 0) (0.00902062707274 -0.0084842346826 7.86417747746e-29) (0.00679895839073 -0.00592652076004 0) (0.00389092624872 -0.00161839353378 -4.00503530122e-29) (0.00273106741751 0.00722987230473 0) (-0.000821102133597 -0.00309992006158 0) (0.000998228996193 -0.00975382693833 0) (0.00123112917028 -0.00981944487463 0) (0.000352736442317 -0.00336600985125 0) (0.000608300532985 -0.00283003500882 0) (0.000903058964533 -0.003006016297 0) (0.00115055883468 -0.00319809060379 0) (0.0013897599193 -0.00337184749164 0) (0.00165576095701 -0.00351220545269 0) (0.00204994576145 -0.00373327732367 0) (0.00272665496553 -0.00419819754574 0) (0.00368767461883 -0.00485436307763 0) (0.00488373672575 -0.00566351505129 0) (0.00598444996778 -0.00635987594139 0) (0.00629322209272 -0.00628191370787 0) (0.00630767269158 -0.00547225736388 0) (0.00842332074589 -0.00651294599096 0) (0.0222350791749 -0.0213060151141 0) (0.0456965757012 -0.0536037178904 0) (0.0335324921412 -0.0503047030479 0) (0.0181249361969 -0.0396087066857 9.96972677521e-28) (0.00556987899595 -0.031319656836 0) (-0.00465277623013 -0.0249505549645 0) (-0.0138179139149 -0.0194719105918 0) (-0.0226075714276 -0.0142538193622 0) (-0.0312831323563 -0.00880206461793 0) (-0.0399820906136 -0.00290776325888 0) (-0.0488072164192 0.00365111496408 0) (-0.0577746185673 0.0111964854928 0) (-0.0668384963401 0.0200383493446 0) (-0.0759009542543 0.030487559723 0) (-0.0848146696553 0.0428937712991 0) (-0.093353951033 0.0575952701233 0) (-0.101210964741 0.0748856121971 0) (-0.107975483594 0.0949980993259 0) (-0.113149373562 0.118073913156 0) (-0.116167901619 0.14400751015 0) (-0.116460270408 0.172433448244 0) (-0.113526677795 0.202576453337 0) (-0.107052497587 0.233207681635 0) (-0.0970961322692 0.262614863636 0) (-0.0843190941582 0.288899743077 0) (-0.0701170698061 0.310911769294 0) (-0.0558844551748 0.329553261934 0) (-0.0419668715326 0.345240050736 0) (-0.0289084249642 0.358574806096 0) (-0.0167971589393 0.369928712672 0) (-0.00560062465539 0.379570849019 0) (0.00452056933437 0.387873146433 0) (0.0142610418547 0.392233568125 0) (0.0226127917523 0.395222746754 0) (0.0310484050821 0.39685362203 0) (0.0390747509581 0.396435071931 0) (0.0467523344417 0.393634826154 0) (0.0548466445263 0.388929711795 0) (0.0634456230597 0.381861325083 0) (0.0724906980531 0.372295421141 0) (0.0819482039408 0.36039805937 0) (0.0917564105375 0.346226575357 0) (0.101545349171 0.32950625822 0) (0.111018752537 0.309930373168 0) (0.119141065431 0.286548561952 0) (0.124572143475 0.259733090777 0) (0.126440969022 0.230728326771 0) (0.124399399914 0.200877995297 0) (0.118462398941 0.171249716153 0) (0.108857740006 0.142501768335 0) (0.0958919587732 0.114862550571 0) (0.0798433710143 0.0881039031461 0) (0.0609337074059 0.0613258805688 0) (0.038726720306 0.0326591085065 0) (0.0133103900781 -0.00248959320761 0) (0.00195176891068 -0.0285041535659 0) (0.00958344681568 -0.0143457303914 0) (0.0116303146796 -0.0115042888244 0) (0.0092136073389 -0.0106292371539 0) (0.00709703113909 -0.00836675643228 0) (0.00344900246375 -0.0036837848795 0) (0.00342443758814 -0.000570043871513 3.95943817681e-29) (0.00175503331961 0.00428504425984 0) (-0.000700530901833 -0.00259141353045 0) (0.000636310115185 -0.00741314643274 0) (0.00209895840012 -0.0115555382212 0) (0.000876846459492 -0.0038447427242 0) (0.000850628836821 -0.00255917236461 0) (0.00108073243507 -0.00275913419598 0) (0.00127151144215 -0.00295979539548 0) (0.00147528935715 -0.00313346686389 0) (0.00169430975722 -0.00328490233439 0) (0.0019495396783 -0.00340632509946 0) (0.00227825295969 -0.00351434352849 0) (0.00293085473146 -0.00391072734772 0) (0.0038791274872 -0.00448838010671 0) (0.00516081274134 -0.00527759198162 0) (0.00634110995455 -0.0059362009102 0) (0.00663653868448 -0.00570358616268 0) (0.00635801556243 -0.00493686500475 0) (0.0117896420214 -0.00862598613136 0) (0.00824708869408 -0.00646574230567 0) (0.0331877452062 -0.0308836241099 0) (0.0498258272302 -0.0568028014248 -1.56729248222e-27) (0.035574253299 -0.0504928770221 0) (0.0213505432206 -0.0409994329687 0) (0.00748977370885 -0.0327072453464 0) (-0.00416119552394 -0.0261514982079 0) (-0.014886650444 -0.0198932880683 0) (-0.0251897985466 -0.0135945840981 0) (-0.0354383530257 -0.00692430593012 0) (-0.0457244527053 0.000654328778552 0) (-0.0560308664511 0.00948309261675 0) (-0.0663360597551 0.0199430892663 0) (-0.0765668387398 0.0325421902071 0) (-0.0865752689018 0.0477253822742 0) (-0.0960518433523 0.0658262060022 0) (-0.10453877597 0.0872944104267 0) (-0.111444539196 0.112324440572 0) (-0.11608643695 0.140923186838 0) (-0.117739098959 0.172623614643 0) (-0.115718264856 0.206525320236 0) (-0.10956011322 0.241059323496 0) (-0.0992439963459 0.273933946165 0) (-0.0855603563258 0.302471408217 0) (-0.0704430519472 0.324995416505 0) (-0.0558154475276 0.343424737798 0) (-0.04177239486 0.358504188766 0) (-0.0289331824428 0.371119210256 0) (-0.0172082863912 0.381712300695 0) (-0.00638852830304 0.390552493287 0) (0.00331523101994 0.397992174576 0) (0.0126781221957 0.401828220344 0) (0.0209111208201 0.404369053714 0) (0.029182822101 0.405703485218 0) (0.0370105860541 0.4051788348 0) (0.0444906577562 0.402466804032 0) (0.0523144890358 0.398017941437 0) (0.0606498035071 0.391297719729 0) (0.069506014368 0.382084811742 0) (0.0789390747153 0.37051388114 0) (0.0890243866408 0.356566363438 0) (0.0993407146364 0.339731992 0) (0.109765967997 0.319450319278 0) (0.118868953185 0.293858205332 0) (0.124776572629 0.263562235235 0) (0.126440967797 0.230426965179 0) (0.123537466401 0.196301881562 0) (0.116204193136 0.162568451325 0) (0.104807228993 0.130058897441 0) (0.0897711744245 0.0990481770998 0) (0.0715898981915 0.0693056149323 0) (0.0506796338742 0.0397742395856 0) (0.0271388654659 0.00851480194728 0) (0.00230477335103 -0.0284594452358 0) (-0.00636029244956 -0.0441851275862 0) (0.00569682012348 -0.0175344784307 0) (0.00953251438923 -0.014519152694 0) (0.00777054598902 -0.0136475628301 0) (0.0052109660593 -0.0115725306982 0) (0.00225846758284 -0.00561636019101 0) (0.00114352235346 -0.00242819659702 0) (-0.000832503747419 -0.00212121156715 0) (-0.000392860966686 -0.00243074456386 0) (0.000223977948213 -0.00634038677838 0) (0.00213006808931 -0.0101943603852 0) (0.00162854553905 -0.0050762538496 0) (0.00102232882516 -0.00242932771674 0) (0.00126233693291 -0.00257023604714 0) (0.00139741660541 -0.00275445454806 0) (0.00156355118593 -0.00291390542546 0) (0.00175501909584 -0.00304576645412 0) (0.00197664773793 -0.00315710839225 0) (0.00223019857852 -0.00324477478646 0) (0.0025518309642 -0.00331151169778 0) (0.00311306832032 -0.00352161430096 0) (0.00405164965307 -0.00397769102139 0) (0.00542977111081 -0.00469416806813 0) (0.00667063117243 -0.00525293222281 0) (0.00695488980229 -0.00497012232211 0) (0.00735452629856 -0.00491211457489 0) (0.0135775232569 -0.00859084474287 0) (0.0131460540768 -0.0093400147311 0) (0.010036623481 -0.00829097110825 0) (0.0337108761377 -0.0308944435586 0) (0.0502124526655 -0.0487318676177 0) (0.0439136540214 -0.0527213493459 0) (0.0317809706671 -0.0460095369122 0) (0.0158149793095 -0.0363588280155 0) (0.000431131305738 -0.0276273688044 0) (-0.013184980579 -0.0200713917743 0) (-0.0258491907051 -0.0122293180558 0) (-0.0380317972723 -0.00331262980629 0) (-0.0498165980869 0.00713552207058 0) (-0.0616568166114 0.0198316881839 0) (-0.0736484316359 0.0353528442927 0) (-0.0853356033421 0.054222525227 0) (-0.0961055129848 0.0769042812596 0) (-0.105621424206 0.104142844866 0) (-0.112765664263 0.135690575498 0) (-0.116614207099 0.171217446602 0) (-0.116259221675 0.209574084291 0) (-0.111027552605 0.248817986047 0) (-0.100732933639 0.285956945792 0) (-0.0862769353968 0.317184037635 0) (-0.070307692187 0.339938241599 0) (-0.0555188901087 0.357858044011 0) (-0.0415359447211 0.372115266116 0) (-0.0291187012102 0.383917752545 0) (-0.0179226829034 0.393745070543 0) (-0.00754098583058 0.401825349042 0) (0.00176743563791 0.408452589358 0) (0.0107972914796 0.411899389453 0) (0.0189975740057 0.414101081664 0) (0.0271764604434 0.415179336454 0) (0.034891838583 0.414542739546 0) (0.0422457739742 0.411895464215 0) (0.0498194895497 0.407666703437 0) (0.0578602347574 0.401309506133 0) (0.0664436278772 0.392514144807 0) (0.075720040263 0.381400654823 0) (0.0859688912628 0.367890041273 0) (0.0966646292637 0.351192640283 0) (0.108040847823 0.330426267635 0) (0.118062190611 0.302192048856 0) (0.124114634863 0.267617453516 0) (0.124995866451 0.229497137041 0) (0.120461623998 0.190328424785 0) (0.110799364934 0.151857349597 0) (0.0965058380286 0.115099984875 0) (0.0782075378522 0.0803325000737 0) (0.0567468992039 0.047379718282 0) (0.0323976858271 0.0147928004832 0) (0.00635386814991 -0.0192268522624 0) (-0.0251133460546 -0.06456406086 0) (-0.00651744330701 -0.0258522489264 0) (0.00242656852309 -0.0190582509432 0) (0.00658501768246 -0.0170015005903 0) (0.00608690867185 -0.0159898725339 0) (0.00254187769588 -0.0112942872869 0) (-0.000176051909992 -0.00553690344043 0) (-0.000362268869564 -0.00308328440386 0) (-0.00339648007506 -0.00761329772173 0) (-0.000159843145975 -0.00260446805347 0) (7.70388148439e-05 -0.00566983148161 0) (0.00161093052627 -0.00768334082683 0) (0.00234753553163 -0.00670578008825 0) (0.00111121008516 -0.00240597403542 0) (0.00141452059968 -0.00242753569626 0) (0.00151271320797 -0.00258013081454 0) (0.00164611647925 -0.00271636678594 0) (0.0018089494953 -0.00282324502419 0) (0.0020044614695 -0.00290610087178 0) (0.00223315826512 -0.00296924301621 0) (0.00249949223949 -0.00301953058564 0) (0.0028377514427 -0.00304492305517 0) (0.00328426238364 -0.00305492822757 0) (0.00411348073199 -0.0032749794262 -1.6955433676e-28) (0.00541581360465 -0.00377513922014 0) (0.00690699705764 -0.0044245688834 0) (0.00713534260972 -0.00444241672365 0) (0.0080378779876 -0.00435794711664 0) (0.0124651968184 -0.00665037875492 0) (0.017060222403 -0.00940289041473 0) (0.0168177216704 -0.0122595578976 0) (0.0135789357911 -0.0118888297144 0) (0.00881949770204 -0.00950189040386 0) (0.0457914124894 -0.0359647444813 0) (0.0647899699259 -0.0519651490332 0) (0.0534308106616 -0.0534607472091 0) (0.0325948442424 -0.0440500838055 0) (0.0109265944203 -0.0312101759567 0) (-0.0064190009922 -0.0198838640466 0) (-0.0206299167907 -0.00938386882159 0) (-0.0350988958027 0.00317477431817 0) (-0.0502907020149 0.0193401957405 0) (-0.0650701694991 0.0385736667514 0) (-0.0796956070284 0.0626310209028 0) (-0.0932497249927 0.0921651340572 0) (-0.104505796955 0.127218483087 0) (-0.111991143857 0.167169273341 0) (-0.1145279988 0.21093693583 0) (-0.11116121551 0.255960737753 0) (-0.101516794684 0.298450531293 0) (-0.0865159913996 0.333084497023 0) (-0.0697768405486 0.355749034032 0) (-0.0551153912588 0.37287566911 0) (-0.0413791950571 0.3861491877 0) (-0.029582026482 0.397109338064 0) (-0.0190308680761 0.406221380098 0) (-0.00911585252081 0.413624357016 0) (-0.000136759605582 0.419520288595 0) (0.00864645198478 0.422718805637 0) (0.0169262549191 0.424703152591 0) (0.0251119155791 0.42557815987 0) (0.0328340282698 0.424838351748 0) (0.0401692733371 0.422242585722 0) (0.0475581219002 0.418197443383 0) (0.0553140552286 0.412211761292 0) (0.0635631811204 0.403876541589 0) (0.0725436795192 0.393319067185 0) (0.0828238409393 0.380431089227 0) (0.0936721533247 0.364118499441 0) (0.105952263355 0.343115935731 0) (0.116712690363 0.311517717393 0) (0.122330875979 0.271533771491 0) (0.12153142 0.227301352904 0) (0.114173954062 0.181966413502 0) (0.100702275651 0.137922835259 0) (0.0820905239189 0.0962787493933 0) (0.0589308679972 0.0570822548173 0) (0.0323926078406 0.020336882407 0) (0.00195053527646 -0.0166508038938 0) (-0.0346855565424 -0.0608240909194 0) (-0.0156099502715 -0.0271958908656 0) (-0.00944387309907 -0.0243455355609 0) (-0.000687800408508 -0.0187777165872 0) (0.00301222917649 -0.0182064293301 0) (0.00283475421406 -0.016773138222 0) (0.000618338797458 -0.0113438087178 0) (-0.00107810896277 -0.00560449592503 0) (-0.00107470903738 -0.00424817107468 0) (-0.00185005213935 -0.00620654989874 0) (-0.000173650497878 -0.00774783113707 0) (0.000120579336915 -0.00561552774597 0) (0.000951197261503 -0.00502388433054 0) (0.00251357993553 -0.00734000730024 0) (0.00122921120639 -0.00250537200173 0) (0.00152283563133 -0.00232192416176 0) (0.00161993561202 -0.0024457477618 0) (0.00172536082397 -0.00255449346081 0) (0.00185959898172 -0.00263154892214 0) (0.00202738242778 -0.00268484274138 0) (0.00222729634844 -0.00271667110492 0) (0.00246352206172 -0.00272633578278 0) (0.0027531493743 -0.00271380702436 0) (0.00310989422979 -0.00266794708289 0) (0.00357441671878 -0.00259962685329 1.55681793719e-28) (0.00420214536449 -0.00256613485138 0) (0.00509311240856 -0.00275499748813 0) (0.00664605706764 -0.0033554471666 0) (0.00750615913234 -0.00381279703115 0) (0.00736700157742 -0.0034182623572 0) (0.0108338122129 -0.00471538499703 0) (0.0146423980049 -0.00691406178311 0) (0.0199392120132 -0.00945180830521 0) (0.0225773347698 -0.0127832894427 0) (0.0187332568005 -0.0128006387229 0) (0.0162258793696 -0.0124911905457 0) (0.0136436297797 -0.0120873236184 0) (0.0476143582241 -0.0358138711317 0) (0.0682828575076 -0.0507471565321 0) (0.0622120022703 -0.052544490029 0) (0.0378985993217 -0.03828900272 0) (0.0160811421464 -0.0210879288695 0) (-0.0065587274481 -0.00371190585688 0) (-0.0292307487312 0.0166529145538 0) (-0.0493067560844 0.0417136958596 0) (-0.0708853395269 0.074466805716 0) (-0.0886227111899 0.113412327258 0) (-0.102260622767 0.15906640559 0) (-0.109642751915 0.2092741498 0) (-0.109575582294 0.261614163668 0) (-0.10151002442 0.31098580785 0) (-0.0863319884822 0.350184324995 0) (-0.068940841426 0.372430096513 0) (-0.0547583414927 0.388531591173 0) (-0.0414419845644 0.400739992978 0) (-0.0304312496429 0.410888357194 0) (-0.0205845883699 0.419366401986 0) (-0.0111083160161 0.426183722914 0) (-0.0023414967958 0.431440368802 0) (0.00630682754442 0.43450519301 0) (0.0147853910927 0.436382016265 0) (0.0230904667081 0.437112304201 0) (0.0309501510453 0.436303167664 0) (0.0383955149364 0.433778690977 0) (0.0457091653414 0.429911163639 0) (0.0532441646768 0.424323779046 0) (0.0611438364939 0.416486315073 0) (0.0697115023508 0.406553656403 0) (0.0799001729634 0.394428884912 0) (0.0906020560078 0.378721677744 0) (0.103690464906 0.357742759235 0) (0.114855269921 0.321632866618 0) (0.119120074041 0.274678020502 0) (0.115301968728 0.222631786215 0) (0.103273246501 0.169837342903 0) (0.0841424288001 0.119183340176 0) (0.0592410178078 0.071804829672 0) (0.0287583064465 0.0269024853565 0) (-0.00450390286811 -0.0147271792018 0) (-0.0542262320792 -0.0654647942411 0) (-0.0219391183356 -0.0261209126363 0) (-0.0269391912402 -0.0329632913823 0) (-0.00873700451139 -0.0191456112873 0) (-0.00321714374391 -0.0160691002046 0) (-0.000780255372842 -0.0171932085433 0) (-0.00103367209225 -0.0138562052087 0) (-0.00139546776652 -0.0102143423371 0) (-0.00105161986887 -0.00566804152853 0) (-0.000636389362027 -0.00522429101059 0) (-0.00202288734519 -0.0127058486058 0) (-0.000637469162853 -0.00670660062636 0) (0.000262003545407 -0.00513046031818 0) (0.000618990873964 -0.00354890471521 0) (0.0023035760752 -0.00725526571039 0) (0.00138916433609 -0.00254983152742 0) (0.00163110727376 -0.00220211341809 0) (0.00172465230688 -0.00228195174212 0) (0.00180462454313 -0.00232933817856 0) (0.00191174808461 -0.00232813640941 0) (0.00205334987826 -0.00230690857578 0) (0.00222140736817 -0.00227034353624 0) (0.00241597496463 -0.00221031735786 0) (0.00265405612306 -0.00212579123001 0) (0.00296547252364 -0.00202520287309 0) (0.00339731790847 -0.00194228101923 0) (0.00397103153483 -0.00193753080819 0) (0.00458362059201 -0.00203537471142 0) (0.00521305170729 -0.00214999148541 0) (0.00596457012321 -0.00229128620174 0) (0.00685708221438 -0.00262485607056 0) (0.0078138962496 -0.00322619256561 0) (0.00866498780684 -0.00348162059312 0) (0.0130544848551 -0.00403850464433 0) (0.0163308402921 -0.00560281617477 0) (0.018643709534 -0.00691021237903 0) (0.0246089215428 -0.0104045580823 0) (0.0256401321734 -0.0133096204679 0) (0.0265942796633 -0.0160313204279 0) (0.0268176527164 -0.0174068620648 0) (0.0214249751684 -0.0153469273915 0) (0.0719642779849 -0.0382234314719 0) (0.158154847974 -0.068379459168 0) (0.0835215963028 -0.049022149213 0) (0.0344760239309 -0.0191637597263 0) (0.00293978630425 0.00981378127929 0) (-0.0328379261681 0.047095930697 0) (-0.0618070351756 0.0917369647126 0) (-0.0849631284607 0.144089797493 0) (-0.100423778649 0.202935190043 0) (-0.105766576335 0.264115882742 0) (-0.100589934814 0.322802611175 0) (-0.0858030585981 0.36837603746 0) (-0.0679344391795 0.389905391292 0) (-0.0546203396763 0.404842645515 0) (-0.0418366011543 0.416002353129 0) (-0.0316910073266 0.425408307911 0) (-0.0225113071946 0.433320482663 0) (-0.0133755985168 0.439607869782 0) (-0.00467411257518 0.444283084941 0) (0.00395686349263 0.447256524647 0) (0.0127120816191 0.44908546233 0) (0.021210518037 0.449726111166 0) (0.0293011917663 0.448915585537 0) (0.0369670763478 0.4465385369 0) (0.0443369177881 0.442908362999 0) (0.0517671397423 0.437797374099 0) (0.0593705583377 0.4305208056 0) (0.0674754528166 0.42126988555 0) (0.0775078213879 0.409994543921 0) (0.0877300920685 0.395066038168 0) (0.101494731728 0.374368807041 0) (0.11254679873 0.332028542618 0) (0.114180854885 0.275910943914 0) (0.105412210954 0.214249162916 0) (0.0856081833109 0.152123234457 0) (0.0585540848765 0.0936171574588 0) (0.0252892476896 0.0396858502989 0) (-0.014667577308 -0.013101021932 0) (-0.0605021103428 -0.0602697959293 0) (-0.0329845216756 -0.0318383765009 0) (-0.0326058561106 -0.0299351678551 0) (-0.0123111639928 -0.0147881741278 0) (-0.00672163448173 -0.0126517143866 0) (-0.00452875238677 -0.0131312782514 0) (-0.00305226541721 -0.01359743349 0) (-0.00291834757673 -0.0113959417819 0) (-0.00192043716888 -0.00793628044546 0) (-0.000783947350447 -0.00522007728656 0) (-0.000760316456156 -0.00629762240871 0) (-0.00144901504644 -0.0130728544505 0) (-0.00029892628427 -0.0080386157358 0) (0.00044680337593 -0.00495856127276 0) (0.000520277427556 -0.00282056304133 0) (0.00215177521908 -0.00680212507387 0) (0.00146915256643 -0.00224878768053 0) (0.00187406919679 -0.0020452849054 0) (0.00206067158812 -0.00220026777051 0) (0.00235437909093 -0.00238603244498 0) (0.00269776052536 -0.00247327969539 0) (0.00314657042214 -0.00253808149219 0) (0.00366946033317 -0.00258058008841 0) (0.00424762571301 -0.00258465073864 0) (0.00484231148828 -0.00254998817304 0) (0.00530887504893 -0.0024622540049 0) (0.00541586989641 -0.00225493096118 0) (0.00496818964631 -0.00188799552407 0) (0.00466991692624 -0.00167717591476 0) (0.00502965489463 -0.00173962344981 0) (0.00543740469968 -0.00167175514314 0) (0.00609115849551 -0.00152868090733 0) (0.00693165130702 -0.00179158589447 0) (0.00757052609169 -0.00243510610713 0) (0.00819002057633 -0.00336555386352 0) (0.00819897941735 -0.0039461642977 0) (0.00884352596554 -0.00154283980137 0) (0.0102868452973 -0.00303350573404 0) (0.0114308533594 -0.00424507441167 0) (0.0236382334872 -0.00945923191679 0) (0.0332755226019 -0.0111626219176 0) (0.048191571638 -0.0130228803308 0) (0.0655321429761 -0.0202824550041 0) (0.0583297752561 -0.0253053222986 0) (0.0397950671247 -0.023306985847 0) (0.0891260345623 -0.0490474807971 0) (0.0907881816518 -0.0433351532637 0) (0.0253704316778 0.0039299960982 0) (-0.0189889144186 0.0570105525816 0) (-0.0582618351217 0.119410017171 0) (-0.0849723664855 0.188456150021 0) (-0.0990902152097 0.261554308134 0) (-0.0986826952899 0.332676431962 0) (-0.0850313879541 0.387304472091 0) (-0.0669175824021 0.407894730334 0) (-0.0548269462135 0.42164577457 0) (-0.0425520977048 0.431858309757 0) (-0.0331950605772 0.4405781833 0) (-0.0245225492393 0.447914390579 0) (-0.015571618977 0.453630712642 0) (-0.00681256338049 0.457677026993 0) (0.00189515314953 0.460499662534 0) (0.0108731474651 0.462271476115 0) (0.0195328920756 0.462869970592 0) (0.0278432641612 0.462158886074 0) (0.0357615851003 0.460066561035 0) (0.0432961370014 0.456815501822 0) (0.0507658803175 0.452330486261 0) (0.0582022105171 0.445735262718 0) (0.0659126008421 0.437243011012 0) (0.0758495915742 0.426858925822 0) (0.0853016843276 0.412831884001 0) (0.0995915172075 0.392663102703 0) (0.109891902957 0.341647819397 0) (0.107240708639 0.273651724527 0) (0.0900678372926 0.199876358371 0) (0.0600227547037 0.126246545435 0) (0.0222397694705 0.0590213498517 0) (-0.018930612938 -0.00239820928461 0) (-0.0739668970802 -0.0665208267954 0) (-0.0440187345538 -0.037484619145 0) (-0.0203045900151 -0.0178161505257 0) (-0.018408100451 -0.017253143768 0) (-0.00827694274655 -0.0110619109503 0) (-0.0071525727844 -0.0112122840667 0) (-0.0055728342058 -0.0111440837784 0) (-0.00389133302091 -0.0108187121641 0) (-0.00254712972984 -0.00924548720576 0) (-0.00165746020594 -0.00752963231761 0) (-0.00116843825964 -0.00608600711414 0) (-0.00111114216005 -0.00771489255823 0) (-0.00103337972866 -0.0118029586699 0) (-0.000190549534172 -0.00582872143358 0) (0.00060087497703 -0.00412337272979 0) (0.000650302832361 -0.00278960666099 0) (0.00201846418216 -0.00589367140071 0) (0.0015477391902 -0.00201439058446 0) (0.00254345240527 -0.00220221079368 0) (0.00283389200201 -0.00229645557599 0) (0.00347998642742 -0.0025206861262 0) (0.00407375350631 -0.00250089819035 0) (0.00481254900086 -0.0024579858825 0) (0.00568379350158 -0.00247300857913 0) (0.00650011858918 -0.00251528102685 0) (0.00711023685287 -0.00258519783689 0) (0.00758438875063 -0.00272277709139 0) (0.00806519670257 -0.00291506672216 0) (0.00851821049226 -0.00307424251676 0) (0.00884262612995 -0.0030600868273 0) (0.00899549198817 -0.00298295912078 0) (0.00910646781926 -0.00295236872338 0) (0.00818766751326 -0.0025331602803 0) (0.0066436848739 -0.0019701193325 0) (0.00693680756918 -0.00204588284162 0) (0.00744320940455 -0.00242030490557 0) (0.00824639752089 -0.00295052571944 0) (0.00934543559946 -0.0038373329382 0) (0.00867950412186 -0.00414828775806 0) (0.0111205230427 -0.00242203446384 0) (0.0143716838447 -0.00156435643216 0) (0.0169855933692 -0.00236486799632 0) (0.0187610586629 -0.00413016648376 0) (0.0235800903045 -0.00800575050274 0) (0.0274302874402 -0.0136467048761 0) (0.0420885821439 -0.0230701960975 0) (0.0622689417684 -0.0315910089987 0) (0.0473189746684 -0.0255462820348 0) (0.0851978271039 -0.0508579416355 0) (0.0395806100278 0.00481838392045 0) (-0.0184824216714 0.079655094523 0) (-0.0631266646451 0.162833332061 0) (-0.0882468715131 0.25143607556 0) (-0.0958293326067 0.3385318915 0) (-0.0842003662869 0.406226451159 0) (-0.0660200900498 0.425745094582 0) (-0.0553666531624 0.438363845645 0) (-0.0433854346427 0.447746710694 0) (-0.0345657672685 0.455751139861 0) (-0.0261470855318 0.462374177597 0) (-0.0172133547796 0.4673578366 0) (-0.00835713363646 0.470636059182 0) (0.000373219302068 0.473149205701 0) (0.00935538776597 0.474790682926 0) (0.0180040833267 0.475384065847 0) (0.0263839019969 0.474878134814 0) (0.0344629924697 0.473227575992 0) (0.0421855799052 0.470541336872 0) (0.0498181614539 0.466877128546 0) (0.0572769284978 0.461142206106 0) (0.0648047605644 0.453531104316 0) (0.0748797902913 0.444068601854 0) (0.0834081913252 0.431051837471 0) (0.09814430929 0.411667332733 0) (0.107082231854 0.348513080824 0) (0.0978258380542 0.265540438686 0) (0.0704920260534 0.17682805448 0) (0.0250017093555 0.0892231139208 0) (-0.0206487140084 0.01349399166 0) (-0.0315427686759 -0.023722509768 0) (-0.0501712233852 -0.0419159980294 0) (-0.0263160100945 -0.0219855086476 0) (-0.0215003914825 -0.0168497942219 0) (-0.0103814235581 -0.0102982096472 0) (-0.00877233699077 -0.00973345052064 0) (-0.007192557543 -0.00984421770877 0) (-0.00568843478114 -0.00981462888861 0) (-0.004073011865 -0.0094366806508 0) (-0.0027484736606 -0.00848128118305 0) (-0.00181135463696 -0.00683540499853 0) (-0.00144606831985 -0.00657099922778 0) (-0.00122649043526 -0.00777547687191 0) (-0.000885700288293 -0.0111627450277 0) (-0.000107478440213 -0.00539637058632 0) (0.000345103230109 -0.0025769944863 0) (0.00102395392431 -0.00384492789655 0) (0.00190684667998 -0.00490169552183 0) (0.0012634217081 -0.00152841159211 0) (0.00203457106154 -0.00156814145863 0) (0.00280376366608 -0.00184734994096 0) (0.00373519534197 -0.00204983754806 0) (0.00435213969527 -0.00194833515396 4.76737408795e-29) (0.0048963644734 -0.00184750677684 -4.71176601902e-29) (0.00521323727998 -0.00184474192408 0) (0.00530099293249 -0.00194888452219 0) (0.00524236028955 -0.00211522461125 0) (0.00507830139918 -0.00219170146294 0) (0.00491064021779 -0.00212727113786 0) (0.00472434023496 -0.00197705616124 0) (0.00509409607314 -0.00204257852865 0) (0.00544210188533 -0.00215785150133 0) (0.0059607083292 -0.00243223661736 0) (0.00662005577594 -0.00277973894962 0) (0.0071532761682 -0.00285728833505 0) (0.00739985696427 -0.00267618729099 0) (0.00723262799628 -0.00247843304822 0) (0.00748602331698 -0.00235319576964 0) (0.00765928706401 -0.00231830265389 0) (0.00811532435174 -0.00231389837298 0) (0.00809480514623 -0.00258498255651 0) (0.00840521930077 -0.00371134404013 0) (0.00920596413921 -0.0044153702997 0) (0.00956709834503 -0.00450776326818 0) (0.0140776400998 -0.00617098673174 0) (0.0154895219031 -0.00722372188046 0) (0.0274911625985 -0.0130259079358 0) (0.0336345416842 -0.0164288428546 0) (0.0328321060801 -0.0180412872282 0) (0.0526957677098 -0.0326833184103 0) (0.0916655790848 -0.0608724727403 0) (0.0332694181547 0.0209692597282 0) (-0.0322209556419 0.122466762437 0) (-0.0736502275918 0.229572658893 0) (-0.0921729004311 0.338043319199 0) (-0.0834620067916 0.423963156843 0) (-0.0652917490221 0.442279976218 0) (-0.0560639761621 0.453774954125 0) (-0.0439385030457 0.462363608931 0) (-0.0352302522104 0.46950524456 0) (-0.026752999594 0.475188226338 0) (-0.0177120952075 0.479246787296 0) (-0.00884043374611 0.481644695824 0) (-0.000305173206521 0.483705761484 0) (0.00828885913332 0.485130072196 0) (0.0166095685965 0.48572843462 0) (0.0247645806196 0.485481733179 0) (0.0327638093781 0.484360952884 0) (0.0405665725235 0.482361926308 0) (0.0484005074408 0.479650616657 0) (0.056073791046 0.474941081132 0) (0.0637632735409 0.468357272612 0) (0.0743934057149 0.459863005175 0) (0.0820407142833 0.448006919027 0) (0.0971626416789 0.429711656374 0) (0.104129864663 0.350038053863 0) (0.0861577540939 0.248523333057 0) (0.0446454694979 0.141716042151 0) (-0.0187478332432 0.0374111423416 0) (-0.0340245335752 -0.0215926042508 0) (-0.0479267837739 -0.0378894696285 0) (-0.0321148586994 -0.0261258916178 0) (-0.0180255979483 -0.0136689564203 0) (-0.0128282523328 -0.00926758997247 0) (-0.00931789142449 -0.00840735294458 0) (-0.00848404407249 -0.0087902949533 0) (-0.00708116249046 -0.00894334630212 2.46678802105e-30) (-0.00571597312349 -0.00876624824685 0) (-0.00410180177853 -0.00782682661108 0) (-0.00282747134492 -0.00694330125928 0) (-0.00201519624529 -0.00639325623549 0) (-0.00174465412613 -0.00688998469223 0) (-0.00167850372751 -0.00813766854305 0) (-0.00109114739326 -0.0100141534268 0) (-6.84575700365e-05 -0.0050682644033 0) (0.000139272185329 -0.00172568303004 0) (0.000718626109158 -0.00300881511376 0) (0.00184658157131 -0.00422819911135 5.52550382867e-29) (0.00108380533946 -0.0013391793613 0) (0.0015049420749 -0.0011096214288 0) (0.00289788483433 -0.00161069523032 0) (0.00359916454827 -0.00168096648736 0) (0.00382305328701 -0.00162761817201 0) (0.00376186689383 -0.00162098093731 0) (0.00354390612321 -0.00165817778966 0) (0.00327090586132 -0.0016272569439 0) (0.00321858591893 -0.00165729115334 0) (0.00357184005786 -0.00185434394127 0) (0.00392556044687 -0.00198648908773 0) (0.00425571244198 -0.002019784623 0) (0.00454405015275 -0.00200781313636 0) (0.00483746918395 -0.00206420901301 0) (0.0051897260128 -0.00220762639626 0) (0.00561415318712 -0.00236589679323 0) (0.00606264515243 -0.00247323697851 0) (0.00650998219446 -0.00259595898064 0) (0.00693101300091 -0.00271792203856 0) (0.00716622036965 -0.00273114300561 0) (0.00751203838784 -0.00273922604295 0) (0.00702754344461 -0.00242419409201 0) (0.00768026850923 -0.00279431029824 0) (0.00742813802756 -0.00323202945243 0) (0.0083350550129 -0.00411373309029 0) (0.00947971620956 -0.00472331105513 0) (0.0108898991706 -0.0050805663797 0) (0.010951701453 -0.00427486367301 0) (0.0134004358932 -0.0057255604762 0) (0.0219699035008 -0.00992141607262 0) (0.0238651595215 -0.010767503629 0) (0.0356394322668 -0.0201200222835 0) (0.0570963900393 -0.040527878372 0) (0.0862989277847 -0.058317710782 0) (0.00684034275539 0.0622146844685 0) (-0.0555541727233 0.191958107991 0) (-0.0874362415974 0.328815725881 0) (-0.0827835891042 0.439170341929 0) (-0.0644843463868 0.455982051474 0) (-0.0564009940763 0.466148817075 0) (-0.0435627407368 0.473844346996 0) (-0.0344852937023 0.479946600098 0) (-0.0257225344119 0.484545861402 0) (-0.0166061919557 0.487655229425 0) (-0.00795791042245 0.489257331088 0) (2.34338872746e-05 0.490894219627 0) (0.00775913329264 0.492071480152 0) (0.015358348311 0.492626300389 0) (0.0229124466745 0.492581980124 0) (0.0304749425846 0.491915770642 0) (0.0381035180447 0.490534094832 0) (0.0460231512691 0.488710617878 0) (0.0539938643961 0.485040438625 0) (0.0622004389228 0.479559813669 0) (0.073864744235 0.472095600397 0) (0.0808572311793 0.461659119899 0) (0.0963959882177 0.444862120719 0) (0.100558377636 0.343347015996 -1.38730887672e-30) (0.0718666600521 0.218646994377 0) (0.0116129175934 0.0889434267894 0) (-0.070417574123 -0.0404298053093 0) (-0.0511994563474 -0.0392231126719 0) (-0.0345839720368 -0.0247312041952 0) (-0.0196213318483 -0.0129703951991 0) (-0.0122234736301 -0.00717294845627 0) (-0.0111692262677 -0.00782067797857 0) (-0.00948419121035 -0.00772974142332 0) (-0.00836839381531 -0.00792970204086 0) (-0.00698842549282 -0.00779846258004 -2.30192401132e-30) (-0.00547978327854 -0.00729577089933 0) (-0.0041267304262 -0.00671098004559 0) (-0.00352720048237 -0.00724881448031 -2.90645047926e-30) (-0.00274420883132 -0.00706001310598 0) (-0.00234249259237 -0.00718796562441 0) (-0.00219389358219 -0.00811571843011 0) (-0.00119785257423 -0.00833926013958 0) (-7.40722331831e-05 -0.00498496205079 0) (5.60789534421e-05 -0.00148996251932 0) (0.000408730691086 -0.00232659856972 0) (0.00147365458147 -0.00347217847221 -4.91479846546e-29) (0.00159761185212 -0.00219369384511 0) (0.00222218414891 -0.0017433467501 0) (0.00263288978744 -0.00148032620857 0) (0.00263069294048 -0.00139888257947 0) (0.00250342565122 -0.00135490525324 0) (0.00231808245895 -0.00126981569782 0) (0.00257304978852 -0.00142687636535 0) (0.00283825265283 -0.00157986964821 -1.84947759322e-29) (0.00309126764916 -0.00166849171161 0) (0.0033373964726 -0.00171236714658 0) (0.00358270505365 -0.0017352795931 0) (0.00381157652824 -0.00173217915784 0) (0.00401886177984 -0.0017469921102 0) (0.00422929656901 -0.00180424474763 0) (0.00448510178852 -0.00191879387121 0) (0.00478182486406 -0.00204994463476 0) (0.00511552127142 -0.00216689920932 0) (0.00545255715645 -0.00228182365701 0) (0.00578175403721 -0.00239564671027 0) (0.00603022643785 -0.00247119666874 0) (0.00652426131356 -0.00261310723814 0) (0.00688622355212 -0.00267576264222 0) (0.0071944062143 -0.00285771655412 0) (0.00762714332319 -0.00327520397458 0) (0.00836882306974 -0.00377866073045 0) (0.00924062064671 -0.00427981514289 -5.3337433268e-30) (0.00993869206737 -0.00464049663657 0) (0.0110443455772 -0.00468415080168 0) (0.0118853737777 -0.00530296026582 0) (0.0135973201823 -0.00619433407175 0) (0.0150289301845 -0.00586760302037 0) (0.0195426465226 -0.00822524383493 0) (0.0260452291954 -0.0160031226502 0) (0.0556662872218 -0.0459222349211 0) (0.0530185763812 -0.0207639921649 0) (-0.0317735120753 0.134754452937 0) (-0.0815962426177 0.308122697144 0) (-0.0814140481625 0.450863838108 0) (-0.0627728452349 0.465509815386 0) (-0.0554561572898 0.473846652382 0) (-0.0415426955882 0.480508077876 0) (-0.0318286629001 0.485564957758 0) (-0.0228265244685 0.48921875856 0) (-0.0139167322796 0.491675344339 0) (-0.00585655508795 0.492849652159 0) (0.00120640330039 0.494280094679 0) (0.00774898172154 0.495269641933 0) (0.0142639114192 0.495716180959 0) (0.0208631320584 0.495715202176 0) (0.0276150206619 0.495250383491 0) (0.034731769063 0.494165008048 0) (0.0424487746774 0.492871523556 0) (0.0505722002014 0.489966253222 0) (0.0594509563344 0.485452569745 0) (0.0723932345356 0.479029620913 0) (0.078966987415 0.470424331184 0) (0.0949237760489 0.455735055495 0) (0.095987569193 0.325225878532 1.45930473916e-30) (0.0540846779895 0.171327591766 0) (-0.0305985106446 0.0114786303486 0) (-0.0520940541535 -0.0427165831545 0) (-0.0236505753842 -0.0161694206196 0) (-0.0169671470865 -0.00964366504168 0) (-0.0119710271943 -0.00649603168382 0) (-0.0113281955438 -0.00618024606832 0) (-0.0105219283519 -0.0067805980492 0) (-0.00915921639744 -0.00662215852183 0) (-0.00807228927272 -0.00663695528929 0) (-0.00679631008136 -0.00655289622668 0) (-0.00559520004501 -0.00643730163429 0) (-0.0045643859813 -0.00615744548518 0) (-0.00371046832494 -0.00591189818362 2.56645282516e-30) (-0.00288519414277 -0.00557103928234 0) (-0.00232366326231 -0.00590955611682 0) (-0.00234241224491 -0.00776527220054 0) (-0.00119051714823 -0.00648532093663 0) (-0.000192918983055 -0.0047907344034 0) (2.44361137637e-05 -0.00156229536741 0) (0.000265438359711 -0.00195235199786 0) (0.000995287609605 -0.002705465402 4.42084226173e-29) (0.00136737160822 -0.0021572138999 0) (0.00145663615677 -0.00137559327267 0) (0.00158737095308 -0.00108908420422 0) (0.00168725935134 -0.00104225120101 0) (0.00198035497382 -0.00117401561088 0) (0.00223109705798 -0.00126516670249 0) (0.00246463208585 -0.00131365291409 0) (0.00269037887397 -0.00136220988475 1.71350610785e-29) (0.00289880251917 -0.00140711256018 0) (0.0030831047519 -0.00145312057069 0) (0.00324746102141 -0.0014909506075 0) (0.00339401586432 -0.00152350718375 0) (0.00352920436749 -0.00156103632682 0) (0.00368256123749 -0.00159550472456 0) (0.00389421890819 -0.0016531618749 0) (0.00427166066354 -0.00179089701992 0) (0.00465351532165 -0.00192761337777 0) (0.00505552258887 -0.00206359501185 7.81169186605e-29) (0.00548188322302 -0.0021929121711 -7.61862629257e-29) (0.00592068173191 -0.00227118587937 0) (0.00636067983328 -0.00231690657459 -8.45258413307e-30) (0.00678635499061 -0.00239943884217 0) (0.00723565122642 -0.00264387163093 0) (0.00774640745716 -0.00294492965968 0) (0.00840483836317 -0.00326352497633 0) (0.00908119485996 -0.00361885768084 4.92288110624e-30) (0.00995117862458 -0.00393768748066 0) (0.0107593211617 -0.00409637716313 0) (0.0115168016636 -0.00459730558055 0) (0.0122374351798 -0.00518289816624 0) (0.0146379904622 -0.00572025616398 0) (0.0156519988266 -0.00668889679897 0) (0.0164330073503 -0.00720595384346 0) (0.0207077557983 -0.0140347687964 0) (0.0431323873965 -0.0400035205824 0) (0.000997183481941 0.0576314151518 0) (-0.0737890585014 0.274449600928 0) (-0.0778115734052 0.459157758987 0) (-0.058820615708 0.470600978711 0) (-0.0522185012635 0.476473403326 0) (-0.037480449516 0.482076272106 0) (-0.0272998708133 0.48634386248 0) (-0.0184571749847 0.489455466901 0) (-0.0102676326362 0.49178124967 0) (-0.00317348554988 0.493056912207 0) (0.00279162268391 0.494592480668 0) (0.00804106041863 0.495496675908 0) (0.0132856142484 0.495787451262 0) (0.0187029287301 0.495666763399 0) (0.0243842125547 0.495100726674 0) (0.0307021117161 0.493863650391 0) (0.0378239315152 0.492527642224 0) (0.0456870234922 0.489863723146 0) (0.0550129279841 0.485952216506 0) (0.0689155085891 0.480492396503 0) (0.0750086928385 0.474247650418 0) (0.0911711466272 0.462573532437 0) (0.0894289046689 0.294110441476 0) (0.0290913465204 0.105394037034 0) (-0.0304728474912 -0.0295078140729 0) (-0.0181606018308 -0.0141626007055 0) (-0.0138612656805 -0.00788509861248 0) (-0.0132407558347 -0.00758782167564 0) (-0.0112110909172 -0.00622995029712 5.92661894192e-32) (-0.0109532353432 -0.00565760617637 0) (-0.0102185741205 -0.0056240954113 0) (-0.00918193383207 -0.00555199477005 0) (-0.00817498731544 -0.00551983019014 0) (-0.00718291794605 -0.00556020514034 0) (-0.00612465266045 -0.00556253524427 0) (-0.00508134467637 -0.00537365969488 0) (-0.00433395771924 -0.00532351725259 0) (-0.00351488522044 -0.00518752116022 0) (-0.0025346430051 -0.00509573151406 0) (-0.00257962130393 -0.00762158000558 0) (-0.00127815266543 -0.00523145397589 0) (-0.000500594401632 -0.00435962626359 0) (2.69991563942e-05 -0.00164167665804 0) (0.000233457029998 -0.00156911075967 0) (0.000793329980634 -0.0021364647042 -4.19885756845e-29) (0.00126674550668 -0.00196946543323 0) (0.00110669776681 -0.00102793054091 0) (0.0013698787831 -0.000939659778956 0) (0.00165107575901 -0.000967644821318 0) (0.00188023642274 -0.000984868545307 0) (0.00210703844367 -0.00100894819916 0) (0.00231993289276 -0.00105260146838 0) (0.00251710485218 -0.00111092804355 0) (0.00269238935681 -0.0011772116501 0) (0.00284342144151 -0.00124592029234 0) (0.00297799994361 -0.00130950753197 0) (0.00308552291633 -0.00134831655756 0) (0.00324673416098 -0.00137861973022 0) (0.00357029974011 -0.00143328423688 0) (0.00392992311243 -0.00149634703868 -8.30869204071e-29) (0.00430382088305 -0.00160320456251 8.1731881502e-29) (0.00467342767673 -0.0017251154888 0) (0.00504435830568 -0.00183223012174 0) (0.00541744460755 -0.00190764214468 -7.19804613889e-29) (0.00581593523609 -0.00191165872049 6.95835265943e-29) (0.00626849550507 -0.00189532284165 8.15107016765e-30) (0.00676646437923 -0.00195815302946 0) (0.00730498781704 -0.00210126945103 0) (0.00795416506711 -0.00224777185479 0) (0.00859451824701 -0.00234970603995 0) (0.00949744667053 -0.00264621739408 0) (0.0103270059929 -0.0030278303716 0) (0.0111241099963 -0.00335335399869 0) (0.0117595862823 -0.0036343331189 0) (0.0124977385641 -0.00373487020233 0) (0.0134995357094 -0.00401347281002 0) (0.0142850786567 -0.00486596403891 0) (0.0168549068517 -0.00649296409767 0) (0.0170388373066 -0.00818657619633 0) (0.0177797298211 -0.0129170382613 0) (0.0359627224692 -0.00475968163879 0) (-0.0597809073427 0.228066586009 0) (-0.0712179205293 0.465911299361 0) (-0.0519445586691 0.473343007674 0) (-0.0466846416751 0.476289149357 4.08145930758e-32) (-0.0322846908261 0.48087214314 0) (-0.0222882091348 0.484646731968 0) (-0.0141772222807 0.487575362964 0) (-0.0071452815717 0.49013770006 0) (-0.00117259008841 0.491835599498 0) (0.00381219441952 0.493625279096 0) (0.00801162455026 0.494497704513 0) (0.0121422139884 0.494637182096 0) (0.0164560469804 0.494350273314 0) (0.0211241737224 0.493542284491 0) (0.0265901270216 0.491893769798 0) (0.0328455895274 0.490111209485 0) (0.039976256886 0.487263412043 0) (0.0491342097588 0.483614796259 0) (0.0628827686735 0.479076599407 0) (0.0678726398918 0.475700919035 0) (0.0841249425503 0.467956266642 0) (0.0774847939375 0.251039467214 0) (-0.00231632266939 0.0429534233287 0) (-0.0173957044946 -0.0154295897444 0) (-0.0139383342249 -0.00806240319596 0) (-0.0128641445137 -0.00593310225575 0) (-0.012255973447 -0.00577257374147 0) (-0.0115502270821 -0.00504907829083 -5.58562751517e-32) (-0.0108810050269 -0.00448892658873 0) (-0.0102873052501 -0.00430090116875 5.40483373216e-31) (-0.00945181375178 -0.00419449616949 0) (-0.00843594739746 -0.0041146142607 0) (-0.00729494148762 -0.00408390147357 0) (-0.00648163376857 -0.00437136787698 0) (-0.0055106261689 -0.00449505090477 0) (-0.00492086465951 -0.00469400466909 0) (-0.00394144769724 -0.00451105195492 0) (-0.00284715451996 -0.00457042364763 0) (-0.00267726563624 -0.00635714715326 0) (-0.00165386292902 -0.00509658931254 0) (-0.000668744503472 -0.0040900543908 0) (8.98132774442e-05 -0.00132216489377 0) (0.000211229317675 -0.00099775229963 0) (0.000628303450105 -0.00153492995072 3.97572179587e-29) (0.00129353634143 -0.00172487671472 0) (0.000983401373121 -0.000788699179185 0) (0.00130362513507 -0.000731773615223 0) (0.00153641037313 -0.000704962102315 0) (0.00174761622333 -0.000718695284781 0) (0.00195327905389 -0.0007534514974 0) (0.00215185207071 -0.000808681100784 0) (0.00234251449177 -0.000879937694063 0) (0.00252347079696 -0.000964609301741 0) (0.00269654748583 -0.00105871703273 0) (0.00283991728584 -0.00113682006118 0) (0.00299971129294 -0.00118993130867 0) (0.00324767906689 -0.00121190195196 0) (0.00355994474595 -0.00117828075131 0) (0.00394835648174 -0.00121099902233 0) (0.00432569162219 -0.00133882692945 0) (0.00466509114712 -0.00144291821476 0) (0.00501509683752 -0.00153011168681 0) (0.00533001124953 -0.00160086364363 0) (0.00566161029066 -0.00151646806252 0) (0.00614595764078 -0.00132772205761 0) (0.00675589773087 -0.00131232739726 0) (0.00741110007552 -0.00138448818432 0) (0.00800432045016 -0.00133753903813 0) (0.00864813405383 -0.00112035998759 0) (0.00979165956302 -0.001579904249 0) (0.0106924909713 -0.00221469387422 0) (0.0114114603686 -0.00240088138835 0) (0.0119337594257 -0.00252271226368 0) (0.012698321168 -0.0025791957455 0) (0.0139132974121 -0.00285294829001 0) (0.0150255806391 -0.00301880649236 0) (0.0161146375832 -0.00334700876095 0) (0.0169004134008 -0.00376062966209 -7.72105919059e-31) (0.0181054645316 -0.00598022201392 0) (0.027763239095 -0.0153686169607 0) (-0.034634747721 0.170754042801 0) (-0.060861448159 0.474321334802 0) (-0.0420390279606 0.47792510384 0) (-0.0387955687492 0.47796431752 -4.09527781634e-32) (-0.026205478117 0.481406655751 0) (-0.017155182708 0.484651224478 0) (-0.0102823987684 0.487337580169 0) (-0.00472473501555 0.489949257422 0) (7.62415711409e-05 0.491806555042 0) (0.00424289545226 0.493625302596 0) (0.00762006513468 0.49440053754 0) (0.0107938976852 0.494448162083 0) (0.0141023844662 0.494112935542 0) (0.0178669364537 0.493216123434 0) (0.0224924500507 0.491376908164 0) (0.0276788885917 0.489366359091 0) (0.0336163673879 0.486462510973 0) (0.0417930993133 0.483138751308 0) (0.0538578335297 0.479673116162 0) (0.0569804022301 0.47922447118 0) (0.0726570366883 0.475298261201 0) (0.0544979780446 0.196675404912 0) (-0.0282097293155 -0.0170991683855 0) (-0.0149293583632 -0.00500714383347 0) (-0.0155971643819 -0.00205926081471 0) (-0.0142637301948 -0.00241641192672 0) (-0.0127012320367 -0.00413254697374 0) (-0.0120133048309 -0.00435524259071 0) (-0.0112546238393 -0.00335298179659 0) (-0.0102822868298 -0.00295675927591 -5.03034737273e-31) (-0.00942055314961 -0.00292380334583 0) (-0.00851230709356 -0.00283451490526 0) (-0.00727472157349 -0.00258293853613 1.35902969302e-30) (-0.00674564626379 -0.0030479684508 0) (-0.00616941215404 -0.00348796793115 0) (-0.00537897499253 -0.00366701529786 0) (-0.00460274453769 -0.00401165166976 0) (-0.00345385882963 -0.00462526821472 0) (-0.00298903143817 -0.0062033969997 0) (-0.00123306082576 -0.00415522140911 0) (-0.000383968898071 -0.00320812120708 0) (0.000249799571121 -0.00139449090423 0) (0.000563797594084 -0.00116706476893 0) (0.000839892317525 -0.00112417936013 -4.33449490606e-29) (0.00102442161599 -0.000994909358498 0) (0.000885590884528 -0.00057496202901 0) (0.00113084958566 -0.000469710029412 0) (0.00136295007958 -0.000437775173115 0) (0.00156605647068 -0.000469727700179 0) (0.00175095733951 -0.000511158458648 0) (0.00193694491228 -0.000562134538201 0) (0.00213198083715 -0.000622418843192 0) (0.00234667460928 -0.000702691095004 0) (0.00255794827848 -0.000797925220325 0) (0.0027960060285 -0.000906930456791 0) (0.00299557940505 -0.000984239037684 0) (0.00318793038007 -0.000976045243496 0) (0.00350397098967 -0.000818730082786 0) (0.00397918807565 -0.000772939155458 0) (0.00436826758442 -0.0010059181809 0) (0.00468837267449 -0.00110726102664 0) (0.00505118157944 -0.0011826392772 0) (0.00529956346016 -0.00130726326341 0) (0.00544947181291 -0.000915157697726 0) (0.00607603523059 -0.000467531865912 0) (0.00709629334422 -0.000495157427726 0) (0.00797888715924 -0.000685912318186 0) (0.008687470834 -0.000622782319357 0) (0.00972889631595 -0.000261457786708 0) (0.00981863304425 -3.92870736769e-05 0) (0.0110882050845 -0.000174457355113 0) (0.0113075946712 -0.00046084975458 0) (0.0120583423407 -0.000572637443698 0) (0.0132416010593 -0.000714741320011 0) (0.0147020235076 -0.00098279909952 0) (0.0157010305239 -0.00121551563599 0) (0.0161924088394 -0.00129485488957 0) (0.017260879373 -0.00157253399134 7.74837248565e-31) (0.0185099613763 -0.00234886876902 0) (0.0182612908381 -0.00490418787108 0) (-0.00735971145722 0.114649190232 0) (-0.0465995300917 0.485935993938 0) (-0.0296107373024 0.487092359795 0) (-0.0284832982598 0.484924971492 0) (-0.0189962892983 0.486942938006 0) (-0.0116706518615 0.489267284047 0) (-0.00644885964826 0.491274419439 0) (-0.00253757392787 0.493254254566 0) (0.00099792804077 0.494473816175 0) (0.00427576724814 0.495815739253 0) (0.00684480306247 0.496367965006 0) (0.00906473402178 0.496388539854 0) (0.0113662147081 0.496167920792 0) (0.014209182035 0.49548648129 0) (0.0178618641564 0.49406171989 0) (0.021787200987 0.492664460178 0) (0.0262078869198 0.490407365485 0) (0.0326493050915 0.487905787269 0) (0.0417046436109 0.48580962467 0) (0.042845140174 0.487611699447 0) (0.0573705849515 0.48626840638 0) (0.0254965447719 0.140902742454 0) (-0.0160031154354 -0.00464716176133 0) (-0.0167343158217 -0.00162082687575 0) (-0.0153099577466 -0.000770204459759 0) (-0.0125059629096 -0.000414708690222 0) (-0.0129424896698 -0.000692525844991 0) (-0.0124252330547 -0.000785094528661 0) (-0.0121359902869 -0.000528876825837 0) (-0.010569499919 -0.000337707945018 0) (-0.00991148679158 -0.000242835042891 0) (-0.0087036587325 -0.000762266784229 0) (-0.00817287101173 -0.0018538261624 -1.48558551969e-30) (-0.00757895920552 -0.00261524711683 0) (-0.00679462939851 -0.002810675118 0) (-0.00579172806822 -0.00304175405935 0) (-0.00451963923549 -0.0032331554536 0) (-0.00312525303596 -0.00305785020125 0) (-0.00169474622226 -0.0029589847569 0) (-0.000566142469599 -0.0024571240217 0) (-0.000202250794322 -0.00266736518238 0) (0.000319294816304 -0.000864093732984 0) (0.000924559913379 -0.000727728404782 0) (0.000948060608564 -0.000573472709151 -3.3520620081e-29) (0.00159774097945 -0.000862954863937 0) (0.000796355958447 -0.000298848999844 0) (0.000961818581773 -0.000185510157795 0) (0.00120524186085 -0.000169033286448 0) (0.00142040856107 -0.000236321065566 0) (0.00158746216182 -0.000264666183915 0) (0.00181097302487 -0.00029367226309 0) (0.00204977454155 -0.000332317006186 0) (0.0023069009752 -0.000398531224975 0) (0.00256508215251 -0.000500379809541 0) (0.00279097174644 -0.00063727260088 0) (0.00292155096146 -0.000773350724306 0) (0.00295099763017 -0.000725613082928 0) (0.00315472970506 -0.000250780967437 0) (0.00388567761189 -0.000378227243279 0) (0.00457401417569 -0.000667701440589 0) (0.0049219075599 -0.000706309267123 0) (0.00548298668721 -0.000642447704005 0) (0.00605327466504 -0.000806178900352 0) (0.00921738117645 -0.000904113713742 0) (0.00960448538404 -0.000280301271191 0) (0.00953560180548 3.29298692766e-05 0) (0.0106160368165 -0.000256819093171 0) (0.0115293049396 -0.000356073092119 0) (0.0121645643486 -9.42376507147e-05 0) (0.0116929295983 0.000886087523059 0) (0.0108516245557 0.00123133584435 0) (0.0112311467503 0.00104520047964 0) (0.0115730054977 0.00118805388832 0) (0.0119221959001 0.00105800165239 0) (0.0126748209301 0.000474482890506 0) (0.0135427717922 7.00161442438e-05 0) (0.0147102674491 -0.00069510718545 0) (0.0161263021778 -0.00182866371005 0) (0.0191683616886 -0.00277092117871 0) (0.0205842156879 -0.00421250730082 0) (0.00446390705717 0.039934040722 0) (-0.0303689481298 0.495379949008 0) (-0.0164111758262 0.496840057254 0) (-0.0165453197282 0.494227669025 0) (-0.01086766157 0.494909732369 0) (-0.00596666540538 0.496096791371 0) (-0.00262201552651 0.497149202371 0) (-0.000241331336548 0.498050557444 0) (0.00190051613557 0.498217484578 0) (0.00391228033074 0.498808226081 0) (0.00549096868104 0.499103271214 0) (0.0067166786495 0.499123899146 0) (0.00798669365399 0.49904636958 0) (0.00972693089225 0.498710373077 0) (0.0120039533369 0.498068421222 0) (0.014474383992 0.497773389016 0) (0.0173351469845 0.496672759975 0) (0.0215581386424 0.495342713165 0) (0.0269359942363 0.494555436628 0) (0.0267667140955 0.49685099342 0) (0.0391691819643 0.495223305389 0) (0.00512228671743 0.0542643362322 0) (-0.018458437738 -0.0046969518259 0) (-0.016886195633 -0.00340707750365 0) (-0.0141830514373 -0.00222551550005 0) (-0.0120382128416 -0.000679705751345 0) (-0.0106940645761 0.00110811003871 0) (-0.0106567453075 0.00175362351457 0) (-0.0104009545509 0.00134704491632 0) (-0.00988980322768 0.0018182076297 0) (-0.00878653032745 0.0029625783069 0) (-0.00762022397967 0.00135565555108 0) (-0.00675246782996 -0.00108212081501 0) (-0.00673561154845 -0.00200254652042 0) (-0.00614402725025 -0.00192831581472 0) (-0.0050891032419 -0.0018320204434 0) (-0.00380934252825 -0.00184711163743 0) (-0.00266570762345 -0.00185115405585 0) (-0.00162576984785 -0.00194070803418 0) (-0.000850812298185 -0.00161367479016 0) (-0.00045166955106 -0.00202585722299 0) (0.000488015868586 -0.000356538268916 0) (0.00054528610839 -0.000113278249569 0) (0.00101105700867 -0.00021898961261 3.31784102913e-29) (0.00165241125278 -0.000277934670592 0) (0.00236378673612 -0.000227397862515 0) (0.00229688008303 -5.6945757341e-05 0) (0.00184666236174 -3.46012914381e-05 0) (0.00207268578042 -9.59176256956e-05 0) (0.00215702898924 -0.000100861993109 0) (0.00226510062928 -9.34815996274e-05 0) (0.0023842729144 -9.75061155191e-05 0) (0.00254018448197 -0.000122399492161 0) (0.00279863302557 -0.0001785268949 0) (0.00319939688733 -0.000283113977057 0) (0.00368777638243 -0.000445490411406 0) (0.00443184495079 -0.000543925993038 0) (0.00679519766119 8.17371615687e-05 0) (0.00761297179267 -0.000176143628352 0) (0.00825289413664 -0.000440744076057 0) (0.00847658903468 -0.000414513316544 0) (0.00896061806158 -0.000188082846166 0) (0.0102190525623 -0.00016545283149 0) (0.0110931829182 -0.000468632815775 0) (0.0135032939117 -0.000542198138645 0) (0.0109934161807 -7.92174139268e-06 0) (0.0112055775336 -6.89288332788e-05 0) (0.0115765424054 -0.000155659518267 0) (0.0119666028554 -5.37118087649e-05 0) (0.0112518411087 0.000266455840792 0) (0.0107987302204 0.000431964766856 0) (0.0115812426426 0.000536959013071 0) (0.0119606406085 0.000764423890802 0) (0.0115128286625 0.000684014610045 0) (0.0120376138038 0.000285627369975 0) (0.0128870550084 1.06685003035e-05 0) (0.0138960238664 -0.000466538865466 0) (0.0162808102529 -0.000801900474798 0) (0.0178983891078 -0.000914378214902 0) (0.0197147026371 -0.0017476058165 0) (0.00376625323093 0.0142528806209 0) (-0.0140254670948 0.49894975551 0) (-0.00583983981106 0.500379663658 0) (-0.00532811918015 0.499268680786 0) (-0.00306367083954 0.499336887105 0) (-0.000945411024093 0.499650541176 0) (0.000478703861745 0.499937765521 0) (0.00151794217499 0.500117431942 0) (0.00228295055424 0.499962615927 0) (0.00285390784801 0.500071708299 0) (0.0033429549462 0.500157099535 0) (0.00367712127643 0.500166460156 0) (0.00402655218376 0.500154075798 0) (0.00457421343584 0.500067493846 0) (0.00525810714522 0.499946534836 0) (0.00618881763001 0.500064439856 0) (0.00750371419073 0.499814541672 0) (0.00938220010424 0.499446634402 0) (0.0116102569481 0.499321412778 0) (0.0122329945537 0.50028428702 0) (0.0196536278287 0.498708833803 0) (0.00306373366245 0.0262632093474 0) (-0.0177561069009 -0.0022011468098 0) (-0.016041131241 -0.00131827556014 0) (-0.0134391410925 -0.000858386151681 0) (-0.0116594001599 -0.000412083685988 0) (-0.0104642532771 8.90774934891e-05 0) (-0.010476623203 0.000337439904128 0) (-0.0105735321272 0.000441250951363 0) (-0.0107408888227 0.00093476439255 0) (-0.010032122485 0.00229075438944 0) (-0.0203046845553 0.00320082018663 0) (-0.016114721378 -0.00064957715773 0) (-0.0103608904046 -0.00125235804261 0) (-0.00879609723268 -0.00100245245224 0) (-0.00659134049377 -0.000862177688412 0) (-0.00479799225601 -0.000835986474456 0) (-0.00327552110027 -0.000772332913138 0) (-0.00206760560344 -0.000686398455542 0) (-0.00115304065402 -0.000458892730254 0) (-0.000685923769865 -0.000671471221684 0) ) ; boundaryField { frontAndBack { type empty; } upperWall { type noSlip; } lowerWall { type noSlip; } inlet { type fixedValue; value uniform (0 0.5 0); } outlet { type inletOutlet; inletValue uniform (0 0 0); value nonuniform List<vector> 20 ( (0.305733590272 -0.237830171956 0) (0.443681189265 -0.256480366523 0) (0.531617386799 -0.239894911238 0) (0.586294793258 -0.213386134874 0) (0.620536026726 -0.178071757058 0) (0.643402685387 -0.13520324216 0) (0.658373016069 -0.0874692058153 0) (0.66530514377 -0.0375949644411 0) (0.661717047753 0.0192757867891 0) (0.65081258892 0.0696036464301 0) (0.635621744807 0.117214361817 0) (0.615588839174 0.160136817386 0) (0.590554039725 0.196152447443 0) (0.559065731726 0.223899590932 0) (0.51711938954 0.239925610222 0) (0.454982431077 0.234486692433 0) (0.377626944843 0.207470380024 0) (0.29272377417 0.170204700832 0) (0.19983490966 0.134842074869 0) (0.0856700668879 0.0792447032524 0) ) ; } } // ************************************************************************* //
257c7ec12d791162ae13b8e0388ea9bcded3d689
225b9a9ce807b669f5da0224b374bbf496d0bc70
/数学/gcd-lcm/at_agc010_d.cpp
11c0e3c3845ab1746a95c48d11c3c53339c72a25
[]
no_license
Kewth/OJStudy
2ed55f9802d430fc65647d8931c028b974935c03
153708467133338a19d5537408750b4732d6a976
refs/heads/master
2022-08-15T06:18:48.271942
2022-07-25T02:18:20
2022-07-25T02:18:20
172,679,963
6
2
null
null
null
null
UTF-8
C++
false
false
21
cpp
at_agc010_d.cpp
../../at_agc010_d.cpp
2204294a7ced389de20ae85aa25c591a4dd0855f
cd214f3414c23bda970e3a694654b41c1d05396f
/main.cpp
ae732528a7e548d0c5eb03ae60a4506857df88f6
[]
no_license
alexferrer17/Assignment4
f58a572dd719e54532c60522748f4d03b69ab20d
d0019319303f9bd62149216d58770131fa2ce978
refs/heads/master
2020-05-07T22:05:32.800922
2019-04-12T05:32:00
2019-04-12T05:32:00
180,931,882
0
0
null
null
null
null
UTF-8
C++
false
false
238
cpp
main.cpp
#include "Register.h" using namespace std; int main(int argc, char const *argv[]) { std::cout << "hello from main!" << '\n'; Register programme = Register(); programme.RunSimulation(argv[1]); return 0; }
378c0f23328930dd330f2b3bba6023ec645c19c4
2f646109cb066da0d155e09bb498e0e844d9279d
/include/pages/page-bearing.hpp
7478fd05ea84a98333845e4990e82f03a5147283
[ "MIT" ]
permissive
johnheenan/TTGO-T-Wristband
72b19e7777e0f1d0bc10a0a27aad033472043c33
8744fe47c33dd2e04c5e9c0c030cf1cccf41829a
refs/heads/master
2022-07-04T10:34:33.567829
2020-05-05T16:43:35
2020-05-05T16:43:35
260,613,482
2
0
MIT
2020-05-05T16:43:36
2020-05-02T04:28:36
C++
UTF-8
C++
false
false
160
hpp
page-bearing.hpp
#include <Arduino.h> #include "mpu.hpp" #include "wristband-tft.hpp" #include "wristband-wifi.hpp" void pageBearing(bool initialLoading); void actionBearing();
864d3b63667650f7985023d8851c92bbe6d4ffe4
bd4ca5d1a4a0cc9674f092fdf8d17ca0d8c9be8a
/senior-detection/build/dox/proto/perf_conf.pb.cc
b53719741b6e00d21c10377e82de362d85a0e055
[]
no_license
chouer19/cpp_learning
6b7d8e9fafb9f22cc06943ca061cde381f8134ba
20fffbe89b6d9608084c5060dcc2d0ec0470c5ae
refs/heads/main
2023-07-15T06:55:04.414251
2021-08-16T16:17:08
2021-08-16T16:17:08
387,370,183
0
0
null
null
null
null
UTF-8
C++
false
true
13,446
cc
perf_conf.pb.cc
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: dox/proto/perf_conf.proto #include "dox/proto/perf_conf.pb.h" #include <algorithm> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/extension_set.h> #include <google/protobuf/wire_format_lite.h> #include <google/protobuf/descriptor.h> #include <google/protobuf/generated_message_reflection.h> #include <google/protobuf/reflection_ops.h> #include <google/protobuf/wire_format.h> // @@protoc_insertion_point(includes) #include <google/protobuf/port_def.inc> PROTOBUF_PRAGMA_INIT_SEG namespace senior { namespace dox { namespace proto { constexpr PerfConf::PerfConf( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : enable_(false) , type_(4) {} struct PerfConfDefaultTypeInternal { constexpr PerfConfDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~PerfConfDefaultTypeInternal() {} union { PerfConf _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PerfConfDefaultTypeInternal _PerfConf_default_instance_; } // namespace proto } // namespace dox } // namespace senior static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_dox_2fproto_2fperf_5fconf_2eproto[1]; static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_dox_2fproto_2fperf_5fconf_2eproto[1]; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_dox_2fproto_2fperf_5fconf_2eproto = nullptr; const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_dox_2fproto_2fperf_5fconf_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { PROTOBUF_FIELD_OFFSET(::senior::dox::proto::PerfConf, _has_bits_), PROTOBUF_FIELD_OFFSET(::senior::dox::proto::PerfConf, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::senior::dox::proto::PerfConf, enable_), PROTOBUF_FIELD_OFFSET(::senior::dox::proto::PerfConf, type_), 0, 1, }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, 7, sizeof(::senior::dox::proto::PerfConf)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::senior::dox::proto::_PerfConf_default_instance_), }; const char descriptor_table_protodef_dox_2fproto_2fperf_5fconf_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\031dox/proto/perf_conf.proto\022\020senior.dox." "proto\"P\n\010PerfConf\022\025\n\006enable\030\001 \001(\010:\005false" "\022-\n\004type\030\002 \001(\0162\032.senior.dox.proto.PerfTy" "pe:\003ALL*=\n\010PerfType\022\t\n\005SCHED\020\001\022\r\n\tTRANSP" "ORT\020\002\022\016\n\nDATA_CACHE\020\003\022\007\n\003ALL\020\004" ; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_dox_2fproto_2fperf_5fconf_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_dox_2fproto_2fperf_5fconf_2eproto = { false, false, 190, descriptor_table_protodef_dox_2fproto_2fperf_5fconf_2eproto, "dox/proto/perf_conf.proto", &descriptor_table_dox_2fproto_2fperf_5fconf_2eproto_once, nullptr, 0, 1, schemas, file_default_instances, TableStruct_dox_2fproto_2fperf_5fconf_2eproto::offsets, file_level_metadata_dox_2fproto_2fperf_5fconf_2eproto, file_level_enum_descriptors_dox_2fproto_2fperf_5fconf_2eproto, file_level_service_descriptors_dox_2fproto_2fperf_5fconf_2eproto, }; PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_dox_2fproto_2fperf_5fconf_2eproto_getter() { return &descriptor_table_dox_2fproto_2fperf_5fconf_2eproto; } // Force running AddDescriptors() at dynamic initialization time. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_dox_2fproto_2fperf_5fconf_2eproto(&descriptor_table_dox_2fproto_2fperf_5fconf_2eproto); namespace senior { namespace dox { namespace proto { const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PerfType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_dox_2fproto_2fperf_5fconf_2eproto); return file_level_enum_descriptors_dox_2fproto_2fperf_5fconf_2eproto[0]; } bool PerfType_IsValid(int value) { switch (value) { case 1: case 2: case 3: case 4: return true; default: return false; } } // =================================================================== class PerfConf::_Internal { public: using HasBits = decltype(std::declval<PerfConf>()._has_bits_); static void set_has_enable(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_type(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; PerfConf::PerfConf(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:senior.dox.proto.PerfConf) } PerfConf::PerfConf(const PerfConf& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&enable_, &from.enable_, static_cast<size_t>(reinterpret_cast<char*>(&type_) - reinterpret_cast<char*>(&enable_)) + sizeof(type_)); // @@protoc_insertion_point(copy_constructor:senior.dox.proto.PerfConf) } inline void PerfConf::SharedCtor() { enable_ = false; type_ = 4; } PerfConf::~PerfConf() { // @@protoc_insertion_point(destructor:senior.dox.proto.PerfConf) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void PerfConf::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void PerfConf::ArenaDtor(void* object) { PerfConf* _this = reinterpret_cast< PerfConf* >(object); (void)_this; } void PerfConf::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void PerfConf::SetCachedSize(int size) const { _cached_size_.Set(size); } void PerfConf::Clear() { // @@protoc_insertion_point(message_clear_start:senior.dox.proto.PerfConf) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { enable_ = false; type_ = 4; } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* PerfConf::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // optional bool enable = 1 [default = false]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { _Internal::set_has_enable(&has_bits); enable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .senior.dox.proto.PerfType type = 2 [default = ALL]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::senior::dox::proto::PerfType_IsValid(val))) { _internal_set_type(static_cast<::senior::dox::proto::PerfType>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); } } else goto handle_unusual; continue; default: { handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* PerfConf::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:senior.dox.proto.PerfConf) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional bool enable = 1 [default = false]; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_enable(), target); } // optional .senior.dox.proto.PerfType type = 2 [default = ALL]; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 2, this->_internal_type(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:senior.dox.proto.PerfConf) return target; } size_t PerfConf::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:senior.dox.proto.PerfConf) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional bool enable = 1 [default = false]; if (cached_has_bits & 0x00000001u) { total_size += 1 + 1; } // optional .senior.dox.proto.PerfType type = 2 [default = ALL]; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PerfConf::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, PerfConf::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PerfConf::GetClassData() const { return &_class_data_; } void PerfConf::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from) { static_cast<PerfConf *>(to)->MergeFrom( static_cast<const PerfConf &>(from)); } void PerfConf::MergeFrom(const PerfConf& from) { // @@protoc_insertion_point(class_specific_merge_from_start:senior.dox.proto.PerfConf) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { enable_ = from.enable_; } if (cached_has_bits & 0x00000002u) { type_ = from.type_; } _has_bits_[0] |= cached_has_bits; } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PerfConf::CopyFrom(const PerfConf& from) { // @@protoc_insertion_point(class_specific_copy_from_start:senior.dox.proto.PerfConf) if (&from == this) return; Clear(); MergeFrom(from); } bool PerfConf::IsInitialized() const { return true; } void PerfConf::InternalSwap(PerfConf* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(enable_, other->enable_); swap(type_, other->type_); } ::PROTOBUF_NAMESPACE_ID::Metadata PerfConf::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_dox_2fproto_2fperf_5fconf_2eproto_getter, &descriptor_table_dox_2fproto_2fperf_5fconf_2eproto_once, file_level_metadata_dox_2fproto_2fperf_5fconf_2eproto[0]); } // @@protoc_insertion_point(namespace_scope) } // namespace proto } // namespace dox } // namespace senior PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::senior::dox::proto::PerfConf* Arena::CreateMaybeMessage< ::senior::dox::proto::PerfConf >(Arena* arena) { return Arena::CreateMessageInternal< ::senior::dox::proto::PerfConf >(arena); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include <google/protobuf/port_undef.inc>
b7b62d565bb587a5bdcd9bc42aed98e822a186cf
6d23f9e7a13f7e474a19d7c643cdf8f3f58a0186
/headers/m_iii.h
93aa6001d12645b8dd564c1e1e199dbc90ea06fa
[]
no_license
giodueck/dhips
9872e228f3b471bd986e24751bc2fa446d9d58c1
71fd3aced8145f967f318894c497e4ff0d720b33
refs/heads/main
2023-07-02T03:28:57.965788
2021-07-28T15:28:36
2021-07-28T15:28:36
381,145,750
0
0
null
null
null
null
UTF-8
C++
false
false
1,867
h
m_iii.h
/* Module III Description: Chequear si hay sniffers o si el equipo ha entrado en modo promiscuo. No deben controlar solamente los registros de auditorías, sino también deben controlar que no existan herramientas conocidas de aplicaciones de captura de paquetes en ejecución, como tcpdump, ethereal, wireshark entre otros. Para el módulo de prevención estas herramientas deben ser bloqueadas o eliminadas del sistema, además de todas las consideraciones vistas en clases. */ #ifndef MOD_III_H #define MOD_III_H #include "module.h" #include "defines.h" #include "dhipslib.h" #include "pgsql.h" #include <sys/types.h> #include <dirent.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <vector> #include <limits.h> #include <signal.h> class ModuleIII: public Module { private: class DetectorIII: public Detector { private: class PreventerIII: public Preventer { private: const char *targetName; pid_t target; public: PreventerIII(); void setTarget(pid_t pid); void setTargetName(const char *name); int act(int action = 0); } preventer; struct iface { std::string name; bool promisc; }; std::vector<std::string> ifaces, flgs; std::vector<std::string> sniffers; std::vector<struct iface> knownifaces; public: DetectorIII(); DetectorIII(PreventerIII *preventer); int setup(); int scan(bool setup = false); } detector; public: // Constructor ModuleIII(); void setup(); void run(); void stop(); }; #endif // MOD_III_H
fd9ff15dd7e9fe2a3bd5ea7a976aaeffb1c3b5a2
cf60d96da2fe37311f367ca826d2b86b76ec2a6c
/遥感图像配准系统/CDibt.cpp
94dc83b84ec49f0a397399af66fa04e468a85c14
[ "MIT" ]
permissive
yyywxk/Remote-sensing-image-registration-system
b7e30482d44b6cc05f8db11d5b8cb4082e598685
3032e3ceed7cb959aec9a99d64e00ca7443a5d22
refs/heads/master
2020-04-06T21:30:28.449011
2018-11-17T00:50:14
2018-11-17T00:50:14
157,805,515
0
2
null
null
null
null
GB18030
C++
false
false
7,163
cpp
CDibt.cpp
//dib.cpp #include "StdAfx.h" #include "CDibt.h" #include "windowsx.h" #include "afxadv.h" #include "io.h" #include "errno.h" ////////////////////////////////////////////////////////////////////////////////////// //CDib IMPLEMENT_DYNAMIC(CDibt, CObject) CDibt::CDibt() { m_pBMI = NULL; m_pBits = NULL; m_pPalette = NULL; } CDibt::~CDibt() { Free(); } void CDibt::Free() { if (m_pBits) { GlobalFreePtr(m_pBits); m_pBits = NULL; } if (m_pBMI) { GlobalFreePtr(m_pBMI); m_pBMI = NULL; } if (m_pPalette) { m_pPalette->DeleteObject(); delete m_pPalette; m_pPalette = NULL; } } /////////////////////////////////////////////////////////////////////////////////////////////// BOOL CDibt::Paint(HDC hDC, LPRECT lpDCRect, LPRECT lpDIBRect) const { if (!m_pBMI) return FALSE; HPALETTE hPal = NULL; HPALETTE hOldPal = NULL; if (m_pPalette != NULL) { hPal = (HPALETTE)m_pPalette->m_hObject; hOldPal = ::SelectPalette(hDC, hPal, TRUE); } ::SetStretchBltMode(hDC, COLORONCOLOR); BOOL bSuccess; if ((RECTWIDTH(lpDCRect) == RECTWIDTH(lpDIBRect)) && (RECTHEIGHT(lpDCRect) == RECTHEIGHT(lpDIBRect))) bSuccess = ::SetDIBitsToDevice(hDC, lpDCRect->left, lpDCRect->top, RECTWIDTH(lpDCRect), RECTHEIGHT(lpDCRect), lpDIBRect->left, (int)Height() - lpDIBRect->top - RECTHEIGHT(lpDIBRect), 0, (WORD)Height(), m_pBits, m_pBMI, DIB_RGB_COLORS); else bSuccess = ::StretchDIBits(hDC, lpDCRect->left, lpDCRect->top, RECTWIDTH(lpDCRect), RECTHEIGHT(lpDCRect), lpDIBRect->left, lpDIBRect->top, RECTWIDTH(lpDIBRect), RECTHEIGHT(lpDIBRect), m_pBits, m_pBMI, DIB_RGB_COLORS, SRCCOPY); if (hOldPal != NULL) { ::SelectPalette(hDC, hOldPal, TRUE); } return bSuccess; } //////////////////////////////////////////////////////////////////////////////////////////// BOOL CDibt::CreatePalette() { if (!m_pBMI) return FALSE; WORD wNumColors = NumColors(); if (wNumColors != 0) { HANDLE hLogPal = ::GlobalAlloc(GHND, sizeof(LOGPALETTE) + sizeof(PALETTEENTRY)*wNumColors); if (hLogPal == 0) return FALSE; LPLOGPALETTE lpPal = (LPLOGPALETTE)::GlobalLock((HGLOBAL)hLogPal); lpPal->palVersion = PALVERSION; lpPal->palNumEntries = (WORD)wNumColors; for (int i = 0; i<(int)wNumColors; i++) { lpPal->palPalEntry[i].peRed = m_pBMI->bmiColors[i].rgbRed; lpPal->palPalEntry[i].peGreen = m_pBMI->bmiColors[i].rgbGreen; lpPal->palPalEntry[i].peBlue = m_pBMI->bmiColors[i].rgbBlue; lpPal->palPalEntry[i].peFlags = 0; } if (m_pPalette) { m_pPalette->DeleteObject(); delete m_pPalette; } m_pPalette = new CPalette; BOOL bResult = m_pPalette->CreatePalette(lpPal); ::GlobalUnlock((HGLOBAL)hLogPal); ::GlobalFree((HGLOBAL)hLogPal); return bResult; } return TRUE; } DWORD CDibt::Width() const { if (!m_pBMI) return 0; return m_pBMI->bmiHeader.biWidth; } DWORD CDibt::Height() const { if (!m_pBMI) return 0; return m_pBMI->bmiHeader.biHeight; } WORD CDibt::PaletteSize() const { if (!m_pBMI) return 0; return NumColors() * sizeof(RGBQUAD); } WORD CDibt::NumColors() const { if (!m_pBMI) return 0; WORD wBitCount; DWORD dwClrUsed; dwClrUsed = m_pBMI->bmiHeader.biClrUsed; if (dwClrUsed != 0) return(WORD)dwClrUsed; wBitCount = m_pBMI->bmiHeader.biBitCount; switch (wBitCount) { case 1: return 2; case 4: return 16; case 8: return 256; default: return 0; } } DWORD CDibt::Save(CFile&file) const { BITMAPFILEHEADER bmfHdr; // 位图文件头指针 DWORD dwDIBSize; if (m_pBMI == NULL) { return 0; } //写文件头 //文件类型最初2bits要是‘BM’ bmfHdr.bfType = DIB_HEADER_MARKER; // "BM" //信息头和调色板大小 dwDIBSize = *(LPDWORD)&m_pBMI->bmiHeader + PaletteSize(); //计算图像大小 if ((m_pBMI->bmiHeader.biCompression == BI_RLE8) || (m_pBMI->bmiHeader.biCompression == BI_RLE4)) { //如果是RLE位图,不能计算图像尺寸,直接采用biSizeImage; dwDIBSize += m_pBMI->bmiHeader.biSizeImage; } else { DWORD dwBmBitsSize; //位图数据块大小 //不是RLE位图,大小为Width(DWORD aligned)*Height dwBmBitsSize = WIDTHBYTES((m_pBMI->bmiHeader.biWidth)*((DWORD)m_pBMI->bmiHeader.biBitCount)) *m_pBMI->bmiHeader.biHeight; dwDIBSize += dwBmBitsSize; m_pBMI->bmiHeader.biSizeImage = dwBmBitsSize; } //计算整个文件大小,并且书写图像文件头 bmfHdr.bfSize = dwDIBSize + sizeof(BITMAPFILEHEADER); bmfHdr.bfReserved1 = 0; bmfHdr.bfReserved2 = 0; //计算图像文件头到图像数字的偏移 bmfHdr.bfOffBits = (DWORD)sizeof(BITMAPFILEHEADER) + m_pBMI->bmiHeader.biSize + PaletteSize(); //文件头 file.Write((LPSTR)&bmfHdr, sizeof(BITMAPFILEHEADER)); DWORD dwBytesSaved = sizeof(BITMAPFILEHEADER); //信息头 UINT nCount = sizeof(BITMAPINFO) + (NumColors() - 1) * sizeof(RGBQUAD); dwBytesSaved += nCount; file.Write(m_pBMI, nCount); //数据部分 DWORD dwbytes = m_pBMI->bmiHeader.biBitCount*Width(); //计算每行像素数据 if (dwbytes % 32 == 0) { dwbytes /= 8; } else { dwbytes = dwbytes / 8 + (32 - dwbytes % 32) / 8 + (((32 - dwbytes % 32) % 8>0) ? 1 : 0); } nCount = dwbytes * Height(); dwBytesSaved += nCount; file.Write(m_pBits, nCount); return dwBytesSaved; } DWORD CDibt::Read(CFile&file) { Free(); // BITMAPFILEHEADER bmfHeader; if (file.Read((LPSTR)&bmfHeader, sizeof(BITMAPFILEHEADER)) != sizeof(bmfHeader)) return 0; if (bmfHeader.bfType != DIB_HEADER_MARKER) return 0; DWORD dwReadBytes = sizeof(bmfHeader); m_pBMI = (LPBITMAPINFO)GlobalAllocPtr(GHND, bmfHeader.bfOffBits - sizeof(BITMAPFILEHEADER) + 256 * sizeof(RGBQUAD)); if (m_pBMI == 0) return 0; if (file.Read(m_pBMI, bmfHeader.bfOffBits - sizeof(BITMAPFILEHEADER)) != (UINT) (bmfHeader.bfOffBits - sizeof(BITMAPFILEHEADER))) { GlobalFree(m_pBMI); m_pBMI = NULL; return 0; } dwReadBytes += bmfHeader.bfOffBits - sizeof(BITMAPFILEHEADER); DWORD dwLength = file.GetLength(); m_pBits = (LPBYTE)GlobalAllocPtr(GHND, dwLength - bmfHeader.bfOffBits); if (m_pBits == 0) { GlobalFreePtr(m_pBMI); m_pBMI = NULL; return 0; } if (file.Read(m_pBits, dwLength - bmfHeader.bfOffBits) != (dwLength - bmfHeader.bfOffBits)) { GlobalFreePtr(m_pBMI); m_pBMI = NULL; GlobalFreePtr(m_pBits); m_pBits = NULL; return 0; } dwReadBytes += dwLength - bmfHeader.bfOffBits; CreatePalette(); return dwReadBytes; } #ifdef _DEBUG void CDibt::Dump(CDumpContext& dc) const { CObject::Dump(dc); } #endif HGLOBAL CDibt::CopyToHandle() const { CSharedFile file; try { if (Save(file) == 0) return 0; } catch (CFileException* e) { e->Delete(); return 0; } return file.Detach(); } DWORD CDibt::ReadFromHandle(HGLOBAL hGlobal) { CSharedFile file; file.SetHandle(hGlobal, FALSE); DWORD dwResult = Read(file); file.Detach(); return dwResult; } void CDibt::Serialize(CArchive& ar) { CFile* pFile = ar.GetFile(); ASSERT(pFile != NULL); if (ar.IsStoring()) { Save(*pFile); } else { Read(*pFile); } } void CDibt::SetBMI(LPBITMAPINFO a) { m_pBMI = a; } void CDibt::SetBits(LPBYTE a) { m_pBits = a; }
3572d70431753ede289c04c5fcde1056370fe5b5
d7dff481b013dca2e2622e9e4d39dfd83b29a2ca
/get_image/main.cpp
6313625b8b7f75ef101a2c3af1fa53faea695ff5
[]
no_license
guyii54/gazebo-camemra
fe991f39208ad423fd7ef5c1e28e4eb419c304b7
5fd7015578d47d53075997fbc391155c83c5631b
refs/heads/master
2020-04-27T04:03:16.394106
2019-03-06T00:50:01
2019-03-06T00:50:01
174,042,307
0
0
null
null
null
null
UTF-8
C++
false
false
11,262
cpp
main.cpp
#include <stdio.h> #include <stack> #include <opencv2/opencv.hpp> #include <iostream> #include <fstream> #include <iomanip> //setprecision() #include <libxml/parser.h> //https://mp.weixin.qq.com/s/48jMBVVEqQp3IR6NpUy2QA using namespace cv; using namespace std; #define COLLECT_IMAGES //def:采集图像模式 notdef:标定模式 int main() { // namedWindow("准备",1); // cout << "\n按空格后开始!" << endl; // int ckey_deviation = -1; // while(ckey_deviation == -1) ckey_deviation = waitKey(0); // ckey_deviation = ckey_deviation - ' '; // cout << "按键偏移量" << ckey_deviation << endl; #ifdef COLLECT_IMAGES //采集图像模式 float rt = 1.0/4; float s = 1.0/25; float h; h = s / (2 * rt); cout << "高度:" << h << "m" << endl; return 0; // float rf = 2.805; // float s = 1.0/5; // float R; // float theta3; // float x; // rf /= 100; // R = (1 - rf)/rf; // theta3 = atan(1/R); // x = s*0.5/sin(theta3); // cout << "最远:" << x << "m" << endl << endl; // return 0; /* system("mkdir ./pictures"); //create a file to save pictures // ofstream image_name_file("picture_names.txt"); //create a txt to save images' names xmlDocPtr doc;//定义解析文档指针 xmlNodePtr curNode; //定义结点指针(你需要它为了在各个结点间移动) xmlChar *szKey; //临时字符串变量 char szDocName[] = "camera_tutorial.world"; doc =xmlReadFile(szDocName,"UTF-8",XML_PARSE_RECOVER); //解析文件 //检查解析文档是否成功,如果不成功,libxml将指一个注册的错误并停止。 //一个常见错误是不适当的编码。XML标准文档除了用UTF-8或UTF-16外还可用其它编码保存。 //如果文档是这样,libxml将自动地为你转换到UTF-8。更多关于XML编码信息包含在XML标准中. if (NULL == doc) { //文档打开错误 return -1; } curNode = xmlDocGetRootElement(doc); //确定文档根元素 //*检查确认当前文档中包含内容 if (NULL == curNode) { //空得xml文件 xmlFreeDoc(doc); return -2; } //*在这个例子中,我们需要确认文档是正确的类型。“root”是在这个示例中使用文档的根类型。 if (xmlStrcmp(curNode->name, BAD_CAST "root")) { //分析根元素失败 xmlFreeDoc(doc); return -3; } curNode = curNode->xmlChildrenNode; xmlNodePtr propNodePtr = curNode; while(curNode != NULL) { //取出节点中的内容 if ((!xmlStrcmp(curNode->name, (constxmlChar *)"node2"))) { szKey =xmlNodeGetContent(curNode); cout <<szKey << endl; //得到node2的值并输出 xmlFree(szKey); } //查找带有属性attribute的节点 if (xmlHasProp(curNode,BAD_CAST"b")) { propNodePtr =curNode; } curNode = curNode->next; } //查找属性 xmlAttrPtr attrPtr = propNodePtr->properties; while (attrPtr != NULL) { if (!xmlStrcmp(attrPtr->name, BAD_CAST"b")) { xmlChar* szAttr =xmlGetProp(propNodePtr,BAD_CAST "b"); cout << szAttr<< endl; //找到b的属性并输出 xmlFree(szAttr); } attrPtr = attrPtr->next; } xmlFreeDoc(doc); return 0;*/ // waitKey(0); // Mat frame; // char image_name[100]; // int image_name_count = 1; //using for nameing images // while(1) // { // } return 0; #else //标定模式 ifstream fin("calibdata.txt"); // 标定所用图像文件的路径 ofstream fout("caliberation_result.txt"); // 保存标定结果的文件 int image_count=0; // 图像数量 Size image_size; // 图像的尺寸 Size board_size = Size(6,4); // 标定板角点的尺寸 int CornerNum = board_size.width*board_size.height; //每张图片上总的角点数 vector<Point2f> image_points_buf; // 存储一幅图的角点 vector< vector<Point2f> > image_points_seq; // 存储所有图片的角点 string filename; //保存图像名字 /*测试按键数值 int ch = -1; while(1) { ch = waitKey(0) - ckey_deviation; cout << ch <<endl; }*/ //********************* 获取角点位置 ********************** while (getline(fin,filename)) { Mat imageInput; // 读入彩色图像 imageInput=imread(filename); if (image_count == 0) // 获得图像尺寸 { image_size.width = imageInput.cols; image_size.height =imageInput.rows; cout << "image_size.width = " << image_size.width << endl; cout << "image_size.height = " << image_size.height << endl; } image_count++; cout << "No. image is " << image_count << endl; // 提取角点 if (0 == findChessboardCorners(imageInput,board_size,image_points_buf)) { cout << "can not find chessboard corners!\n"; //找不到角点 exit(1); } else { Mat view_gray;// 获取灰度图 cvtColor(imageInput,view_gray,CV_RGB2GRAY); // 亚像素精确化 find4QuadCornerSubpix(view_gray,image_points_buf,Size(11,11)); //对粗提取的角点进行精确化 image_points_seq.push_back(image_points_buf); //保存亚像素角点 // 在图像上显示角点位置 drawChessboardCorners(view_gray,board_size,image_points_buf,true); //用于在图片中标记角点 imshow("Camera Calibration",view_gray);//显示图片 waitKey(200); } } int total_corner_num = CornerNum * image_count; //********************* 打印角点信息 ********************** for (int ii=0 ; ii < total_corner_num ; ii++) { if (0 == ii%CornerNum)// 是每幅图片的角点个数。此判断语句是为了输出 图片号,便于控制台观看 { cout << "\n\n第" << ii/CornerNum+1 << "图片的数据:"; } if (0 == ii%3) // 此判断语句,格式化输出,便于控制台查看 { cout<<endl; } else { cout.width(6); } //输出所有的角点 cout << "( " ; if(image_points_seq[ii/CornerNum][ii%CornerNum].x < 10) cout << " "; else if(image_points_seq[ii/CornerNum][ii%CornerNum].x < 100) cout << " "; cout << fixed << setprecision(3) << image_points_seq[ii/CornerNum][ii%CornerNum].x ; cout << " , "; if(image_points_seq[ii/CornerNum][ii%CornerNum].y < 10) cout << " "; else if(image_points_seq[ii/CornerNum][ii%CornerNum].y < 100) cout << " "; cout << fixed << setprecision(3) << image_points_seq[ii/CornerNum][ii%CornerNum].y << " )"; } cout << "\n\n角点提取完成!\n" << endl; //********************* 标定参数准备 ********************** cout << "准备标定.." << endl; //棋盘三维信息 Size square_size = Size(4,4); // 世界坐标系下 黑白块宽度 4cm vector< vector<Point3f> > object_points; // 世界坐标系下 角点坐标(人为固定) Mat cameraMatrix=Mat(3,3,CV_32FC1,Scalar::all(0)); // 内参数矩阵 Mat distCoeffs=Mat(1,5,CV_32FC1,Scalar::all(0)); // 畸变系数: k1,k2,p1,p2,k3 vector<Mat> tvecsMat; // 旋转向量 vector<Mat> rvecsMat; // 平移矩阵 //初始化世界坐标系下 角点的位置(人为设定) int i,j,t; for (t=0;t<image_count;t++) { vector<Point3f> tempPointSet; for (i=0;i<board_size.height;i++) { for (j=0;j<board_size.width;j++) { Point3f realPoint; //假设标定板放在世界坐标系中z=0的平面上 realPoint.x = j*square_size.width; realPoint.y = i*square_size.height; realPoint.z = 0; tempPointSet.push_back(realPoint); } } object_points.push_back(tempPointSet); } //********************* 开始标定 ********************** calibrateCamera(object_points,image_points_seq,image_size,cameraMatrix,distCoeffs,rvecsMat,tvecsMat,0); cout << "标定完成!\n" << endl; //********************* 检验标定效果 ********************** cout<<"评价标定结果..\n"; double total_err = 0.0; // 所有图像的平均误差的总和 double err = 0.0; // 每幅图像的平均误差 vector<Point2f> image_points2; // 保存重新计算得到的投影点 cout << "每幅图像的标定误差:\n"; fout << "每幅图像的标定误差:\n"; for (i=0;i<image_count;i++) { vector<Point3f> tempPointSet = object_points[i];//获取一幅图像中的角点位置(世界坐标系) // 将世界坐标系的点投影到图像上(根据已知的内参、旋转、平移) projectPoints(tempPointSet,rvecsMat[i],tvecsMat[i],cameraMatrix,distCoeffs,image_points2); // 计算图像上的角点 与 计算出来的图像上的点 比较 Mat tempImagePointMat = Mat(1,image_points_seq[i].size(),CV_32FC2); Mat image_points2Mat = Mat(1,image_points2.size(), CV_32FC2); for (int j = 0 ; j < image_points_seq[i].size(); j++) { image_points2Mat.at<Vec2f>(0,j) = Vec2f(image_points2[j].x, image_points2[j].y);//计算出来的点 tempImagePointMat.at<Vec2f>(0,j) = Vec2f(image_points_seq[i][j].x, image_points_seq[i][j].y);//图像上的角点 } err = norm(image_points2Mat, tempImagePointMat, NORM_L2);//sqrt((x11-x12)^2 +(y11-y12)^2 + (21-x22)^2 + ...) total_err += err/= CornerNum; cout << "第" << i+1 << "幅图像的平均误差:" << err << "像素" << endl; fout << "第" << i+1 << "幅图像的平均误差:" << err << "像素" << endl; } cout << "总体平均误差:" << total_err/image_count << "像素" << endl; fout << "总体平均误差:" << total_err/image_count << "像素\n" << endl; cout << "评价完成!" << endl; //********************* 保存标定结果 ********************** cout << "\n开始保存定标结果.." << endl; Mat rotation_matrix = Mat(3,3,CV_32FC1, Scalar::all(0)); // 保存每幅图像的旋转矩阵 fout << "相机内参数矩阵:" << endl; fout << cameraMatrix << endl << endl; fout << "畸变系数 k1,k2,p1,p2,k3:\n"; fout << distCoeffs << endl << endl << endl; for (int i=0; i<image_count; i++) { fout << "第" << i+1 << "幅图像" << endl; fout << "平移矩阵:" << endl; fout << tvecsMat[i] << endl; //fout << "旋转向量:" << endl; //fout << rvecsMat[i] << endl; // 将旋转向量转换为相对应的旋转矩阵 Rodrigues(rvecsMat[i],rotation_matrix); fout << "旋转矩阵:" << endl; fout << rotation_matrix << endl << endl; } cout << "完成保存" << endl; fout << endl; return 0; #endif }
3eaa27e4d41b5c236e0ded2cff22afe1aee97476
ce7ecea41ace1f819735ffafd8e9d289723f8dcb
/Week 8/Lab/Lab/three.cpp
cf180eeb5356fc8bd692c0080acce5e68763ff4b
[ "Apache-2.0" ]
permissive
sugamkarki/NAMI-Year-II-Term-I-Software_Engineering
c6d4c439f79af4a1a0997ebcea4e0844eabe10b0
39182816b670dcb75ec322e24b346a4cfeb80be0
refs/heads/master
2023-05-20T01:06:29.413887
2021-06-10T09:34:39
2021-06-10T09:34:39
300,939,490
0
0
null
null
null
null
UTF-8
C++
false
false
2,114
cpp
three.cpp
#include <iostream> using namespace std; struct Inventory { string description; int numberOfParts; }; void Display(Inventory[], int); int addParts(Inventory[], int); int removeParts(Inventory[],int, int); int main() { int size = 10; Inventory bin[size] = {{"BinValue", 10}, {"Bearing", 5}, {"Bushing", 15}, {"Coupling", 21}, {"Flange", 7}, {"Gear", 5}, {"Gear Housing", 5}, {"Vacuum Gripper", 25}, {"Cable", 18}, {"Rod", 12}}; while (true) { Display(bin, size); char ch; cout << "Would you like to change(c) a data or quit(q)" << endl; // getline(ch,1); cin >> ch; if (ch == 'q' || ch == 'Q') { break; } else { // cout<<endl; int indexNumber; char selection; cout << "Which data would you like to change??(Enter the index number)" << endl; cin >> indexNumber; cout << "you have selected " << bin[indexNumber].description << endl; cout << "Would you like to add or deduct? A/D" << endl; cin >> selection; if (selection == 'A') { int numberOfParts; cout << "how many parts would you like to add? " << endl; cin>>numberOfParts; bin[indexNumber].numberOfParts=addParts(bin,indexNumber,numberOfParts); } if (selection == 'D') { } // if() } } return 0; } int addParts(Inventory m[],int i, int n) { int added = m[i].numberOfParts + n; return added; } // return added // int removeParts(Inventory[], int){} void Display(Inventory bin[], int size) { for (int i = 0; i < size; i++) { cout << i << " " << bin[i].description << "\t\t\t||" << bin[i].numberOfParts << endl; } }
3012de2089bf6c23ff0fbe70348b7399efac7ad1
3cb4a38522487cbce3cbd49fc4fcd38bd117c6ac
/KaraokeSongs/Artist.h
ccea7528d730813995fdd6d32c3722c4e7634b70
[]
no_license
rockie1004/FinalCIS164_KaraokeProgram
83624f8301defd41b22815acee325be4b72a64ff
309882d912aea72dd1571fde75a81a15d2a8727c
refs/heads/master
2020-08-27T15:12:37.145216
2019-11-13T17:21:02
2019-11-13T17:21:02
217,418,833
2
1
null
2019-11-13T17:21:04
2019-10-25T00:30:34
C++
UTF-8
C++
false
false
3,030
h
Artist.h
//This is the abstract class Artist.h. This class can be instantiated through either the Band.h file or IndividualArtist.h files. This is the //basic structure shared between the band or the individual artists. //Mysti Freed //4-NOV-2019 //mrfreed@dmacc.edu #pragma once #ifndef ARTIST_H #define ARTIST_H #include <string> #include "Genre.h" #include "CatalogEntry.h" #include "FileManagement.h" #include <map> using namespace std; class Artist : public CatalogEntry { private: //int id; holds the identifier for the artist string alphaName; //holds the artist' name alphabetically string displayName; //holds the name of the artist Genre primaryGenre; //holds the primary genre for the artist public: //default constructor Artist() : CatalogEntry() {} //constructor Artist(string an, string dn, Genre g) : CatalogEntry() { alphaName = an; displayName = dn; primaryGenre = g; } //constructor where there's only an alphabetical name (for example, Prince) Artist(string an, Genre g) : CatalogEntry() { alphaName = an; displayName = alphaName; //sets the alphaName to the displayName primaryGenre = g; } //constructor that allows for setup without a Genre, when it's not known Artist(string an, string dn) : CatalogEntry() { alphaName = an; displayName = dn; //primaryGenre = g; } //constructor where there's only an alphabetical name (for example, Prince) //and no genre selected Artist(string an) : CatalogEntry() { alphaName = an; displayName = alphaName; //sets the alphaName to the displayName } //setters/mutators void setAlphaName(string an); //{ alphaName = an; } void setDisplayName(string dn); //{ displayName = dn; } void setGenre(Genre g); //{ primaryGenre = g; } // //accessors (getters) // string getAlphaName(); /*const*/ //{ return alphaName; } string getDisplayName(); /*const*/ //{ return displayName; } Genre getPrimaryGenre(); /*const*/ //{ return primaryGenre; } virtual string display(); //from CatalogEntry.h virtual string toFile(); //from CatalogEntry.h virtual void fromFile(vector<string>::iterator iter); //from CatalogEntry.h virtual string getKey(); //from CatalogEntry.h virtual void updateKey(); //from CatalogEntry.h }; #endif ARTIST_H //Class Implementation void Artist::setAlphaName(string an) { alphaName = an; }; void Artist::setDisplayName(string dn) { displayName = dn; }; string Artist::getAlphaName() { return alphaName; }; string Artist::getDisplayName() { return displayName; }; Genre Artist::getPrimaryGenre() { return primaryGenre; }; void Artist::updateKey() { cout << "pending functionality stub"; } string Artist::display() { return "Artist: " + displayName; } string Artist::toFile() { return alphaName + FIELD_DELIMITER; //not sure if we're using the same delimiter for all? } void Artist::fromFile(std::vector<string>::iterator iter) { alphaName = *iter; //I think this is all we need here, but lets chat, I want to make sure } string Artist::getKey() { return alphaName; }
44699436b385df0cf63461071c512181b5f1e5a7
541c4f648cee67b937b3a5087d69a467826aff52
/Src/Equation/Centered/CIPCSL2/cipcsl2_ancillary.cpp
3449d989cbdd765e2ceae95ae40b0e88d98ca2e1
[]
no_license
Wentao2017/PSI-Boil-liquid-film
9831382e5d3303a7be54f2216225f113c804c630
8c59435c4bc6c75bb06b17f6d4c899aee0099aa0
refs/heads/master
2023-05-07T05:38:07.261651
2021-05-31T06:28:25
2021-05-31T06:28:25
328,350,633
0
1
null
null
null
null
UTF-8
C++
false
false
799
cpp
cipcsl2_ancillary.cpp
#include "cipcsl2.h" /******************************************************************************/ void CIPCSL2::ancillary() { /***************************************************************************//** * \brief Calculate ancillary vof parameters. *******************************************************************************/ boil::timer.start("cipcsl2 ancillary"); /* wall values extrapolation */ update_at_walls(phi); /* calculate free surface position, no subgrid interfaces near walls! */ heavi->cal_fs_interp(phi,fs,0.0,false); /* normal vector */ distfunc(phi,24); gradphic(dist); /* calculate area density */ heavi->calculate_adens(); /* flag the interface */ interfacial_flagging(phi); boil::timer.stop("cipcsl2 ancillary"); return; }
1fbdc9e2f6f8335b982913c59132a771a7674f43
63c71060f36866bca4ac27304cef6d5755fdc35c
/src/IILUtil/IILSave.cpp
b1c8056e82f4e4242a7af3559d017de10e5076b0
[]
no_license
15831944/barry_dev
bc8441cbfbd4b62fbb42bee3dcb79ff7f5fcaf8a
d4a83421458aa28ca293caa7a5567433e9358596
refs/heads/master
2022-03-24T07:00:26.810732
2015-12-22T07:19:58
2015-12-22T07:19:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,946
cpp
IILSave.cpp
//////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2005 // Packet Engineering, Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification is not permitted unless authorized in writing by a duly // appointed officer of Packet Engineering, Inc. or its derivatives // // Modification History: // Created: 09/06/2013 by Linda Lin //////////////////////////////////////////////////////////////////////////// #include "IILUtil/IILSave.h" #include "Alarm/Alarm.h" #include "DfmUtil/DfmDoc.h" #include "XmlUtil/XmlTag.h" #include "IILUtil/IILDfmDocs.h" #include "SEInterfaces/DocFileMgrObj.h" #include "SingletonClass/SingletonImpl.cpp" OmnSingletonImpl(AosIILSaveSingleton, AosIILSave, AosIILSaveSelf, "AosIILSave"); AosIILSave::AosIILSave() : mLock(OmnNew OmnMutex()), mShowLog(false), mCrtSnapId(0) { mCrtSnapId = 0x80000000; } AosIILSave::~AosIILSave() { } bool AosIILSave::start() { return true; } bool AosIILSave::stop() { return true; } bool AosIILSave::config(const AosXmlTagPtr &config) { return true; } void AosIILSave::addEntryToMapsPriv(const u64 &root_iilid, u64 &snap_id) { mLock->lock(); AosIILDfmDocsPtr dfmdocs = OmnNew AosIILDfmDocs(root_iilid, mShowLog); if (!dfmdocs) { OmnAlarm << "dfmdocs!!" << enderr; mLock->unlock(); return; } //snap_id = mCrtSnapId | 0x80000000; snap_id = ++ mCrtSnapId; mIILTransMaps.insert(make_pair(snap_id, dfmdocs)); mSnapIds.insert(make_pair(root_iilid, snap_id)); mLock->unlock(); } void AosIILSave::removeEntryFromMapsPriv(const u64 &root_iilid, const u64 &snap_id) { mLock->lock(); mapitr_t itr = mIILTransMaps.find(snap_id); if (itr == mIILTransMaps.end()) { OmnAlarm << "dfmdocs!!" << enderr; mLock->unlock(); return; } mIILTransMaps.erase(itr); mSnapIds.erase(root_iilid); mLock->unlock(); } AosIILDfmDocsPtr AosIILSave::getEntryFromMapsPriv(const u64 &snap_id) { mLock->lock(); mapitr_t itr = mIILTransMaps.find(snap_id); if (itr == mIILTransMaps.end()) { mLock->unlock(); OmnAlarm << "dfmdocs!!" << enderr; return 0; } AosIILDfmDocsPtr dfmdocs = itr->second; mLock->unlock(); return dfmdocs; } bool AosIILSave::saveDoc( const AosRundataPtr &rdata, const AosDocFileMgrObjPtr &doc_mgr, vector<AosTransId> &trans_ids, const AosDfmDocPtr &doc, const u64 &snap_id) { /* if (OmnApp::eNewDFMVersion == OmnApp::getDFMVersion()) { // This is to use DocStore as IIL's storage. // Encode: // doc, // snap_id, // docid (from doc) // body (from doc) // customer data (from doc) u64 docid = doc->getDocid(); int body_len = doc->getOrigLen(); //there is another len called getCompressLen AosBuffPtr bodyBuff = doc->getBodyBuff(); //body int aseid = AosDocFileMgrObj::eASEID_IIL; AosBuffPtr custom_data = doc->getHeaderBuff(); return Jimo::jimoStoreCreateDatalet(rdata.getPtr(), aseid, docid, AOSDOCTYPE_XML, bodyBuff->data(), body_len, snap_id, custom_data); } */ if (snap_id == 0) { return doc_mgr->saveDoc(rdata, trans_ids, doc, true); } if (isSmallIILTrans(snap_id)) { // small iil trans; AosIILDfmDocsPtr dfmdocs = getEntryFromMapsPriv(snap_id); aos_assert_r(dfmdocs, false); doc->setOpr(AosDfmDoc::eSave); return dfmdocs->addEntry(rdata, doc, trans_ids); } // dfm snap shot return doc_mgr->saveDoc(rdata, snap_id, doc, trans_ids); } AosDfmDocPtr AosIILSave::readDoc( const AosRundataPtr &rdata, const AosDocFileMgrObjPtr &doc_mgr, const u64 snap_id, const u64 local_iilid, const bool read_body) { AosDfmDocPtr doc; if (snap_id == 0) { doc = doc_mgr->readDoc(rdata, local_iilid); return doc; } if (isSmallIILTrans(snap_id)) { AosIILDfmDocsPtr dfmdocs = getEntryFromMapsPriv(snap_id); aos_assert_r(dfmdocs, 0); doc = dfmdocs->readDoc(rdata, local_iilid); if (doc) { if (doc->getOpr() != AosDfmDoc::eDelete) { return 0; } } else { doc = doc_mgr->readDoc(rdata, local_iilid); } return doc; } doc = doc_mgr->readDoc(rdata, snap_id, local_iilid, read_body); return doc; } bool AosIILSave::deleteDoc( const AosRundataPtr &rdata, const AosDocFileMgrObjPtr &doc_mgr, vector<AosTransId> &trans_ids, const AosDfmDocPtr &doc, const u64 snap_id) { if (snap_id == 0) { return doc_mgr->deleteDoc(rdata, trans_ids, doc, true); } if (isSmallIILTrans(snap_id)) { AosIILDfmDocsPtr dfmdocs = getEntryFromMapsPriv(snap_id); aos_assert_r(dfmdocs, false); doc->setOpr(AosDfmDoc::eDelete); return dfmdocs->addEntry(rdata, doc, trans_ids); } return doc_mgr->deleteDoc(rdata, snap_id, doc, trans_ids); } bool AosIILSave::add( const AosRundataPtr &rdata, const u64 root_iilid, u64 &snap_id) { // small iil trans; if (isExist(root_iilid)) return false; addEntryToMapsPriv(root_iilid, snap_id); //OmnScreen << "============ root_iilid:" << root_iilid << ";snap_id:" << snap_id << endl; aos_assert_r(isSmallIILTrans(snap_id), false); return true; } bool AosIILSave::commit( const AosRundataPtr &rdata, const u64 root_iilid, const AosDocFileMgrObjPtr &doc_mgr, const u64 snap_id) { // small iil trans; //OmnScreen << "============ root_iilid:" << root_iilid << ";snap_id:" << snap_id << endl; u64 snapid = isExist(root_iilid); aos_assert_r(snapid == snap_id, false); aos_assert_r(isSmallIILTrans(snap_id), false); AosIILDfmDocsPtr dfmdocs = getEntryFromMapsPriv(snap_id); aos_assert_r(dfmdocs, false); removeEntryFromMapsPriv(root_iilid, snap_id); return dfmdocs->commit(rdata, doc_mgr); } u64 AosIILSave::isExist(const u64 &root_iilid) { u64 snap_id = 0; mLock->lock(); map<u64, u64>::iterator itr = mSnapIds.find(root_iilid); if (itr != mSnapIds.end()) { snap_id = itr->second; } mLock->unlock(); return snap_id; } bool AosIILSave::isSmallIILTrans(const u64 &snap_id) { return ((snap_id & 0x80000000) == 0x80000000); }
903bc355ae664c5a6e68b9cf2a8f1c4fd4039541
c83e7a30656d4f05ddd016e8095ce9a93d27b0df
/include/Watchdog/Watchdog.h
88b30592d7760bc009f92f2e18891cf1fede673e
[]
no_license
Richi2105/BoomBoxEventSystem
0390ce8839c58f6df1ab5946df3f20274139ccb3
c723865411c50fca5522ab84507fa53073955566
refs/heads/master
2016-08-12T14:01:21.608723
2016-02-19T01:43:46
2016-02-19T01:43:46
45,798,209
0
0
null
null
null
null
UTF-8
C++
false
false
848
h
Watchdog.h
/* * Watchdog.h * * Created on: Jan 25, 2016 * Author: richard */ #ifndef INCLUDE_WATCHDOG_WATCHDOG_H_ #define INCLUDE_WATCHDOG_WATCHDOG_H_ #include <time.h> #include <pthread.h> namespace EventSystem { class Watchdog { public: /** * initializes a watchdog object with a time span. If the watchdog reaches this span, * a call to isTriggered() will return true; else it will return false. * The time span can be rewinded with a call to set(). * @param trigTimeSec: time span in seconds * @param trigTimeMilliSec: time span in milliseconds */ Watchdog(int trigTimeSec, int trigTimeMilliSec); virtual ~Watchdog(); void set(); bool isTriggered(); private: pthread_mutex_t memberMutex; struct timespec triggerTime; int sec; int millisec; }; } /* namespace EventSystem */ #endif /* INCLUDE_WATCHDOG_WATCHDOG_H_ */
639e987f530924137e0b1ca2a9b78bd64a687c4f
14639ec3d34396139a8d70a98ca9909f8c9c40b8
/USACO Training/Chapter 1/1.6 sprime.cpp
64172f61bb7a2d5b8b9c0e532beb2a78952ad054
[]
no_license
daydramas/competitive-programming
d78d5c783dd5c587c08bcf9751cbd2fbdb4d9b5d
180afd44ca0716711abc419593226b72f7ede932
refs/heads/master
2023-04-06T12:50:33.031215
2021-04-10T23:45:52
2021-04-10T23:45:52
null
0
0
null
null
null
null
UTF-8
C++
false
false
987
cpp
1.6 sprime.cpp
/* ID: dongliu3 TASK: sprime LANG: C++ */ #include <bits/stdc++.h> using namespace std; // structures/defines #define vi vector<int> // global variables int N; // functions bool prime(int n) { if (n <= 1) return false; if (n <= 3) return true; if (n % 2 == 0 || n % 3 == 0) return false; for (int i = 5; i * i <= n; i = i + 6) if (n % i == 0 || n % (i + 2) == 0) return false; return true; } vi solve(int n) { vi rval; if (n == 1) { rval.push_back(2); rval.push_back(3); rval.push_back(5); rval.push_back(7); } else { vi before = solve(n-1); for (int i : before) { for (int j=0; j<=9; j++) { int nxt = stoi(to_string(i)+to_string(j)); if (prime(nxt)) { rval.push_back(nxt); } } } } return rval; } int main() { // local variables // fstream ifstream fin("sprime.in"); ofstream fout("sprime.out"); // input fin >> N; // main vi ans = solve(N); // output for (int i : ans) { fout << i << endl; } return 0; }
227f85e11c1b9dc6a3ab047548edeb2a29a65c3e
09f596ad590ace740ed556e8d4de9875cd4af1b6
/TVOut/still_alik_ve/TVOlogo.cpp
66b223e5b348d6bab8fa045c90d077374396c74c
[]
no_license
zoomx/ArduinoHome
8d1f8946cf241e9f57f9a28402b6c563e281841b
163cc52a85bab2fa80c4d121fe4ba57aaa70bc81
refs/heads/master
2021-01-18T15:08:15.736644
2016-03-05T18:07:30
2016-03-05T18:07:30
53,214,744
1
0
null
null
null
null
UTF-8
C++
false
false
25,033
cpp
TVOlogo.cpp
#include "TVOlogo.h" PROGMEM const unsigned char TVOlogo[] = { 200,192, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xC0,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0xA0,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x90,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x88,0x88,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x85,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x82,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x85,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x88,0x88,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x90,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0xA0,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0xC0,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0xFF,0xFF,0xFF,0xFF,0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 };