hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
109
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
48.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
6647e8e1a937c948e484c3ace1332e62285bd87c
6,862
cpp
C++
Implementation/Core/amc_statejournalstream.cpp
GibbekAdsk/AutodeskMachineControlFramework
48c220c1acfbc2c4c33f636354e9372100f7c896
[ "BSD-3-Clause" ]
null
null
null
Implementation/Core/amc_statejournalstream.cpp
GibbekAdsk/AutodeskMachineControlFramework
48c220c1acfbc2c4c33f636354e9372100f7c896
[ "BSD-3-Clause" ]
null
null
null
Implementation/Core/amc_statejournalstream.cpp
GibbekAdsk/AutodeskMachineControlFramework
48c220c1acfbc2c4c33f636354e9372100f7c896
[ "BSD-3-Clause" ]
null
null
null
/*++ Copyright (C) 2020 Autodesk 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 the Autodesk 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 AUTODESK INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "amc_statejournalstream.hpp" #include "common_utils.hpp" #include "common_chrono.hpp" #include "libmc_interfaceexception.hpp" #include <iostream> namespace AMC { class CStateJournalStreamChunk { private: std::vector<uint64_t> m_TimeStamps; std::vector<uint8_t> m_Data; std::map<uint32_t, std::string> m_NameDefinitions; void writeData(const uint8_t* pData, uint32_t nLength) { if (pData == nullptr) throw ELibMCInterfaceException(LIBMC_ERROR_INVALIDPARAM); const uint8_t* pSrc = pData; for (uint32_t nIndex = 0; nIndex < nLength; nIndex++) { m_Data.push_back(*pSrc); pSrc++; } } public: CStateJournalStreamChunk(uint64_t nStartTimeStamp) { m_TimeStamps.push_back(nStartTimeStamp); } void writeCommand(const uint32_t nCommand) { writeData((const uint8_t*)&nCommand, 4); } void writeUint64(const uint64_t nValue) { writeData((const uint8_t*)&nValue, 8); } void writeString(const std::string& sValue) { uint32_t nLength = (uint32_t)sValue.length(); writeData((const uint8_t*)&nLength, 4); writeData((const uint8_t*) sValue.c_str (), nLength); } void writeDouble(const double dValue) { writeData((const uint8_t*)&dValue, 8); } void storeTimeStamp (const uint64_t nTimeStamp) { auto iLast = m_TimeStamps.rbegin(); if (iLast == m_TimeStamps.rend()) throw ELibMCInterfaceException(LIBMC_ERROR_INTERNALERROR); auto nLastTimeStamp = *iLast; if (nTimeStamp < nLastTimeStamp) throw ELibMCInterfaceException(LIBMC_ERROR_INVALIDTIMESTAMP); if (nTimeStamp > nLastTimeStamp) { m_TimeStamps.push_back(nTimeStamp); } } void writeNameDefinition (const uint32_t nID, const std::string& sName) { auto iIter = m_NameDefinitions.find(nID); if (iIter != m_NameDefinitions.end()) throw ELibMCInterfaceException(LIBMC_ERROR_DUPLICATEJOURNALID); m_NameDefinitions.insert(std::make_pair (nID, sName)); writeCommand(nID | STATEJOURNAL_COMMANDFLAG_DEFINITION); writeString(sName); } }; CStateJournalStream::CStateJournalStream() : m_nCurrentTimeStamp (0) { } CStateJournalStream::~CStateJournalStream() { } void CStateJournalStream::writeString(const uint32_t nID, const std::string& sValue) { if (m_pCurrentChunk == nullptr) throw ELibMCInterfaceException(LIBMC_ERROR_NOCURRENTJOURNALCHUNK); m_pCurrentChunk->writeCommand(nID | STATEJOURNAL_COMMANDFLAG_STRING); m_pCurrentChunk->writeString(sValue); } void CStateJournalStream::startNewChunk() { m_pCurrentChunk = std::make_shared <CStateJournalStreamChunk>(m_nCurrentTimeStamp); m_Chunks.push_back(m_pCurrentChunk); } void CStateJournalStream::writeTimeStamp(const uint64_t nAbsoluteTimeStamp) { if (nAbsoluteTimeStamp < m_nCurrentTimeStamp) throw ELibMCInterfaceException(LIBMC_ERROR_INVALIDTIMESTAMP); uint64_t nDeltaTime = nAbsoluteTimeStamp - m_nCurrentTimeStamp; if (nDeltaTime >= STATEJOURNAL_MAXTIMESTAMPDELTA) throw ELibMCInterfaceException(LIBMC_ERROR_INVALIDTIMESTAMP); m_pCurrentChunk->writeCommand(((uint32_t) nDeltaTime) | STATEJOURNAL_COMMANDFLAG_TIMESTAMP); m_pCurrentChunk->storeTimeStamp(nAbsoluteTimeStamp); m_nCurrentTimeStamp = nAbsoluteTimeStamp; } void CStateJournalStream::writeBool(const uint32_t nID, bool bValue) { if (m_pCurrentChunk == nullptr) throw ELibMCInterfaceException(LIBMC_ERROR_NOCURRENTJOURNALCHUNK); if (bValue) { m_pCurrentChunk->writeCommand(nID | STATEJOURNAL_COMMANDFLAG_BOOL | STATEJOURNAL_COMMANDFLAG_BOOL_TRUE); } else { m_pCurrentChunk->writeCommand(nID | STATEJOURNAL_COMMANDFLAG_BOOL | STATEJOURNAL_COMMANDFLAG_BOOL_FALSE); } } void CStateJournalStream::writeInt64Delta(const uint32_t nID, int64_t nDelta) { if (m_pCurrentChunk == nullptr) throw ELibMCInterfaceException(LIBMC_ERROR_NOCURRENTJOURNALCHUNK); if (nDelta > 0) { m_pCurrentChunk->writeCommand(nID | STATEJOURNAL_COMMANDFLAG_INTEGER | STATEJOURNAL_COMMANDFLAG_INTEGER_POSITIVE); m_pCurrentChunk->writeUint64((uint64_t) nDelta); } else { m_pCurrentChunk->writeCommand(nID | STATEJOURNAL_COMMANDFLAG_INTEGER | STATEJOURNAL_COMMANDFLAG_INTEGER_NEGATIVE); m_pCurrentChunk->writeUint64((uint64_t)(- nDelta)); } } void CStateJournalStream::writeDoubleDelta(const uint32_t nID, int64_t nDelta) { if (m_pCurrentChunk == nullptr) throw ELibMCInterfaceException(LIBMC_ERROR_NOCURRENTJOURNALCHUNK); if (nDelta > 0) { m_pCurrentChunk->writeCommand(nID | STATEJOURNAL_COMMANDFLAG_DOUBLE | STATEJOURNAL_COMMANDFLAG_DOUBLE_POSITIVE); m_pCurrentChunk->writeUint64((uint64_t)nDelta); } else { m_pCurrentChunk->writeCommand(nID | STATEJOURNAL_COMMANDFLAG_DOUBLE | STATEJOURNAL_COMMANDFLAG_DOUBLE_NEGATIVE); m_pCurrentChunk->writeUint64((uint64_t)(-nDelta)); } } void CStateJournalStream::writeNameDefinition(const uint32_t nID, const std::string& sName) { if (m_pCurrentChunk == nullptr) throw ELibMCInterfaceException(LIBMC_ERROR_NOCURRENTJOURNALCHUNK); m_pCurrentChunk->writeNameDefinition(nID, sName); } void CStateJournalStream::writeUnits(const uint32_t nID, double dUnits) { if (m_pCurrentChunk == nullptr) throw ELibMCInterfaceException(LIBMC_ERROR_NOCURRENTJOURNALCHUNK); m_pCurrentChunk->writeCommand(nID | STATEJOURNAL_COMMANDFLAG_UNITS); m_pCurrentChunk->writeDouble(dUnits); } }
28.473029
117
0.773244
GibbekAdsk
664b6287154d6c4e004e6a20788376ba4ee6b901
751
cpp
C++
Solution/045.Jump Game II/solution1-16ms.cpp
zhufei2805801318/352_Leetcode
fc9bfdd7eb462684b1345c953de843d6cfffabd0
[ "MIT" ]
6
2018-11-08T06:16:19.000Z
2019-09-07T13:39:00.000Z
Solution/045.Jump Game II/solution1-16ms.cpp
zhufei2805801318/352_Leetcode
fc9bfdd7eb462684b1345c953de843d6cfffabd0
[ "MIT" ]
10
2018-11-09T12:17:55.000Z
2018-12-03T18:11:49.000Z
Solution/045.Jump Game II/solution1-16ms.cpp
zhufei2805801318/352_Leetcode
fc9bfdd7eb462684b1345c953de843d6cfffabd0
[ "MIT" ]
7
2018-11-08T14:31:49.000Z
2018-11-23T14:55:45.000Z
class Solution { public: int jump(vector<int>& nums) { int i,j,cnt,ref_i,ref; int n=nums.size(); if(n==0) return 0; if(n==1) return 0; cnt=0; i=0; while(i<n-1&&nums[i]){ ref_i=i; ref=-1; for(j=1;j<=nums[i];j++){ if(j+i>=n-1){ ref_i=i+j; break; } if(j+nums[i+j]>ref){ ref=j+nums[i+j]; ref_i=i+j; } } i=ref_i; cnt++; } if(i<n-1){ return n-1; } else{ return cnt; } } };
20.861111
36
0.28229
zhufei2805801318
593f227284280d7f48dcdc48795a96427bafca17
3,012
cpp
C++
src/Renderer/EskyDisplay.cpp
danielofdaniels/ProjectEskyLLAPI
9278ea025f1a392adf563364ff7ee87b8223b262
[ "BSD-3-Clause" ]
5
2020-12-29T03:37:17.000Z
2022-02-20T10:58:25.000Z
src/Renderer/EskyDisplay.cpp
danielofdaniels/ProjectEskyLLAPI
9278ea025f1a392adf563364ff7ee87b8223b262
[ "BSD-3-Clause" ]
1
2021-01-14T04:30:31.000Z
2021-01-14T04:30:31.000Z
src/Renderer/EskyDisplay.cpp
danielofdaniels/ProjectEskyLLAPI
9278ea025f1a392adf563364ff7ee87b8223b262
[ "BSD-3-Clause" ]
3
2020-12-13T03:52:52.000Z
2021-10-30T04:00:36.000Z
#include "EskyDisplay.h" #include <iostream> #include <sstream> #include "EskyRenderer.h" EskyDisplay::EskyDisplay() { _debugCallback("Creating EskyDisplay"); if (SDL_Init(SDL_INIT_VIDEO) < 0) { std::ostringstream error_message; error_message << "Failed to initialize SDL: "; error_message << SDL_GetError(); _debugCallback(error_message.str().c_str()); return; } _renderer = EskyRenderer::Create(kUnityGfxRendererVulkan, _debugCallback); } EskyDisplay::~EskyDisplay() { _debugCallback("Destroying EskyDisplay"); for (int i = 0; i < _windows.size(); i++) { stopWindowById(i); } if (_renderer) { delete _renderer; } SDL_Quit(); } void EskyDisplay::run() { bool quit = false; while (!quit) { SDL_Event e; while (SDL_PollEvent(&e)) { switch (e.type) { case SDL_QUIT: { quit = true; break; } case SDL_WINDOWEVENT: { SDL_Window* event_window = SDL_GetWindowFromID(e.window.windowID); for (auto& window : _windows) { if (window && event_window == window->getHandle()) { window->onEvent(&e.window); break; } } break; } default: break; } } _renderer->renderFrame(); } } EskyRenderer* EskyDisplay::getRenderer() { return _renderer; } void EskyDisplay::startWindowById(int id, const wchar_t*, int, int, bool) { // Check that there isn't already a window here EskyWindow* old_window = _assertWindow(id); if (old_window) { std::ostringstream error_message; error_message << "Window #" << id << " is already started"; _debugCallback(error_message.str().c_str()); return; } SDL_Window* new_window = SDL_CreateWindow( "Esky Window", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 800, 600, SDL_WINDOW_SHOWN | SDL_WINDOW_VULKAN); if (!new_window) { std::ostringstream error_message; error_message << "Failed to create SDL window: "; error_message << SDL_GetError(); _debugCallback(error_message.str().c_str()); return; } // Ensure that the window vector has enough room if (id >= _windows.size()) { // Pad new elements with nullptr _windows.resize(id + 1, nullptr); } _windows[id] = _renderer->createWindow(new_window); } EskyWindow* EskyDisplay::getWindowById(int id) { return _assertWindow(id); } void EskyDisplay::stopWindowById(int id) { EskyWindow* window = _assertWindow(id); if (window) { _windows[id] = nullptr; delete window; } } void EskyDisplay::setColorFormat(int colorFormat) { // TODO(marceline-cramer) Set color format } EskyWindow* EskyDisplay::_assertWindow(int id) { // TODO(marceline-cramer) DebugMessage here if (id < 0 || id >= _windows.size()) { return nullptr; } EskyWindow* window = _windows[id]; return window; } void EskyDisplay::_debugCallback(const char* message) { std::cerr << "Debug: " << message << std::endl; }
23.348837
80
0.642098
danielofdaniels
5942524eb41163d677b22ea26f59b95749d8c17b
1,166
cpp
C++
src/catch2/internal/catch_debug_console.cpp
nicramage/Catch2
6f21a3609cea360846a0ca93be55877cca14c86d
[ "BSL-1.0" ]
9,861
2017-11-03T13:11:42.000Z
2022-03-31T23:50:03.000Z
src/catch2/internal/catch_debug_console.cpp
nicramage/Catch2
6f21a3609cea360846a0ca93be55877cca14c86d
[ "BSL-1.0" ]
1,409
2017-11-03T13:42:48.000Z
2022-03-31T14:46:42.000Z
src/catch2/internal/catch_debug_console.cpp
nicramage/Catch2
6f21a3609cea360846a0ca93be55877cca14c86d
[ "BSL-1.0" ]
2,442
2017-11-03T14:48:53.000Z
2022-03-31T23:07:09.000Z
// Copyright Catch2 Authors // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // https://www.boost.org/LICENSE_1_0.txt) // SPDX-License-Identifier: BSL-1.0 #include <catch2/internal/catch_debug_console.hpp> #include <catch2/internal/catch_config_android_logwrite.hpp> #include <catch2/internal/catch_stream.hpp> #include <catch2/internal/catch_platform.hpp> #include <catch2/internal/catch_windows_h_proxy.hpp> #if defined(CATCH_CONFIG_ANDROID_LOGWRITE) #include <android/log.h> namespace Catch { void writeToDebugConsole( std::string const& text ) { __android_log_write( ANDROID_LOG_DEBUG, "Catch", text.c_str() ); } } #elif defined(CATCH_PLATFORM_WINDOWS) namespace Catch { void writeToDebugConsole( std::string const& text ) { ::OutputDebugStringA( text.c_str() ); } } #else namespace Catch { void writeToDebugConsole( std::string const& text ) { // !TBD: Need a version for Mac/ XCode and other IDEs Catch::cout() << text; } } #endif // Platform
28.439024
76
0.669811
nicramage
59508a1ecb70d9ae1f395bafc9412e474711623a
1,681
cc
C++
code30/cpp/20190821/v4/SocketIO.cc
stdbilly/CS_Note
a8a87e135a525d53c283a4c70fb942c9ca59a758
[ "MIT" ]
2
2020-12-09T09:55:51.000Z
2021-01-08T11:38:22.000Z
mycode/cpp/0820/networklib/v4/SocketIO.cc
stdbilly/CS_Note
a8a87e135a525d53c283a4c70fb942c9ca59a758
[ "MIT" ]
null
null
null
mycode/cpp/0820/networklib/v4/SocketIO.cc
stdbilly/CS_Note
a8a87e135a525d53c283a4c70fb942c9ca59a758
[ "MIT" ]
null
null
null
/// /// @file SocketIO.cc /// @author lemon(haohb13@gmail.com) /// @date 2019-05-07 16:01:31 /// #include "SocketIO.h" #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> namespace wd { SocketIO::SocketIO(int fd) : _fd(fd) {} int SocketIO::readn(char * buff, int len) { int left = len; char * p = buff; while(left > 0) { int ret = ::read(_fd, p, left); if(ret == -1 && errno == EINTR) continue; else if(ret == -1) { perror("read"); return len - left; } else if(ret == 0) { return len - left; } else { left -= ret; p += ret; } } return len - left; } //每一次读取一行数据 int SocketIO::readline(char * buff, int maxlen) { int left = maxlen - 1; char * p = buff; int ret; int total = 0; while(left > 0) { ret = recvPeek(p, left); //查找 '\n' for(int idx = 0; idx != ret; ++idx) { if(p[idx] == '\n') { int sz = idx + 1; readn(p, sz); total += sz; p += sz; *p = '\0'; return total; } } //如果没有发现 '\n' readn(p, ret); left -= ret; p += ret; total += ret; } *p = '\0';// 最终没有发现'\n' return total; } int SocketIO::recvPeek(char * buff, int len) { int ret; do { ret = ::recv(_fd, buff, len, MSG_PEEK); } while(ret == -1 && errno == EINTR); return ret; } int SocketIO::writen(const char * buff, int len) { int left = len; const char * p = buff; while(left > 0) { int ret = ::write(_fd, p, left); if(ret == -1 && errno == EINTR) continue; else if(ret == -1) { perror("write"); return len - left; } else { left -= ret; p += ret; } } return len - left; } }//end of namespace wd
15.858491
48
0.53599
stdbilly
59628f001d2d6570df31489ca32702486fd303b5
3,813
cpp
C++
src/plugProjectOgawaU/ogCallBackScreen.cpp
projectPiki/pikmin2
a431d992acde856d092889a515ecca0e07a3ea7c
[ "Unlicense" ]
33
2021-12-08T11:10:59.000Z
2022-03-26T19:59:37.000Z
src/plugProjectOgawaU/ogCallBackScreen.cpp
projectPiki/pikmin2
a431d992acde856d092889a515ecca0e07a3ea7c
[ "Unlicense" ]
6
2021-12-22T17:54:31.000Z
2022-01-07T21:43:18.000Z
src/plugProjectOgawaU/ogCallBackScreen.cpp
projectPiki/pikmin2
a431d992acde856d092889a515ecca0e07a3ea7c
[ "Unlicense" ]
2
2022-01-04T06:00:49.000Z
2022-01-26T07:27:28.000Z
#include "types.h" #include "og/Screen/callbackNodes.h" /* Generated from dpostproc .section .data, "wa" # 0x8049E220 - 0x804EFC20 .global __vt__Q32og6Screen15CallBack_Screen __vt__Q32og6Screen15CallBack_Screen: .4byte 0 .4byte 0 .4byte __dt__Q32og6Screen15CallBack_ScreenFv .4byte getChildCount__5CNodeFv .4byte update__Q32og6Screen15CallBack_ScreenFv .4byte draw__Q32og6Screen15CallBack_ScreenFR8GraphicsR14J2DGrafContext .4byte doInit__Q29P2DScreen4NodeFv .4byte 0 .section .sdata2, "a" # 0x80516360 - 0x80520E40 .global lbl_8051D698 lbl_8051D698: .float 1.0 .global lbl_8051D69C lbl_8051D69C: .4byte 0x00000000 */ namespace og { namespace Screen { /* * --INFO-- * Address: 8030B370 * Size: 0000A4 */ CallBack_Screen::CallBack_Screen(P2DScreen::Mgr*, unsigned long long) { /* stwu r1, -0x20(r1) mflr r0 stw r0, 0x24(r1) stmw r27, 0xc(r1) mr r27, r3 mr r0, r27 mr r29, r4 mr r31, r5 mr r30, r6 mr r28, r0 bl __ct__5CNodeFv lis r3, __vt__Q29P2DScreen4Node@ha lis r4, __vt__Q29P2DScreen12CallBackNode@ha addi r0, r3, __vt__Q29P2DScreen4Node@l lis r3, __vt__Q32og6Screen15CallBack_Screen@ha stw r0, 0(r28) li r5, 0 addi r4, r4, __vt__Q29P2DScreen12CallBackNode@l addi r0, r3, __vt__Q32og6Screen15CallBack_Screen@l stw r5, 0x18(r28) mr r6, r30 mr r5, r31 stw r4, 0(r28) stw r0, 0(r27) stw r29, 0x1c(r27) lwz r3, 0x1c(r27) bl TagSearch__Q22og6ScreenFP9J2DScreenUx stw r3, 0x20(r27) li r0, 0 lfs f1, lbl_8051D698@sda21(r2) mr r3, r27 stw r0, 0x24(r27) lfs f0, lbl_8051D69C@sda21(r2) stfs f1, 0x28(r27) stfs f0, 0x2c(r27) stfs f0, 0x30(r27) lmw r27, 0xc(r1) lwz r0, 0x24(r1) mtlr r0 addi r1, r1, 0x20 blr */ } /* * --INFO-- * Address: 8030B414 * Size: 000008 */ J2DScreen* CallBack_Screen::getPartsScreen(void) { return m_partsScreen; } /* * --INFO-- * Address: ........ * Size: 000044 */ void CallBack_Screen::changeScreen(P2DScreen::Mgr*, unsigned long long) { // UNUSED FUNCTION } /* * --INFO-- * Address: 8030B41C * Size: 000038 */ void CallBack_Screen::update(void) { /* stwu r1, -0x10(r1) mflr r0 stw r0, 0x14(r1) lwz r3, 0x1c(r3) cmplwi r3, 0 beq lbl_8030B444 lwz r12, 0(r3) lwz r12, 0x30(r12) mtctr r12 bctrl lbl_8030B444: lwz r0, 0x14(r1) mtlr r0 addi r1, r1, 0x10 blr */ } /* * --INFO-- * Address: 8030B454 * Size: 0000D0 */ void CallBack_Screen::draw(Graphics&, J2DGrafContext&) { /* stwu r1, -0x80(r1) mflr r0 stw r0, 0x84(r1) stw r31, 0x7c(r1) stw r30, 0x78(r1) mr r30, r5 stw r29, 0x74(r1) mr r29, r4 stw r28, 0x70(r1) mr r28, r3 lwz r0, 0x1c(r3) cmplwi r0, 0 beq lbl_8030B504 lfs f1, 0x28(r28) addi r3, r1, 0x38 lwz r4, 0x24(r28) fmr f2, f1 lfs f3, lbl_8051D69C@sda21(r2) addi r31, r4, 0x80 bl PSMTXScale addi r4, r1, 0x38 mr r3, r31 mr r5, r4 bl PSMTXConcat lfs f1, 0x2c(r28) addi r3, r1, 8 lfs f2, 0x30(r28) lfs f3, lbl_8051D69C@sda21(r2) bl PSMTXTrans mr r5, r31 addi r3, r1, 0x38 addi r4, r1, 8 bl PSMTXConcat lwz r4, 0x20(r28) mr r3, r31 addi r4, r4, 0x50 bl PSMTXCopy lwz r3, 0x1c(r28) mr r4, r29 mr r5, r30 lwz r12, 0(r3) lwz r12, 0x9c(r12) mtctr r12 bctrl lbl_8030B504: lwz r0, 0x84(r1) lwz r31, 0x7c(r1) lwz r30, 0x78(r1) lwz r29, 0x74(r1) lwz r28, 0x70(r1) mtlr r0 addi r1, r1, 0x80 blr */ } } // namespace Screen } // namespace og
19.654639
78
0.603724
projectPiki
5963f24acd88fe3ba388ed949339e130ebe68fb1
535
cpp
C++
Week-4/Day-24-bagOfTokensScore.cpp
utkarshavardhana/october-leetcoding-challenge
f2303421ee02539141a1bb78840e03a669ee6e2b
[ "MIT" ]
null
null
null
Week-4/Day-24-bagOfTokensScore.cpp
utkarshavardhana/october-leetcoding-challenge
f2303421ee02539141a1bb78840e03a669ee6e2b
[ "MIT" ]
null
null
null
Week-4/Day-24-bagOfTokensScore.cpp
utkarshavardhana/october-leetcoding-challenge
f2303421ee02539141a1bb78840e03a669ee6e2b
[ "MIT" ]
null
null
null
class Solution { public: int bagOfTokensScore(vector<int>& tokens, int P) { sort(tokens.begin(), tokens.end()); int res = 0, points = 0, i = 0, j = tokens.size() - 1; while (i <= j) { if (P >= tokens[i]) { P -= tokens[i++]; res = max(res, ++points); } else if (points > 0) { points--; P += tokens[j--]; } else { break; } } return res; } };
26.75
63
0.362617
utkarshavardhana
5966da95d284eb4206a6b9e4d320bc2a1735c3f5
6,818
cpp
C++
bullet-2.81-rev2613/src/BulletFluids/Hf/btFluidHfBuoyantConvexShape.cpp
rtrius/Bullet-FLUIDS
b58dbc5108512e5a4bb0a532284a98128fd8f8ce
[ "Zlib" ]
19
2015-01-18T09:34:48.000Z
2021-07-22T08:00:17.000Z
bullet-2.81-rev2613/src/BulletFluids/Hf/btFluidHfBuoyantConvexShape.cpp
rtrius/Bullet-FLUIDS
b58dbc5108512e5a4bb0a532284a98128fd8f8ce
[ "Zlib" ]
null
null
null
bullet-2.81-rev2613/src/BulletFluids/Hf/btFluidHfBuoyantConvexShape.cpp
rtrius/Bullet-FLUIDS
b58dbc5108512e5a4bb0a532284a98128fd8f8ce
[ "Zlib" ]
8
2015-02-09T08:03:04.000Z
2021-07-22T08:01:54.000Z
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.com This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Experimental Buoyancy fluid demo written by John McCutchan */ //This is an altered source version based on the HeightFieldFluidDemo included with Bullet Physics 2.80(bullet-2.80-rev2531). #include "btFluidHfBuoyantConvexShape.h" #include "BulletCollision/CollisionShapes/btSphereShape.h" #include "BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h" btFluidHfBuoyantConvexShape::btFluidHfBuoyantConvexShape (btConvexShape* convexShape) { m_convexShape = convexShape; m_shapeType = HFFLUID_BUOYANT_CONVEX_SHAPE_PROXYTYPE; m_collisionRadius = btScalar(0.0); m_totalVolume = btScalar(0.0); m_useFluidDensity = false; m_buoyancyScale = btScalar(1.0); } //must be above the machine epsilon #define REL_ERROR2 btScalar(1.0e-6) static bool intersect(btVoronoiSimplexSolver* simplexSolver, const btTransform& transformA, const btTransform& transformB, btConvexShape* a, btConvexShape* b) { btScalar squaredDistance = SIMD_INFINITY; btTransform localTransA = transformA; btTransform localTransB = transformB; btVector3 positionOffset = (localTransA.getOrigin() + localTransB.getOrigin()) * btScalar(0.5); localTransA.getOrigin() -= positionOffset; localTransB.getOrigin() -= positionOffset; btScalar delta = btScalar(0.); btVector3 v = btVector3(1.0f, 0.0f, 0.0f); simplexSolver->reset (); do { btVector3 seperatingAxisInA = (-v)* transformA.getBasis(); btVector3 seperatingAxisInB = v* transformB.getBasis(); btVector3 pInA = a->localGetSupportVertexNonVirtual(seperatingAxisInA); btVector3 qInB = b->localGetSupportVertexNonVirtual(seperatingAxisInB); btVector3 pWorld = localTransA(pInA); btVector3 qWorld = localTransB(qInB); btVector3 w = pWorld - qWorld; delta = v.dot(w); // potential exit, they don't overlap if ((delta > btScalar(0.0))) { return false; } if (simplexSolver->inSimplex (w)) { return false; } simplexSolver->addVertex (w, pWorld, qWorld); if (!simplexSolver->closest(v)) { return false; } btScalar previousSquaredDistance = squaredDistance; squaredDistance = v.length2(); if (previousSquaredDistance - squaredDistance <= SIMD_EPSILON * previousSquaredDistance) { return false; } } while (!simplexSolver->fullSimplex() && squaredDistance > REL_ERROR2 * simplexSolver->maxVertex()); return true; } void btFluidHfBuoyantConvexShape::generateShape(btScalar collisionRadius, btScalar volumeEstimationRadius) { m_voxelPositions.resize(0); btVoronoiSimplexSolver simplexSolver; btTransform voxelTransform = btTransform::getIdentity(); btVector3 aabbMin, aabbMax; getAabb( btTransform::getIdentity(), aabbMin, aabbMax ); //AABB of the convex shape //Generate voxels for collision { btSphereShape collisionShape(collisionRadius); const btScalar collisionDiameter = btScalar(2.0) * collisionRadius; btVector3 numVoxels = (aabbMax - aabbMin) / collisionDiameter; for(int i = 0; i < ceil( numVoxels.x() ); i++) { for(int j = 0; j < ceil( numVoxels.y() ); j++) { for(int k = 0; k < ceil( numVoxels.z() ); k++) { btVector3 voxelPosition = aabbMin + btVector3(i * collisionDiameter, j * collisionDiameter, k * collisionDiameter); voxelTransform.setOrigin(voxelPosition); if( intersect(&simplexSolver, btTransform::getIdentity(), voxelTransform, m_convexShape, &collisionShape) ) m_voxelPositions.push_back(voxelPosition); } } } const bool CENTER_VOXELS_AABB_ON_ORIGIN = true; if(CENTER_VOXELS_AABB_ON_ORIGIN) { btVector3 diameter(collisionDiameter, collisionDiameter, collisionDiameter); btVector3 voxelAabbMin(BT_LARGE_FLOAT, BT_LARGE_FLOAT, BT_LARGE_FLOAT); btVector3 voxelAabbMax(-BT_LARGE_FLOAT, -BT_LARGE_FLOAT, -BT_LARGE_FLOAT); for(int i = 0; i < m_voxelPositions.size(); ++i) { voxelAabbMin.setMin(m_voxelPositions[i] - diameter); voxelAabbMax.setMax(m_voxelPositions[i] + diameter); } btVector3 offset = (voxelAabbMax - voxelAabbMin)*btScalar(0.5) - voxelAabbMax; for(int i = 0; i < m_voxelPositions.size(); ++i) m_voxelPositions[i] += offset; } } //Estimate volume with smaller spheres btScalar estimatedVolume; { btSphereShape volumeEstimationShape(volumeEstimationRadius); int numCollidingVoxels = 0; const btScalar estimationDiameter = btScalar(2.0) * volumeEstimationRadius; btVector3 numEstimationVoxels = (aabbMax - aabbMin) / estimationDiameter; for(int i = 0; i < ceil( numEstimationVoxels.x() ); i++) { for(int j = 0; j < ceil( numEstimationVoxels.y() ); j++) { for(int k = 0; k < ceil( numEstimationVoxels.z() ); k++) { btVector3 voxelPosition = aabbMin + btVector3(i * estimationDiameter, j * estimationDiameter, k * estimationDiameter); voxelTransform.setOrigin(voxelPosition); if( intersect(&simplexSolver, btTransform::getIdentity(), voxelTransform, m_convexShape, &volumeEstimationShape) ) ++numCollidingVoxels; } } } //Although the voxels are spherical, it is better to use the volume of a cube //for volume estimation. Since convex shapes are completely solid and the voxels //are generated by moving along a cubic lattice, using the volume of a sphere //would result in gaps. Comparing the volume of a cube with edge length 2(8 m^3) //and the volume of a sphere with diameter 2(~4 m^3), the estimated volume would //be off by about 1/2. btScalar volumePerEstimationVoxel = btPow( estimationDiameter, btScalar(3.0) ); //btScalar volumePerEstimationVoxel = btScalar(4.0/3.0) * SIMD_PI * btPow( volumeEstimationRadius, btScalar(3.0) ); estimatedVolume = static_cast<btScalar>(numCollidingVoxels) * volumePerEstimationVoxel; } m_volumePerVoxel = estimatedVolume / static_cast<btScalar>( getNumVoxels() ); m_totalVolume = estimatedVolume; m_collisionRadius = collisionRadius; }
35.326425
243
0.74318
rtrius
5967d5ed66f583f9d40666f5e47c58d595999e24
2,264
hpp
C++
include/poike/core/CommandBuffers.hpp
florianvazelle/poike
2ff7313c994b888dd83e22a0a9703c08b4a3a361
[ "MIT" ]
null
null
null
include/poike/core/CommandBuffers.hpp
florianvazelle/poike
2ff7313c994b888dd83e22a0a9703c08b4a3a361
[ "MIT" ]
null
null
null
include/poike/core/CommandBuffers.hpp
florianvazelle/poike
2ff7313c994b888dd83e22a0a9703c08b4a3a361
[ "MIT" ]
null
null
null
/** * @file CommandBuffers.hpp * @brief Define CommandBuffers base class */ #ifndef COMMANDBUFFERS_HPP #define COMMANDBUFFERS_HPP #include <poike/core/CommandPool.hpp> #include <poike/core/DescriptorSets.hpp> #include <poike/core/Device.hpp> #include <poike/core/GraphicsPipeline.hpp> #include <poike/meta/NoCopy.hpp> #include <poike/core/RenderPass.hpp> #include <poike/core/SwapChain.hpp> #include <poike/core/VulkanHeader.hpp> #include <functional> #include <vector> namespace poike { class CommandBuffersBase : public NoCopy { public: CommandBuffersBase(const Device& device, const RenderPass& renderpass, const SwapChain& swapChain, const GraphicsPipeline& graphicsPipeline, const CommandPool& commandPool); ~CommandBuffersBase(); inline VkCommandBuffer& command(uint32_t index) { return m_commandBuffers[index]; } inline const VkCommandBuffer& command(uint32_t index) const { return m_commandBuffers[index]; } protected: std::vector<VkCommandBuffer> m_commandBuffers; const Device& m_device; const RenderPass& m_renderPass; const SwapChain& m_swapChain; const GraphicsPipeline& m_graphicsPipeline; const CommandPool& m_commandPool; void destroyCommandBuffers(); }; class CommandBuffers : public CommandBuffersBase { public: CommandBuffers(const Device& device, const RenderPass& renderpass, const SwapChain& swapChain, const GraphicsPipeline& graphicsPipeline, const CommandPool& commandPool, const DescriptorSets& descriptorSets, const std::vector<const IBuffer*>& buffers); void recreate(); static void SingleTimeCommands(const Device& device, const CommandPool& cmdPool, const VkQueue& queue, const std::function<void(const VkCommandBuffer&)>& func); protected: const DescriptorSets& m_descriptorSets; const std::vector<const IBuffer*>& m_buffers; virtual void createCommandBuffers() = 0; }; } // namespace poike #endif // COMMANDBUFFERS_HPP
31.887324
99
0.660336
florianvazelle
5969418dbac4ccf9e9ecabcd8be076aaf0932974
3,380
hpp
C++
src/Engine/Drawables/Light/QuadLight.hpp
DaftMat/Daft-Engine
e3d918b4b876d17abd889b9b6b13bd858a079538
[ "MIT" ]
1
2020-10-26T02:36:58.000Z
2020-10-26T02:36:58.000Z
src/Engine/Drawables/Light/QuadLight.hpp
DaftMat/Daft-Engine
e3d918b4b876d17abd889b9b6b13bd858a079538
[ "MIT" ]
6
2020-02-14T21:45:52.000Z
2020-09-23T17:58:58.000Z
src/Engine/Drawables/Light/QuadLight.hpp
DaftMat/Daft-Engine
e3d918b4b876d17abd889b9b6b13bd858a079538
[ "MIT" ]
null
null
null
// // Created by mathis on 28/11/2020. // #pragma once #include <API.hpp> #include "Light.hpp" namespace daft::engine { class ENGINE_API QuadLight : public Light { public: /** * Default/standard constructor. * @param mesh - line mesh that represents the light. * @param color - color emitted by the light. */ explicit QuadLight(glm::vec3 position = glm::vec3{0.f}, glm::vec3 xdir = {1.f, 0.f, 0.f}, glm::vec3 ydir = {0.f, 1.f, 0.f}, glm::vec2 size = {1.f, 1.f}, glm::vec3 color = glm::vec3{1.f}, float intensity = 1.f, Composite *parent = nullptr, std::string name = "QuadLight" + std::to_string(m_nrQuadLight++)) : Light{color, parent, std::move(name)}, m_posBase{position}, m_xDir{xdir}, m_yDir{ydir}, m_xDirBase{xdir}, m_yDirBase{ydir}, m_width{size.x}, m_height{size.y}, m_intensity{intensity} { this->position() = position; m_isAreaLight = true; createQuadLight(); } /** * Destructor. */ ~QuadLight() override = default; /** * Default move constructor. */ QuadLight(QuadLight &&) noexcept = default; /** * Default move assignment operator. * @return ref to this. */ QuadLight &operator=(QuadLight &&) noexcept = default; void render(const core::ShaderProgram &shader) override; /** * Gets the quad light's specific settings as a SettingManager . * @return settings. */ [[nodiscard]] core::SettingManager getSettings() const override; /** * Settings setter using a SettingManager . * @param s - settings. */ void setSettings(const core::SettingManager &s) override; /** * Transformations setter using a SettingManager . * @param t - transformations. */ void setTransformations(const core::SettingManager &t) override; float width() const { return m_width; } void setWidth(float w); float height() const { return m_height; } void setHeight(float h); /** * Intensity getter. * @return intensity. */ [[nodiscard]] float intensity() const { return m_intensity; } /** * Intensity ref getter. * @return ref to intensity. */ float &intensity() { return m_intensity; } /** * Loads this light to a target shader as a uniform struct. * @param shader - shader to load the light to. * @param index - index of the light in its list. */ void loadToShader(const core::ShaderProgram &shader, int index) const override; /** * Accepts a DrawableVisitor. * @param visitor - visitor. */ void accept(DrawableVisitor *visitor) override; /** * Gets the type of drawable. * @return Type::PointLight . */ Type getType() const override { return Type::QuadLight; } void update() override { createQuadLight(); } private: std::vector<glm::vec3> points() const; std::vector<glm::vec3> transformedPoints() const; void createQuadLight(); glm::vec3 m_posBase; glm::vec3 m_xDir; glm::vec3 m_yDir; glm::vec3 m_xDirBase; glm::vec3 m_yDirBase; float m_width; float m_height; float m_intensity; static int m_nrQuadLight; }; } // namespace daft::engine
26.20155
119
0.596154
DaftMat
5969c9ba2cccb63ef5754687545e6ff6acd0c737
106,008
cpp
C++
coreLibrary_300/source/meshUtil/dgMeshEffect1.cpp
wivlaro/newton-dynamics
2bafd29aea919f237e56784510db1cb8011d0f40
[ "Zlib" ]
null
null
null
coreLibrary_300/source/meshUtil/dgMeshEffect1.cpp
wivlaro/newton-dynamics
2bafd29aea919f237e56784510db1cb8011d0f40
[ "Zlib" ]
null
null
null
coreLibrary_300/source/meshUtil/dgMeshEffect1.cpp
wivlaro/newton-dynamics
2bafd29aea919f237e56784510db1cb8011d0f40
[ "Zlib" ]
null
null
null
/* Copyright (c) <2003-2011> <Julio Jerez, Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * * 3. This notice may not be removed or altered from any source distribution. */ #include "dgPhysicsStdafx.h" #include "dgBody.h" #include "dgWorld.h" #include "dgMeshEffect.h" #include "dgCollisionBVH.h" #include "dgCollisionCompound.h" #include "dgCollisionConvexHull.h" dgMeshEffect::dgMeshBVH::dgFitnessList::dgFitnessList (dgMemoryAllocator* const allocator) :dgTree <dgMeshBVHNode*, dgMeshBVHNode*>(allocator) { } dgFloat64 dgMeshEffect::dgMeshBVH::dgFitnessList::TotalCost () const { dgFloat64 cost = dgFloat32 (0.0f); Iterator iter (*this); for (iter.Begin(); iter; iter ++) { dgTreeNode* const node = iter.GetNode(); dgMeshBVHNode* const box = node->GetInfo(); cost += box->m_area; } return cost; } dgMeshEffect::dgMeshBVH::dgMeshBVHNode::dgMeshBVHNode (const dgMeshEffect* const mesh, dgEdge* const face, void* const userData) :m_area(dgFloat32 (0.0f)) ,m_face (face) ,m_userData(userData) ,m_left (NULL) ,m_right(NULL) ,m_parent(NULL) { dgBigVector p0(1.0e30, 1.0e30, 1.0e30, 0.0); dgBigVector p1(-1.0e30, -1.0e30, -1.0e30, 0.0); const dgBigVector* const points = (dgBigVector*) mesh->GetVertexPool(); dgEdge* ptr = m_face; do { dgInt32 i = ptr->m_incidentVertex; const dgBigVector& p = points[i]; p0.m_x = dgMin(p.m_x, p0.m_x); p0.m_y = dgMin(p.m_y, p0.m_y); p0.m_z = dgMin(p.m_z, p0.m_z); p1.m_x = dgMax(p.m_x, p1.m_x); p1.m_y = dgMax(p.m_y, p1.m_y); p1.m_z = dgMax(p.m_z, p1.m_z); ptr = ptr->m_next; } while (ptr != face); SetBox (dgVector (dgFloat32 (p0.m_x) - dgFloat32 (0.1f), dgFloat32 (p0.m_y) - dgFloat32 (0.1f), dgFloat32 (p0.m_z) - dgFloat32 (0.1f), 0.0f), dgVector (dgFloat32 (p1.m_x) + dgFloat32 (0.1f), dgFloat32 (p1.m_y) + dgFloat32 (0.1f), dgFloat32 (p1.m_z) + dgFloat32 (0.1f), 0.0f)); } dgMeshEffect::dgMeshBVH::dgMeshBVHNode::dgMeshBVHNode (dgMeshBVHNode* const left, dgMeshBVHNode* const right) :m_area(dgFloat32 (0.0f)) ,m_face (NULL) ,m_userData(NULL) ,m_left (left) ,m_right(right) ,m_parent(NULL) { m_left->m_parent = this; m_right->m_parent = this; dgVector p0 (dgMin (left->m_p0.m_x, right->m_p0.m_x), dgMin (left->m_p0.m_y, right->m_p0.m_y), dgMin (left->m_p0.m_z, right->m_p0.m_z), dgFloat32 (0.0f)); dgVector p1 (dgMax (left->m_p1.m_x, right->m_p1.m_x), dgMax (left->m_p1.m_y, right->m_p1.m_y), dgMax (left->m_p1.m_z, right->m_p1.m_z), dgFloat32 (0.0f)); SetBox(p0, p1); } dgMeshEffect::dgMeshBVH::dgMeshBVHNode::~dgMeshBVHNode () { if (m_left) { delete m_left; } if (m_right) { delete m_right; } } void dgMeshEffect::dgMeshBVH::dgMeshBVHNode::SetBox (const dgVector& p0, const dgVector& p1) { m_p0 = p0; m_p1 = p1; m_p0.m_w = 0.0f; m_p1.m_w = 0.0f; dgVector size ((m_p1 - m_p0).Scale3 (dgFloat32 (0.5f))); dgVector size1(size.m_y, size.m_z, size.m_x, dgFloat32 (0.0f)); m_area = size % size1; } dgMeshEffect::dgMeshBVH::dgMeshBVH (dgMeshEffect* const mesh) :m_mesh(mesh) ,m_rootNode(NULL) ,m_fitness(m_mesh->GetAllocator()) { } dgMeshEffect::dgMeshBVH::~dgMeshBVH() { Cleanup (); } dgMeshEffect* dgMeshEffect::CreateFromSerialization (dgMemoryAllocator* const allocator, dgDeserialize deserialization, void* const userData) { return new (allocator) dgMeshEffect(allocator, deserialization, userData); } void dgMeshEffect::Serialize (dgSerialize callback, void* const userData) const { dgInt32 faceCount = 0; dgTree<dgEdge*, dgEdge*>filter(GetAllocator()); Iterator iter (*this); for (iter.Begin(); iter; iter ++) { dgEdge* const face = &iter.GetNode()->GetInfo(); if (!filter.Find(face) && (face->m_incidentFace > 0)) { faceCount ++; dgEdge* edge = face; do { filter.Insert(edge, edge); edge = edge->m_next; } while (edge != face); } } callback (userData, &faceCount, sizeof (dgInt32)); callback (userData, &m_pointCount, sizeof (dgInt32)); callback (userData, &m_atribCount, sizeof (dgInt32)); callback (userData, &m_atribCount, sizeof (dgInt32)); callback (userData, m_points, m_pointCount * sizeof (dgBigVector)); callback (userData, m_attrib, m_atribCount * sizeof (dgVertexAtribute)); filter.RemoveAll(); for (iter.Begin(); iter; iter ++) { dgEdge* const face = &iter.GetNode()->GetInfo(); if (!filter.Find(face) && (face->m_incidentFace > 0)) { dgInt32 indices[1024]; dgInt64 attibuteIndex[1024]; dgInt32 vertexCount = 0; dgEdge* edge = face; do { indices[vertexCount] = edge->m_incidentVertex; attibuteIndex[vertexCount] = edge->m_userData; vertexCount ++; filter.Insert(edge, edge); edge = edge->m_next; } while (edge != face); callback (userData, &vertexCount, sizeof (dgInt32)); callback (userData, indices, vertexCount * sizeof (dgInt32)); callback (userData, attibuteIndex, vertexCount * sizeof (dgInt64)); } } } void dgMeshEffect::dgMeshBVH::Build () { for (void* faceNode = m_mesh->GetFirstFace (); faceNode; faceNode = m_mesh->GetNextFace(faceNode)) { if (!m_mesh->IsFaceOpen(faceNode)) { dgEdge* const face = &((dgTreeNode*)faceNode)->GetInfo(); AddFaceNode(face, NULL); } } ImproveNodeFitness (); } void dgMeshEffect::dgMeshBVH::Cleanup () { if (m_rootNode) { delete m_rootNode; } } dgFloat32 dgMeshEffect::dgMeshBVH::CalculateSurfaceArea (dgMeshBVHNode* const node0, dgMeshBVHNode* const node1, dgVector& minBox, dgVector& maxBox) const { minBox = dgVector (dgMin (node0->m_p0.m_x, node1->m_p0.m_x), dgMin (node0->m_p0.m_y, node1->m_p0.m_y), dgMin (node0->m_p0.m_z, node1->m_p0.m_z), dgFloat32 (0.0f)); maxBox = dgVector (dgMax (node0->m_p1.m_x, node1->m_p1.m_x), dgMax (node0->m_p1.m_y, node1->m_p1.m_y), dgMax (node0->m_p1.m_z, node1->m_p1.m_z), dgFloat32 (0.0f)); dgVector side0 ((maxBox - minBox).Scale3 (dgFloat32 (0.5f))); dgVector side1 (side0.m_y, side0.m_z, side0.m_x, dgFloat32 (0.0f)); return side0 % side1; } void dgMeshEffect::dgMeshBVH::ImproveNodeFitness (dgMeshBVHNode* const node) { dgAssert (node->m_left); dgAssert (node->m_right); if (node->m_parent) { if (node->m_parent->m_left == node) { dgFloat32 cost0 = node->m_area; dgVector cost1P0; dgVector cost1P1; dgFloat32 cost1 = CalculateSurfaceArea (node->m_right, node->m_parent->m_right, cost1P0, cost1P1); dgVector cost2P0; dgVector cost2P1; dgFloat32 cost2 = CalculateSurfaceArea (node->m_left, node->m_parent->m_right, cost2P0, cost2P1); if ((cost1 <= cost0) && (cost1 <= cost2)) { dgMeshBVHNode* const parent = node->m_parent; node->m_p0 = parent->m_p0; node->m_p1 = parent->m_p1; node->m_area = parent->m_area; if (parent->m_parent) { if (parent->m_parent->m_left == parent) { parent->m_parent->m_left = node; } else { dgAssert (parent->m_parent->m_right == parent); parent->m_parent->m_right = node; } } else { m_rootNode = node; } node->m_parent = parent->m_parent; parent->m_parent = node; node->m_right->m_parent = parent; parent->m_left = node->m_right; node->m_right = parent; parent->m_p0 = cost1P0; parent->m_p1 = cost1P1; parent->m_area = cost1; } else if ((cost2 <= cost0) && (cost2 <= cost1)) { dgMeshBVHNode* const parent = node->m_parent; node->m_p0 = parent->m_p0; node->m_p1 = parent->m_p1; node->m_area = parent->m_area; if (parent->m_parent) { if (parent->m_parent->m_left == parent) { parent->m_parent->m_left = node; } else { dgAssert (parent->m_parent->m_right == parent); parent->m_parent->m_right = node; } } else { m_rootNode = node; } node->m_parent = parent->m_parent; parent->m_parent = node; node->m_left->m_parent = parent; parent->m_left = node->m_left; node->m_left = parent; parent->m_p0 = cost2P0; parent->m_p1 = cost2P1; parent->m_area = cost2; } } else { dgFloat32 cost0 = node->m_area; dgVector cost1P0; dgVector cost1P1; dgFloat32 cost1 = CalculateSurfaceArea (node->m_left, node->m_parent->m_left, cost1P0, cost1P1); dgVector cost2P0; dgVector cost2P1; dgFloat32 cost2 = CalculateSurfaceArea (node->m_right, node->m_parent->m_left, cost2P0, cost2P1); if ((cost1 <= cost0) && (cost1 <= cost2)) { dgMeshBVHNode* const parent = node->m_parent; node->m_p0 = parent->m_p0; node->m_p1 = parent->m_p1; node->m_area = parent->m_area; if (parent->m_parent) { if (parent->m_parent->m_left == parent) { parent->m_parent->m_left = node; } else { dgAssert (parent->m_parent->m_right == parent); parent->m_parent->m_right = node; } } else { m_rootNode = node; } node->m_parent = parent->m_parent; parent->m_parent = node; node->m_left->m_parent = parent; parent->m_right = node->m_left; node->m_left = parent; parent->m_p0 = cost1P0; parent->m_p1 = cost1P1; parent->m_area = cost1; } else if ((cost2 <= cost0) && (cost2 <= cost1)) { dgMeshBVHNode* const parent = node->m_parent; node->m_p0 = parent->m_p0; node->m_p1 = parent->m_p1; node->m_area = parent->m_area; if (parent->m_parent) { if (parent->m_parent->m_left == parent) { parent->m_parent->m_left = node; } else { dgAssert (parent->m_parent->m_right == parent); parent->m_parent->m_right = node; } } else { m_rootNode = node; } node->m_parent = parent->m_parent; parent->m_parent = node; node->m_right->m_parent = parent; parent->m_right = node->m_right; node->m_right = parent; parent->m_p0 = cost2P0; parent->m_p1 = cost2P1; parent->m_area = cost2; } } } // dgAssert (SanityCheck()); } void dgMeshEffect::dgMeshBVH::ImproveNodeFitness () { dgFloat64 cost0 = m_fitness.TotalCost (); dgFloat64 cost1 = cost0; do { cost0 = cost1; dgFitnessList::Iterator iter (m_fitness); for (iter.Begin(); iter; iter ++) { dgFitnessList::dgTreeNode* const node = iter.GetNode(); ImproveNodeFitness (node->GetInfo()); } cost1 = m_fitness.TotalCost (); } while (cost1 < (dgFloat32 (0.95f)) * cost0); } dgMeshEffect::dgMeshBVH::dgMeshBVHNode* dgMeshEffect::dgMeshBVH::AddFaceNode (dgEdge* const face, void* const userData) { dgMemoryAllocator* const allocator = m_mesh->GetAllocator(); dgMeshBVHNode* const newNode = new (allocator) dgMeshBVHNode (m_mesh, face, userData); if (!m_rootNode) { m_rootNode = newNode; } else { dgVector p0; dgVector p1; dgMeshBVHNode* sibling = m_rootNode; dgFloat32 surfaceArea = dgMeshBVH::CalculateSurfaceArea (newNode, sibling, p0, p1); while(sibling->m_left && sibling->m_right) { if (surfaceArea > sibling->m_area) { break; } sibling->SetBox (p0, p1); dgVector leftP0; dgVector leftP1; dgFloat32 leftSurfaceArea = CalculateSurfaceArea (newNode, sibling->m_left, leftP0, leftP1); dgVector rightP0; dgVector rightP1; dgFloat32 rightSurfaceArea = CalculateSurfaceArea (newNode, sibling->m_right, rightP0, rightP1); if (leftSurfaceArea < rightSurfaceArea) { sibling = sibling->m_left; p0 = leftP0; p1 = leftP1; surfaceArea = leftSurfaceArea; } else { sibling = sibling->m_right; p0 = rightP0; p1 = rightP1; surfaceArea = rightSurfaceArea; } } if (!sibling->m_parent) { m_rootNode = new (allocator) dgMeshBVHNode (sibling, newNode); m_fitness.Insert(m_rootNode, m_rootNode); } else { dgMeshBVHNode* const parent = sibling->m_parent; if (parent->m_left == sibling) { dgMeshBVHNode* const node = new (allocator) dgMeshBVHNode (sibling, newNode); m_fitness.Insert(node, node); parent->m_left = node; node->m_parent = parent; } else { dgAssert (parent->m_right == sibling); dgMeshBVHNode* const node = new (allocator) dgMeshBVHNode (sibling, newNode); m_fitness.Insert(node, node); parent->m_right = node; node->m_parent = parent; } } } return newNode; } void dgMeshEffect::dgMeshBVH::RemoveNode (dgMeshBVHNode* const treeNode) { if (!treeNode->m_parent) { delete (m_rootNode); m_rootNode = NULL; } else if (!treeNode->m_parent->m_parent) { dgMeshBVHNode* const root = m_rootNode; if (treeNode->m_parent->m_left == treeNode) { m_rootNode = treeNode->m_parent->m_right; treeNode->m_parent->m_right = NULL; } else { dgAssert (treeNode->m_parent->m_right == treeNode); m_rootNode = treeNode->m_parent->m_left; treeNode->m_parent->m_left= NULL; } m_rootNode->m_parent = NULL; dgAssert (m_fitness.Find(root)); m_fitness.Remove(root); delete (root); } else { dgMeshBVHNode* const root = treeNode->m_parent->m_parent; if (treeNode->m_parent == root->m_left) { if (treeNode->m_parent->m_right == treeNode) { root->m_left = treeNode->m_parent->m_left; treeNode->m_parent->m_left = NULL; } else { dgAssert (treeNode->m_parent->m_left == treeNode); root->m_left = treeNode->m_parent->m_right; treeNode->m_parent->m_right = NULL; } root->m_left->m_parent = root; } else { if (treeNode->m_parent->m_right == treeNode) { root->m_right = treeNode->m_parent->m_left; treeNode->m_parent->m_left = NULL; } else { dgAssert (treeNode->m_parent->m_left == treeNode); root->m_right = treeNode->m_parent->m_right; treeNode->m_parent->m_right = NULL; } root->m_right->m_parent = root; } dgAssert (m_fitness.Find(treeNode->m_parent)); m_fitness.Remove(treeNode->m_parent); delete (treeNode->m_parent); } //dgAssert (SanityCheck()); } bool dgMeshEffect::dgMeshBVH::SanityCheck() const { #ifdef _DEBUG dgAssert (m_mesh->Sanity ()); if (!m_rootNode) { return false; } if ((!m_rootNode->m_left && m_rootNode->m_right) || (m_rootNode->m_left && !m_rootNode->m_right)) { return false; } if (m_rootNode->m_left && m_rootNode->m_right) { if (m_rootNode->m_left->m_parent != m_rootNode) { return false; } if (m_rootNode->m_right->m_parent != m_rootNode) { return false; } dgMeshBVHNode* stackPool[DG_MESH_EFFECT_BVH_STACK_DEPTH]; dgInt32 stack = 2; stackPool[0] = m_rootNode->m_left; stackPool[1] = m_rootNode->m_right; while (stack) { stack --; dgMeshBVHNode* const node = stackPool[stack]; if ((node->m_parent->m_left != node) && (node->m_parent->m_right != node)){ return false; } if (node->m_left) { dgAssert (node->m_right); stackPool[stack] = node->m_left; stack++; dgAssert (stack < dgInt32 (sizeof (stackPool) / sizeof (dgMeshBVHNode*))); stackPool[stack] = node->m_right; stack++; dgAssert (stack < dgInt32 (sizeof (stackPool) / sizeof (dgMeshBVHNode*))); } } } #endif return true; } void dgMeshEffect::dgMeshBVH::GetOverlapNodes (dgList<dgMeshBVHNode*>& overlapNodes, const dgBigVector& p0, const dgBigVector& p1) const { dgMeshBVHNode* stackPool[DG_MESH_EFFECT_BVH_STACK_DEPTH]; dgInt32 stack = 1; stackPool[0] = m_rootNode; dgVector l0(p0); dgVector l1(p1); while (stack) { stack --; dgMeshBVHNode* const me = stackPool[stack]; if (me && dgOverlapTest (me->m_p0, me->m_p1, l0, l1)) { if (!me->m_left) { dgAssert (!me->m_right); overlapNodes.Append(me); } else { dgAssert (me->m_left); dgAssert (me->m_right); stackPool[stack] = me->m_left; stack++; dgAssert (stack < dgInt32 (sizeof (stackPool) / sizeof (dgMeshBVHNode*))); stackPool[stack] = me->m_right; stack++; dgAssert (stack < dgInt32 (sizeof (stackPool) / sizeof (dgMeshBVHNode*))); } } } } dgFloat64 dgMeshEffect::dgMeshBVH::VertexRayCast (const dgBigVector& p0, const dgBigVector& p1) const { dgAssert (0); /* dgMeshBVHNode* stackPool[DG_MESH_EFFECT_BVH_STACK_DEPTH]; dgInt32 stack = 1; stackPool[0] = m_rootNode; dgVector l0(p0); dgVector l1(p1); dgBigVector p1p0 (p1 - p0); dgFloat64 den = p1p0 % p1p0; const dgBigVector* const points = (dgBigVector*) m_mesh->GetVertexPool(); while (stack) { stack --; dgMeshBVHNode* const me = stackPool[stack]; if (me && dgOverlapTest (me->m_p0, me->m_p1, l0, l1)) { if (!me->m_left) { dgAssert (!me->m_right); dgEdge* ptr = me->m_face; do { dgInt32 index = ptr->m_incidentVertex; const dgBigVector& q0 = points[index]; dgBigVector q0p0 (q0 - p0); dgFloat64 alpha = q0p0 % p1p0; if ((alpha > (DG_BOOLEAN_ZERO_TOLERANCE * den)) && (alpha < (den - DG_BOOLEAN_ZERO_TOLERANCE))) { dgBigVector dist (p0 + p1p0.Scale3 (alpha / den) - q0); dgFloat64 dist2 = dist % dist; if (dist2 < (DG_BOOLEAN_ZERO_TOLERANCE * DG_BOOLEAN_ZERO_TOLERANCE)) { return alpha / den; } } ptr = ptr->m_next; } while (ptr != me->m_face); } else { dgAssert (me->m_left); dgAssert (me->m_right); stackPool[stack] = me->m_left; stack++; dgAssert (stack < dgInt32 (sizeof (stackPool) / sizeof (dgMeshBVHNode*))); stackPool[stack] = me->m_right; stack++; dgAssert (stack < dgInt32 (sizeof (stackPool) / sizeof (dgMeshBVHNode*))); } } } */ return 1.2f; } bool dgMeshEffect::dgMeshBVH::RayRayIntersect (dgEdge* const edge, const dgMeshEffect* const otherMesh, dgEdge* const otherEdge, dgFloat64& param, dgFloat64& otherParam) const { dgAssert (0); /* dgBigVector ray_p0 (m_mesh->m_points[edge->m_incidentVertex]); dgBigVector ray_p1 (m_mesh->m_points[edge->m_twin->m_incidentVertex]); dgBigVector ray_q0 (otherMesh->m_points[otherEdge->m_incidentVertex]); dgBigVector ray_q1 (otherMesh->m_points[otherEdge->m_twin->m_incidentVertex]); dgBigVector p1p0 (ray_p1 - ray_p0); dgBigVector q1q0 (ray_q1 - ray_q0); dgBigVector p0q0 (ray_p0 - ray_q0); dgFloat64 a = p1p0 % p1p0; // always >= 0 dgFloat64 c = q1q0 % q1q0; // always >= 0 dgFloat64 b = p1p0 % q1q0; dgFloat64 d = (p1p0 % p0q0); dgFloat64 e = (q1q0 % p0q0); dgFloat64 den = a * c - b * b; // always >= 0 // compute the line parameters of the two closest points if (den < DG_BOOLEAN_ZERO_TOLERANCE) { // the lines are almost parallel return false; } else { // get the closest points on the infinite lines dgFloat64 t = b * e - c * d; dgFloat64 s = a * e - b * d; if (t < (DG_BOOLEAN_ZERO_TOLERANCE * den) || (s < (DG_BOOLEAN_ZERO_TOLERANCE * den)) || (t > (den - DG_BOOLEAN_ZERO_TOLERANCE)) || (s > (den - DG_BOOLEAN_ZERO_TOLERANCE))) { return false; } //dgBigVector normal (p1p0 * q1q0); //dgFloat64 dist0 = normal % (p1p0.Scale3 (t / den) - ray_p0); //dgFloat64 dist1 = normal % (q1q0.Scale3 (s / den) - ray_q0); dgBigVector r0 = ray_p0 + p1p0.Scale3 (t / den); dgBigVector r1 = ray_q0 + q1q0.Scale3 (s / den); dgBigVector r1r0 (r1 - r0); dgFloat64 dist2 = r1r0 % r1r0; if (dist2 > (DG_BOOLEAN_ZERO_TOLERANCE * DG_BOOLEAN_ZERO_TOLERANCE)) { return false; } param = t / den; otherParam = s / den; } */ return true; } dgFloat64 dgMeshEffect::dgMeshBVH::RayFaceIntersect (const dgMeshBVHNode* const faceNode, const dgBigVector& p0, const dgBigVector& p1, bool doubleSidedFaces) const { dgBigVector normal (m_mesh->FaceNormal(faceNode->m_face, m_mesh->GetVertexPool(), sizeof(dgBigVector))); dgBigVector diff (p1 - p0); dgFloat64 tOut = 2.0f; const dgBigVector* const points = (dgBigVector*) m_mesh->GetVertexPool(); dgFloat64 dir = normal % diff; if (dir < 0.0f) { dgEdge* ptr = faceNode->m_face; do { dgInt32 index0 = ptr->m_incidentVertex; dgInt32 index1 = ptr->m_next->m_incidentVertex; dgBigVector p0v0 (points[index0] - p0); dgBigVector p0v1 (points[index1] - p0); dgFloat64 alpha = (diff * p0v1) % p0v0; if (alpha <= 0.0f) { return 1.2f; } ptr = ptr->m_next; } while (ptr != faceNode->m_face); dgInt32 index0 = ptr->m_incidentVertex; dgBigVector p0v0 (points[index0] - p0); tOut = normal % p0v0; dgFloat64 dist = normal % diff; tOut = tOut / dist; } else if (doubleSidedFaces && (dir > 0.0f)) { dgEdge* ptr = faceNode->m_face; do { dgInt32 index0 = ptr->m_incidentVertex; dgInt32 index1 = ptr->m_prev->m_incidentVertex; dgBigVector p0v0 (points[index0] - p0); dgBigVector p0v1 (points[index1] - p0); dgFloat64 alpha = (diff * p0v1) % p0v0; if (alpha <= 0.0f) { return 1.2f; } ptr = ptr->m_prev; } while (ptr != faceNode->m_face); dgInt32 index0 = ptr->m_incidentVertex; dgBigVector p0v0 (points[index0] - p0); tOut = normal % p0v0; dgFloat64 dist = normal % diff; tOut = tOut / dist; } if (tOut < 1.e-12f) { tOut = 2.0f; } else if (tOut > (1.0 - 1.e-12f)) { tOut = 2.0f; } return tOut; } dgMeshEffect::dgMeshBVH::dgMeshBVHNode* dgMeshEffect::dgMeshBVH::FaceRayCast (const dgBigVector& p0, const dgBigVector& p1, dgFloat64& paramOut, bool doubleSidedFaces) const { dgMeshBVHNode* stackPool[DG_MESH_EFFECT_BVH_STACK_DEPTH]; dgInt32 stack = 1; dgMeshBVHNode* node = NULL; stackPool[0] = m_rootNode; dgFloat64 maxParam = dgFloat32 (1.2f); dgVector l0(p0); dgVector l1(p1); l0 = l0 & dgVector::m_triplexMask; l1 = l1 & dgVector::m_triplexMask; dgFastRayTest ray (l0, l1); while (stack) { stack --; dgMeshBVHNode* const me = stackPool[stack]; if (me && ray.BoxTest (me->m_p0, me->m_p1)) { if (!me->m_left) { dgAssert (!me->m_right); dgFloat64 param = RayFaceIntersect (me, p0, p1, doubleSidedFaces); if (param < maxParam) { node = me; maxParam = param; } } else { dgAssert (me->m_left); dgAssert (me->m_right); stackPool[stack] = me->m_left; stack++; dgAssert (stack < dgInt32 (sizeof (stackPool) / sizeof (dgMeshBVHNode*))); stackPool[stack] = me->m_right; stack++; dgAssert (stack < dgInt32 (sizeof (stackPool) / sizeof (dgMeshBVHNode*))); } } } paramOut = maxParam; return node; } dgMeshEffect::dgMeshEffect () :dgPolyhedra(NULL) { dgAssert (0); } dgMeshEffect::dgMeshEffect(dgMemoryAllocator* const allocator) :dgPolyhedra(allocator) { Init(); } dgMeshEffect::dgMeshEffect (dgMemoryAllocator* const allocator, const dgMatrix& planeMatrix, dgFloat32 witdth, dgFloat32 breadth, dgInt32 material, const dgMatrix& textureMatrix0, const dgMatrix& textureMatrix1) :dgPolyhedra(allocator) { dgInt32 index[4]; dgInt64 attrIndex[4]; dgBigVector face[4]; Init(); face[0] = dgBigVector (dgFloat32 (0.0f), -witdth, -breadth, dgFloat32 (0.0f)); face[1] = dgBigVector (dgFloat32 (0.0f), witdth, -breadth, dgFloat32 (0.0f)); face[2] = dgBigVector (dgFloat32 (0.0f), witdth, breadth, dgFloat32 (0.0f)); face[3] = dgBigVector (dgFloat32 (0.0f), -witdth, breadth, dgFloat32 (0.0f)); for (dgInt32 i = 0; i < 4; i ++) { dgBigVector uv0 (textureMatrix0.TransformVector(face[i])); dgBigVector uv1 (textureMatrix1.TransformVector(face[i])); m_points[i] = planeMatrix.TransformVector(face[i]); m_attrib[i].m_vertex.m_x = m_points[i].m_x; m_attrib[i].m_vertex.m_y = m_points[i].m_y; m_attrib[i].m_vertex.m_z = m_points[i].m_z; m_attrib[i].m_vertex.m_w = dgFloat64 (0.0f); m_attrib[i].m_normal_x = planeMatrix.m_front.m_x; m_attrib[i].m_normal_y = planeMatrix.m_front.m_y; m_attrib[i].m_normal_z = planeMatrix.m_front.m_z; m_attrib[i].m_u0 = uv0.m_y; m_attrib[i].m_v0 = uv0.m_z; m_attrib[i].m_u1 = uv1.m_y; m_attrib[i].m_v1 = uv1.m_z; m_attrib[i].m_material = material; index[i] = i; attrIndex[i] = i; } m_pointCount = 4; m_atribCount = 4; BeginFace(); AddFace (4, index, attrIndex); EndFace(); } dgMeshEffect::dgMeshEffect(dgPolyhedra& mesh, const dgMeshEffect& source) :dgPolyhedra (mesh) { m_pointCount = source.m_pointCount; m_maxPointCount = source.m_maxPointCount; m_points = (dgBigVector*) GetAllocator()->MallocLow(dgInt32 (m_maxPointCount * sizeof(dgBigVector))); memcpy (m_points, source.m_points, m_pointCount * sizeof(dgBigVector)); m_atribCount = source.m_atribCount; m_maxAtribCount = source.m_maxAtribCount; m_attrib = (dgVertexAtribute*) GetAllocator()->MallocLow(dgInt32 (m_maxAtribCount * sizeof(dgVertexAtribute))); memcpy (m_attrib, source.m_attrib, m_atribCount * sizeof(dgVertexAtribute)); } dgMeshEffect::dgMeshEffect(const dgMeshEffect& source) :dgPolyhedra (source) { m_pointCount = source.m_pointCount; m_maxPointCount = source.m_maxPointCount; m_points = (dgBigVector*) GetAllocator()->MallocLow(dgInt32 (m_maxPointCount * sizeof(dgBigVector))); memcpy (m_points, source.m_points, m_pointCount * sizeof(dgBigVector)); m_atribCount = source.m_atribCount; m_maxAtribCount = source.m_maxAtribCount; m_attrib = (dgVertexAtribute*) GetAllocator()->MallocLow(dgInt32 (m_maxAtribCount * sizeof(dgVertexAtribute))); memcpy (m_attrib, source.m_attrib, m_atribCount * sizeof(dgVertexAtribute)); } dgMeshEffect::dgMeshEffect(dgCollisionInstance* const collision) :dgPolyhedra (collision->GetAllocator()) { class dgMeshEffectBuilder { public: dgMeshEffectBuilder () { m_brush = 0; m_faceCount = 0; m_vertexCount = 0; m_maxFaceCount = 32; m_maxVertexCount = 32; m_vertex = (dgVector*) dgMallocStack(m_maxVertexCount * sizeof(dgVector)); m_faceIndexCount = (dgInt32*) dgMallocStack(m_maxFaceCount * sizeof(dgInt32)); } ~dgMeshEffectBuilder () { dgFreeStack (m_faceIndexCount); dgFreeStack (m_vertex); } static void GetShapeFromCollision (void* userData, dgInt32 vertexCount, const dgFloat32* faceVertex, dgInt32 id) { dgInt32 vertexIndex; dgMeshEffectBuilder& builder = *((dgMeshEffectBuilder*)userData); if (builder.m_faceCount >= builder.m_maxFaceCount) { dgInt32* index; builder.m_maxFaceCount *= 2; index = (dgInt32*) dgMallocStack(builder.m_maxFaceCount * sizeof(dgInt32)); memcpy (index, builder.m_faceIndexCount, builder.m_faceCount * sizeof(dgInt32)); dgFreeStack(builder.m_faceIndexCount); builder.m_faceIndexCount = index; } builder.m_faceIndexCount[builder.m_faceCount] = vertexCount; builder.m_faceCount = builder.m_faceCount + 1; vertexIndex = builder.m_vertexCount; dgFloat32 brush = dgFloat32 (builder.m_brush); for (dgInt32 i = 0; i < vertexCount; i ++) { if (vertexIndex >= builder.m_maxVertexCount) { builder.m_maxVertexCount *= 2; dgVector* const points = (dgVector*) dgMallocStack(builder.m_maxVertexCount * sizeof(dgVector)); memcpy (points, builder.m_vertex, vertexIndex * sizeof(dgVector)); dgFreeStack(builder.m_vertex); builder.m_vertex = points; } builder.m_vertex[vertexIndex].m_x = faceVertex[i * 3 + 0]; builder.m_vertex[vertexIndex].m_y = faceVertex[i * 3 + 1]; builder.m_vertex[vertexIndex].m_z = faceVertex[i * 3 + 2]; builder.m_vertex[vertexIndex].m_w = brush; vertexIndex ++; } builder.m_vertexCount = vertexIndex; } dgInt32 m_brush; dgInt32 m_vertexCount; dgInt32 m_maxVertexCount; dgInt32 m_faceCount; dgInt32 m_maxFaceCount; dgVector* m_vertex; dgInt32* m_faceIndexCount; }; dgMeshEffectBuilder builder; if (collision->IsType (dgCollision::dgCollisionCompound_RTTI)) { dgCollisionInfo collisionInfo; collision->GetCollisionInfo (&collisionInfo); dgInt32 brush = 0; dgMatrix matrix (collisionInfo.m_offsetMatrix); dgCollisionCompound* const compoundCollision = (dgCollisionCompound*) collision->GetChildShape(); for (dgTree<dgCollisionCompound::dgNodeBase*, dgInt32>::dgTreeNode* node = compoundCollision->GetFirstNode(); node; node = compoundCollision->GetNextNode(node)) { builder.m_brush = brush; brush ++; dgCollisionInstance* const childShape = compoundCollision->GetCollisionFromNode(node); childShape->DebugCollision (matrix, (dgCollision::OnDebugCollisionMeshCallback) dgMeshEffectBuilder::GetShapeFromCollision, &builder); } } else { dgMatrix matrix (dgGetIdentityMatrix()); collision->DebugCollision (matrix, (dgCollision::OnDebugCollisionMeshCallback) dgMeshEffectBuilder::GetShapeFromCollision, &builder); } dgStack<dgInt32>indexList (builder.m_vertexCount); dgVertexListToIndexList (&builder.m_vertex[0].m_x, sizeof (dgVector), sizeof (dgVector), 0, builder.m_vertexCount, &indexList[0], DG_VERTEXLIST_INDEXLIST_TOL); dgStack<dgInt32> materialIndex(builder.m_faceCount); dgStack<dgInt32> m_normalUVIndex(builder.m_vertexCount); dgVector normalUV(dgFloat32 (0.0f), dgFloat32 (0.0f), dgFloat32 (0.0f), dgFloat32 (0.0f)); memset (&materialIndex[0], 0, size_t (materialIndex.GetSizeInBytes())); memset (&m_normalUVIndex[0], 0, size_t (m_normalUVIndex.GetSizeInBytes())); Init(); BuildFromVertexListIndexList(builder.m_faceCount, builder.m_faceIndexCount, &materialIndex[0], &builder.m_vertex[0].m_x, sizeof (dgVector), &indexList[0], &normalUV.m_x, sizeof (dgVector), &m_normalUVIndex[0], &normalUV.m_x, sizeof (dgVector), &m_normalUVIndex[0], &normalUV.m_x, sizeof (dgVector), &m_normalUVIndex[0]); RepairTJoints(); CalculateNormals(dgFloat32 (45.0f * 3.141592f/180.0f)); } dgMeshEffect::dgMeshEffect(dgMemoryAllocator* const allocator, const char* const fileName) :dgPolyhedra (allocator) { class ParceOFF { public: enum Token { m_off, m_value, m_end, }; ParceOFF (FILE* const file) :m_file (file) { } Token GetToken(char* const buffer) const { while (!feof (m_file) && fscanf (m_file, "%s", buffer)) { if (buffer[0] == '#') { SkipLine(); } else { if (!_stricmp (buffer, "OFF")) { return m_off; } return m_value; } } return m_end; } char* SkipLine() const { char tmp[1024]; return fgets (tmp, sizeof (tmp), m_file); } dgInt32 GetInteger() const { char buffer[1024]; GetToken(buffer); return atoi (buffer); } dgFloat64 GetFloat() const { char buffer[1024]; GetToken(buffer); return atof (buffer); } FILE* m_file; }; Init(); FILE* const file = fopen (fileName, "rb"); if (file) { ParceOFF parcel (file); dgInt32 vertexCount = 0; dgInt32 faceCount = 0; // dgInt32 edgeCount = 0; char buffer[1024]; bool stillData = true; while (stillData) { ParceOFF::Token token = parcel.GetToken(buffer); switch (token) { case ParceOFF::m_off: { vertexCount = parcel.GetInteger(); faceCount = parcel.GetInteger(); // edgeCount = parcel.GetInteger(); parcel.SkipLine(); dgVertexAtribute attribute; memset (&attribute, 0, sizeof (dgVertexAtribute)); attribute.m_normal_y = 1.0f; //AddAtribute(attribute); for (dgInt32 i = 0; i < vertexCount; i ++) { //dgBigVector point; attribute.m_vertex.m_x = parcel.GetFloat(); attribute.m_vertex.m_y = parcel.GetFloat(); attribute.m_vertex.m_z = parcel.GetFloat(); attribute.m_vertex.m_w = 0.0; parcel.SkipLine(); //AddVertex(point); AddPoint(&attribute.m_vertex.m_x, 0); } BeginFace(); for (dgInt32 i = 0; i < faceCount; i ++) { dgInt32 face[256]; dgInt64 attrib[256]; dgInt32 faceVertexCount = parcel.GetInteger(); for (dgInt32 j = 0; j < faceVertexCount; j ++) { face[j] = parcel.GetInteger(); attrib[j] = face[j]; } parcel.SkipLine(); AddFace(faceVertexCount, face, attrib); } EndFace(); CalculateNormals (3.1416f * 30.0f / 180.0f); stillData = false; break; } default:; } } fclose (file); } } dgMeshEffect::dgMeshEffect (dgMemoryAllocator* const allocator, dgDeserialize deserialization, void* const userData) :dgPolyhedra (allocator) { dgInt32 faceCount; deserialization (userData, &faceCount, sizeof (dgInt32)); deserialization (userData, &m_pointCount, sizeof (dgInt32)); deserialization (userData, &m_atribCount, sizeof (dgInt32)); deserialization (userData, &m_atribCount, sizeof (dgInt32)); m_maxPointCount = m_pointCount; m_maxAtribCount = m_atribCount; m_points = (dgBigVector*) GetAllocator()->MallocLow(dgInt32 (m_pointCount * sizeof(dgBigVector))); m_attrib = (dgVertexAtribute*) GetAllocator()->MallocLow(dgInt32 (m_atribCount * sizeof(dgVertexAtribute))); deserialization (userData, m_points, m_pointCount * sizeof (dgBigVector)); deserialization (userData, m_attrib, m_atribCount * sizeof (dgVertexAtribute)); BeginFace(); for (dgInt32 i = 0; i < faceCount; i ++) { dgInt32 vertexCount; dgInt32 face[1024]; dgInt64 attrib[1024]; deserialization (userData, &vertexCount, sizeof (dgInt32)); deserialization (userData, face, vertexCount * sizeof (dgInt32)); deserialization (userData, attrib, vertexCount * sizeof (dgInt64)); AddFace (vertexCount, face, attrib); } EndFace(); } dgMeshEffect::~dgMeshEffect(void) { GetAllocator()->FreeLow (m_points); GetAllocator()->FreeLow (m_attrib); } void dgMeshEffect::BeginFace() { dgPolyhedra::BeginFace(); } void dgMeshEffect::EndFace () { dgPolyhedra::EndFace(); for (bool hasVertexCollision = true; hasVertexCollision;) { hasVertexCollision = false; const dgInt32 currentCount = m_pointCount; dgStack<dgInt8> verterCollision (currentCount); memset (&verterCollision[0], 0, verterCollision.GetSizeInBytes()); Iterator iter (*this); dgInt32 mark = IncLRU(); dgList<dgTreeNode*> collisionFound(GetAllocator()); for (iter.Begin(); iter; iter ++) { dgEdge* const edge = &iter.GetNode()->GetInfo(); if (edge->m_mark != mark) { if ((edge->m_incidentVertex < currentCount) && (verterCollision[edge->m_incidentVertex] == 0)) { verterCollision[edge->m_incidentVertex] = 1; } else { hasVertexCollision = true; collisionFound.Append(iter.GetNode()); } dgEdge* ptr = edge; do { ptr->m_mark = mark; ptr = ptr->m_twin->m_next; } while (ptr != edge); } } if (hasVertexCollision) { dgAssert (Sanity()); for (dgList<dgTreeNode*>::dgListNode* node = collisionFound.GetFirst(); node; node = node->GetNext()) { dgEdge* const edge = &node->GetInfo()->GetInfo(); // this is a vertex collision dgBigVector point (m_points[edge->m_incidentVertex]); point.m_w += dgFloat64 (1.0f); AddVertex (point); dgEdge* ptr = edge; do { ptr->m_incidentVertex = m_pointCount - 1; dgTreeNode* const edgeNode = GetNodeFromInfo (*ptr); dgPairKey edgeKey (ptr->m_incidentVertex, ptr->m_twin->m_incidentVertex); ReplaceKey (edgeNode, edgeKey.GetVal()); dgTreeNode* const twinNode = GetNodeFromInfo (*(ptr->m_twin)); dgPairKey twinKey (ptr->m_twin->m_incidentVertex, ptr->m_incidentVertex); ReplaceKey (twinNode, twinKey.GetVal()); ptr = ptr->m_twin->m_next; } while (ptr != edge); } dgAssert (Sanity()); } } } void dgMeshEffect::Init() { m_pointCount = 0; m_atribCount = 0; m_maxPointCount = DG_MESH_EFFECT_INITIAL_VERTEX_SIZE; m_maxAtribCount = DG_MESH_EFFECT_INITIAL_VERTEX_SIZE; m_points = (dgBigVector*) GetAllocator()->MallocLow(dgInt32 (m_maxPointCount * sizeof(dgBigVector))); m_attrib = (dgVertexAtribute*) GetAllocator()->MallocLow(dgInt32 (m_maxAtribCount * sizeof(dgVertexAtribute))); } void dgMeshEffect::Trace () const { for (dgInt32 i = 0; i < m_pointCount; i ++ ) { dgTrace (("%d-> %f %f %f\n", i, m_points[i].m_x, m_points[i].m_y, m_points[i].m_z)); } dgTree<dgEdge*, dgEdge*>filter(GetAllocator()); Iterator iter (*this); for (iter.Begin(); iter; iter ++) { dgEdge* const edge = &iter.GetNode()->GetInfo(); if (!filter.Find(edge)) { dgEdge* ptr = edge; do { filter.Insert(edge, ptr); dgTrace (("%d ", ptr->m_incidentVertex)); ptr = ptr->m_next; } while (ptr != edge); if (edge->m_incidentFace <= 0) { dgTrace (("open")); } dgTrace (("\n")); } } dgTrace (("\n")); }; void dgMeshEffect::SaveOFF (const char* const fileName) const { FILE* const file = fopen (fileName, "wb"); fprintf (file, "OFF\n"); dgInt32 faceCount = 0; dgTree<dgEdge*, dgEdge*>filter(GetAllocator()); Iterator iter (*this); for (iter.Begin(); iter; iter ++) { dgEdge* const face = &iter.GetNode()->GetInfo(); if (!filter.Find(face) && (face->m_incidentFace > 0)) { faceCount ++; dgEdge* edge = face; do { filter.Insert(edge, edge); edge = edge->m_next; } while (edge != face); } } fprintf (file, "%d %d 0\n", m_pointCount, faceCount); for (dgInt32 i = 0; i < m_pointCount; i ++) { fprintf (file, "%f %f %f\n", m_points[i].m_x, m_points[i].m_y, m_points[i].m_z); } filter.RemoveAll(); for (iter.Begin(); iter; iter ++) { dgEdge* const face = &iter.GetNode()->GetInfo(); if (!filter.Find(face) && (face->m_incidentFace > 0)) { dgInt32 indices[1024]; dgInt32 vertexCount = 0; dgEdge* edge = face; do { indices[vertexCount] = edge->m_incidentVertex; vertexCount ++; filter.Insert(edge, edge); edge = edge->m_next; } while (edge != face); fprintf (file, "%d", vertexCount); for (dgInt32 j = 0; j < vertexCount; j ++) { fprintf (file, " %d", indices[j]); } fprintf (file, "\n"); } } fclose (file); } void dgMeshEffect::Triangulate () { dgPolyhedra polygon(GetAllocator()); dgInt32 mark = IncLRU(); polygon.BeginFace(); dgPolyhedra::Iterator iter (*this); for (iter.Begin(); iter; iter ++){ dgEdge* const face = &(*iter); if ((face->m_mark != mark) && (face->m_incidentFace > 0)) { dgInt32 index[DG_MESH_EFFECT_POINT_SPLITED]; dgEdge* ptr = face; dgInt32 indexCount = 0; do { dgInt32 attribIndex = dgInt32 (ptr->m_userData); m_attrib[attribIndex].m_vertex.m_w = dgFloat64 (ptr->m_incidentVertex); ptr->m_mark = mark; index[indexCount] = attribIndex; indexCount ++; ptr = ptr->m_next; } while (ptr != face); polygon.AddFace(indexCount, index); } } polygon.EndFace(); dgPolyhedra leftOversOut(GetAllocator()); polygon.Triangulate(&m_attrib[0].m_vertex.m_x, sizeof (dgVertexAtribute), &leftOversOut); dgAssert (leftOversOut.GetCount() == 0); RemoveAll(); SetLRU (0); mark = polygon.IncLRU(); BeginFace(); dgPolyhedra::Iterator iter1 (polygon); for (iter1.Begin(); iter1; iter1 ++){ dgEdge* const face = &(*iter1); if ((face->m_mark != mark) && (face->m_incidentFace > 0)) { dgInt32 index[DG_MESH_EFFECT_POINT_SPLITED]; dgInt64 userData[DG_MESH_EFFECT_POINT_SPLITED]; dgEdge* ptr = face; dgInt32 indexCount = 0; do { ptr->m_mark = mark; index[indexCount] = dgInt32 (m_attrib[ptr->m_incidentVertex].m_vertex.m_w); userData[indexCount] = ptr->m_incidentVertex; indexCount ++; ptr = ptr->m_next; } while (ptr != face); AddFace(indexCount, index, userData); } } EndFace(); for (iter.Begin(); iter; iter ++){ dgEdge* const face = &(*iter); if (face->m_incidentFace > 0) { dgInt32 attribIndex = dgInt32 (face->m_userData); m_attrib[attribIndex].m_vertex.m_w = m_points[face->m_incidentVertex].m_w; } } RepairTJoints (); dgAssert (Sanity ()); } void dgMeshEffect::ConvertToPolygons () { dgPolyhedra polygon(GetAllocator()); dgInt32 mark = IncLRU(); polygon.BeginFace(); dgPolyhedra::Iterator iter (*this); for (iter.Begin(); iter; iter ++){ dgEdge* const face = &(*iter); if ((face->m_mark != mark) && (face->m_incidentFace > 0)) { dgInt32 index[DG_MESH_EFFECT_POINT_SPLITED]; dgEdge* ptr = face; dgInt32 indexCount = 0; do { dgInt32 attribIndex = dgInt32 (ptr->m_userData); m_attrib[attribIndex].m_vertex.m_w = dgFloat32 (ptr->m_incidentVertex); ptr->m_mark = mark; index[indexCount] = attribIndex; indexCount ++; ptr = ptr->m_next; } while (ptr != face); polygon.AddFace(indexCount, index); } } polygon.EndFace(); dgPolyhedra leftOversOut(GetAllocator()); polygon.ConvexPartition (&m_attrib[0].m_vertex.m_x, sizeof (dgVertexAtribute), &leftOversOut); dgAssert (leftOversOut.GetCount() == 0); RemoveAll(); SetLRU (0); mark = polygon.IncLRU(); BeginFace(); dgPolyhedra::Iterator iter1 (polygon); for (iter1.Begin(); iter1; iter1 ++){ dgEdge* const face = &(*iter1); if ((face->m_mark != mark) && (face->m_incidentFace > 0)) { dgInt32 index[DG_MESH_EFFECT_POINT_SPLITED]; dgInt64 userData[DG_MESH_EFFECT_POINT_SPLITED]; dgEdge* ptr = face; dgInt32 indexCount = 0; do { ptr->m_mark = mark; index[indexCount] = dgInt32 (m_attrib[ptr->m_incidentVertex].m_vertex.m_w); userData[indexCount] = ptr->m_incidentVertex; indexCount ++; ptr = ptr->m_next; } while (ptr != face); AddFace(indexCount, index, userData); } } EndFace(); for (iter.Begin(); iter; iter ++){ dgEdge* const face = &(*iter); if (face->m_incidentFace > 0) { dgInt32 attribIndex = dgInt32 (face->m_userData); m_attrib[attribIndex].m_vertex.m_w = m_points[face->m_incidentVertex].m_w; } } RepairTJoints (); dgAssert (Sanity ()); } void dgMeshEffect::RemoveUnusedVertices(dgInt32* const vertexMapResult) { dgPolyhedra polygon(GetAllocator()); dgStack<dgInt32>attrbMap(m_atribCount); dgStack<dgInt32>vertexMap(m_pointCount); dgInt32 savedPointCount = m_pointCount; memset(&vertexMap[0], -1, m_pointCount * sizeof (int)); memset(&attrbMap[0], -1, m_atribCount * sizeof (int)); int attribCount = 0; int vertexCount = 0; dgStack<dgBigVector>points (m_pointCount); dgStack<dgVertexAtribute>atributes (m_atribCount); dgInt32 mark = IncLRU(); polygon.BeginFace(); dgPolyhedra::Iterator iter (*this); for (iter.Begin(); iter; iter ++){ dgEdge* const face = &(*iter); if ((face->m_mark != mark) && (face->m_incidentFace > 0)) { dgInt32 vertex[DG_MESH_EFFECT_POINT_SPLITED]; dgInt64 userData[DG_MESH_EFFECT_POINT_SPLITED]; int indexCount = 0; dgEdge* ptr = face; do { ptr->m_mark = mark; int index = ptr->m_incidentVertex; if (vertexMap[index] == -1) { vertexMap[index] = vertexCount; points[vertexCount] = m_points[index]; vertexCount ++; } vertex[indexCount] = vertexMap[index]; index = int (ptr->m_userData); if (attrbMap[index] == -1) { attrbMap[index] = attribCount; atributes[attribCount] = m_attrib[index]; attribCount ++; } userData[indexCount] = attrbMap[index]; indexCount ++; ptr = ptr->m_next; } while (ptr != face); polygon.AddFace(indexCount, vertex, userData); } } polygon.EndFace(); m_pointCount = vertexCount; memcpy (&m_points[0].m_x, &points[0].m_x, m_pointCount * sizeof (dgBigVector)); m_atribCount = attribCount; memcpy (&m_attrib[0].m_vertex.m_x, &atributes[0].m_vertex.m_x, m_atribCount * sizeof (dgVertexAtribute)); RemoveAll(); SetLRU (0); BeginFace(); dgPolyhedra::Iterator iter1 (polygon); for (iter1.Begin(); iter1; iter1 ++){ dgEdge* const face = &(*iter1); if ((face->m_mark != mark) && (face->m_incidentFace > 0)) { dgInt32 index[DG_MESH_EFFECT_POINT_SPLITED]; dgInt64 userData[DG_MESH_EFFECT_POINT_SPLITED]; void AddPolygon (dgInt32 count, const dgFloat32* const vertexList, dgInt32 stride, dgInt32 material); dgEdge* ptr = face; dgInt32 indexCount = 0; do { ptr->m_mark = mark; index[indexCount] = ptr->m_incidentVertex; userData[indexCount] = dgInt64 (ptr->m_userData); indexCount ++; ptr = ptr->m_next; } while (ptr != face); AddFace(indexCount, index, userData); } } EndFace(); PackVertexArrays (); if (vertexMapResult) { memcpy (vertexMapResult, &vertexMap[0], savedPointCount * sizeof (dgInt32)); } } void dgMeshEffect::ApplyTransform (const dgMatrix& matrix) { matrix.TransformTriplex(&m_points[0].m_x, sizeof (dgBigVector), &m_points[0].m_x, sizeof (dgBigVector), m_pointCount); matrix.TransformTriplex(&m_attrib[0].m_vertex.m_x, sizeof (dgVertexAtribute), &m_attrib[0].m_vertex.m_x, sizeof (dgVertexAtribute), m_atribCount); dgMatrix rotation ((matrix.Inverse4x4()).Transpose4X4()); for (dgInt32 i = 0; i < m_atribCount; i ++) { dgVector n (dgFloat32 (m_attrib[i].m_normal_x), dgFloat32 (m_attrib[i].m_normal_y), dgFloat32 (m_attrib[i].m_normal_z), dgFloat32 (0.0f)); n = rotation.RotateVector(n); dgAssert ((n % n) > dgFloat32 (0.0f)); n = n.Scale3 (dgRsqrt (n % n)); m_attrib[i].m_normal_x = n.m_x; m_attrib[i].m_normal_y = n.m_y; m_attrib[i].m_normal_z = n.m_z; } } dgMatrix dgMeshEffect::CalculateOOBB (dgBigVector& size) const { dgObb sphere (CalculateSphere (&m_points[0].m_x, sizeof (dgBigVector), NULL)); size = sphere.m_size; size.m_w = 0.0f; // dgMatrix permuation (dgGetIdentityMatrix()); // permuation[0][0] = dgFloat32 (0.0f); // permuation[0][1] = dgFloat32 (1.0f); // permuation[1][1] = dgFloat32 (0.0f); // permuation[1][2] = dgFloat32 (1.0f); // permuation[2][2] = dgFloat32 (0.0f); // permuation[2][0] = dgFloat32 (1.0f); // while ((size.m_x < size.m_y) || (size.m_x < size.m_z)) { // sphere = permuation * sphere; // size = permuation.UnrotateVector(size); // } return sphere; } void dgMeshEffect::CalculateAABB (dgBigVector& minBox, dgBigVector& maxBox) const { dgBigVector minP ( dgFloat64 (1.0e15f), dgFloat64 (1.0e15f), dgFloat64 (1.0e15f), dgFloat64 (0.0f)); dgBigVector maxP (-dgFloat64 (1.0e15f), -dgFloat64 (1.0e15f), -dgFloat64 (1.0e15f), dgFloat64 (0.0f)); dgPolyhedra::Iterator iter (*this); const dgBigVector* const points = &m_points[0]; for (iter.Begin(); iter; iter ++){ dgEdge* const edge = &(*iter); const dgBigVector& p (points[edge->m_incidentVertex]); minP.m_x = dgMin (p.m_x, minP.m_x); minP.m_y = dgMin (p.m_y, minP.m_y); minP.m_z = dgMin (p.m_z, minP.m_z); maxP.m_x = dgMax (p.m_x, maxP.m_x); maxP.m_y = dgMax (p.m_y, maxP.m_y); maxP.m_z = dgMax (p.m_z, maxP.m_z); } minBox = minP; maxBox = maxP; } void dgMeshEffect::BeginPolygon () { m_pointCount = 0; m_atribCount = 0; RemoveAll(); BeginFace(); } void dgMeshEffect::AddAtribute (const dgVertexAtribute& attib) { if (m_atribCount >= m_maxAtribCount) { m_maxAtribCount *= 2; dgVertexAtribute* const attibArray = (dgVertexAtribute*) GetAllocator()->MallocLow(dgInt32 (m_maxAtribCount * sizeof(dgVertexAtribute))); memcpy (attibArray, m_attrib, m_atribCount * sizeof(dgVertexAtribute)); GetAllocator()->FreeLow(m_attrib); m_attrib = attibArray; } m_attrib[m_atribCount] = attib; dgBigVector n (attib.m_normal_x, attib.m_normal_y, attib.m_normal_z, dgFloat64 (0.0f)); dgFloat64 mag2 = n % n ; if (mag2 < dgFloat64 (1.0e-16f)) { n.m_x = dgFloat64 (0.0f); n.m_y = dgFloat64 (1.0f); n.m_z = dgFloat64 (0.0f); } m_attrib[m_atribCount].m_normal_x = n.m_x; m_attrib[m_atribCount].m_normal_y = n.m_y; m_attrib[m_atribCount].m_normal_z = n.m_z; m_attrib[m_atribCount].m_vertex.m_x = QuantizeCordinade(m_attrib[m_atribCount].m_vertex.m_x); m_attrib[m_atribCount].m_vertex.m_y = QuantizeCordinade(m_attrib[m_atribCount].m_vertex.m_y); m_attrib[m_atribCount].m_vertex.m_z = QuantizeCordinade(m_attrib[m_atribCount].m_vertex.m_z); m_atribCount ++; } void dgMeshEffect::AddVertex(const dgBigVector& vertex) { if (m_pointCount >= m_maxPointCount) { m_maxPointCount *= 2; dgBigVector* const points = (dgBigVector*) GetAllocator()->MallocLow(dgInt32 (m_maxPointCount * sizeof(dgBigVector))); memcpy (points, m_points, m_pointCount * sizeof(dgBigVector)); GetAllocator()->FreeLow(m_points); m_points = points; } m_points[m_pointCount].m_x = QuantizeCordinade(vertex[0]); m_points[m_pointCount].m_y = QuantizeCordinade(vertex[1]); m_points[m_pointCount].m_z = QuantizeCordinade(vertex[2]); m_points[m_pointCount].m_w = vertex.m_w; m_pointCount ++; } void dgMeshEffect::AddPoint(const dgFloat64* vertex, dgInt32 material) { dgVertexAtribute attib; AddVertex(dgBigVector (vertex[0], vertex[1], vertex[2], vertex[3])); attib.m_vertex.m_x = m_points[m_pointCount - 1].m_x; attib.m_vertex.m_y = m_points[m_pointCount - 1].m_y; attib.m_vertex.m_z = m_points[m_pointCount - 1].m_z; attib.m_vertex.m_w = m_points[m_pointCount - 1].m_w; attib.m_normal_x = vertex[4]; attib.m_normal_y = vertex[5]; attib.m_normal_z = vertex[6]; attib.m_u0 = vertex[7]; attib.m_v0 = vertex[8]; attib.m_u1 = vertex[9]; attib.m_v1 = vertex[10]; attib.m_material = material; AddAtribute (attib); } void dgMeshEffect::PackVertexArrays () { if (m_maxPointCount > m_pointCount) { dgBigVector* const points = (dgBigVector*) GetAllocator()->MallocLow(dgInt32 (m_pointCount * sizeof(dgBigVector))); memcpy (points, m_points, m_pointCount * sizeof(dgBigVector)); GetAllocator()->FreeLow(m_points); m_points = points; m_maxPointCount = m_pointCount; } if (m_maxAtribCount > m_atribCount) { dgVertexAtribute* const attibArray = (dgVertexAtribute*) GetAllocator()->MallocLow(dgInt32 (m_atribCount * sizeof(dgVertexAtribute))); memcpy (attibArray, m_attrib, m_atribCount * sizeof(dgVertexAtribute)); GetAllocator()->FreeLow(m_attrib); m_attrib = attibArray; m_maxAtribCount = m_atribCount; } }; void dgMeshEffect::AddPolygon (dgInt32 count, const dgFloat64* const vertexList, dgInt32 strideIndBytes, dgInt32 material) { dgAssert (strideIndBytes >= sizeof (dgBigVector)); dgInt32 stride = dgInt32 (strideIndBytes / sizeof (dgFloat64)); if (count > 3) { dgPolyhedra polygon (GetAllocator()); dgInt32 indexList[256]; dgAssert (count < dgInt32 (sizeof (indexList)/sizeof(indexList[0]))); for (dgInt32 i = 0; i < count; i ++) { indexList[i] = i; } polygon.BeginFace(); polygon.AddFace(count, indexList, NULL); polygon.EndFace(); polygon.Triangulate(vertexList, strideIndBytes, NULL); dgInt32 mark = polygon.IncLRU(); dgPolyhedra::Iterator iter (polygon); for (iter.Begin(); iter; iter ++) { dgEdge* const edge = &iter.GetNode()->GetInfo(); if ((edge->m_incidentFace > 0) && (edge->m_mark < mark)) { dgInt32 i0 = edge->m_incidentVertex; dgInt32 i1 = edge->m_next->m_incidentVertex; dgInt32 i2 = edge->m_next->m_next->m_incidentVertex; edge->m_mark = mark; edge->m_next->m_mark = mark; edge->m_next->m_next->m_mark = mark; // #ifdef _DEBUG // dgBigVector p0_ (&vertexList[i0 * stride]); // dgBigVector p1_ (&vertexList[i1 * stride]); // dgBigVector p2_ (&vertexList[i2 * stride]); // dgBigVector e1_ (p1_ - p0_); // dgBigVector e2_ (p2_ - p0_); // dgBigVector n_ (e1_ * e2_); // dgFloat64 mag2_ = n_ % n_; // dgAssert (mag2_ > dgFloat32 (DG_MESH_EFFECT_PRECISION_SCALE_INV * DG_MESH_EFFECT_PRECISION_SCALE_INV)); // #endif AddPoint(vertexList + i0 * stride, material); AddPoint(vertexList + i1 * stride, material); AddPoint(vertexList + i2 * stride, material); #ifdef _DEBUG const dgBigVector& p0 = m_points[m_pointCount - 3]; const dgBigVector& p1 = m_points[m_pointCount - 2]; const dgBigVector& p2 = m_points[m_pointCount - 1]; dgBigVector e1 (p1 - p0); dgBigVector e2 (p2 - p0); dgBigVector n (e1 * e2); dgFloat64 mag3 = n % n; dgAssert (mag3 > dgFloat64 (DG_MESH_EFFECT_PRECISION_SCALE_INV * DG_MESH_EFFECT_PRECISION_SCALE_INV)); #endif } } } else { AddPoint(vertexList, material); AddPoint(vertexList + stride, material); AddPoint(vertexList + stride + stride, material); const dgBigVector& p0 = m_points[m_pointCount - 3]; const dgBigVector& p1 = m_points[m_pointCount - 2]; const dgBigVector& p2 = m_points[m_pointCount - 1]; dgBigVector e1 (p1 - p0); dgBigVector e2 (p2 - p0); dgBigVector n (e1 * e2); dgFloat64 mag3 = n % n; if (mag3 < dgFloat64 (DG_MESH_EFFECT_PRECISION_SCALE_INV * DG_MESH_EFFECT_PRECISION_SCALE_INV)) { m_pointCount -= 3; m_atribCount -= 3; } } } #ifndef _NEWTON_USE_DOUBLE void dgMeshEffect::AddPolygon (dgInt32 count, const dgFloat32* const vertexList, dgInt32 strideIndBytes, dgInt32 material) { dgVertexAtribute points[256]; dgAssert (count < dgInt32 (sizeof (points)/sizeof (points[0]))); dgInt32 stride = strideIndBytes / sizeof (dgFloat32); if (stride < 4) { for (dgInt32 i = 0; i < count; i ++) { points[i].m_vertex.m_x = vertexList[i * stride + 0]; points[i].m_vertex.m_y = vertexList[i * stride + 1]; points[i].m_vertex.m_z = vertexList[i * stride + 2]; points[i].m_vertex.m_w = dgFloat64(0.0f); points[i].m_normal_x = dgFloat64(0.0f); points[i].m_normal_y = dgFloat64(1.0f); points[i].m_normal_z = dgFloat64(0.0f); points[i].m_u0 = dgFloat64(0.0f); points[i].m_v0 = dgFloat64(0.0f); points[i].m_u1 = dgFloat64(0.0f); points[i].m_v1 = dgFloat64(0.0f); points[i].m_material = dgFloat64(material); } } else { for (dgInt32 i = 0; i < count; i ++) { points[i].m_vertex.m_x = vertexList[i * stride + 0]; points[i].m_vertex.m_y = vertexList[i * stride + 1]; points[i].m_vertex.m_z = vertexList[i * stride + 2]; points[i].m_vertex.m_w = vertexList[i * stride + 3]; points[i].m_normal_x = vertexList[i * stride + 4]; points[i].m_normal_y = vertexList[i * stride + 5]; points[i].m_normal_z = vertexList[i * stride + 6]; points[i].m_u0 = vertexList[i * stride + 7]; points[i].m_v0 = vertexList[i * stride + 8]; points[i].m_u1 = vertexList[i * stride + 9]; points[i].m_v1 = vertexList[i * stride + 10]; points[i].m_material = dgFloat64(material); } } AddPolygon (count, &points[0].m_vertex.m_x, sizeof (dgVertexAtribute), material); } #endif void dgMeshEffect::EndPolygon (dgFloat64 tol, bool fixTjoint) { dgStack<dgInt32>indexMap(m_pointCount); dgStack<dgInt32>attrIndexMap(m_atribCount); #ifdef _DEBUG for (dgInt32 i = 0; i < m_pointCount; i += 3) { dgBigVector p0 (m_points[i + 0]); dgBigVector p1 (m_points[i + 1]); dgBigVector p2 (m_points[i + 2]); dgBigVector e1 (p1 - p0); dgBigVector e2 (p2 - p0); dgBigVector n (e1 * e2); dgFloat64 mag2 = n % n; dgAssert (mag2 > dgFloat32 (0.0f)); } #endif dgInt32 triangCount = m_pointCount / 3; m_pointCount = dgVertexListToIndexList (&m_points[0].m_x, sizeof (dgBigVector), sizeof (dgBigVector)/sizeof (dgFloat64), m_pointCount, &indexMap[0], tol); m_atribCount = dgVertexListToIndexList (&m_attrib[0].m_vertex.m_x, sizeof (dgVertexAtribute), sizeof (dgVertexAtribute)/sizeof (dgFloat64), m_atribCount, &attrIndexMap[0], tol); for (dgInt32 i = 0; i < triangCount; i ++) { dgInt32 index[3]; dgInt64 userdata[3]; index[0] = indexMap[i * 3 + 0]; index[1] = indexMap[i * 3 + 1]; index[2] = indexMap[i * 3 + 2]; dgBigVector e1 (m_points[index[1]] - m_points[index[0]]); dgBigVector e2 (m_points[index[2]] - m_points[index[0]]); dgBigVector n (e1 * e2); dgFloat64 mag2 = n % n; if (mag2 > dgFloat64 (1.0e-12f)) { userdata[0] = attrIndexMap[i * 3 + 0]; userdata[1] = attrIndexMap[i * 3 + 1]; userdata[2] = attrIndexMap[i * 3 + 2]; dgEdge* const edge = AddFace (3, index, userdata); if (!edge) { dgAssert ((m_pointCount + 3) <= m_maxPointCount); m_points[m_pointCount + 0] = m_points[index[0]]; m_points[m_pointCount + 1] = m_points[index[1]]; m_points[m_pointCount + 2] = m_points[index[2]]; index[0] = m_pointCount + 0; index[1] = m_pointCount + 1; index[2] = m_pointCount + 2; m_pointCount += 3; #ifdef _DEBUG dgEdge* test = AddFace (3, index, userdata); dgAssert (test); #else AddFace (3, index, userdata); #endif } } } EndFace(); if (fixTjoint) { RepairTJoints (); } #ifdef _DEBUG dgPolyhedra::Iterator iter (*this); for (iter.Begin(); iter; iter ++){ dgEdge* const face = &(*iter); if (face->m_incidentFace > 0) { dgBigVector p0 (m_points[face->m_incidentVertex]); dgBigVector p1 (m_points[face->m_next->m_incidentVertex]); dgBigVector p2 (m_points[face->m_next->m_next->m_incidentVertex]); dgBigVector e1 (p1 - p0); dgBigVector e2 (p2 - p0); dgBigVector n (e1 * e2); dgFloat64 mag2 = n % n; dgAssert (mag2 >= dgFloat32 (0.0f)); } } #endif } void dgMeshEffect::BuildFromVertexListIndexList( dgInt32 faceCount, const dgInt32* const faceIndexCount, const dgInt32* const faceMaterialIndex, const dgFloat32* const vertex, dgInt32 vertexStrideInBytes, const dgInt32* const vertexIndex, const dgFloat32* const normal, dgInt32 normalStrideInBytes, const dgInt32* const normalIndex, const dgFloat32* const uv0, dgInt32 uv0StrideInBytes, const dgInt32* const uv0Index, const dgFloat32* const uv1, dgInt32 uv1StrideInBytes, const dgInt32* const uv1Index) { BeginPolygon (); // calculate vertex Count dgInt32 acc = 0; dgInt32 vertexCount = 0; for (dgInt32 j = 0; j < faceCount; j ++) { dgInt32 count = faceIndexCount[j]; for (dgInt32 i = 0; i < count; i ++) { vertexCount = dgMax(vertexCount, vertexIndex[acc + i] + 1); } acc += count; } dgInt32 layerCountBase = 0; dgInt32 vertexStride = dgInt32 (vertexStrideInBytes / sizeof (dgFloat32)); for (dgInt32 i = 0; i < vertexCount; i ++) { dgInt32 index = i * vertexStride; dgBigVector v (vertex[index + 0], vertex[index + 1], vertex[index + 2], vertex[index + 3]); AddVertex (v); layerCountBase += (vertex[index + 3]) > dgFloat32(layerCountBase); } dgInt32 maxAttribCount = 0; for (dgInt32 j = 0; j < faceCount; j ++) { maxAttribCount += faceIndexCount[j]; } dgStack<dgInt32>attrIndexMap(maxAttribCount); acc = 0; dgInt32 currentCount = 0; dgInt32 attributeCount = 0; dgInt32 attributeCountMarker = 0; dgInt32 normalStride = dgInt32 (normalStrideInBytes / sizeof (dgFloat32)); dgInt32 uv0Stride = dgInt32 (uv0StrideInBytes / sizeof (dgFloat32)); dgInt32 uv1Stride = dgInt32 (uv1StrideInBytes / sizeof (dgFloat32)); for (dgInt32 j = 0; j < faceCount; j ++) { dgInt32 indexCount = faceIndexCount[j]; dgInt32 materialIndex = faceMaterialIndex[j]; for (dgInt32 i = 0; i < indexCount; i ++) { dgVertexAtribute point; dgInt32 index = vertexIndex[acc + i]; point.m_vertex = m_points[index]; index = normalIndex[(acc + i)] * normalStride; point.m_normal_x = normal[index + 0]; point.m_normal_y = normal[index + 1]; point.m_normal_z = normal[index + 2]; index = uv0Index[(acc + i)] * uv0Stride; point.m_u0 = uv0[index + 0]; point.m_v0 = uv0[index + 1]; index = uv1Index[(acc + i)] * uv1Stride; point.m_u1 = uv1[index + 0]; point.m_v1 = uv1[index + 1]; point.m_material = materialIndex; AddAtribute(point); attrIndexMap[attributeCount] = attributeCount; attributeCount ++; } acc += indexCount; if (attributeCount >= (attributeCountMarker + 1024 * 256)) { dgInt32 count = attributeCount - attributeCountMarker; dgInt32 newCount = dgVertexListToIndexList (&m_attrib[currentCount].m_vertex.m_x, sizeof (dgVertexAtribute), sizeof (dgVertexAtribute) / sizeof (dgFloat64), count, &attrIndexMap[attributeCountMarker], DG_VERTEXLIST_INDEXLIST_TOL); for (dgInt32 i = 0; i < count; i ++) { attrIndexMap[attributeCountMarker + i] += currentCount; } currentCount += newCount; m_atribCount = currentCount; attributeCountMarker = attributeCount; } } if (attributeCountMarker) { dgInt32 count = attributeCount - attributeCountMarker; dgInt32 newCount = dgVertexListToIndexList (&m_attrib[currentCount].m_vertex.m_x, sizeof (dgVertexAtribute), sizeof (dgVertexAtribute) / sizeof (dgFloat64), count, &attrIndexMap[attributeCountMarker], DG_VERTEXLIST_INDEXLIST_TOL); for (dgInt32 i = 0; i < count; i ++) { attrIndexMap[attributeCountMarker + i] += currentCount; } currentCount += newCount; m_atribCount = currentCount; attributeCountMarker = attributeCount; dgStack<dgInt32>indirectAttrIndexMap(m_atribCount); m_atribCount = dgVertexListToIndexList (&m_attrib[0].m_vertex.m_x, sizeof (dgVertexAtribute), sizeof (dgVertexAtribute) / sizeof (dgFloat64), m_atribCount, &indirectAttrIndexMap[0], DG_VERTEXLIST_INDEXLIST_TOL); for (dgInt32 i = 0; i < maxAttribCount; i ++) { dgInt32 j = attrIndexMap[i]; attrIndexMap[i] = indirectAttrIndexMap[j]; } } else { m_atribCount = dgVertexListToIndexList (&m_attrib[0].m_vertex.m_x, sizeof (dgVertexAtribute), sizeof (dgVertexAtribute) / sizeof (dgFloat64), m_atribCount, &attrIndexMap[0], DG_VERTEXLIST_INDEXLIST_TOL); } bool hasFaces = true; dgStack<dgInt8> faceMark (faceCount); memset (&faceMark[0], 1, size_t (faceMark.GetSizeInBytes())); dgInt32 layerCount = 0; while (hasFaces) { acc = 0; hasFaces = false; dgInt32 vertexBank = layerCount * vertexCount; for (dgInt32 j = 0; j < faceCount; j ++) { int indexCount = faceIndexCount[j]; if (indexCount > 0) { dgInt32 index[256]; dgInt64 userdata[256]; dgAssert (indexCount >= 3); dgAssert (indexCount < dgInt32 (sizeof (index) / sizeof (index[0]))); if (faceMark[j]) { for (int i = 0; i < indexCount; i ++) { index[i] = vertexIndex[acc + i] + vertexBank; userdata[i] = attrIndexMap[acc + i]; } dgEdge* const edge = AddFace (indexCount, index, userdata); if (edge) { faceMark[j] = 0; } else { // check if the face is not degenerated bool degeneratedFace = false; for (int i = 0; i < indexCount - 1; i ++) { for (int k = i + 1; k < indexCount; k ++) { if (index[i] == index[k]) { degeneratedFace = true; } } } if (degeneratedFace) { faceMark[j] = 0; } else { hasFaces = true; } } } acc += indexCount; } } if (hasFaces) { layerCount ++; for (int i = 0; i < vertexCount; i ++) { int index = i * vertexStride; AddVertex (dgBigVector (vertex[index + 0], vertex[index + 1], vertex[index + 2], dgFloat64 (layerCount + layerCountBase))); } } } EndFace(); PackVertexArrays (); } dgInt32 dgMeshEffect::GetTotalFaceCount() const { return GetFaceCount(); } dgInt32 dgMeshEffect::GetTotalIndexCount() const { Iterator iter (*this); dgInt32 count = 0; dgInt32 mark = IncLRU(); for (iter.Begin(); iter; iter ++) { dgEdge* const edge = &(*iter); if (edge->m_mark == mark) { continue; } if (edge->m_incidentFace < 0) { continue; } dgEdge* ptr = edge; do { count ++; ptr->m_mark = mark; ptr = ptr->m_next; } while (ptr != edge); } return count; } void dgMeshEffect::GetFaces (dgInt32* const facesIndex, dgInt32* const materials, void** const faceNodeList) const { Iterator iter (*this); dgInt32 faces = 0; dgInt32 indexCount = 0; dgInt32 mark = IncLRU(); for (iter.Begin(); iter; iter ++) { dgEdge* const edge = &(*iter); if (edge->m_mark == mark) { continue; } if (edge->m_incidentFace < 0) { continue; } dgInt32 faceCount = 0; dgEdge* ptr = edge; do { // indexList[indexCount] = dgInt32 (ptr->m_userData); faceNodeList[indexCount] = GetNodeFromInfo (*ptr); indexCount ++; faceCount ++; ptr->m_mark = mark; ptr = ptr->m_next; } while (ptr != edge); facesIndex[faces] = faceCount; materials[faces] = dgFastInt(m_attrib[dgInt32 (edge->m_userData)].m_material); faces ++; } } void* dgMeshEffect::GetFirstVertex () const { Iterator iter (*this); iter.Begin(); dgTreeNode* node = NULL; if (iter) { dgInt32 mark = IncLRU(); node = iter.GetNode(); dgEdge* const edge = &node->GetInfo(); dgEdge* ptr = edge; do { ptr->m_mark = mark; ptr = ptr->m_twin->m_next; } while (ptr != edge); } return node; } void* dgMeshEffect::GetNextVertex (const void* const vertex) const { dgTreeNode* node = (dgTreeNode*) vertex; dgInt32 mark = node->GetInfo().m_mark; Iterator iter (*this); iter.Set (node); for (iter ++; iter; iter ++) { dgTreeNode* node = iter.GetNode(); if (node->GetInfo().m_mark != mark) { dgEdge* const edge = &node->GetInfo(); dgEdge* ptr = edge; do { ptr->m_mark = mark; ptr = ptr->m_twin->m_next; } while (ptr != edge); return node; } } return NULL; } dgInt32 dgMeshEffect::GetVertexIndex (const void* const vertex) const { dgTreeNode* const node = (dgTreeNode*) vertex; dgEdge* const edge = &node->GetInfo(); return edge->m_incidentVertex; } void* dgMeshEffect::GetFirstPoint () const { Iterator iter (*this); for (iter.Begin(); iter; iter ++) { dgTreeNode* const node = iter.GetNode(); dgEdge* const edge = &node->GetInfo(); if (edge->m_incidentFace > 0) { return node; } } return NULL; } void* dgMeshEffect::GetNextPoint (const void* const point) const { Iterator iter (*this); iter.Set ((dgTreeNode*) point); for (iter ++; iter; iter ++) { dgTreeNode* const node = iter.GetNode(); dgEdge* const edge = &node->GetInfo(); if (edge->m_incidentFace > 0) { return node; } } return NULL; } dgInt32 dgMeshEffect::GetPointIndex (const void* const point) const { dgTreeNode* const node = (dgTreeNode*) point; dgEdge* const edge = &node->GetInfo(); return int (edge->m_userData); } dgInt32 dgMeshEffect::GetVertexIndexFromPoint (const void* const point) const { return GetVertexIndex (point); } dgEdge* dgMeshEffect::SpliteFace (dgInt32 v0, dgInt32 v1) { if (!FindEdge(v0, v1)) { dgPolyhedra::dgPairKey key (v0, 0); dgTreeNode* const node = FindGreaterEqual(key.GetVal()); if (node) { dgEdge* const edge = &node->GetInfo(); dgEdge* edge0 = edge; do { if (edge0->m_incidentFace > 0) { for (dgEdge* edge1 = edge0->m_next->m_next; edge1 != edge0->m_prev; edge1 = edge1->m_next) { if (edge1->m_incidentVertex == v1) { return ConnectVertex (edge0, edge1); } }; } edge0 = edge0->m_twin->m_next; } while (edge0 != edge); } } return NULL; } void* dgMeshEffect::GetFirstEdge () const { Iterator iter (*this); iter.Begin(); dgTreeNode* node = NULL; if (iter) { dgInt32 mark = IncLRU(); node = iter.GetNode(); dgEdge* const edge = &node->GetInfo(); edge->m_mark = mark; edge->m_twin->m_mark = mark; } return node; } void* dgMeshEffect::GetNextEdge (const void* const edge) const { dgTreeNode* node = (dgTreeNode*) edge; dgInt32 mark = node->GetInfo().m_mark; Iterator iter (*this); iter.Set (node); for (iter ++; iter; iter ++) { dgTreeNode* node = iter.GetNode(); if (node->GetInfo().m_mark != mark) { node->GetInfo().m_mark = mark; node->GetInfo().m_twin->m_mark = mark; return node; } } return NULL; } void dgMeshEffect::GetEdgeIndex (const void* const edge, dgInt32& v0, dgInt32& v1) const { dgTreeNode* node = (dgTreeNode*) edge; v0 = node->GetInfo().m_incidentVertex; v1 = node->GetInfo().m_twin->m_incidentVertex; } //void* dgMeshEffect::FindEdge (dgInt32 v0, dgInt32 v1) const //{ // return FindEdgeNode(v0, v1); //} //void dgMeshEffect::GetEdgeAttributeIndex (const void* edge, dgInt32& v0, dgInt32& v1) const //{ // dgTreeNode* node = (dgTreeNode*) edge; // v0 = int (node->GetInfo().m_userData); // v1 = int (node->GetInfo().m_twin->m_userData); //} void* dgMeshEffect::GetFirstFace () const { Iterator iter (*this); iter.Begin(); dgTreeNode* node = NULL; if (iter) { dgInt32 mark = IncLRU(); node = iter.GetNode(); dgEdge* const edge = &node->GetInfo(); dgEdge* ptr = edge; do { ptr->m_mark = mark; ptr = ptr->m_next; } while (ptr != edge); } return node; } void* dgMeshEffect::GetNextFace (const void* const face) const { dgTreeNode* node = (dgTreeNode*) face; dgInt32 mark = node->GetInfo().m_mark; Iterator iter (*this); iter.Set (node); for (iter ++; iter; iter ++) { dgTreeNode* node = iter.GetNode(); if (node->GetInfo().m_mark != mark) { dgEdge* const edge = &node->GetInfo(); dgEdge* ptr = edge; do { ptr->m_mark = mark; ptr = ptr->m_next; } while (ptr != edge); return node; } } return NULL; } dgInt32 dgMeshEffect::IsFaceOpen (const void* const face) const { dgTreeNode* const node = (dgTreeNode*) face; dgEdge* const edge = &node->GetInfo(); return (edge->m_incidentFace > 0) ? 0 : 1; } dgInt32 dgMeshEffect::GetFaceMaterial (const void* const face) const { dgTreeNode* const node = (dgTreeNode*) face; dgEdge* const edge = &node->GetInfo(); return dgInt32 (m_attrib[edge->m_userData].m_material); } void dgMeshEffect::SetFaceMaterial (const void* const face, int mateialID) const { dgTreeNode* const node = (dgTreeNode*) face; dgEdge* const edge = &node->GetInfo(); if (edge->m_incidentFace > 0) { dgEdge* ptr = edge; do { dgVertexAtribute* const attrib = &m_attrib[ptr->m_userData]; attrib->m_material = dgFloat64 (mateialID); ptr = ptr->m_next; } while (ptr != edge) ; } } dgInt32 dgMeshEffect::GetFaceIndexCount (const void* const face) const { int count = 0; dgTreeNode* node = (dgTreeNode*) face; dgEdge* const edge = &node->GetInfo(); dgEdge* ptr = edge; do { count ++; ptr = ptr->m_next; } while (ptr != edge); return count; } void dgMeshEffect::GetFaceIndex (const void* const face, dgInt32* const indices) const { int count = 0; dgTreeNode* node = (dgTreeNode*) face; dgEdge* const edge = &node->GetInfo(); dgEdge* ptr = edge; do { indices[count] = ptr->m_incidentVertex; count ++; ptr = ptr->m_next; } while (ptr != edge); } void dgMeshEffect::GetFaceAttributeIndex (const void* const face, dgInt32* const indices) const { int count = 0; dgTreeNode* node = (dgTreeNode*) face; dgEdge* const edge = &node->GetInfo(); dgEdge* ptr = edge; do { indices[count] = int (ptr->m_userData); count ++; ptr = ptr->m_next; } while (ptr != edge); } dgBigVector dgMeshEffect::CalculateFaceNormal (const void* const face) const { dgTreeNode* const node = (dgTreeNode*) face; dgEdge* const faceEdge = &node->GetInfo(); dgBigVector normal (FaceNormal (faceEdge, &m_points[0].m_x, sizeof (m_points[0]))); normal = normal.Scale3 (1.0f / sqrt (normal % normal)); return normal; } /* dgInt32 GetTotalFaceCount() const; { dgInt32 mark; dgInt32 count; dgInt32 materialCount; dgInt32 materials[256]; dgInt32 streamIndexMap[256]; dgIndexArray* array; count = 0; materialCount = 0; array = (dgIndexArray*) GetAllocator()->MallocLow (4 * sizeof (dgInt32) * GetCount() + sizeof (dgIndexArray) + 2048); array->m_indexList = (dgInt32*)&array[1]; mark = IncLRU(); dgPolyhedra::Iterator iter (*this); memset(streamIndexMap, 0, sizeof (streamIndexMap)); for(iter.Begin(); iter; iter ++){ dgEdge* const edge; edge = &(*iter); if ((edge->m_incidentFace >= 0) && (edge->m_mark != mark)) { dgEdge* ptr; dgInt32 hashValue; dgInt32 index0; dgInt32 index1; ptr = edge; ptr->m_mark = mark; index0 = dgInt32 (ptr->m_userData); ptr = ptr->m_next; ptr->m_mark = mark; index1 = dgInt32 (ptr->m_userData); ptr = ptr->m_next; do { ptr->m_mark = mark; array->m_indexList[count * 4 + 0] = index0; array->m_indexList[count * 4 + 1] = index1; array->m_indexList[count * 4 + 2] = dgInt32 (ptr->m_userData); array->m_indexList[count * 4 + 3] = m_attrib[dgInt32 (edge->m_userData)].m_material; index1 = dgInt32 (ptr->m_userData); hashValue = array->m_indexList[count * 4 + 3] & 0xff; streamIndexMap[hashValue] ++; materials[hashValue] = array->m_indexList[count * 4 + 3]; count ++; ptr = ptr->m_next; } while (ptr != edge); } } */ void dgMeshEffect::GetVertexStreams (dgInt32 vetexStrideInByte, dgFloat32* const vertex, dgInt32 normalStrideInByte, dgFloat32* const normal, dgInt32 uvStrideInByte0, dgFloat32* const uv0, dgInt32 uvStrideInByte1, dgFloat32* const uv1) { uvStrideInByte0 /= sizeof (dgFloat32); uvStrideInByte1 /= sizeof (dgFloat32); vetexStrideInByte /= sizeof (dgFloat32); normalStrideInByte /= sizeof (dgFloat32); for (dgInt32 i = 0; i < m_atribCount; i ++) { dgInt32 j = i * vetexStrideInByte; vertex[j + 0] = dgFloat32 (m_attrib[i].m_vertex.m_x); vertex[j + 1] = dgFloat32 (m_attrib[i].m_vertex.m_y); vertex[j + 2] = dgFloat32 (m_attrib[i].m_vertex.m_z); j = i * normalStrideInByte; normal[j + 0] = dgFloat32 (m_attrib[i].m_normal_x); normal[j + 1] = dgFloat32 (m_attrib[i].m_normal_y); normal[j + 2] = dgFloat32 (m_attrib[i].m_normal_z); j = i * uvStrideInByte1; uv1[j + 0] = dgFloat32 (m_attrib[i].m_u1); uv1[j + 1] = dgFloat32 (m_attrib[i].m_v1); j = i * uvStrideInByte0; uv0[j + 0] = dgFloat32 (m_attrib[i].m_u0); uv0[j + 1] = dgFloat32 (m_attrib[i].m_v0); } } void dgMeshEffect::GetIndirectVertexStreams( dgInt32 vetexStrideInByte, dgFloat64* const vertex, dgInt32* const vertexIndices, dgInt32* const vertexCount, dgInt32 normalStrideInByte, dgFloat64* const normal, dgInt32* const normalIndices, dgInt32* const normalCount, dgInt32 uvStrideInByte0, dgFloat64* const uv0, dgInt32* const uvIndices0, dgInt32* const uvCount0, dgInt32 uvStrideInByte1, dgFloat64* const uv1, dgInt32* const uvIndices1, dgInt32* const uvCount1) { /* GetVertexStreams (vetexStrideInByte, vertex, normalStrideInByte, normal, uvStrideInByte0, uv0, uvStrideInByte1, uv1); *vertexCount = dgVertexListToIndexList(vertex, vetexStrideInByte, vetexStrideInByte, 0, m_atribCount, vertexIndices, dgFloat32 (0.0f)); *normalCount = dgVertexListToIndexList(normal, normalStrideInByte, normalStrideInByte, 0, m_atribCount, normalIndices, dgFloat32 (0.0f)); dgTriplex* const tmpUV = (dgTriplex*) GetAllocator()->MallocLow (dgInt32 (sizeof (dgTriplex) * m_atribCount)); dgInt32 stride = dgInt32 (uvStrideInByte1 /sizeof (dgFloat32)); for (dgInt32 i = 0; i < m_atribCount; i ++){ tmpUV[i].m_x = uv1[i * stride + 0]; tmpUV[i].m_y = uv1[i * stride + 1]; tmpUV[i].m_z = dgFloat32 (0.0f); } dgInt32 count = dgVertexListToIndexList(&tmpUV[0].m_x, sizeof (dgTriplex), sizeof (dgTriplex), 0, m_atribCount, uvIndices1, dgFloat32 (0.0f)); for (dgInt32 i = 0; i < count; i ++){ uv1[i * stride + 0] = tmpUV[i].m_x; uv1[i * stride + 1] = tmpUV[i].m_y; } *uvCount1 = count; stride = dgInt32 (uvStrideInByte0 /sizeof (dgFloat32)); for (dgInt32 i = 0; i < m_atribCount; i ++){ tmpUV[i].m_x = uv0[i * stride + 0]; tmpUV[i].m_y = uv0[i * stride + 1]; tmpUV[i].m_z = dgFloat32 (0.0f); } count = dgVertexListToIndexList(&tmpUV[0].m_x, sizeof (dgTriplex), sizeof (dgTriplex), 0, m_atribCount, uvIndices0, dgFloat32 (0.0f)); for (dgInt32 i = 0; i < count; i ++){ uv0[i * stride + 0] = tmpUV[i].m_x; uv0[i * stride + 1] = tmpUV[i].m_y; } *uvCount0 = count; GetAllocator()->FreeLow (tmpUV); */ } dgMeshEffect::dgIndexArray* dgMeshEffect::MaterialGeometryBegin() { dgInt32 materials[256]; dgInt32 streamIndexMap[256]; dgInt32 count = 0; dgInt32 materialCount = 0; dgIndexArray* const array = (dgIndexArray*) GetAllocator()->MallocLow (dgInt32 (4 * sizeof (dgInt32) * GetCount() + sizeof (dgIndexArray) + 2048)); array->m_indexList = (dgInt32*)&array[1]; dgInt32 mark = IncLRU(); dgPolyhedra::Iterator iter (*this); memset(streamIndexMap, 0, sizeof (streamIndexMap)); for(iter.Begin(); iter; iter ++){ dgEdge* const edge = &(*iter); if ((edge->m_incidentFace >= 0) && (edge->m_mark != mark)) { dgEdge* ptr = edge; ptr->m_mark = mark; dgInt32 index0 = dgInt32 (ptr->m_userData); ptr = ptr->m_next; ptr->m_mark = mark; dgInt32 index1 = dgInt32 (ptr->m_userData); ptr = ptr->m_next; do { ptr->m_mark = mark; array->m_indexList[count * 4 + 0] = index0; array->m_indexList[count * 4 + 1] = index1; array->m_indexList[count * 4 + 2] = dgInt32 (ptr->m_userData); array->m_indexList[count * 4 + 3] = dgInt32 (m_attrib[dgInt32 (edge->m_userData)].m_material); index1 = dgInt32 (ptr->m_userData); dgInt32 hashValue = array->m_indexList[count * 4 + 3] & 0xff; streamIndexMap[hashValue] ++; materials[hashValue] = array->m_indexList[count * 4 + 3]; count ++; ptr = ptr->m_next; } while (ptr != edge); } } array->m_indexCount = count; array->m_materialCount = materialCount; count = 0; for (dgInt32 i = 0; i < 256;i ++) { if (streamIndexMap[i]) { array->m_materials[count] = materials[i]; array->m_materialsIndexCount[count] = streamIndexMap[i] * 3; count ++; } } array->m_materialCount = count; return array; } void dgMeshEffect::MaterialGeomteryEnd(dgIndexArray* const handle) { GetAllocator()->FreeLow (handle); } dgInt32 dgMeshEffect::GetFirstMaterial (dgIndexArray* const handle) const { return GetNextMaterial (handle, -1); } dgInt32 dgMeshEffect::GetNextMaterial (dgIndexArray* const handle, dgInt32 materialId) const { materialId ++; if(materialId >= handle->m_materialCount) { materialId = -1; } return materialId; } void dgMeshEffect::GetMaterialGetIndexStream (dgIndexArray* const handle, dgInt32 materialHandle, dgInt32* const indexArray) const { dgInt32 index = 0; dgInt32 textureID = handle->m_materials[materialHandle]; for (dgInt32 j = 0; j < handle->m_indexCount; j ++) { if (handle->m_indexList[j * 4 + 3] == textureID) { indexArray[index + 0] = handle->m_indexList[j * 4 + 0]; indexArray[index + 1] = handle->m_indexList[j * 4 + 1]; indexArray[index + 2] = handle->m_indexList[j * 4 + 2]; index += 3; } } } void dgMeshEffect::GetMaterialGetIndexStreamShort (dgIndexArray* const handle, dgInt32 materialHandle, dgInt16* const indexArray) const { dgInt32 index = 0; dgInt32 textureID = handle->m_materials[materialHandle]; for (dgInt32 j = 0; j < handle->m_indexCount; j ++) { if (handle->m_indexList[j * 4 + 3] == textureID) { indexArray[index + 0] = (dgInt16)handle->m_indexList[j * 4 + 0]; indexArray[index + 1] = (dgInt16)handle->m_indexList[j * 4 + 1]; indexArray[index + 2] = (dgInt16)handle->m_indexList[j * 4 + 2]; index += 3; } } } dgCollisionInstance* dgMeshEffect::CreateCollisionTree(dgWorld* const world, dgInt32 shapeID) const { dgCollisionBVH* const collision = new (GetAllocator()) dgCollisionBVH (world); collision->BeginBuild(); dgInt32 mark = IncLRU(); dgPolyhedra::Iterator iter (*this); for (iter.Begin(); iter; iter ++){ dgEdge* const face = &(*iter); if ((face->m_mark != mark) && (face->m_incidentFace > 0)) { dgInt32 count = 0; dgVector polygon[256]; dgEdge* ptr = face; do { polygon[count] = dgVector (m_points[ptr->m_incidentVertex]); polygon[count].m_w = dgFloat32 (0.0f); count ++; ptr->m_mark = mark; ptr = ptr->m_next; } while (ptr != face); collision->AddFace(count, &polygon[0].m_x, sizeof (dgVector), dgInt32 (m_attrib[face->m_userData].m_material)); } } collision->EndBuild(0); dgCollisionInstance* const instance = world->CreateInstance(collision, shapeID, dgGetIdentityMatrix()); collision->Release(); return instance; } dgCollisionInstance* dgMeshEffect::CreateConvexCollision(dgWorld* const world, dgFloat64 tolerance, dgInt32 shapeID, const dgMatrix& srcMatrix) const { dgStack<dgVector> poolPtr (m_pointCount * 2); dgVector* const pool = &poolPtr[0]; dgBigVector minBox; dgBigVector maxBox; CalculateAABB (minBox, maxBox); dgVector com ((minBox + maxBox).Scale3 (dgFloat32 (0.5f))); dgInt32 count = 0; dgInt32 mark = IncLRU(); dgPolyhedra::Iterator iter (*this); for (iter.Begin(); iter; iter ++){ dgEdge* const vertex = &(*iter); if (vertex->m_mark != mark) { dgEdge* ptr = vertex; do { ptr->m_mark = mark; ptr = ptr->m_twin->m_next; } while (ptr != vertex); if (count < dgInt32 (poolPtr.GetElementsCount())) { const dgBigVector p = m_points[vertex->m_incidentVertex]; pool[count] = dgVector (p) - com; count ++; } } } dgMatrix matrix (srcMatrix); matrix.m_posit += matrix.RotateVector(com); matrix.m_posit.m_w = dgFloat32 (1.0f); dgUnsigned32 crc = dgCollisionConvexHull::CalculateSignature (count, &pool[0].m_x, sizeof (dgVector)); dgCollisionConvexHull* const collision = new (GetAllocator()) dgCollisionConvexHull (GetAllocator(), crc, count, sizeof (dgVector), dgFloat32 (tolerance), &pool[0].m_x); if (!collision->GetConvexVertexCount()) { collision->Release(); return NULL; } dgCollisionInstance* const instance = world->CreateInstance(collision, shapeID, matrix); collision->Release(); return instance; } void dgMeshEffect::TransformMesh (const dgMatrix& matrix) { dgMatrix normalMatrix (matrix); normalMatrix.m_posit = dgVector (dgFloat32 (0.0f), dgFloat32 (0.0f), dgFloat32 (0.0f), dgFloat32 (1.0f)); matrix.TransformTriplex (&m_points->m_x, sizeof (dgBigVector), &m_points->m_x, sizeof (dgBigVector), m_pointCount); matrix.TransformTriplex (&m_attrib[0].m_vertex.m_x, sizeof (dgVertexAtribute), &m_attrib[0].m_vertex.m_x, sizeof (dgVertexAtribute), m_atribCount); normalMatrix.TransformTriplex (&m_attrib[0].m_normal_x, sizeof (dgVertexAtribute), &m_attrib[0].m_normal_x, sizeof (dgVertexAtribute), m_atribCount); } dgMeshEffect::dgVertexAtribute dgMeshEffect::InterpolateEdge (dgEdge* const edge, dgFloat64 param) const { dgVertexAtribute attrEdge; dgFloat64 t1 = param; dgFloat64 t0 = dgFloat64 (1.0f) - t1; dgAssert (t1 >= dgFloat64(0.0f)); dgAssert (t1 <= dgFloat64(1.0f)); const dgVertexAtribute& attrEdge0 = m_attrib[edge->m_userData]; const dgVertexAtribute& attrEdge1 = m_attrib[edge->m_next->m_userData]; attrEdge.m_vertex.m_x = attrEdge0.m_vertex.m_x * t0 + attrEdge1.m_vertex.m_x * t1; attrEdge.m_vertex.m_y = attrEdge0.m_vertex.m_y * t0 + attrEdge1.m_vertex.m_y * t1; attrEdge.m_vertex.m_z = attrEdge0.m_vertex.m_z * t0 + attrEdge1.m_vertex.m_z * t1; attrEdge.m_vertex.m_w = dgFloat32(0.0f); attrEdge.m_normal_x = attrEdge0.m_normal_x * t0 + attrEdge1.m_normal_x * t1; attrEdge.m_normal_y = attrEdge0.m_normal_y * t0 + attrEdge1.m_normal_y * t1; attrEdge.m_normal_z = attrEdge0.m_normal_z * t0 + attrEdge1.m_normal_z * t1; attrEdge.m_u0 = attrEdge0.m_u0 * t0 + attrEdge1.m_u0 * t1; attrEdge.m_v0 = attrEdge0.m_v0 * t0 + attrEdge1.m_v0 * t1; attrEdge.m_u1 = attrEdge0.m_u1 * t0 + attrEdge1.m_u1 * t1; attrEdge.m_v1 = attrEdge0.m_v1 * t0 + attrEdge1.m_v1 * t1; attrEdge.m_material = attrEdge0.m_material; return attrEdge; } bool dgMeshEffect::Sanity () const { #ifdef _DEBUG dgMeshEffect::Iterator iter (*this); for (iter.Begin(); iter; iter ++) { dgEdge* const edge = &iter.GetNode()->GetInfo(); dgAssert (edge->m_twin->m_twin == edge); dgAssert (edge->m_next->m_incidentVertex == edge->m_twin->m_incidentVertex); dgAssert (edge->m_incidentVertex == edge->m_twin->m_next->m_incidentVertex); if (edge->m_incidentFace > 0) { dgBigVector p0 (m_points[edge->m_incidentVertex]); dgBigVector p1 (m_attrib[edge->m_userData].m_vertex); dgBigVector p1p0 (p1 - p0); dgFloat64 mag2 (p1p0 % p1p0); dgAssert (mag2 < 1.0e-16f); } } #endif return true; } dgEdge* dgMeshEffect::InsertEdgeVertex (dgEdge* const edge, dgFloat64 param) { dgEdge* const twin = edge->m_twin; dgVertexAtribute attrEdge (InterpolateEdge (edge, param)); dgVertexAtribute attrTwin (InterpolateEdge (twin, dgFloat32 (1.0f) - param)); attrTwin.m_vertex = attrEdge.m_vertex; AddPoint(&attrEdge.m_vertex.m_x, dgFastInt (attrEdge.m_material)); AddAtribute (attrTwin); dgInt32 edgeAttrV0 = dgInt32 (edge->m_userData); dgInt32 twinAttrV0 = dgInt32 (twin->m_userData); dgEdge* const faceA0 = edge->m_next; dgEdge* const faceA1 = edge->m_prev; dgEdge* const faceB0 = twin->m_next; dgEdge* const faceB1 = twin->m_prev; // SpliteEdgeAndTriangulate (m_pointCount - 1, edge); SpliteEdge (m_pointCount - 1, edge); faceA0->m_prev->m_userData = dgUnsigned64 (m_atribCount - 2); faceA1->m_next->m_userData = dgUnsigned64 (edgeAttrV0); faceB0->m_prev->m_userData = dgUnsigned64 (m_atribCount - 1); faceB1->m_next->m_userData = dgUnsigned64 (twinAttrV0); return faceA1->m_next; } dgMeshEffect::dgVertexAtribute dgMeshEffect::InterpolateVertex (const dgBigVector& srcPoint, const dgEdge* const face) const { const dgBigVector point (srcPoint); dgVertexAtribute attribute; memset (&attribute, 0, sizeof (attribute)); // dgBigVector normal (FaceNormal(face, &m_points[0].m_x, sizeof(dgBigVector))); // normal = normal.Scale3 (dgFloat64 (1.0f) / sqrt (normal % normal)); // attribute.m_vertex = srcPoint; // attribute.m_normal_x = normal.m_x; // attribute.m_normal_y = normal.m_y; // attribute.m_normal_z = normal.m_z; dgFloat64 tol = dgFloat32 (1.0e-4f); for (dgInt32 i = 0; i < 4; i ++) { const dgEdge* ptr = face; const dgEdge* const edge0 = ptr; dgBigVector q0 (m_points[ptr->m_incidentVertex]); ptr = ptr->m_next; const dgEdge* edge1 = ptr; dgBigVector q1 (m_points[ptr->m_incidentVertex]); ptr = ptr->m_next; const dgEdge* edge2 = ptr; do { const dgBigVector q2 (m_points[ptr->m_incidentVertex]); dgBigVector p10 (q1 - q0); dgBigVector p20 (q2 - q0); dgFloat64 dot = p20 % p10; dgFloat64 mag1 = p10 % p10; dgFloat64 mag2 = p20 % p20; dgFloat64 collinear = dot * dot - mag2 * mag1; if (fabs (collinear) > dgFloat64 (1.0e-8f)) { dgBigVector p_p0 (point - q0); dgBigVector p_p1 (point - q1); dgBigVector p_p2 (point - q2); dgFloat64 alpha1 = p10 % p_p0; dgFloat64 alpha2 = p20 % p_p0; dgFloat64 alpha3 = p10 % p_p1; dgFloat64 alpha4 = p20 % p_p1; dgFloat64 alpha5 = p10 % p_p2; dgFloat64 alpha6 = p20 % p_p2; dgFloat64 vc = alpha1 * alpha4 - alpha3 * alpha2; dgFloat64 vb = alpha5 * alpha2 - alpha1 * alpha6; dgFloat64 va = alpha3 * alpha6 - alpha5 * alpha4; dgFloat64 den = va + vb + vc; dgFloat64 minError = den * (-tol); dgFloat64 maxError = den * (dgFloat32 (1.0f) + tol); if ((va > minError) && (vb > minError) && (vc > minError) && (va < maxError) && (vb < maxError) && (vc < maxError)) { edge2 = ptr; den = dgFloat64 (1.0f) / (va + vb + vc); dgFloat64 alpha0 = dgFloat32 (va * den); dgFloat64 alpha1 = dgFloat32 (vb * den); dgFloat64 alpha2 = dgFloat32 (vc * den); const dgVertexAtribute& attr0 = m_attrib[edge0->m_userData]; const dgVertexAtribute& attr1 = m_attrib[edge1->m_userData]; const dgVertexAtribute& attr2 = m_attrib[edge2->m_userData]; dgBigVector normal (attr0.m_normal_x * alpha0 + attr1.m_normal_x * alpha1 + attr2.m_normal_x * alpha2, attr0.m_normal_y * alpha0 + attr1.m_normal_y * alpha1 + attr2.m_normal_y * alpha2, attr0.m_normal_z * alpha0 + attr1.m_normal_z * alpha1 + attr2.m_normal_z * alpha2, dgFloat32 (0.0f)); normal = normal.Scale3 (dgFloat64 (1.0f) / sqrt (normal % normal)); #ifdef _DEBUG dgBigVector testPoint (attr0.m_vertex.m_x * alpha0 + attr1.m_vertex.m_x * alpha1 + attr2.m_vertex.m_x * alpha2, attr0.m_vertex.m_y * alpha0 + attr1.m_vertex.m_y * alpha1 + attr2.m_vertex.m_y * alpha2, attr0.m_vertex.m_z * alpha0 + attr1.m_vertex.m_z * alpha1 + attr2.m_vertex.m_z * alpha2, dgFloat32 (0.0f)); dgAssert (fabs (testPoint.m_x - point.m_x) < dgFloat32 (1.0e-2f)); dgAssert (fabs (testPoint.m_y - point.m_y) < dgFloat32 (1.0e-2f)); dgAssert (fabs (testPoint.m_z - point.m_z) < dgFloat32 (1.0e-2f)); #endif attribute.m_vertex.m_x = point.m_x; attribute.m_vertex.m_y = point.m_y; attribute.m_vertex.m_z = point.m_z; attribute.m_vertex.m_w = point.m_w; attribute.m_normal_x = normal.m_x; attribute.m_normal_y = normal.m_y; attribute.m_normal_z = normal.m_z; attribute.m_u0 = attr0.m_u0 * alpha0 + attr1.m_u0 * alpha1 + attr2.m_u0 * alpha2; attribute.m_v0 = attr0.m_v0 * alpha0 + attr1.m_v0 * alpha1 + attr2.m_v0 * alpha2; attribute.m_u1 = attr0.m_u1 * alpha0 + attr1.m_u1 * alpha1 + attr2.m_u1 * alpha2; attribute.m_v1 = attr0.m_v1 * alpha0 + attr1.m_v1 * alpha1 + attr2.m_v1 * alpha2; attribute.m_material = attr0.m_material; dgAssert (attr0.m_material == attr1.m_material); dgAssert (attr0.m_material == attr2.m_material); return attribute; } } q1 = q2; edge1 = ptr; ptr = ptr->m_next; } while (ptr != face); tol *= dgFloat64 (2.0f); } // this should never happens dgAssert (0); return attribute; } bool dgMeshEffect::HasOpenEdges () const { dgPolyhedra::Iterator iter (*this); for (iter.Begin(); iter; iter ++){ dgEdge* const face = &(*iter); if (face->m_incidentFace < 0){ return true; } } return false; } dgFloat64 dgMeshEffect::CalculateVolume () const { dgAssert (0); return 0; /* dgPolyhedraMassProperties localData; dgInt32 mark = IncLRU(); dgPolyhedra::Iterator iter (*this); for (iter.Begin(); iter; iter ++){ dgInt32 count; dgEdge* ptr; dgEdge* face; dgVector points[256]; face = &(*iter); if ((face->m_incidentFace > 0) && (face->m_mark != mark)) { count = 0; ptr = face; do { points[count] = m_points[ptr->m_incidentVertex]; count ++; ptr->m_mark = mark; ptr = ptr->m_next; } while (ptr != face); localData.AddCGFace (count, points); } } dgFloat32 volume; dgVector p0; dgVector p1; dgVector com; dgVector inertia; dgVector crossInertia; volume = localData.MassProperties (com, inertia, crossInertia); return volume; */ } dgMeshEffect* dgMeshEffect::GetNextLayer (dgInt32 mark) { Iterator iter(*this); dgEdge* edge = NULL; for (iter.Begin (); iter; iter ++) { edge = &(*iter); if ((edge->m_mark < mark) && (edge->m_incidentFace > 0)) { break; } } if (!edge) { return NULL; } dgInt32 layer = dgInt32 (m_points[edge->m_incidentVertex].m_w); dgPolyhedra polyhedra(GetAllocator()); polyhedra.BeginFace (); for (iter.Begin (); iter; iter ++) { dgEdge* const edge = &(*iter); if ((edge->m_mark < mark) && (edge->m_incidentFace > 0)) { dgInt32 thislayer = dgInt32 (m_points[edge->m_incidentVertex].m_w); if (thislayer == layer) { dgEdge* ptr = edge; dgInt32 count = 0; dgInt32 faceIndex[256]; dgInt64 faceDataIndex[256]; do { ptr->m_mark = mark; faceIndex[count] = ptr->m_incidentVertex; faceDataIndex[count] = ptr->m_userData; count ++; dgAssert (count < dgInt32 (sizeof (faceIndex)/ sizeof(faceIndex[0]))); ptr = ptr->m_next; } while (ptr != edge); polyhedra.AddFace (count, &faceIndex[0], &faceDataIndex[0]); } } } polyhedra.EndFace (); dgMeshEffect* solid = NULL; if (polyhedra.GetCount()) { solid = new (GetAllocator()) dgMeshEffect(polyhedra, *this); solid->SetLRU(mark); } return solid; } void dgMeshEffect::MergeFaces (const dgMeshEffect* const source) { dgInt32 mark = source->IncLRU(); dgPolyhedra::Iterator iter (*source); for(iter.Begin(); iter; iter ++){ dgEdge* const edge = &(*iter); if ((edge->m_incidentFace > 0) && (edge->m_mark < mark)) { dgVertexAtribute face[DG_MESH_EFFECT_POINT_SPLITED]; dgInt32 count = 0; dgEdge* ptr = edge; do { ptr->m_mark = mark; face[count] = source->m_attrib[ptr->m_userData]; count ++; dgAssert (count < dgInt32 (sizeof (face) / sizeof (face[0]))); ptr = ptr->m_next; } while (ptr != edge); AddPolygon(count, &face[0].m_vertex.m_x, sizeof (dgVertexAtribute), dgFastInt (face[0].m_material)); } } } bool dgMeshEffect::SeparateDuplicateLoops (dgEdge* const face) { for (dgEdge* ptr0 = face; ptr0 != face->m_prev; ptr0 = ptr0->m_next) { dgInt32 index = ptr0->m_incidentVertex; dgEdge* ptr1 = ptr0->m_next; do { if (ptr1->m_incidentVertex == index) { dgEdge* const ptr00 = ptr0->m_prev; dgEdge* const ptr11 = ptr1->m_prev; ptr00->m_next = ptr1; ptr1->m_prev = ptr00; ptr11->m_next = ptr0; ptr0->m_prev = ptr11; return true; } ptr1 = ptr1->m_next; } while (ptr1 != face); } return false; } void dgMeshEffect::RepairTJoints () { dgAssert (Sanity ()); // delete edge of zero length bool dirty = true; while (dirty) { dgFloat64 tol = 1.0e-5; dgFloat64 tol2 = tol * tol; dirty = false; dgPolyhedra::Iterator iter (*this); for (iter.Begin(); iter; ) { dgEdge* const edge = &(*iter); iter ++; const dgBigVector& p0 = m_points[edge->m_incidentVertex]; const dgBigVector& p1 = m_points[edge->m_twin->m_incidentVertex]; dgBigVector dist (p1 - p0); dgFloat64 mag2 = dist % dist; if (mag2 < tol2) { bool move = true; while (move) { move = false; dgEdge* ptr = edge->m_twin; do { if ((&(*iter) == ptr) || (&(*iter) == ptr->m_twin)) { move = true; iter ++; } ptr = ptr->m_twin->m_next; } while (ptr != edge->m_twin); ptr = edge; do { if ((&(*iter) == ptr) || (&(*iter) == ptr->m_twin)) { move = true; iter ++; } ptr = ptr->m_twin->m_next; } while (ptr != edge); } dgEdge* const collapsedEdge = CollapseEdge(edge); if (collapsedEdge) { dirty = true; dgBigVector q (m_points[collapsedEdge->m_incidentVertex]); dgEdge* ptr = collapsedEdge; do { if (ptr->m_incidentFace > 0) { m_attrib[ptr->m_userData].m_vertex = q; } ptr = ptr->m_twin->m_next; } while (ptr != collapsedEdge); } } } } dgAssert (Sanity ()); // repair straight open edges dgInt32 mark = IncLRU(); dgPolyhedra::Iterator iter (*this); for (iter.Begin(); iter; iter ++) { dgEdge* const edge = &(*iter); if ((edge->m_mark) != mark && (edge->m_incidentFace < 0)) { while (SeparateDuplicateLoops (edge)); dgEdge* ptr = edge; do { ptr->m_mark = mark; ptr = ptr->m_next; } while (ptr != edge); } } dgAssert (Sanity ()); DeleteDegenerateFaces(&m_points[0].m_x, sizeof (m_points[0]), dgFloat64 (1.0e-7f)); dgAssert (Sanity ()); // delete straight line edges dirty = true; while (dirty) { dgFloat64 tol = 1.0 - 1.0e-8; dgFloat64 tol2 = tol * tol; dirty = false; dgAssert (Sanity ()); dgPolyhedra::Iterator iter (*this); for (iter.Begin(); iter; ) { dgEdge* const edge = &(*iter); iter ++; const dgBigVector& p0 = m_points[edge->m_incidentVertex]; const dgBigVector& p1 = m_points[edge->m_next->m_incidentVertex]; const dgBigVector& p2 = m_points[edge->m_next->m_next->m_incidentVertex]; dgBigVector A (p1 - p0); dgBigVector B (p2 - p1); dgFloat64 ab = A % B; if (ab >= 0.0f) { dgFloat64 aa = A % A; dgFloat64 bb = B % B; dgFloat64 magab2 = ab * ab; dgFloat64 magaabb = aa * bb * tol2; if (magab2 >= magaabb) { if ((edge->m_incidentFace > 0) && (edge->m_twin->m_incidentFace > 0)) { if (edge->m_twin->m_prev == edge->m_next->m_twin) { dgEdge* const newEdge = AddHalfEdge(edge->m_incidentVertex, edge->m_next->m_next->m_incidentVertex); if (newEdge) { dirty = true; dgEdge* const newTwin = AddHalfEdge(edge->m_next->m_next->m_incidentVertex, edge->m_incidentVertex); dgAssert (newEdge); dgAssert (newTwin); newEdge->m_twin = newTwin; newTwin->m_twin = newEdge; newEdge->m_userData = edge->m_userData; newTwin->m_userData = edge->m_twin->m_prev->m_userData; newEdge->m_incidentFace = edge->m_incidentFace; newTwin->m_incidentFace = edge->m_twin->m_incidentFace; dgEdge* const nextEdge = edge->m_next; nextEdge->m_twin->m_prev->m_next = newTwin; newTwin->m_prev = nextEdge->m_twin->m_prev; edge->m_twin->m_next->m_prev = newTwin; newTwin->m_next = edge->m_twin->m_next; nextEdge->m_next->m_prev = newEdge; newEdge->m_next = nextEdge->m_next; edge->m_prev->m_next = newEdge; newEdge->m_prev = edge->m_prev; while ((&(*iter) == edge->m_twin) || (&(*iter) == nextEdge) || (&(*iter) == nextEdge->m_twin)) { iter ++; } nextEdge->m_twin->m_prev = nextEdge; nextEdge->m_twin->m_next = nextEdge; nextEdge->m_prev = nextEdge->m_twin; nextEdge->m_next = nextEdge->m_twin; edge->m_twin->m_prev = edge; edge->m_twin->m_next = edge; edge->m_prev = edge->m_twin; edge->m_next = edge->m_twin; DeleteEdge(edge); DeleteEdge(nextEdge); //dgAssert (Sanity ()); } else if (edge->m_next->m_next->m_next == edge) { dirty = true; dgEdge* const openEdge = edge; dgEdge* const nextEdge = openEdge->m_next; dgEdge* const deletedEdge = openEdge->m_prev; while ((&(*iter) == deletedEdge) || (&(*iter) == deletedEdge->m_twin)) { iter ++; } openEdge->m_userData = deletedEdge->m_twin->m_userData; dgBigVector p2p0 (p2 - p0); dgFloat64 den = p2p0 % p2p0; dgFloat64 param1 = ((p1 - p0) % p2p0) / den; dgVertexAtribute attib1 = InterpolateEdge (deletedEdge->m_twin, param1); AddAtribute(attib1); openEdge->m_next->m_userData = m_atribCount - 1; openEdge->m_incidentFace = deletedEdge->m_twin->m_incidentFace; openEdge->m_next->m_incidentFace = deletedEdge->m_twin->m_incidentFace; deletedEdge->m_twin->m_prev->m_next = openEdge; openEdge->m_prev = deletedEdge->m_twin->m_prev; deletedEdge->m_twin->m_next->m_prev = nextEdge; nextEdge->m_next = deletedEdge->m_twin->m_next; deletedEdge->m_twin->m_next = deletedEdge; deletedEdge->m_twin->m_prev = deletedEdge; deletedEdge->m_next = deletedEdge->m_twin; deletedEdge->m_prev = deletedEdge->m_twin; DeleteEdge(deletedEdge); //dgAssert (Sanity ()); } } } else if (FindEdge(edge->m_incidentVertex, edge->m_next->m_next->m_incidentVertex)) { dgEdge* const openEdge = edge; dgAssert (openEdge->m_incidentFace <= 0); dgEdge* const nextEdge = openEdge->m_next; dgEdge* const deletedEdge = openEdge->m_prev; if (deletedEdge == openEdge->m_next->m_next) { dirty = true; while ((&(*iter) == deletedEdge) || (&(*iter) == deletedEdge->m_twin)) { iter ++; } dgAssert (deletedEdge->m_twin->m_incidentFace > 0); openEdge->m_incidentFace = deletedEdge->m_twin->m_incidentFace; openEdge->m_next->m_incidentFace = deletedEdge->m_twin->m_incidentFace; openEdge->m_userData = deletedEdge->m_twin->m_userData; dgBigVector p2p0 (p2 - p0); dgFloat64 den = p2p0 % p2p0; dgFloat64 param1 = ((p1 - p0) % p2p0) / den; dgVertexAtribute attib1 = InterpolateEdge (deletedEdge->m_twin, param1); attib1.m_vertex = m_points[openEdge->m_next->m_incidentVertex]; AddAtribute(attib1); openEdge->m_next->m_userData = m_atribCount - 1; deletedEdge->m_twin->m_prev->m_next = openEdge; openEdge->m_prev = deletedEdge->m_twin->m_prev; deletedEdge->m_twin->m_next->m_prev = nextEdge; nextEdge->m_next = deletedEdge->m_twin->m_next; deletedEdge->m_twin->m_next = deletedEdge; deletedEdge->m_twin->m_prev = deletedEdge; deletedEdge->m_next = deletedEdge->m_twin; deletedEdge->m_prev = deletedEdge->m_twin; DeleteEdge(deletedEdge); //dgAssert (Sanity ()); } } else { dgEdge* const openEdge = (edge->m_incidentFace <= 0) ? edge : edge->m_twin; dgAssert (openEdge->m_incidentFace <= 0); const dgBigVector& p3 = m_points[openEdge->m_next->m_next->m_next->m_incidentVertex]; dgBigVector A (p3 - p2); dgBigVector B (p2 - p1); dgFloat64 ab (A % B); if (ab >= 0.0) { dgFloat64 aa (A % A); dgFloat64 bb (B % B); dgFloat64 magab2 = ab * ab; dgFloat64 magaabb = aa * bb * tol2; if (magab2 >= magaabb) { if (openEdge->m_next->m_next->m_next->m_next != openEdge) { const dgBigVector& p4 = m_points[openEdge->m_prev->m_incidentVertex]; dgBigVector A (p1 - p0); dgBigVector B (p1 - p4); dgFloat64 ab (A % B); if (ab < 0.0f) { dgFloat64 magab2 = ab * ab; dgFloat64 magaabb = aa * bb * tol2; if (magab2 >= magaabb) { dgEdge* const newFace = ConnectVertex (openEdge->m_prev, openEdge->m_next); dirty |= newFace ? true : false; } } //dgAssert (Sanity ()); } else if (openEdge->m_prev->m_twin->m_incidentFace > 0) { dirty = true; dgEdge* const nextEdge = openEdge->m_next->m_next; dgEdge* const deletedEdge = openEdge->m_prev; while ((&(*iter) == deletedEdge) || (&(*iter) == deletedEdge->m_twin)) { iter ++; } openEdge->m_incidentFace = deletedEdge->m_twin->m_incidentFace; openEdge->m_next->m_incidentFace = deletedEdge->m_twin->m_incidentFace; openEdge->m_next->m_next->m_incidentFace = deletedEdge->m_twin->m_incidentFace; openEdge->m_userData = deletedEdge->m_twin->m_userData; dgBigVector p3p0 (p3 - p0); dgFloat64 den = p3p0 % p3p0; dgFloat64 param1 = ((p1 - p0) % p3p0) / den; dgVertexAtribute attib1 = InterpolateEdge (deletedEdge->m_twin, param1); attib1.m_vertex = m_points[openEdge->m_next->m_incidentVertex]; AddAtribute(attib1); openEdge->m_next->m_userData = m_atribCount - 1; dgFloat64 param2 = ((p2 - p0) % p3p0) / den; dgVertexAtribute attib2 = InterpolateEdge (deletedEdge->m_twin, param2); attib2.m_vertex = m_points[openEdge->m_next->m_next->m_incidentVertex]; AddAtribute(attib2); openEdge->m_next->m_next->m_userData = m_atribCount - 1; deletedEdge->m_twin->m_prev->m_next = openEdge; openEdge->m_prev = deletedEdge->m_twin->m_prev; deletedEdge->m_twin->m_next->m_prev = nextEdge; nextEdge->m_next = deletedEdge->m_twin->m_next; deletedEdge->m_twin->m_next = deletedEdge; deletedEdge->m_twin->m_prev = deletedEdge; deletedEdge->m_next = deletedEdge->m_twin; deletedEdge->m_prev = deletedEdge->m_twin; DeleteEdge(deletedEdge); //dgAssert (Sanity ()); } } } } } } } } dgAssert (Sanity ()); DeleteDegenerateFaces(&m_points[0].m_x, sizeof (m_points[0]), dgFloat64 (1.0e-7f)); for (iter.Begin(); iter; iter ++) { dgEdge* const edge = &iter.GetNode()->GetInfo(); if (edge->m_incidentFace > 0) { dgBigVector p0 (m_points[edge->m_incidentVertex]); m_attrib[edge->m_userData].m_vertex.m_x = p0.m_x; m_attrib[edge->m_userData].m_vertex.m_y = p0.m_y; m_attrib[edge->m_userData].m_vertex.m_z = p0.m_z; } } dgAssert (Sanity ()); }
30.479586
234
0.644234
wivlaro
596c733ed7598fbf307a9324884bdb5b95bf66e1
538
cpp
C++
test/test_symbol_load.cpp
lingjf/h2un
7735c2f07f58ea8b92a9e9608c9b45c98c94c670
[ "Apache-2.0" ]
5
2015-03-02T22:29:00.000Z
2020-06-28T08:52:00.000Z
test/test_symbol_load.cpp
lingjf/h2un
7735c2f07f58ea8b92a9e9608c9b45c98c94c670
[ "Apache-2.0" ]
5
2019-05-10T02:28:00.000Z
2021-07-17T00:53:18.000Z
test/test_symbol_load.cpp
lingjf/h2un
7735c2f07f58ea8b92a9e9608c9b45c98c94c670
[ "Apache-2.0" ]
5
2016-05-25T07:31:16.000Z
2021-08-29T04:25:18.000Z
#include "../source/h2_unit.cpp" void say_something1() { ::printf("hello world\n"); } #if 0 SUITE(load) { Case(addr_to_ptr) { h2::h2_symbol* res[16]; int n = h2::h2_nm::get_by_name("say_something1", res, 16); OK(1, n); OK(Nq((unsigned long long)say_something1), (unsigned long long)res[0]->offset); OK((unsigned long long)say_something1, (unsigned long long)res[0]->offset); OK((unsigned long long)say_something1, (unsigned long long)h2::h2_load::addr_to_ptr(res[0]->offset)); } } #endif
24.454545
107
0.644981
lingjf
597fefef7cb4bddfa4c1c0b181b1ce8f5d300357
495
hpp
C++
Plus7/Modules/Gfx/Include/RasterizerProperties.hpp
txfx/plus7
44df3622ea8abe296d921759144e5f0d630b2945
[ "MIT" ]
null
null
null
Plus7/Modules/Gfx/Include/RasterizerProperties.hpp
txfx/plus7
44df3622ea8abe296d921759144e5f0d630b2945
[ "MIT" ]
null
null
null
Plus7/Modules/Gfx/Include/RasterizerProperties.hpp
txfx/plus7
44df3622ea8abe296d921759144e5f0d630b2945
[ "MIT" ]
null
null
null
#pragma once namespace p7 { namespace gfx { enum class PolygonMode { Fill, Line, Point }; enum class CullMode { None, Front, Back, Front_And_Back }; enum class FrontFace { ClockWise, CounterClockWise }; struct RasterizerProperties { PolygonMode fillmode = PolygonMode::Fill; CullMode cullmode = CullMode::Back; FrontFace frontface = FrontFace::CounterClockWise; bool scissor = false; }; } // namespace gfx } // namespace p7
14.558824
56
0.652525
txfx
59950b49010124aa885e437363e451e6bb05f30e
5,431
cpp
C++
src/final_chain/replay_protection_service.cpp
agrebin/taraxa-node
a594b01f52e727c8fc5dc87c9c325510c2a6f1cb
[ "MIT" ]
null
null
null
src/final_chain/replay_protection_service.cpp
agrebin/taraxa-node
a594b01f52e727c8fc5dc87c9c325510c2a6f1cb
[ "MIT" ]
7
2021-06-08T12:40:38.000Z
2021-06-16T12:11:15.000Z
src/final_chain/replay_protection_service.cpp
agrebin/taraxa-node
a594b01f52e727c8fc5dc87c9c325510c2a6f1cb
[ "MIT" ]
null
null
null
#include "replay_protection_service.hpp" #include <libdevcore/CommonJS.h> #include <libdevcore/RLP.h> #include <optional> #include <shared_mutex> #include <sstream> #include <string> #include <unordered_map> #include "util/util.hpp" namespace taraxa::final_chain { using namespace dev; using namespace util; using namespace std; string senderStateKey(string const& sender_addr_hex) { return "sender_" + sender_addr_hex; } string periodDataKeysKey(uint64_t period) { return "data_keys_at_" + to_string(period); } string maxNonceAtRoundKey(uint64_t period, string const& sender_addr_hex) { return "max_nonce_at_" + to_string(period) + "_" + sender_addr_hex; } struct SenderState { uint64_t nonce_max = 0; optional<uint64_t> nonce_watermark; explicit SenderState(uint64_t nonce_max) : nonce_max(nonce_max) {} explicit SenderState(RLP const& rlp) : nonce_max(rlp[0].toInt<trx_nonce_t>()), nonce_watermark(rlp[1].toInt<bool>() ? optional(rlp[2].toInt<uint64_t>()) : std::nullopt) {} bytes rlp() { RLPStream rlp(3); rlp << nonce_max; rlp << nonce_watermark.has_value(); rlp << (nonce_watermark ? *nonce_watermark : 0); return rlp.out(); } }; DB::Slice db_slice(dev::bytes const& b) { return {(char*)b.data(), b.size()}; } class ReplayProtectionServiceImpl : public virtual ReplayProtectionService { Config config_; shared_ptr<DB> db_; shared_mutex mutable mu_; public: ReplayProtectionServiceImpl(Config const& config, shared_ptr<DB> db) : config_(config), db_(move(db)) {} bool is_nonce_stale(addr_t const& addr, uint64_t nonce) const override { shared_lock l(mu_); auto sender_state = loadSenderState(senderStateKey(addr.hex())); if (!sender_state) { return false; } return sender_state->nonce_watermark && nonce <= *sender_state->nonce_watermark; } // TODO use binary types instead of hex strings void update(DB::Batch& batch, uint64_t period, RangeView<TransactionInfo> const& trxs) override { unique_lock l(mu_); unordered_map<string, shared_ptr<SenderState>> sender_states; sender_states.reserve(trxs.size); unordered_map<string, shared_ptr<SenderState>> sender_states_dirty; sender_states_dirty.reserve(trxs.size); trxs.for_each([&, this](auto const& trx) { auto sender_addr = trx.sender.hex(); shared_ptr<SenderState> sender_state; if (auto e = sender_states.find(sender_addr); e != sender_states.end()) { sender_state = e->second; } else { sender_state = loadSenderState(senderStateKey(sender_addr)); if (!sender_state) { sender_states[sender_addr] = sender_states_dirty[sender_addr] = s_ptr(new SenderState(trx.nonce)); return; } sender_states[sender_addr] = sender_state; } if (sender_state->nonce_max < trx.nonce) { sender_state->nonce_max = trx.nonce; sender_states_dirty[sender_addr] = sender_state; } }); stringstream period_data_keys; for (auto const& [sender, state] : sender_states_dirty) { db_->insert(batch, DB::Columns::final_chain_replay_protection, maxNonceAtRoundKey(period, sender), to_string(state->nonce_max)); db_->insert(batch, DB::Columns::final_chain_replay_protection, senderStateKey(sender), db_slice(state->rlp())); period_data_keys << sender << "\n"; } if (auto v = period_data_keys.str(); !v.empty()) { db_->insert(batch, DB::Columns::final_chain_replay_protection, periodDataKeysKey(period), v); } if (period < config_.range) { return; } auto bottom_period = period - config_.range; auto bottom_period_data_keys_key = periodDataKeysKey(bottom_period); auto keys = db_->lookup(bottom_period_data_keys_key, DB::Columns::final_chain_replay_protection); if (keys.empty()) { return; } istringstream is(keys); for (string line; getline(is, line);) { auto nonce_max_key = maxNonceAtRoundKey(bottom_period, line); if (auto v = db_->lookup(nonce_max_key, DB::Columns::final_chain_replay_protection); !v.empty()) { auto sender_state_key = senderStateKey(line); auto state = loadSenderState(sender_state_key); state->nonce_watermark = stoull(v); db_->insert(batch, DB::Columns::final_chain_replay_protection, sender_state_key, db_slice(state->rlp())); db_->remove(batch, DB::Columns::final_chain_replay_protection, nonce_max_key); } } db_->remove(batch, DB::Columns::final_chain_replay_protection, bottom_period_data_keys_key); } shared_ptr<SenderState> loadSenderState(string const& key) const { if (auto v = db_->lookup(key, DB::Columns::final_chain_replay_protection); !v.empty()) { return s_ptr(new SenderState(RLP(v))); } return nullptr; } }; std::unique_ptr<ReplayProtectionService> NewReplayProtectionService(ReplayProtectionService::Config config, std::shared_ptr<DB> db) { return make_unique<ReplayProtectionServiceImpl>(config, move(db)); } Json::Value enc_json(ReplayProtectionService::Config const& obj) { Json::Value json(Json::objectValue); json["range"] = dev::toJS(obj.range); return json; } void dec_json(Json::Value const& json, ReplayProtectionService::Config& obj) { obj.range = dev::jsToInt(json["range"].asString()); } } // namespace taraxa::final_chain
37.455172
117
0.69582
agrebin
59976f90689a1ebd7daa77a7d18111f1108d5707
3,586
inl
C++
Base/PLCore/include/PLCore/Application/ApplicationContext.inl
ktotheoz/pixellight
43a661e762034054b47766d7e38d94baf22d2038
[ "MIT" ]
83
2015-01-08T15:06:14.000Z
2021-07-20T17:07:00.000Z
Base/PLCore/include/PLCore/Application/ApplicationContext.inl
PixelLightFoundation/pixellight
43a661e762034054b47766d7e38d94baf22d2038
[ "MIT" ]
27
2019-06-18T06:46:07.000Z
2020-02-02T11:11:28.000Z
Base/PLCore/include/PLCore/Application/ApplicationContext.inl
naetherm/PixelLight
d7666f5b49020334cbb5debbee11030f34cced56
[ "MIT" ]
40
2015-02-25T18:24:34.000Z
2021-03-06T09:01:48.000Z
/*********************************************************\ * File: ApplicationContext.inl * * * Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/) * * This file is part of PixelLight. * * 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. \*********************************************************/ //[-------------------------------------------------------] //[ Namespace ] //[-------------------------------------------------------] namespace PLCore { //[-------------------------------------------------------] //[ Public functions ] //[-------------------------------------------------------] //[-------------------------------------------------------] //[ Options and data ] //[-------------------------------------------------------] /** * @brief * Get absolute path of application executable */ inline String ApplicationContext::GetExecutableFilename() const { // Return absolute executable filename return m_sExecutableFilename; } /** * @brief * Get command line arguments */ inline const Array<String> &ApplicationContext::GetArguments() const { // Return argument list return m_lstArguments; } /** * @brief * Set command line arguments */ inline void ApplicationContext::SetArguments(const Array<String> &lstArguments) { // Set argument list m_lstArguments = lstArguments; } /** * @brief * Get directory of application executable */ inline String ApplicationContext::GetExecutableDirectory() const { // Return application executable directory return m_sExecutableDirectory; } /** * @brief * Get directory of application */ inline String ApplicationContext::GetAppDirectory() const { // Return application directory return m_sAppDirectory; } /** * @brief * Get current directory when the application constructor was called */ inline String ApplicationContext::GetStartupDirectory() const { // Return startup directory return m_sStartupDirectory; } /** * @brief * Get log filename */ inline String ApplicationContext::GetLogFilename() const { // Return log filename return m_sLog; } /** * @brief * Get config filename */ inline String ApplicationContext::GetConfigFilename() const { // Return config filename return m_sConfig; } //[-------------------------------------------------------] //[ Namespace ] //[-------------------------------------------------------] } // PLCore
29.393443
97
0.578639
ktotheoz
599a66bc13ffa4630c6484be6cdf9ffce4394696
7,939
cpp
C++
Frame/Server/ProxyServer/ProxyNetClientPlugin/AFCProxyServerToGameModule.cpp
yebing115/ARK
f1c61b222dacc83e95ffb623b4ce99cbb8e386d5
[ "Apache-2.0" ]
1
2021-07-09T04:50:39.000Z
2021-07-09T04:50:39.000Z
Frame/Server/ProxyServer/ProxyNetClientPlugin/AFCProxyServerToGameModule.cpp
yigao/ARK
f1c61b222dacc83e95ffb623b4ce99cbb8e386d5
[ "Apache-2.0" ]
1
2018-12-19T08:58:25.000Z
2018-12-19T08:59:07.000Z
Frame/Server/ProxyServer/ProxyNetClientPlugin/AFCProxyServerToGameModule.cpp
yigao/ARK
f1c61b222dacc83e95ffb623b4ce99cbb8e386d5
[ "Apache-2.0" ]
null
null
null
/* * This source file is part of ArkGameFrame * For the latest info, see https://github.com/ArkGame * * Copyright (c) 2013-2018 ArkGame authors. * * 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. * */ #include "AFCProxyServerToGameModule.h" #include "AFProxyNetClientPlugin.h" #include "SDK/Core/AFIHeartBeatManager.h" #include "SDK/Core/AFCHeartBeatManager.h" #include "SDK/Interface/AFIClassModule.h" bool AFCProxyServerToGameModule::Init() { m_pNetClientModule = ARK_NEW AFINetClientModule(pPluginManager); m_pNetClientModule->Init(); return true; } bool AFCProxyServerToGameModule::Shut() { //Final(); //Clear(); return true; } void AFCProxyServerToGameModule::Update() { m_pNetClientModule->Update(); } bool AFCProxyServerToGameModule::PostInit() { m_pProxyLogicModule = pPluginManager->FindModule<AFIProxyLogicModule>(); m_pKernelModule = pPluginManager->FindModule<AFIKernelModule>(); m_pProxyServerNet_ServerModule = pPluginManager->FindModule<AFIProxyNetServerModule>(); m_pElementModule = pPluginManager->FindModule<AFIElementModule>(); m_pLogModule = pPluginManager->FindModule<AFILogModule>(); m_pClassModule = pPluginManager->FindModule<AFIClassModule>(); m_pNetClientModule->AddReceiveCallBack(AFMsg::EGMI_ACK_ENTER_GAME, this, &AFCProxyServerToGameModule::OnAckEnterGame); m_pNetClientModule->AddReceiveCallBack(AFMsg::EGMI_GTG_BROCASTMSG, this, &AFCProxyServerToGameModule::OnBrocastmsg); m_pNetClientModule->AddReceiveCallBack(this, &AFCProxyServerToGameModule::Transpond); m_pNetClientModule->AddEventCallBack(this, &AFCProxyServerToGameModule::OnSocketGSEvent); ARK_SHARE_PTR<AFIClass> xLogicClass = m_pClassModule->GetElement("Server"); if(nullptr != xLogicClass) { AFList<std::string>& xNameList = xLogicClass->GetConfigNameList(); std::string strConfigName; for(bool bRet = xNameList.First(strConfigName); bRet; bRet = xNameList.Next(strConfigName)) { const int nServerType = m_pElementModule->GetNodeInt(strConfigName, "Type"); const int nServerID = m_pElementModule->GetNodeInt(strConfigName, "ServerID"); if(nServerType == ARK_SERVER_TYPE::ARK_ST_GAME) { const int nPort = m_pElementModule->GetNodeInt(strConfigName, "Port"); const int nMaxConnect = m_pElementModule->GetNodeInt(strConfigName, "MaxOnline"); const int nCpus = m_pElementModule->GetNodeInt(strConfigName, "CpuCount"); const std::string strName(m_pElementModule->GetNodeString(strConfigName, "Name")); const std::string strIP(m_pElementModule->GetNodeString(strConfigName, "IP")); ConnectData xServerData; xServerData.nGameID = nServerID; xServerData.eServerType = (ARK_SERVER_TYPE)nServerType; xServerData.strIP = strIP; xServerData.nPort = nPort; xServerData.strName = strName; m_pNetClientModule->AddServer(xServerData); } } } return true; } AFINetClientModule* AFCProxyServerToGameModule::GetClusterModule() { return m_pNetClientModule; } void AFCProxyServerToGameModule::OnSocketGSEvent(const NetEventType eEvent, const AFGUID& xClientID, const int nServerID) { if(eEvent == DISCONNECTED) { ARK_LOG_INFO("Connection closed, id = %s", xClientID.ToString().c_str()); } else if(eEvent == CONNECTED) { ARK_LOG_INFO("Connected success, id = %s", xClientID.ToString().c_str()); Register(nServerID); } } void AFCProxyServerToGameModule::Register(const int nServerID) { ARK_SHARE_PTR<AFIClass> xLogicClass = m_pClassModule->GetElement("Server"); if(nullptr == xLogicClass) { ARK_ASSERT_NO_EFFECT(0); } AFList<std::string>& xNameList = xLogicClass->GetConfigNameList(); std::string strConfigName; for(bool bRet = xNameList.First(strConfigName); bRet; bRet = xNameList.Next(strConfigName)) { const int nServerType = m_pElementModule->GetNodeInt(strConfigName, "Type"); const int nSelfServerID = m_pElementModule->GetNodeInt(strConfigName, "ServerID"); if(nServerType == ARK_SERVER_TYPE::ARK_ST_PROXY && pPluginManager->AppID() == nSelfServerID) { const int nPort = m_pElementModule->GetNodeInt(strConfigName, "Port"); const int nMaxConnect = m_pElementModule->GetNodeInt(strConfigName, "MaxOnline"); const int nCpus = m_pElementModule->GetNodeInt(strConfigName, "CpuCount"); const std::string strName(m_pElementModule->GetNodeString(strConfigName, "Name")); const std::string strIP(m_pElementModule->GetNodeString(strConfigName, "IP")); AFMsg::ServerInfoReportList xMsg; AFMsg::ServerInfoReport* pData = xMsg.add_server_list(); pData->set_server_id(nSelfServerID); pData->set_server_name(strName); pData->set_server_cur_count(0); pData->set_server_ip(strIP); pData->set_server_port(nPort); pData->set_server_max_online(nMaxConnect); pData->set_server_state(AFMsg::EST_NARMAL); pData->set_server_type(nServerType); ARK_SHARE_PTR<ConnectData> pServerData = m_pNetClientModule->GetServerNetInfo(nServerID); if(pServerData) { int nTargetID = pServerData->nGameID; m_pNetClientModule->SendToServerByPB(nTargetID, AFMsg::EGameMsgID::EGMI_PTWG_PROXY_REGISTERED, xMsg, 0); ARK_LOG_INFO("Register, server_id = %d server_name = %s", pData->server_id(), pData->server_name().c_str()); } } } } void AFCProxyServerToGameModule::OnAckEnterGame(const AFIMsgHead& xHead, const int nMsgID, const char* msg, const uint32_t nLen, const AFGUID& xClientID) { AFGUID nPlayerID; AFMsg::AckEventResult xData; if(!AFINetServerModule::ReceivePB(xHead, nMsgID, msg, nLen, xData, nPlayerID)) { return; } if(xData.event_code() == AFMsg::EGEC_ENTER_GAME_SUCCESS) { const AFGUID& xClient = AFINetServerModule::PBToGUID(xData.event_client()); const AFGUID& xPlayer = AFINetServerModule::PBToGUID(xData.event_object()); m_pProxyServerNet_ServerModule->EnterGameSuccessEvent(xClient, xPlayer); } } void AFCProxyServerToGameModule::OnBrocastmsg(const AFIMsgHead& xHead, const int nMsgID, const char* msg, const uint32_t nLen, const AFGUID& xClientID) { //保持记录,直到下线,或者1分钟不上线即可删除 AFGUID nPlayerID; AFMsg::BrocastMsg xMsg; if(!AFINetServerModule::ReceivePB(xHead, nMsgID, msg, nLen, xMsg, nPlayerID)) { return; } for(int i = 0; i < xMsg.player_client_list_size(); i++) { const AFMsg::Ident& tmpID = xMsg.player_client_list(i); m_pProxyServerNet_ServerModule->SendToPlayerClient(xMsg.nmsgid(), xMsg.msg_data().c_str(), xMsg.msg_data().size(), AFINetServerModule::PBToGUID(tmpID), nPlayerID); } } void AFCProxyServerToGameModule::LogServerInfo(const std::string& strServerInfo) { ARK_LOG_INFO("%s", strServerInfo.c_str()); } void AFCProxyServerToGameModule::Transpond(const AFIMsgHead& xHead, const int nMsgID, const char * msg, const uint32_t nLen, const AFGUID& xClientID) { m_pProxyServerNet_ServerModule->Transpond(xHead, nMsgID, msg, nLen); }
39.108374
171
0.70034
yebing115
599c11f5305faeb0f97c4072f6b1c2288de4d551
8,865
cpp
C++
Plugins/PLParticleGroups/src/PGFume.cpp
ktotheoz/pixellight
43a661e762034054b47766d7e38d94baf22d2038
[ "MIT" ]
83
2015-01-08T15:06:14.000Z
2021-07-20T17:07:00.000Z
Plugins/PLParticleGroups/src/PGFume.cpp
PixelLightFoundation/pixellight
43a661e762034054b47766d7e38d94baf22d2038
[ "MIT" ]
19
2018-08-24T08:10:13.000Z
2018-11-29T06:39:08.000Z
Plugins/PLParticleGroups/src/PGFume.cpp
ktotheoz/pixellight
43a661e762034054b47766d7e38d94baf22d2038
[ "MIT" ]
40
2015-02-25T18:24:34.000Z
2021-03-06T09:01:48.000Z
/*********************************************************\ * File: PGFume.cpp * * * Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/) * * This file is part of PixelLight. * * 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. \*********************************************************/ //[-------------------------------------------------------] //[ Includes ] //[-------------------------------------------------------] #include <PLCore/Tools/Timing.h> #include <PLScene/Scene/SceneContext.h> #include "PLParticleGroups/PGFume.h" //[-------------------------------------------------------] //[ Namespace ] //[-------------------------------------------------------] using namespace PLCore; using namespace PLMath; using namespace PLScene; namespace PLParticleGroups { //[-------------------------------------------------------] //[ RTTI interface ] //[-------------------------------------------------------] pl_implement_class(PGFume) //[-------------------------------------------------------] //[ Public functions ] //[-------------------------------------------------------] /** * @brief * Default constructor */ PGFume::PGFume() : Size(this), SizeTimeScale(this), Energie(this), Color(this), PositionScale(this), Material(this), Particles(this), TextureAnimationColumns(this), TextureAnimationRows(this), EventHandlerUpdate(&PGFume::OnUpdate, this), m_bUpdate(false), m_fParticleTime(0.0f), m_bCreateNewParticles(true) { // Overwritten SNParticleGroup variables m_sMaterial = "Data/Effects/PGFume.plfx"; m_nParticles = 20; m_nTextureAnimationColumns = 4; m_nTextureAnimationRows = 4; // Init data m_SData.fSize = 0.0f; m_SData.fEnergy = 0.0f; m_SData.fParticleTime = 0.0f; } /** * @brief * Destructor */ PGFume::~PGFume() { } /** * @brief * Returns the default settings of the particle group */ void PGFume::GetDefaultSettings(PGFume::InitData &cData) const { // Set default settings cData.fSize = Size; cData.fEnergy = Energie; cData.fParticleTime = 0.01f; } /** * @brief * Returns whether new particles should be created or not */ bool PGFume::GetCreateNewParticles() const { return m_bCreateNewParticles; } /** * @brief * Sets whether new particles should be created or not */ void PGFume::CreateNewParticles(bool bCreate) { m_bCreateNewParticles = bCreate; } //[-------------------------------------------------------] //[ Private virtual PLScene::SceneNode functions ] //[-------------------------------------------------------] void PGFume::OnActivate(bool bActivate) { // Call the base implementation SNParticleGroup::OnActivate(bActivate); // Connect/disconnect event handler SceneContext *pSceneContext = GetSceneContext(); if (pSceneContext) { if (bActivate) pSceneContext->EventUpdate.Connect(EventHandlerUpdate); else pSceneContext->EventUpdate.Disconnect(EventHandlerUpdate); } } void PGFume::OnAddedToVisibilityTree(VisNode &cVisNode) { m_bUpdate = true; } //[-------------------------------------------------------] //[ Private functions ] //[-------------------------------------------------------] /** * @brief * Initializes a particle */ void PGFume::InitParticle(Particle &cParticle) const { float vColor = static_cast<float>(200 + Math::GetRand()%56)/255; cParticle.vColor[0] = vColor*Color.Get().r; cParticle.vColor[1] = vColor*Color.Get().g; cParticle.vColor[2] = vColor*Color.Get().b; cParticle.vColor[3] = 1.0f; cParticle.vPos.x = GetTransform().GetPosition().x + Math::GetRandNegFloat()*PositionScale; cParticle.vPos.y = GetTransform().GetPosition().y + Math::GetRandNegFloat()*PositionScale; cParticle.vPos.z = GetTransform().GetPosition().z + Math::GetRandNegFloat()*PositionScale; cParticle.fSize = m_SData.fSize*2; cParticle.fRot = Math::GetRandNegFloat()*180; cParticle.fEnergy = 255*m_SData.fEnergy; cParticle.vVelocity.x = 5.0f + 6.0f * Math::GetRandFloat(); // Lifetime cParticle.vVelocity.y = 1.0f + 4.0f * Math::GetRandFloat(); // Frequency cParticle.vVelocity.z = 20.0f + 30.0f * Math::GetRandFloat(); // Intensity cParticle.vDistortion.x = 0.0f; cParticle.vDistortion.y = 0.0f; cParticle.vDistortion.z = 0.0f; cParticle.fCustom1 = Math::GetRandNegFloat()*0.5f; } /** * @brief * Called when the scene node needs to be updated */ void PGFume::OnUpdate() { // If this scene node wasn't drawn at the last frame, we can skip some update stuff if ((GetFlags() & ForceUpdate) || m_bUpdate) { m_bUpdate = false; // Check new particle generation float fTimeDiff = Timing::GetInstance()->GetTimeDifference(); if (!GetRemoveAutomatically() && m_bCreateNewParticles) { m_fParticleTime -= fTimeDiff; if (m_fParticleTime < 0.0f) { // Create a new particle m_fParticleTime = m_SData.fParticleTime; Particle *pParticle = AddParticle(); if (pParticle) InitParticle(*pParticle); } } uint32 nActive = 0; { // Update particles float fFriction = static_cast<float>(Math::Pow(0.3f, fTimeDiff)); Iterator<Particle> cIterator = GetParticleIterator(); while (cIterator.HasNext()) { Particle &cParticle = cIterator.Next(); nActive++; cParticle.fSize += 0.8f*fTimeDiff*SizeTimeScale; cParticle.vVelocity.x -= fTimeDiff; // Lifetime cParticle.vVelocity.z -= fTimeDiff*20.0f*Math::GetRandFloat(); // Intensity cParticle.vPos.x += cParticle.vDistortion.x*fTimeDiff; // Velocity cParticle.vPos.y += cParticle.vDistortion.y*fTimeDiff; cParticle.vPos.z += cParticle.vDistortion.z*fTimeDiff; cParticle.vDistortion.x *= fFriction; cParticle.vDistortion.y *= fFriction; cParticle.vDistortion.z *= fFriction; cParticle.fRot += fTimeDiff*cParticle.fCustom1; float vColor = (cParticle.vVelocity.z + 30.0f*Math::Sin(cParticle.vVelocity.x*cParticle.vVelocity.y))/255; if (vColor < 0.0f) { vColor = 0.0f; if (cParticle.vVelocity.x <= 0.0f) { RemoveParticle(cParticle); continue; } } cParticle.vColor[3] = vColor*Color.Get().a; // Texture animation cParticle.fAnimationTimer += fTimeDiff; if (cParticle.fAnimationTimer > 0.08f) { cParticle.fAnimationTimer = 0.0f; cParticle.nAnimationStep++; if (cParticle.nAnimationStep >= GetTextureAnimationSteps()) cParticle.nAnimationStep = 0; } } } // Remove particle group? if (GetRemoveAutomatically() && !nActive) Delete(); else { // We have to recalculate the current axis align bounding box in 'scene node space' DirtyAABoundingBox(); } } } //[-------------------------------------------------------] //[ Public virtual SNParticleGroup functions ] //[-------------------------------------------------------] bool PGFume::InitParticleGroup(uint32 nMaxNumOfParticles, const String &sMaterial, const void *pData) { if (pData) { const InitData &cData = *static_cast<const InitData*>(pData); m_SData.fSize = cData.fSize; m_SData.fEnergy = cData.fEnergy; m_SData.fParticleTime = cData.fParticleTime; } else { GetDefaultSettings(m_SData); } // Initialize the particles if (!InitParticles(nMaxNumOfParticles, sMaterial)) return false; // Error! // Init data m_fParticleTime = m_SData.fParticleTime; // Done return true; } //[-------------------------------------------------------] //[ Namespace ] //[-------------------------------------------------------] } // PLParticleGroups
31.774194
110
0.593909
ktotheoz
599f7a6db73425a6b163880e7a94cfff1b1d45f7
640
cpp
C++
prob03/main.cpp
CSUF-CPSC120-2019F23-24/labex02-romanharv1
7d40d08235a36a78539c9bd21d6512a1d58c1410
[ "MIT" ]
null
null
null
prob03/main.cpp
CSUF-CPSC120-2019F23-24/labex02-romanharv1
7d40d08235a36a78539c9bd21d6512a1d58c1410
[ "MIT" ]
null
null
null
prob03/main.cpp
CSUF-CPSC120-2019F23-24/labex02-romanharv1
7d40d08235a36a78539c9bd21d6512a1d58c1410
[ "MIT" ]
null
null
null
// Name: Restaurant Bill Calculator // This program calculates the tax and tip on a restaurant bill. #include <iostream> int main() { double price, tax, tip; double total; //Get value of price. std::cout << "Welcome to the Restaurant Bill Calculator!\n"; std::cout << "What is the total meal cost? $"; std::cin >> price; //Calculate values for tax, tip, and total. tax = price * 0.0775; tip = price * 0.2; total = price + tax +tip; //Display calculated values. std::cout << "Tax:\t\t$" << tax << "\n"; std::cout << "Tip:\t\t$" << tip << "\n"; std::cout << "Total Bill: \t$" << total << "\n"; return 0; }
22.857143
64
0.598438
CSUF-CPSC120-2019F23-24
59a2bdcb7fa24d28a4eb324ad0cdd199a914270c
1,988
cpp
C++
LudumGame/Source/LudumGame/Private/Flocking/OtherTeamGoalBehaviourComponent.cpp
inbetweengames/TheMammoth_Public
d12d644266076ff739d912def6bc127827c82dc9
[ "MIT" ]
21
2015-11-05T07:26:27.000Z
2021-06-01T11:35:05.000Z
LudumGame/Source/LudumGame/Private/Flocking/OtherTeamGoalBehaviourComponent.cpp
inbetweengames/TheMammoth_Public
d12d644266076ff739d912def6bc127827c82dc9
[ "MIT" ]
null
null
null
LudumGame/Source/LudumGame/Private/Flocking/OtherTeamGoalBehaviourComponent.cpp
inbetweengames/TheMammoth_Public
d12d644266076ff739d912def6bc127827c82dc9
[ "MIT" ]
6
2015-11-06T08:54:36.000Z
2017-01-21T18:40:30.000Z
// copyright 2015 inbetweengames GBR #include "LudumGame.h" #include "OtherTeamGoalBehaviourComponent.h" #include "FlockingGameMode.h" #include "AI/Navigation/NavigationPath.h" #include "DrawDebugHelpers.h" #include "../FlockingDataCache.h" #include "BasicAIAgent.h" DECLARE_CYCLE_STAT(TEXT("Goal Behaviour"),STAT_AI_GoalBehaviour,STATGROUP_Flocking); // Sets default values for this component's properties UOtherTeamGoalBehaviourComponent::UOtherTeamGoalBehaviourComponent() { m_behaviourWeight = 1.0f; m_maxDistance = 10000.0f; } FVector UOtherTeamGoalBehaviourComponent::CalcAccelerationVector(int32 thisAIIndex, const FYAgentTeamData &forTeam, class UFlockingDataCache * dataCache, uint8 *scratchData, float tickTime) const { SCOPE_CYCLE_COUNTER(STAT_AI_GoalBehaviour); const FVector &thisLocation = forTeam.m_locations[thisAIIndex]; float closest = MAX_FLT; FVector closestLocation = FVector::ZeroVector; for (int32 otherTeam : m_targetTeams) { const FYAgentTeamData *targetTeamData = dataCache->GetTeamData(otherTeam); if (targetTeamData == nullptr) { continue; } const TArray<FVector> &targetLocations = targetTeamData->m_locations; if (targetLocations.Num() == 0) { continue; } for (const FVector & targetLocation : targetLocations) { float distSq = FVector::DistSquared(thisLocation, targetLocation); if (distSq < closest) { closest = distSq; closestLocation = targetLocation; } } } if (!closestLocation.IsNearlyZero()) { FVector toLocation = closestLocation - thisLocation; toLocation.Z = 0.0f; if (toLocation.Size() <= m_maxDistance) { toLocation.Normalize(); return toLocation * m_behaviourWeight; } } if (dataCache->GetLocationsPlayer().Num() > 0) { FVector player = dataCache->GetLocationsPlayer()[0]; FVector toLocation = player - thisLocation; toLocation.Z = 0.0f; toLocation.Normalize(); return toLocation * m_behaviourWeight; } return FVector::ZeroVector; }
23.951807
195
0.748994
inbetweengames
59bb1f985a4264e2a094a4db98c4c4685b2409b3
5,059
hpp
C++
RX600/src.hpp
duybang140494/RX
7fed06a9d8295f4504e8a08fa589d4a52792095f
[ "BSD-3-Clause" ]
1
2020-01-16T03:38:30.000Z
2020-01-16T03:38:30.000Z
RX600/src.hpp
duybang140494/RX
7fed06a9d8295f4504e8a08fa589d4a52792095f
[ "BSD-3-Clause" ]
null
null
null
RX600/src.hpp
duybang140494/RX
7fed06a9d8295f4504e8a08fa589d4a52792095f
[ "BSD-3-Clause" ]
null
null
null
#pragma once //=====================================================================// /*! @file @brief RX600 グループ・SRC 定義 @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2017, 2018 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blob/master/LICENSE */ //=====================================================================// #include "common/io_utils.hpp" #include "common/device.hpp" namespace device { //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++// /*! @brief サンプリングレートコンバータ(SRC) @param[in] t ペリフェラル型 */ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++// template <peripheral t> struct src_t { //-----------------------------------------------------------------// /*! @brief 入力データレジスタ( SRCID ) */ //-----------------------------------------------------------------// static rw32_t<0x0009DFF0> SRCID; //-----------------------------------------------------------------// /*! @brief 出力データレジスタ( SRCOD ) */ //-----------------------------------------------------------------// static rw32_t<0x0009DFF4> SRCOD; //-----------------------------------------------------------------// /*! @brief 入力データ制御レジスタ( SRCIDCTRL ) @param[in] ofs オフセット */ //-----------------------------------------------------------------// template <uint32_t ofs> struct srcidctrl_t : public rw16_t<ofs> { typedef rw16_t<ofs> io_; using io_::operator =; using io_::operator (); using io_::operator |=; using io_::operator &=; bits_rw_t<io_, bitpos::B0, 2> IFTRG; bit_rw_t< io_, bitpos::B8> IEN; bit_rw_t< io_, bitpos::B9> IED; }; static srcidctrl_t<0x0009DFF8> SRCIDCTRL; //-----------------------------------------------------------------// /*! @brief 出力データ制御レジスタ( SRCODCTRL ) @param[in] ofs オフセット */ //-----------------------------------------------------------------// template <uint32_t ofs> struct srcodctrl_t : public rw16_t<ofs> { typedef rw16_t<ofs> io_; using io_::operator =; using io_::operator (); using io_::operator |=; using io_::operator &=; bits_rw_t<io_, bitpos::B0, 2> OFTRG; bit_rw_t< io_, bitpos::B8> OEN; bit_rw_t< io_, bitpos::B9> OED; bit_rw_t< io_, bitpos::B10> OCH; }; static srcodctrl_t<0x0009DFFA> SRCODCTRL; //-----------------------------------------------------------------// /*! @brief 制御レジスタ( SRCCTRL ) @param[in] ofs オフセット */ //-----------------------------------------------------------------// template <uint32_t ofs> struct srcctrl_t : public rw16_t<ofs> { typedef rw16_t<ofs> io_; using io_::operator =; using io_::operator (); using io_::operator |=; using io_::operator &=; bits_rw_t<io_, bitpos::B0, 2> OFS; bits_rw_t<io_, bitpos::B4, 4> IFS; bit_rw_t< io_, bitpos::B8> CL; bit_rw_t< io_, bitpos::B9> FL; bit_rw_t< io_, bitpos::B10> OVEN; bit_rw_t< io_, bitpos::B11> UDEN; bit_rw_t< io_, bitpos::B12> SRCEN; bit_rw_t< io_, bitpos::B13> CEEN; bit_rw_t< io_, bitpos::B15> FICRAE; }; static srcctrl_t<0x0009DFFC> SRCCTRL; //-----------------------------------------------------------------// /*! @brief ステータスレジスタ( SRCSTAT ) @param[in] ofs オフセット */ //-----------------------------------------------------------------// template <uint32_t ofs> struct srcstat_t : public rw16_t<ofs> { typedef rw16_t<ofs> io_; typedef ro16_t<ofs> ro_; using io_::operator =; using io_::operator (); using io_::operator |=; using io_::operator &=; bit_rw_t< io_, bitpos::B0> OINT; bit_rw_t< io_, bitpos::B1> IINT; bit_rw_t< io_, bitpos::B2> OVF; bit_rw_t< io_, bitpos::B3> UDF; bit_rw_t< ro_, bitpos::B4> ELF; bit_rw_t< io_, bitpos::B5> CEF; bits_rw_t<ro_, bitpos::B7, 4> OIFDN; bits_rw_t<ro_, bitpos::B11, 5> OFDN; }; static srcstat_t<0x0009DFFE> SRCSTAT; //-----------------------------------------------------------------// /*! @brief フィルタ係数テーブル n ( SRCFCTRn )( n = 0 ~ 5551 ) @param[in] ofs オフセット */ //-----------------------------------------------------------------// template <uint32_t ofs> struct srcfctr_t { uint32_t get(uint16_t idx) const { return rd32_(ofs + idx); } void put(uint16_t idx, uint32_t val) { wr32_(ofs + idx, val); } uint32_t operator() (uint16_t idx) const { return get(idx); } // void operator[] (uint16_t idx) { put(idx, val); } }; static srcfctr_t<0x00098000> SRCFCTR; //-----------------------------------------------------------------// /*! @brief ペリフェラル型を返す @return ペリフェラル型 */ //-----------------------------------------------------------------// static peripheral get_peripheral() { return t; } }; typedef src_t<peripheral::SRC> SRC; }
29.584795
75
0.426369
duybang140494
59bbcc558f0645f6af83f3f8b5515150be75f2bc
18,251
cpp
C++
engine/gui/Widgets.cpp
taida957789/ouzel
a8c1cc74e6151a0f7d7d2c534f8747cba46a36af
[ "Unlicense" ]
1
2021-03-01T13:17:49.000Z
2021-03-01T13:17:49.000Z
engine/gui/Widgets.cpp
taida957789/ouzel
a8c1cc74e6151a0f7d7d2c534f8747cba46a36af
[ "Unlicense" ]
null
null
null
engine/gui/Widgets.cpp
taida957789/ouzel
a8c1cc74e6151a0f7d7d2c534f8747cba46a36af
[ "Unlicense" ]
null
null
null
// Copyright 2015-2020 Elviss Strazdins. All rights reserved. #if defined(__APPLE__) # include <TargetConditionals.h> #endif #include <algorithm> #include <functional> #include "Widgets.hpp" #include "BMFont.hpp" #include "../core/Engine.hpp" #include "../events/EventHandler.hpp" #include "../events/EventDispatcher.hpp" #include "../math/Color.hpp" #include "../scene/Layer.hpp" #include "../scene/Camera.hpp" namespace ouzel::gui { Button::Button(): eventHandler(EventHandler::priorityMax + 1) { eventHandler.uiHandler = std::bind(&Button::handleUI, this, std::placeholders::_1); engine->getEventDispatcher().addEventHandler(eventHandler); pickable = true; } Button::Button(const std::string& normalImage, const std::string& selectedImage, const std::string& pressedImage, const std::string& disabledImage, const std::string& label, const std::string& font, float fontSize, Color initLabelColor, Color initLabelSelectedColor, Color initLabelPressedColor, Color initLabelDisabledColor): eventHandler(EventHandler::priorityMax + 1), labelColor(initLabelColor), labelSelectedColor(initLabelSelectedColor), labelPressedColor(initLabelPressedColor), labelDisabledColor(initLabelDisabledColor) { eventHandler.uiHandler = std::bind(&Button::handleUI, this, std::placeholders::_1); engine->getEventDispatcher().addEventHandler(eventHandler); if (!normalImage.empty()) { normalSprite = std::make_unique<scene::SpriteRenderer>(); normalSprite->init(normalImage); addComponent(*normalSprite); } if (!selectedImage.empty()) { selectedSprite = std::make_unique<scene::SpriteRenderer>(); selectedSprite->init(selectedImage); addComponent(*selectedSprite); } if (!pressedImage.empty()) { pressedSprite = std::make_unique<scene::SpriteRenderer>(); pressedSprite->init(pressedImage); addComponent(*pressedSprite); } if (!disabledImage.empty()) { disabledSprite = std::make_unique<scene::SpriteRenderer>(); disabledSprite->init(disabledImage); addComponent(*disabledSprite); } if (!label.empty()) { labelDrawable = std::make_unique<scene::TextRenderer>(font, fontSize, label); labelDrawable->setColor(labelColor); addComponent(*labelDrawable); } pickable = true; updateSprite(); } void Button::setEnabled(bool newEnabled) { Widget::setEnabled(newEnabled); selected = false; pointerOver = false; pressed = false; updateSprite(); } void Button::setSelected(bool newSelected) { Widget::setSelected(newSelected); updateSprite(); } bool Button::handleUI(const UIEvent& event) { if (!enabled) return false; if (event.actor == this) { switch (event.type) { case Event::Type::actorEnter: { pointerOver = true; updateSprite(); break; } case Event::Type::actorLeave: { pointerOver = false; updateSprite(); break; } case Event::Type::actorPress: { pressed = true; updateSprite(); break; } case Event::Type::actorRelease: case Event::Type::actorClick: { if (pressed) { pressed = false; updateSprite(); } break; } default: return false; } } return false; } void Button::updateSprite() { if (normalSprite) normalSprite->setHidden(true); if (selectedSprite) selectedSprite->setHidden(true); if (pressedSprite) pressedSprite->setHidden(true); if (disabledSprite) disabledSprite->setHidden(true); if (enabled) { if (pressed && pointerOver && pressedSprite) pressedSprite->setHidden(false); else if (selected && selectedSprite) selectedSprite->setHidden(false); else if (normalSprite) normalSprite->setHidden(false); if (labelDrawable) { if (pressed && pointerOver) labelDrawable->setColor(labelPressedColor); else if (selected) labelDrawable->setColor(labelSelectedColor); else labelDrawable->setColor(labelColor); } } else // disabled { if (disabledSprite) disabledSprite->setHidden(false); else if (normalSprite) normalSprite->setHidden(false); if (labelDrawable) labelDrawable->setColor(labelDisabledColor); } } CheckBox::CheckBox(const std::string& normalImage, const std::string& selectedImage, const std::string& pressedImage, const std::string& disabledImage, const std::string& tickImage): eventHandler(EventHandler::priorityMax + 1) { eventHandler.uiHandler = std::bind(&CheckBox::handleUI, this, std::placeholders::_1); engine->getEventDispatcher().addEventHandler(eventHandler); if (!normalImage.empty()) { normalSprite = std::make_unique<scene::SpriteRenderer>(); normalSprite->init(normalImage); addComponent(*normalSprite); } if (!selectedImage.empty()) { selectedSprite = std::make_unique<scene::SpriteRenderer>(); selectedSprite->init(selectedImage); addComponent(*selectedSprite); } if (!pressedImage.empty()) { pressedSprite = std::make_unique<scene::SpriteRenderer>(); pressedSprite->init(pressedImage); addComponent(*pressedSprite); } if (!disabledImage.empty()) { disabledSprite = std::make_unique<scene::SpriteRenderer>(); disabledSprite->init(disabledImage); addComponent(*disabledSprite); } if (!tickImage.empty()) { tickSprite = std::make_unique<scene::SpriteRenderer>(); tickSprite->init(tickImage); addComponent(*tickSprite); } pickable = true; updateSprite(); } void CheckBox::setEnabled(bool newEnabled) { Widget::setEnabled(newEnabled); selected = false; pointerOver = false; pressed = false; updateSprite(); } void CheckBox::setChecked(bool newChecked) { checked = newChecked; updateSprite(); } bool CheckBox::handleUI(const UIEvent& event) { if (!enabled) return false; if (event.actor == this) { switch (event.type) { case Event::Type::actorEnter: { pointerOver = true; updateSprite(); break; } case Event::Type::actorLeave: { pointerOver = false; updateSprite(); break; } case Event::Type::actorPress: { pressed = true; updateSprite(); break; } case Event::Type::actorRelease: { if (pressed) { pressed = false; updateSprite(); } break; } case Event::Type::actorClick: { pressed = false; checked = !checked; updateSprite(); auto changeEvent = std::make_unique<UIEvent>(); changeEvent->type = Event::Type::widgetChange; changeEvent->actor = event.actor; engine->getEventDispatcher().dispatchEvent(std::move(changeEvent)); break; } default: return false; } } return false; } void CheckBox::updateSprite() { if (enabled) { if (pressed && pointerOver && pressedSprite) pressedSprite->setHidden(false); else if (selected && selectedSprite) selectedSprite->setHidden(false); else if (normalSprite) normalSprite->setHidden(false); } else { if (disabledSprite) disabledSprite->setHidden(false); else if (normalSprite) normalSprite->setHidden(false); } if (tickSprite) tickSprite->setHidden(!checked); } ComboBox::ComboBox() { pickable = true; } EditBox::EditBox() { pickable = true; } void EditBox::setValue(const std::string& newValue) { value = newValue; } Label::Label(const std::string& initText, const std::string& fontFile, float fontSize, Color color, const Vector2F& textAnchor): text(initText), labelDrawable(std::make_shared<scene::TextRenderer>(fontFile, fontSize, text, color, textAnchor)) { addComponent(*labelDrawable); labelDrawable->setText(text); pickable = true; } void Label::setText(const std::string& newText) { text = newText; labelDrawable->setText(text); } Menu::Menu(): eventHandler(EventHandler::priorityMax + 1) { eventHandler.keyboardHandler = std::bind(&Menu::handleKeyboard, this, std::placeholders::_1); eventHandler.gamepadHandler = std::bind(&Menu::handleGamepad, this, std::placeholders::_1); eventHandler.uiHandler = std::bind(&Menu::handleUI, this, std::placeholders::_1); } void Menu::enter() { engine->getEventDispatcher().addEventHandler(eventHandler); } void Menu::leave() { eventHandler.remove(); } void Menu::setEnabled(bool newEnabled) { Widget::setEnabled(newEnabled); if (enabled) { if (!selectedWidget && !widgets.empty()) selectWidget(widgets.front()); } else { selectedWidget = nullptr; for (Widget* childWidget : widgets) childWidget->setSelected(false); } } void Menu::addWidget(Widget& widget) { addChild(widget); if (widget.menu) widget.menu->removeChild(widget); widget.menu = this; widgets.push_back(&widget); if (!selectedWidget) selectWidget(&widget); } bool Menu::removeChild(const Actor& actor) { const auto i = std::find(widgets.begin(), widgets.end(), &actor); if (i != widgets.end()) { Widget* widget = *i; widget->menu = nullptr; widgets.erase(i); } if (selectedWidget == &actor) selectWidget(nullptr); if (!Actor::removeChild(actor)) return false; return true; } void Menu::selectWidget(Widget* widget) { if (!enabled) return; selectedWidget = nullptr; for (Widget* childWidget : widgets) { if (childWidget == widget) { selectedWidget = widget; childWidget->setSelected(true); } else childWidget->setSelected(false); } } void Menu::selectNextWidget() { if (!enabled) return; auto firstWidgetIterator = selectedWidget ? std::find(widgets.begin(), widgets.end(), selectedWidget) : widgets.end(); auto widgetIterator = firstWidgetIterator; do { if (widgetIterator == widgets.end()) widgetIterator = widgets.begin(); else ++widgetIterator; if (widgetIterator != widgets.end() && (*widgetIterator)->isEnabled()) { selectWidget(*widgetIterator); break; } } while (widgetIterator != firstWidgetIterator); } void Menu::selectPreviousWidget() { if (!enabled) return; const auto firstWidgetIterator = selectedWidget ? std::find(widgets.begin(), widgets.end(), selectedWidget) : widgets.end(); auto widgetIterator = firstWidgetIterator; do { if (widgetIterator == widgets.begin()) widgetIterator = widgets.end(); if (widgetIterator != widgets.begin()) --widgetIterator; if (widgetIterator != widgets.end() && (*widgetIterator)->isEnabled()) { selectWidget(*widgetIterator); break; } } while (widgetIterator != firstWidgetIterator); } bool Menu::handleKeyboard(const KeyboardEvent& event) { if (!enabled) return false; if (event.type == Event::Type::keyboardKeyPress && !widgets.empty()) { switch (event.key) { case input::Keyboard::Key::left: case input::Keyboard::Key::up: selectPreviousWidget(); break; case input::Keyboard::Key::right: case input::Keyboard::Key::down: selectNextWidget(); break; case input::Keyboard::Key::enter: case input::Keyboard::Key::space: case input::Keyboard::Key::select: { if (selectedWidget) { auto clickEvent = std::make_unique<UIEvent>(); clickEvent->type = Event::Type::actorClick; clickEvent->actor = selectedWidget; clickEvent->position = Vector2F(selectedWidget->getPosition()); engine->getEventDispatcher().dispatchEvent(std::move(clickEvent)); } break; } default: break; } } return false; } bool Menu::handleGamepad(const GamepadEvent& event) { if (!enabled) return false; if (event.type == Event::Type::gamepadButtonChange) { if (event.button == input::Gamepad::Button::dPadLeft || event.button == input::Gamepad::Button::dPadUp) { if (!event.previousPressed && event.pressed) selectPreviousWidget(); } else if (event.button == input::Gamepad::Button::dPadRight || event.button == input::Gamepad::Button::dPadDown) { if (!event.previousPressed && event.pressed) selectNextWidget(); } else if (event.button == input::Gamepad::Button::leftThumbLeft || event.button == input::Gamepad::Button::leftThumbUp) { if (event.previousValue < 0.6F && event.value > 0.6F) selectPreviousWidget(); } else if (event.button == input::Gamepad::Button::leftThumbRight || event.button == input::Gamepad::Button::leftThumbDown) { if (event.previousValue < 0.6F && event.value > 0.6F) selectNextWidget(); } #if !defined(__APPLE__) || (!TARGET_OS_IOS && !TARGET_OS_TV) // on iOS and tvOS menu items ar selected with a SELECT button else if (event.button == input::Gamepad::Button::faceBottom) { if (!event.previousPressed && event.pressed && selectedWidget) { auto clickEvent = std::make_unique<UIEvent>(); clickEvent->type = Event::Type::actorClick; clickEvent->actor = selectedWidget; clickEvent->position = Vector2F(selectedWidget->getPosition()); engine->getEventDispatcher().dispatchEvent(std::move(clickEvent)); } } #endif } return false; } bool Menu::handleUI(const UIEvent& event) { if (!enabled) return false; if (event.type == Event::Type::actorEnter) if (std::find(widgets.begin(), widgets.end(), event.actor) != widgets.end()) selectWidget(static_cast<Widget*>(event.actor)); return false; } RadioButton::RadioButton() { pickable = true; } void RadioButton::setEnabled(bool newEnabled) { Widget::setEnabled(newEnabled); selected = false; pointerOver = false; pressed = false; } void RadioButton::setChecked(bool newChecked) { checked = newChecked; } RadioButtonGroup::RadioButtonGroup() { } ScrollArea::ScrollArea() { } ScrollBar::ScrollBar() { pickable = true; } SlideBar::SlideBar() { pickable = true; } }
28.606583
123
0.508958
taida957789
59bc0a74db0ec01862fd96606385adfbb287e688
606
cpp
C++
PML/Renderer/Mesh.cpp
NickAOndo/PML
bcb228d012ffc99a4701afed5a05692df85c1ffa
[ "MIT" ]
null
null
null
PML/Renderer/Mesh.cpp
NickAOndo/PML
bcb228d012ffc99a4701afed5a05692df85c1ffa
[ "MIT" ]
null
null
null
PML/Renderer/Mesh.cpp
NickAOndo/PML
bcb228d012ffc99a4701afed5a05692df85c1ffa
[ "MIT" ]
null
null
null
/******************************************************************* ** Author: Nicholas Ondo ** License: MIT ** Description: DEPRECATED. Template-class, src in header only. *******************************************************************/ #include "PML/Renderer/Mesh.h" #include <iostream> // STL #include <vector> #include <glm/glm.hpp> // Middleware #include <GL/glew.h> #include "PML/Renderer/XBObuffer.h" #include "PML/Renderer/MeshXBO.h" namespace pm { MeshAdapter::MeshAdapter() {} MeshAdapter::~MeshAdapter() {} MeshAdapter::MeshAdapter(const MeshAdapter& other) {} } // namespace pm
24.24
68
0.551155
NickAOndo
59bdf98b722003e92ff6cb50555881c6d0d68b0c
5,675
hpp
C++
oddgravitysdk/controls/TreePropSheetEx/TreePropSheetUtil.hpp
mschulze46/PlaylistCreator
d1fb60c096eecb816f469754cada3e5c8901157b
[ "MIT" ]
1
2020-05-18T13:47:35.000Z
2020-05-18T13:47:35.000Z
oddgravitysdk/controls/TreePropSheetEx/TreePropSheetUtil.hpp
mschulze46/PlaylistCreator
d1fb60c096eecb816f469754cada3e5c8901157b
[ "MIT" ]
null
null
null
oddgravitysdk/controls/TreePropSheetEx/TreePropSheetUtil.hpp
mschulze46/PlaylistCreator
d1fb60c096eecb816f469754cada3e5c8901157b
[ "MIT" ]
null
null
null
// TreePropSheetUtil.hpp // ///////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2004 by Yves Tkaczyk // (http://www.tkaczyk.net - yves@tkaczyk.net) // // The contents of this file are subject to the Artistic License (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.opensource.org/licenses/artistic-license.html // // Documentation: http://www.codeproject.com/property/treepropsheetex.asp // CVS tree: http://sourceforge.net/projects/treepropsheetex // ///////////////////////////////////////////////////////////////////////////// #ifndef _TREEPROPSHEET_TREEPROPSHEETUTIL_HPP__INCLUDED_ #define _TREEPROPSHEET_TREEPROPSHEETUTIL_HPP__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 namespace TreePropSheet { ////////////////////////////////////////////////////////////////////// /*! \brief Scope class that prevent control redraw. This class prevents update of a window by sending WM_SETREDRAW. @author Yves Tkaczyk (yves@tkaczyk.net) @date 04/2004 */ class CWindowRedrawScope { // Construction/Destruction public: //@{ /*! @param hWnd Handle of window for which update should be disabled. @param bInvalidateOnUnlock Flag indicating if window should be invalidating after update is re-enabled. */ CWindowRedrawScope(HWND hWnd, const bool bInvalidateOnUnlock) : m_hWnd(hWnd), m_bInvalidateOnUnlock(bInvalidateOnUnlock) { ::SendMessage(m_hWnd, WM_SETREDRAW, (WPARAM)FALSE, 0L); } /*! @param pWnd Window for which update should be disabled. @param bInvalidateOnUnlock Flag indicating if window should be invalidating after update is re-enabled. */ CWindowRedrawScope(CWnd* pWnd, const bool bInvalidateOnUnlock) : m_hWnd(pWnd->GetSafeHwnd()), m_bInvalidateOnUnlock(bInvalidateOnUnlock) { ::SendMessage(m_hWnd, WM_SETREDRAW, (WPARAM)FALSE, 0L); } //@} ~CWindowRedrawScope() { ::SendMessage(m_hWnd, WM_SETREDRAW, (WPARAM)TRUE, 0L); if( m_bInvalidateOnUnlock ) { ::InvalidateRect(m_hWnd, NULL, TRUE); } } // Members private: /*! Handle of the window for which update should be disabled and enabled. */ HWND m_hWnd; /*! Flag indicating if window should be invalidating after update is re-enabled. */ const bool m_bInvalidateOnUnlock; }; ////////////////////////////////////////////////////////////////////// /*! \brief Scope class incrementing the provided value. This class increments the provided value in its contructor and decrement in destructor. @author Yves Tkaczyk (yves@tkaczyk.net) @date 04/2004 */ class CIncrementScope { // Construction/Destruction public: /*! @param rValue Reference to value to be manipulated. */ CIncrementScope(int& rValue) : m_value(rValue) { ++m_value; } ~CIncrementScope() { --m_value; } // Members private: /*! Value to be manipulated. */ int& m_value; }; ////////////////////////////////////////////////////////////////////// /*! \brief Helper class for managing background in property page. This class simply manage a state that can be used by each property page to determine how the background should be drawn. @author Yves Tkaczyk (yves@tkaczyk.net) @date 09/2004 */ class CWhiteBackgroundProvider { // Construction/Destruction public: CWhiteBackgroundProvider() : m_bHasWhiteBackground(false) { } protected: ~CWhiteBackgroundProvider() { } // Methods public: void SetHasWhiteBackground(const bool bHasWhiteBackground) { m_bHasWhiteBackground = bHasWhiteBackground; } bool HasWhiteBackground() const { return m_bHasWhiteBackground; } //Members private: /*! Flag indicating background drawing state. */ bool m_bHasWhiteBackground; }; ////////////////////////////////////////////////////////////////////// /* \brief Expand/Collapse items in tree. ExpandTreeItem expand or collapse all the tree items under the provided tree item. @param pTree THe tree control. @param htiThe tree item from which the operation is applied. @param nCode Operation code: - <pre>TVE_COLLAPSE</pre> Collapses the list. - <pre>TVE_COLLAPSERESET</pre> Collapses the list and removes the child items. - <pre>TVE_EXPAND</pre> Expands the list. - <pre>TVE_TOGGLE</pre> Collapses the list if it is currently expanded or expands it if it is currently collapsed. @author Yves Tkaczyk (yves@tkaczyk.net) @date 09/2004 */ template<typename Tree> void ExpandTreeItem(Tree* pTree, HTREEITEM hti, UINT nCode) { bool bOk= true; bOk= pTree->Expand(hti, nCode) != 0; if (bOk) { HTREEITEM htiChild= pTree->GetChildItem(hti); while (htiChild != NULL) { ExpandTreeItem(pTree, htiChild, nCode); htiChild= pTree->GetNextSiblingItem(htiChild); } } HTREEITEM htiSibling = pTree->GetNextSiblingItem(hti); if( htiSibling ) { ExpandTreeItem(pTree, htiSibling, nCode); } } }; #endif // _TREEPROPSHEET_TREEPROPSHEETUTIL_HPP__INCLUDED_
28.375
133
0.589427
mschulze46
59bfd68b1a341f6732aee395051546d10a3af2ea
6,929
cpp
C++
Source/SpaceHorror/Private/MasterWeapons.cpp
littlefalcon/ISS_Columbus
f4192d19a0350553de317041ec1c17aa280dc1d0
[ "MIT" ]
null
null
null
Source/SpaceHorror/Private/MasterWeapons.cpp
littlefalcon/ISS_Columbus
f4192d19a0350553de317041ec1c17aa280dc1d0
[ "MIT" ]
null
null
null
Source/SpaceHorror/Private/MasterWeapons.cpp
littlefalcon/ISS_Columbus
f4192d19a0350553de317041ec1c17aa280dc1d0
[ "MIT" ]
null
null
null
// Copyright (c) 2017 LittleFalcon. #include "MasterWeapons.h" #include "FireMechanicAuto.h" // Handle Automatic Mechanic for Weapon #include "FireMechanicBeam.h" // Handle Beam Mechanic for Weapon #include "FireMechanicCharge.h" // Handle Charge Mechanic for Weapon #include "Animation/AnimInstance.h" // Handle SkeletalMesh #include "Kismet/GameplayStatics.h" //Handle Particle / Sound #include "SpaceHorrorProjectile.h" //Handle Projectile Bullet /TODO make this class itself #include "Runtime/Engine/Classes/Particles/Emitter.h" // beam weapon // Sets default values AMasterWeapons::AMasterWeapons(){ // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryActorTick.bCanEverTick = false; //Create Inherit Class TODO Create Inherit Class to same with Weapontype FireMechanicAuto = CreateDefaultSubobject<UFireMechanicAuto>(FName("FireMechanicAuto")); FireMechanicBeam = CreateDefaultSubobject<UFireMechanicBeam>(FName("FireMechanicBeam")); //TODO Set only player see Weapon = CreateDefaultSubobject<USkeletalMeshComponent>(TEXT("Weapon")); Weapon->SetOnlyOwnerSee(true); // only the owning player will see this mesh Weapon->bCastDynamicShadow = false; Weapon->CastShadow = false; } // Called when the game starts or when spawned void AMasterWeapons::BeginPlay() { Super::BeginPlay(); if (BP_Beam != nullptr) { UE_LOG(LogTemp, Log, TEXT("Beam Found")); } else { UE_LOG(LogTemp, Log, TEXT("Beam Not Found")); } //Attach to BP_FirstPersonCharacter //attach //Check what weapon mechanic in this instance updateWeaponMechanic(WeaponMechanic); currentAmmo = magazineCapacity; //TODO sync to upgrade class uCurrentAmmo = currentAmmo; uMaxAmmo = currentBattery; } // Called every frame void AMasterWeapons::Tick(float DeltaTime) { Super::Tick(DeltaTime); } //Check Weapon Mechanic of this Weapon Blueprint void AMasterWeapons::updateWeaponMechanic(EWeaponMechanic WeaponMechanic) { switch (WeaponMechanic) { case EWeaponMechanic::BEAM: UE_LOG(LogTemp, Log, TEXT("(%s)WP - Beam"), *GetName()); FireMechanicAuto->IsHoldingThisWeapon = false; break; case EWeaponMechanic::SEMI: if (FireMechanicAuto != nullptr) { UE_LOG(LogTemp, Log, TEXT("(%s)WP - SemiAutomatic"), *GetName()); FireMechanicAuto->IsHoldingThisWeapon = true; FireMechanicAuto->bSemiMechanic = true; } else { UE_LOG(LogTemp, Error, TEXT("(%s)WP - SemiAutomatic NOT FOUND"), *GetName()); } break; case EWeaponMechanic::AUTO: if (FireMechanicAuto != nullptr) { UE_LOG(LogTemp, Log, TEXT("(%s)WP - Automatic")); FireMechanicAuto->IsHoldingThisWeapon = true; FireMechanicAuto->bSemiMechanic = false; }else{ UE_LOG(LogTemp, Error, TEXT("(%s)WP - Automatic NOT FOUND"),*GetName()); } break; case EWeaponMechanic::CHRG: UE_LOG(LogTemp, Warning, TEXT("(%s)WP - Charge"), *GetName()); break; } } ///FUNCTION void AMasterWeapons::soundFire() { if (muzzleParticle == nullptr) { UE_LOG(LogTemp, Error, TEXT("muzzleParticle Not Assign!")); } if (Weapon == nullptr) { UE_LOG(LogTemp, Error, TEXT("Weapon Not Assign!")); } if (weaponSound == nullptr) { UE_LOG(LogTemp, Error, TEXT("weaponSound Not Assign!")); } if (muzzleParticle != nullptr && Weapon != nullptr && weaponSound != nullptr) { UGameplayStatics::PlaySoundAtLocation(this, weaponSound, Weapon->GetSocketLocation(TEXT("Muzzle")), 1, 1, 0, nullptr, nullptr); } else { UE_LOG(LogTemp, Error, TEXT("Some Actor Not Assign!")); } } void AMasterWeapons::spawnParticleMuzzle() { if (muzzleParticle != nullptr && Weapon != nullptr && weaponSound != nullptr) { UGameplayStatics::SpawnEmitterAtLocation(this, muzzleParticle, Weapon->GetSocketLocation(TEXT("Muzzle")), FRotator::ZeroRotator, FVector::OneVector, true); } else { UE_LOG(LogTemp, Error, TEXT("Some Actor Not Assign!")); } } void AMasterWeapons::EsetCurrentAmmo(int NewAmmo) { setCurrentAmmo(NewAmmo); } void AMasterWeapons::spawnProjectileBullet() { if (Weapon == nullptr) { return; } if (ProjectileClass != NULL) { UWorld* const World = GetWorld(); if (World != NULL) { FRotator SpawnRotation = Weapon->GetSocketRotation(TEXT("Muzzle")); //SpawnRotation. += 90; // MuzzleOffset is in camera space, so transform it to world space before offsetting from the character location to find the final muzzle position //const FVector SpawnLocation = (this->GetActorForwardVector() * 2000) + Weapon->GetSocketLocation(TEXT("Muzzle"));; const FVector SpawnLocation = Weapon->GetSocketLocation(TEXT("Muzzle")); //const FVector SpawnLocation = ((FP_MuzzleLocation != nullptr) ? FP_MuzzleLocation->GetComponentLocation() : GetActorLocation()) + SpawnRotation.RotateVector(GunOffset); //Set Spawn Collision Handling Override FActorSpawnParameters ActorSpawnParams; ActorSpawnParams.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AdjustIfPossibleButDontSpawnIfColliding; // spawn the projectile at the muzzle World->SpawnActor<ASpaceHorrorProjectile>(ProjectileClass, SpawnLocation, SpawnRotation, ActorSpawnParams); } } } void AMasterWeapons::decreaseAmmo(int amount) { //TODO Clamp amount if (currentAmmo == 0) { return; } else { currentAmmo -= amount; uCurrentAmmo = currentAmmo; } } void AMasterWeapons::inceaseAmmo(int amount) { currentAmmo += amount; uCurrentAmmo = currentAmmo; } bool AMasterWeapons::IsAmmoDepleted() { if (currentAmmo == 0) { return true; } else { return false; } } ///Set Method void AMasterWeapons::setCurrentBattery(int newcurrentbattery) { uMaxAmmo = newcurrentbattery; currentBattery = newcurrentbattery; } void AMasterWeapons::setCurrentAmmo(int newcurrentammo) { currentAmmo = newcurrentammo; } ///Get Method int AMasterWeapons::getWeaponSlot(){ return weaponSlot; } int AMasterWeapons::getCurrentAmmo() { return currentAmmo; } float AMasterWeapons::getFireRate() { return fireRate; } int AMasterWeapons::getBaseDamage() { return fireDamage; } int AMasterWeapons::getMagazineCapacity() { return magazineCapacity; } int AMasterWeapons::getBatteryConsume() { return batteryConsume; } int AMasterWeapons::getBatteryCapacity() { return batteryCapacity; } float AMasterWeapons::getReloadTime() { return reloadTime; } float AMasterWeapons::getRecoil() { return recoil; } float AMasterWeapons::getControl() { return control; } int AMasterWeapons::getAccuracy() { return accuracy; } int AMasterWeapons::getFireRange() { return fireRange; } int AMasterWeapons::getCurrentBattery() { return currentBattery; } EWeaponMechanic AMasterWeapons::getWeaponMechanic() { return WeaponMechanic; } FVector AMasterWeapons::getWeaponMuzzlePosition() { if (Weapon == nullptr) { return FVector(0); } return Weapon->GetSocketLocation(TEXT("Muzzle")); } FVector AMasterWeapons::getWeaponForward() { return Weapon->GetForwardVector(); }
25.662963
173
0.7408
littlefalcon
59c4ac56f7c757e9e516594bc026bdd4ba25ffe6
305
cpp
C++
RVTuto1/main.cpp
josnelihurt/qt-3d-cube
1abc8b36ee23f9137a8ddaae115e0067367f18bf
[ "Unlicense" ]
null
null
null
RVTuto1/main.cpp
josnelihurt/qt-3d-cube
1abc8b36ee23f9137a8ddaae115e0067367f18bf
[ "Unlicense" ]
null
null
null
RVTuto1/main.cpp
josnelihurt/qt-3d-cube
1abc8b36ee23f9137a8ddaae115e0067367f18bf
[ "Unlicense" ]
null
null
null
// Cours de Réalité Virtuelle // leo.donati@univ-cotedazur.fr // // EPU 2019-20 // #include "mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.setWindowTitle("Réalité Virtuelle: Tuto1"); w.show(); return a.exec(); }
16.944444
49
0.652459
josnelihurt
59c4ad9b4b49e643275f5a8aa0b405e17fe9fd04
2,350
hpp
C++
Util/std_hash.hpp
cypox/devacus-backend
ba3d2ca8d72843560c4ff754780482dfe8a67c6b
[ "BSD-2-Clause" ]
1
2015-03-16T12:49:12.000Z
2015-03-16T12:49:12.000Z
Util/std_hash.hpp
antoinegiret/osrm-backend
ebe34da5428c2bfdb2b227392248011c757822e5
[ "BSD-2-Clause" ]
1
2015-02-25T18:27:19.000Z
2015-02-25T18:27:19.000Z
Util/std_hash.hpp
antoinegiret/osrm-backend
ebe34da5428c2bfdb2b227392248011c757822e5
[ "BSD-2-Clause" ]
null
null
null
/* Copyright (c) 2014, Project OSRM, Dennis Luxen, others 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. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef STD_HASH_HPP #define STD_HASH_HPP #include <functional> // this is largely inspired by boost's hash combine as can be found in // "The C++ Standard Library" 2nd Edition. Nicolai M. Josuttis. 2012. namespace { template<typename T> void hash_combine(std::size_t &seed, const T& val) { seed ^= std::hash<T>()(val) + 0x9e3779b9 + (seed << 6) + (seed >> 2); } template<typename T> void hash_val(std::size_t &seed, const T& val) { hash_combine(seed, val); } template<typename T, typename ... Types> void hash_val(std::size_t &seed, const T& val, const Types& ... args) { hash_combine(seed, val); hash_val(seed, args ...); } template<typename ... Types> std::size_t hash_val(const Types&... args) { std::size_t seed = 0; hash_val(seed, args...); return seed; } } namespace std { template <typename T1, typename T2> struct hash<std::pair<T1, T2>> { size_t operator()(const std::pair<T1, T2> &pair) const { return hash_val(pair.first, pair.second); } }; } #endif // STD_HASH_HPP
30.128205
80
0.744255
cypox
59c8835b1263d6bd3797b429097aa06d69199e59
4,530
cpp
C++
src/plugins/lmp/mpris/fdopropsadaptor.cpp
MellonQ/leechcraft
71cbb238d2dade56b3865278a6a8e6a58c217fc5
[ "BSL-1.0" ]
1
2017-01-12T07:05:45.000Z
2017-01-12T07:05:45.000Z
src/plugins/lmp/mpris/fdopropsadaptor.cpp
MellonQ/leechcraft
71cbb238d2dade56b3865278a6a8e6a58c217fc5
[ "BSL-1.0" ]
null
null
null
src/plugins/lmp/mpris/fdopropsadaptor.cpp
MellonQ/leechcraft
71cbb238d2dade56b3865278a6a8e6a58c217fc5
[ "BSL-1.0" ]
null
null
null
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 Georg Rudoy * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted, free of charge, to any person or organization * obtaining a copy of the software and accompanying documentation covered by * this license (the "Software") to use, reproduce, display, distribute, * execute, and transmit the Software, and to prepare derivative works of the * Software, and to permit third-parties to whom the Software is furnished to * do so, all subject to the following: * * The copyright notices in the Software and this entire statement, including * the above license grant, this restriction and the following disclaimer, * must be included in all copies of the Software, in whole or in part, and * all derivative works of the Software, unless such copies or derivative * works are solely in the form of machine-executable object code generated by * a source language processor. * * 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, TITLE AND NON-INFRINGEMENT. IN NO EVENT * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. **********************************************************************/ #include "fdopropsadaptor.h" #include <QVariantMap> #include <QStringList> #include <QMetaMethod> #include <QDBusConnection> #include <QDBusContext> #include <QDBusVariant> #include <QtDebug> namespace LeechCraft { namespace LMP { namespace MPRIS { FDOPropsAdaptor::FDOPropsAdaptor (QObject *parent) : QDBusAbstractAdaptor (parent) { } void FDOPropsAdaptor::Notify (const QString& iface, const QString& prop, const QVariant& val) { QVariantMap changes; changes [prop] = val; emit PropertiesChanged (iface, changes, QStringList ()); } QDBusVariant FDOPropsAdaptor::Get (const QString& iface, const QString& propName) { QObject *child = 0; QMetaProperty prop; if (!GetProperty (iface, propName, &prop, &child)) return QDBusVariant (QVariant ()); return QDBusVariant (prop.read (child)); } QVariantMap FDOPropsAdaptor::GetAll (const QString& iface) { QVariantMap result; const auto& adaptors = parent ()->findChildren<QDBusAbstractAdaptor*> (); for (const auto child : adaptors) { const auto mo = child->metaObject (); if (!iface.isEmpty ()) { const auto idx = mo->indexOfClassInfo ("D-Bus Interface"); if (idx == -1) continue; const auto& info = mo->classInfo (idx); if (iface != info.value ()) continue; } for (int i = 0, cnt = mo->propertyCount (); i < cnt; ++i) { const auto& property = mo->property (i); result [property.name ()] = property.read (child); } } return result; } void FDOPropsAdaptor::Set (const QString& iface, const QString& propName, const QDBusVariant& value) { QObject *child = 0; QMetaProperty prop; if (!GetProperty (iface, propName, &prop, &child)) return; if (!prop.isWritable ()) { auto context = dynamic_cast<QDBusContext*> (parent ()); if (context->calledFromDBus ()) context->sendErrorReply (QDBusError::AccessDenied, propName + " isn't writable"); return; } prop.write (child, value.variant ()); } bool FDOPropsAdaptor::GetProperty (const QString& iface, const QString& prop, QMetaProperty *propObj, QObject **childObject) const { auto adaptors = parent ()->findChildren<QDBusAbstractAdaptor*> (); for (const auto& child : adaptors) { const auto mo = child->metaObject (); if (!iface.isEmpty ()) { const auto idx = mo->indexOfClassInfo ("D-Bus Interface"); if (idx == -1) continue; const auto& info = mo->classInfo (idx); if (iface != info.value ()) continue; } const auto idx = mo->indexOfProperty (prop.toUtf8 ().constData ()); if (idx != -1) { *propObj = mo->property (idx); *childObject = child; return true; } } auto context = dynamic_cast<QDBusContext*> (parent ()); if (context->calledFromDBus ()) context->sendErrorReply (QDBusError::InvalidMember, "no such property " + prop); return false; } } } }
30
131
0.675717
MellonQ
59cb0df0bc7759b79c2c078dbbb5396876505e60
19
cpp
C++
AYK/src/aykpch.cpp
AreYouReal/AYK
c6859047cfed674291692cc31095d8bb61b27a35
[ "Apache-2.0" ]
null
null
null
AYK/src/aykpch.cpp
AreYouReal/AYK
c6859047cfed674291692cc31095d8bb61b27a35
[ "Apache-2.0" ]
null
null
null
AYK/src/aykpch.cpp
AreYouReal/AYK
c6859047cfed674291692cc31095d8bb61b27a35
[ "Apache-2.0" ]
null
null
null
#include "aykpch.h"
19
19
0.736842
AreYouReal
59ccd694bb7c96479c2108da5e8212eafff2c7f4
883
cpp
C++
Chapter01/Source_Code/GCC_CLANG/QtSimple.cpp
ngdzu/CPP-Reactive-Programming
e1a19feb40be086d47227587b8ed3d509b7518ca
[ "MIT" ]
98
2018-07-03T08:55:31.000Z
2022-03-21T22:16:58.000Z
Chapter01/Source_Code/GCC_CLANG/QtSimple.cpp
ngdzu/CPP-Reactive-Programming
e1a19feb40be086d47227587b8ed3d509b7518ca
[ "MIT" ]
1
2020-11-30T10:38:58.000Z
2020-12-15T06:56:20.000Z
Chapter01/Source_Code/GCC_CLANG/QtSimple.cpp
ngdzu/CPP-Reactive-Programming
e1a19feb40be086d47227587b8ed3d509b7518ca
[ "MIT" ]
54
2018-07-06T02:09:27.000Z
2021-11-10T08:42:50.000Z
///////////////////////////////////// // // The following program can be compiled using // QtCreator or Qt Console. // #include <qapplication.h> #include <qdialog.h> #include <qmessagebox.h> #include <qobject.h> #include <qpushbutton.h> class MyApp : public QDialog { Q_OBJECT public: MyApp(QObject* /*parent*/ = 0): button(this) { button.setText("Hello world!"); button.resize(100, 30); // When the button is clicked, run button_clicked connect(&button, &QPushButton::clicked, this, &MyApp::button_clicked); } public slots: void button_clicked() { QMessageBox box; box.setWindowTitle("Howdy"); box.setText("You clicked the button"); box.show(); box.exec(); } protected: QPushButton button; }; int main(int argc, char** argv) { QApplication app(argc, argv); MyApp myapp; myapp.show(); return app.exec(); } // EOF QSimple.cpp
19.195652
56
0.643262
ngdzu
59cf718ba0bd0efa05e8ed87cd3eadd7926c1d57
6,070
cpp
C++
tests/client/AsyncClient.cpp
wnewbery/cpphttp
adfc148716bc65aff29e881d1872c9dea6fc6af9
[ "MIT" ]
19
2017-03-28T02:17:42.000Z
2021-02-12T03:26:58.000Z
tests/client/AsyncClient.cpp
wnewbery/cpphttp
adfc148716bc65aff29e881d1872c9dea6fc6af9
[ "MIT" ]
3
2016-07-14T10:15:06.000Z
2016-11-22T21:04:01.000Z
tests/client/AsyncClient.cpp
wnewbery/cpphttp
adfc148716bc65aff29e881d1872c9dea6fc6af9
[ "MIT" ]
9
2017-10-19T07:15:42.000Z
2019-09-17T07:08:25.000Z
#include <boost/test/unit_test.hpp> #include "client/AsyncClient.hpp" #include "../TestSocket.hpp" #include "../TestSocketFactory.hpp" #include "net/Net.hpp" #include <chrono> using namespace http; BOOST_AUTO_TEST_SUITE(TestClient) BOOST_AUTO_TEST_CASE(construct) { TestSocketFactory socket_factory; socket_factory.recv_buffer = "HTTP/1.1 200 OK\r\n" "Content-Type: text/plain\r\n" "Content-Length: 10\r\n" "\r\n" "0123456789"; AsyncClientParams params; params.host = "localhost"; params.port = 80; params.tls = false; params.max_connections = 5; params.socket_factory = &socket_factory; AsyncClient client(params); client.exit(); client.start(); client.exit(); } BOOST_AUTO_TEST_CASE(single) { TestSocketFactory socket_factory; socket_factory.recv_buffer = "HTTP/1.1 200 OK\r\n" "Content-Type: text/plain\r\n" "Content-Length: 10\r\n" "\r\n" "0123456789"; AsyncClientParams params; params.host = "localhost"; params.port = 80; params.tls = false; params.max_connections = 5; params.socket_factory = &socket_factory; AsyncClient client(params); AsyncRequest req; req.method = GET; req.raw_url = "/index.html"; auto response = client.queue(&req).get(); BOOST_CHECK_EQUAL(200, response->status.code); } BOOST_AUTO_TEST_CASE(sequential) { TestSocketFactory socket_factory; socket_factory.recv_buffer = "HTTP/1.1 200 OK\r\n" "Content-Type: text/plain\r\n" "Content-Length: 10\r\n" "\r\n" "0123456789"; AsyncClientParams params; params.host = "localhost"; params.port = 80; params.tls = false; params.max_connections = 5; params.socket_factory = &socket_factory; AsyncClient client(params); AsyncRequest req; req.method = GET; req.raw_url = "/index.html"; auto response = client.queue(&req).get(); BOOST_CHECK_EQUAL(200, response->status.code); req.reset(); response = client.queue(&req).get(); BOOST_CHECK_EQUAL(200, response->status.code); req.reset(); response = client.queue(&req).get(); BOOST_CHECK_EQUAL(200, response->status.code); } BOOST_AUTO_TEST_CASE(callback) { std::atomic<bool> done(false); TestSocketFactory socket_factory; socket_factory.recv_buffer = "HTTP/1.1 200 OK\r\n" "Content-Type: text/plain\r\n" "Content-Length: 10\r\n" "\r\n" "0123456789"; AsyncClientParams params; params.host = "localhost"; params.port = 80; params.tls = false; params.max_connections = 5; params.socket_factory = &socket_factory; AsyncClient client(params); AsyncRequest req; req.method = GET; req.raw_url = "/index.html"; req.on_completion = [&done](AsyncRequest *, Response &) -> void { done = true; }; client.queue(&req); auto response = req.wait(); BOOST_CHECK_EQUAL(200, response->status.code); BOOST_CHECK(done); } BOOST_AUTO_TEST_CASE(async_error) { std::atomic<bool> done(false); class Factory : public SocketFactory { public: virtual std::unique_ptr<http::Socket> connect(const std::string &host, uint16_t port, bool)override { throw ConnectionError(host, port); } }; Factory socket_factory; AsyncClientParams params; params.host = "localhost"; params.port = 80; params.tls = false; params.max_connections = 5; params.socket_factory = &socket_factory; AsyncClient client(params); AsyncRequest req; req.method = GET; req.raw_url = "/index.html"; req.on_exception = [&done](AsyncRequest*) -> void { try { throw; } catch (const ConnectionError &) { done = true; } }; client.queue(&req); BOOST_CHECK_THROW(req.wait(), ConnectionError); BOOST_CHECK(done); } BOOST_AUTO_TEST_CASE(parallel) { class Factory : public TestSocketFactory { public: using TestSocketFactory::TestSocketFactory; std::mutex go; virtual std::unique_ptr<http::Socket> connect(const std::string &host, uint16_t port, bool tls)override { ++connect_count; std::unique_lock<std::mutex> lock(go); auto sock = std::unique_ptr<TestSocket>(new TestSocket()); sock->host = host; sock->port = port; sock->tls = tls; sock->recv_buffer = recv_buffer; last = sock.get(); return std::move(sock); } }; Factory socket_factory; socket_factory.recv_buffer = "HTTP/1.1 200 OK\r\n" "Content-Type: text/plain\r\n" "Content-Length: 10\r\n" "Connection: keep-alive\r\n" "\r\n" "0123456789"; std::unique_lock<std::mutex> lock(socket_factory.go); AsyncClientParams params; params.host = "localhost"; params.port = 80; params.tls = false; params.max_connections = 4; params.socket_factory = &socket_factory; AsyncClient client(params); auto req = []() -> AsyncRequest { AsyncRequest req; req.method = GET; req.raw_url = "/index.html"; return req; }; auto a = req(); auto b = req(); auto c = req(); auto d = req(); auto e = req(); auto f = req(); client.queue(&a); client.queue(&b); client.queue(&c); client.queue(&d); client.queue(&e); client.queue(&f); std::this_thread::sleep_for(std::chrono::milliseconds(200)); BOOST_CHECK_EQUAL(4U, socket_factory.connect_count.load()); lock.unlock(); BOOST_CHECK_NO_THROW(a.wait()); BOOST_CHECK_NO_THROW(b.wait()); BOOST_CHECK_NO_THROW(c.wait()); BOOST_CHECK_NO_THROW(d.wait()); BOOST_CHECK_NO_THROW(e.wait()); BOOST_CHECK_NO_THROW(f.wait()); BOOST_CHECK_EQUAL(4U, socket_factory.connect_count.load()); } BOOST_AUTO_TEST_SUITE_END()
23.897638
111
0.616145
wnewbery
59d80f38c8254363b4e2489f86e3efcf0d6e0058
3,315
cpp
C++
Src/InputUtils.cpp
Remag/GraphicsInversed
6dff72130891010774c37d1e44080261db3cdb8e
[ "MIT" ]
null
null
null
Src/InputUtils.cpp
Remag/GraphicsInversed
6dff72130891010774c37d1e44080261db3cdb8e
[ "MIT" ]
null
null
null
Src/InputUtils.cpp
Remag/GraphicsInversed
6dff72130891010774c37d1e44080261db3cdb8e
[ "MIT" ]
null
null
null
#include <common.h> #pragma hdrstop #include <InputUtils.h> #include <InputHandler.h> #include <InputController.h> #include <GinGlobals.h> #include <NullMouseController.h> namespace Gin { ////////////////////////////////////////////////////////////////////////// CPtrOwner<TUserAction> CInputTranslator::SetAction( int keyCode, bool isDown, CPtrOwner<TUserAction> action ) { const int pos = getActionIndex( keyCode, isDown ); if( actions.Size() <= pos ) { actions.IncreaseSize( pos + 1 ); } swap( actions[pos], action ); return action; } CPtrOwner<TUserAction> CInputTranslator::DetachAction( int keyCode, bool isDown ) { const int pos = getActionIndex( keyCode, isDown ); return pos < actions.Size() ? move( actions[pos] ) : nullptr; } ////////////////////////////////////////////////////////////////////////// CInputTranslatorSwitcher::CInputTranslatorSwitcher( const CInputTranslator* _newTranslator ) : prevTranslator( GinInternal::GetDefaultInputController().GetCurrentTranslator() ), newTranslator( _newTranslator ) { GinInternal::GetDefaultInputController().SetCurrentTranslator( newTranslator ); } CInputTranslatorSwitcher::~CInputTranslatorSwitcher() { assert( GinInternal::GetDefaultInputController().GetCurrentTranslator() == newTranslator ); GinInternal::GetDefaultInputController().SetCurrentTranslator( prevTranslator ); } ////////////////////////////////////////////////////////////////////////// CMouseMoveSwitcher::CMouseMoveSwitcher( IMouseMoveController* _newController ) : prevController( GinInternal::GetInputHandler().getMouseController() ), newController( _newController ) { if( newController == nullptr ) { newController = CNullMouseMoveController::GetInstance(); } GinInternal::GetInputHandler().setMouseController( newController ); } CMouseMoveSwitcher::~CMouseMoveSwitcher() { assert( GinInternal::GetInputHandler().getMouseController() == newController ); GinInternal::GetInputHandler().setMouseController( prevController ); } ////////////////////////////////////////////////////////////////////////// CTextTranslatorSwitcher::CTextTranslatorSwitcher( ITextTranslator& newValue ) : prevTranslator( GinInternal::GetInputHandler().getTextTranslator() ) { GinInternal::GetInputHandler().setTextTranslator( &newValue ); } CTextTranslatorSwitcher::~CTextTranslatorSwitcher() { GinInternal::GetInputHandler().setTextTranslator( prevTranslator ); } bool CTextTranslatorSwitcher::IsInTextMode() { return GinInternal::GetInputHandler().IsInTextMode(); } ////////////////////////////////////////////////////////////////////////// CInputSwitcher::CInputSwitcher( CInputTranslator* newTranslator, IMouseMoveController* newController ) : transSwt( newTranslator ), moveSwt( newController ) { } CInputSwitcher::CInputSwitcher( CStringPart _settingsSectionName, IMouseMoveController* newController ) : transSwt( &getTranslator( _settingsSectionName ) ), moveSwt( newController ) { } const CInputTranslator& CInputSwitcher::getTranslator( CStringPart name ) { return GinInternal::GetInputTranslator( name ); } CInputSwitcher::~CInputSwitcher() { } ////////////////////////////////////////////////////////////////////////// } // namespace Gin.
30.981308
110
0.652187
Remag
59dacd31a9c2c21f71e45db0602c827ac200b05d
10,482
cpp
C++
src/vm/ds/NumericVariant.cpp
normal-coder/polarphp
a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe
[ "PHP-3.01" ]
1
2019-01-28T01:33:49.000Z
2019-01-28T01:33:49.000Z
src/vm/ds/NumericVariant.cpp
normal-coder/polarphp
a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe
[ "PHP-3.01" ]
null
null
null
src/vm/ds/NumericVariant.cpp
normal-coder/polarphp
a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe
[ "PHP-3.01" ]
null
null
null
// This source file is part of the polarphp.org open source project // // Copyright (c) 2017 - 2018 polarphp software foundation // Copyright (c) 2017 - 2018 zzu_softboy <zzu_softboy@163.com> // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://polarphp.org/LICENSE.txt for license information // See https://polarphp.org/CONTRIBUTORS.txt for the list of polarphp project authors // // Created by polarboy on 2018/12/23. #include "polarphp/vm/ds/NumericVariant.h" #include "polarphp/vm/ds/DoubleVariant.h" #include "polarphp/vm/ds/ArrayItemProxy.h" #include <cmath> namespace polar { namespace vmapi { NumericVariant::NumericVariant() : Variant(0) {} NumericVariant::NumericVariant(std::int8_t value) : Variant(value) {} NumericVariant::NumericVariant(std::int16_t value) : Variant(value) {} NumericVariant::NumericVariant(std::int32_t value) : Variant(value) {} #if SIZEOF_ZEND_LONG == 8 NumericVariant::NumericVariant(std::int64_t value) : Variant(value) {} #endif NumericVariant::NumericVariant(zval &other, bool isRef) : NumericVariant(&other, isRef) {} NumericVariant::NumericVariant(zval &&other, bool isRef) : NumericVariant(&other, isRef) {} NumericVariant::NumericVariant(zval *other, bool isRef) { zval *self = getUnDerefZvalPtr(); if (nullptr != other) { if ((isRef && (Z_TYPE_P(other) == IS_LONG || (Z_TYPE_P(other) == IS_REFERENCE && Z_TYPE_P(Z_REFVAL_P(other)) == IS_LONG))) || (!isRef && (Z_TYPE_P(other) == IS_REFERENCE && Z_TYPE_P(Z_REFVAL_P(other)) == IS_LONG))) { // for support pass ref arg when pass variant args ZVAL_MAKE_REF(other); zend_reference *ref = Z_REF_P(other); GC_ADDREF(ref); ZVAL_REF(self, ref); } else { // here the zval of other pointer maybe not initialize ZVAL_DUP(self, other); convert_to_long(self); } } else { ZVAL_LONG(self, 0); } } NumericVariant::NumericVariant(const NumericVariant &other) : Variant(other) {} NumericVariant::NumericVariant(NumericVariant &other, bool isRef) { zval *self = getUnDerefZvalPtr(); if (!isRef) { ZVAL_LONG(self, other.toLong()); } else { zval *source = other.getUnDerefZvalPtr(); ZVAL_MAKE_REF(source); ZVAL_COPY(self, source); } } NumericVariant::NumericVariant(NumericVariant &&other) noexcept : Variant(std::move(other)) {} NumericVariant::NumericVariant(const Variant &other) { zval *from = const_cast<zval *>(other.getZvalPtr()); zval *self = getZvalPtr(); if (other.getType() == Type::Numeric) { ZVAL_LONG(self, zval_get_long(from)); } else { zval temp; ZVAL_DUP(&temp, from); convert_to_long(&temp); ZVAL_COPY_VALUE(self, &temp); } } NumericVariant::NumericVariant(Variant &&other) : Variant(std::move(other)) { if (getType() != Type::Long) { convert_to_long(getUnDerefZvalPtr()); } } //NumericVariant::operator vmapi_long () const //{ // return zval_get_long(const_cast<zval *>(getZvalPtr())); //} //NumericVariant::operator int () const //{ // return zval_get_long(const_cast<zval *>(getZvalPtr())); //} vmapi_long NumericVariant::toLong() const noexcept { return zval_get_long(const_cast<zval *>(getZvalPtr())); } bool NumericVariant::toBoolean() const noexcept { return zval_get_long(const_cast<zval *>(getZvalPtr())); } NumericVariant &NumericVariant::operator =(std::int8_t other) { ZVAL_LONG(getZvalPtr(), static_cast<vmapi_long>(other)); return *this; } NumericVariant &NumericVariant::operator =(std::int16_t other) { ZVAL_LONG(getZvalPtr(), static_cast<vmapi_long>(other)); return *this; } NumericVariant &NumericVariant::operator =(std::int32_t other) { ZVAL_LONG(getZvalPtr(), static_cast<vmapi_long>(other)); return *this; } NumericVariant &NumericVariant::operator =(std::int64_t other) { ZVAL_LONG(getZvalPtr(), static_cast<vmapi_long>(other)); return *this; } NumericVariant &NumericVariant::operator =(double other) { ZVAL_LONG(getZvalPtr(), static_cast<vmapi_long>(other)); return *this; } NumericVariant &NumericVariant::operator =(const NumericVariant &other) { if (this != &other) { ZVAL_LONG(getZvalPtr(), other.toLong()); } return *this; } NumericVariant &NumericVariant::operator =(const DoubleVariant &other) { ZVAL_LONG(getZvalPtr(), static_cast<vmapi_long>(other.toDouble())); return *this; } NumericVariant &NumericVariant::operator =(ArrayItemProxy &&other) { return operator =(other.toNumericVariant()); } NumericVariant &NumericVariant::operator =(const Variant &other) { zval *self = getZvalPtr(); zval *from = const_cast<zval *>(other.getZvalPtr()); if (other.getType() == Type::Long) { ZVAL_LONG(self, Z_LVAL_P(from)); } else { zval temp; ZVAL_DUP(&temp, from); convert_to_long(&temp); ZVAL_COPY_VALUE(self, &temp); } return *this; } NumericVariant &NumericVariant::operator ++() { ZVAL_LONG(getZvalPtr(), toLong() + 1); return *this; } NumericVariant NumericVariant::operator ++(int) { NumericVariant ret(toLong()); ZVAL_LONG(getZvalPtr(), toLong() + 1); return ret; } NumericVariant &NumericVariant::operator --() { ZVAL_LONG(getZvalPtr(), toLong() - 1); return *this; } NumericVariant NumericVariant::operator --(int) { NumericVariant ret(toLong()); ZVAL_LONG(getZvalPtr(), toLong() - 1); return ret; } NumericVariant &NumericVariant::operator +=(double value) noexcept { ZVAL_LONG(getZvalPtr(), toLong() + std::lround(value)); return *this; } NumericVariant &NumericVariant::operator +=(const NumericVariant &value) noexcept { ZVAL_LONG(getZvalPtr(), toLong() + value.toLong()); return *this; } NumericVariant &NumericVariant::operator -=(double value) noexcept { ZVAL_LONG(getZvalPtr(), toLong() - std::lround(value)); return *this; } NumericVariant &NumericVariant::operator -=(const NumericVariant &value) noexcept { ZVAL_LONG(getZvalPtr(), toLong() - value.toLong()); return *this; } NumericVariant &NumericVariant::operator *=(double value) noexcept { ZVAL_LONG(getZvalPtr(), toLong() * std::lround(value)); return *this; } NumericVariant &NumericVariant::operator *=(const NumericVariant &value) noexcept { ZVAL_LONG(getZvalPtr(), toLong() * value.toLong()); return *this; } NumericVariant &NumericVariant::operator /=(double value) noexcept { ZVAL_LONG(getZvalPtr(), toLong() / std::lround(value)); return *this; } NumericVariant &NumericVariant::operator /=(const NumericVariant &value) noexcept { ZVAL_LONG(getZvalPtr(), toLong() / value.toLong()); return *this; } NumericVariant::~NumericVariant() noexcept {} bool operator ==(const NumericVariant &lhs, const NumericVariant &rhs) noexcept { return lhs.toLong() == rhs.toLong(); } bool operator !=(const NumericVariant &lhs, const NumericVariant &rhs) noexcept { return lhs.toLong() != rhs.toLong(); } bool operator <(const NumericVariant &lhs, const NumericVariant &rhs) noexcept { return lhs.toLong() < rhs.toLong(); } bool operator <=(const NumericVariant &lhs, const NumericVariant &rhs) noexcept { return lhs.toLong() <= rhs.toLong(); } bool operator >(const NumericVariant &lhs, const NumericVariant &rhs) noexcept { return lhs.toLong() > rhs.toLong(); } bool operator >=(const NumericVariant &lhs, const NumericVariant &rhs) noexcept { return lhs.toLong() >= rhs.toLong(); } bool operator ==(double lhs, const NumericVariant &rhs) noexcept { return (lhs - static_cast<double>(rhs.toLong())) == 0; } bool operator !=(double lhs, const NumericVariant &rhs) noexcept { return (lhs - static_cast<double>(rhs.toLong())) != 0; } bool operator <(double lhs, const NumericVariant &rhs) noexcept { return (lhs - static_cast<double>(rhs.toLong())) < 0; } bool operator <=(double lhs, const NumericVariant &rhs) noexcept { return (lhs - static_cast<double>(rhs.toLong())) <= 0; } bool operator >(double lhs, const NumericVariant &rhs) noexcept { return (lhs - static_cast<double>(rhs.toLong())) > 0; } bool operator >=(double lhs, const NumericVariant &rhs) noexcept { return (lhs - static_cast<double>(rhs.toLong())) >= 0; } bool operator ==(const NumericVariant &lhs, double rhs) noexcept { return (static_cast<double>(lhs.toLong()) - rhs) == 0; } bool operator !=(const NumericVariant &lhs, double rhs) noexcept { return (static_cast<double>(lhs.toLong()) - rhs) != 0; } bool operator <(const NumericVariant &lhs, double rhs) noexcept { return (static_cast<double>(lhs.toLong()) - rhs) < 0; } bool operator <=(const NumericVariant &lhs, double rhs) noexcept { return (static_cast<double>(lhs.toLong()) - rhs) <= 0; } bool operator >(const NumericVariant &lhs, double rhs) noexcept { return (static_cast<double>(lhs.toLong()) - rhs) > 0; } bool operator >=(const NumericVariant &lhs, double rhs) noexcept { return (static_cast<double>(lhs.toLong()) - rhs) >= 0; } double operator +(double lhs, const NumericVariant &rhs) noexcept { return lhs + rhs.toLong(); } double operator -(double lhs, const NumericVariant &rhs) noexcept { return lhs - rhs.toLong(); } double operator *(double lhs, const NumericVariant &rhs) noexcept { return lhs * rhs.toLong(); } double operator /(double lhs, const NumericVariant &rhs) noexcept { return lhs / rhs.toLong(); } double operator +(const NumericVariant &lhs, double rhs) noexcept { return lhs.toLong() + rhs; } double operator -(const NumericVariant &lhs, double rhs) noexcept { return lhs.toLong() - rhs; } double operator *(const NumericVariant &lhs, double rhs) noexcept { return lhs.toLong() * rhs; } double operator /(const NumericVariant &lhs, double rhs) noexcept { return lhs.toLong() / rhs; } vmapi_long operator +(const NumericVariant &lhs, NumericVariant rhs) noexcept { return lhs.toLong() + rhs.toLong(); } vmapi_long operator -(const NumericVariant &lhs, NumericVariant rhs) noexcept { return lhs.toLong() + rhs.toLong(); } vmapi_long operator *(const NumericVariant &lhs, NumericVariant rhs) noexcept { return lhs.toLong() + rhs.toLong(); } vmapi_long operator /(const NumericVariant &lhs, NumericVariant rhs) noexcept { return lhs.toLong() + rhs.toLong(); } vmapi_long operator %(const NumericVariant &lhs, NumericVariant rhs) noexcept { return lhs.toLong() + rhs.toLong(); } } // vmapi } // polar
24.263889
100
0.691471
normal-coder
59db45fa198c6034b549628f7da768b00013db4a
382
cpp
C++
A-FF/BaseEntity.cpp
Aeomi/A-FF
f0f1d0fc71776880575020cd4d0a4506e3e11aea
[ "MIT" ]
null
null
null
A-FF/BaseEntity.cpp
Aeomi/A-FF
f0f1d0fc71776880575020cd4d0a4506e3e11aea
[ "MIT" ]
null
null
null
A-FF/BaseEntity.cpp
Aeomi/A-FF
f0f1d0fc71776880575020cd4d0a4506e3e11aea
[ "MIT" ]
null
null
null
#include "BaseEntity.h" #include "RenderHandler.h" #include "EntityHandler.h" #include "Transform.h" #include "Collider.h" #include "Renderer.h" BaseEntity::BaseEntity() { _transform = new Transform(); _collider = new Collider(); _renderer = new Renderer(this); EntityHandler::registerEntity(this); } BaseEntity::~BaseEntity() {} void BaseEntity::update(double dt) {}
15.28
37
0.717277
Aeomi
59dc49779e45098555fc2ec43748426d7f416ff2
21,459
cpp
C++
src/bricklet_ambient_light_v3.cpp
davidplotzki/sensorlogger
8ee255fba5f8560650e2b79fc967aeec8d8ec7b7
[ "MIT" ]
null
null
null
src/bricklet_ambient_light_v3.cpp
davidplotzki/sensorlogger
8ee255fba5f8560650e2b79fc967aeec8d8ec7b7
[ "MIT" ]
null
null
null
src/bricklet_ambient_light_v3.cpp
davidplotzki/sensorlogger
8ee255fba5f8560650e2b79fc967aeec8d8ec7b7
[ "MIT" ]
null
null
null
/* *********************************************************** * This file was automatically generated on 2021-05-06. * * * * C/C++ Bindings Version 2.1.32 * * * * If you have a bugfix for this file and want to commit it, * * please fix the bug in the generator. You can find a link * * to the generators git repository on tinkerforge.com * *************************************************************/ #define IPCON_EXPOSE_INTERNALS #include "bricklet_ambient_light_v3.h" #include <string.h> #ifdef __cplusplus extern "C" { #endif typedef void (*Illuminance_CallbackFunction)(uint32_t illuminance, void *user_data); #if defined _MSC_VER || defined __BORLANDC__ #pragma pack(push) #pragma pack(1) #define ATTRIBUTE_PACKED #elif defined __GNUC__ #ifdef _WIN32 // workaround struct packing bug in GCC 4.7 on Windows // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991 #define ATTRIBUTE_PACKED __attribute__((gcc_struct, packed)) #else #define ATTRIBUTE_PACKED __attribute__((packed)) #endif #else #error unknown compiler, do not know how to enable struct packing #endif typedef struct { PacketHeader header; } ATTRIBUTE_PACKED GetIlluminance_Request; typedef struct { PacketHeader header; uint32_t illuminance; } ATTRIBUTE_PACKED GetIlluminance_Response; typedef struct { PacketHeader header; uint32_t period; uint8_t value_has_to_change; char option; uint32_t min; uint32_t max; } ATTRIBUTE_PACKED SetIlluminanceCallbackConfiguration_Request; typedef struct { PacketHeader header; } ATTRIBUTE_PACKED GetIlluminanceCallbackConfiguration_Request; typedef struct { PacketHeader header; uint32_t period; uint8_t value_has_to_change; char option; uint32_t min; uint32_t max; } ATTRIBUTE_PACKED GetIlluminanceCallbackConfiguration_Response; typedef struct { PacketHeader header; uint32_t illuminance; } ATTRIBUTE_PACKED Illuminance_Callback; typedef struct { PacketHeader header; uint8_t illuminance_range; uint8_t integration_time; } ATTRIBUTE_PACKED SetConfiguration_Request; typedef struct { PacketHeader header; } ATTRIBUTE_PACKED GetConfiguration_Request; typedef struct { PacketHeader header; uint8_t illuminance_range; uint8_t integration_time; } ATTRIBUTE_PACKED GetConfiguration_Response; typedef struct { PacketHeader header; } ATTRIBUTE_PACKED GetSPITFPErrorCount_Request; typedef struct { PacketHeader header; uint32_t error_count_ack_checksum; uint32_t error_count_message_checksum; uint32_t error_count_frame; uint32_t error_count_overflow; } ATTRIBUTE_PACKED GetSPITFPErrorCount_Response; typedef struct { PacketHeader header; uint8_t mode; } ATTRIBUTE_PACKED SetBootloaderMode_Request; typedef struct { PacketHeader header; uint8_t status; } ATTRIBUTE_PACKED SetBootloaderMode_Response; typedef struct { PacketHeader header; } ATTRIBUTE_PACKED GetBootloaderMode_Request; typedef struct { PacketHeader header; uint8_t mode; } ATTRIBUTE_PACKED GetBootloaderMode_Response; typedef struct { PacketHeader header; uint32_t pointer; } ATTRIBUTE_PACKED SetWriteFirmwarePointer_Request; typedef struct { PacketHeader header; uint8_t data[64]; } ATTRIBUTE_PACKED WriteFirmware_Request; typedef struct { PacketHeader header; uint8_t status; } ATTRIBUTE_PACKED WriteFirmware_Response; typedef struct { PacketHeader header; uint8_t config; } ATTRIBUTE_PACKED SetStatusLEDConfig_Request; typedef struct { PacketHeader header; } ATTRIBUTE_PACKED GetStatusLEDConfig_Request; typedef struct { PacketHeader header; uint8_t config; } ATTRIBUTE_PACKED GetStatusLEDConfig_Response; typedef struct { PacketHeader header; } ATTRIBUTE_PACKED GetChipTemperature_Request; typedef struct { PacketHeader header; int16_t temperature; } ATTRIBUTE_PACKED GetChipTemperature_Response; typedef struct { PacketHeader header; } ATTRIBUTE_PACKED Reset_Request; typedef struct { PacketHeader header; uint32_t uid; } ATTRIBUTE_PACKED WriteUID_Request; typedef struct { PacketHeader header; } ATTRIBUTE_PACKED ReadUID_Request; typedef struct { PacketHeader header; uint32_t uid; } ATTRIBUTE_PACKED ReadUID_Response; typedef struct { PacketHeader header; } ATTRIBUTE_PACKED GetIdentity_Request; typedef struct { PacketHeader header; char uid[8]; char connected_uid[8]; char position; uint8_t hardware_version[3]; uint8_t firmware_version[3]; uint16_t device_identifier; } ATTRIBUTE_PACKED GetIdentity_Response; #if defined _MSC_VER || defined __BORLANDC__ #pragma pack(pop) #endif #undef ATTRIBUTE_PACKED static void ambient_light_v3_callback_wrapper_illuminance(DevicePrivate *device_p, Packet *packet) { Illuminance_CallbackFunction callback_function; void *user_data; Illuminance_Callback *callback; if (packet->header.length != sizeof(Illuminance_Callback)) { return; // silently ignoring callback with wrong length } callback_function = (Illuminance_CallbackFunction)device_p->registered_callbacks[DEVICE_NUM_FUNCTION_IDS + AMBIENT_LIGHT_V3_CALLBACK_ILLUMINANCE]; user_data = device_p->registered_callback_user_data[DEVICE_NUM_FUNCTION_IDS + AMBIENT_LIGHT_V3_CALLBACK_ILLUMINANCE]; callback = (Illuminance_Callback *)packet; (void)callback; // avoid unused variable warning if (callback_function == NULL) { return; } callback->illuminance = leconvert_uint32_from(callback->illuminance); callback_function(callback->illuminance, user_data); } void ambient_light_v3_create(AmbientLightV3 *ambient_light_v3, const char *uid, IPConnection *ipcon) { IPConnectionPrivate *ipcon_p = ipcon->p; DevicePrivate *device_p; device_create(ambient_light_v3, uid, ipcon_p, 2, 0, 0, AMBIENT_LIGHT_V3_DEVICE_IDENTIFIER); device_p = ambient_light_v3->p; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_GET_ILLUMINANCE] = DEVICE_RESPONSE_EXPECTED_ALWAYS_TRUE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_SET_ILLUMINANCE_CALLBACK_CONFIGURATION] = DEVICE_RESPONSE_EXPECTED_TRUE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_GET_ILLUMINANCE_CALLBACK_CONFIGURATION] = DEVICE_RESPONSE_EXPECTED_ALWAYS_TRUE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_SET_CONFIGURATION] = DEVICE_RESPONSE_EXPECTED_FALSE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_GET_CONFIGURATION] = DEVICE_RESPONSE_EXPECTED_ALWAYS_TRUE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_GET_SPITFP_ERROR_COUNT] = DEVICE_RESPONSE_EXPECTED_ALWAYS_TRUE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_SET_BOOTLOADER_MODE] = DEVICE_RESPONSE_EXPECTED_ALWAYS_TRUE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_GET_BOOTLOADER_MODE] = DEVICE_RESPONSE_EXPECTED_ALWAYS_TRUE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_SET_WRITE_FIRMWARE_POINTER] = DEVICE_RESPONSE_EXPECTED_FALSE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_WRITE_FIRMWARE] = DEVICE_RESPONSE_EXPECTED_ALWAYS_TRUE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_SET_STATUS_LED_CONFIG] = DEVICE_RESPONSE_EXPECTED_FALSE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_GET_STATUS_LED_CONFIG] = DEVICE_RESPONSE_EXPECTED_ALWAYS_TRUE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_GET_CHIP_TEMPERATURE] = DEVICE_RESPONSE_EXPECTED_ALWAYS_TRUE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_RESET] = DEVICE_RESPONSE_EXPECTED_FALSE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_WRITE_UID] = DEVICE_RESPONSE_EXPECTED_FALSE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_READ_UID] = DEVICE_RESPONSE_EXPECTED_ALWAYS_TRUE; device_p->response_expected[AMBIENT_LIGHT_V3_FUNCTION_GET_IDENTITY] = DEVICE_RESPONSE_EXPECTED_ALWAYS_TRUE; device_p->callback_wrappers[AMBIENT_LIGHT_V3_CALLBACK_ILLUMINANCE] = ambient_light_v3_callback_wrapper_illuminance; ipcon_add_device(ipcon_p, device_p); } void ambient_light_v3_destroy(AmbientLightV3 *ambient_light_v3) { device_release(ambient_light_v3->p); } int ambient_light_v3_get_response_expected(AmbientLightV3 *ambient_light_v3, uint8_t function_id, bool *ret_response_expected) { return device_get_response_expected(ambient_light_v3->p, function_id, ret_response_expected); } int ambient_light_v3_set_response_expected(AmbientLightV3 *ambient_light_v3, uint8_t function_id, bool response_expected) { return device_set_response_expected(ambient_light_v3->p, function_id, response_expected); } int ambient_light_v3_set_response_expected_all(AmbientLightV3 *ambient_light_v3, bool response_expected) { return device_set_response_expected_all(ambient_light_v3->p, response_expected); } void ambient_light_v3_register_callback(AmbientLightV3 *ambient_light_v3, int16_t callback_id, void (*function)(void), void *user_data) { device_register_callback(ambient_light_v3->p, callback_id, function, user_data); } int ambient_light_v3_get_api_version(AmbientLightV3 *ambient_light_v3, uint8_t ret_api_version[3]) { return device_get_api_version(ambient_light_v3->p, ret_api_version); } int ambient_light_v3_get_illuminance(AmbientLightV3 *ambient_light_v3, uint32_t *ret_illuminance) { DevicePrivate *device_p = ambient_light_v3->p; GetIlluminance_Request request; GetIlluminance_Response response; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_GET_ILLUMINANCE, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } ret = device_send_request(device_p, (Packet *)&request, (Packet *)&response, sizeof(response)); if (ret < 0) { return ret; } *ret_illuminance = leconvert_uint32_from(response.illuminance); return ret; } int ambient_light_v3_set_illuminance_callback_configuration(AmbientLightV3 *ambient_light_v3, uint32_t period, bool value_has_to_change, char option, uint32_t min, uint32_t max) { DevicePrivate *device_p = ambient_light_v3->p; SetIlluminanceCallbackConfiguration_Request request; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_SET_ILLUMINANCE_CALLBACK_CONFIGURATION, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } request.period = leconvert_uint32_to(period); request.value_has_to_change = value_has_to_change ? 1 : 0; request.option = option; request.min = leconvert_uint32_to(min); request.max = leconvert_uint32_to(max); ret = device_send_request(device_p, (Packet *)&request, NULL, 0); return ret; } int ambient_light_v3_get_illuminance_callback_configuration(AmbientLightV3 *ambient_light_v3, uint32_t *ret_period, bool *ret_value_has_to_change, char *ret_option, uint32_t *ret_min, uint32_t *ret_max) { DevicePrivate *device_p = ambient_light_v3->p; GetIlluminanceCallbackConfiguration_Request request; GetIlluminanceCallbackConfiguration_Response response; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_GET_ILLUMINANCE_CALLBACK_CONFIGURATION, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } ret = device_send_request(device_p, (Packet *)&request, (Packet *)&response, sizeof(response)); if (ret < 0) { return ret; } *ret_period = leconvert_uint32_from(response.period); *ret_value_has_to_change = response.value_has_to_change != 0; *ret_option = response.option; *ret_min = leconvert_uint32_from(response.min); *ret_max = leconvert_uint32_from(response.max); return ret; } int ambient_light_v3_set_configuration(AmbientLightV3 *ambient_light_v3, uint8_t illuminance_range, uint8_t integration_time) { DevicePrivate *device_p = ambient_light_v3->p; SetConfiguration_Request request; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_SET_CONFIGURATION, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } request.illuminance_range = illuminance_range; request.integration_time = integration_time; ret = device_send_request(device_p, (Packet *)&request, NULL, 0); return ret; } int ambient_light_v3_get_configuration(AmbientLightV3 *ambient_light_v3, uint8_t *ret_illuminance_range, uint8_t *ret_integration_time) { DevicePrivate *device_p = ambient_light_v3->p; GetConfiguration_Request request; GetConfiguration_Response response; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_GET_CONFIGURATION, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } ret = device_send_request(device_p, (Packet *)&request, (Packet *)&response, sizeof(response)); if (ret < 0) { return ret; } *ret_illuminance_range = response.illuminance_range; *ret_integration_time = response.integration_time; return ret; } int ambient_light_v3_get_spitfp_error_count(AmbientLightV3 *ambient_light_v3, uint32_t *ret_error_count_ack_checksum, uint32_t *ret_error_count_message_checksum, uint32_t *ret_error_count_frame, uint32_t *ret_error_count_overflow) { DevicePrivate *device_p = ambient_light_v3->p; GetSPITFPErrorCount_Request request; GetSPITFPErrorCount_Response response; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_GET_SPITFP_ERROR_COUNT, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } ret = device_send_request(device_p, (Packet *)&request, (Packet *)&response, sizeof(response)); if (ret < 0) { return ret; } *ret_error_count_ack_checksum = leconvert_uint32_from(response.error_count_ack_checksum); *ret_error_count_message_checksum = leconvert_uint32_from(response.error_count_message_checksum); *ret_error_count_frame = leconvert_uint32_from(response.error_count_frame); *ret_error_count_overflow = leconvert_uint32_from(response.error_count_overflow); return ret; } int ambient_light_v3_set_bootloader_mode(AmbientLightV3 *ambient_light_v3, uint8_t mode, uint8_t *ret_status) { DevicePrivate *device_p = ambient_light_v3->p; SetBootloaderMode_Request request; SetBootloaderMode_Response response; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_SET_BOOTLOADER_MODE, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } request.mode = mode; ret = device_send_request(device_p, (Packet *)&request, (Packet *)&response, sizeof(response)); if (ret < 0) { return ret; } *ret_status = response.status; return ret; } int ambient_light_v3_get_bootloader_mode(AmbientLightV3 *ambient_light_v3, uint8_t *ret_mode) { DevicePrivate *device_p = ambient_light_v3->p; GetBootloaderMode_Request request; GetBootloaderMode_Response response; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_GET_BOOTLOADER_MODE, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } ret = device_send_request(device_p, (Packet *)&request, (Packet *)&response, sizeof(response)); if (ret < 0) { return ret; } *ret_mode = response.mode; return ret; } int ambient_light_v3_set_write_firmware_pointer(AmbientLightV3 *ambient_light_v3, uint32_t pointer) { DevicePrivate *device_p = ambient_light_v3->p; SetWriteFirmwarePointer_Request request; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_SET_WRITE_FIRMWARE_POINTER, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } request.pointer = leconvert_uint32_to(pointer); ret = device_send_request(device_p, (Packet *)&request, NULL, 0); return ret; } int ambient_light_v3_write_firmware(AmbientLightV3 *ambient_light_v3, uint8_t data[64], uint8_t *ret_status) { DevicePrivate *device_p = ambient_light_v3->p; WriteFirmware_Request request; WriteFirmware_Response response; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_WRITE_FIRMWARE, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } memcpy(request.data, data, 64 * sizeof(uint8_t)); ret = device_send_request(device_p, (Packet *)&request, (Packet *)&response, sizeof(response)); if (ret < 0) { return ret; } *ret_status = response.status; return ret; } int ambient_light_v3_set_status_led_config(AmbientLightV3 *ambient_light_v3, uint8_t config) { DevicePrivate *device_p = ambient_light_v3->p; SetStatusLEDConfig_Request request; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_SET_STATUS_LED_CONFIG, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } request.config = config; ret = device_send_request(device_p, (Packet *)&request, NULL, 0); return ret; } int ambient_light_v3_get_status_led_config(AmbientLightV3 *ambient_light_v3, uint8_t *ret_config) { DevicePrivate *device_p = ambient_light_v3->p; GetStatusLEDConfig_Request request; GetStatusLEDConfig_Response response; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_GET_STATUS_LED_CONFIG, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } ret = device_send_request(device_p, (Packet *)&request, (Packet *)&response, sizeof(response)); if (ret < 0) { return ret; } *ret_config = response.config; return ret; } int ambient_light_v3_get_chip_temperature(AmbientLightV3 *ambient_light_v3, int16_t *ret_temperature) { DevicePrivate *device_p = ambient_light_v3->p; GetChipTemperature_Request request; GetChipTemperature_Response response; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_GET_CHIP_TEMPERATURE, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } ret = device_send_request(device_p, (Packet *)&request, (Packet *)&response, sizeof(response)); if (ret < 0) { return ret; } *ret_temperature = leconvert_int16_from(response.temperature); return ret; } int ambient_light_v3_reset(AmbientLightV3 *ambient_light_v3) { DevicePrivate *device_p = ambient_light_v3->p; Reset_Request request; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_RESET, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } ret = device_send_request(device_p, (Packet *)&request, NULL, 0); return ret; } int ambient_light_v3_write_uid(AmbientLightV3 *ambient_light_v3, uint32_t uid) { DevicePrivate *device_p = ambient_light_v3->p; WriteUID_Request request; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_WRITE_UID, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } request.uid = leconvert_uint32_to(uid); ret = device_send_request(device_p, (Packet *)&request, NULL, 0); return ret; } int ambient_light_v3_read_uid(AmbientLightV3 *ambient_light_v3, uint32_t *ret_uid) { DevicePrivate *device_p = ambient_light_v3->p; ReadUID_Request request; ReadUID_Response response; int ret; ret = device_check_validity(device_p); if (ret < 0) { return ret; } ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_READ_UID, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } ret = device_send_request(device_p, (Packet *)&request, (Packet *)&response, sizeof(response)); if (ret < 0) { return ret; } *ret_uid = leconvert_uint32_from(response.uid); return ret; } int ambient_light_v3_get_identity(AmbientLightV3 *ambient_light_v3, char ret_uid[8], char ret_connected_uid[8], char *ret_position, uint8_t ret_hardware_version[3], uint8_t ret_firmware_version[3], uint16_t *ret_device_identifier) { DevicePrivate *device_p = ambient_light_v3->p; GetIdentity_Request request; GetIdentity_Response response; int ret; ret = packet_header_create(&request.header, sizeof(request), AMBIENT_LIGHT_V3_FUNCTION_GET_IDENTITY, device_p->ipcon_p, device_p); if (ret < 0) { return ret; } ret = device_send_request(device_p, (Packet *)&request, (Packet *)&response, sizeof(response)); if (ret < 0) { return ret; } memcpy(ret_uid, response.uid, 8); memcpy(ret_connected_uid, response.connected_uid, 8); *ret_position = response.position; memcpy(ret_hardware_version, response.hardware_version, 3 * sizeof(uint8_t)); memcpy(ret_firmware_version, response.firmware_version, 3 * sizeof(uint8_t)); *ret_device_identifier = leconvert_uint16_from(response.device_identifier); return ret; } #ifdef __cplusplus } #endif
28.310026
232
0.785265
davidplotzki
59dd89ff9e6cf68ba0d66c6d42daac72d1eea72b
1,413
hpp
C++
lib/expected.hpp
1984not-GmbH/molch
c7f1f646c800ef3388f36e8805a3b94d33d85b12
[ "MIT" ]
15
2016-04-12T17:12:19.000Z
2019-08-14T17:46:17.000Z
lib/expected.hpp
1984not-GmbH/molch
c7f1f646c800ef3388f36e8805a3b94d33d85b12
[ "MIT" ]
63
2016-03-22T14:35:31.000Z
2018-07-04T22:17:07.000Z
lib/expected.hpp
1984not-GmbH/molch
c7f1f646c800ef3388f36e8805a3b94d33d85b12
[ "MIT" ]
1
2017-08-17T09:27:30.000Z
2017-08-17T09:27:30.000Z
/* * Molch, an implementation of the axolotl ratchet based on libsodium * * ISC License * * Copyright (C) 2015-2018 1984not Security GmbH * Author: Max Bruckner (FSMaxB) * * 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. */ #ifndef LIB_EXPECTED_HPP #define LIB_EXPECTED_HPP #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wold-style-cast" #pragma GCC diagnostic ignored "-Wmultiple-inheritance" #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wsuggest-override" #include <experimental/expected2.hpp> #pragma GCC diagnostic pop using std::experimental::expected; using std::experimental::make_unexpected; using std::experimental::unexpected; #endif /* LIB_EXPECTED_HPP */
37.184211
75
0.776362
1984not-GmbH
59e478aded0f667bbfff21dc33c1242c48e51cc9
973
hpp
C++
TorchLib/Source/ReLU.hpp
DoDoENT/jtorch
2f92d397c8dc6fd7f17fe682cb7ce38314086c8e
[ "BSD-2-Clause" ]
null
null
null
TorchLib/Source/ReLU.hpp
DoDoENT/jtorch
2f92d397c8dc6fd7f17fe682cb7ce38314086c8e
[ "BSD-2-Clause" ]
null
null
null
TorchLib/Source/ReLU.hpp
DoDoENT/jtorch
2f92d397c8dc6fd7f17fe682cb7ce38314086c8e
[ "BSD-2-Clause" ]
null
null
null
// // Threshold.hpp // // Created by Jonathan Tompson on 4/1/13. // #pragma once #include <string> // for string, istream #include "TorchStage.hpp" // for ::THRESHOLD_STAGE, TorchStage, TorchStageType namespace mtorch { class TorchData; class Threshold : public TorchStage { public: // Constructor / Destructor Threshold(); virtual ~Threshold(); virtual TorchStageType type() const { return THRESHOLD_STAGE; } virtual std::string name() const { return "Threshold"; } virtual void forwardProp(TorchData& input, TorchData **output); float threshold; // Single threshold value float val; // Single output value (when input < threshold) static TorchStage* loadFromStream( InputStream & stream ) noexcept; protected: void init(TorchData& input, TorchData **output); // Non-copyable, non-assignable. Threshold(Threshold&); Threshold& operator=(const Threshold&); }; }; // namespace mtorch
24.325
79
0.68037
DoDoENT
59e91ad6cf5506263f2b9e83649098d59b5b8013
858
cpp
C++
Binary Tree/Print_Nodes_k_Distance_From_Root.cpp
susantabiswas/placementPrep
22a7574206ddc63eba89517f7b68a3d2f4d467f5
[ "MIT" ]
19
2018-12-02T05:59:44.000Z
2021-07-24T14:11:54.000Z
Binary Tree/Print_Nodes_k_Distance_From_Root.cpp
susantabiswas/placementPrep
22a7574206ddc63eba89517f7b68a3d2f4d467f5
[ "MIT" ]
null
null
null
Binary Tree/Print_Nodes_k_Distance_From_Root.cpp
susantabiswas/placementPrep
22a7574206ddc63eba89517f7b68a3d2f4d467f5
[ "MIT" ]
13
2019-04-25T16:20:00.000Z
2021-09-06T19:50:04.000Z
//Print all the nodes which are at 'k' distance from the root #include<iostream> using namespace std; struct Node { int data; Node *left; Node *right; }; //creates node for the tree Node *create(int data) { try{ Node *node=new Node; node->data=data; node->left=NULL; node->right=NULL; return node; } catch(bad_alloc xa) { cout<<"Memory overflow!!"; return NULL; } } //for getting the width of a particular level void printNodes(Node *root,int k) { if(root==NULL) return ; if(k==1) cout<<root->data<<" "; else if(k>1) printNodes(root->left,k-1); printNodes(root->right,k-1); } int main() { Node *root=create(1); root->left=create(2); root->right=create(3); root->left->left=create(4); root->right->right=create(6); root->left->right=create(5); cout<<"Nodes at 'k' distance :"; printNodes(root,2); return 0; }
15.052632
61
0.649184
susantabiswas
59f44574beffa4bea5beeba69bcdd600dc02b603
7,666
hh
C++
include/BasePhantomBuilder.hh
ZiliasTheSaint/DoseInHumanBody
26818b808ba3ad7740b321e9f82466c29f4385ee
[ "BSD-3-Clause" ]
1
2019-07-27T11:22:16.000Z
2019-07-27T11:22:16.000Z
include/BasePhantomBuilder.hh
ZiliasTheSaint/DoseInHumanBody
26818b808ba3ad7740b321e9f82466c29f4385ee
[ "BSD-3-Clause" ]
null
null
null
include/BasePhantomBuilder.hh
ZiliasTheSaint/DoseInHumanBody
26818b808ba3ad7740b321e9f82466c29f4385ee
[ "BSD-3-Clause" ]
1
2019-10-12T05:41:52.000Z
2019-10-12T05:41:52.000Z
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // Authors: S. Guatelli and M. G. Pia, INFN Genova, Italy // // D. Fulea, National Institute of Public Health Bucharest, Cluj-Napoca Regional Center, Romania // #ifndef BasePhantomBuilder_h #define BasePhantomBuilder_h 1 #include "G4VPhysicalVolume.hh" class G4VPhysicalVolume; class BasePhantomBuilder { public: BasePhantomBuilder(); virtual ~BasePhantomBuilder(); virtual void BuildHead(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfHead()=0; virtual void BuildTrunk(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfTrunk()=0; virtual void BuildUpperSpine(const G4String&,G4bool,G4bool) {return ;}virtual G4double getMassOfUpperSpine()=0; virtual void BuildMiddleLowerSpine(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfMiddleLowerSpine()=0; virtual void BuildLeftLeg(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfLeftLeg()=0; virtual void BuildRightLeg(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfRightLeg()=0; virtual void BuildLeftLegBone(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfLeftLegBone()=0; virtual void BuildRightLegBone(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfRightLegBone()=0; virtual void BuildLeftArmBone(const G4String&,G4bool,G4bool) {return ;}virtual G4double getMassOfLeftArmBone()=0; virtual void BuildRightArmBone(const G4String&,G4bool,G4bool) {return ;}virtual G4double getMassOfRightArmBone()=0; virtual void BuildSkull(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfSkull()=0; virtual void BuildFacial(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfFacial()=0; virtual void BuildRibCage(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfRibCage()=0; virtual void BuildPelvis(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfPelvis()=0; virtual void BuildBrain(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfBrain()=0; virtual void BuildHeart(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfHeart()=0; virtual void BuildLeftLung(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfLeftLung()=0; virtual void BuildRightLung(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfRightLung()=0; virtual void BuildStomach(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfStomach()=0; virtual void BuildUpperLargeIntestine(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfUpperLargeIntestine()=0; virtual void BuildLowerLargeIntestine(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfLowerLargeIntestine()=0; virtual void BuildEsophagus(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfEsophagus()=0; virtual void BuildLeftClavicle(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfLeftClavicle()=0; virtual void BuildRightClavicle(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfRightClavicle()=0; virtual void BuildLeftTesticle(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfLeftTesticle()=0; virtual void BuildRightTesticle(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfRightTesticle()=0; virtual void BuildGallBladder(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfGallBladder()=0; virtual void BuildSmallIntestine(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfSmallIntestine()=0; virtual void BuildThymus(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfThymus()=0; virtual void BuildLeftKidney(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfLeftKidney()=0; virtual void BuildRightKidney(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfRightKidney()=0; virtual void BuildLeftAdrenal(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfLeftAdrenal()=0; virtual void BuildRightAdrenal(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfRightAdrenal()=0; virtual void BuildLiver(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfLiver()=0; virtual void BuildPancreas(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfPancreas()=0; virtual void BuildSpleen(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfSpleen()=0; virtual void BuildUrinaryBladder(const G4String& ,G4bool,G4bool) {return ;};virtual G4double getMassOfUrinaryBladder()=0; virtual void BuildThyroid(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfThyroid()=0; virtual void BuildLeftScapula(const G4String&,G4bool,G4bool){return;};virtual G4double getMassOfLeftScapula()=0; virtual void BuildRightScapula(const G4String&,G4bool,G4bool){return;};virtual G4double getMassOfRightScapula()=0; virtual void SetModel(G4String) {return ;}; virtual void SetMotherVolume(G4VPhysicalVolume*) {return;}; virtual G4VPhysicalVolume* GetPhantom() {return 0;}; virtual void SetScaleXY(G4double) {return ;}; virtual void SetScaleZ(G4double) {return ;}; virtual void SetAgeGroup(G4String) {return ;}; virtual void BuildLeftOvary(const G4String&,G4bool,G4bool ) {return ;};virtual G4double getMassOfLeftOvary()=0; virtual void BuildRightOvary(const G4String&,G4bool,G4bool) {return ;};virtual G4double getMassOfRightOvary()=0; virtual void BuildUterus(const G4String&,G4bool,G4bool){return;};virtual G4double getMassOfUterus()=0; virtual void BuildLeftBreast(const G4String&,G4bool,G4bool){return;};virtual G4double getMassOfLeftBreast()=0; virtual void BuildRightBreast(const G4String&,G4bool,G4bool){return;};virtual G4double getMassOfRightBreast()=0; virtual void BuildVoxelLeftBreast(const G4String&,G4bool,G4bool){return;};// virtual void BuildVoxelRightBreast(const G4String&,G4bool,G4bool){return;};// }; #endif
71.64486
132
0.73102
ZiliasTheSaint
59f523def5be92f9471c26d4892c30eefa45baa9
1,000
cpp
C++
moontamer/four_wheel_steering_odometry/src/four_wheel_steering_odometry_node.cpp
cagrikilic/simulation-environment
459ded470c708a423fc8bcc6157b57399ae89c03
[ "MIT" ]
1
2021-11-20T14:57:44.000Z
2021-11-20T14:57:44.000Z
moontamer/four_wheel_steering_odometry/src/four_wheel_steering_odometry_node.cpp
cagrikilic/simulation-environment
459ded470c708a423fc8bcc6157b57399ae89c03
[ "MIT" ]
null
null
null
moontamer/four_wheel_steering_odometry/src/four_wheel_steering_odometry_node.cpp
cagrikilic/simulation-environment
459ded470c708a423fc8bcc6157b57399ae89c03
[ "MIT" ]
1
2021-11-20T14:57:48.000Z
2021-11-20T14:57:48.000Z
/* Ce noeud a pour but de récupérer les informations du topic Joint_States pour reconstruire les données odométriques du modèle bicyclette et de les publier dans un topic. Ces données sont les braquages avant et arrière, les vitesses de braquage avant et arrière, la vitesse du véhicule, son accélération et son jerk. */ #include <ros/ros.h> #include "four_wheel_steering_odometry.hpp" int main(int argc, char **argv) { ros::init(argc, argv, "four_wheel_steering_odometry_node"); ros::NodeHandle nb; OdometryJointMessage ojm(nb); ojm.setVehicleParam(); ros::Subscriber sub = nb.subscribe("joint_states", 1, &OdometryJointMessage::odomJointCallback, &ojm); ros::Publisher odom_msgs = nb.advertise<four_wheel_steering_msgs::FourWheelSteeringStamped>("odom_steer",1); ros::Rate loop_rate(10); while (ros::ok()) { four_wheel_steering_msgs::FourWheelSteeringStamped msg; ojm.odomMessage(msg); odom_msgs.publish(msg); loop_rate.sleep(); ros::spinOnce(); } }
30.30303
168
0.75
cagrikilic
59f564a3289a564d897b5a9993ad1361af281e48
497
cpp
C++
modules/polygon/src/polygon.cpp
gurylev-nikita/devtools-course-practice
bab6ba4e39f04940e27c9ac148505eb152c05d17
[ "CC-BY-4.0" ]
null
null
null
modules/polygon/src/polygon.cpp
gurylev-nikita/devtools-course-practice
bab6ba4e39f04940e27c9ac148505eb152c05d17
[ "CC-BY-4.0" ]
2
2021-03-12T15:09:25.000Z
2021-04-19T21:01:31.000Z
modules/polygon/src/polygon.cpp
gurylev-nikita/devtools-course-practice
bab6ba4e39f04940e27c9ac148505eb152c05d17
[ "CC-BY-4.0" ]
null
null
null
// Copyright 2021 Alibekov Murad #include "include/polygon.h" double Polygon::PolygonArea(const Points2D& polygon) { double area = 0.; int N = polygon.size(); if (N <= 2) return area; for (int i = 0; i < N - 1; i++) area += polygon[i].first * polygon[i + 1].second - polygon[i + 1].first * polygon[i].second; area += polygon[N - 1].first * polygon[0].second - polygon[0].first * polygon[N - 1].second; return fabs(area) / 2; }
23.666667
57
0.561368
gurylev-nikita
59fd2460f68cd9dd834253c7422a65ec613bb62b
873
cpp
C++
glfw3_app/common/collada/dae_lights.cpp
hirakuni45/glfw3_app
d9ceeef6d398229fda4849afe27f8b48d1597fcf
[ "BSD-3-Clause" ]
9
2015-09-22T21:36:57.000Z
2021-04-01T09:16:53.000Z
glfw3_app/common/collada/dae_lights.cpp
hirakuni45/glfw3_app
d9ceeef6d398229fda4849afe27f8b48d1597fcf
[ "BSD-3-Clause" ]
null
null
null
glfw3_app/common/collada/dae_lights.cpp
hirakuni45/glfw3_app
d9ceeef6d398229fda4849afe27f8b48d1597fcf
[ "BSD-3-Clause" ]
2
2019-02-21T04:22:13.000Z
2021-03-02T17:24:32.000Z
//=====================================================================// /*! @file @brief collada lights のパーサー @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #include "dae_lights.hpp" #include <boost/format.hpp> namespace collada { using namespace boost::property_tree; using namespace std; //-----------------------------------------------------------------// /*! @brief パース @return エラー数(「0」なら成功) */ //-----------------------------------------------------------------// int dae_lights::parse(utils::verbose& v, const boost::property_tree::ptree::value_type& element) { error_ = 0; const std::string& s = element.first.data(); if(s != "library_lights") { return error_; } if(v()) { cout << s << ":" << endl; } const ptree& pt = element.second; return error_; } }
21.292683
97
0.426117
hirakuni45
94003a2ce9a8bef6b4f5ee2ac56fe3b2da2c5b77
648
hpp
C++
include/RED4ext/Scripting/Natives/Generated/anim/AnimNode_AnimSetTagValue.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
42
2020-12-25T08:33:00.000Z
2022-03-22T14:47:07.000Z
include/RED4ext/Scripting/Natives/Generated/anim/AnimNode_AnimSetTagValue.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
38
2020-12-28T22:36:06.000Z
2022-02-16T11:25:47.000Z
include/RED4ext/Scripting/Natives/Generated/anim/AnimNode_AnimSetTagValue.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
20
2020-12-28T22:17:38.000Z
2022-03-22T17:19:01.000Z
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/Scripting/Natives/Generated/anim/AnimNode_FloatValue.hpp> #include <RED4ext/Scripting/Natives/Generated/red/TagList.hpp> namespace RED4ext { namespace anim { struct AnimNode_AnimSetTagValue : anim::AnimNode_FloatValue { static constexpr const char* NAME = "animAnimNode_AnimSetTagValue"; static constexpr const char* ALIAS = NAME; red::TagList tags; // 48 uint8_t unk58[0x68 - 0x58]; // 58 }; RED4EXT_ASSERT_SIZE(AnimNode_AnimSetTagValue, 0x68); } // namespace anim } // namespace RED4ext
27
75
0.762346
jackhumbert
9412cc3661a29eeb0d38fcaec79dac0a032b0fda
309
cpp
C++
archive/1.12.03.cpp
woshiluo/oi
5637fb81b0e25013314783dc387f7fc93bf9d4b9
[ "Apache-2.0" ]
null
null
null
archive/1.12.03.cpp
woshiluo/oi
5637fb81b0e25013314783dc387f7fc93bf9d4b9
[ "Apache-2.0" ]
null
null
null
archive/1.12.03.cpp
woshiluo/oi
5637fb81b0e25013314783dc387f7fc93bf9d4b9
[ "Apache-2.0" ]
null
null
null
#include <stdio.h> bool jl(double a,int b){ if(a>=37.5&&b==1) return true; else return false; } int main(){ int n,ans=0; scanf("%d",&n); for(int i=0;i<n;i++){ char a[10]; double b; int c; scanf("%s %lf %d",a,&b,&c); if(jl(b,c)){ ans++; printf("%s\n",a); } } printf("%d",ans); }
12.36
31
0.498382
woshiluo
9412ed794324257006b770e7629811d01e438cfb
2,970
cpp
C++
CODECHEF/Long/MAY15/devhand.cpp
henviso/contests
aa8a5ce9ed4524e6c3130ee73af7640e5a86954c
[ "Apache-2.0" ]
null
null
null
CODECHEF/Long/MAY15/devhand.cpp
henviso/contests
aa8a5ce9ed4524e6c3130ee73af7640e5a86954c
[ "Apache-2.0" ]
null
null
null
CODECHEF/Long/MAY15/devhand.cpp
henviso/contests
aa8a5ce9ed4524e6c3130ee73af7640e5a86954c
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <cstdio> #include <cstdlib> #include <stack> #include <algorithm> #include <cctype> #include <vector> #include <queue> #include <tr1/unordered_map> #include <cmath> #include <map> #include <bitset> #include <set> #include <iomanip> #include <cstring> #include <unistd.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef pair<int,int> ii; typedef vector< ii > vii; ///////////////////////////////UTIL///////////////////////////////// #define ALL(x) (x).begin(),x.end() #define CLEAR0(v) memset(v, 0, sizeof(v)) #define CLEAR(v, x) memset(v, x, sizeof(v)) #define COPY(a, b) memcpy(a, b, sizeof(a)) #define CMP(a, b) memcmp(a, b, sizeof(a)) #define REP(i,n) for(int i = 0; i<n; i++) #define REPP(i,a,n) for(int i = a; i<n; i++) #define REPD(i,n) for(int i = n-1; i>-1; i--) #define REPDP(i,a,n) for(int i = n-1; i>=a; i--) #define pb push_back #define pf push_front #define sz size() #define mp make_pair /////////////////////////////NUMERICAL////////////////////////////// #define INF 0x3f3f3f3f /////////////////////////////BITWISE//////////////////////////////// #define CHECK(S, j) (S & (1 << j)) #define CHECKFIRST(S) (S & (-S)) #define SET(S, j) S |= (1 << j) #define SETALL(S, j) S = (1 << j)-1 #define UNSET(S, j) S &= ~(1 << j) #define TOOGLE(S, j) S ^= (1 << j) ///////////////////////////////64 BITS////////////////////////////// #define LCHECK(S, j) (S & (1ULL << j)) #define LSET(S, j) S |= (1ULL << j) #define LSETALL(S, j) S = (1ULL << j)-1ULL #define LUNSET(S, j) S &= ~(1ULL << j) #define LTOOGLE(S, j) S ^= (1ULL << j) #define EPS 10e-20 #define MOD 1000000007 //__builtin_popcount(m) //scanf(" %d ", &t); int t; ll n, k; ll K[1000100]; ll x, y, d; //inv modular de a mod b = m eh o x void extendedEuclid(int a, int b){ if(b == 0){ x = 1; y = 0; d = a; return; } extendedEuclid(b, a%b); ll x1 = y; ll y1 = x - (a/b) * y; x = x1; y = y1; } ll invMult(ll a, ll m){ extendedEuclid(a, m); x = x%m; if(x < 0) x += m; return x; } ll calc(ll a, ll b){ if(b < a) swap(a, b); ll div = invMult((k-1), MOD); ll X = (((K[n+1] - 1LL)*div)%MOD) - 2LL - (((K[b]-1LL)*div)%MOD); if(X < MOD) x += MOD; ll res = X - ((X*invMult(K[b], MOD))%MOD) - ((X*invMult(K[a], MOD))%MOD); if(res<0LL) res += MOD; return res; } int main(){ scanf(" %d ", &t); while(t--){ scanf(" %lld %lld ", &n, &k); K[0] = 1LL; REPP(i, 1, n+1) K[i] = (K[i-1]*k)%MOD; ll ans = 0LL; for(ll i = 1LL; i<=n; i++){ ll sum = 0LL; for(ll j = 1LL; j<i; j++){ //ll x = (((K[i] * (K[j] - K[j-i]))%MOD)*(K[l]-K[l-j]-K[l-i]))%MOD; //if(j < l) x *= (x*2LL)%MOD; //cout << "i:" << i << " j:" << j << " l:" << l << " -----> " << calc(i, j, l) << endl; ll X = (i >= j)? (K[j] * (K[i]-K[i-j]))%MOD : (K[i] * (K[j]-K[j-i]))%MOD; if(X < 0LL) X += MOD; ans = (ans + (X*calc(i, j))%MOD)%MOD; } } while(ans < 0) ans += MOD; printf("%lld\n", ans); } }
26.517857
91
0.49596
henviso
9413258b1c6e346bb18d88bbedc77325fb0086f7
703
hpp
C++
MessageLevelModel/sobel/utils.hpp
Blinded4Review/ASPDAC
f1567cff39b4f11fe61cd463fb742b990b927170
[ "Apache-2.0" ]
null
null
null
MessageLevelModel/sobel/utils.hpp
Blinded4Review/ASPDAC
f1567cff39b4f11fe61cd463fb742b990b927170
[ "Apache-2.0" ]
null
null
null
MessageLevelModel/sobel/utils.hpp
Blinded4Review/ASPDAC
f1567cff39b4f11fe61cd463fb742b990b927170
[ "Apache-2.0" ]
null
null
null
#ifndef UTILS_H #define UTILS_H #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_cdf.h> // get max double get_max(const double x, const double y); // general discrete distributions size_t get_discrete(const gsl_rng *r, size_t K, const double *P); // gaussian distribution double get_gaussian(const gsl_rng *r, double sigma, double mu); // bernoulli distribution int get_bernoulli(const gsl_rng *r, double p); // exponential distribution double get_exponential(const gsl_rng *r, double mu); // get P(X <= x) of exponential distribution double get_exponential_P(double x, double mu); // uniform distribution int get_uniform(const gsl_rng * r, double a, double b); #endif
21.96875
65
0.755334
Blinded4Review
94173586915ead9c50b4fa91eaf7cae4a1a714ad
2,752
hpp
C++
include/wee/core/zip.hpp
emdavoca/wee
60344dd646a2e27d1cfdb1131dd679558d9cfa2b
[ "MIT" ]
1
2019-02-11T12:18:39.000Z
2019-02-11T12:18:39.000Z
include/wee/core/zip.hpp
emdavoca/wee
60344dd646a2e27d1cfdb1131dd679558d9cfa2b
[ "MIT" ]
1
2021-11-11T07:27:58.000Z
2021-11-11T07:27:58.000Z
include/wee/core/zip.hpp
emdavoca/wee
60344dd646a2e27d1cfdb1131dd679558d9cfa2b
[ "MIT" ]
1
2021-11-11T07:22:12.000Z
2021-11-11T07:22:12.000Z
#pragma once #include <algorithm> #include <iterator> #include <iostream> #include <tuple> namespace wee { template<typename T> class zip_impl { public: typedef std::vector<T> container_t; template<typename... Args> zip_impl(const T& head, const Args&... args) : items_(head.size()), min_(head.size()) { zip_(head, args...); } inline operator container_t() const { return items_; } inline container_t operator()() const { return items_; } private: template<typename... Args> void zip_(const T& head, const Args&... tail) { // If the current item's size is less than // // the one stored in min_, reset the min_ // // variable to the item's size if (head.size() < min_) min_ = head.size(); for (std::size_t i = 0; i < min_; ++i) { // Use begin iterator and advance it instead // of using the subscript operator adds support // for lists. std::advance has constant complexity // for STL containers whose iterators are // RandomAccessIterators (e.g. vector or deque) typename T::const_iterator itr = head.begin(); std::advance(itr, i); items_[i].push_back(*itr); } // Recursive call to zip_(T, Args...) // while the expansion of tail... is not empty // else calls the overload with no parameters return zip_(tail...); } inline void zip_() { // If min_ has shrunk since the // constructor call items_.resize(min_); } /*! Holds the items for iterating. */ container_t items_; /*! The minimum number of values held by all items */ std::size_t min_; }; template<typename T, typename... Args> typename zip_impl<T>::container_t zip(const T& head, const Args&... tail) { return std::tie(zip_impl<T>(head, tail...)); } }
30.577778
81
0.411701
emdavoca
9428181d5f9dd6931046151f9c4e85cfda6f3554
1,610
cpp
C++
learncpp.com/09_Operator_Overloading/Question04/src/Main.cpp
KoaLaYT/Learn-Cpp
0bfc98c3eca9c2fde5bff609c67d7e273fde5196
[ "MIT" ]
null
null
null
learncpp.com/09_Operator_Overloading/Question04/src/Main.cpp
KoaLaYT/Learn-Cpp
0bfc98c3eca9c2fde5bff609c67d7e273fde5196
[ "MIT" ]
null
null
null
learncpp.com/09_Operator_Overloading/Question04/src/Main.cpp
KoaLaYT/Learn-Cpp
0bfc98c3eca9c2fde5bff609c67d7e273fde5196
[ "MIT" ]
null
null
null
/** * Chapter 9 :: Question 4 * * implement a two point fixed floating number * * KoaLaYT 20:37 02/02/2020 * */ #include "FixedPoint2.h" void testAddition() { // h/t to reader Sharjeel Safdar for this function std::cout << std::boolalpha; std::cout << (FixedPoint2{0.75} + FixedPoint2{1.23} == FixedPoint2{1.98}) << '\n'; // both positive, no decimal overflow std::cout << (FixedPoint2{0.75} + FixedPoint2{1.50} == FixedPoint2{2.25}) << '\n'; // both positive, with decimal overflow std::cout << (FixedPoint2{-0.75} + FixedPoint2{-1.23} == FixedPoint2{-1.98}) << '\n'; // both negative, no decimal overflow std::cout << (FixedPoint2{-0.75} + FixedPoint2{-1.50} == FixedPoint2{-2.25}) << '\n'; // both negative, with decimal overflow std::cout << (FixedPoint2{0.75} + FixedPoint2{-1.23} == FixedPoint2{-0.48}) << '\n'; // second negative, no decimal overflow std::cout << (FixedPoint2{0.75} + FixedPoint2{-1.50} == FixedPoint2{-0.75}) << '\n'; // second negative, possible decimal overflow std::cout << (FixedPoint2{-0.75} + FixedPoint2{1.23} == FixedPoint2{0.48}) << '\n'; // first negative, no decimal overflow std::cout << (FixedPoint2{-0.75} + FixedPoint2{1.50} == FixedPoint2{0.75}) << '\n'; // first negative, possible decimal overflow } int main() { testAddition(); FixedPoint2 a{-0.48}; std::cout << a << '\n'; std::cout << -a << '\n'; std::cout << "Enter a number: "; // enter 5.678 std::cin >> a; std::cout << "You entered: " << a << '\n'; return 0; }
33.541667
78
0.579503
KoaLaYT
9429d01e1468a0ae36da7c95621233ccda44effb
3,831
cpp
C++
src/InputManager.cpp
rage-of-the-elders/rage-of-the-elders
8f07c37c174813beef1658277c3b1b31a8fe2020
[ "MIT" ]
7
2019-05-20T17:26:15.000Z
2021-09-03T01:18:29.000Z
src/InputManager.cpp
rage-of-the-elders/rage-of-the-elders
8f07c37c174813beef1658277c3b1b31a8fe2020
[ "MIT" ]
38
2019-05-20T17:18:23.000Z
2019-07-12T01:53:47.000Z
src/InputManager.cpp
rage-of-the-elders/rage-of-the-elders
8f07c37c174813beef1658277c3b1b31a8fe2020
[ "MIT" ]
null
null
null
#define INCLUDE_SDL #include "SDL_include.h" #include "InputManager.h" #include "Camera.h" #include <cstring> #include <iostream> InputManager::InputManager() { memset(this->mouseState, false, sizeof this->mouseState); memset(this->mouseUpdate, 0, sizeof this->mouseUpdate); this->updateCounter = 0; this->quitRequested = false; this->mouseX = 0; this->mouseY = 0; this->lastsPressKeys = ""; this->comboTimer = Timer(); } InputManager::~InputManager() { } InputManager &InputManager::GetInstance() { static InputManager inputManager; return inputManager; } void InputManager::Update(float dt) { SDL_Event event; this->updateCounter++; this->quitRequested = false; this->comboTimer.Update(dt); SDL_GetMouseState(&this->mouseX, &this->mouseY); this->mouseX += Camera::position.x; this->mouseY += Camera::position.y; while (SDL_PollEvent(&event)) { int keyId, buttonId; if (not event.key.repeat) { switch (event.type) { case SDL_MOUSEBUTTONDOWN: buttonId = event.button.button; this->mouseState[buttonId] = true; this->mouseUpdate[buttonId] = this->updateCounter; break; case SDL_MOUSEBUTTONUP: buttonId = event.button.button; this->mouseState[buttonId] = false; this->mouseUpdate[buttonId] = this->updateCounter; break; case SDL_KEYDOWN: keyId = event.key.keysym.sym; this->keyState[keyId] = true; this->keyUpdate[keyId] = this->updateCounter; MakeCombos(keyId); break; case SDL_KEYUP: keyId = event.key.keysym.sym; this->keyState[keyId] = false; this->keyUpdate[keyId] = this->updateCounter; break; case SDL_QUIT: this->quitRequested = true; break; default: break; } } } } void InputManager::SetLastsPressKeys(std::string lastsPressKeys) { this->lastsPressKeys = lastsPressKeys; } void InputManager::MakeCombos(int buttonId) { if(this->comboTimer.Get() > 0.4 ) { this->lastsPressKeys = ""; this->comboTimer.Restart(); } switch (buttonId) { case SDLK_a: this->lastsPressKeys += "A"; break; case SDLK_s: this->lastsPressKeys += "S"; break; case SDLK_d: this->lastsPressKeys += "D"; break; case SDLK_f: this->lastsPressKeys += "F"; break; case SDLK_g: this->lastsPressKeys += "G"; break; case SDLK_h: this->lastsPressKeys += "H"; break; case SDLK_j: this->lastsPressKeys += "J"; break; case SDLK_w: this->lastsPressKeys += "W"; break; default: this->lastsPressKeys += "0"; break; } } bool InputManager::KeyPress(int key) { return (this->keyState[key] && (this->keyUpdate[key] == this->updateCounter)); } bool InputManager::KeyRelease(int key) { return (not this->keyState[key] && (this->keyUpdate[key] == this->updateCounter)); } bool InputManager::IsKeyDown(int key) { return this->keyState[key]; } bool InputManager::MousePress(int button) { return (this->mouseState[button] && (this->mouseUpdate[button] == this->updateCounter)); } bool InputManager::MouseRelease(int button) { return (not this->mouseState[button] && (this->mouseUpdate[button] == this->updateCounter)); } bool InputManager::IsMouseDown(int button) { return this->mouseState[button]; } int InputManager::GetMouseX() { return this->mouseX; } int InputManager::GetMouseY() { return this->mouseY; } Vec2 InputManager::GetMousePosition() { return Vec2(this->mouseX, this->mouseY); } bool InputManager::QuitRequested() { return this->quitRequested; } std::string InputManager::GetLastsPressKeys() { return this->lastsPressKeys; }
23.648148
94
0.633255
rage-of-the-elders
942a04131e853de76706c5171ee407741a8f1167
2,216
hpp
C++
include/Lys/WorkingModule/WorkingTask.hpp
Tigole/Lys-Framework
c7a51261b78c69fbfd823c1d20617ef13ca83a39
[ "MIT" ]
null
null
null
include/Lys/WorkingModule/WorkingTask.hpp
Tigole/Lys-Framework
c7a51261b78c69fbfd823c1d20617ef13ca83a39
[ "MIT" ]
null
null
null
include/Lys/WorkingModule/WorkingTask.hpp
Tigole/Lys-Framework
c7a51261b78c69fbfd823c1d20617ef13ca83a39
[ "MIT" ]
null
null
null
#ifndef _LYS_WORKING_TASK_HPP #define _LYS_WORKING_TASK_HPP 1 #include <functional> #include <queue> #include <vector> #include <mutex> #include "Lys/Core/Core.hpp" #include "WorkingThread.hpp" namespace lys { class AWorkingTask { LYS_CLASS_NO_COPY(AWorkingTask) friend WorkingThread; public: AWorkingTask(const char* name); virtual ~AWorkingTask(); void mt_Call_Thread_Task(void); const char* mt_Get_Name(void) const; private: virtual void mt_Call_Task(void) = 0; void mt_Stop(void); bool m_Working; std::mutex m_Mutex; const char* m_Name; }; template <typename MsgType> class WorkingTask : public AWorkingTask { public: template<class C> WorkingTask(const char* name, bool (C::*pmt_Callback)(MsgType&), C* obj) : AWorkingTask(name), m_Host_Job(std::bind(pmt_Callback, obj, std::placeholders::_1)), m_Host_Mutex(), m_Orders(), m_Results() {} void mt_Push_Order(const MsgType& order) { m_Host_Mutex.lock(); m_Orders.push(order); WorkingThread::smt_Get().mt_Add_Task(this); m_Host_Mutex.unlock(); } bool mt_Pop_Result(MsgType& result) { bool l_b_Ret = false; m_Host_Mutex.lock(); if (m_Results.size() > 0) { result = m_Results.front(); m_Results.pop(); l_b_Ret = true; } m_Host_Mutex.unlock(); return l_b_Ret; } void mt_Call_Task(void) override { MsgType l_Data; bool l_Work = false; m_Host_Mutex.lock(); if (m_Orders.size() > 0) { l_Data = m_Orders.front(); m_Orders.pop(); l_Work = true; } m_Host_Mutex.unlock(); if (l_Work == true) { if (m_Host_Job(l_Data) == true) { m_Host_Mutex.lock(); m_Results.push(l_Data); m_Host_Mutex.unlock(); } } } private: std::function<bool(MsgType&)> m_Host_Job; std::mutex m_Host_Mutex; std::queue<MsgType> m_Orders; std::queue<MsgType> m_Results; }; } #endif // _LYS_WORKING_TASK_HPP
18.940171
76
0.581227
Tigole
94322b1761f37df86914c6326a526f9da51fe1aa
68
cpp
C++
examples/simple-sfml/main.cpp
snailbaron/wiggle
10266aca77d8bbfc32965fc45c5601323a66573e
[ "MIT" ]
null
null
null
examples/simple-sfml/main.cpp
snailbaron/wiggle
10266aca77d8bbfc32965fc45c5601323a66573e
[ "MIT" ]
null
null
null
examples/simple-sfml/main.cpp
snailbaron/wiggle
10266aca77d8bbfc32965fc45c5601323a66573e
[ "MIT" ]
null
null
null
#include <wiggle.hpp> #include <SFML/Graphics.hpp> int main() { }
8.5
28
0.661765
snailbaron
94331746a3d8c8b2c373b7e9ba216331c5d36347
335
cpp
C++
baekjoon/1427.cpp
3-24/Competitive-Programming
8cb3b85bf89db2c173cb0b136de27f2983f335fc
[ "MIT" ]
1
2019-07-15T00:27:37.000Z
2019-07-15T00:27:37.000Z
baekjoon/1427.cpp
3-24/Competitive-Programming
8cb3b85bf89db2c173cb0b136de27f2983f335fc
[ "MIT" ]
null
null
null
baekjoon/1427.cpp
3-24/Competitive-Programming
8cb3b85bf89db2c173cb0b136de27f2983f335fc
[ "MIT" ]
null
null
null
#include <stdio.h> #include <stdlib.h> int compare(const void *a, const void *b){ return *(int *)b - *(int *)a; } int main(){ int arr[11]; int i = 0; int n; scanf("%d",&n); while (n){ arr[i] = n % 10; i++; n/=10; } qsort(arr,i,sizeof(int),compare); for (int j=0;j<i;j++){ printf("%d",arr[j]); } }
14.565217
42
0.495522
3-24
9435f506082f1fb33469b163d7d738784c661cc3
2,834
cpp
C++
typekits/rtt_ros2_rclcpp_typekit/src/ros2_duration_type.cpp
gborghesan/rtt_ros2_integration
6c03adc69e1bac3c8ad07d19e1814054f30f6936
[ "Apache-2.0" ]
14
2020-06-12T14:48:40.000Z
2022-03-22T08:57:41.000Z
typekits/rtt_ros2_rclcpp_typekit/src/ros2_duration_type.cpp
gborghesan/rtt_ros2_integration
6c03adc69e1bac3c8ad07d19e1814054f30f6936
[ "Apache-2.0" ]
15
2020-06-12T15:57:09.000Z
2021-09-08T18:26:19.000Z
typekits/rtt_ros2_rclcpp_typekit/src/ros2_duration_type.cpp
gborghesan/rtt_ros2_integration
6c03adc69e1bac3c8ad07d19e1814054f30f6936
[ "Apache-2.0" ]
3
2020-12-02T09:11:23.000Z
2021-11-29T11:06:27.000Z
// Copyright 2020 Intermodalics BVBA // // 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. #include "rtt_ros2_rclcpp_typekit/ros2_duration_type.hpp" #include <cassert> #include <string> #include <vector> #include "rtt/types/TemplateConstructor.hpp" #include "rtt_ros2_rclcpp_typekit/time_conversions.hpp" #include "rtt_ros2_rclcpp_typekit/time_io.hpp" using namespace RTT; // NOLINT(build/namespaces) using namespace RTT::types; // NOLINT(build/namespaces) namespace rtt_ros2_rclcpp_typekit { WrappedDuration::WrappedDuration() : rclcpp::Duration(0) {} DurationTypeInfo::DurationTypeInfo() : PrimitiveTypeInfo<WrappedDuration, true>("/rclcpp/Duration") {} bool DurationTypeInfo::installTypeInfoObject(TypeInfo * ti) { // aquire a shared reference to the this object boost::shared_ptr<DurationTypeInfo> mthis = boost::dynamic_pointer_cast<DurationTypeInfo>( this->getSharedPtr()); assert(mthis); // Allow base to install first PrimitiveTypeInfo<WrappedDuration, true>::installTypeInfoObject(ti); // ti->setStreamFactory(mthis); // Conversions const auto types = TypeInfoRepository::Instance(); { const auto built_interfaces_msg_duration_ti = types->getTypeInfo<builtin_interfaces::msg::Duration>(); assert(built_interfaces_msg_duration_ti != nullptr); if (built_interfaces_msg_duration_ti != nullptr) { built_interfaces_msg_duration_ti->addConstructor(newConstructor(&duration_to_msg, true)); } ti->addConstructor(newConstructor(&msg_to_duration, true)); } { // Note: Define conversions for int64_t before double, because Orocos implicit converts from // int64_t to double, but not from double to int64_t. const auto int64_ti = types->getTypeInfo<int64_t>(); assert(int64_ti != nullptr); if (int64_ti != nullptr) { int64_ti->addConstructor(newConstructor(&duration_to_int64)); } ti->addConstructor(newConstructor(&int64_to_duration, true)); } { const auto double_ti = types->getTypeInfo<double>(); assert(double_ti != nullptr); if (double_ti != nullptr) { double_ti->addConstructor(newConstructor(&duration_to_double)); } ti->addConstructor(newConstructor(&double_to_duration, true)); } // Don't delete us, we're memory-managed. return false; } } // namespace rtt_ros2_rclcpp_typekit
33.341176
96
0.743825
gborghesan
943e1165f6af3582510740b7f76c632fbb768f7f
2,707
cpp
C++
src/components/ImageListScroll.cpp
hhyyrylainen/DualViewPP
1fb4a1db85a8509342e16d68c75d4ec7721ced9e
[ "MIT" ]
null
null
null
src/components/ImageListScroll.cpp
hhyyrylainen/DualViewPP
1fb4a1db85a8509342e16d68c75d4ec7721ced9e
[ "MIT" ]
null
null
null
src/components/ImageListScroll.cpp
hhyyrylainen/DualViewPP
1fb4a1db85a8509342e16d68c75d4ec7721ced9e
[ "MIT" ]
null
null
null
// ------------------------------------ // #include "ImageListScroll.h" using namespace DV; // ------------------------------------ // bool ImageListScroll::HasCount() const{ return false; } size_t ImageListScroll::GetCount() const{ return 0; } // ------------------------------------ // bool ImageListScroll::SupportsRandomAccess() const{ return false; } std::shared_ptr<Image> ImageListScroll::GetImageAt(size_t index) const{ return nullptr; } size_t ImageListScroll::GetImageIndex(Image& image) const{ return 0; } // ------------------------------------ // std::string ImageListScroll::GetDescriptionStr() const{ return ""; } // ------------------------------------ // // ImageListScrollVector ImageListScrollVector::ImageListScrollVector(const std::vector<std::shared_ptr<Image>> &images) : Images(images) { } // ------------------------------------ // std::shared_ptr<Image> ImageListScrollVector::GetNextImage(std::shared_ptr<Image> current, bool wrap /*= true*/) { if(!current) return nullptr; const auto index = GetImageIndex(*current); if(index >= Images.size()) return nullptr; if(index + 1 < Images.size()){ // Next is at index + 1 return Images[index + 1]; } else { // current is the last image // if(!wrap) return nullptr; return Images[0]; } } std::shared_ptr<Image> ImageListScrollVector::GetPreviousImage(std::shared_ptr<Image> current, bool wrap /*= true*/) { if(!current) return nullptr; const auto index = GetImageIndex(*current); if(index >= Images.size()) return nullptr; if(index >= 1){ // Previous is at index - 1 return Images[index - 1]; } else { // current is the first image // if(!wrap) return nullptr; return Images[Images.size() - 1]; } } // ------------------------------------ // bool ImageListScrollVector::HasCount() const{ return true; } size_t ImageListScrollVector::GetCount() const{ return Images.size(); } bool ImageListScrollVector::SupportsRandomAccess() const{ return true; } std::shared_ptr<Image> ImageListScrollVector::GetImageAt(size_t index) const{ if(index >= Images.size()) return nullptr; return Images[index]; } size_t ImageListScrollVector::GetImageIndex(Image& image) const{ for(size_t i = 0; i < Images.size(); ++i){ if(Images[i].get() == &image) return i; } return -1; } // ------------------------------------ // std::string ImageListScrollVector::GetDescriptionStr() const{ return "list"; }
20.201493
94
0.550055
hhyyrylainen
9448dfeac03bfb125821e227d926e331a3a84db3
11,730
cc
C++
src/XrdHttpLcmaps.cc
matyasselmeci/xrootd-lcmaps
c796009b20794e3d179776b03e8095a0c3e32631
[ "Apache-2.0" ]
3
2018-11-22T12:16:31.000Z
2020-02-23T15:15:47.000Z
src/XrdHttpLcmaps.cc
matyasselmeci/xrootd-lcmaps
c796009b20794e3d179776b03e8095a0c3e32631
[ "Apache-2.0" ]
20
2017-07-25T03:15:21.000Z
2021-05-31T14:38:27.000Z
src/XrdHttpLcmaps.cc
matyasselmeci/xrootd-lcmaps
c796009b20794e3d179776b03e8095a0c3e32631
[ "Apache-2.0" ]
10
2017-07-21T16:56:43.000Z
2021-12-26T20:10:38.000Z
#include <iostream> #include <map> #include <mutex> #include <time.h> #include <openssl/ssl.h> #include <XrdHttp/XrdHttpSecXtractor.hh> #include <XrdVersion.hh> #include <XrdSec/XrdSecEntity.hh> #include "GlobusSupport.hh" extern "C" { #include "lcmaps.h" } #include "XrdLcmapsConfig.hh" #include "XrdLcmapsKey.hh" #define policy_count 1 static const char default_db [] = "/etc/lcmaps.db"; static const char default_policy_name [] = "xrootd_policy"; static const char plugin_name [] = "XrdSecgsiAuthz"; // We always pass the certificate since it is verified by Globus later on. static int proxy_app_verify_callback(X509_STORE_CTX *ctx, void *empty) { return 1; } XrdVERSIONINFO(XrdHttpGetSecXtractor,"lcmaps"); // Someday we'll actually hook into the Xrootd logging system... #define PRINT(y) std::cerr << y << "\n"; inline uint64_t monotonic_time() { struct timespec tp; #ifdef CLOCK_MONOTONIC_COARSE clock_gettime(CLOCK_MONOTONIC_COARSE, &tp); #else clock_gettime(CLOCK_MONOTONIC, &tp); #endif return tp.tv_sec + (tp.tv_nsec >= 500000000); } /** * Given an entry in the cache (`in`) that represents the same identity * as the current connection (`out`), copy forward the portions of * XrdSecEntity that are related to the user. * * This purposely doesn't overwrite host or creds. */ void UpdateEntity(XrdSecEntity &out, XrdSecEntity const &in) { if (in.name) { free(out.name); out.name = strdup(in.name); } if (in.vorg) { free(out.vorg); out.vorg = strdup(in.vorg); } if (in.role) { free(out.role); out.role = strdup(in.role); } if (in.grps) { free(out.grps); out.grps = strdup(in.grps); } if (in.endorsements) { free(out.endorsements); out.endorsements = strdup(in.endorsements); } if (in.moninfo) { free(out.moninfo); out.moninfo = strdup(in.moninfo); } } void FreeEntity(XrdSecEntity *&ent) { free(ent->name); free(ent->host); free(ent->vorg); free(ent->role); free(ent->grps); free(ent->creds); free(ent->endorsements); free(ent->moninfo); delete ent; } class XrdMappingCache { public: ~XrdMappingCache() { for (KeyToEnt::iterator it = m_map.begin(); it != m_map.end(); it++) { FreeEntity(it->second.first); } } /** * Get the data associated with a particular key and store * it into the entity object. * If this returns false, then the key was not found. */ bool get(std::string key, struct XrdSecEntity &entity) { time_t now = monotonic_time(); std::lock_guard<std::mutex> guard(m_mutex); if (now > m_last_clean + 100) {clean_tables();} KeyToEnt::const_iterator iter = m_map.find(key); if (iter == m_map.end()) { return false; } UpdateEntity(entity, *iter->second.first); return true; } /** * Put the entity data into the map for a given key. * Makes a copy of the caller's data if the key was not already present * This function is thread safe. * * If result is false, then the key was already in the map. */ void try_put(std::string key, struct XrdSecEntity const &entity) { time_t now = monotonic_time(); std::lock_guard<std::mutex> guard(m_mutex); XrdSecEntity *new_ent = new XrdSecEntity(); std::pair<KeyToEnt::iterator, bool> ret = m_map.insert(std::make_pair(key, std::make_pair(new_ent, now))); if (ret.second) { ValueType &value = ret.first->second; XrdSecEntity *ent = value.first; UpdateEntity(*ent, entity); } else { delete new_ent; } } static XrdMappingCache &GetInstance() { return m_cache; } private: // No copying... XrdMappingCache& operator=(XrdMappingCache const&); XrdMappingCache(XrdMappingCache const&); XrdMappingCache() : m_last_clean(monotonic_time()) { } /** * MUST CALL LOCKED */ void clean_tables() { m_last_clean = monotonic_time(); time_t expiry = m_last_clean + 100; KeyToEnt::iterator it = m_map.begin(); while (it != m_map.end()) { if (it->second.second < expiry) { FreeEntity(it->second.first); m_map.erase(it++); } else { ++it; } } } typedef std::pair<XrdSecEntity*, time_t> ValueType; typedef std::map<std::string, ValueType> KeyToEnt; std::mutex m_mutex; time_t m_last_clean; KeyToEnt m_map; static XrdMappingCache m_cache; }; XrdMappingCache XrdMappingCache::m_cache; class XrdHttpLcmaps : public XrdHttpSecXtractor { public: virtual ~XrdHttpLcmaps() {} virtual int GetSecData(XrdLink *, XrdSecEntity &entity, SSL *ssl) { static const char err_pfx[] = "ERROR in AuthzFun: "; static const char inf_pfx[] = "INFO in AuthzFun: "; //PRINT(inf_pfx << "Running security information extractor"); // Make sure to always clear out the entity first. if (entity.name) { free(entity.name); entity.name = NULL; } // Per OpenSSL docs, the ref count of peer_chain is not incremented. // Hence, we do not free this later. STACK_OF(X509) * peer_chain = SSL_get_peer_cert_chain(ssl); // The refcount here is incremented. X509 * peer_certificate = SSL_get_peer_certificate(ssl); // No remote client? Add nothing to the entity, but do not // fail. if (!peer_certificate) { return 0; } // This one is a more difficult call. We should have disabled session reuse. if (!peer_chain) { PRINT(inf_pfx << "No available peer certificate chain."); X509_free(peer_certificate); if (SSL_session_reused(ssl)) { PRINT(inf_pfx << "SSL session was unexpectedly reused."); return -1; } return 0; } STACK_OF(X509) * full_stack = sk_X509_new_null(); sk_X509_push(full_stack, peer_certificate); for (int idx = 0; idx < sk_X509_num(peer_chain); idx++) { sk_X509_push(full_stack, sk_X509_value(peer_chain, idx)); } std::string key = GetKey(peer_certificate, peer_chain, entity); if (!key.size()) { // Empty key indicates failure of verification. sk_X509_free(full_stack); X509_free(peer_certificate); free(entity.moninfo); free(entity.name); free(entity.grps); entity.grps = NULL; free(entity.endorsements); entity.endorsements = NULL; free(entity.vorg); entity.vorg = NULL; free(entity.role); entity.role = NULL; entity.moninfo = strdup("Failed DN verification"); entity.name = NULL; return -1; } XrdMappingCache &mcache = XrdMappingCache::GetInstance(); PRINT(inf_pfx << "Lookup with key " << key); if (mcache.get(key, entity)) { PRINT(inf_pfx << "Using cached entity with username " << entity.name); sk_X509_free(full_stack); X509_free(peer_certificate); return 0; } if (!g_no_authz) { // Grab the global mutex - lcmaps is not thread-safe. std::lock_guard<std::mutex> guard(g_lcmaps_mutex); char *poolindex = NULL; uid_t uid = -1; gid_t *pgid_list = NULL, *sgid_list = NULL; int npgid = 0, nsgid = 0; lcmaps_request_t request = NULL; // Typically, the RSL // To manage const cast issues const char * policy_name_env = getenv("LCMAPS_POLICY_NAME"); char * policy_name_copy = strdup(policy_name_env ? policy_name_env : default_policy_name); int rc = lcmaps_run_with_stack_of_x509_and_return_account( full_stack, -1, // mapcounter request, policy_count, &policy_name_copy, &uid, &pgid_list, &npgid, &sgid_list, &nsgid, &poolindex); if (policy_name_copy) { free(policy_name_copy); } sk_X509_free(full_stack); X509_free(peer_certificate); if (pgid_list) {free(pgid_list);} if (sgid_list) {free(sgid_list);} if (poolindex) {free(poolindex);} // If there's a client cert but LCMAPS fails, we proceed with // an anonymous / unmapped user as they may have additional // per-file authorization. // // Previously, we denied the mapping as we didn't trust the // verification routines outside those from LCMAPS. Currently, // we enforce validation from both Globus and VOMS. if (rc) { PRINT(err_pfx << "LCMAPS failed or denied mapping"); return 0; } PRINT(inf_pfx << "Got uid " << uid); struct passwd * pw = getpwuid(uid); if (pw == NULL) { return -1; } free(entity.moninfo); entity.moninfo = strdup(key.c_str()); free(entity.name); entity.name = strdup(pw->pw_name); mcache.try_put(key, entity); } else { char chash[30] = {0}; std::string key_dn = key.substr(0, key.find(':')); for (int idx = 0; idx < sk_X509_num(full_stack); idx++) { X509 *current_cert = sk_X509_value(full_stack, idx); char *dn = X509_NAME_oneline(X509_get_subject_name(current_cert), NULL, 0); if (!strcmp(key_dn.c_str(), dn)) { snprintf(chash, sizeof(chash), "%08lx.0", X509_NAME_hash(X509_get_subject_name(current_cert))); } } if (chash[0]) { entity.name = strdup(chash); } sk_X509_free(full_stack); X509_free(peer_certificate); free(entity.moninfo); entity.moninfo = strdup(key.c_str()); mcache.try_put(key, entity); } return 0; } virtual int Init(SSL_CTX *sslctx, int) { // NOTE(bbockelm): OpenSSL docs note that peer_chain is not available // in reused sessions. We should build a session cache, but we just // disable sessions for now. SSL_CTX_set_session_cache_mode(sslctx, SSL_SESS_CACHE_OFF); SSL_CTX_set_options(sslctx, SSL_OP_NO_TICKET); // Always accept the certificate at the OpenSSL level. We'll do a standalone // verification later with Globus. SSL_CTX_set_cert_verify_callback(sslctx, proxy_app_verify_callback, NULL); return 0; } XrdHttpLcmaps(XrdSysError *) { } int Config(const char *cfg) { return XrdSecgsiAuthzConfig(cfg); } private: XrdSysError *eDest; static std::mutex m_mutex; }; std::mutex XrdHttpLcmaps::m_mutex; extern "C" XrdHttpSecXtractor *XrdHttpGetSecXtractor(XrdHttpSecXtractorArgs) { if (!globus_activate()) {return NULL;} XrdHttpLcmaps *extractor = new XrdHttpLcmaps(eDest); if (extractor->Config(parms)) { delete extractor; return NULL; } return extractor; }
28.962963
114
0.576812
matyasselmeci
94495b4c1bb77f9089e667bb63463183a4aee49a
786
hpp
C++
etl/_type_traits/conjunction.hpp
tobanteEmbedded/tetl
fc3272170843bcab47971191bcd269a86c5b5101
[ "BSL-1.0" ]
4
2021-11-28T08:48:11.000Z
2021-12-14T09:53:51.000Z
etl/_type_traits/conjunction.hpp
tobanteEmbedded/tetl
fc3272170843bcab47971191bcd269a86c5b5101
[ "BSL-1.0" ]
null
null
null
etl/_type_traits/conjunction.hpp
tobanteEmbedded/tetl
fc3272170843bcab47971191bcd269a86c5b5101
[ "BSL-1.0" ]
null
null
null
/// \copyright Tobias Hienzsch 2019-2021 /// Distributed under the Boost Software License, Version 1.0. /// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt #ifndef TETL_TYPE_TRAITS_CONJUNCTION_HPP #define TETL_TYPE_TRAITS_CONJUNCTION_HPP #include "etl/_type_traits/bool_constant.hpp" #include "etl/_type_traits/conditional.hpp" namespace etl { /// \group conjunction template <typename... B> inline constexpr bool conjunction_v = (B::value && ...); /// \brief Forms the logical conjunction of the type traits B..., effectively /// performing a logical AND on the sequence of traits. /// \group conjunction template <typename... B> struct conjunction : bool_constant<conjunction_v<B...>> { }; } // namespace etl #endif // TETL_TYPE_TRAITS_CONJUNCTION_HPP
30.230769
77
0.760814
tobanteEmbedded
944b4a65cb5a1f942b7044f7f5b83c5a6f845a69
10,080
cpp
C++
asc/src/input_structure.cpp
inquisitor101/ASC2D
73ea575496340ad2486014525c6aec9c42c5d453
[ "MIT" ]
null
null
null
asc/src/input_structure.cpp
inquisitor101/ASC2D
73ea575496340ad2486014525c6aec9c42c5d453
[ "MIT" ]
null
null
null
asc/src/input_structure.cpp
inquisitor101/ASC2D
73ea575496340ad2486014525c6aec9c42c5d453
[ "MIT" ]
null
null
null
#include "input_structure.hpp" CInput::CInput ( CConfig *config_container, CGeometry *geometry_container ) /* * Constructor, used to initialize CInput class. */ { // Extract number of zones. nZone = config_container->GetnZone(); } CInput::~CInput ( void ) /* * Deconstructor for CInput class. */ { } void CInput::ReadSolutionRestartFile ( CConfig *config_container, CGeometry *geometry_container, CElement **element_container, CSolver **solver_container, as3double &SimTime ) /* * Function that reads the solution from a restart file. */ { // Report output. std::cout << "\n reading data from restart file... "; // Open restart file. std::ifstream Restart_File( config_container->GetRestartFilename() ); // Check if file exists. if(!Restart_File.is_open()) Terminate("CInput::ReadSolutionRestartFile", __FILE__, __LINE__, "Restart file could not be opened!"); // Create temporary input data. as3double input_XMin, input_XMax, input_YMin, input_YMax; unsigned short input_nZone; // Read header information. AddScalarOption(Restart_File, "SimTime", SimTime); AddScalarOption(Restart_File, "nZone", input_nZone); AddScalarOption(Restart_File, "XMin", input_XMin); AddScalarOption(Restart_File, "XMax", input_XMax); AddScalarOption(Restart_File, "YMin", input_YMin); AddScalarOption(Restart_File, "YMax", input_YMax); // Extract main domain bound. auto& DomainBound = config_container->GetDomainBound(); // Consistency check. assert( input_nZone == nZone ); assert( input_XMin == DomainBound[0] ); assert( input_XMax == DomainBound[1] ); assert( input_YMin == DomainBound[2] ); assert( input_YMax == DomainBound[3] ); // Read data in every zone. for(unsigned short iZone=0; iZone<nZone; iZone++){ // Create temporary input data. unsigned long input_nElem, input_nxElem, input_nyElem, input_iElem; unsigned short input_iZone, input_TypeSolver, input_TypeZone, input_TypeDOFs, input_nPolySol, input_nDOFsSol1D, input_nDOFsInt1D, input_TypeIC, input_TypeBufferLayer; // Temporary storage of the solution being read in. as3data1d<as3double> storage(nVar, nullptr); // Extract data container in this zone. auto& data_container = solver_container[iZone]->GetDataContainer(); // Boolean to indicate whether or not an interpolation is needed. Default, false. bool Interpolate = false; // Read general information. AddScalarOption(Restart_File, "iZone", input_iZone); AddScalarOption(Restart_File, "TypeIC", input_TypeIC); AddScalarOption(Restart_File, "TypeSolver", input_TypeSolver); AddScalarOption(Restart_File, "TypeBufferLayer", input_TypeBufferLayer); AddScalarOption(Restart_File, "TypeZone", input_TypeZone); AddScalarOption(Restart_File, "TypeDOFs", input_TypeDOFs); AddScalarOption(Restart_File, "nPolySol", input_nPolySol); AddScalarOption(Restart_File, "nDOFsSol1D", input_nDOFsSol1D); AddScalarOption(Restart_File, "nDOFsInt1D", input_nDOFsInt1D); AddScalarOption(Restart_File, "nElem", input_nElem); AddScalarOption(Restart_File, "nxElem", input_nxElem); AddScalarOption(Restart_File, "nyElem", input_nyElem); // Extract current data from config file. unsigned short TypeIC = config_container->GetTypeIC(iZone); unsigned short TypeSolver = config_container->GetTypeSolver(iZone); unsigned short TypeBufferLayer = config_container->GetTypeBufferLayer(iZone); unsigned short TypeZone = config_container->GetTypeZone(iZone); unsigned short TypeDOFs = config_container->GetTypeDOFs(iZone); unsigned long nxElem = config_container->GetnxElemZone(iZone); unsigned long nyElem = config_container->GetnyElemZone(iZone); unsigned long nElem = solver_container[iZone]->GetnElem(); unsigned short nPolySol = element_container[iZone]->GetnPolySol(); unsigned short nDOFsSol1D = element_container[iZone]->GetnDOFsSol1D(); // Consistency check. assert( iZone == input_iZone ); assert( TypeIC == input_TypeIC ); assert( TypeSolver == input_TypeSolver ); assert( TypeBufferLayer == input_TypeBufferLayer ); assert( TypeZone == input_TypeZone ); assert( nElem == input_nElem ); assert( nxElem == input_nxElem ); assert( nyElem == input_nyElem ); // Check if there need be no interpolation. if( (nPolySol != input_nPolySol) || (TypeDOFs != input_TypeDOFs) ){ // Interpolation is required. Interpolate = true; // Extract basis of current data. auto& rDOFsSol1D = element_container[iZone]->GetrDOFsSol1D(); // Reserve memory for the basis used in the restart file. as3vector1d<as3double> rDOFsSolInput1D(input_nDOFsSol1D); // Create basis for the solution from restart file. element_container[iZone]->LocationDOFs1D(input_TypeDOFs, rDOFsSolInput1D); // Reserve (transposed) interpolation polynomial between the restart file and current data. lagrange1DTranspose.resize(input_nDOFsSol1D*nDOFsSol1D); // Compute lagrange polynomial that interpolates from the nDOFsSol1D of the // restart solution to this current zone. element_container[iZone]->LagrangeBasisFunctions(rDOFsSolInput1D, rDOFsSol1D, nullptr, nullptr, lagrange1DTranspose.data(), nullptr, nullptr, nullptr); } // Deduce the number of solution DOFs in 2D. const unsigned short input_nDOFsSol2D = input_nDOFsSol1D*input_nDOFsSol1D; // Reserve memory for the intermediary solution storage data. Note, this does not // matter whether this is an interpolation procedure or not, since this is the input data. for(unsigned short iVar=0; iVar<nVar; iVar++) storage[iVar] = new as3double[input_nDOFsSol2D](); // Loop over all elements and read the data. for(unsigned long iElem=0; iElem<nElem; iElem++){ // Extract current data. auto& data = data_container[iElem]->GetDataDOFsSol(); // Find the starting point for the data. AddScalarOption(Restart_File, "DataDOFsSol", input_iElem); // Consistency check. assert( iElem == input_iElem ); // Temporary storage. std::string line; // Update line read. getline(Restart_File, line); std::stringstream ss(line); // Read and copy the data in this element. for(unsigned short iVar=0; iVar<nVar; iVar++){ for(unsigned short iNode=0; iNode<input_nDOFsSol2D; iNode++){ // Read new value and check the buffer is good. std::string tmp; getline(ss, tmp, ','); if( !ss.good() ) break; // Convert the string value read into a double. std::stringstream convertor(tmp); convertor >> storage[iVar][iNode]; } } // Check whether an interpolation is needed or not. If not, just copy the data. if( Interpolate ) // Interpolate solution. TensorProductSolAndGradVolume(nDOFsSol1D, nVar, input_nDOFsSol1D, lagrange1DTranspose.data(), nullptr, storage.data(), data.data(), nullptr, nullptr); else // Copy solution. for(unsigned short i=0; i<nVar; i++) for(unsigned short l=0; l<input_nDOFsSol2D; l++) data[i][l] = storage[i][l]; } // If this is a PML zone, read the auxiliary data too. if( TypeBufferLayer == PML_LAYER ){ // Loop over all elements and read the data. for(unsigned long iElem=0; iElem<nElem; iElem++){ // Extract current data. auto** data = &data_container[iElem]->GetDataDOFsSol()[nVar]; // Find the starting point for the data. AddScalarOption(Restart_File, "DataDOFsSolAux", input_iElem); // Consistency check. assert( iElem == input_iElem ); // Temporary storage. std::string line; // Update line read. getline(Restart_File, line); std::stringstream ss(line); // Read and copy the data in this element. for(unsigned short iVar=0; iVar<nVar; iVar++){ for(unsigned short iNode=0; iNode<input_nDOFsSol2D; iNode++){ // Read new value and check the buffer is good. std::string tmp; getline(ss, tmp, ','); if( !ss.good() ) break; // Convert the string value read into a double. std::stringstream convertor(tmp); convertor >> storage[iVar][iNode]; } } // Check whether an interpolation is needed or not. If not, just copy the data. if( Interpolate ) // Interpolate solution. TensorProductSolAndGradVolume(nDOFsSol1D, nVar, input_nDOFsSol1D, lagrange1DTranspose.data(), nullptr, storage.data(), data, nullptr, nullptr); else // Copy solution. for(unsigned short i=0; i<nVar; i++) for(unsigned short l=0; l<input_nDOFsSol2D; l++) data[i][l] = storage[i][l]; } } // Peek to next character (used for determining end of file assertion). Restart_File.peek(); // delete the temporary storage used. for(unsigned short i=0; i<storage.size(); i++) if( storage[i] ) delete [] storage[i]; } // Make sure end of file is reached. assert( Restart_File.eof() == true ); // Close file. Restart_File.close(); // Report progress. std::cout << "Done." << std::endl; }
35.121951
97
0.632242
inquisitor101
944fdb467148c7977f4755a671ec53a9a2796e7d
5,347
hpp
C++
newweb/utility/ipc/generic_ipc_channel.hpp
cauthu/shadow-browser-plugin
e1eb930b1bdf71cb3cdcbb1d70467e6e6203c298
[ "BSD-3-Clause" ]
null
null
null
newweb/utility/ipc/generic_ipc_channel.hpp
cauthu/shadow-browser-plugin
e1eb930b1bdf71cb3cdcbb1d70467e6e6203c298
[ "BSD-3-Clause" ]
null
null
null
newweb/utility/ipc/generic_ipc_channel.hpp
cauthu/shadow-browser-plugin
e1eb930b1bdf71cb3cdcbb1d70467e6e6203c298
[ "BSD-3-Clause" ]
null
null
null
#ifndef generic_ipc_channel_hpp #define generic_ipc_channel_hpp // #include <event2/event.h> // #include <event2/bufferevent.h> #include <memory> #include <map> #include <set> #include <boost/function.hpp> #include "../object.hpp" #include "../timer.hpp" #include "../stream_channel.hpp" #include "../generic_message_channel.hpp" namespace myipc { /* msg ids are used to implement msgs that require responses. we refer * to these msgs as "calls" (as in function calls). so these are like * RPCs * * non-call msgs have id = 0. if a client makes a call, it must use * only odd msg ids; server only even msg ids. * * the call reply msgs will specify the same id, so that the initiator * of the call can know it's a reply * * * NOTE!! currently only clients can make calls * */ class GenericIpcChannel : public Object , public myio::StreamChannelConnectObserver , public myio::GenericMessageChannelObserver { public: typedef std::unique_ptr<GenericIpcChannel, /*folly::*/Destructor> UniquePtr; enum class ChannelStatus : short { READY, CLOSED }; /* status of response to a call() */ enum class RespStatus : short { RECV /* received the response */, TIMEDOUT /* timed out waiting for resp msg */, ERR /* some other error */ }; typedef boost::function<void(GenericIpcChannel*, ChannelStatus)> ChannelStatusCb; typedef boost::function<void(GenericIpcChannel*, uint8_t type, uint16_t len, const uint8_t*)> OnMsgCb; /* if the status is RECV, then the resp msg can be obtained from * the buf pointer. any other status, e.g., TIMEDOUT or ERR, then * "len" will be 0 and the buf will be nullptr */ typedef boost::function<void(GenericIpcChannel*, RespStatus status, uint16_t len, const uint8_t* buf)> OnRespStatusCb; /* timed out waiting for response */ typedef boost::function<void(GenericIpcChannel*)> RespTimeoutCb; /* for user of GenericIpcChannel: CalledCb notifies user of a call * from the other IPC peer. the "uint32_t id" is the opaque that * the user must specify in its response */ typedef boost::function<void(GenericIpcChannel*, uint32_t id, uint8_t type, uint16_t len, const uint8_t*)> CalledCb; /* will take ownership of the stream channel. * * this is assumed to be an IPC client (i.e., no CalledCb), and * will call start_connecting() on the stream channel */ explicit GenericIpcChannel(struct event_base*, myio::StreamChannel::UniquePtr, OnMsgCb, ChannelStatusCb); /* will take ownership of the stream channel. * * this is assumed to be an IPC server (i.e., specified CalledCb) */ explicit GenericIpcChannel(struct event_base*, myio::StreamChannel::UniquePtr, OnMsgCb, CalledCb, ChannelStatusCb); void sendMsg(uint8_t type, uint16_t len, const uint8_t* buf); void sendMsg(uint8_t type); // send empty msg /* make a call to the other peer, expecting a response message of * type "resp_type". * * "timeoutSecs" is optional timeout in seconds waiting for * response */ void call(uint8_t type, uint16_t len, const uint8_t* buf, uint8_t resp_type, OnRespStatusCb on_resp_status_cb, const uint8_t *timeoutSecs=nullptr); /* respond to a call */ void reply(uint32_t id, uint8_t type, uint16_t len, const uint8_t*); protected: virtual ~GenericIpcChannel() = default; /**** implement StreamChannelConnectObserver interface *****/ virtual void onConnected(myio::StreamChannel*) noexcept override; virtual void onConnectError(myio::StreamChannel*, int errorcode) noexcept override; virtual void onConnectTimeout(myio::StreamChannel*) noexcept override; /**** implement GeneriMessageChannelObserver interface *****/ virtual void onRecvMsg(myio::GenericMessageChannel*, uint8_t, uint32_t, uint16_t, const uint8_t*) noexcept override; virtual void onEOF(myio::GenericMessageChannel*) noexcept override; virtual void onError(myio::GenericMessageChannel*, int) noexcept override; //////// void _on_timeout_waiting_resp(Timer*, uint32_t id); struct event_base* evbase_; myio::StreamChannel::UniquePtr stream_ch_; myio::GenericMessageChannel::UniquePtr gen_msg_ch_; const bool is_client_; OnMsgCb msg_cb_; /* for notifying user of non-reply msgs */ ChannelStatusCb channel_status_cb_; CalledCb called_cb_; uint32_t next_call_msg_id_; /* map key is msg id */ struct CallInfo { uint8_t call_msg_type; /* save the msg type of the call */ uint8_t exp_resp_msg_type; /* expected response msg type */ OnRespStatusCb on_resp_status_cb; Timer::UniquePtr timeout_timer; }; std::map<uint32_t, CallInfo> pending_calls_; /* to store ids of calls that have timed out so we can ignore the * response when they arrive */ std::set<uint32_t> timed_out_call_ids_; }; } // end myipc namespace #endif /* generic_ipc_channel_hpp */
34.057325
87
0.66037
cauthu
9451c2e411c998ba5103437f2d36cced49ba0142
679
hpp
C++
core/stl_reader.hpp
fritzio/libstl
0709e54e4b13576edf84e393db211fb77efd7f72
[ "MIT" ]
null
null
null
core/stl_reader.hpp
fritzio/libstl
0709e54e4b13576edf84e393db211fb77efd7f72
[ "MIT" ]
null
null
null
core/stl_reader.hpp
fritzio/libstl
0709e54e4b13576edf84e393db211fb77efd7f72
[ "MIT" ]
null
null
null
#ifndef LIBSTL_STL_READER_HPP #define LIBSTL_STL_READER_HPP #include <string> #include <vector> #include <memory> #include "triangle.hpp" #include "parser_option.hpp" #include "utilities/box.hpp" namespace libstl { class stl_reader { const std::vector<triangle> surface_mesh; const utilities::box<float, 3> bounding_box; const std::array<float, 3> outside_point; public: template<typename option> explicit stl_reader(const std::string& filename, option); bool is_inside(const std::array<float, 3> point) const; bool is_inside(const float x, const float y, const float z) const; }; } // namespace stl_reader #endif // LIBSTL_STL_READER_HPP
19.970588
70
0.734904
fritzio
945283652800b96e55e7e7d16d98215205a54355
53
hpp
C++
src/boost_mpl_aux__reverse_fold_impl_body.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_mpl_aux__reverse_fold_impl_body.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_mpl_aux__reverse_fold_impl_body.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/mpl/aux_/reverse_fold_impl_body.hpp>
26.5
52
0.830189
miathedev
9455ec897a968cc908f398633dd6ba709e9f0413
3,349
cpp
C++
src/filter/Temperature.cpp
Kuhlwein/Demiurge
0981f1d267efed87d51e2b328a93e1fa0be1158d
[ "MIT" ]
6
2020-09-23T19:49:07.000Z
2022-01-08T15:53:55.000Z
src/filter/Temperature.cpp
Kuhlwein/Demiurge
0981f1d267efed87d51e2b328a93e1fa0be1158d
[ "MIT" ]
null
null
null
src/filter/Temperature.cpp
Kuhlwein/Demiurge
0981f1d267efed87d51e2b328a93e1fa0be1158d
[ "MIT" ]
1
2020-09-23T17:53:26.000Z
2020-09-23T17:53:26.000Z
// // Created by kuhlwein on 6/29/21. // #include <iostream> #include "Project.h" #include "Temperature.h" void TemperatureMenu::update_self(Project *p) { } std::shared_ptr<BackupFilter> TemperatureMenu::makeFilter(Project *p) { return std::make_shared<ProgressFilter>(p, [](Project* p){return p->get_terrain();}, std::move(std::make_unique<Temperature>(p))); } TemperatureMenu::TemperatureMenu() : FilterModal("Temperature") { } Temperature::~Temperature() { } Temperature::Temperature(Project *p) { p->get_terrain()->swap(p->get_scratch1()); Shader* shader = Shader::builder() .include(fragmentBase) .include(pidShader) .create("",R"( fc = 50; )"); ShaderProgram* setzero = ShaderProgram::builder() .addShader(vertex2D->getCode(), GL_VERTEX_SHADER) .addShader(shader->getCode(), GL_FRAGMENT_SHADER) .link(); setzero->bind(); p->setCanvasUniforms(setzero); p->apply(setzero,p->get_terrain()); } void Temperature::run() { for (int i=0;i<500000;i++) { dispatchGPU([&i](Project *p) { Shader *shader = Shader::builder() .include(fragmentBase) .include(cornerCoords) .include(texturespace_gradient) .create(R"( uniform float M=0; float eccentricity = 0.017; float gamma = 23.44/180.0*M_PI; float omega = 0; float omega2 = 77.05/180.0*M_PI; float dmean = 1.0; float S0 = 1365; float Q = 400; float S(float A) { return S0*(1+2*eccentricity*cos(A-omega)); } float A(float M) { return M + (2*eccentricity-pow(eccentricity,3)/4*sin(M) + 5.0/4*pow(eccentricity,2)*sin(2*M) + 13.0/12*pow(eccentricity,3)*sin(3*M)); } float Ls(float A) { return A - omega2; } float delta(float Ls) { return asin(sin(gamma)*sin(Ls)); } float h0(float phi, float delta) { float h = sign(phi)==sign(delta) ? M_PI : 0.0; if(abs(phi)<=M_PI/2-abs(delta)) h = acos(-tan(phi)*tan(delta)); return h; } float QDay(float phi, float M) { float delt = delta(Ls(A(M))); float h = h0(phi,delt); return S(A(M))/M_PI * (h*sin(phi)*sin(delt)+cos(phi)*cos(delt)*sin(h)); } )", R"( float T = texture(img,st).r; float terrain = texture(scratch1,st).r; float alpha = terrain>0 ? 0.15 : 0.06; alpha = 0.30; float phi = tex_to_spheric(st).y; //alpha = 0.354 + 0.12*0.5*(3*pow(sin(phi),2)-1); float ASR = (1-alpha)*(QDay(phi,M) );//+QDay(phi,M+M_PI))/2; float OLR = 210 + 2 * T; OLR = 210*pow(T+273.15,4)/pow(273.4,4) * 0.93; vec2 gradient = get_texture_laplacian(st); float change = ASR - OLR + 0.55*1e6*(gradient.x + gradient.y); float atmosphere = 1e7; float C = atmosphere + (terrain>0 ? atmosphere*0.5 : 4*1.5 * atmosphere); fc = T + change*3.154*1e7/15000/C; )"); ShaderProgram *mainfilter = ShaderProgram::builder() .addShader(vertex2D->getCode(), GL_VERTEX_SHADER) .addShader(shader->getCode(), GL_FRAGMENT_SHADER) .link(); for (int j=0; j<10; j++) { mainfilter->bind(); p->setCanvasUniforms(mainfilter); int id = glGetUniformLocation(mainfilter->getId(), "M"); glUniform1f(id, M_PI * 2 / 15000 * i); p->apply(mainfilter, p->get_scratch2()); p->get_terrain()->swap(p->get_scratch2()); i++; } // }); } dispatchGPU([](Project* p){ std::cout << "finished\n;"; p->get_terrain()->swap(p->get_scratch2()); }); }
20.546012
135
0.62138
Kuhlwein
945a543d4c8ea0ad7bf7038f16d20c14ac098add
6,023
cpp
C++
hexprinter.cpp
eva-rubio/CPU-simulator
b897e935c578b048e5945fda57f647a799f07655
[ "MIT" ]
null
null
null
hexprinter.cpp
eva-rubio/CPU-simulator
b897e935c578b048e5945fda57f647a799f07655
[ "MIT" ]
null
null
null
hexprinter.cpp
eva-rubio/CPU-simulator
b897e935c578b048e5945fda57f647a799f07655
[ "MIT" ]
null
null
null
#include <iostream> #include <stdlib.h> #include <time.h> #include <stdint.h> // Eva Rubio using namespace std; /* ' #define ' - A type of Preprocessor Directive: MACRO. Preprocessors are programs that process our source code before compilation. Macros are a piece of code in a program which is given some name. Whenever this name is encountered by the compiler, the compiler REPLACES the name with the actual piece of code. */ #define MAIN_MEMLENGTH 32 #define MEMLENGTH 0xFFF #define OPCODE 0xF000 // the opcode is the first 4 bits #define OPERAND 0x0FFF // the operand is the last 12 bits //OPCODE - 11110000 00000000 - 0xF000 - 61,440 - 16 bits //00110000 00001000 - 0x3008 - 12,296 - IR // UNSIGNED int. DECIMAL NUMBER. // 16 bits long (2 Bytes) // - largest number it can hold: 65,535 // - smallest number: 0. /* typedef : Used to give data type a new name */ typedef uint16_t WORD; // word is an (unsigned) int, 16 bits void HexPrint(WORD val, int width); struct cpu_t{ int PC; // this is the CPU's program counter WORD ACC; // this is the CPU's accumulator WORD IR; // this is the CPU's instruction register // a few helpful methods. NOTHING in this struct should change. WORD getOpcode(){ return (IR & OPCODE) >> 12; } WORD getOperand(){ return IR & OPERAND; } void init(){ PC=0; ACC=0; IR=0x0000; } }; /** ** initMachine() initializes the state of the virtual machine state. ** (1) zeros out the CPU registers ** (2) sets the program counter to the start of memory ** (3) fills memory with zeros **/ void initMachine(cpu_t &cpu, WORD memory[]) { cpu.init(); for(int i=0;i<MEMLENGTH;i++){ memory[i] = 0x0000; } } /** this function will print a hex version of the value you give (an UNsigned 16bit int) ** it, front padded with as many zeros as needed to fit a width ** of 'width' --- for example HexPrint(23,2) prints 17 ** and HexPrint(32,3) prints 020 ** it does NOT print a newline ADDS 0s IN FRONT UNTIL THERE ARE 'width' NUMBER AFTER 0x ex. (3)0x3008 (4)0x3008 (5)0x03008 **/ void HexPrint(WORD val, int width) { /* C++ defines some format flags for standard input and output, which can be manipulated with the flags() function. - ios::hex Numeric values are displayed in hexidecimal. - ios::dec Numeric values are displayed in decimal. */ cout << "0x" ; // switch to hex cout.flags(ios::hex); // set zero paddnig cout.fill('0'); cout.width(width); // print the val cout << val ; // switch back to decimal cout.flags(ios::dec); } int main (int argc, char *argv[]) { cpu_t cpu; WORD memory[MEMLENGTH]; // this is the system memory initMachine(cpu, memory); // clear out the virtual system cpu.IR = 0x3a08; cout << "PC: " << cpu.PC <<endl; cout << "IR: "; cout << cpu.IR << endl; HexPrint(cpu.IR, 4); cout << endl; cout << "\t (Opcode:"; HexPrint(cpu.getOpcode(), 1); cout << ")" << endl; cout << "\t (Operand:"; HexPrint(cpu.getOperand(), 7); cout << ")" << endl; cout << "ACC: "; HexPrint(cpu.ACC,4); cout << endl; WORD valueForACC; WORD myMask = 0xf000; WORD myOperand = cpu.getOperand(); if((myOperand & 0x800) != 0){ // operand is NEGATIVE valueForACC = myOperand | myMask; cout << "valueForACC: "; HexPrint(valueForACC, 4); cout << endl; } else { valueForACC = myOperand; cout << "(positive) valueForACC: "; HexPrint(valueForACC, 4); cout << endl; } cpu.ACC = valueForACC; cout << " NEW - - ACC: "; HexPrint(cpu.ACC,4); cout << endl; cout << " ---------------------------------------- " << endl; WORD address = 0xfff; cpu.PC = address; cout << " NEW - - PC: " << endl; cout << cpu.PC << endl; cout << "now in hex: " << endl; HexPrint(cpu.PC,4); cout << endl; //---------------------- memory[12] = 0xfff; cpu.ACC = cpu.ACC + memory[12]; cout << " ADDITION VALUE OF - - ACC: "; HexPrint(cpu.ACC,4); cout << endl; /** memory[0] = 0x0000; memory[1] = 0x0001; memory[2] = 1; memory[3] = 0xf; memory[4] = -10; //Hex signed 2's comple 0xFFF6 memory[5] = memory[4] + memory[2]; memory[6] = (-10 - (-5)); //Hex signed 2's compl 0xFFFB **/ /* cout << "memory contents:" << endl; for(int i=0;i<MAIN_MEMLENGTH;i++){ cout << "mem["; HexPrint(i,3); cout << "] == "; HexPrint(memory[i],4); cout << endl; } for(int i=MAIN_MEMLENGTH;i<MEMLENGTH;i++){ if(memory[i]!=0){ cout << "mem["; HexPrint(i,3); cout << "] == "; HexPrint(memory[i],4); cout << endl; } } int width1 = 10; int width2 = 2; int width3 = 3; WORD unsigInt1 = 23; cout << "HexPrint : unsigInt1 (23), width2 (2) " << endl; HexPrint(unsigInt1, width2); cout << endl; cout << endl; WORD unsigInt2 = 60000; cout << "HexPrint : unsigInt2 (60000), width1 (10) " << endl; HexPrint(unsigInt2, width1); cout << endl; cout << endl; WORD unsigInt3 = 2; cout << "HexPrint : unsigInt3 (2), width3 (3) " << endl; HexPrint(unsigInt3, width3); cout << endl; uint16_t x; uint16_t y; uint16_t z; cout << endl; cout << "ints Byte size: " << sizeof(int) << endl; cout << "unsigned ints Byte size: " << sizeof(unsigned int) << endl; cout << "uint16_t Byte size: " << sizeof(uint16_t) << endl; cout << "int16_t Byte size: " << sizeof(int16_t) << endl; cout << endl; cout << endl; cout << "x? > "; cin >> x; cout << endl; cout << "y? > "; cin >> y; cout << endl; cout << " - x: " << x << endl; cout << " - (int)x: " << (int)x << endl; cout << " - (int16_t)x: " << (int16_t)x << endl; cout << " - (uint16_t)x: " << (uint16_t)x << endl; cout << " - x in hex: "; HexPrint(x,4); z = x + y; cout << endl; cout << endl; cout << " - z: " << z << endl; cout << " - (int)z: " << (int)z << endl; cout << " - (int16_t)z: " << (int16_t)z << endl; cout << " - (uint16_t)z: " << (uint16_t)z << endl; cout << " - z in hex: "; HexPrint(z,4); */ return 0; }
20.347973
88
0.589739
eva-rubio
945a574fc62b8a929ce2c32d8000ed47c0178891
947
cpp
C++
src/Projectile.cpp
tobiaswinter/asteroids-game
761d1c7ae1ae03762b8b8c4dc18468b4df164d61
[ "MIT" ]
null
null
null
src/Projectile.cpp
tobiaswinter/asteroids-game
761d1c7ae1ae03762b8b8c4dc18468b4df164d61
[ "MIT" ]
null
null
null
src/Projectile.cpp
tobiaswinter/asteroids-game
761d1c7ae1ae03762b8b8c4dc18468b4df164d61
[ "MIT" ]
null
null
null
#include "Projectile.h" #include <random> #include <iostream> Projectile::Projectile(Participant* owner, Type type) : Rigidbody(type), owner(owner) { Reset(); } Projectile::~Projectile() { } void Projectile::Reset() { if (type == Asteroid) { radius = ASTEROID_RADIUS; if (velocity.x < 0) { location.x = (ARENA_WIDTH / 2) + 20; } else { location.x = -((ARENA_WIDTH / 2) + 20); } if (velocity.y < 0) { location.y = (ARENA_HEIGHT / 2) - 20; } else { location.y = -((ARENA_HEIGHT / 2) - 20); } #if !IGNORE_Z_AXIS if (velocity.z < 0) { location.z = (ARENA_DEPTH / 2) - 20; } else { location.z = -((ARENA_DEPTH / 2) - 20); } #endif } else if (type = Bullet) { radius = BULLET_RADIUS; } }
17.867925
85
0.459345
tobiaswinter
945b2ab4f7910a796ced6492bf74684995355e71
1,065
hpp
C++
software/include/species.hpp
A283le/ExoskeletonAI
dfb4ff5639d84dea69577764af2b151f309bbb3b
[ "Apache-2.0" ]
7
2020-06-03T05:48:47.000Z
2022-01-08T22:30:26.000Z
software/include/species.hpp
A283le/ExoskeletonAI
dfb4ff5639d84dea69577764af2b151f309bbb3b
[ "Apache-2.0" ]
21
2018-01-16T17:05:30.000Z
2018-04-01T18:14:18.000Z
software/include/species.hpp
A283le/ExoskeletonAI
dfb4ff5639d84dea69577764af2b151f309bbb3b
[ "Apache-2.0" ]
6
2018-01-22T15:35:26.000Z
2021-12-17T15:32:09.000Z
#ifndef SPECIES_HPP #define SPECIES_HPP /** @brief Class for the species. This class will hold of the functions that deal with species, and their necessary actions. @author Dominguez, Alejandro @date Feburary, 2018 */ #include <iostream> #include <list> #include <network.hpp> using namespace std; class Species{ private: int stale;/**< Indicates how long a function has been stale.*/ int fit_stale; int max_fitness;/**<The maximum fitness of a species.*/ Network* fittest_net;/**<Network pointer to the fittest network.*/ list<Network *> networks;/**<A list of network pointers that stores networks.*/ protected: int compute_excess(Network *, Network *); int compute_disjoint(Network *, Network *); float weight_diff_match_genes(Network *, Network *); public: Species(); ~Species(); void mutate(); void run_networks(); void add_network(Network *); bool is_stale(); bool test_species(); Network* get_fittest_net(); list<Network *>* get_networks(); }; #endif
21.734694
83
0.675117
A283le
945c8acf3a5afff032341822a079b8196e8f3fa9
3,238
cpp
C++
src/Config/PropertiesMap.cpp
eiji-shimizu/eihire
3996cf9d0c5d4fd8201141093aea6bb8017e7657
[ "MIT" ]
null
null
null
src/Config/PropertiesMap.cpp
eiji-shimizu/eihire
3996cf9d0c5d4fd8201141093aea6bb8017e7657
[ "MIT" ]
null
null
null
src/Config/PropertiesMap.cpp
eiji-shimizu/eihire
3996cf9d0c5d4fd8201141093aea6bb8017e7657
[ "MIT" ]
null
null
null
#include "Config/PropertiesMap.h" #include "Exception/Exception.h" #include <filesystem> #include <fstream> #include <sstream> namespace Eihire::Config { namespace { std::string getFileName(const std::string &filePath) { std::filesystem::path p{filePath}; return p.filename().generic_string(); } } // namespace PropertiesMap::PropertiesMap() = default; PropertiesMap::~PropertiesMap() = default; PropertiesMap::PropertiesMap(const PropertiesMap &) = default; PropertiesMap &PropertiesMap::operator=(const PropertiesMap &) = default; PropertiesMap::PropertiesMap(PropertiesMap &&) = default; PropertiesMap &PropertiesMap::operator=(PropertiesMap &&) = default; PropertiesMap::PropertiesMap(std::string filePath) : filePath_{filePath}, fileName_{getFileName(filePath)} { // noop } void PropertiesMap::load() { std::ifstream ifs((filePath_)); if (!ifs) { std::ostringstream oss(""); oss << "can't open file '" << filePath_ << "'."; throw Exception::FileCannotOpenException(oss.str()); } // ファイル読み込み開始 // この文以降でifsがbad状態になった場合に例外をスローさせる ifs.exceptions(ifs.exceptions() | std::ios_base::badbit); std::string line; while (ifs) { std::getline(ifs, line); if (line.length() <= 0) { continue; } std::ostringstream key(""); std::ostringstream value(""); bool isComment = false; bool flg = false; for (const char c : line) { if (c == '#' || c == '!') { isComment = true; break; } if (flg == false && c == '=') { flg = true; continue; } if (flg) value << c; else key << c; } if (!isComment) { // コメント行でないのに'='が見つからなかった場合は構文エラー if (!flg) { std::ostringstream oss(""); oss << "parse error file'" << filePath_ << "'."; throw Exception::ParseException(oss.str()); } set(key.str(), value.str()); } } } bool PropertiesMap::isContain(const std::string &key) const { auto it = properties_.find(key); return it != properties_.end(); } std::string PropertiesMap::get(const std::string &key) const { return properties_.at(key); } void PropertiesMap::set(const std::string &key, const std::string &value) { std::pair<std::string, std::string> e{key, value}; auto result = properties_.insert(std::make_pair(key, value)); if (!result.second) { properties_.at(key) = value; } } const std::string &PropertiesMap::fileName() const { return fileName_; } const std::map<std::string, std::string> &PropertiesMap::properties() const { return properties_; } } // namespace Eihire::Config
28.910714
79
0.512044
eiji-shimizu
9466c9f41e9d9a74e251d8536071f33b322a69fa
929
cpp
C++
src/engine/graphics/model/vertex.cpp
dmfedorin/ubiquitility
f3a1062d2489ffd48889bff5fc8062c05706a946
[ "MIT" ]
null
null
null
src/engine/graphics/model/vertex.cpp
dmfedorin/ubiquitility
f3a1062d2489ffd48889bff5fc8062c05706a946
[ "MIT" ]
null
null
null
src/engine/graphics/model/vertex.cpp
dmfedorin/ubiquitility
f3a1062d2489ffd48889bff5fc8062c05706a946
[ "MIT" ]
null
null
null
#include "vertex.hpp" auto Vertex::get_binding_desc( void) noexcept -> VkVertexInputBindingDescription { VkVertexInputBindingDescription binding_desc{}; binding_desc.binding = 0; binding_desc.stride = sizeof(Vertex); binding_desc.inputRate = VK_VERTEX_INPUT_RATE_VERTEX; return binding_desc; } auto Vertex::get_attr_descs( void) noexcept -> std::array<VkVertexInputAttributeDescription, 2> { std::array<VkVertexInputAttributeDescription, 2> attr_descs{}; attr_descs[0].binding = 0; attr_descs[0].location = 0; attr_descs[0].format = VK_FORMAT_R32G32_SFLOAT; attr_descs[0].offset = offsetof(Vertex, pos); attr_descs[1].binding = 0; attr_descs[1].location = 1; attr_descs[1].format = VK_FORMAT_R32G32B32_SFLOAT; attr_descs[1].offset = offsetof(Vertex, color); return attr_descs; }
29.03125
70
0.668461
dmfedorin
9469376a9120212715f945fbf16eb07ba750a193
1,433
cpp
C++
test/memory/TestObjectPool.cpp
CltKitakami/MyLib
d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36
[ "MIT" ]
null
null
null
test/memory/TestObjectPool.cpp
CltKitakami/MyLib
d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36
[ "MIT" ]
null
null
null
test/memory/TestObjectPool.cpp
CltKitakami/MyLib
d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36
[ "MIT" ]
null
null
null
#include <vector> #include <list> #include <map> #include "common/Log.hpp" #include "common/Stopwatch.hpp" #include "memory/ObjectPool.hpp" template<size_t DUMP_SIZE> class Test { public: char dump[DUMP_SIZE]; Test() {} ~Test() {} }; void testNewDelete(); void testMap(); template <typename T> void testStl(); int main() { testNewDelete(); testStl<std::vector<int, ObjectPool<int>>>(); testStl<std::list<int, ObjectPool<int>>>(); testMap(); return 0; } void testNewDelete() { const int TEST_LOOP_COUNTER = 2500000; const int TEST_OBJECT_BYTES = 1024000; ObjectPool<Test<TEST_OBJECT_BYTES>> pool; Stopwatch s; s.start(); for (int i = 0; i < TEST_LOOP_COUNTER; ++i) { { // Test pool allocate de-allocate Test<TEST_OBJECT_BYTES> *p = pool.allocate(1); pool.construct(p, Test<TEST_OBJECT_BYTES>()); pool.destroy(p); pool.deallocate(p, 1); } { // Test defalut new delete // Test<TEST_OBJECT_BYTES> *p = new Test<TEST_OBJECT_BYTES>; // delete p; } } s.stop(); LOGP("\nTotal time: " << s.getMicros() << " us"); } void testMap() { std::map<int, int, std::less<int>, ObjectPool<int>> v; for (int i = 0; i < 6; ++i) { LOGP("==========="); LOGP("map: insert " << i); v[i] = i; } LOGP("==========="); } template <typename T> void testStl() { T v; for (int i = 0; i < 6; ++i) { LOGP("==========="); LOGP("push " << i); v.push_back(i); } LOGP("==========="); }
16.101124
63
0.598744
CltKitakami
946aa8147a1642149d5040bad13609964b9d9e98
154
cpp
C++
ME625_NURBS_SweptSurfaces/vector3D.cpp
houes/ME625_NURBS_SweptSurfaces
0b3062a0ae5c7dbb885ac35ad12bcf2afaeec66e
[ "MIT" ]
3
2020-04-10T22:55:20.000Z
2022-02-08T11:10:28.000Z
ME625_NURBS_SweptSurfaces/vector3D.cpp
houes/ME625_NURBS_SweptSurfaces
0b3062a0ae5c7dbb885ac35ad12bcf2afaeec66e
[ "MIT" ]
null
null
null
ME625_NURBS_SweptSurfaces/vector3D.cpp
houes/ME625_NURBS_SweptSurfaces
0b3062a0ae5c7dbb885ac35ad12bcf2afaeec66e
[ "MIT" ]
null
null
null
#include "vector3D.h" vector3D vector3D::crossp(const vector3D &v) const { return vector3D( y*v.z - z*v.y, z*v.x - x*v.z, x*v.y - y*v.x ); }
19.25
50
0.577922
houes
946c659c0d072af4cbd7920c2a715444029456f5
7,972
cpp
C++
src/libc9/gc_markcompact.cpp
stormbrew/channel9
626b42c208ce1eb54fff09ebd9f9e9fd0311935d
[ "MIT" ]
1
2015-02-13T02:03:29.000Z
2015-02-13T02:03:29.000Z
src/libc9/gc_markcompact.cpp
stormbrew/channel9
626b42c208ce1eb54fff09ebd9f9e9fd0311935d
[ "MIT" ]
null
null
null
src/libc9/gc_markcompact.cpp
stormbrew/channel9
626b42c208ce1eb54fff09ebd9f9e9fd0311935d
[ "MIT" ]
null
null
null
#include "c9/channel9.hpp" #include "c9/gc.hpp" #include "c9/value.hpp" #include "c9/string.hpp" #include "c9/tuple.hpp" #include "c9/message.hpp" #include "c9/context.hpp" #include "c9/variable_frame.hpp" #include "c9/gc_markcompact.hpp" namespace Channel9 { GC::Markcompact::Markcompact() : m_gc_phase(Running), m_alloced(0), m_used(0), m_data_blocks(0), m_next_gc(0.9*(1<<CHUNK_SIZE)) { alloc_chunk(); m_cur_small_block = m_cur_medium_block = m_empty_blocks.back(); m_empty_blocks.pop_back(); m_pinned_block.init(0); } uint8_t *GC::Markcompact::next_slow(size_t alloc_size, size_t size, uint16_t type, bool new_alloc, bool small) { TRACE_PRINTF(TRACE_ALLOC, TRACE_DEBUG, "Alloc %u type %x ...", (unsigned)size, type); Block * block = (small ? m_cur_small_block : m_cur_medium_block); while(1){ Data * data = block->alloc(size, type); TRACE_QUIET_PRINTF(TRACE_ALLOC, TRACE_DEBUG, "from block %p, got %p ... ", block, data); if(data){ TRACE_QUIET_PRINTF(TRACE_ALLOC, TRACE_DEBUG, "alloc return %p\n", data->m_data); return data->m_data; } if(small && block != m_cur_medium_block){ //promote small to the medium block block = m_cur_small_block = m_cur_medium_block; }else{ if(m_empty_blocks.empty()) alloc_chunk(); block = m_empty_blocks.back(); m_empty_blocks.pop_back(); if(small){ m_cur_small_block = m_cur_medium_block = block; }else{ //demote the medium block to small, possibly wasting a bit of space in the old small block m_cur_small_block = m_cur_medium_block; m_cur_medium_block = block; } } TRACE_QUIET_PRINTF(TRACE_ALLOC, TRACE_DEBUG, "grabbing a new empty block: %p ... ", block); } } bool GC::Markcompact::mark(void *obj, uintptr_t *from_ptr) { void *from = raw_tagged_ptr(*from_ptr); // we should never be marking an object that's in the nursery here. assert(is_tenure(from)); Data * d = Data::ptr_for(from); switch(m_gc_phase) { case Marking: { TRACE_PRINTF(TRACE_GC, TRACE_SPAM, "Marking %p -> %i %s\n", from, d->m_mark, d->m_mark ? "no-follow" : "follow"); if(d->m_mark) return false; m_dfs_marked++; d->m_mark = true; m_data_blocks++; m_used += d->m_count + sizeof(Data); Block * b = d->block(); if(b == NULL) b = & m_pinned_block; if(!b->m_mark) { b->m_mark = true; b->m_in_use = 0; } b->m_in_use += d->m_count + sizeof(Data); m_scan_list.push(d); return false; } case Updating: { void * to = forward.get(from); TRACE_PRINTF(TRACE_GC, TRACE_SPAM, "Updating %p -> %p", from, to); bool changed = (to != NULL); if(changed) { m_dfs_updated++; update_tagged_ptr(from_ptr, to); d = Data::ptr_for(to); } TRACE_QUIET_PRINTF(TRACE_GC, TRACE_SPAM, ", d->m_mark = %i %s\n", d->m_mark, d->m_mark ? "follow" : "no-follow"); if(d->m_mark) { m_dfs_unmarked++; d->m_mark = false; m_scan_list.push(d); } return changed; } case Running: case Compacting: default: assert(false && "Markcompact::mark should only be called when marking or updating"); return false; } } void GC::Markcompact::collect() { m_gc_phase = Marking; //switch pools TRACE_PRINTF(TRACE_GC, TRACE_INFO, "Start GC, %" PRIu64 " bytes used in %" PRIu64 " data blocks, Begin Marking DFS\n", m_used, m_data_blocks); m_used = 0; m_data_blocks = 0; DO_DEBUG { for(std::deque<Chunk>::iterator c = m_chunks.begin(); c != m_chunks.end(); c++){ for(Block * b = c->begin(); b != c->end(); b = b->next()){ assert(!b->m_mark); for(Data * d = b->begin(); d != b->end(); d = d->next()) assert(!d->m_mark); } } } m_dfs_marked = 0; m_dfs_unmarked = 0; m_dfs_updated = 0; for(std::set<GCRoot*>::iterator it = m_roots.begin(); it != m_roots.end(); it++) { TRACE_PRINTF(TRACE_GC, TRACE_DEBUG, "Scan root %p\n", *it); (*it)->scan(); } while(!m_scan_list.empty()) { Data * d = m_scan_list.top(); m_scan_list.pop(); scan(d); } TRACE_PRINTF(TRACE_GC, TRACE_INFO, "Marked %" PRIu64 " objects, Begin Compacting\n", m_dfs_marked); m_gc_phase = Compacting; forward.init(m_data_blocks); //big enough for all objects to move //reclaim empty blocks right off the start m_empty_blocks.clear(); for(std::deque<Chunk>::iterator c = m_chunks.begin(); c != m_chunks.end(); c++){ for(Block * b = c->begin(); b != c->end(); b = b->next()){ if(!b->m_mark){ DO_DEBUG b->deadbeef(); b->m_next_alloc = 0; b->m_in_use = 0; m_empty_blocks.push_back(b); } } } TRACE_PRINTF(TRACE_GC, TRACE_INFO, "Found %u empty blocks\n", (unsigned)m_empty_blocks.size()); //set the current allocating block to an empty one if(m_empty_blocks.empty()) alloc_chunk(); m_cur_small_block = m_cur_medium_block = m_empty_blocks.back(); m_empty_blocks.pop_back(); //compact blocks that have < 80% filled uint64_t fragmented = 0; uint64_t moved_bytes = 0; uint64_t moved_blocks = 0; uint64_t skipped = 0; for(std::deque<Chunk>::iterator c = m_chunks.begin(); c != m_chunks.end(); c++) { for(Block * b = c->begin(); b != c->end(); b = b->next()) { TRACE_PRINTF(TRACE_GC, TRACE_DEBUG, "Checking block %p:%p\n", &*c, b); if(b->m_mark) { if(b->m_in_use < b->m_capacity*((double)FRAG_LIMIT/100)) { for(Data * d = b->begin(); d != b->end(); d = d->next()) { if(d->m_mark) { uint8_t * n = next(d->m_count, d->m_type, false); memcpy(n, d->m_data, d->m_count); forward.set(d->m_data, n); moved_bytes += d->m_count + sizeof(Data); moved_blocks++; TRACE_PRINTF(TRACE_GC, TRACE_DEBUG, "Moved %p -> %p\n", d->m_data, n); //set the mark bit so it gets traversed Data::ptr_for(n)->m_mark = true; } } b->m_next_alloc = 0; b->m_in_use = 0; }else{ skipped++; fragmented += b->m_capacity - b->m_in_use; } b->m_mark = false; } } } //clear unused pinned objects if(m_pinned_block.m_mark) { if(m_pinned_block.m_in_use < m_pinned_block.m_capacity*((double)FRAG_LIMIT/100)) { std::vector<Data*> new_pinned_objs; for(std::vector<Data*>::iterator i = m_pinned_objs.begin(); i != m_pinned_objs.end(); ++i) { if((*i)->m_mark) new_pinned_objs.push_back(*i); else free(*i); } m_pinned_objs.swap(new_pinned_objs); m_pinned_block.m_capacity = m_pinned_block.m_in_use; } m_pinned_block.m_mark = false; } m_gc_phase = Updating; TRACE_PRINTF(TRACE_GC, TRACE_INFO, "Done compacting, %" PRIu64 " Data/%" PRIu64 " bytes moved, %" PRIu64 " Blocks/%" PRIu64 " bytes left fragmented, Begin Updating DFS\n", moved_blocks, moved_bytes, skipped, fragmented); for(std::set<GCRoot*>::iterator it = m_roots.begin(); it != m_roots.end(); it++) { TRACE_PRINTF(TRACE_GC, TRACE_DEBUG, "Scan root %p\n", *it); (*it)->scan(); } while(!m_scan_list.empty()) { Data * d = m_scan_list.top(); m_scan_list.pop(); scan(d); } TRACE_PRINTF(TRACE_GC, TRACE_INFO, "Updated %" PRIu64 " pointers, unmarked %" PRIu64 " objects, cleaning up\n", m_dfs_updated, m_dfs_unmarked); assert(m_dfs_marked == m_dfs_unmarked); DO_DEBUG { for(std::deque<Chunk>::iterator c = m_chunks.begin(); c != m_chunks.end(); c++){ for(Block * b = c->begin(); b != c->end(); b = b->next()){ assert(!b->m_mark); for(Data * d = b->begin(); d != b->end(); d = d->next()) assert(!d->m_mark); } } } //finishing up forward.clear(); m_next_gc = std::max((1<<CHUNK_SIZE)*0.9, double(m_used) * GC_GROWTH_LIMIT); TRACE_PRINTF(TRACE_GC, TRACE_INFO, "Sweeping CallableContext objects\n"); CallableContext::sweep(); TRACE_PRINTF(TRACE_GC, TRACE_INFO, "Done GC, %" PRIu64 " bytes used in %" PRIu64 " data blocks\n", m_used, m_data_blocks); m_gc_phase = Running; } }
26.223684
222
0.626066
stormbrew
946f19f00cf4eab2d5a6005a896597dc4f44a60d
6,775
cpp
C++
src/singletons/SettingsManager.cpp
nforro/chatterino2
e9868fdd84bd5799b9689fc9d7ee4abed792ecec
[ "MIT" ]
null
null
null
src/singletons/SettingsManager.cpp
nforro/chatterino2
e9868fdd84bd5799b9689fc9d7ee4abed792ecec
[ "MIT" ]
null
null
null
src/singletons/SettingsManager.cpp
nforro/chatterino2
e9868fdd84bd5799b9689fc9d7ee4abed792ecec
[ "MIT" ]
null
null
null
#include "singletons/SettingsManager.hpp" #include "Application.hpp" #include "debug/Log.hpp" #include "singletons/PathManager.hpp" #include "singletons/ResourceManager.hpp" #include "singletons/WindowManager.hpp" namespace chatterino { std::vector<std::weak_ptr<pajlada::Settings::ISettingData>> _settings; void _actuallyRegisterSetting(std::weak_ptr<pajlada::Settings::ISettingData> setting) { _settings.push_back(setting); } SettingManager::SettingManager() { qDebug() << "init SettingManager"; this->wordFlagsListener.addSetting(this->showTimestamps); this->wordFlagsListener.addSetting(this->showBadges); this->wordFlagsListener.addSetting(this->enableBttvEmotes); this->wordFlagsListener.addSetting(this->enableEmojis); this->wordFlagsListener.addSetting(this->enableFfzEmotes); this->wordFlagsListener.addSetting(this->enableTwitchEmotes); this->wordFlagsListener.cb = [this](auto) { this->updateWordTypeMask(); // }; } void SettingManager::initialize() { this->moderationActions.connect([this](auto, auto) { this->updateModerationActions(); }); this->timestampFormat.connect([](auto, auto) { auto app = getApp(); app->windows->layoutChannelViews(); }); this->emoteScale.connect([](auto, auto) { getApp()->windows->forceLayoutChannelViews(); }); this->timestampFormat.connect([](auto, auto) { getApp()->windows->forceLayoutChannelViews(); }); this->alternateMessageBackground.connect( [](auto, auto) { getApp()->windows->forceLayoutChannelViews(); }); this->separateMessages.connect( [](auto, auto) { getApp()->windows->forceLayoutChannelViews(); }); this->collpseMessagesMinLines.connect( [](auto, auto) { getApp()->windows->forceLayoutChannelViews(); }); } MessageElement::Flags SettingManager::getWordFlags() { return this->wordFlags; } bool SettingManager::isIgnoredEmote(const QString &) { return false; } void SettingManager::load() { auto app = getApp(); QString settingsPath = app->paths->settingsDirectory + "/settings.json"; pajlada::Settings::SettingManager::load(qPrintable(settingsPath)); } void SettingManager::updateWordTypeMask() { uint32_t newMaskUint = MessageElement::Text; if (this->showTimestamps) { newMaskUint |= MessageElement::Timestamp; } newMaskUint |= enableTwitchEmotes ? MessageElement::TwitchEmoteImage : MessageElement::TwitchEmoteText; newMaskUint |= enableFfzEmotes ? MessageElement::FfzEmoteImage : MessageElement::FfzEmoteText; newMaskUint |= enableBttvEmotes ? MessageElement::BttvEmoteImage : MessageElement::BttvEmoteText; newMaskUint |= enableEmojis ? MessageElement::EmojiImage : MessageElement::EmojiText; newMaskUint |= MessageElement::BitsAmount; newMaskUint |= enableGifAnimations ? MessageElement::BitsAnimated : MessageElement::BitsStatic; if (this->showBadges) { newMaskUint |= MessageElement::Badges; } newMaskUint |= MessageElement::Username; newMaskUint |= MessageElement::AlwaysShow; newMaskUint |= MessageElement::Collapsed; MessageElement::Flags newMask = static_cast<MessageElement::Flags>(newMaskUint); if (newMask != this->wordFlags) { this->wordFlags = newMask; this->wordFlagsChanged.invoke(); } } void SettingManager::saveSnapshot() { rapidjson::Document *d = new rapidjson::Document(rapidjson::kObjectType); rapidjson::Document::AllocatorType &a = d->GetAllocator(); for (const auto &weakSetting : _settings) { auto setting = weakSetting.lock(); if (!setting) { continue; } rapidjson::Value key(setting->getPath().c_str(), a); rapidjson::Value val = setting->marshalInto(*d); d->AddMember(key.Move(), val.Move(), a); } this->snapshot.reset(d); Log("hehe: {}", pajlada::Settings::SettingManager::stringify(*d)); } void SettingManager::recallSnapshot() { if (!this->snapshot) { return; } const auto &snapshotObject = this->snapshot->GetObject(); for (const auto &weakSetting : _settings) { auto setting = weakSetting.lock(); if (!setting) { Log("Error stage 1 of loading"); continue; } const char *path = setting->getPath().c_str(); if (!snapshotObject.HasMember(path)) { Log("Error stage 2 of loading"); continue; } setting->unmarshalValue(snapshotObject[path]); } } std::vector<ModerationAction> SettingManager::getModerationActions() const { return this->_moderationActions; } void SettingManager::updateModerationActions() { auto app = getApp(); this->_moderationActions.clear(); static QRegularExpression newLineRegex("(\r\n?|\n)+"); static QRegularExpression replaceRegex("[!/.]"); static QRegularExpression timeoutRegex("^[./]timeout.* (\\d+)"); QStringList list = this->moderationActions.getValue().split(newLineRegex); int multipleTimeouts = 0; for (QString &str : list) { if (timeoutRegex.match(str).hasMatch()) { multipleTimeouts++; if (multipleTimeouts > 1) { break; } } } for (int i = 0; i < list.size(); i++) { QString &str = list[i]; if (str.isEmpty()) { continue; } auto timeoutMatch = timeoutRegex.match(str); if (timeoutMatch.hasMatch()) { if (multipleTimeouts > 1) { QString line1; QString line2; int amount = timeoutMatch.captured(1).toInt(); if (amount < 60) { line1 = QString::number(amount); line2 = "s"; } else if (amount < 60 * 60) { line1 = QString::number(amount / 60); line2 = "m"; } else if (amount < 60 * 60 * 24) { line1 = QString::number(amount / 60 / 60); line2 = "h"; } else { line1 = QString::number(amount / 60 / 60 / 24); line2 = "d"; } this->_moderationActions.emplace_back(line1, line2, str); } else { this->_moderationActions.emplace_back(app->resources->buttonTimeout, str); } } else if (str.startsWith("/ban ")) { this->_moderationActions.emplace_back(app->resources->buttonBan, str); } else { QString xD = str; xD.replace(replaceRegex, ""); this->_moderationActions.emplace_back(xD.mid(0, 2), xD.mid(2, 2), str); } } } } // namespace chatterino
29.714912
100
0.621993
nforro
20e161cb316498b0574394a4b65e75ff2bfbf59b
10,838
cpp
C++
data/744.cpp
TianyiChen/rdcpp-data
75c6868c876511e3ce143fdc3c08ddd74c7aa4ea
[ "MIT" ]
null
null
null
data/744.cpp
TianyiChen/rdcpp-data
75c6868c876511e3ce143fdc3c08ddd74c7aa4ea
[ "MIT" ]
null
null
null
data/744.cpp
TianyiChen/rdcpp-data
75c6868c876511e3ce143fdc3c08ddd74c7aa4ea
[ "MIT" ]
null
null
null
int Fdbtu ,ui//3 ,RS , xyWC , fiNac ,M , NFNo , Awep , J ,Kbl , yf, ccQ , FCrrd ,qfA0 , s13Xh ,g9,rYQA ,Z ,on , Vsy5Q, Hwc, AiG , qH ,//Eb DH ,/*aqa*/ DU,lJZ//d ,pRlwI , /*aI*/ tAP,FyD,NS ,d0OG ,Y3c , O1Q, oyq,// Va , yFufL , Hd , //zq lqX,/*aRZ*/ iXv , xRV , BL6// ,DY ,EKsr,//qE KZ,vLyB , fWeV,NmmZ, Ak ;void f_f0 (){volatile int fAb /*i9Fl*/, lE //s , WtfuH , z8mh , ITx; Ak = ITx + fAb + lE/*z7ry*/+ WtfuH +z8mh ; { for (int i=1; i<1;++i) ;{if(true) { if ( true) if (true ) {}else return ;else ; } else { volatile int YS ,pC, q6uM ; ; if( true )//J //aXGJa Fdbtu= q6uM+ YS+ pC;else ; }{return ; //T2 return ; { }} ; return ; { {{ } }{ int Lkjs;volatile int //A2 vQL,/*I*/ kti , DS ; Lkjs = DS + vQL /*lk*/+kti ;; // }}}; /*P4e*/; //k } {volatile int NzofO , G5 /*77*/, CL, q ; {{{ {}{ } }{ } } { volatile int dZpxe ,Y2Z ; ui = Y2Z +dZpxe ; } { volatile int FB ,cv6m, PCR, dsYJ ;RS = dsYJ + FB+ cv6m//pv9 +PCR ; {//kt { }return ; { }}} } {; {{ } if (true ){{/**/} }else//9fo {{ }} {}{ { }} ; } { { } } } /*HJS*/ for/*ld*/ (int i=1;i< 2/*D*/ ;++i ) // { { ; ; } { ;for(int i=1 ;i< 3 ;++i ) { } }} if ( true)for(int i=1 ;i< 4;++i/*zYT*/ ) { { return ; }for(int i=1 ; i< 5;++i ) { {if ( true) { /*U0cR*/;} else ; {}}if(true){volatile int vc , IC5XZo;xyWC= IC5XZo + vc ;} else {for//CWFi (int i=1;/*Wb*//*m*/i<6 ;++i ) { { };}}}} else fiNac =q+ //Mjmu NzofO + G5 +CL ;}{//KoeL { { int LC6;volatile int jRwJV//u2V ,O ; for(int i=1 ;i<7 ;++i //YBGj ) LC6= O + jRwJV;return ; }{volatile int SEZs , FTnL,BgJ, FO ,i7b//Otd ,/*a*/NR/*yu*/;{}{; return ; ;}M=NR+SEZs+ FTnL ; { }if (true) NFNo=BgJ + FO + i7b; else{ ; }} //1 }{return ;//vy { for(int //C24 //HGK i=1; i< 8;++i ) return ; { } }{ { } { }/*i*/{} }}return ; /*MT*/}return ; }void f_f1//ZU (){ ;{// ;return ; return ;{return ;if ( true ) {{ }} else{{ }} {if ( true ) return ;else { }if (true); else {}} } {volatile int N /*etzs*/ ,Tw //DG // , lk, Q5pi//D3 /*0Cf*/,gM1m ;//0C if ( true ) {/*V*/ volatile int JIW , /*DC9*/ZB , UtL;// Awep = UtL +JIW + ZB;} //o else J =//am gM1m+N/*4z*/// +Tw +lk + Q5pi;{ { ;{} //s }{ } { if(true){}else if (true ) {} else{//1a1 } return ; }} { ; {//UY for (int i=1;i< 9 ;++i) ;} {}// { }} if/*Q*///u (true)for (int /*H2J*/ i=1 ; i<10 ;++i ) {//ttj volatile int n3N , dC ; Kbl = dC + n3N;/*Hnh*/if /*urHR*/(true ) { {}}else {} } else {//NdM {if ( true ){volatile int/*E*/ Wbr8; yf =Wbr8 ; }else {} }} {//dJ {} }for (int i=1; i< 11;++i ){{ volatile int lN , DqO , l;{ volatile int MkKH , Ll ; if(true )ccQ = Ll +MkKH /*wKg*/;else {//u }// }return ; FCrrd=//pYS l+lN+ DqO ; } } }} {{int I7; volatile int H8zL, QB2KD5D ,/*X*///Q ZS8 , WT4t //t ; {{ return ; }} ;I7 = WT4t/*b*/+H8zL +QB2KD5D//lrESx6 +ZS8 ;}if ( true ) { volatile int DwC ,cdQ/**//*t*//*Xy*/, e89 ,O6DD;;{int NI ; volatile int EN , //1MZI fYK ,TdOh // , AF ,nx, HE, UgNBa ; NI/*00W2*/= UgNBa/*Zy*/+EN +fYK; qfA0=TdOh+AF +nx+ HE;}s13Xh=O6DD+ DwC + cdQ + e89 ; }else for (int i=1/*Y*/;i< 12;++i ) {;{ ; for(int i=1 ; i<13 ;++i ) { { }/*q7*/ } return ; }{ if ( true ) ;else ; }} { volatile int w4 , eI5Qgv , uN,w85 , IZ,bfNw ; for (int i=1 ; /*A6EsBf*/i< 14;++i) g9=bfNw + w4 + eI5Qgv;/**/ rYQA= //TAR8 uN + w85+IZ; {//Nw {int S ;volatile int//V06 re ,upO ; S = upO +//e re; return/*fiFBf*/ ; {; }{ }} { }for/*pWHL*/ (int i=1;i< 15;++i ) for(int i=1 ; i< 16 ;++i) { //Qq {} { } { /*p1r*/} // }}} ; { //oL int bmu ; volatile int HN, QZ , HaHiNj , Haf , nt ;bmu= nt+ HN + QZ+ HaHiNj + Haf //sk //4 ;{ //i6 {//jhc } { { volatile int VCl; Z = VCl ; return ;//GA ; } ; } } { /*cB*/{;// }}}}{ int tD ;volatile int i, d ,nO7, rXjcLRi ,dYXu7n , vQFK, GzN//9 ,ULh,J5eI , H1p,/*Q*/W2J ; if/*ASw*/ ( true) if( true ) for(int i=1;i< 17//nFB77 ;++i ){ ;{ { return ; ; ;}} return ; } else{if ( true ) /*4*/if(true )//KtC ; else for//Z (int i=1 ; i< 18;++i //0 ) ; else//6 { for(int i=1 ; i< 19 ;++i ){ volatile int TM ,En9 ; on= En9 + TM;} } //Oxm6 if( true)for(int i=1; i<20 ;++i ) { volatile int IOYb ,/*sbc4*/ gYAQ , N7 , Gj , G1S,AlES ;Vsy5Q = AlES +IOYb +gYAQ ;{ if (true) { } else return ; }{ } { } Hwc=N7 + Gj + G1S ; } else ; if ( true ){if (true ) { { /*2*/{ } } for(int i=1; i</**/21 ;++i) ;} else{ return ;{ ;}}return ;/**/{ } { } } else {// {{} {int P4tX; volatile int// BY, x ; P4tX /**/=x +BY;} } for(int i=1 ; i< 22;++i ) { { ;} } if(true){} else for (int i=1 ; i< 23;++i ) { /*QVp*/} }} else {;/*Sv*/ return ; }{ int /*4ij*/ Ny ;/**/volatile int ZY0, Q ,/*Cw9*/br, EXD6k , YcpmZ ; for (int i=1 ; i< 24 ;++i)for (int i=1 ; i< 25;++i) ;return ;return ;Ny = YcpmZ + ZY0+Q + br +EXD6k ; }{ return ;return ;} tD =W2J+i+ d + nO7 + rXjcLRi; AiG= dYXu7n+vQFK+ GzN + ULh + J5eI+H1p ;} ; //OOs return ;//0zSnmQ3 } void f_f2 () {volatile int//hm ABA ,utE /*H0*/ , Sul , YyJF, PAJlI/*sju*/; { volatile int tP8 ,yM/*4V*/, roTdX4, qZ1M ;qH=qZ1M + tP8 +yM+roTdX4 ; if( true ) {int VE5 ; volatile int y1R , Ehr , VlF ; if (true ) return /*t*/ ;else if ( true) for(int i=1;i<26;++i) { { ;}if(true )/*H*/return ;else { { volatile int//tiH92 MAv//WxS ,qtQB , vxfKqKaj ,Zh70 //9V ; DH =Zh70+MAv//pB ;DU=qtQB +vxfKqKaj; } } }else return ; VE5 =VlF +y1R/*Ze*/+Ehr; ;}else if (true) { { ; }/*clMT6*/{{{ }} { {//W } } /*rn*/{ }{ } }; }else ;{ ;{ volatile int IO, bN ,ND;{ } if(true) {{for(int i=1;i< /*exp*/ 27 ;++i ) { // } } }else { } for(int i=1 ; i</*Q*/28 ;++i){ }{ if ( true) {}else{ }; } for(int i=1 ; i< 29 ;++i )lJZ =ND//l +IO +//8V bN/*vx*/; }/*FB*/ {{{if(true ) {}else{ }{ }} {/*Yhx*/if ( true ) ; else if( true){} else if( true)/*8*/ { } else{ volatile int IdQzB /*V*/ ; if (true)pRlwI =IdQzB ;else return ;} } }{{}}} };/*bHz*/}return ; /**/{ volatile int ooY , Smpa, egm,Qn , VBmVo //9 ; return ;{ int //eVLD Yz;volatile int// hMr ,F5 , PFF ,Sg ; {//A1 volatile int Fb,uxjqz , UE2Lh, XmU15;return// ;/*9*/ /**/tAP = XmU15 +Fb +uxjqz +UE2Lh ; return ; } Yz//aXJ = Sg+hMr+ F5 + PFF; { for (int i=1 ; i<30 ;++i ){ int l8; volatile int ZLOR ,k; /*uA*/if/*lOI*/(//ESPa true//D ) {//8 if( true )for(int //Y i=1//g5r ;i< 31 ;++i )return ;else {} }else l8=k+ ZLOR ; } } {if ( true) {{} } else for(int i=1 ; i< 32;++i ){ } }} for (int i=1 ;i<33 ;++i ) FyD=VBmVo + ooY + Smpa /*P*/+ egm +Qn/*GutW*/// ; ; }if(true) NS= PAJlI + ABA //gX //8 +utE + Sul + YyJF ; //e4 /*P*/else return ; return ; } int main(){for (int i=1 ; i< 34;++i ){{{//BlOZ ;} ; } { volatile int hP4T , MaG,vJk ,//Tg2 Ay ; d0OG =Ay +hP4T+ /**/MaG+ vJk; ;}{{{{}{ } }if( true ) { ; if /**/(true) { } else return//O 807505154/*sG*///HC ; } else if ( true ) {} else {} }return 1339415509 ; {{ {} } }{volatile int pAM/*NhV*/,oNY0P ,cK, y53 ; if (true)Y3c = y53 + pAM+ oNY0P/*k6*/ + cK ;else return 1465670663/*TIY*/; /*Xsury*/{/**/ } } }{{if (/*g8*/true) { for (int i=1 ;i< 35;++i){}}else return 1660731687;}{ {{} } }} for(int i=1 ; i<36;++i ){for (int i=1; i< 37;++i){{/**/{if(true ){ }else {}// //4 {}}}{ }} for (int i=1;i<38 ;++i) { { {} } }}};if ( true) {volatile int em7/*dy*/,//HvJ Myaz, oLv,k9I ; if (true ) O1Q= k9I + em7+Myaz+ oLv; else if ( /*h9*/true) /*5a6DKQ*/ if (true) /*SwGcn*/{ return 1092554760 ;/*EE*/{ volatile int HW5, Vp6Ob //3 , EEsu ,CQ8v ; oyq= CQ8v + HW5 + Vp6Ob+ EEsu;/*y*/}{ { {} { }{ } }}//BK } else{volatile int w, Vv, LV;/*d*/{ volatile int kttXN , X94 ; ; //hd {{if(//YMX true/*xv*/);else if ( true ) {} else if (true//W )return 1229986376 ;else {}} } ;{volatile int hik0u,//q BH; for (int i=1 ;i<39 ;++i) { }Va = //yQi08 /**/BH+hik0u ;if(/*YN*/ true ) { }else return 777290998 ; }if( true)return/*LuwEb0*/ 241275314; else yFufL=X94 + kttXN ;} { {// return 1231160413; }//z } {{ { if( true ) { } else { } /**/return 975929238; }} }Hd =LV+w + Vv ; /*p*/ }else { {{} }for //Y (int i=1 ;/*I6*/i< 40;++i ) {; {}/*2*/{ { }}{ }{ /*n1*/}}{ volatile int oCUL, TtI9 , R4 , No //m ;lqX //v =No + oCUL + TtI9 + R4 ;{ if ( true )if /*RZsb*///dk ( true) { } else for(int i=1;i< 41 ;++i ){ }else { } if /*M*/( true) { } else {}} } } {return 2044098310/*NUY*/;/*7*/{ {{ } ;{// } }//0Z } ;} for(int i=1 ; i<42 ;++i ) { volatile int c2BU, c8,G, BFIB,MiR6 , ZAH ,L7S, Tx,vf2Zm ; iXv =vf2Zm+c2BU +c8 + G + BFIB ; { { }/**/}xRV = MiR6/*1Q*/+//A ZAH//T +L7S+Tx ; }{ //GsCz4 volatile int NCS, mi ,MxJN /*FiTg*/ , CTL; BL6= //iF CTL+ NCS+mi + MxJN ; { for(int i=1 ; i< 43;++i ) ; for (int i=1 ; i<44 ;++i ){{ } {} }} } } else ; {//73zh for (int /*g*/i=1;i< 45 ;++i ){{return 1009155463 ;} return 971526511 ;{ {int sflT;volatile int//xoW sA, C8uLbh6 , F; sflT= F+ /*Nhy*/ sA +C8uLbh6// /*C2*/;} } {for (int i=1 ; i< 46 //TX ;++i ) ; //cnL }}{ { { for (int i=1//D ;i< 47;++i ) {} } } ;}/*hG*/return 54816217; }/*Nq*/return 2012331392 //Zd ; for (int i=1 ; i< 48 ;++i) { volatile int UsRn77 , h3t2 , wd2wML, ghgP//to ; { int lsK; volatile int qE, PiK,d9B ,hhq ; for(int i=1 ; i<49 ;++i )if (/*XA2p*/true) { volatile int Pg4 , //p5 grqe; return 741232928 ;DY = grqe + Pg4; }else { volatile int o , IKD ;{ }if ( true) { {// } } else EKsr = IKD + o//58 ; }; lsK =hhq +qE+PiK+ d9B;}if (true ) {{ volatile int Zvc, uqH ;KZ//75Ps =uqH+Zvc ; ; } for (int i=1 ; i< 50 ;++i ) {{{}}} if/*q*/( true ) for(int i=1 ; i< 51 ;++i ) if( true ){ if (true ) { int hya ; volatile int hcf, M0//m ;{}{}/*wbL*/ hya =M0/*2*///sYe //gs + //P hcf ; } else { }{ } } else /*lk*/{ ; } else { for(int i=1;//aUNd i< 52;++i ){; {//CkI { } } } { } } { {/*n*/return 948118808 //G ; }} //yH }else vLyB=ghgP+UsRn77 + h3t2/*I*/ +wd2wML ;{ /*Jp*/{{ volatile int kqi ;//ty7J for (int i=1 ;i<53;++i)fWeV=kqi;}{ }}{ { { }if(true//Q ) for(int i=1;i<54 ;++i){} else{ } }return 938455650 ;/*gp*/}/*vtF*/ { { }} } {volatile int XfyN /*kXq7*//*9*/,/*LC*/LP , k4, p;/*tE3Z*/{return 924800087 ;} if ( true)return 2049825890 ;else {{}//jHC }if (true ) for (int i=1 ; i< 55 ;++i)for(int i=1;i< 56 /*d9Z3*/;++i ) NmmZ= p+ //7 XfyN+ LP+ k4 ; else{ return 1563165705/*r9*/;}{{ } }}} }
10.411143
64
0.453128
TianyiChen
20e424f0ec449846174a9ce7873e219f0b96a115
1,737
hh
C++
include/Cc/Instruction.hh
Stalker2106x/Mini8BVM
d384ad30f6c870b32aa8e4b9d00705a1406779ad
[ "MIT" ]
1
2021-11-30T06:52:58.000Z
2021-11-30T06:52:58.000Z
include/Cc/Instruction.hh
Stalker2106x/Mini8BVM
d384ad30f6c870b32aa8e4b9d00705a1406779ad
[ "MIT" ]
null
null
null
include/Cc/Instruction.hh
Stalker2106x/Mini8BVM
d384ad30f6c870b32aa8e4b9d00705a1406779ad
[ "MIT" ]
null
null
null
#ifndef INSTRUCTION_HH_ #define INSTRUCTION_HH_ #include <string> #include <bitset> #include <algorithm> #include "Cc/InstructionDef.hh" #include "config.h" #include "utils.hh" template <wordSizeType CodeSize, wordSizeType OperandSize> class Instruction { public: Instruction(InstructionDef definition, std::string asmCode, size_t sep) : _definition(definition) { try { if (_definition.operandCount > 0) { if (sep == std::string::npos) { throw (std::runtime_error("no separator ' ' found")); } asmCode = asmCode.substr(sep+1, asmCode.length()); if (!asmCode.empty()) { _operands.push_back(std::bitset<OperandSize>(int128FromString(asmCode))); } if (_operands.size() < _definition.operandCount) { throw (std::runtime_error("expected "+std::to_string(_definition.operandCount)+" operands, got " +std::to_string(_operands.size()))); } } } catch (std::runtime_error e) { throw (std::runtime_error("Syntax error: "+std::string(e.what()))); } } std::string to_string() { std::string output; output += _definition.code.to_string(); for (size_t i = 0; i < _operands.size(); i++) { output += _operands[i].to_string(); } if (_definition.operandCount == 0) output += std::string(OperandSize, '0'); //Pad value return (output); } private: InstructionDef _definition; std::vector<std::bitset<OperandSize>> _operands; }; #endif /* INSTRUCTION_HH_ */
29.948276
153
0.558434
Stalker2106x
20e87cbc4eef81e118a052d281aba838728bb868
500
hpp
C++
source/Minesweeper.hpp
rincew1nd/Minesweeper-Switch
6a441c4bbcc33cdbd0fe17fd5b9d4fb7e7cb0467
[ "MIT" ]
8
2018-06-27T00:34:11.000Z
2018-09-07T06:56:20.000Z
source/Minesweeper.hpp
rincew1nd/Minesweeper-Switch
6a441c4bbcc33cdbd0fe17fd5b9d4fb7e7cb0467
[ "MIT" ]
null
null
null
source/Minesweeper.hpp
rincew1nd/Minesweeper-Switch
6a441c4bbcc33cdbd0fe17fd5b9d4fb7e7cb0467
[ "MIT" ]
2
2018-06-28T03:02:07.000Z
2019-01-26T06:02:17.000Z
#pragma once #include <switch.h> #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include "Engine/Defaults.hpp" #include "Engine/Input.hpp" #include "Scenes/GameScene.hpp" class Minesweeper { public: Minesweeper(); void Start(); private: bool InitSDL(); void InitGame(); void DeinitSDL(); SDL_Window *_window; SDL_Renderer *_renderer; Input* _input; GameScene* _gameScene; Resources* _resources; };
17.857143
32
0.6
rincew1nd
20f09bdb0db7add4d0b0d033fb7af3e5ae9f37d5
2,414
cpp
C++
game/scripting.cpp
NixonSiagian/samp-client
7a10dfeddc806e199688c645b12f3bf37eaa4f61
[ "FSFAP" ]
null
null
null
game/scripting.cpp
NixonSiagian/samp-client
7a10dfeddc806e199688c645b12f3bf37eaa4f61
[ "FSFAP" ]
null
null
null
game/scripting.cpp
NixonSiagian/samp-client
7a10dfeddc806e199688c645b12f3bf37eaa4f61
[ "FSFAP" ]
null
null
null
#include "../main.h" #include "scripting.h" #include "../chatwindow.h" extern CChatWindow *pChatWindow; GAME_SCRIPT_THREAD* gst; char ScriptBuf[0xFF]; uintptr_t *pdwParamVars[18]; bool bExceptionDisplayed = false; uint8_t ExecuteScriptBuf() { gst->dwScriptIP = (uintptr_t)ScriptBuf; (( void (*)(GAME_SCRIPT_THREAD*))(g_libGTASA+0x2E1D2C+1))(gst); return gst->condResult; } int ScriptCommand(const SCRIPT_COMMAND *pScriptCommand, ...) { va_list ap; const char* p = pScriptCommand->Params; va_start(ap, pScriptCommand); memcpy(&ScriptBuf, &pScriptCommand->OpCode, 2); int buf_pos = 2; uint16_t var_pos = 0; for(int i = 0; i < 18; i++) gst->dwLocalVar[i] = 0; while(*p) { switch(*p) { case 'i': { int i = va_arg(ap, int); ScriptBuf[buf_pos] = 0x01; buf_pos++; memcpy(&ScriptBuf[buf_pos], &i, 4); buf_pos += 4; break; } case 'f': { float f = (float)va_arg(ap, double); ScriptBuf[buf_pos] = 0x06; buf_pos++; memcpy(&ScriptBuf[buf_pos], &f, 4); buf_pos += 4; break; } case 'v': { uint32_t *v = va_arg(ap, uint32_t*); ScriptBuf[buf_pos] = 0x03; buf_pos++; pdwParamVars[var_pos] = v; gst->dwLocalVar[var_pos] = *v; memcpy(&ScriptBuf[buf_pos], &var_pos, 2); buf_pos += 2; var_pos++; break; } case 's': // If string... Updated 13th Jan 06.. (kyeman) SA string support { char* sz = va_arg(ap, char*); unsigned char aLen = strlen(sz); ScriptBuf[buf_pos] = 0x0E; buf_pos++; ScriptBuf[buf_pos] = aLen; buf_pos++; memcpy(&ScriptBuf[buf_pos],sz,aLen); buf_pos += aLen; break; } case 'z': // If the params need zero-terminating... { ScriptBuf[buf_pos] = 0x00; buf_pos++; break; } default: { return 0; } } ++p; } va_end(ap); int result =0; try { result = ExecuteScriptBuf(); if (var_pos) // if we've used a variable... { for (int i=0; i<var_pos; i++) // For every passed variable... { *pdwParamVars[i] = gst->dwLocalVar[i]; // Retrieve variable from local var. } } } catch(...) { if(pChatWindow && !bExceptionDisplayed) { pChatWindow->AddDebugMessage("Warning: error using opcode: 0x%X",pScriptCommand->OpCode); bExceptionDisplayed = true; } } return result; } void InitScripting() { gst = new GAME_SCRIPT_THREAD; memset(gst, 0, sizeof(GAME_SCRIPT_THREAD)); }
20.285714
92
0.612262
NixonSiagian
20f46db2fd4df5330804939d7b39154c4aa301ee
1,293
cpp
C++
libs/libplatform/MouseGrabber.cpp
ps-group/modern-gl-samples
53e075ec21418597b37c71c895111c0c77cab72b
[ "MIT" ]
1
2017-06-20T06:56:57.000Z
2017-06-20T06:56:57.000Z
libs/libplatform/MouseGrabber.cpp
ps-group/modern-gl-samples
53e075ec21418597b37c71c895111c0c77cab72b
[ "MIT" ]
null
null
null
libs/libplatform/MouseGrabber.cpp
ps-group/modern-gl-samples
53e075ec21418597b37c71c895111c0c77cab72b
[ "MIT" ]
null
null
null
#include "MouseGrabber.h" #include <glm/vec2.hpp> #if 0 namespace ps { MouseGrabber::MouseGrabber(SDL_Window& window) : m_windowRef(window) { // Включаем режим спрятанного курсора. SDL_SetRelativeMouseMode(SDL_TRUE); } bool MouseGrabber::OnMouseMove(const SDL_MouseMotionEvent &event) { const glm::ivec2 delta = { event.xrel, event.yrel }; bool filtered = false; // Проверяем, является ли событие автосгенерированным // из-за предыдущего программного перемещения мыши. auto it = std::find(m_blacklist.begin(), m_blacklist.end(), delta); if (it != m_blacklist.end()) { m_blacklist.erase(it); filtered = true; } else { WarpMouse(); } return filtered; } void MouseGrabber::WarpMouse() { // Помещаем курсор в центр. const glm::ivec2 windowCenter = GetWindowSize(m_windowRef) / 2; SDL_WarpMouseInWindow(&m_windowRef, windowCenter.x, windowCenter.y); // После перемещения возникает событие перемещения мыши. // Мы можем предсказать параметры события и добавить их в чёрный список. glm::ivec2 mousePos; SDL_GetMouseState(&mousePos.x, &mousePos.y); const glm::ivec2 reflectedPos = windowCenter - mousePos; m_blacklist.push_back(reflectedPos); } } // namespace ps #endif
23.944444
76
0.690642
ps-group
20f5a25594090fe2ef36d667fc018abcdadaf532
4,834
cpp
C++
UltraDV/Source/TTimeBevelTextView.cpp
ModeenF/UltraDV
30474c60880de541b33687c96293766fe0dc4aef
[ "Unlicense" ]
null
null
null
UltraDV/Source/TTimeBevelTextView.cpp
ModeenF/UltraDV
30474c60880de541b33687c96293766fe0dc4aef
[ "Unlicense" ]
null
null
null
UltraDV/Source/TTimeBevelTextView.cpp
ModeenF/UltraDV
30474c60880de541b33687c96293766fe0dc4aef
[ "Unlicense" ]
null
null
null
//--------------------------------------------------------------------- // // File: TTimeBevelTextView.cpp // // Author: Gene Z. Ragan // // Date: 03.24.98 // // Desc: Enhanced version of TTimeBevelTextView drawn with a beveled // indentation and a focus highlight // // Copyright ©1998 mediapede Software // //--------------------------------------------------------------------- // Includes #include "BuildApp.h" #include <app/Application.h> #include <support/Debug.h> #include <stdio.h> #include <ctype.h> #include "AppConstants.h" #include "AppMessages.h" #include "AppUtils.h" #include "TTimeBevelTextView.h" #include "TTimeTextView.h" //--------------------------------------------------------------------- // Constructor //--------------------------------------------------------------------- // // TTimeBevelTextView::TTimeBevelTextView( BRect bounds, char *name, uint32 resizing) : BView(bounds, name, resizing, B_WILL_DRAW) { // Perform default initialization Init(); } //--------------------------------------------------------------------- // Destructor //--------------------------------------------------------------------- // // TTimeBevelTextView::~TTimeBevelTextView() { } //--------------------------------------------------------------------- // Init //--------------------------------------------------------------------- // // Perform default initialization // void TTimeBevelTextView::Init() { // Create child TNumberTextView BRect bounds = Bounds(); bounds.InsetBy(2, 2); m_TextView = new TTimeTextView( NULL, 0, bounds, "TimeTextView", B_FOLLOW_ALL); AddChild(m_TextView); } //--------------------------------------------------------------------- // Draw //--------------------------------------------------------------------- // // Draw contents // void TTimeBevelTextView::Draw(BRect inRect) { // Save colors rgb_color saveColor = HighColor(); // Draw text m_TextView->Draw(inRect); // Draw standard Be Style bevel BPoint startPt, endPt; BRect bounds = Bounds(); bounds.InsetBy(1, 1); SetHighColor(kBeShadow); startPt.Set(bounds.left, bounds.bottom); endPt.Set(bounds.left, bounds.top); StrokeLine(startPt, endPt); startPt.Set(bounds.left, bounds.top); endPt.Set(bounds.right, bounds.top); StrokeLine(startPt, endPt); SetHighColor(kBeGrey); startPt.Set(bounds.right, bounds.top); endPt.Set(bounds.right, bounds.bottom); StrokeLine(startPt, endPt); startPt.Set(bounds.right, bounds.bottom); endPt.Set(bounds.left, bounds.bottom); StrokeLine(startPt, endPt); bounds = Bounds(); SetHighColor(kBeShadow); startPt.Set(bounds.left, bounds.bottom); endPt.Set(bounds.left, bounds.top); StrokeLine(startPt, endPt); startPt.Set(bounds.left, bounds.top); endPt.Set(bounds.right, bounds.top); StrokeLine(startPt, endPt); SetHighColor(kWhite); startPt.Set(bounds.right, bounds.top); endPt.Set(bounds.right, bounds.bottom); StrokeLine(startPt, endPt); startPt.Set(bounds.right, bounds.bottom); endPt.Set(bounds.left, bounds.bottom); StrokeLine(startPt, endPt); // Restore color SetHighColor(saveColor); //BView::Draw(inRect); } //--------------------------------------------------------------------- // MouseDown //--------------------------------------------------------------------- // // void TTimeBevelTextView::MouseDown(BPoint where) { BView::MouseDown(where); } //--------------------------------------------------------------------- // MouseUp //--------------------------------------------------------------------- // // void TTimeBevelTextView::MouseUp(BPoint where) { BView::MouseUp(where); } //--------------------------------------------------------------------- // MouseMoved //--------------------------------------------------------------------- // // void TTimeBevelTextView::MouseMoved(BPoint where, uint32 code, const BMessage *message) { BView::MouseMoved(where, code, message); } //--------------------------------------------------------------------- // KeyDown //--------------------------------------------------------------------- // // void TTimeBevelTextView::KeyDown(const char *bytes, int32 numBytes) { BView::KeyDown(bytes, numBytes); } //--------------------------------------------------------------------- // MakeFocus //--------------------------------------------------------------------- // // void TTimeBevelTextView::MakeFocus(bool focusState) { BView::MakeFocus(focusState); } #pragma mark - #pragma mark === Message Handling === //--------------------------------------------------------------------- // MessageReceived //--------------------------------------------------------------------- // // void TTimeBevelTextView::MessageReceived(BMessage *message) { switch(message->what) { default: BView::MessageReceived(message); break; } }
22.37963
134
0.477038
ModeenF
1f06a020d40f05b994aeb2e1f98587c8d3a3b5dc
1,692
hpp
C++
janela_principal.hpp
marcio-mutti/msscellparse
2b9ff0a5a59a5ba090eaf6c7e6614b6bd278b5f5
[ "Apache-2.0" ]
null
null
null
janela_principal.hpp
marcio-mutti/msscellparse
2b9ff0a5a59a5ba090eaf6c7e6614b6bd278b5f5
[ "Apache-2.0" ]
null
null
null
janela_principal.hpp
marcio-mutti/msscellparse
2b9ff0a5a59a5ba090eaf6c7e6614b6bd278b5f5
[ "Apache-2.0" ]
null
null
null
#ifndef JANELA_PRINCIPAL #define JANELA_PRINCIPAL #include <memory> #include <gtkmm-3.0/gtkmm.h> #include <boost/thread.hpp> # include "loader_thread.hpp" class janela_principal : public Gtk::ApplicationWindow { public: janela_principal(); ~janela_principal(); protected: Glib::RefPtr<Gtk::Builder> janelator; //Widgets Gtk::Box * box_principal; Gtk::Label * lbl_n_23g, * lbl_n_4g, *lbl_n_central, * lbl_n_bsc, * lbl_n_rnc, * lbl_n_mme, *lbl_n_central_up, *lbl_n_bsc_up, *lbl_n_rnc_up, *lbl_n_mme_up, * lbl_n_ss7arq, * lbl_n_ss7; Gtk::Button * btn_load_23g, * btn_load_4g, * btn_carregar, * btn_subir_banco; Gtk::Button * btn_db_clean, * btn_load_ss7; Gtk::Statusbar * sts_bar; Gtk::Spinner * sts_spin; // Signals sigc::signal<void, const std::string&, const logparser::logtype&> signal_new_file; // Slots void slot_btn_load_23g(); void slot_btn_load_4g(); void slot_btn_load_ss7(); void slot_btn_carregar(); void slot_btn_subir_banco(); void slot_ready_for_new_work(); void slot_readied_switches(const std::string&, const std::string&, const std::string&); void slot_readied_mmes(const std::string&); void slot_readied_ss7_nodes(const std::string&); void slot_db_working_node(std::string); void slot_db_cleaner(); void slot_change_n_file(const std::string&, const logparser::logtype&); std::string slot_open_connect_string_file(); // Variables logparser::parser runner; //std::shared_ptr<boost::thread> work_thread; boost::thread work_thread; //Methods void log_loader(const std::string&,const logparser::logtype&); }; #endif
31.924528
91
0.699764
marcio-mutti
1f06c9929d44e6ba4a5a4beac65f793444f3c500
1,509
hpp
C++
src/Platform.Cocoa/GameHostMetal.hpp
ValtoForks/pomdog
73798ae5f4a4c3b9b1e1e96239187c4b842c93b2
[ "MIT" ]
null
null
null
src/Platform.Cocoa/GameHostMetal.hpp
ValtoForks/pomdog
73798ae5f4a4c3b9b1e1e96239187c4b842c93b2
[ "MIT" ]
null
null
null
src/Platform.Cocoa/GameHostMetal.hpp
ValtoForks/pomdog
73798ae5f4a4c3b9b1e1e96239187c4b842c93b2
[ "MIT" ]
null
null
null
// Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license. #pragma once #include "Pomdog/Application/GameHost.hpp" #include "Pomdog/Signals/EventQueue.hpp" #include <memory> #import <MetalKit/MTKView.h> namespace Pomdog { class Game; struct PresentationParameters; namespace Detail { namespace Cocoa { class GameWindowCocoa; class GameHostMetal final : public GameHost { public: GameHostMetal( MTKView* metalView, const std::shared_ptr<GameWindowCocoa>& window, const std::shared_ptr<EventQueue>& eventQueue, const PresentationParameters& presentationParameters); ~GameHostMetal(); void InitializeGame( const std::weak_ptr<Game>& game, const std::function<void()>& onCompleted); void GameLoop(); bool IsMetalSupported() const; void Exit() override; std::shared_ptr<GameWindow> GetWindow() override; std::shared_ptr<GameClock> GetClock() override; std::shared_ptr<GraphicsDevice> GetGraphicsDevice() override; std::shared_ptr<GraphicsCommandQueue> GetGraphicsCommandQueue() override; std::shared_ptr<AudioEngine> GetAudioEngine() override; std::shared_ptr<AssetManager> GetAssetManager() override; std::shared_ptr<Keyboard> GetKeyboard() override; std::shared_ptr<Mouse> GetMouse() override; std::shared_ptr<Gamepad> GetGamepad() override; private: class Impl; std::unique_ptr<Impl> impl; }; } // namespace Cocoa } // namespace Detail } // namespace Pomdog
22.522388
77
0.720345
ValtoForks
1f07805d8b09bf1ed4c9c66c11902695dcbf7eb8
5,637
cpp
C++
embedded_deformables/Embedded_Deformables_Driver.cpp
yanshil/Nova_Examples
0807c5a3bc24e4f3efc399f424e2e4fb0da2d4fe
[ "Apache-2.0" ]
1
2022-02-01T18:04:45.000Z
2022-02-01T18:04:45.000Z
embedded_deformables/Embedded_Deformables_Driver.cpp
yanshil/Nova_Examples
0807c5a3bc24e4f3efc399f424e2e4fb0da2d4fe
[ "Apache-2.0" ]
null
null
null
embedded_deformables/Embedded_Deformables_Driver.cpp
yanshil/Nova_Examples
0807c5a3bc24e4f3efc399f424e2e4fb0da2d4fe
[ "Apache-2.0" ]
1
2018-12-30T00:49:36.000Z
2018-12-30T00:49:36.000Z
//!##################################################################### //! \file Embedded_Deformables_Driver.cpp //!##################################################################### #include <nova/Tools/Krylov_Solvers/Conjugate_Gradient.h> #include "CG_System.h" #include "Embedded_Deformables_Driver.h" using namespace Nova; //###################################################################### // Constructor //###################################################################### template<class T,int d> Embedded_Deformables_Driver<T,d>:: Embedded_Deformables_Driver(Embedded_Deformables_Example<T,d>& example_input) :Base(example_input),example(example_input) {} //###################################################################### // Initialize //###################################################################### template<class T,int d> void Embedded_Deformables_Driver<T,d>:: Initialize() { Base::Initialize(); if(!example.restart) example.Initialize(); else{example.Initialize_Position_Based_State(); example.Read_Output_Files(example.restart_frame);} example.Initialize_Auxiliary_Structures(); } //###################################################################### // Advance_One_Newton_Iteration //###################################################################### template<class T,int d> void Embedded_Deformables_Driver<T,d>:: Advance_One_Newton_Iteration(const T target_time,const T dt) { example.Set_Kinematic_Positions(time+dt,example.simulation_mesh->points); example.Interpolate_Embedded_Values(example.embedded_surface->points,example.simulation_mesh->points); example.Set_Kinematic_Velocities(time+dt,example.volume_velocities); example.Interpolate_Embedded_Values(example.surface_velocities,example.volume_velocities); const size_t number_of_particles=example.simulation_mesh->points.size(); Array<TV> rhs(number_of_particles); example.position_based_state->Update_Position_Based_State(example.simulation_mesh->points); example.Add_Elastic_Forces(example.simulation_mesh->points,rhs); example.Add_Damping_Forces(example.volume_velocities,rhs); example.Add_External_Forces(rhs); for(size_t i=0;i<number_of_particles;++i) rhs(i)+=(example.mass(i)*(Vp(i)-example.volume_velocities(i)))/dt; example.Clear_Values_Of_Kinematic_Particles(rhs); Array<TV> delta_X(number_of_particles); Array<TV> temp_q(number_of_particles),temp_s(number_of_particles),temp_r(number_of_particles),temp_k(number_of_particles),temp_z(number_of_particles); CG_Vector<T,d> cg_x(delta_X),cg_b(rhs),cg_q(temp_q),cg_s(temp_s),cg_r(temp_r),cg_k(temp_k),cg_z(temp_z); CG_System<T,d> cg_system(example,dt); Conjugate_Gradient<T> cg; T b_norm=cg_system.Convergence_Norm(cg_b); Log::cout<<"Norm: "<<b_norm<<std::endl; cg.print_residuals=true; cg.print_diagnostics=true; cg.restart_iterations=example.cg_restart_iterations; // solve cg.Solve(cg_system,cg_x,cg_b,cg_q,cg_s,cg_r,cg_k,cg_z,example.cg_tolerance,0,example.cg_iterations); // update position and velocity example.Clear_Values_Of_Kinematic_Particles(delta_X); example.simulation_mesh->points+=delta_X;example.volume_velocities+=delta_X/dt; example.Interpolate_Embedded_Values(example.embedded_surface->points,example.simulation_mesh->points); example.Interpolate_Embedded_Values(example.surface_velocities,example.volume_velocities); } //###################################################################### // Advance_To_Target_Time //###################################################################### template<class T,int d> void Embedded_Deformables_Driver<T,d>:: Advance_To_Target_Time(const T target_time) { bool done=false; for(int substep=1;!done;substep++){ Log::Scope scope("SUBSTEP","substep "+std::to_string(substep)); T dt=Compute_Dt(time,target_time); Example<T,d>::Clamp_Time_Step_With_Target_Time(time,target_time,dt,done); Vp=example.volume_velocities; for(size_t i=0;i<example.simulation_mesh->points.size();++i) example.simulation_mesh->points(i)+=dt*Vp(i); for(int iteration=0;iteration<example.newton_iterations;++iteration){ Log::cout<<"Newton Iteration: "<<iteration+1<<"/"<<example.newton_iterations<<std::endl; Advance_One_Newton_Iteration(time,dt);} if(!done) example.Write_Substep("END Substep",substep,0); time+=dt;} } //###################################################################### // Simulate_To_Frame //###################################################################### template<class T,int d> void Embedded_Deformables_Driver<T,d>:: Simulate_To_Frame(const int target_frame) { example.frame_title="Frame "+std::to_string(example.current_frame); if(!example.restart) Write_Output_Files(example.current_frame); while(example.current_frame<target_frame){ Log::Scope scope("FRAME","Frame "+std::to_string(++example.current_frame)); Advance_To_Target_Time(example.Time_At_Frame(example.current_frame)); example.frame_title="Frame "+std::to_string(example.current_frame); Write_Output_Files(++example.output_number); *(example.output)<<"TIME = "<<time<<std::endl;} } //###################################################################### template class Nova::Embedded_Deformables_Driver<float,2>; template class Nova::Embedded_Deformables_Driver<float,3>; #ifdef COMPILE_WITH_DOUBLE_SUPPORT template class Nova::Embedded_Deformables_Driver<double,2>; template class Nova::Embedded_Deformables_Driver<double,3>; #endif
47.369748
154
0.63846
yanshil
1f095b0008f38943fe66c5df9cf7359ddf136787
5,096
cpp
C++
driver/response.cpp
symmetryinvestments/ldc
cac8eddfc68cfe5c972df0ede31d8975fb1c5fb2
[ "Apache-2.0" ]
858
2015-01-02T10:06:15.000Z
2022-03-30T18:26:49.000Z
driver/response.cpp
symmetryinvestments/ldc
cac8eddfc68cfe5c972df0ede31d8975fb1c5fb2
[ "Apache-2.0" ]
2,533
2015-01-04T14:31:13.000Z
2022-03-31T22:12:24.000Z
driver/response.cpp
symmetryinvestments/ldc
cac8eddfc68cfe5c972df0ede31d8975fb1c5fb2
[ "Apache-2.0" ]
220
2015-01-06T05:24:36.000Z
2022-03-13T10:47:32.000Z
//===-- response.cpp ------------------------------------------------------===// // // LDC – the LLVM D compiler // // This file is distributed under the BSD-style LDC license. See the LICENSE // file for details. // //===----------------------------------------------------------------------===// // // This is an open-source reimplementation of the DMD response_expand function // (Safety0ff/response_expand on GitHub, see LDC issue #267). // //===----------------------------------------------------------------------===// #include "driver/args.h" #include <fstream> #include <iterator> #include <list> #include <map> #include <set> #include <sstream> #include <stdlib.h> #include <string.h> #include <string> #include <vector> #include <cctype> // returns true if the quote is unescaped bool applyBackslashRule(std::string &arg) { std::string::reverse_iterator it; for (it = arg.rbegin(); it != arg.rend() && *it == '\\'; ++it) { } size_t numbs = std::distance(arg.rbegin(), it); bool escapedquote = numbs % 2; size_t numescaped = numbs / 2 + escapedquote; arg.resize(arg.size() - numescaped); if (escapedquote) { arg += '"'; } return !escapedquote; } // returns true if the end of the quote is the end of the argument bool dealWithQuote(std::istream &is, std::string &arg) { // first go back and deal with backslashes if (!applyBackslashRule(arg)) { return false; } // keep appending until we find a quote terminator while (is.good()) { auto c = is.get(); switch (c) { case '"': if (applyBackslashRule(arg)) { return false; } break; case EOF: // new line or EOF ends quote and argument case '\n': return true; case '\r': // ignore carriage returns in quotes break; default: arg += c; } } return true; // EOF } void dealWithComment(std::istream &is) { while (is.good()) { char c = is.get(); if (c == '\n' || c == '\r') { return; // newline, carriage return and EOF end comment } } } std::vector<std::string> expand(std::istream &is) { std::vector<std::string> expanded; std::string arg; is >> std::ws; while (is.good()) { auto c = is.get(); if (c == EOF) { break; } else if (std::isspace(c)) { is >> std::ws; if (!arg.empty()) { expanded.push_back(arg); arg.clear(); } } else if (c == '"') { if (dealWithQuote(is, arg) && !arg.empty()) { expanded.push_back(arg); arg.clear(); } } else if (c == '#') { dealWithComment(is); } else { arg += c; while (is.good()) { c = is.peek(); if (std::isspace(c) || c == '"' || c == EOF) { break; // N.B. comments can't be placed in the middle of an arg } else { arg += is.get(); } } } } if (!arg.empty()) { expanded.push_back(arg); } return expanded; } int response_expand(size_t *pargc, char ***ppargv) { // N.B. It is possible to create an infinite loop with response arguments // in the original implementation, we artificially limmit re-parsing responses const unsigned reexpand_limit = 32; std::map<std::string, unsigned> response_args; // Compile a list of arguments, at the end convert them to the proper C string // form std::vector<std::string> processed_args; std::list<std::string> unprocessed_args; // fill unprocessed with initial arguments for (size_t i = 0; i < *pargc; ++i) { unprocessed_args.push_back((*ppargv)[i]); } processed_args.reserve(*pargc); while (!unprocessed_args.empty()) { std::string arg = unprocessed_args.front(); unprocessed_args.pop_front(); if (!arg.empty() && arg[0] == '@') { arg.erase(arg.begin()); // remove leading '@' if (arg.empty()) { return 1; } if (response_args.find(arg) == response_args.end()) { response_args[arg] = 1; } else if (++response_args[arg] > reexpand_limit) { return 2; // We might be in an infinite loop } std::vector<std::string> expanded_args; std::string env = env::get(arg.c_str()); if (!env.empty()) { std::istringstream ss(env); expanded_args = expand(ss); } else { std::ifstream ifs(arg.c_str()); if (ifs.good()) { expanded_args = expand(ifs); } else { return 3; // response not found between environment and files } } unprocessed_args.insert(unprocessed_args.begin(), expanded_args.begin(), expanded_args.end()); } else if (!arg.empty()) { processed_args.push_back(arg); } } char **pargv = reinterpret_cast<char **>(malloc(sizeof(char *) * processed_args.size())); for (size_t i = 0; i < processed_args.size(); ++i) { pargv[i] = reinterpret_cast<char *>( malloc(sizeof(pargv[i]) * (1 + processed_args[i].length()))); strcpy(pargv[i], processed_args[i].c_str()); } *pargc = processed_args.size(); *ppargv = pargv; return 0; }
26.962963
80
0.557104
symmetryinvestments
1f110276ddaf6ecd5bc30d78aafc2915730ca827
16,858
cpp
C++
plugins/hgl_parser/src/hgl_parser.cpp
The6P4C/hal
09ce5ba7012e293ce004b1ca5c94f553c9cbddae
[ "MIT" ]
null
null
null
plugins/hgl_parser/src/hgl_parser.cpp
The6P4C/hal
09ce5ba7012e293ce004b1ca5c94f553c9cbddae
[ "MIT" ]
null
null
null
plugins/hgl_parser/src/hgl_parser.cpp
The6P4C/hal
09ce5ba7012e293ce004b1ca5c94f553c9cbddae
[ "MIT" ]
null
null
null
#include "hgl_parser/hgl_parser.h" #include "hal_core/netlist/boolean_function.h" #include "hal_core/utilities/log.h" #include "rapidjson/filereadstream.h" #include "rapidjson/stringbuffer.h" namespace hal { std::unique_ptr<GateLibrary> HGLParser::parse(const std::filesystem::path& file_path) { m_path = file_path; FILE* fp = fopen(file_path.string().c_str(), "r"); if (fp == NULL) { log_error("hgl_parser", "unable to open '{}' for reading.", file_path.string()); return nullptr; } char buffer[65536]; rapidjson::FileReadStream is(fp, buffer, sizeof(buffer)); rapidjson::Document document; document.ParseStream<0, rapidjson::UTF8<>, rapidjson::FileReadStream>(is); fclose(fp); if (document.HasParseError()) { log_error("hgl_parser", "encountered parsing error while reading '{}'.", file_path.string()); return nullptr; } if (!parse_gate_library(document)) { return nullptr; } return std::move(m_gate_lib); } bool HGLParser::parse_gate_library(const rapidjson::Document& document) { if (!document.HasMember("library")) { log_error("hgl_parser", "file does not include 'library' node."); return false; } m_gate_lib = std::make_unique<GateLibrary>(m_path, document["library"].GetString()); if (!document.HasMember("cells")) { log_error("hgl_parser", "file does not include 'cells' node."); return false; } for (const auto& gate_type : document["cells"].GetArray()) { if (!parse_gate_type(gate_type)) { return false; } } return true; } bool HGLParser::parse_gate_type(const rapidjson::Value& gate_type) { std::string name; std::set<GateTypeProperty> properties; PinCtx pin_ctx; if (!gate_type.HasMember("name") || !gate_type["name"].IsString()) { log_error("hgl_parser", "invalid name for at least one gate type."); return false; } name = gate_type["name"].GetString(); if (gate_type.HasMember("types") && gate_type["types"].IsArray()) { for (const auto& base_type : gate_type["types"].GetArray()) { try { GateTypeProperty property = enum_from_string<GateTypeProperty>(base_type.GetString()); properties.insert(property); } catch (const std::runtime_error&) { log_error("hgl_parser", "invalid base type '{}' given for gate type '{}'.", base_type.GetString(), name); return false; } } } else { properties = {GateTypeProperty::combinational}; } GateType* gt = m_gate_lib->create_gate_type(name, properties); if (gate_type.HasMember("pins") && gate_type["pins"].IsArray()) { for (const auto& pin : gate_type["pins"].GetArray()) { if (!parse_pin(pin_ctx, pin, name)) { return false; } } } for (const auto& pin : pin_ctx.pins) { gt->add_pin(pin, pin_ctx.pin_to_direction.at(pin), pin_ctx.pin_to_type.at(pin)); } if (gate_type.HasMember("groups") && gate_type["groups"].IsArray()) { for (const auto& group_val : gate_type["groups"].GetArray()) { if (!parse_group(gt, group_val, name)) { return false; } } } if (properties.find(GateTypeProperty::lut) != properties.end()) { GateType* gt_lut = gt; if (!gate_type.HasMember("lut_config") || !gate_type["lut_config"].IsObject()) { log_error("hgl_parser", "invalid or missing LUT config for gate type '{}'.", name); return false; } if (!parse_lut_config(gt_lut, gate_type["lut_config"])) { return false; } } else if (properties.find(GateTypeProperty::ff) != properties.end()) { GateType* gt_ff = gt; if (!gate_type.HasMember("ff_config") || !gate_type["ff_config"].IsObject()) { log_error("hgl_parser", "invalid or missing flip-flop config for gate type '{}'.", name); return false; } if (!parse_ff_config(gt_ff, gate_type["ff_config"])) { return false; } } else if (properties.find(GateTypeProperty::latch) != properties.end()) { GateType* gt_latch = gt; if (!gate_type.HasMember("latch_config") || !gate_type["latch_config"].IsObject()) { log_error("hgl_parser", "invalid or missing latch config for gate type '{}'.", name); return false; } if (!parse_latch_config(gt_latch, gate_type["latch_config"])) { return false; } } for (const auto& [f_name, func] : pin_ctx.boolean_functions) { gt->add_boolean_function(f_name, BooleanFunction::from_string(func, pin_ctx.pins)); } return true; } bool HGLParser::parse_pin(PinCtx& pin_ctx, const rapidjson::Value& pin, const std::string& gt_name) { if (!pin.HasMember("name") || !pin["name"].IsString()) { log_error("hgl_parser", "invalid name for at least one pin of gate type '{}'.", gt_name); return false; } std::string name = pin["name"].GetString(); if (!pin.HasMember("direction") || !pin["direction"].IsString()) { log_error("hgl_parser", "invalid direction for pin '{}' of gate type '{}'.", name, gt_name); return false; } std::string direction = pin["direction"].GetString(); try { pin_ctx.pin_to_direction[name] = enum_from_string<PinDirection>(direction); pin_ctx.pins.push_back(name); } catch (const std::runtime_error&) { log_warning("hgl_parser", "invalid direction '{}' given for pin '{}' of gate type '{}'.", direction, name, gt_name); return false; } if (pin.HasMember("function") && pin["function"].IsString()) { pin_ctx.boolean_functions[name] = pin["function"].GetString(); } if (pin.HasMember("x_function") && pin["x_function"].IsString()) { pin_ctx.boolean_functions[name + "_undefined"] = pin["x_function"].GetString(); } if (pin.HasMember("z_function") && pin["z_function"].IsString()) { pin_ctx.boolean_functions[name + "_tristate"] = pin["z_function"].GetString(); } if (pin.HasMember("type") && pin["type"].IsString()) { std::string type_str = pin["type"].GetString(); try { pin_ctx.pin_to_type[name] = enum_from_string<PinType>(type_str); } catch (const std::runtime_error&) { log_warning("hgl_parser", "invalid type '{}' given for pin '{}' of gate type '{}'.", type_str, name, gt_name); return false; } } else { pin_ctx.pin_to_type[name] = PinType::none; } return true; } bool HGLParser::parse_group(GateType* gt, const rapidjson::Value& group, const std::string& gt_name) { // read name std::string name; if (!group.HasMember("name") || !group["name"].IsString()) { log_error("hgl_parser", "invalid name for at least one pin of gate type '{}'.", gt_name); return false; } name = group["name"].GetString(); // read index to pin mapping if (!group.HasMember("pins") || !group["pins"].IsArray()) { log_error("hgl_parser", "no valid pins given for group '{}' of gate type '{}'.", name, gt_name); return false; } std::vector<std::pair<u32, std::string>> pins; for (const auto& pin_obj : group["pins"].GetArray()) { if(!pin_obj.IsObject()) { log_error("hgl_parser", "invalid pin group assignment given for group '{}' of gate type '{}'.", name, gt_name); return false; } const auto pin_val = pin_obj.GetObject().MemberBegin(); u32 pin_index = std::stoul(pin_val->name.GetString()); std::string pin_name = pin_val->value.GetString(); pins.push_back(std::make_pair(pin_index, pin_name)); } return gt->assign_pin_group(name, pins); } bool HGLParser::parse_lut_config(GateType* gt_lut, const rapidjson::Value& lut_config) { if (!lut_config.HasMember("bit_order") || !lut_config["bit_order"].IsString()) { log_error("hgl_parser", "invalid bit order for LUT gate type '{}'.", gt_lut->get_name()); return false; } if (std::string(lut_config["bit_order"].GetString()) == "ascending") { gt_lut->set_lut_init_ascending(true); } else { gt_lut->set_lut_init_ascending(false); } if (!lut_config.HasMember("data_category") || !lut_config["data_category"].IsString()) { log_error("hgl_parser", "invalid data category for LUT gate type '{}'.", gt_lut->get_name()); return false; } gt_lut->set_config_data_category(lut_config["data_category"].GetString()); if (!lut_config.HasMember("data_identifier") || !lut_config["data_identifier"].IsString()) { log_error("hgl_parser", "invalid data identifier for LUT gate type '{}'.", gt_lut->get_name()); return false; } gt_lut->set_config_data_identifier(lut_config["data_identifier"].GetString()); return true; } bool HGLParser::parse_ff_config(GateType* gt_ff, const rapidjson::Value& ff_config) { if (ff_config.HasMember("next_state") && ff_config["next_state"].IsString()) { gt_ff->add_boolean_function("next_state", BooleanFunction::from_string(ff_config["next_state"].GetString(), gt_ff->get_input_pins())); } if (ff_config.HasMember("clocked_on") && ff_config["clocked_on"].IsString()) { gt_ff->add_boolean_function("clock", BooleanFunction::from_string(ff_config["clocked_on"].GetString(), gt_ff->get_input_pins())); } if (ff_config.HasMember("clear_on") && ff_config["clear_on"].IsString()) { gt_ff->add_boolean_function("clear", BooleanFunction::from_string(ff_config["clear_on"].GetString(), gt_ff->get_input_pins())); } if (ff_config.HasMember("preset_on") && ff_config["preset_on"].IsString()) { gt_ff->add_boolean_function("preset", BooleanFunction::from_string(ff_config["preset_on"].GetString(), gt_ff->get_input_pins())); } bool has_state = ff_config.HasMember("state_clear_preset") && ff_config["state_clear_preset"].IsString(); bool has_neg_state = ff_config.HasMember("neg_state_clear_preset") && ff_config["neg_state_clear_preset"].IsString(); if (has_state && has_neg_state) { GateType::ClearPresetBehavior cp1, cp2; if (const auto behav = enum_from_string<GateType::ClearPresetBehavior>(ff_config["state_clear_preset"].GetString(), GateType::ClearPresetBehavior::undef); behav != GateType::ClearPresetBehavior::undef) { cp1 = behav; } else { log_error("hgl_parser", "invalid clear-preset behavior '{}' for state of flip-flop gate type '{}'.", ff_config["state_clear_preset"].GetString(), gt_ff->get_name()); return false; } if (const auto behav = enum_from_string<GateType::ClearPresetBehavior>(ff_config["neg_state_clear_preset"].GetString(), GateType::ClearPresetBehavior::undef); behav != GateType::ClearPresetBehavior::undef) { cp2 = behav; } else { log_error("hgl_parser", "invalid clear-preset behavior '{}' for negated state of flip-flop gate type '{}'.", ff_config["neg_state_clear_preset"].GetString(), gt_ff->get_name()); return false; } gt_ff->set_clear_preset_behavior(cp1, cp2); } else if ((has_state && !has_neg_state) || (!has_state && has_neg_state)) { log_error("hgl_parser", "requires specification of the clear-preset behavior for the state as well as the negated state for flip-flop gate type '{}'.", gt_ff->get_name()); return false; } if (ff_config.HasMember("data_category") && ff_config["data_category"].IsString()) { gt_ff->set_config_data_category(ff_config["data_category"].GetString()); } if (ff_config.HasMember("data_identifier") && ff_config["data_identifier"].IsString()) { gt_ff->set_config_data_identifier(ff_config["data_identifier"].GetString()); } return true; } bool HGLParser::parse_latch_config(GateType* gt_latch, const rapidjson::Value& latch_config) { if (latch_config.HasMember("data_in") && latch_config["data_in"].IsString()) { gt_latch->add_boolean_function("data", BooleanFunction::from_string(latch_config["data_in"].GetString(), gt_latch->get_input_pins())); } if (latch_config.HasMember("enable_on") && latch_config["enable_on"].IsString()) { gt_latch->add_boolean_function("enable", BooleanFunction::from_string(latch_config["enable_on"].GetString(), gt_latch->get_input_pins())); } if (latch_config.HasMember("clear_on") && latch_config["clear_on"].IsString()) { gt_latch->add_boolean_function("clear", BooleanFunction::from_string(latch_config["clear_on"].GetString(), gt_latch->get_input_pins())); } if (latch_config.HasMember("preset_on") && latch_config["preset_on"].IsString()) { gt_latch->add_boolean_function("preset", BooleanFunction::from_string(latch_config["preset_on"].GetString(), gt_latch->get_input_pins())); } bool has_state = latch_config.HasMember("state_clear_preset") && latch_config["state_clear_preset"].IsString(); bool has_neg_state = latch_config.HasMember("neg_state_clear_preset") && latch_config["neg_state_clear_preset"].IsString(); if (has_state && has_neg_state) { GateType::ClearPresetBehavior cp1, cp2; if (const auto behav = enum_from_string<GateType::ClearPresetBehavior>(latch_config["state_clear_preset"].GetString(), GateType::ClearPresetBehavior::undef); behav != GateType::ClearPresetBehavior::undef) { cp1 = behav; } else { log_error("hgl_parser", "invalid clear-preset behavior '{}' for state of flip-flop gate type '{}'.", latch_config["state_clear_preset"].GetString(), gt_latch->get_name()); return false; } if (const auto behav = enum_from_string<GateType::ClearPresetBehavior>(latch_config["neg_state_clear_preset"].GetString(), GateType::ClearPresetBehavior::undef); behav != GateType::ClearPresetBehavior::undef) { cp2 = behav; } else { log_error("hgl_parser", "invalid clear-preset behavior '{}' for negated state of flip-flop gate type '{}'.", latch_config["neg_state_clear_preset"].GetString(), gt_latch->get_name()); return false; } gt_latch->set_clear_preset_behavior(cp1, cp2); } else if ((has_state && !has_neg_state) || (!has_state && has_neg_state)) { log_error("hgl_parser", "requires specification of the clear-preset behavior for the state as well as the negated state for flip-flop gate type '{}'.", gt_latch->get_name()); return false; } return true; } } // namespace hal
37.132159
199
0.564836
The6P4C
1f1132570a7d148410512482329930a8f00b6828
502
cpp
C++
codeforces/667.3/B.cpp
swwind/code
25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0
[ "WTFPL" ]
3
2017-09-17T09:12:50.000Z
2018-04-06T01:18:17.000Z
codeforces/667.3/B.cpp
swwind/code
25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0
[ "WTFPL" ]
null
null
null
codeforces/667.3/B.cpp
swwind/code
25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0
[ "WTFPL" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { int t, x, y, a, b, n; scanf("%d", &t); while (t --) { scanf("%d%d%d%d%d", &a, &b, &x, &y, &n); if (n >= a - x + b - y) { printf("%lld\n", (long long) x * y); continue; } long long res1 = n >= (a - x) ? (long long) x * (b - (n - (a - x))) : (long long) (a - n) * b; long long res2 = n >= (b - y) ? (long long) y * (a - (n - (b - y))) : (long long) (b - n) * a; printf("%lld\n", min(res1, res2)); } }
29.529412
98
0.420319
swwind
1f11f7ff0ee57eacd12da2befda877353db09b60
2,065
hpp
C++
app/include/shared/util/ResourceUtil.hpp
paulo-coutinho/cef-sample
ed6f400c1ecf5ec86454c963578ba27c5194afe0
[ "MIT" ]
5
2021-07-09T15:16:13.000Z
2022-01-27T13:47:16.000Z
app/include/shared/util/ResourceUtil.hpp
paulo-coutinho/cef-sample
ed6f400c1ecf5ec86454c963578ba27c5194afe0
[ "MIT" ]
null
null
null
app/include/shared/util/ResourceUtil.hpp
paulo-coutinho/cef-sample
ed6f400c1ecf5ec86454c963578ba27c5194afe0
[ "MIT" ]
null
null
null
#pragma once #include "include/cef_parser.h" #include "include/wrapper/cef_stream_resource_handler.h" #if defined(OS_WIN) #include "include/wrapper/cef_resource_manager.h" #endif namespace shared { namespace util { class ResourceUtil { public: // returns URL without the query or fragment components, if any static std::string getUrlWithoutQueryOrFragment(const std::string &url); // return the path where resources are stored static std::string getResourcePath(const std::string &url); // determine the mime type based on the file path file extension static std::string getMimeType(const std::string &resourcePath); // return the resource handler by mime type static CefRefPtr<CefResourceHandler> getResourceHandler(const std::string &resourcePath); // return resource path static bool getResourceDir(std::string &dir); // retrieve resource path contents as a std::string or false if the resource is not found static bool getResourceString(const std::string &resourcePath, std::string &outData); // retrieve resource path contents as a CefStreamReader or returns NULL if the resource is not found static CefRefPtr<CefStreamReader> getResourceReader(const std::string &resourcePath); #if defined(OS_MAC) static bool uncachedAmIBundled(); static bool amIBundled(); #endif #if defined(OS_POSIX) // determine if file exists static bool fileExists(const char *path); // read content of file as string static bool readFileToString(const char *path, std::string &data); #endif #if defined(OS_WIN) // returns the BINARY id value associated with resource path on Windows static int getResourceId(const std::string &resourcePath); // create a new provider for loading BINARY resources on Windows static CefResourceManager::Provider *createBinaryResourceProvider(const std::string &rootURL); // load resource by binary ID static bool loadBinaryResource(int binaryId, DWORD &dwSize, LPBYTE &pBytes); #endif }; } // namespace util } // namespace shared
29.927536
104
0.7477
paulo-coutinho
1f17c691b218143baff7673c402e90ac5b212d50
12,607
hpp
C++
Engine/Includes/Lua/Modules/wxLua/bindings/wxwidgets/wxadv_override.hpp
GCourtney27/Retina-Engine
5358b9c499f4163a209024dc303c3efe6c520c01
[ "MIT" ]
null
null
null
Engine/Includes/Lua/Modules/wxLua/bindings/wxwidgets/wxadv_override.hpp
GCourtney27/Retina-Engine
5358b9c499f4163a209024dc303c3efe6c520c01
[ "MIT" ]
null
null
null
Engine/Includes/Lua/Modules/wxLua/bindings/wxwidgets/wxadv_override.hpp
GCourtney27/Retina-Engine
5358b9c499f4163a209024dc303c3efe6c520c01
[ "MIT" ]
null
null
null
// ---------------------------------------------------------------------------- // Overridden functions for the wxWidgets binding for wxLua // // Please keep these functions in the same order as the .i file and in the // same order as the listing of the functions in that file. // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- // Overrides for wxadv_adv.i // ---------------------------------------------------------------------------- %override wxLua_wxCalendarCtrl_HitTest // wxCalendarHitTestResult HitTest(const wxPoint& pos) //, wxDateTime* date = NULL, wxDateTime::WeekDay* wd = NULL) static int LUACALL wxLua_wxCalendarCtrl_HitTest(lua_State *L) { // const wxPoint pos const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); // get this wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); // call HitTest wxDateTime* date = new wxDateTime(); wxDateTime::WeekDay wd = wxDateTime::Inv_WeekDay; wxCalendarHitTestResult returns = self->HitTest(*pos, date, &wd); // push the result number lua_pushnumber(L, returns); wxluaT_pushuserdatatype(L, date, wxluatype_wxDateTime); lua_pushnumber(L, wd); return 3; } %end // ---------------------------------------------------------------------------- // Overrides for wxadv_grid.i // ---------------------------------------------------------------------------- %override wxLua_wxGridCellAttr_GetAlignment // void GetAlignment(int *horz, int *vert) const static int LUACALL wxLua_wxGridCellAttr_GetAlignment(lua_State *L) { int horz; int vert; // get this wxGridCellAttr *self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); // call GetAlignment self->GetAlignment(&horz, &vert); lua_pushnumber(L, horz); lua_pushnumber(L, vert); // return the number of parameters return 2; } %end %override wxLua_wxGridCellAttr_GetSize // void GetSize(int *num_rows, int *num_cols) const static int LUACALL wxLua_wxGridCellAttr_GetSize(lua_State *L) { int num_rows; int num_cols; // get this wxGridCellAttr *self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); // call GetSize self->GetSize(&num_rows, &num_cols); lua_pushnumber(L, num_rows); lua_pushnumber(L, num_cols); // return the number of parameters return 2; } %end %override wxLua_wxGrid_GetRowLabelAlignment // void GetRowLabelAlignment( int *horz, int *vert ) static int LUACALL wxLua_wxGrid_GetRowLabelAlignment(lua_State *L) { int vert; int horz; // get this wxGrid *self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); // call GetRowLabelAlignment self->GetRowLabelAlignment(&horz, &vert); // push results lua_pushnumber(L, horz); lua_pushnumber(L, vert); // return the number of parameters return 2; } %end %override wxLua_wxGrid_GetColLabelAlignment // void GetColLabelAlignment( int *horz, int *vert ) static int LUACALL wxLua_wxGrid_GetColLabelAlignment(lua_State *L) { int vert; int horz; // get this wxGrid *self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); // call GetColLabelAlignment self->GetColLabelAlignment(&horz, &vert); // push results lua_pushnumber(L, horz); lua_pushnumber(L, vert); // return the number of parameters return 2; } %end %override wxLua_wxGrid_GetDefaultCellAlignment // void GetDefaultCellAlignment( int *horiz, int *vert ) static int LUACALL wxLua_wxGrid_GetDefaultCellAlignment(lua_State *L) { int vert; int horiz; // get this wxGrid *self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); // call GetDefaultCellAlignment self->GetDefaultCellAlignment(&horiz, &vert); // push results lua_pushnumber(L, horiz); lua_pushnumber(L, vert); // return the number of parameters return 2; } %end %override wxLua_wxGrid_GetCellAlignment // void GetCellAlignment( int row, int col, int *horiz, int *vert ) static int LUACALL wxLua_wxGrid_GetCellAlignment(lua_State *L) { int vert; int horiz; // int col int col = (int)lua_tonumber(L, 3); // int row int row = (int)lua_tonumber(L, 2); // get this wxGrid *self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); // call GetCellAlignment self->GetCellAlignment(row, col, &horiz, &vert); // push results lua_pushnumber(L, horiz); lua_pushnumber(L, vert); // return the number of parameters return 2; } %end %override wxLua_wxGrid_GetCellSize // void GetCellSize( int row, int col, int *num_rows, int *num_cols ) static int LUACALL wxLua_wxGrid_GetCellSize(lua_State *L) { int num_rows; int num_cols; // int col int col = (int)lua_tonumber(L, 3); // int row int row = (int)lua_tonumber(L, 2); // get this wxGrid *self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); // call GetCellSize self->GetCellSize(row, col, &num_rows, &num_cols); // push results lua_pushnumber(L, num_rows); lua_pushnumber(L, num_cols); // return the number of parameters return 2; } %end %override wxLua_wxGrid_GetTextBoxSize // void GetTextBoxSize(wxDC& dc, wxArrayString& lines, long * width, long * height) static int LUACALL wxLua_wxGrid_GetTextBoxSize(lua_State *L) { long height; long width; // wxArrayString& lines wxArrayString *lines = (wxArrayString *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayString); // wxDC& dc wxDC *dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); // get this wxGrid *self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); // call GetTextBoxSize self->GetTextBoxSize(*dc, *lines, &width, &height); lua_pushnumber(L, width); lua_pushnumber(L, height); // return the number of parameters return 2; } %end %override wxLua_wxGrid_SetTable // bool SetTable(wxGridTableBase *table, bool takeOwnership = false, // wxGrid::wxGridSelectionModes selmode = // wxGrid::wxGridSelectCells) static int LUACALL wxLua_wxGrid_SetTable(lua_State *L) { // get number of arguments int argCount = lua_gettop(L); // wxGrid::wxGridSelectionModes selmode = wxGrid::wxGridSelectCells wxGrid::wxGridSelectionModes selmode = (argCount >= 4 ? (wxGrid::wxGridSelectionModes)wxlua_getenumtype(L, 4) : wxGrid::wxGridSelectCells); // bool takeOwnership = false bool takeOwnership = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); // wxGridTableBase table wxGridTableBase * table = (wxGridTableBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridTableBase); // get this wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); // call SetTable bool returns = (self->SetTable(table, takeOwnership, selmode)); if (returns && takeOwnership) { // The wxGrid is now responsible for deleting it if (wxluaO_isgcobject(L, table)) wxluaO_undeletegcobject(L, table); } // push the result flag lua_pushboolean(L, returns); return 1; } %end %override wxLua_wxLuaGridTableBase_constructor // wxLuaGridTableBase() static int LUACALL wxLua_wxLuaGridTableBase_constructor(lua_State *L) { wxLuaState wxlState(L); // call constructor wxLuaGridTableBase *returns = new wxLuaGridTableBase(wxlState); // add to tracked memory list wxluaO_addgcobject(L, returns, wxluatype_wxLuaGridTableBase); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaGridTableBase); return 1; } %end %override wxLua_wxGridCellWorker_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellWorker_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellWorker>(p); } %end %override wxLua_wxGridCellRenderer_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellRenderer_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellRenderer>(p); } %end %override wxLua_wxGridCellStringRenderer_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellStringRenderer_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellStringRenderer>(p); } %end %override wxLua_wxGridCellNumberRenderer_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellNumberRenderer_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellNumberRenderer>(p); } %end %override wxLua_wxGridCellFloatRenderer_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellFloatRenderer_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellFloatRenderer>(p); } %end %override wxLua_wxGridCellBoolRenderer_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellBoolRenderer_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellBoolRenderer>(p); } %end %override wxLua_wxGridCellDateTimeRenderer_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellDateTimeRenderer_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellDateTimeRenderer>(p); } %end %override wxLua_wxGridCellEnumRenderer_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellEnumRenderer_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellEnumRenderer>(p); } %end %override wxLua_wxGridCellAutoWrapStringRenderer_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellAutoWrapStringRenderer_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellAutoWrapStringRenderer>(p); } %end %override wxLua_wxGridCellEditor_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellEditor_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellEditor>(p); } %end %override wxLua_wxGridCellTextEditor_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellTextEditor_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellTextEditor>(p); } %end %override wxLua_wxGridCellNumberEditor_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellNumberEditor_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellNumberEditor>(p); } %end %override wxLua_wxGridCellFloatEditor_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellFloatEditor_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellFloatEditor>(p); } %end %override wxLua_wxGridCellBoolEditor_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellBoolEditor_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellBoolEditor>(p); } %end %override wxLua_wxGridCellChoiceEditor_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellChoiceEditor_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellChoiceEditor>(p); } %end %override wxLua_wxGridCellEnumEditor_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellEnumEditor_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellEnumEditor>(p); } %end %override wxLua_wxGridCellAutoWrapStringEditor_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellAutoWrapStringEditor_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellAutoWrapStringEditor>(p); } %end %override wxLua_wxGridCellAttr_delete_function // delete is private in wxGridCellWorker, DecRef() it in derived classes void wxLua_wxGridCellAttr_delete_function(void** p) { wxLua_wxGrid_DecRef_delete_function<wxGridCellAttr>(p); } %end
32.160714
143
0.728405
GCourtney27
1f1c4c97ab8919946e69cd923d2a814799cf37d8
874
cpp
C++
Matrix Multiplication.cpp
sayanroy058/C-Programs
2bb591d5a322d1bf10e8a1627d92db05cb0ece75
[ "CC0-1.0" ]
2
2019-09-11T16:22:30.000Z
2019-09-19T18:29:42.000Z
Matrix Multiplication.cpp
sayanroy058/C-Programs
2bb591d5a322d1bf10e8a1627d92db05cb0ece75
[ "CC0-1.0" ]
null
null
null
Matrix Multiplication.cpp
sayanroy058/C-Programs
2bb591d5a322d1bf10e8a1627d92db05cb0ece75
[ "CC0-1.0" ]
null
null
null
#include<stdio.h> int main() { int i,j,k,r1,r2,c1,c2,sum=0,a[10][10],b[10][10],p[10][10]; printf("Enter the row and column of the 1st matrics:"); scanf("%d%d",&r1,&c1); printf("Enter the row and column of the 2nd matrics:"); scanf("%d%d",&r2,&c2); printf("Enter elements of first matrix:\n"); for(i=0;i<r1;i++) { for(j=0;j<c1;j++) { scanf("%d",&a[i][j]); } } printf("Enter elements of 2nd matrix:\n"); for (i=0;i<r2;i++) { for(j=0;j<c2;j++) { scanf("%d",&b[i][j]); } } for(i=0;i<r1;i++) { for(j=0;j<c2;j++) { for(k=0;k<r2;k++) { sum=sum+a[i][k]*b[k][j]; } p[i][j]=sum; sum=0; } } printf("Product of the matrices:\n"); for(i=0;i<r1;i++) { for (j=0;j<c2;j++) { printf("%d\t",p[i][j]); } printf("\n"); } }
18.595745
60
0.442792
sayanroy058
1f1d72c14c8761610c791ecea8fa1f858adfe114
247
cpp
C++
pub/1104.cpp
BashuMiddleSchool/Bashu_OnlineJudge_Code
4707a271e6658158a1910b0e6e27c75f96841aca
[ "MIT" ]
2
2021-05-01T15:51:58.000Z
2021-05-02T15:19:49.000Z
pub/1104.cpp
BashuMiddleSchool/Bashu_OnlineJudge_Code
4707a271e6658158a1910b0e6e27c75f96841aca
[ "MIT" ]
1
2021-05-16T15:04:38.000Z
2021-09-19T09:49:00.000Z
pub/1104.cpp
BashuMiddleSchool/Bashu_OnlineJudge_Code
4707a271e6658158a1910b0e6e27c75f96841aca
[ "MIT" ]
null
null
null
#include<iostream> using namespace std; int main() { int a[100001]={0}; int n,i,b=-1000000,m; cin>>n; for(i=1;i<=n;i++) { cin>>a[i]; } for(i=1;i<=n;i++) { if(a[i]>=b) { b=a[i];m=i; } } cout<<b<<endl; cout<<m; return 0; }
11.761905
22
0.48583
BashuMiddleSchool
1f212f1f35be9cb4fa950adaaaf9c31200466c69
1,043
cpp
C++
cplus/BacterialExperimentGroup.cpp
chtld/Programming-and-Algorithm-Course
669f266fc97db9050013ffbb388517667de33433
[ "MIT" ]
2
2019-06-10T11:50:06.000Z
2019-10-14T08:00:41.000Z
cplus/BacterialExperimentGroup.cpp
chtld/Programming-and-Algorithm-Course
669f266fc97db9050013ffbb388517667de33433
[ "MIT" ]
null
null
null
cplus/BacterialExperimentGroup.cpp
chtld/Programming-and-Algorithm-Course
669f266fc97db9050013ffbb388517667de33433
[ "MIT" ]
null
null
null
#include <iostream> int main(){ int n = 0, initial = 0, final = 0; std::cin >> n; int id[100] = {0}; double rate[100] = {0.0}; for (int i = 0; i < n; i++) { std::cin >> id[i] >> initial >> final; rate [i] = (double) final/initial; } for (int i = 0; i < n; i++) { for (int j = 0; j < n - i - 1; j++) { if (rate[j] > rate[j + 1]) { double temp = rate[j]; rate[j] = rate[j + 1]; rate[j + 1] = temp; int temp2 = id[j]; id[j] = id[j + 1]; id[j + 1] = temp2; } } } double maxDiff = 0.0; int maxDiffIndex = 0; for (int i = 0; i < n - 1; i++) { double diff = rate[i + 1] - rate[i]; if (diff > maxDiff) { maxDiff = diff; maxDiffIndex = i; } } std::cout << n - maxDiffIndex - 1 << std::endl; for (int i = maxDiffIndex + 1; i < n; i++){ std::cout << id[i] <<std::endl; } std::cout << maxDiffIndex + 1 << std::endl; for (int i = 0; i <= maxDiffIndex; i++) { std::cout << id[i] <<std::endl; } return 0; }
22.673913
49
0.449664
chtld
1f289f3a64863a9def62c79b27dae01a400b4167
8,280
cpp
C++
src/editor/src/resource/name_resource_pool.cpp
AirGuanZ/Atrc
a0c4bc1b7bb96ddffff8bb1350f88b651b94d993
[ "MIT" ]
358
2018-11-29T08:15:05.000Z
2022-03-31T07:48:37.000Z
src/editor/src/resource/name_resource_pool.cpp
happyfire/Atrc
74cac111e277be53eddea5638235d97cec96c378
[ "MIT" ]
23
2019-04-06T17:23:58.000Z
2022-02-08T14:22:46.000Z
src/editor/src/resource/name_resource_pool.cpp
happyfire/Atrc
74cac111e277be53eddea5638235d97cec96c378
[ "MIT" ]
22
2019-03-04T01:47:56.000Z
2022-01-13T06:06:49.000Z
#include <agz/editor/editor.h> #include <agz/editor/resource/pool/name_resource_pool.h> #include <agz/tracer/utility/logger.h> AGZ_EDITOR_BEGIN namespace { constexpr int WIDGET_ITEM_HEIGHT = 35; } template<typename TracerObject> NameResourcePool<TracerObject>::NameResourcePool( ObjectContext &obj_ctx, Editor *editor, const QString &default_type) : default_type_(default_type), obj_ctx_(obj_ctx), editor_(editor) { widget_ = new NameResourcePoolWidget; connect(widget_->create, &QPushButton::clicked, [=] { bool ok = false; const QString name = to_valid_name(QInputDialog::getText( widget_, "Name", "Enter resource name", QLineEdit::Normal, {}, &ok)); if(!ok) return; AGZ_INFO("create new '{}' with name: {}", typeid(TracerObject).name(), name.toStdString()); auto panel = newBox<ResourcePanel<TracerObject>>(obj_ctx_, default_type); add_resource(name, std::move(panel)); }); connect(widget_->remove, &QPushButton::clicked, [=] { auto selected = widget_->name_list->currentItem(); if(!selected) return; const QString name = selected->text(); const auto it = name2record_.find(name); assert(it != name2record_.end()); AGZ_INFO("remove '{}' with name: {}", typeid(TracerObject).name(), name.toStdString()); name2record_.erase(it); delete widget_->name_list->takeItem(widget_->name_list->row(selected)); }); connect(widget_->duplicate, &QPushButton::clicked, [=] { auto selected = widget_->name_list->currentItem(); if(!selected) return; const QString old_name = selected->text(); const auto it = name2record_.find(old_name); assert(it != name2record_.end()); bool ok = false; const QString new_name = to_valid_name(QInputDialog::getText( widget_, "Name", "Enter resource name", QLineEdit::Normal, {}, &ok)); if(!ok) return; AGZ_INFO("duplicate '{}' : {} -> {}", typeid(TracerObject).name(), it->second->name.toStdString(), new_name.toStdString()); auto panel = it->second->rsc->clone_panel(); add_resource(new_name, Box<ResourcePanel<TracerObject>>(panel)); }); connect(widget_->edit, &QPushButton::clicked, [=] { auto selected = widget_->name_list->currentItem(); if(!selected) return; const QString old_name = selected->text(); const auto it = name2record_.find(old_name); assert(it != name2record_.end()); show_edit_panel(it->second->rsc->get_panel(), true); }); connect(widget_->rename, &QPushButton::clicked, [=] { auto selected = widget_->name_list->currentItem(); if(!selected) return; bool ok = false; const QString new_name = to_valid_name(QInputDialog::getText( widget_, "Name", "Enter resource name", QLineEdit::Normal, {}, &ok)); if(!ok) return; auto it = name2record_.find(selected->text()); assert(it != name2record_.end()); it->second->name = new_name; it->second->rsc->set_name(new_name); selected->setText(new_name); auto rcd = std::move(it->second); name2record_.erase(it); name2record_[new_name] = std::move(rcd); }); connect(widget_->name_list, &QListWidget::currentItemChanged, [=](QListWidgetItem *current, QListWidgetItem *previous) { if(!current) return; auto it = name2record_.find(current->text()); assert(it != name2record_.end()); show_edit_panel(it->second->rsc->get_panel(), false); }); } template<typename TracerObject> Box<ResourceReference<TracerObject>> NameResourcePool<TracerObject>::select_resource() { auto selected = widget_->name_list->currentItem(); if(!selected) return nullptr; const QString name = selected->text(); const auto it = name2record_.find(name); return it != name2record_.end() ? it->second->rsc->create_reference() : nullptr; } template<typename TracerObject> ResourceInPool<TracerObject> *NameResourcePool<TracerObject>::add_resource( const QString &name, Box<ResourcePanel<TracerObject>> panel) { auto *raw_panel = panel.get(); auto rsc = newBox<ResourceInPool<TracerObject>>(name, std::move(panel)); auto raw_rsc = rsc.get(); editor_->add_to_resource_panel(raw_panel); auto record = newBox<Record>(); record->name = name; record->rsc = std::move(rsc); name2record_[name] = std::move(record); widget_->name_list->addItem(name); auto new_item = widget_->name_list->findItems(name, Qt::MatchExactly).front(); new_item->setSizeHint(QSize(new_item->sizeHint().width(), WIDGET_ITEM_HEIGHT)); return raw_rsc; } template<typename TracerObject> void NameResourcePool<TracerObject>::save_asset(AssetSaver &saver) const { saver.write(uint32_t(name2record_.size())); for(auto &p : name2record_) p.second->rsc->save_asset(saver); } template<typename TracerObject> void NameResourcePool<TracerObject>::load_asset(AssetLoader &loader) { const uint32_t count = loader.read<uint32_t>(); for(uint32_t i = 0; i < count; ++i) { auto rsc = newBox<ResourceInPool<TracerObject>>( "", newBox<ResourcePanel<TracerObject>>(obj_ctx_, default_type_)); rsc->load_asset(*this, loader); const QString name = rsc->get_name(); auto raw_panel = rsc->get_panel(); editor_->add_to_resource_panel(raw_panel); auto record = newBox<Record>(); record->name = name; record->rsc = std::move(rsc); name2record_[name] = std::move(record); widget_->name_list->addItem(name); auto new_item = widget_->name_list->findItems(name, Qt::MatchExactly).front(); new_item->setSizeHint(QSize(new_item->sizeHint().width(), WIDGET_ITEM_HEIGHT)); } } template<typename TracerObject> void NameResourcePool<TracerObject>::to_config( tracer::ConfigGroup &scene_grp, JSONExportContext &ctx) const { for(auto &p : name2record_) { auto rsc = p.second->rsc.get(); auto ref_name = rsc->get_config_ref_name(); tracer::ConfigGroup *grp = &scene_grp; for(size_t i = 0; i < ref_name->size() - 1; ++i) { auto sub_grp = grp->find_child_group(ref_name->at_str(i)); if(sub_grp) { grp = sub_grp; continue; } auto new_grp = newRC<tracer::ConfigGroup>(); grp->insert_child(ref_name->at_str(i), new_grp); grp = new_grp.get(); } auto rsc_grp = rsc->to_config(ctx); assert(rsc_grp); grp->insert_child(ref_name->at_str(ref_name->size() - 1), rsc_grp); } } template<typename TracerObject> ResourceInPool<TracerObject> *NameResourcePool<TracerObject>::name_to_rsc( const QString &name) { auto it = name2record_.find(name); return it == name2record_.end() ? nullptr : it->second->rsc.get(); } template<typename TracerObject> bool NameResourcePool<TracerObject>::is_valid_name(const QString &name) const { return !name.isEmpty() && name2record_.find(name) == name2record_.end(); } template<typename TracerObject> QString NameResourcePool<TracerObject>::to_valid_name(const QString &name) const { if(name.isEmpty()) return to_valid_name("auto"); if(is_valid_name(name)) return name; for(int index = 0;; ++index) { QString ret = QString("%1 (%2)").arg(name).arg(index); if(is_valid_name(ret)) return ret; } } template<typename TracerObject> void NameResourcePool<TracerObject>::show_edit_panel( ResourcePanel<TracerObject> *rsc, bool display_rsc_panel) { editor_->show_resource_panel(rsc, display_rsc_panel); } template<typename TracerObject> QWidget *NameResourcePool<TracerObject>::get_widget() { return widget_; } template class NameResourcePool<tracer::Geometry>; template class NameResourcePool<tracer::Medium>; AGZ_EDITOR_END
30.32967
87
0.633937
AirGuanZ
1f2a14b538c40588484eb426a9886a93e77a21fd
283
cc
C++
jax/training/21-03/21-03-23-night/c.cc
JaxVanYang/acm
ee41f1cbf692b7b1463a9467401bb6e7d38aecce
[ "MIT" ]
2
2022-01-01T16:55:02.000Z
2022-03-16T14:47:29.000Z
jax/training/21-03/21-03-23-night/c.cc
JaxVanYang/acm
ee41f1cbf692b7b1463a9467401bb6e7d38aecce
[ "MIT" ]
null
null
null
jax/training/21-03/21-03-23-night/c.cc
JaxVanYang/acm
ee41f1cbf692b7b1463a9467401bb6e7d38aecce
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; const int maxn = 505; const int maxl = 2000; char strs[maxn][maxl]; int main() { int t; cin >> t; for (int i = 1; i <= t; ++i) { int n; for (int i = 1; i <= n; ++i) scanf("%s", strs + i); string s; } }
18.866667
59
0.487633
JaxVanYang
1f2a8e876145e8e862f63845b45959c03eba270d
2,221
cpp
C++
Tests/UnitTests/Core/Time/SecondTests.cpp
SapphireSuite/Engine
f29821853aec6118508f31d3e063e83e603f52dd
[ "MIT" ]
1
2022-01-20T23:17:18.000Z
2022-01-20T23:17:18.000Z
Tests/UnitTests/Core/Time/SecondTests.cpp
SapphireSuite/Engine
f29821853aec6118508f31d3e063e83e603f52dd
[ "MIT" ]
null
null
null
Tests/UnitTests/Core/Time/SecondTests.cpp
SapphireSuite/Engine
f29821853aec6118508f31d3e063e83e603f52dd
[ "MIT" ]
null
null
null
// Copyright (c) 2021 Sapphire's Suite. All Rights Reserved. #include <UnitTestHelper> #include <SA/Collections/Time> using namespace Sa; namespace Sa::Second_UT { void Constants() { static_assert(1.0f / Second::ToTicks == Tick::ToSeconds, "1 / Second::ToTicks != Tick::ToSeconds"); static_assert(1.0f / Second::ToMilliSeconds == MilliSecond::ToSeconds, "1 / Second::ToMilliSeconds != MilliSecond::ToSeconds!"); static_assert(Second::ToMinutes == 1.0f / Minute::ToSeconds, "Second::ToMinutes != 1 / Minute::ToSeconds!"); static_assert(Second::ToHours == 1.0f / Hour::ToSeconds, "Second::ToHours != 1 / Hour::ToSeconds!"); } void Constructors() { const Second t1 = 2.5f; SA_UTH_EQ(static_cast<float>(t1), 2.5f); const Second t2 = 4000_ui64; SA_UTH_EQ(static_cast<uint64>(t2), 4000_ui64); const Tick tick = 1.0f; const Second t3 = tick; SA_UTH_EQ(static_cast<float>(t3), 0.000001f); const MilliSecond mil = 1.0f; const Second t4 = mil; SA_UTH_EQ(static_cast<float>(t4), 0.001f); const Minute min = 1.0f; const Second t5 = min; SA_UTH_EQ(static_cast<float>(t5), 60.0f); const Hour hour = 1.0f; const Second t6 = hour; SA_UTH_EQ(static_cast<float>(t6), 3600.0f); } void Casts() { const Second t1 = 2.5f; float f = static_cast<float>(t1); SA_UTH_EQ(f, 2.5f); const Second t2 = 4000_ui64; uint64 u = static_cast<uint64>(t2); SA_UTH_EQ(u, 4000_ui64); const Second t3 = 0.000001f; const Tick tick = t3.operator Tick(); SA_UTH_EQ(static_cast<float>(tick), 1.0f); const Second t4 = 0.001f; const MilliSecond mil = t4.operator MilliSecond(); SA_UTH_EQ(static_cast<float>(mil), 1.0f); const Second t5 = 60.0f; const Minute min = t5.operator Minute(); SA_UTH_EQ(static_cast<float>(min), 1.0f); const Second t6 = 3600.0f; const Hour hour = t6.operator Hour(); SA_UTH_EQ(static_cast<float>(hour), 1.0f); } void Literal() { const Second t1 = 2.5_sec; SA_UTH_EQ(static_cast<float>(t1), 2.5f); const Second t2 = 4000_sec; SA_UTH_EQ(static_cast<uint64>(t2), 4000_ui64); } } void SecondTests() { using namespace Second_UT; SA_UTH_GP(Constants()); SA_UTH_GP(Constructors()); SA_UTH_GP(Casts()); SA_UTH_GP(Literal()); }
24.141304
130
0.683926
SapphireSuite
1f2b33c45d51597918953f78724114fb628f0d30
566
cpp
C++
sg/generator/Generator.cpp
ebachard/ospray_studio
78928c93b482f9f95aa300c8f58c728dadedbe2f
[ "Apache-2.0" ]
null
null
null
sg/generator/Generator.cpp
ebachard/ospray_studio
78928c93b482f9f95aa300c8f58c728dadedbe2f
[ "Apache-2.0" ]
null
null
null
sg/generator/Generator.cpp
ebachard/ospray_studio
78928c93b482f9f95aa300c8f58c728dadedbe2f
[ "Apache-2.0" ]
null
null
null
// Copyright 2009-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #include "Generator.h" namespace ospray { namespace sg { Generator::Generator() { createChild("parameters"); } NodeType Generator::type() const { return NodeType::GENERATOR; } void Generator::preCommit() { // Re-run generator on parameter changes in the UI if (child("parameters").isModified()) generateData(); } void Generator::postCommit() { } void Generator::generateData() { } } // namespace sg } // namespace ospray
15.722222
54
0.64841
ebachard
1f2c827f768c52a73e73bf70aaf2df3859142f33
717
hpp
C++
Code/Engine/Math/FloatRange.hpp
yixuan-wei/PersonalEngine
6f3b1df3ddeb662fbf65ca8b3ea7ddb446ef5a20
[ "MIT" ]
1
2021-06-11T06:41:29.000Z
2021-06-11T06:41:29.000Z
Code/Engine/Math/FloatRange.hpp
yixuan-wei/PersonalEngine
6f3b1df3ddeb662fbf65ca8b3ea7ddb446ef5a20
[ "MIT" ]
1
2022-02-25T07:46:54.000Z
2022-02-25T07:46:54.000Z
Code/Engine/Math/FloatRange.hpp
yixuan-wei/PersonalEngine
6f3b1df3ddeb662fbf65ca8b3ea7ddb446ef5a20
[ "MIT" ]
null
null
null
#pragma once #include <string> class RandomNumberGenerator; struct FloatRange { public: float minimum = 0.f; float maximum = 0.f; public: FloatRange() = default; explicit FloatRange( float minAndMax ); explicit FloatRange( float initStart, float initEnd ); explicit FloatRange( const char* asText ); ~FloatRange() = default; //Accessors bool IsInRange( float value ) const; bool DoesOverlap( const FloatRange& otherRange )const; std::string GetAsString() const; float GetRandomInRange( RandomNumberGenerator& rng ) const; bool operator!=( const FloatRange& compare ) const; //Mutators void Set( float newMinimum, float newMaximum ); bool SetFromText( const char* text ); };
23.129032
66
0.72106
yixuan-wei
1f3596186c8cea10fc791379045527980248c44c
817
cpp
C++
Chapter1/Section1.5/numtri/numtri.cpp
suzyz/USACO
c7f58850f20693fedfc30ef462f898d20d002396
[ "MIT" ]
null
null
null
Chapter1/Section1.5/numtri/numtri.cpp
suzyz/USACO
c7f58850f20693fedfc30ef462f898d20d002396
[ "MIT" ]
null
null
null
Chapter1/Section1.5/numtri/numtri.cpp
suzyz/USACO
c7f58850f20693fedfc30ef462f898d20d002396
[ "MIT" ]
null
null
null
/* ID: suzyzha1 PROG: numtri LANG: C++ */ #include <iostream> #include <fstream> #include <cstring> using namespace std; const int maxn = 1010; int n; int tri[maxn][maxn]; int max_sum[maxn][maxn]; void dfs(int row,int col) { if(max_sum[row][col]>=0) return; if(row==n-1) { max_sum[row][col]=tri[row][col]; return; } dfs(row+1,col); dfs(row+1,col+1); if(max_sum[row+1][col]>max_sum[row+1][col+1]) max_sum[row][col]=tri[row][col]+max_sum[row+1][col]; else max_sum[row][col]=tri[row][col]+max_sum[row+1][col+1]; } int main() { fstream fin("numtri.in",ios::in); fstream fout("numtri.out",ios::out); fin>>n; for(int i=0;i<n;i++) for(int j=0;j<=i;j++) fin>>tri[i][j]; memset(max_sum,-1,sizeof(max_sum)); dfs(0,0); fout<<max_sum[0][0]<<endl; fin.close(); fout.close(); return 0; }
14.589286
56
0.618115
suzyz
1f36a77bb5faea0d972992b2527dbe14682829f3
2,218
cpp
C++
libraries/wtf-gcit/src/module.cpp
flynnwt/espgc
a538c8e6ef5dc42a104b79b222bffa1a9364d11e
[ "MIT" ]
9
2016-08-21T14:42:54.000Z
2020-11-04T10:13:19.000Z
libraries/wtf-gcit/src/module.cpp
flynnwt/espgc
a538c8e6ef5dc42a104b79b222bffa1a9364d11e
[ "MIT" ]
null
null
null
libraries/wtf-gcit/src/module.cpp
flynnwt/espgc
a538c8e6ef5dc42a104b79b222bffa1a9364d11e
[ "MIT" ]
2
2017-12-10T19:52:57.000Z
2021-03-15T12:13:58.000Z
#include "module.h" // for true gc, must have 1 eth/wifi and 1 ir/serial/relay Module::Module(GCIT *p, unsigned int a, ModuleType t) { int i; parent = p; type = t; address = a; numConnectors = 0; for (i = 0; i < MODULE_MAX_CONNECTORS; i++) { connectors[i] = NULL; } switch (type) { case ModuleType::ethernet: p->settings()->model = "ITachIP2"; descriptor = "0 ETHERNET"; break; case ModuleType::wifi: p->settings()->model = "ITachWF2"; descriptor = "0 WIFI"; break; case ModuleType::ir: p->settings()->model += "IR"; descriptor = "0 IR"; break; case ModuleType::serial: p->settings()->model += "SL"; descriptor = "0 SERIAL"; break; case ModuleType::relay: p->settings()->model += "CC"; descriptor = "0 RELAY"; break; default: p->settings()->model = "UNKNOWN"; descriptor = "0 UNKNOWN"; } } int Module::addConnector(ConnectorType t) { return addConnector(t, UNDEFINED_FPIN, UNDEFINED_SPIN); } int Module::addConnector(ConnectorType t, int fPin) { return addConnector(t, fPin, UNDEFINED_SPIN); } int Module::addConnector(ConnectorType t, int fPin, int sPin) { return addConnector(t, numConnectors + 1, fPin, sPin); } int Module::addConnector(ConnectorType t, int address, int fPin, int sPin) { if (address > MODULE_MAX_CONNECTORS) { return 0; } connectors[address - 1] = new Connector(this, address, t, fPin, sPin); numConnectors++; switch (type) { case ModuleType::ethernet: case ModuleType::wifi: // ERROR! break; case ModuleType::ir: descriptor = String(numConnectors) + " IR"; break; case ModuleType::serial: descriptor = String(numConnectors) + " SERIAL"; parent->enableSerial((ConnectorSerial*)connectors[address - 1]->control); break; case ModuleType::relay: descriptor = String(numConnectors) + " RELAY"; break; default: descriptor = String(numConnectors) + " UNKNOWN"; break; } return 1; } // connector numbering starts at 1!!! Connector *Module::getConnector(int address) { if (address == 0) { return NULL; //} else if (c > numConnectors) { // return NULL; } else { return connectors[address - 1]; } }
25.494253
120
0.640216
flynnwt
1f37974613799c4cd991138584048575b97ee9ce
398
cpp
C++
TP3/Projectile.cpp
JonathanRN/TP3_prog
194c364bf81cd8f83af184af8a49acbdf36b19ea
[ "MIT" ]
null
null
null
TP3/Projectile.cpp
JonathanRN/TP3_prog
194c364bf81cd8f83af184af8a49acbdf36b19ea
[ "MIT" ]
null
null
null
TP3/Projectile.cpp
JonathanRN/TP3_prog
194c364bf81cd8f83af184af8a49acbdf36b19ea
[ "MIT" ]
null
null
null
#include "Projectile.h" using namespace tp3; tp3::Projectile::Projectile(const Vector2f& position, const Color& couleur, const int animationMaximale) : ANIMATION_MAXIMALE(animationMaximale), animation(0), actif(false) { setPosition(position); setColor(couleur); } Projectile::~Projectile() { } void tp3::Projectile::initGraphiques() { } void tp3::Projectile::activer() { actif = true; }
15.92
104
0.738693
JonathanRN
1f39a8900751f84fe1e7319942122594d03bfbf8
238
cpp
C++
solutions/119.pascals-triangle-ii.241467849.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
78
2020-10-22T11:31:53.000Z
2022-02-22T13:27:49.000Z
solutions/119.pascals-triangle-ii.241467849.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
null
null
null
solutions/119.pascals-triangle-ii.241467849.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
26
2020-10-23T15:10:44.000Z
2021-11-07T16:13:50.000Z
class Solution { public: vector<int> getRow(int rowIndex) { vector<int> DP(rowIndex + 1); DP[0] = 1; while (rowIndex--) { for (int i = DP.size() - 1; i > 0; i--) DP[i] += DP[i - 1]; } return DP; } };
18.307692
45
0.478992
satu0king
1f3ec6ed763ba4ea345265f4236e89ad73044c73
16,091
cpp
C++
units/hw.cpp
rgbond/zapping-ants
9f96fa07b4caacce91f5b0b4acd5235af1e2a67b
[ "Apache-2.0" ]
3
2016-11-16T18:28:42.000Z
2020-01-10T09:49:12.000Z
units/hw.cpp
rgbond/zapping-ants
9f96fa07b4caacce91f5b0b4acd5235af1e2a67b
[ "Apache-2.0" ]
null
null
null
units/hw.cpp
rgbond/zapping-ants
9f96fa07b4caacce91f5b0b4acd5235af1e2a67b
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2016 Robert Bond * * 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. */ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/mman.h> #include <iostream> #include <sys/time.h> #include <stdio.h> #include <unistd.h> #include <math.h> #include "opencv2/core/core.hpp" #include "opencv2/gpu/gpu.hpp" #include "opencv2/highgui/highgui.hpp" using namespace std; using namespace cv; using namespace cv::gpu; #include "hw.h" struct coms { uint32_t magic; uint16_t ms; int16_t m1_steps; int16_t m2_steps; uint16_t flags; uint16_t ok; }; /* * The camera coordinate system is centered under the camera, * Inches, +x to the right, +y up, as the camera sees it. * Mirror coordinate system is centred on mirror 1, * Inches +x toward motor 1, +y toward mirror 2 * Mirror 1 angles are measured m1 straight up toward laser, * Mirror 2 straight down */ // flags: #define LASER_ON 0x01 #define MOTORS_ON 0x02 #define SHUTDOWN 0x04 #define M1_NEG 0x08 #define M2_NEG 0x10 // Constants // Derived at home // Measured distance to focal plane to be 320.5 // 308mm to flange of the camera + csmount spec of 12.5mm to the sensor // For 16mm squares, measured 94 pixels // Using 4.65um for pixel size // f/94 == 320.5/16 so f == 94 * 320.5 / 16 == 1883.94 "pixels" // 1883.94 * 0.00465 == 8.76mm // To get new K1 - P3, run get_calib, feed the coordinates to // Mathematica, least_sqares.nb #define lens_focal_len (8.76 / 25.4) #define K1 0.0010958 #define K2 0.00021057 #define K3 (-5.575E-6) #define P1 (-0.00299204) #define P2 0.000119739 #define P3 (-0.0227986) #define in_per_pix (0.00465 / 25.4) #define camera_height (320.5 / 25.4) #define m1x 0.0 #define m1y 0.0 #define m1z 1.625 // y axis wants m2z smaller, x axis bigger #define m2z 10.125 #define m2za (m2z-0.625) #define m2zb (m2z+0.625) #define steps_per_rev 200.0 #define microsteps_per_step 16 #define gear_ratio 5.2 #define camera_to_mirrors_x (49.0/25.4) // from offset.py // #define camera_to_mirrors_y 10.303022 #define camera_to_mirrors_y 10.1 // Step offsets from pixel pos 640, 480 #define m1_max 345 #define m1_min -380 #define m2_max 980 #define m2_min -860 // Move constants. Must agree with defaults in eibot.py #define accel 2800.0 #define max_v 800.0 #define ramp_time (max_v/accel) #define ramp_dist (accel * ramp_time * ramp_time / 2.0) double steps_to_theta(int steps); // options extern bool fake_laser; extern bool sql_backlash; extern bool draw_laser; // HW class hw::hw(backlash *pbl) { struct coms icoms; int fd; this->pbl = pbl; m1_limit = 0; m2_limit = 0; // Setup shared mem icoms.ms = 0; icoms.m1_steps = 0; icoms.m2_steps = 0; icoms.flags = 0; icoms.ok = 0; icoms.magic = 0x12344321; fd = open("/home/rgb/shmem", O_RDWR | O_CREAT); if (fd < 0) { printf("can't open /tmp/shmem\n"); exit(1); } fchmod(fd, S_IRUSR|S_IWUSR); write(fd, &icoms, sizeof(icoms)); pc = (struct coms *) mmap(0, sizeof(coms), PROT_WRITE | PROT_WRITE, MAP_SHARED, fd, 0); if (pc == MAP_FAILED) { printf("mmap failed\n"); exit(1); } // fire up the unit pc->flags |= MOTORS_ON; if (!fake_laser) pc->ok = 1; // And wait here until clicker.py is up and running while (pc->ok == 1) ; } void hw::set_home() { m1_limit = 0; m2_limit = 0; } double hw::px_to_xd(double px) { return (px - xpix/2) * in_per_pix * camera_height / lens_focal_len; } double hw::py_to_yd(double py) { return -(py - ypix/2) * in_per_pix * camera_height / lens_focal_len; } double hw::xdyd_to_x(double xd, double yd) { double r2 = xd*xd + yd*yd; double x_radial_corr = xd*(K1*r2 + K2*r2*r2 + K3*r2*r2*r2); double x_tan_corr = (P1*(r2 + 2.0*xd*xd) + 2.0*P2*xd*yd)*(1 + P3*r2); return (xd + x_radial_corr + x_tan_corr); } double hw::xdyd_to_y(double xd, double yd) { double r2 = xd*xd + yd*yd; double y_radial_corr = yd*(K1*r2 + K2*r2*r2 + K3*r2*r2*r2); double y_tan_corr = (2.0*P1*xd*yd + P2*(r2 + 2.0*yd*yd))*(1 + P3*r2); return (yd + y_radial_corr + y_tan_corr); } double hw::calc_m2_theta(double x) { return -atan2(m1x - x, m2zb)/2.0; } double hw::calc_m1_theta(double y, double m2Theta) { return -atan2(m1y - y, m2za - m1z + m2z / cos(2.0 * m2Theta)) / 2.0; } double hw::theta_to_steps(double theta) { return (theta * steps_per_rev * microsteps_per_step * gear_ratio / (2 * M_PI)); } double hw::steps_to_theta(int steps) { return (steps * 2 * M_PI / (steps_per_rev * microsteps_per_step * gear_ratio)); } static uint64_t move_timer; bool hw::start_move(double m1_steps, double m2_steps, bool laser_on) { if (fake_laser) return true; int m1 = (int)(round(m1_steps)); int m2 = (int)(round(m2_steps)); if (m1_limit + m1 < m1_min || m1_limit + m1 > m1_max || m2_limit + m2 < m2_min || m2_limit + m2 > m2_max) { DPRINTF("Bad move!\n"); DPRINTF("at %d %d moving %d %d\n", m1_limit, m2_limit, m1, m2); return false; } m1_limit += m1; m2_limit += m2; if (pc->ok == 0) { move_timer = getTickCount(); if (m1 != 0) last_m1 = m1; if (m2 != 0) last_m2 = m2; pc->ms = 0; // Oh boy this sucks if (m1 < 0) { pc->m1_steps = -m1; pc->flags |= M1_NEG; } else { pc->m1_steps = m1; pc->flags &= ~M1_NEG; } if (m2_steps < 0) { pc->m2_steps = -m2; pc->flags |= M2_NEG; } else { pc->m2_steps = m2; pc->flags &= ~M2_NEG; } if (laser_on) pc->flags |= LASER_ON; else pc->flags &= ~LASER_ON; pc->ok = 1; } else { DPRINTF("start_move command not done\n"); return false; } return true; } void hw::switch_laser(bool laser_on) { if (fake_laser) return; if (pc->ok == 0) { pc->m1_steps = 0; pc->m2_steps = 0; pc->flags &= ~M1_NEG; pc->flags &= ~M2_NEG; if (laser_on) pc->flags |= LASER_ON; else pc->flags &= ~LASER_ON; pc->ok = 1; } else { DPRINTF("laser command not done!\n"); } } void hw::xy_to_loc(double x, double y, struct loc *ploc) { ploc->x = x; ploc->y = y; ploc->xm = camera_to_mirrors_x - ploc->x; ploc->ym = camera_to_mirrors_y - ploc->y; ploc->m2_theta = calc_m2_theta(ploc->xm); ploc->m1_theta = calc_m1_theta(ploc->ym, ploc->m2_theta); ploc->m1_steps = -theta_to_steps(ploc->m1_theta); ploc->m2_steps = -theta_to_steps(ploc->m2_theta); // #if 0 DPRINTF(" px: %d, py: %d, xd: %6.3lf, yd:%6.3lf\n", ploc->px, ploc->py, ploc->xd, ploc->yd); DPRINTF(" x: %6.3lf, y: %6.3lf, xm: %6.3lf, ym: %6.3lf\n", ploc->x, ploc->y, ploc->xm, ploc->ym); DPRINTF(" m1_theta: %6.4lf, m2_theta: %6.4lf, m1_steps: %6.1lf, m2_steps: %6.1lf\n", ploc->m1_theta, ploc->m2_theta, ploc->m1_steps, ploc->m2_steps); // #endif } void hw::pxy_to_loc(int px, int py, struct loc *ploc) { double x, y; ploc->px = px; ploc->py = py; ploc->xd = px_to_xd(px); ploc->yd = py_to_yd(py); x = xdyd_to_x(ploc->xd, ploc->yd); y = xdyd_to_y(ploc->xd, ploc->yd); xy_to_loc(x, y, ploc); } void hw::pxy_to_xy(int px, int py, double &x, double &y) { double xd, yd; xd = px_to_xd(px); yd = py_to_yd(py); x = xdyd_to_x(xd, yd); y = xdyd_to_y(xd, yd); } double hw::mm_per_pixel(int px, int py) { double x1, y1, x2, y2; int px1; if (px >= xpix - 10) px1 = px - 10; else px1 = px + 10; pxy_to_xy(px, py, x1, y1); pxy_to_xy(px1, py, x2, y2); double dx = x1 - x2; double dy = y1 - y2; double dist_inches = sqrt(dx * dx + dy * dy) / 10.0; return dist_inches * 25.4; } double hw::move_time(int px, int py) { struct loc tloc; pxy_to_loc(px, py, &tloc); double m1_delta = tloc.m1_steps - cur_loc.m1_steps; double m2_delta = tloc.m2_steps - cur_loc.m2_steps; double dist = sqrt(m1_delta * m1_delta + m2_delta * m2_delta); double t; if (draw_laser) { t = 0.0; } else if (dist > ramp_dist * 2.0) { t = ramp_time * 2.0 + (dist - ramp_dist * 2.0)/max_v; } else { // Integral relating distance to accel is d = acc * t^2 / 2 // So t = sqrt(2d/accel) // dist == 2d, because want ramp up then down. t = 2.0 * sqrt(dist / accel); } DPRINTF("move_time to px: %d py: %d dist: %6.1lf t: %6.3lf\n", px, py, dist, t); return t; } void hw::do_move(int px, int py, int frame_index, const char *msg) { DPRINTF("%s, frame_index: %d\n", msg, frame_index); if (px != target.px || py != target.py) pxy_to_loc(px, py, &target); double m1_delta = target.m1_steps - cur_loc.m1_steps; double m2_delta = target.m2_steps - cur_loc.m2_steps; pbl->start(this, m1_delta, m2_delta); DPRINTF(" Moving %6.1lf %6.1lf\n", m1_delta, m2_delta); while (pc->ok) ; if (start_move(m1_delta, m2_delta, false)) cur_loc = target; } void hw::do_correction(int px, int py, int frame_index, const char *msg) { // DPRINTF("%s, frame_index: %d\n", msg, frame_index); if (px != target.px || py != target.py) pxy_to_loc(px, py, &target); double m1_delta = (target.m1_steps - cur_loc.m1_steps) * 1.0; double m2_delta = (target.m2_steps - cur_loc.m2_steps) * 1.0; pbl->add_corr(this, m1_delta, m2_delta); DPRINTF(" Moving %6.1lf %6.1lf\n", m1_delta, m2_delta); while (pc->ok) ; if(start_move(m1_delta, m2_delta, false)) cur_loc = target; } void hw::do_xy_move(double x, double y, const char *msg) { DPRINTF("%s\n", msg); target.px = 0; target.py = 0; target.xd = 0; target.yd = 0; xy_to_loc(x, y, &target); double m1_delta = target.m1_steps - cur_loc.m1_steps; double m2_delta = target.m2_steps - cur_loc.m2_steps; pbl->start(this, m1_delta, m2_delta); DPRINTF(" Moving %6.1lf %6.1lf\n", m1_delta, m2_delta); while (pc->ok) ; if(start_move(m1_delta, m2_delta, false)) cur_loc = target; } void hw::shutdown(void) { while (pc->ok) ; pc->m1_steps = 0; pc->m2_steps = 0; pc->flags = SHUTDOWN; if (!fake_laser) pc->ok = 1; } bool hw::hw_idle() { if (pc-> ok == 0 && move_timer != 0) { uint64_t cur_time = getTickCount(); double tps = getTickFrequency(); DPRINTF("Move Timer: %d\n", (int)((cur_time-move_timer)*1000.0/tps)); move_timer = 0; } return pc->ok == 0; } /* * much easier with the camera at 8.8mm */ bool hw::keepout(int px, int py, int scale) { if (scale == 2) { px += px; py += py; } else if (scale != 1) { px *= scale; py *= scale; } if (py < 0 || py > 959) return true; if (px < 0 || px > 1279) return true; return false; } struct step_list { struct loc *ploc; int last_m1; int last_m2; double m1s; double m2s; struct step_list *next; }; // Backlash class backlash::backlash() { last_m1 = 0; last_m2 = 0; pstart = NULL; ptarget = NULL; pls = NULL; ple = NULL; mvidx = 0; if (!sql_backlash) return; sql_out = fopen("backlash.sql", "w"); if (!sql_out) { DPRINTF("can't open backlash.sql\n"); exit(1); } } void backlash::correct(double *pm1s, double *pm2s) { // wrong return; } void backlash::cleanup() { if (pstart) delete pstart; if (ptarget) delete ptarget; while (pls) { struct step_list *tmp = pls; if (pls->ploc) delete pls->ploc; pls = pls->next; delete tmp; } last_m1 = 0; last_m2 = 0; pstart = NULL; ptarget = NULL; pls = NULL; ple = NULL; } void backlash::start(hw *phw, double m1s, double m2s) { cleanup(); last_m1 = phw->last_m1; last_m2 = phw->last_m2; pstart = new struct loc; *pstart = phw->cur_loc; ptarget = new struct loc; *ptarget = phw->target; pls = new struct step_list; pls->m1s = m1s; pls->m2s = m2s; pls->ploc = NULL; pls->next = NULL; ple = pls; mvidx++; } void backlash::add_corr(hw *phw, double m1s, double m2s) { if (!sql_backlash) return; struct step_list *pn = new struct step_list; pn->last_m1 = phw->last_m1; pn->last_m2 = phw->last_m2; pn->m1s = m1s; pn->m2s = m2s; pn->ploc = new struct loc; *pn->ploc = phw->cur_loc; pn->next = NULL; if (ple) ple->next = pn; ple = pn; } void backlash::stop(hw *phw) { struct step_list *pn = new struct step_list; pn->last_m1 = phw->last_m1; pn->last_m2 = phw->last_m2; pn->m1s = 0; pn->m2s = 0; pn->ploc = new struct loc; *pn->ploc = phw->cur_loc; pn->next = NULL; if (ple) ple->next = pn; ple = pn; } void backlash::actuals(struct step_list *pn, int *pm1, int *pm2) { int m1 = 0; int m2 = 0; while (pn) { m1 += round(pn->m1s); m2 += round(pn->m2s); pn = pn->next; } *pm1 = m1; *pm2 = m2; } void backlash::dead_zone(struct step_list *pn, int *pm1dz, int *pm2dz) { int m1dz = 0; int m2dz = 0; struct step_list *plast = NULL; while (pn) { if (pn->ploc && plast && plast->ploc) { if (plast->ploc->px == pn->ploc->px) m2dz += round(plast->m2s); if (plast->ploc->py == pn->ploc->py) m1dz += round(plast->m1s); } plast = pn; pn = pn->next; } *pm1dz = m1dz; *pm2dz = m2dz; } void backlash::dumpit() { struct step_list *pn = pls; int px, py; int m1_delta, m2_delta; int m1_actual, m2_actual; int tmp_last_m1, tmp_last_m2; int m1_dz, m2_dz; if (!sql_backlash) return; // ploc is NULL for starts. while (pn) { if (pn->ploc) { px = pn->ploc->px; py = pn->ploc->py; m1_delta = round(ptarget->m1_steps - pn->ploc->m1_steps); m2_delta = round(ptarget->m2_steps - pn->ploc->m2_steps); tmp_last_m1 = pn->last_m1; tmp_last_m2 = pn->last_m2; fprintf(sql_out, "INSERT INTO corr VALUES( %4d,", mvidx); } else { tmp_last_m1 = last_m1; tmp_last_m2 = last_m2; fprintf(sql_out, "INSERT INTO move VALUES( %4d,", mvidx); } fprintf(sql_out, "%4d, %4d, ", pstart->px, pstart->py); fprintf(sql_out, "%4d, %4d, ", ptarget->px, ptarget->py); fprintf(sql_out, "%4d, %4d, ", tmp_last_m1, tmp_last_m2); if (pn->ploc) { fprintf(sql_out, "%4d, %4d, ", px, py); fprintf(sql_out, "%4d, %4d, ", m1_delta, m2_delta); } fprintf(sql_out, "%4d, %4d, ", (int)round(pn->m1s), (int)round(pn->m2s)); actuals(pn, &m1_actual, &m2_actual); fprintf(sql_out, "%4d, %4d, ", m1_actual, m2_actual); dead_zone(pn, &m1_dz, &m2_dz); fprintf(sql_out, "%4d, %4d ", m1_dz, m2_dz); fprintf(sql_out, ");"); fprintf(sql_out, "\n"); pn = pn->next; } cleanup(); }
24.793529
89
0.57181
rgbond
1f3fc0f7be93156f2a4b34b7d9fcba362be7ce6d
2,958
cpp
C++
Code/Avernakis Nodejs/Avernakis-Nodejs/Private/ImgCodec.cpp
qber-soft/Ave-Nodejs
80b843d22b0e0620b6a5af329a851ce9921d8d85
[ "MIT" ]
39
2022-03-25T17:21:17.000Z
2022-03-31T18:24:12.000Z
Code/Avernakis Nodejs/Avernakis-Nodejs/Private/ImgCodec.cpp
qber-soft/Ave-Nodejs
80b843d22b0e0620b6a5af329a851ce9921d8d85
[ "MIT" ]
1
2022-03-20T00:35:07.000Z
2022-03-20T01:06:20.000Z
Code/Avernakis Nodejs/Avernakis-Nodejs/Private/ImgCodec.cpp
qber-soft/Ave-Nodejs
80b843d22b0e0620b6a5af329a851ce9921d8d85
[ "MIT" ]
3
2022-03-26T01:08:06.000Z
2022-03-27T23:12:40.000Z
#include "StdAfx.h" #include "ImgCodec.h" #include "ImgCommon.h" #include "ImgImage.h" #define ThisMethod($x) &ImgCodec::$x #define AutoAddMethod($x, ...) AddMethod<__VA_ARGS__>( #$x, ThisMethod( $x ) ) #define MakeThisFunc($x) MakeFunc( this, &ImgCodec::$x ) namespace Nav { namespace { ObjectRegister<ImgCodec> c_obj; } void ImgCodec::DefineObject() { AutoAddMethod( Open ); AutoAddMethod( GetMetadata ); AutoAddMethod( SaveFile ); AutoAddMethod( SaveArrayBuffer ); } U1 ImgCodec::Ctor() { m_Loader = &App::GetSingleton().GetImageLoader(); m_Container.Resize( (S32) ImgContainerType::__Count ); m_Container[(U32) ImgContainerType::AVE].m_Guid = AveGuidOf( Ave::Img::IContainer_AveImage ); m_Container[(U32) ImgContainerType::BMP].m_Guid = AveGuidOf( Ave::Img::IContainer_BMP ); m_Container[(U32) ImgContainerType::JPG].m_Guid = AveGuidOf( Ave::Img::IContainer_JPG ); m_Container[(U32) ImgContainerType::PNG].m_Guid = AveGuidOf( Ave::Img::IContainer_PNG ); m_Container[(U32) ImgContainerType::DDS].m_Guid = AveGuidOf( Ave::Img::IContainer_DDS ); m_Container[(U32) ImgContainerType::TGA].m_Guid = AveGuidOf( Ave::Img::IContainer_TGA ); m_Container[(U32) ImgContainerType::TIF].m_Guid = AveGuidOf( Ave::Img::IContainer_TIF ); m_Container[(U32) ImgContainerType::GIF].m_Guid = AveGuidOf( Ave::Img::IContainer_GIF ); return true; } ImgImage * ImgCodec::Open( const CallbackInfo & ci, const WrapData<IoResourceSource>& rs ) { if ( auto ps = App::GetSingleton().OpenResourceAsStream( rs ) ) { if ( auto img = m_Loader->Open( *ps ) ) { if ( auto js = ci.NewJsObject<ImgImage>() ) { js->SetImage( std::move( img ) ); return js; } } } return nullptr; } WrapData<Img::Metadata> ImgCodec::GetMetadata( const WrapData<IoResourceSource>& rs ) { if ( auto ps = App::GetSingleton().OpenResourceAsStream( rs ) ) { Img::Metadata md; if ( m_Loader->GetMetadata( *ps, md ) ) return md; } return {}; } U1 ImgCodec::SaveFile( PCWChar szFile, ImgImage * img, ImgContainerType nType ) { if ( (U32) nType >= m_Container.Size() ) return false; auto& c = m_Container[(U32) nType]; if ( !c.m_Container ) { c.m_Container = AveKak.CreateWithGuid<Img::IContainer>( c.m_Guid ); if ( !c.m_Container ) return false; } return c.m_Container->Save( *img->Get(), szFile ); } ArrayBuffer ImgCodec::SaveArrayBuffer( PCWChar szFile, ImgImage * img, ImgContainerType nType ) { ArrayBuffer ab{}; ab.m_Null = true; if ( (U32) nType >= m_Container.Size() ) return std::move( ab ); auto& c = m_Container[(U32) nType]; if ( !c.m_Container ) { c.m_Container = AveKak.CreateWithGuid<Img::IContainer>( c.m_Guid ); if ( !c.m_Container ) return std::move( ab ); } Io::StreamListDirect sld( ab.m_Data ); if ( !c.m_Container->Save( *img->Get(), sld ) ) return std::move( ab ); ab.m_Null = false; return std::move( ab ); } }
28.171429
96
0.669371
qber-soft
1f3fd874f2da74209926821372fe62724ed7f302
253,956
inl
C++
src/fonts/stb_font_times_bold_47_latin_ext.inl
stetre/moonfonts
5c8010c02ea62edcf42902e09478b0cd14af56ea
[ "MIT" ]
3
2018-03-13T12:51:57.000Z
2021-10-11T11:32:17.000Z
src/fonts/stb_font_times_bold_47_latin_ext.inl
stetre/moonfonts
5c8010c02ea62edcf42902e09478b0cd14af56ea
[ "MIT" ]
null
null
null
src/fonts/stb_font_times_bold_47_latin_ext.inl
stetre/moonfonts
5c8010c02ea62edcf42902e09478b0cd14af56ea
[ "MIT" ]
null
null
null
// Font generated by stb_font_inl_generator.c (4/1 bpp) // // Following instructions show how to use the only included font, whatever it is, in // a generic way so you can replace it with any other font by changing the include. // To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_times_bold_47_latin_ext_*, // and separately install each font. Note that the CREATE function call has a // totally different name; it's just 'stb_font_times_bold_47_latin_ext'. // /* // Example usage: static stb_fontchar fontdata[STB_SOMEFONT_NUM_CHARS]; static void init(void) { // optionally replace both STB_SOMEFONT_BITMAP_HEIGHT with STB_SOMEFONT_BITMAP_HEIGHT_POW2 static unsigned char fontpixels[STB_SOMEFONT_BITMAP_HEIGHT][STB_SOMEFONT_BITMAP_WIDTH]; STB_SOMEFONT_CREATE(fontdata, fontpixels, STB_SOMEFONT_BITMAP_HEIGHT); ... create texture ... // for best results rendering 1:1 pixels texels, use nearest-neighbor sampling // if allowed to scale up, use bilerp } // This function positions characters on integer coordinates, and assumes 1:1 texels to pixels // Appropriate if nearest-neighbor sampling is used static void draw_string_integer(int x, int y, char *str) // draw with top-left point x,y { ... use texture ... ... turn on alpha blending and gamma-correct alpha blending ... glBegin(GL_QUADS); while (*str) { int char_codepoint = *str++; stb_fontchar *cd = &fontdata[char_codepoint - STB_SOMEFONT_FIRST_CHAR]; glTexCoord2f(cd->s0, cd->t0); glVertex2i(x + cd->x0, y + cd->y0); glTexCoord2f(cd->s1, cd->t0); glVertex2i(x + cd->x1, y + cd->y0); glTexCoord2f(cd->s1, cd->t1); glVertex2i(x + cd->x1, y + cd->y1); glTexCoord2f(cd->s0, cd->t1); glVertex2i(x + cd->x0, y + cd->y1); // if bilerping, in D3D9 you'll need a half-pixel offset here for 1:1 to behave correct x += cd->advance_int; } glEnd(); } // This function positions characters on float coordinates, and doesn't require 1:1 texels to pixels // Appropriate if bilinear filtering is used static void draw_string_float(float x, float y, char *str) // draw with top-left point x,y { ... use texture ... ... turn on alpha blending and gamma-correct alpha blending ... glBegin(GL_QUADS); while (*str) { int char_codepoint = *str++; stb_fontchar *cd = &fontdata[char_codepoint - STB_SOMEFONT_FIRST_CHAR]; glTexCoord2f(cd->s0f, cd->t0f); glVertex2f(x + cd->x0f, y + cd->y0f); glTexCoord2f(cd->s1f, cd->t0f); glVertex2f(x + cd->x1f, y + cd->y0f); glTexCoord2f(cd->s1f, cd->t1f); glVertex2f(x + cd->x1f, y + cd->y1f); glTexCoord2f(cd->s0f, cd->t1f); glVertex2f(x + cd->x0f, y + cd->y1f); // if bilerping, in D3D9 you'll need a half-pixel offset here for 1:1 to behave correct x += cd->advance; } glEnd(); } */ #ifndef STB_FONTCHAR__TYPEDEF #define STB_FONTCHAR__TYPEDEF typedef struct { // coordinates if using integer positioning float s0,t0,s1,t1; signed short x0,y0,x1,y1; int advance_int; // coordinates if using floating positioning float s0f,t0f,s1f,t1f; float x0f,y0f,x1f,y1f; float advance; } stb_fontchar; #endif #define STB_FONT_times_bold_47_latin_ext_BITMAP_WIDTH 512 #define STB_FONT_times_bold_47_latin_ext_BITMAP_HEIGHT 546 #define STB_FONT_times_bold_47_latin_ext_BITMAP_HEIGHT_POW2 1024 #define STB_FONT_times_bold_47_latin_ext_FIRST_CHAR 32 #define STB_FONT_times_bold_47_latin_ext_NUM_CHARS 560 #define STB_FONT_times_bold_47_latin_ext_LINE_SPACING 30 static unsigned int stb__times_bold_47_latin_ext_pixels[]={ 0xccca8000,0x000001cc,0x00000001,0x99700000,0x00000199,0x99700000, 0xc9800199,0x00002ccc,0x00000000,0x00000000,0x99950000,0x00000039, 0x01e66644,0x44000000,0x0004cccc,0x0006a000,0x99999988,0x99999999, 0x99999999,0x99700099,0x00000199,0x0004ccc4,0x77764000,0x02eeeeee, 0x22018800,0xff800000,0x00004fff,0x0000ee44,0x7fffe400,0xf980001f, 0x0004ffff,0x1fffffb0,0xfffa8000,0x7f4004ff,0x0000ffff,0x6e8801dd, 0xff300000,0x20009fff,0x2fc802fb,0x3ffe2000,0x000006ff,0x3fffff60, 0x00000001,0x17ffffe4,0xf9100000,0x70005dff,0xffffffff,0xffffffff, 0xffffffff,0xffff300b,0x2000009f,0x01fffff9,0x7ff40000,0x2fffffff, 0x77fdc000,0x002ffec1,0x9ffff300,0x3e980000,0x3e000000,0x0002ffff, 0xffffffb0,0xff880001,0x80001fff,0x0ffffffe,0xfffff500,0x3ea0007f, 0x05ff301f,0x3ff20000,0x740004ff,0x0bfb104f,0xffffd800,0x000002ff, 0xffffff98,0x00000006,0x3fffffe6,0x32000006,0x00fea9cf,0x77fffdc0, 0xffffdccc,0xfeccceff,0xfd805fff,0x000fffff,0xffffe800,0x4000005f, 0xeeeeeeec,0x220002ee,0x3ea4ffff,0x00002fff,0x000bfff9,0x0000bd00, 0x7fffcc00,0xff500002,0x009fffff,0x1ffffb80,0xfffb8000,0xd005ffff, 0x1fffffff,0x0bffa000,0x0000dff7,0x02ffffc0,0x22ffd400,0x0001ffe9, 0x3fffffe6,0x8000006f,0xfffffffe,0x00000002,0xfffffffb,0x3e000005, 0x20027c44,0xf981effb,0x883fffff,0x7d405ffe,0x05ffffff,0x7ffd4000, 0x0001ffff,0x00000000,0x93ffffd4,0x000bffff,0x0017ffe0,0x002be600, 0x7fe40000,0x3a00002f,0xfffdafff,0x3ff60001,0xf880001f,0xfffc9eff, 0x5fffdc01,0x0004fffb,0x3f27fff3,0x000001ff,0x000bfff3,0x5477ff40, 0x40004fff,0xffb9fffe,0x2000003f,0xfe9cfffa,0x0000006f,0xe8dfffa8, 0x800006ff,0x007c80fa,0xf9807fdc,0x203fffff,0x7ff405fd,0x01fffdaf, 0x3fffa000,0x0005fffc,0x5440cc00,0xfff80000,0x3fffe64f,0xff980002, 0xf7000005,0x00005fff,0x003fff80,0x83bfee00,0x10005ffc,0x00003fff, 0xfb837ff2,0x3ffe205f,0x007ffe62,0x7ffffec0,0x000004ff,0x00017ff2, 0xffffff50,0x540001ff,0x3fea0eff,0x3a000007,0x3ff623ff,0x40000002, 0x7fec3ffe,0x7cc00003,0x5c006d81,0x3ffe602f,0x3e203fff,0x83bfee05, 0x00005ffc,0x3e63fff7,0x000002ff,0xffe85ff7,0x7f540000,0x01ff5c0c, 0x006fc800,0x3ffe6000,0x2000007f,0x00003ff9,0x7dc17fe2,0xffb8001f, 0xff100002,0x407fea09,0xfe881ffc,0xfff30005,0x0001ffff,0x002ffc00, 0xffffe800,0x740003ff,0x3ff980df,0xffb80000,0x000dfb01,0x17fdc000, 0x00007fc8,0x017cc5e8,0xff301ae0,0xc807ffff,0x20bff105,0x40001ffb, 0x74c0eff8,0xb000006f,0x1fff89ff,0x00000000,0x000cb800,0x7fff4000, 0x32000005,0x6400003f,0x02fd403f,0x00017ec0,0xf9805fb0,0x200ef886, 0xb0001fd8,0x007fffff,0x077cc000,0xffa80000,0x40006fff,0x7f4404fb, 0x3e200000,0x01fe400e,0x77c40000,0x001fdc01,0x373fee00,0x04b8007f, 0x7fffffcc,0xfc82cc03,0x0037d404,0xe8817f20,0x9800002f,0x02fdc1ee, 0x00000000,0x00039300,0x06764400,0x03100000,0x00130000,0x026000a6, 0x00130000,0x80062062,0xdd100009,0x00000bdd,0x00000988,0x17777640, 0x80022000,0x22000009,0x00022001,0x00262000,0x40000044,0x000befc9, 0x7fcc0198,0x3803ffff,0x2a600130,0x07910000,0x00001760,0x00000000, 0xe9800000,0x0002efff,0x00000000,0x00020000,0x36a00000,0x00000002, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00400000,0x7fcc0000,0x0003ffff,0x00000000,0x26600000,0x99999999, 0x98809999,0x19999999,0x55555553,0xaaa98355,0xee8002aa,0x0000fb32, 0x20000000,0xabcdcba8,0x5403ec01,0x99aceedc,0x40099999,0x03ffffea, 0x26666600,0x99999999,0x55555019,0x00001555,0x0006aaa6,0xaaaaaa98, 0x554c1aaa,0x26662aaa,0x99999999,0x99880999,0x01999999,0x2b332ea2, 0x4ccc4480,0x99999999,0x26666620,0x09999999,0x26666660,0x32a60001, 0x0dc01bcc,0x33333333,0x01333333,0x33333331,0x7fcc0033,0x2003ffff, 0xaaaaaaa9,0x5554c1aa,0x310002aa,0x05799d95,0xffed80dc,0xffffffff, 0xffec81de,0xf54effff,0xbfffffff,0xffffda85,0x20fcc003,0x300003f8, 0x3379ddb9,0x00133333,0x3ffffae2,0x0bffffff,0xfd301fe4,0xffff7bff, 0x805fffff,0x01fb31ee,0x3fff7200,0xffffffff,0xfffd504d,0x20003fff, 0xfefffedb,0x000befff,0xfffffff5,0xffda85bf,0x3ffb63ff,0xffffffff, 0xffec81de,0x704effff,0xfffdffff,0xff71e239,0xffffffff,0x7fff645d, 0xefffffff,0xffffd104,0xfc8800df,0xffffffff,0xd8be22ce,0xfffffffe, 0xc81defff,0xeffffffe,0x3ffe6004,0x2a003fff,0xffffffff,0x7ffed42d, 0x3b66003f,0xffffffff,0x07e62dff,0xfffffd10,0x3a2001df,0xfe880fff, 0x6406ffff,0x7c8000ff,0x98000db0,0xfdbbfffd,0x2fffffff,0xdffffb80, 0x3fff260a,0x5409f73f,0x7f43ffff,0x02ffffff,0x07f107e6,0xffff7000, 0x6c00bfff,0x001fffff,0x5effff4c,0xffffb510,0x3ffa2005,0x7e406fff, 0xfffd100f,0x2001dfff,0x300fffe8,0x4c419ffd,0x887ffffd,0xfffffffd, 0x3fffea02,0x1000ffff,0x44005ffd,0xadfffffd,0xfffdb999,0xfe882ffe, 0x00efffff,0x01fffd10,0xfffff300,0xfe88007f,0x6406ffff,0x3f2000ff, 0x220aefff,0xfeffffb9,0xfffb801f,0x44003fff,0x3fea02ff,0x7d407fff, 0x81f50003,0x2a0004f8,0x7f42ffff,0x02ffffff,0x13ffff62,0xffffff30, 0x7fffc40b,0x9ffffa86,0x41f20099,0xfd00006d,0x001fffff,0x0fffffe4, 0x9ffff900,0xdffff980,0xffffa800,0x01fd407f,0x3fffffee,0x17fc4003, 0xa809ffd0,0xff307fff,0x801fffff,0x7ffffffa,0x002fdc00,0x3bfffff3, 0xffffe980,0xfffff702,0xff88007f,0xfff30002,0x50007fff,0x80ffffff, 0xfd3003fa,0x2e005fff,0x801fffff,0x3ffffffa,0x400ff800,0x02fffffe, 0xf80003f2,0x0003f20d,0x43ffffcc,0x999ffffa,0xfffff100,0x3ffea009, 0x3ffa01ff,0xfff884ff,0x83f5005f,0xb00003f8,0x00ffffff,0x1fffffb8, 0xffffe880,0xffff3006,0xfffd003f,0x07e405ff,0x3ffffea0,0x0ff8003f, 0x001fff90,0x7ec0fff3,0x802fffff,0x1ffffffe,0x4007f200,0x05fffffb, 0x817ffe40,0x3ffffffa,0x000ff800,0xffffff30,0x3ffa0007,0x3f202fff, 0xffffc800,0x7fcc002f,0xffa801ff,0x8002ffff,0xfffa807e,0x013a05ff, 0xffbff700,0x7ff40009,0xfff884ff,0xfffe805f,0x3fa000ff,0x3fe06fff, 0xfff03fff,0x37e003ff,0x0001f910,0x3fffff60,0x7ffdc007,0xffd801ff, 0x36000eff,0x400fffff,0x05fffffa,0x3fea013a,0x8002ffff,0xbfff307e, 0x303fdc00,0x0bffffff,0xffffff70,0x80374009,0x05fffffa,0x205ffb00, 0x2ffffffa,0x0007e800,0x3fffffe6,0xfff50003,0x02740bff,0x1fffffdc, 0x1fff9800,0xfffffa80,0x07d8002f,0x1fffffd0,0x00003f30,0x0003bfb1, 0x03fffff8,0x403fffff,0x05fffffc,0x7ffffd40,0xfffff984,0x5fffff03, 0x3fbfee00,0x3600004f,0x007fffff,0x0fffffdc,0x3ffffee0,0x7ffcc003, 0xffe805ff,0x1f980fff,0xfffffa80,0x07d8002f,0x800ffff5,0x7fff407d, 0x7c400fff,0x007fffff,0xff3007f1,0x0001ffff,0xffa817f4,0x8002ffff, 0x3e60007d,0x003fffff,0x3fffffa0,0x4401f980,0x006fffff,0x400ffd40, 0x2ffffffa,0x7007d800,0x909fffff,0x7ec0000d,0x7fcc0004,0xfff03fff, 0x3fea05ff,0x4001ffff,0x1ffffffd,0x1fffffcc,0x03fffff8,0x002f6e20, 0xffffb000,0xffb800ff,0x3e201fff,0x001fffff,0x2fffffe8,0x7ffffdc0, 0xf5006c84,0x005fffff,0x3ff20fb0,0x3ea003ff,0x3fffee00,0xffd803ff, 0xb802ffff,0x7ff4400f,0x40003fff,0xfff502fb,0xb0005fff,0x7fcc000f, 0x0003ffff,0x13ffffee,0x3ff601b2,0x80003fff,0xffa801fd,0x8002ffff, 0xfff1007d,0x03f81fff,0x1fff1000,0x7ffd4000,0xffff03ff,0x3fffa07f, 0x7e4006ff,0x86fffffe,0xf03fffff,0x0003ffff,0x7ec00000,0x4007ffff, 0x01fffffb,0x1ffffffa,0x7fffe400,0x3fe200ff,0x1fc0ffff,0xfffffa80, 0x07d8002f,0x05fffffb,0xf8803e20,0x807fffff,0x5ffffffa,0xfb805e80, 0x000fffff,0xfa817c40,0x002fffff,0x260007d8,0x03ffffff,0x3fffe200, 0x201fc0ff,0x0ffffffb,0x01f98000,0xffffffa8,0x007d8002,0x8ffffff2, 0x900000fa,0x40007fff,0x03fffff8,0x305fffff,0x0bffffff,0x7fde7dc0, 0x7e43ffff,0xff884fff,0x751006ff,0x0039dfdb,0x3ffff600,0x7fdc007f, 0xff501fff,0x0009ffff,0x3fffffee,0x7fffe403,0x4003ea3f,0x2ffffffa, 0xf707d800,0x019fffff,0xfff90070,0xff005fff,0x401fffff,0xffe802f9, 0x00006fff,0x3ffea059,0xd8002fff,0x3fe60007,0x0003ffff,0x1fffffe4, 0x7fc401f5,0x0007ffff,0x3ea007a0,0x002fffff,0x3e2007d8,0x1766ffff, 0x7ffc4000,0x7f40006f,0xff883fff,0xffc80fff,0x5004ffff,0x3fffeabf, 0x7ffcc4ff,0xffff985f,0xdeffa804,0x005ffffe,0xfffffd80,0x7ffdc007, 0xfff701ff,0x20007fff,0x5ffffff9,0x7ffffc40,0xfa801766,0x002fffff, 0xfff307d8,0x007fffff,0xfffff300,0xfffa80bf,0x3203ffff,0xffffa807, 0x000004ff,0xffffffa8,0x007d8002,0x3ffffe60,0x7c40003f,0x1766ffff, 0xffffff50,0x0040000d,0xffffffa8,0x007d8002,0x57ffffec,0x700002f8, 0x005fffff,0x2ffffd40,0x827fffcc,0x3ffffffe,0x3e26f980,0xb86fffff, 0x7e40ffff,0x7ec404ff,0x7fffe41f,0x7fec0004,0x5c007fff,0xb01fffff, 0x05ffffff,0x3fffe200,0xffd806ff,0x02f8afff,0x3ffffea0,0x07d8002f, 0x3ffffffe,0x40003fff,0x0ffffffe,0x3fffff60,0x09f106ff,0xffffffb0, 0x50000005,0x05ffffff,0x4000fb00,0x3ffffff9,0xfffd8000,0x402f8aff, 0x5ffffffc,0xa8000000,0x02ffffff,0x4c007d80,0x7bdfffff,0x3ffa0000, 0x40006fff,0x640ffffc,0x3fe05fff,0x402fffff,0x3fe20ef8,0xd507ffff, 0xffb37fff,0xdffb005f,0x0bffffe0,0xffffd800,0x7fdc007f,0xffd01fff, 0x0005ffff,0x3fffffe2,0xffff9807,0x54007bdf,0x02ffffff,0x3ea07d80, 0xffffffff,0xf70002ef,0x207fffff,0xffffdbf9,0x01fa81ff,0xfffffff8, 0xa8000002,0x02ffffff,0x20007d80,0x3ffffff9,0xfff98000,0xd807bdff, 0x03ffffff,0xfa800000,0x002fffff,0xfe8007d8,0x004fffff,0xfffff500, 0xa80003ff,0xfe99effe,0x3fe204ff,0x202fffff,0x7fc40fe8,0x200fffff, 0xbdfffffc,0xffff9800,0x5fffff83,0x3fff6000,0x7dc007ff,0xf881ffff, 0x01ffffff,0xfffff100,0xffd003ff,0x8009ffff,0x2ffffffa,0x5c07d800, 0xffffffff,0x4001dfff,0x7ffffff8,0xfff51f90,0x0dd09fff,0x3fffffe0, 0x8000001f,0x2ffffffa,0x0007d800,0x3fffffe6,0xffd00003,0xf009ffff, 0x05ffffff,0xf5000000,0x005fffff,0xf5000fb0,0x001fffff,0x3ffffa00, 0x00005fff,0x9dfffff9,0xffff9801,0x3fa01fff,0xffffff01,0x44bae05f, 0xfffc8001,0xffffe86f,0x3ff60006,0x5c007fff,0x981fffff,0x1fffffff, 0x3fffe000,0xfa802fff,0x000fffff,0x7fffffd4,0x807d8002,0xfffffffc, 0x002fffff,0x7fffffe4,0x3ffe4f82,0x1fc47fff,0x7ffffc40,0x000000ff, 0xffffffa8,0x007d8002,0x3ffffe60,0xf500003f,0x801fffff,0xfffffff8, 0x80000001,0x2ffffffa,0x0007d800,0x00dfffff,0x3fafe600,0x000fffff, 0x018975c0,0x7ffffcc0,0x05fb01ff,0x7ffffffc,0x0017f4c2,0x37fffd40, 0x037ffff4,0xfffffb00,0xfffb800f,0xfff981ff,0x0000ffff,0x3ffffffe, 0xfffff002,0xfff5000d,0xb0005fff,0x3ffee00f,0xffffffff,0x3fe6003f, 0x7d45ffff,0x3fffff21,0x2003ee2f,0xfffffff9,0xa8000001,0x02ffffff, 0x20007d80,0x3ffffff9,0x3ffe0000,0xff9806ff,0x001fffff,0xffa80000, 0x8002ffff,0xff90007d,0x200005ff,0xfffff77d,0x3a60009f,0xff80002f, 0xc81fffff,0x3ffe203f,0x7f41ffff,0xf900001f,0xfffd05ff,0x7ec000df, 0x4007ffff,0x81fffffb,0xfffffff8,0x3ffe0001,0x9001ffff,0x0005ffff, 0x5ffffff5,0x400fb000,0xffffffd8,0x002fffff,0x3ffffffa,0xfff31ba0, 0x02f4bfff,0xffffff98,0x8000002f,0x2ffffffa,0x0007d800,0x3fffffea, 0x3f200004,0xf8802fff,0x02ffffff,0xfa800000,0x002fffff,0xf10007d8, 0x00001fff,0x3ffe29f1,0xd0007fff,0xd00003ff,0x85ffffff,0x7fc404fb, 0x260fffff,0x999befff,0x81800199,0x6fffffea,0x3fff6000,0x7dc007ff, 0xff01ffff,0x005fffff,0x3ffffe20,0xff1000ff,0xf50001ff,0x005fffff, 0xb3000fb0,0xffffffff,0x7fdc00df,0x5f33ffff,0xffffffd0,0x7c005f31, 0x03ffffff,0xffa80000,0x8002ffff,0xff30007d,0x05ffffff,0x3ffe2000, 0xffff000f,0xd1007fff,0xdddddddd,0x2a07dddd,0x02ffffff,0x20006e80, 0x00004ffd,0x7ffe41f9,0x4c003fff,0x999befff,0xfc800999,0x2a3fffff, 0xfff8805f,0x7fe47fff,0xffffffff,0x4003dfff,0xfffecfea,0x3f60006f, 0x4007ffff,0x01fffffb,0x7ffffffb,0x3ffe2000,0x6c007fff,0xf50004ff, 0x005fffff,0x4c000dd0,0xfffffffe,0xfff1003f,0x41f2ffff,0xbffffffb, 0x7ffc007d,0x0004ffff,0xffffa800,0x6e8002ff,0x3fffa200,0xffffffff, 0x6c0002ef,0x3fe004ff,0x004fffff,0x3fffff22,0x2a01bfff,0x02ffffff, 0x20006e80,0x80001ff9,0x7ffcc4f8,0x64006fff,0xffffffff,0x02efffff, 0x9ffffff7,0x26003be6,0x45ffffff,0xfffffffb,0xffffffff,0x7ff5400e, 0x0dffffd3,0x7fffec00,0x7fdc007f,0xff901fff,0x0009ffff,0x3fffffe6, 0x0ffcc005,0xffffa800,0x6e8002ff,0x3aa001b0,0x04ffffff,0x3fffff20, 0xff103fbf,0x09ffffff,0xfffffd80,0x8000006f,0x2ffffffa,0x0006e800, 0x30000000,0x7e4003ff,0x005fffff,0xffffffd8,0xffff9803,0x6f8002ff, 0x00374000,0xfd81fb80,0x002fffff,0x3fffffee,0xffffffff,0x7ffcc0df, 0x0fe8dfff,0xfffff700,0xffff885f,0xffffffff,0xb106ffff,0x7ff45fff, 0x06e206ff,0x3fffffec,0x3fffea00,0xffff301f,0x2e0009ff,0x02ffffff, 0x20006e80,0x2ffffff9,0x7b06f800,0xffffd800,0x3fe6006f,0x00ffffff, 0x3ffffff2,0x7fcc001f,0x0007ffff,0xffff9800,0x6f8002ff,0x00010000, 0x800dd000,0x6ffffff9,0xffffc800,0xff9802ff,0x8003ffff,0x17c0005f, 0x505e8000,0x0bffffff,0x7ffffc40,0xffffffff,0xffd84fff,0x01feefff, 0x3fffff60,0xffffd306,0xffffffff,0xfe981fff,0x7fff42ff,0xbfff906f, 0xdfffffb0,0xffffa800,0x3fff601f,0xfb0006ff,0x000dffff,0xf98000be, 0x003fffff,0x00bb05f8,0x6ffffe88,0x7ffff400,0x7fcc05ff,0x0006ffff, 0x1ffffffd,0xf9800000,0x003fffff,0x440005f8,0x00002efd,0x3a000be0, 0x007fffff,0xffffffb8,0xffff8801,0x7cc003ff,0x01ea0003,0xd017d400, 0x03ffffff,0x7ffff4c0,0xffffffff,0xfff887ff,0x4002ffff,0x03ffffff, 0x3bbbffee,0xfffffffe,0x3fffa22f,0x6ffffe87,0x1fffff88,0x37ffffec, 0x3fffea00,0x3ffe200f,0xe8001fff,0x002fffff,0x440007a8,0x03ffffff, 0xfd81fcc0,0x7ffcc000,0x7fdc004f,0xe801ffff,0x003fffff,0xffffff70, 0x40100009,0x3ffffff8,0x001fcc00,0x03ffff20,0x01ea0000,0x7ffffcc0, 0x7fdc001f,0xd001ffff,0x00bfffff,0x75c02fc8,0x00026c0c,0x7fdc06e8, 0x4004ffff,0xfeeffffb,0xffffffff,0xfffffa82,0x7ffd4004,0xffd505ff, 0xfffd3003,0x2ffffe43,0x437ffff4,0x43fffffb,0x04fffffd,0xffff31dc, 0xffff900f,0xffa800bf,0x3ae05fff,0x00026c0c,0x2ffffff4,0x6c0bf200, 0xfff8005f,0x7fc4002f,0xf7006fff,0x0001ffff,0x3fffffec,0xd0162000, 0x00bfffff,0x40002fc8,0x003ffffc,0x4d819d70,0x3ffee000,0x7dc005ff, 0x001fffff,0x0dfffff7,0x2a037cc0,0x03e24fff,0x33be6000,0xfdcccccc, 0x00ffffff,0x009effa8,0x07fff662,0x07ffffe4,0xdffffd00,0x05fff101, 0x7f46ff80,0x7fc47fff,0xffa87fff,0x7ff40fff,0x3f602fff,0xdffff32f, 0xffffd100,0x7ff4001f,0xff500fff,0x0007c49f,0x7ffffdc0,0x81be6006, 0x7c002ffd,0xc8000fff,0x1003ffff,0x000bffff,0xffffff88,0x0df10004, 0x6fffffb8,0x001be600,0x13fbf620,0x93ffea00,0x640000f8,0x001fffff, 0x3fffffee,0xffff1001,0xff100bff,0x7fffd805,0x6c000172,0xffffffff, 0xffffffff,0x2fff803f,0x103ffc00,0x009fffff,0x07ffffee,0x0017ffcc, 0xfff89ff1,0xffcadfff,0xf887ffff,0xfff84fff,0xff100eff,0x3fffe29f, 0xfffd1004,0x3fea009f,0x3f601fff,0x001727ff,0x7ffffc40,0x2ff8805f, 0x007fff60,0x0017ffcc,0x00ffff98,0x00bfff60,0x3fffe600,0x7d4003ff, 0x7ffc401e,0xf8805fff,0x4c00002f,0xffd8001f,0x0001727f,0x077ffff4, 0xfffffb80,0x3fe6001f,0x880cffff,0xfb803fea,0x00fb9fff,0x003f8800, 0xfffffff1,0x03fff980,0x9813fe20,0x03ffffff,0x06ffffd4,0x003fffa0, 0x3f217fa2,0xcfffffff,0xecfffffd,0x307ffea1,0x803fffff,0xfff14ffd, 0xffe8800d,0x7fd404ff,0x7dc01eff,0x00fb9fff,0x3ffe6000,0xa880cfff, 0x7fec03fe,0xffe803ff,0x7ff40004,0x3ffd4004,0xffb10000,0x44019fff, 0x26005fd9,0x0cffffff,0x003fea88,0x0006b800,0xf73ffff7,0x7dc00001, 0xb801efff,0x01ffffff,0x7ffff540,0xffebceff,0xfff1003f,0x00007fff, 0xfd8003f2,0x402fffff,0x8800ffff,0x3be205fe,0xbefffea8,0x3ffff261, 0xfffb1003,0xb755355b,0x3fe605ff,0xf31effff,0x905fffff,0xfd315dff, 0xf3003fff,0x3fff93df,0x3ffee000,0xfb710adf,0x22009fff,0x03ffffff, 0xffea8000,0xebceffff,0xfd803fff,0x40aeffff,0x0003ffe9,0x8001ffb8, 0x800004ff,0xdffffffb,0xfffecaac,0xffea8002,0xebceffff,0x00003fff, 0x10001eb8,0x07ffffff,0xffb10000,0xb8813bff,0x0beffffe,0xffff9000, 0x19ffffff,0xeffc9800,0x9f100002,0xffff9800,0x7f4406ff,0xba9aadff, 0x2204ffed,0x7fecc0ee,0xdfffffff,0xdd910002,0x579dffff,0xeffda801, 0x77ff5c0b,0x3fffa602,0x001dffff,0x33ffffaa,0x75c40000,0xffffffff, 0x4c001cef,0x0002effc,0x7fffe400,0x0cffffff,0x9511db00,0xfffddfff, 0x2200001b,0x3f90005f,0x2a200000,0xfffffffd,0x0000dfff,0x7fffffe4, 0x000cffff,0x005ecc00,0x3bff2600,0x4c000002,0xfffffffd,0x0bdfffff, 0x32a60000,0x0009abcc,0xc8000000,0xffe8002f,0xa802ffff,0xffffffec, 0x1fd802de,0x5665d4c0,0x10000009,0x80088000,0x2ea60008,0x40000abc, 0x22000000,0x1abcccaa,0x00000000,0x99953000,0xb8001357,0x37997500, 0x37000001,0x000e6000,0x5d4c4000,0x0001abcc,0xbccca980,0x0000009a, 0x00000001,0x54c00000,0x19abcccb,0x00000000,0x00000000,0x20003fe2, 0x6ffffffb,0x00031000,0x00000062,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x3ffa0000,0xfff88001, 0x0003ffff,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x75400000,0x4000dfff,0xfffffffb, 0x0000002f,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0xfffff900,0x75407dff,0xffffffff, 0x0000ffff,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x40000000,0x0005eeea,0x6664c000,0x200002cc,0x0005eee9, 0x00000000,0x30336000,0x0000007b,0x9980001c,0x99999999,0x99999999, 0x00099999,0x41cc9800,0x5d4405ec,0x40002bcd,0x000001ca,0x65c006e4, 0x05d50000,0x00003930,0x02cccca8,0x40174400,0x333300e9,0x33333333, 0x90000133,0x00099999,0xcccc9800,0xddd10002,0x000bdddd,0x0005dc40, 0x01dffb00,0xfc800000,0x0000efff,0x00fffd40,0x07f60000,0x0001fd10, 0xb3bff300,0x000000df,0x200007cc,0xfffffec8,0xffffffff,0xffffffff, 0x3f200002,0x3f64ffbc,0x37ffee07,0x8002effe,0x7c45ffff,0x82fcc00d, 0xfb101ff9,0x3fe80009,0x0001fee0,0xffffff10,0x01ff0000,0xfd903fc4, 0xffffffff,0x80005bff,0x01fffff9,0x7ff40000,0x30000fff,0x0ffffffb, 0x3ffea000,0xff00002f,0x0000000b,0x003bfffe,0x27fcc000,0x3e600000, 0x07ff302f,0x7fdc0000,0x00000fff,0x0013f600,0xffffe880,0xccccceff, 0x2fffffec,0x2bf90000,0xffb0fffb,0x982fffa0,0x2a002fff,0x5c0fffff, 0x1ff700ef,0x2217fec0,0x40000ffe,0xffc84ffa,0x7e400002,0x003fffff, 0x4d67fec0,0x806ffca9,0xffffffe8,0x3200002f,0x0002ffff,0x7fffdc00, 0x7c0004ff,0x0007ffff,0x0dffffb0,0x009d3000,0x3e600000,0x00000eff, 0x00026c40,0x21ffec00,0x00006ffa,0x01eeec80,0x3e200000,0x200000ff, 0x4ffffffa,0x17fff540,0x9ffd4000,0x1ff67ffd,0x7ec17ff6,0xffb001ff, 0xff887fff,0x027fe41f,0x7ccfffe6,0xd00003ff,0x3ffa2bff,0x7c400006, 0x0fffffff,0x3ffe6000,0x2fffffff,0xfffff300,0xe80000bf,0x00002fff, 0x7ffffc40,0x20000fff,0x007fffff,0xffffff00,0x20660001,0x000000a8, 0x001dff90,0x22066000,0x3000000a,0x3ff29fff,0x2000002f,0x000a8819, 0xfffc8000,0x3e600003,0x004fffff,0x00005ff9,0x3fea5ffd,0xff31ff63, 0x3fff603f,0xffff5003,0x5fff701f,0x001fffb1,0xfffbfffb,0x7d40000d, 0x1ffffeff,0x7fec0000,0x03fffaaf,0x7fffe400,0x2004ffff,0x5ffffff8, 0x3fe60000,0x8000002f,0xff9bfffc,0x3fa0004f,0x00007fff,0x00dffffb, 0xfd0bfee0,0x0000001f,0x00001fff,0xfd0bfee0,0x2000001f,0xfffffffc, 0x2e000005,0x07ff42ff,0xff100000,0x40000dff,0x4ffffff9,0x000bf600, 0x445fff30,0x3ee3fec0,0xfffd02ff,0x7fff4009,0x3ffffa04,0xf1003fff, 0x05ffffff,0xfffe8000,0x00005fff,0xf30f7fcc,0xb80001ff,0x04ffffff, 0x7ffffc40,0x3200004f,0x000003ff,0x221fff88,0xd0001ffe,0x000fffff, 0x0bfffe60,0x227fec00,0x00001fff,0x000ffcc0,0x89ffb000,0x00001fff, 0xffffff10,0x4000003f,0x7ffc4ffd,0x2e000001,0x002fffff,0xfffff100, 0x17cc009f,0x3fff6000,0x363fec02,0xff905fff,0x0b98003f,0x7ffffd40, 0x7fe4006f,0x00006fff,0xffffff98,0x7f400000,0x04fe880e,0xcedc9800, 0xfff88001,0x00004fff,0x00000ffa,0x44077ec0,0xfd0005fe,0x0000ffff, 0x20000ba8,0x2fdc1ee9,0x54c00000,0x4c000000,0x02fdc1ee,0x3ff20000, 0x00004fff,0x2e0f74c0,0x4000005f,0x06fffffe,0xffff1000,0x206a09ff, 0x3e60002e,0x7ec03fff,0x17fffe47,0x00002db8,0x7fffff40,0x7ffc4002, 0x000001ff,0x009ffffb,0x404fa800,0x00000fe8,0xfff10000,0x00009fff, 0x00000154,0x6c00df98,0xffe8001f,0x000007ff,0x00000000,0x00000000, 0x00000000,0xdddd1000,0x0000001b,0x80000000,0xfffffffa,0xff880001, 0x5b04ffff,0x6c000590,0x6c02ffff,0x7fffd47f,0x0000002f,0x13bbbaa0, 0x00000000,0x00000000,0x00004c00,0xff880000,0x0004ffff,0x00000000, 0x004c0031,0x3fffff40,0x26000000,0x99999999,0x88099999,0x99999999, 0x99530001,0x21b80379,0x99999999,0x80999999,0x99999998,0x00000019, 0x26666600,0x99999999,0x99998809,0x80019999,0xfffffffe,0xff880005, 0x5d04ffff,0xa8800110,0x01fffffd,0x3fa23fec,0x000dffff,0x55555550, 0x80000015,0x0acccba8,0x54c00048,0x5c01bccc,0x26666661,0x99999999, 0x99999880,0x32a01999,0x999aceed,0xf1009999,0x209fffff,0x99999998, 0x33100099,0x01333333,0x00000000,0x44fffffd,0x2203dedb,0x2aaaaaaa, 0xfffffed8,0x1defffff,0xfffffec8,0x322004ef,0xffffffff,0x8be22cef, 0xffffffed,0x81deffff,0xffffffec,0x0380004e,0xfffdb000,0xdfffffff, 0xfffd903b,0x8009dfff,0xffffebf9,0x440000ff,0x84ffffff,0xb80002f8, 0xffffffff,0x7fd81eee,0xffffff98,0xfea8002f,0x261fffff,0x99999999, 0x70099999,0xfffdffff,0x2001e239,0xffffffc8,0x222cefff,0x3fffb62f, 0xefffffff,0xfffec81d,0xe984efff,0xfffbdfff,0x02ffffff,0x9ffffff1, 0x3ffffa60,0x800fffff,0xffffffeb,0x3333313f,0x13333333,0x99999880, 0xfffd0199,0x3fffeeff,0xfc881fff,0x207fffff,0xffffffe8,0xffd1000e, 0x7ec4001f,0x99adffff,0xfefffdb9,0xfffe882f,0x1000efff,0x0001fffd, 0x00003e60,0xfffffe88,0xfd1000ef,0x360001ff,0xffffff77,0xff880009, 0xfc84ffff,0xffe80002,0xffffffff,0x507fd80f,0x9fffffff,0x3fffa000, 0xffd911ff,0xffffffff,0xffe985bd,0x3ff6620c,0x362007ff,0x9adfffff, 0xefffdb99,0xffe882ff,0x000effff,0x201fffd1,0x743ffffa,0x2fffffff, 0xffffff10,0xfffe8809,0x2006ffff,0x5c1fffd8,0xffffffff,0x4c03efff, 0xeffffffe,0xfffffe80,0xffffdefa,0xfff100ef,0xffb80fff,0x4003ffff, 0x26002ff8,0x01dfffff,0x17ffff4c,0xffffffb8,0x17fc4003,0x09fb0000, 0xfffb8000,0x44003fff,0xf10002ff,0x3ffffe29,0x7c40007f,0x544fffff, 0xd80002ff,0xffffffee,0x0ffb05ee,0x3fffffa2,0x64000eff,0x881fffff, 0xfffffffe,0x013ffa02,0x200ffff5,0x1dfffff9,0x7ffff4c0,0xfffff702, 0xff88007f,0xdffff102,0x33ffff50,0x3ffe2013,0xe8804fff,0x4fffffff, 0x5017fc00,0xffffffff,0xffd88003,0x3fffa01e,0x3fa63fff,0x3fe05fff, 0x7d407fff,0x003fffff,0xf7000ff8,0x800bffff,0xf502fffc,0x007fffff, 0x00001ff0,0x0003ffe2,0xfffffa80,0x0ff8003f,0x641f9000,0x03ffffff, 0x3fffe200,0xffc98cff,0x2600002f,0x804fffff,0xafe887fd,0xeffffffe, 0x3ffee000,0xfff501ff,0x7e40bfff,0xff9800ff,0xffffb807,0x7fe4005f, 0xffff502f,0xff0007ff,0x3ffffa01,0x5ffff884,0xfffff880,0xfff3004f, 0x005fffff,0x3ee007ec,0x01ffffff,0x401ffa80,0x84fffffe,0x02fffff9, 0x80fffffd,0x2ffffffa,0x5007e800,0x00bfffff,0x540bff60,0x02ffffff, 0x00007e80,0x000ffff2,0xfffffa80,0x07e8002f,0xf989f100,0x006fffff, 0x3ffffe20,0xffffffff,0x3ee00002,0xd802ffff,0x897f447f,0xfffffffd, 0xffff7000,0x3ffe603f,0xff304fff,0x3fdc00bf,0x3ffffea0,0x5ffb0005, 0x3ffffea0,0x07e8002f,0x40fffffe,0x401fffff,0x4ffffff8,0xfffff300, 0x2003ffff,0xfffd007c,0x90009fff,0xfffd007f,0x3ffe01ff,0xfffd06ff, 0xfffa80ff,0xd8002fff,0xffff9807,0x3a0000ff,0xffff502f,0xfb0005ff, 0x3fe20000,0x200006ff,0x2ffffffa,0x0007d800,0xfffb03f7,0x20005fff, 0xeffffff8,0x02ffffec,0x3fff2000,0x2a9800ff,0x7fd437ec,0x7006ffff, 0x203fffff,0x4ffffff9,0x00ffff50,0x3fe607d8,0x0000ffff,0x7fd40bfa, 0x8002ffff,0xffff307d,0x3fffe07f,0x7ffc402f,0xf3004fff,0xfffffffb, 0x00f9001d,0x3fffffe6,0x1be2000f,0x3fffff40,0x1fffff90,0x0fffffd0, 0xffffffa8,0x407d8002,0x3fffffe8,0x817dc000,0x2ffffffa,0x0007d800, 0x5fffff70,0x3fea0000,0x8002ffff,0x0bd0007d,0x3fffffea,0xfff10005, 0x7f449fff,0x3a00002f,0x0007ffff,0x74c13fe6,0x803fffff,0x01fffffb, 0x9ffffff1,0x0fffff20,0xe880fa80,0x003fffff,0xfa817dc0,0x002fffff, 0xfff307d8,0x3ffe07ff,0x7fc403ff,0x3004ffff,0xfffffb3f,0x0f900bff, 0x7ffffec0,0x07f6005f,0x3fffff40,0x3fffff70,0x0fffffd0,0xffffffa8, 0x407d8002,0x0ffffffb,0x817c4000,0x2ffffffa,0x0007d800,0xdfffffd0, 0x3fea0000,0x8002ffff,0x2fa8007d,0x3fffffa0,0xff88001f,0x7c44ffff, 0xf100002f,0x000bffff,0x3602ffdc,0xb806ffff,0x101fffff,0x09ffffff, 0x0bfffff6,0x7dc07c40,0x000fffff,0xfa817c40,0x002fffff,0x3ffe07d8, 0xffff03ff,0xfff8803f,0xf3004fff,0x3fffffa3,0x03e404ff,0xffffff10, 0x09f3003f,0x3fffff40,0x7fffff70,0x0fffffd0,0xffffffa8,0x407d8002, 0x06fffffe,0x2a059000,0x02ffffff,0x80007d80,0xfffffffa,0xffa80001, 0x8002ffff,0x06e8007d,0x7fffffdc,0xfff88004,0x2fa84fff,0xfff30000, 0x740009ff,0xffe807ff,0x7fdc00ff,0xff101fff,0x2e09ffff,0x0cffffff, 0xfffd0380,0x20000dff,0xffff502c,0xfb0005ff,0x27fffe40,0x037fffc4, 0x7fffffc4,0x223f3004,0xffffffff,0x9001f202,0x0bffffff,0x74001fd0, 0x2a07ffff,0xe84fffff,0x5407ffff,0x02ffffff,0x3ea07d80,0x004fffff, 0xfffa8000,0xd8002fff,0xffe80007,0x005fffff,0xfffffa80,0x07d8002f, 0x66677cc0,0xfffdcccc,0x4000ffff,0x4ffffff8,0x00002f88,0x05fffff7, 0x2ffffc00,0x07fffa20,0x3fffff70,0x3ffffe20,0xffff304f,0x0007ffff, 0x9ffffff5,0xf5000000,0x005fffff,0x7fcc0fb0,0xfff985ff,0xfff8804f, 0xf3004fff,0x7ffffcc3,0x0f901fff,0xfffff880,0x0bee02ff,0xfffffd00, 0x7ffffd40,0x7ffffe85,0x7ffffd40,0x07d8002f,0x3ffffff6,0xa8000002, 0x02ffffff,0x40007d80,0xffffebf9,0x540000ff,0x02ffffff,0x6c007d80, 0xffffffff,0xffffffff,0x7fc4003f,0x5d04ffff,0xfc8015c0,0x0000ffff, 0x013ffffa,0xf700fff7,0x2203ffff,0x04ffffff,0x3ffffffe,0x36003fff, 0x02ffffff,0xffa80000,0x8002ffff,0x7ffdc07d,0x27ffe40f,0xfffff880, 0x83f3004f,0xfffffffb,0x8007c80e,0x6ffffffb,0xd000df10,0x540fffff, 0xe83fffff,0x5407ffff,0x02ffffff,0x3fe07d80,0x002fffff,0xfffa8000, 0xd8002fff,0xbbec0007,0x04ffffff,0x7fffd400,0x7d8002ff,0x400fe200, 0x7ffffff8,0x7fffc400,0x405904ff,0xfffd001f,0xfb8000ff,0x2605ffff, 0xffb805ff,0xff101fff,0x5409ffff,0xffffffff,0xff802eff,0x002fffff, 0xfffa8000,0xd8002fff,0xfffea807,0x02fffd9b,0x3ffffe20,0x03f3004f, 0xfffffff9,0x2000f90b,0x2ffffffe,0xe8001fc8,0x2e07ffff,0xe82fffff, 0x5407ffff,0x02ffffff,0x3fe07d80,0x001fffff,0xfffa8000,0xd8002fff, 0x53e20007,0x7ffffff8,0x7ffd4000,0xd8002fff,0x003f2007,0xffffffd8, 0x3ffe2002,0xa8004fff,0xffff1007,0xfd0000bf,0x503dffff,0xff7007ff, 0x3e203fff,0x404fffff,0xfffffffb,0x201dffff,0x1fffffff,0xfa800000, 0x002fffff,0x3f2007d8,0x00bdffff,0x7ffffc40,0x03f3004f,0x3ffffffa, 0x8003e43f,0x6ffffffa,0xe80027cc,0x2e07ffff,0xe80fffff,0x5407ffff, 0x02ffffff,0xff107d80,0x001fffff,0xfff50000,0xb0005fff,0x07e4000f, 0x7ffffff9,0x7ffd4000,0xd8002fff,0x009f1007,0xffffff98,0x3ffe2006, 0xe8004fff,0xffff3007,0x3fec007f,0x3fffffe6,0x802fec3f,0x01fffffb, 0x9ffffff1,0xfffff900,0x5fffffff,0xffffff10,0x0000001f,0x5ffffff5, 0x200fb000,0x000312eb,0xffffff88,0x203f3004,0xfffffff8,0x8001f22f, 0x3ffffffe,0x740003fa,0x3207ffff,0xfd07ffff,0xfa80ffff,0x002fffff, 0xfff307d8,0x0003ffff,0xffff5000,0xfb0005ff,0x313e2000,0x0dffffff, 0x7fffd400,0x7d8002ff,0x0005f900,0x5ffffffd,0x3fffe600,0x7ec004ff, 0xffff7005,0x3fec005f,0x7fffffcc,0x00dfb8df,0x3fffff70,0x3ffffe20, 0xfff7004f,0xffffffff,0xffff987f,0x00001fff,0xfffffa80,0x07d8002f, 0x00017f4c,0x3ffffe20,0x03f3004f,0x7fffffcc,0x000f90ff,0x7fffffd4, 0x0002fa8f,0x81fffffa,0xd06ffffe,0xa80fffff,0x02ffffff,0xff307d80, 0x005fffff,0xfff50000,0xb0005fff,0x07ee000f,0x3ffffff6,0xfff50002, 0xb0005fff,0x01ff100f,0xfffff700,0x3fe600df,0x1004ffff,0x36009ffb, 0x000fffff,0x7fcc1ff6,0x4fffffff,0x7fffdc00,0xffff101f,0x6c4009ff, 0xffffffff,0x3fe62fff,0x002fffff,0xfffa8000,0xd8002fff,0x00fff407, 0x3ffe6000,0xf3005fff,0xffffa803,0x00f96fff,0xfffffd80,0x40006fcf, 0x83fffffe,0x02fffff8,0x80fffffd,0x2ffffffa,0x3e07d800,0x03ffffff, 0xffa80000,0x8002ffff,0x0bd0007d,0x3fffffea,0xfff50005,0xb0005fff, 0x03ffd00f,0xfffff100,0xff5007ff,0x401dffff,0x03ffffb8,0x0dffffd0, 0x2607fd80,0xfffffffe,0x7ffdc001,0xfff101ff,0x30009fff,0xfffffffb, 0xffff8dff,0x00003fff,0xfffffa80,0x07d8002f,0x26fbffe6,0x80019999, 0x5ffffff9,0x9003f300,0xbfffffff,0xf98000f9,0x1fffffff,0x7fff4000, 0x3f623fff,0x3fe05fff,0x7d407fff,0x002fffff,0x3ffe06e8,0x0004ffff, 0xffffa800,0x6e8002ff,0x202fa800,0x1ffffffe,0xffffa800,0x6e8002ff, 0x37fffaa0,0x7ffdc000,0x202fffff,0xffffffe8,0xedcccdef,0x02ffffff, 0x09fffff0,0xc807fd80,0x0effffff,0x3fffee00,0xffff101f,0x4c0009ff, 0xfffffffe,0x3ffffe3f,0x000004ff,0xffffffa8,0x206e8002,0xfffffffc, 0x3dffffff,0x7ffff440,0xf9803fff,0xffffb001,0x000fffff,0xffffffb0, 0xffd0000b,0xf9ff7fff,0x201dffff,0xbffffffb,0xfffff500,0x0dd0005f, 0x7fffffec,0xa8000006,0x02ffffff,0xe8006e80,0x7fffdc06,0xfa8004ff, 0x002fffff,0xfff906e8,0x407dffff,0xffffffea,0x10ffffff,0xfffffffd, 0xffffffff,0xffffffff,0xffff1003,0x7fd8005f,0xffffd300,0x7fdc00bf, 0xff101fff,0x3609ffff,0xfffd5000,0x7fec9fff,0x0006ffff,0xffffa800, 0x6e8002ff,0x3ffffee0,0xffffffff,0x3ba20eff,0xffffffff,0xf303efff, 0x3ffa2003,0x007fffff,0xfffff880,0xfe80004f,0xfff57fff,0xf1017dff, 0xffffffff,0xffff303f,0xdf0005ff,0x7ffffcc0,0x8000007f,0x2ffffff9, 0x4006f800,0xcccccef9,0xfffffdcc,0x7cc000ff,0x002fffff,0x000006f8, 0x00027dc0,0x005fb800,0x1fffff10,0x007fd800,0x17ffffe4,0xfffffb80, 0xfffff101,0x000f609f,0x4dfffffb,0x7ffffff9,0xf9800000,0x002fffff, 0x3fe206f8,0xffffffff,0x06ffffff,0x98003fc8,0x3fe6001f,0x007fffff, 0xfffff880,0xfe80004f,0x5dcc7fff,0x0bfa2000,0x7ffffcc0,0x05f8003f, 0x7ffffff4,0x4c000000,0x03ffffff,0x6c005f80,0xffffffff,0xffffffff, 0x7fcc003f,0x8003ffff,0x0000005f,0x0000dfb1,0x001ff600,0x06ffff98, 0x1107fd80,0x13fffea0,0x7ffffdc0,0xfffff101,0x0017609f,0x8dffffd1, 0x0ffffffe,0x7cc00000,0x003fffff,0x7f4c05f8,0xffffffff,0x00ffffff, 0x2000bfb1,0x7d4001f9,0x007fffff,0xfffff880,0xfe80004f,0x80007fff, 0x22004fe9,0x03ffffff,0x2e01fcc0,0x04ffffff,0x3e200800,0x003fffff, 0xf1001fcc,0x3ffe2007,0x44007fff,0x03ffffff,0x0001fcc0,0x03ffb800, 0xffa80000,0x3fe20004,0xfd8003ff,0x705ffc87,0x2a00dfff,0x101fffff, 0x09ffffff,0xf30003f6,0xffb89fff,0x0004ffff,0x3ffe2008,0x4c003fff, 0xfffb803f,0xffffeeee,0xf902ffff,0x3e60007f,0xfffc8001,0x880007ff, 0x04ffffff,0xffffe800,0xffe80007,0x7fff4001,0x7e4005ff,0xffffd802, 0x2c40007f,0x3fffffa0,0x017e4005,0x6c001f90,0x02ffffff,0x7fffff40, 0x017e4005,0xffe80000,0xd8000005,0x220006ff,0x8000ffff,0x7ffc47fd, 0x6fff881f,0x7ffcc570,0xfff100ff,0x3f609fff,0xffff8005,0xfffffd82, 0x02c40007,0x17fffffa,0x5405f900,0xe9801ffe,0xffd01fff,0x07e60009, 0x7fffec00,0xff880007,0x0004ffff,0x07ffffe8,0x17ffc400,0x3fffee00, 0x1be6006f,0x7ffffc40,0xdf10004f,0xfffffb80,0x01be6006,0x4c004f88, 0x06ffffff,0x7ffffdc0,0x01be6006,0x7fc40000,0x8000007f,0x1000ffff, 0x01fffc41,0x7d47fd80,0xffd01fff,0x265ffb07,0x2207ffff,0x04ffffff, 0xf8005ffb,0xff880fff,0x0004ffff,0xffb80df1,0x26006fff,0x3ffe206f, 0x837fc002,0x0006fff8,0x220003f3,0x0007fffe,0xffffff88,0xffe80004, 0x540007ff,0x44005fff,0x05ffffff,0x2002ff88,0x3ffffff9,0x00f7d400, 0x3fffffe2,0x02ff8805,0x2000bf20,0x2ffffffe,0x3fffe200,0xff8805ff, 0x20000002,0x0004ffff,0x6ffff400,0x8a7fd400,0x360005ff,0x3fffc47f, 0x441fff88,0xfff14fff,0x7ffcc07f,0xffb04fff,0x3fe6003f,0x3ffe602f, 0x54003fff,0x7fc401ef,0x8805ffff,0x3fe602ff,0x3fe2002f,0x13fffe04, 0x000fea00,0x007fff88,0xfffff880,0xfe80005f,0x40007fff,0x002ffff9, 0x7fffffcc,0x3fea880c,0xfffd8800,0x26200cff,0x3e6005fd,0x80cfffff, 0x2003fea8,0xb8000ff8,0x06ffffff,0x7ffffcc0,0xfea880cf,0x40000003, 0x00dffffc,0xfff70000,0x7ff401df,0x0001df57,0x7fe43fec,0x04ffc80f, 0x3fe29ffb,0x7ffcc06f,0xffb04fff,0xffd007ff,0xfffb1009,0x4c4019ff, 0x3e6005fd,0x80cfffff,0xe803fea8,0xe8800fff,0x7ffe405f,0x3f6000df, 0x7fd40005,0xff880007,0x0005ffff,0x07fffff8,0xffffe800,0x7ff54004, 0xebceffff,0x40003fff,0xdffffffb,0xfffecaac,0xffea8002,0xebceffff, 0x74003fff,0xf88001ff,0x03ffffff,0x7ffff540,0xffebceff,0x0000003f, 0xdfffffd0,0xd800003b,0x1dffffff,0x7f4f7fe4,0x3fec0001,0xcabeffd8, 0x3e603fff,0x1fffc9ef,0x7ffffd40,0xffffb05f,0xfe9815df,0x7fdc003f, 0xaacdffff,0x002fffec,0xfffffea8,0xfffebcef,0xfffb1003,0xb755355b, 0xfd1005ff,0x03bdffff,0x00e7ffdc,0x000ff700,0xffffff30,0xffa8000d, 0x0002ffff,0x7fffffc4,0xff9000ce,0xffffffff,0x22000019,0xffffffda, 0x000dffff,0x7ffffe40,0x00cfffff,0x37fffaa0,0x7ffdc000,0x002fffff, 0xffffffc8,0x000cffff,0x32200000,0x01efffff,0xfffc8000,0x7e441eff, 0x80000cff,0x3f6607fd,0x801bdfff,0x0cffffea,0x7ffff440,0x8ed82fff, 0xeefffca8,0x0000dfff,0xfffffb51,0x01bfffff,0xffffc800,0x0cffffff, 0xfeec8800,0x0abcefff,0x3fff2200,0x7f541eff,0x3effffff,0x000fb000, 0xfffffe88,0xe88003ff,0xffffffff,0x3660004e,0x00cfffff,0x5e6654c0, 0x0000009a,0x2f32ea62,0x9800001a,0x09abccca,0x7fffe400,0x2a03efff, 0xfffffffe,0x000fffff,0xabccca98,0x00000009,0x06b2a200,0x75100000, 0x00010035,0x20019880,0x40040000,0xffffffe8,0x2effffff,0x332ea017, 0x2000009b,0xabccba98,0xa9800001,0x009abccc,0x00008000,0x006b2a20, 0x04800000,0xfffeeb80,0xffffffff,0x333000ee,0x13333333,0x59530000, 0x00000001,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x664c0000,0x00002ccc, 0x99999980,0x33333199,0x33333333,0x33331013,0x40033333,0x04b800dc, 0x99930000,0x006665c5,0x00000000,0x32600000,0x0002cccc,0x20057000, 0x2200002b,0x003ccccc,0xb882f640,0x0e5c400c,0x00000c00,0x00260018, 0xcccca800,0xa8000001,0x001ccccc,0x66664000,0x0000000c,0xddcaa988, 0x00000abc,0x333332a0,0x3f200001,0x0000efff,0x7fff6dc4,0xffffffff, 0xfffdb5ff,0xdfffffff,0xfffd705b,0x4009dfff,0xfb100efa,0x36000009, 0xfff10fff,0x0000000b,0x2fffffb8,0x7e400000,0x00006fff,0xc803fb00, 0x5400002f,0x000fffff,0x3e61ff60,0xff103fff,0x3aa007ff,0x400003ff, 0x01fb805f,0xffff1000,0x000000df,0x00bffffb,0xfffa8000,0x000004ff, 0x3ffff6a0,0xefffdcce,0x7400000b,0x0004ffff,0x077fff40,0xfffb1000, 0x557fffff,0x2201dff5,0xfffffffe,0xdffb1000,0x3ffa0001,0x007ff4c1, 0x7ffc4000,0x003ffee2,0xfb000000,0x00007fff,0x3ffff200,0xb8000001, 0x32a21bff,0x800000ff,0x003ffffa,0x3f61ff60,0xff906fff,0x3fa00fff, 0x00000fff,0xffa813f6,0xff900000,0x0005ffff,0x7fffc400,0xe8000005, 0x00ffffff,0x3ee20000,0x4c401cff,0x00003feb,0x00bffff1,0xefff9800, 0x3fa20000,0xffffffff,0x2e00ffc1,0x04ffffff,0x0017fc40,0x2a5fff30, 0x00003fff,0xfd8bff50,0x0000002f,0x1ffffc40,0x36000000,0x00004fff, 0xfffff880,0x005fffff,0x3ffee000,0x1ff60006,0x07fffffe,0x07fffffa, 0x9fffff30,0x7fdc0000,0xfffdccef,0xff300006,0x00dfffff,0x7ffdc000, 0xb8000005,0x4fffffff,0xff500000,0x3220005d,0x5c0000df,0x00005fff, 0x000effc8,0x3ffffe20,0x41ffffff,0x7fd400ff,0x8003ffff,0x6c0000fe, 0x6fffdfff,0x3f600000,0x013fe20f,0x2e000000,0x00004fff,0x0dffb000, 0x3ea00000,0xffffffff,0x5c000000,0xb0000fff,0xffff90ff,0x3fffee0d, 0xffff8806,0x7400002f,0xffffffff,0xfb00001f,0x7fff75ff,0x3f600000, 0x8000005f,0xfd8efff8,0x400000ff,0x00003ffc,0x40001fd3,0x00005ffe, 0x0001ffd0,0xffffffc8,0x7c1fffff,0x7ffd400f,0xd8003fff,0x7cc0000f, 0x02ffffff,0x3ff10000,0x00006fa8,0x9ffb0000,0x80000000,0x00001ffd, 0xfffff700,0x000005ff,0x000ffee0,0x7fcc3fec,0xffd102ff,0x3ff2007f, 0x9800006f,0xffffffff,0xff500003,0x03ffd41d,0x77fc4000,0xc8000000, 0x2ffe45ff,0xffe88000,0x6e800001,0x0dff1000,0x3fe60000,0x7fcc0001, 0xffffffff,0x403fc1ff,0x3ffffff9,0x0007d800,0xbfffffb0,0x7d400000, 0x0001fd84,0xff880000,0x00000004,0x00007fb0,0x77fecc00,0x0000000c, 0xd80037e4,0x002ea07f,0x930002e6,0x44000005,0x01effffd,0x037fa000, 0x0000ffe6,0x0001df70,0x07ff3000,0x00007fea,0x0001bfd1,0x0013e600, 0x00003bee,0x0000d4c0,0x7fffffe4,0x41ffffff,0xfff9807f,0xd8003fff, 0xff100007,0x00003fff,0x01a814c0,0x50000000,0x000000bf,0x00154400, 0x00000000,0x02a80000,0x000ffb00,0x00000000,0x0d544000,0x13ee0000, 0x0001fd10,0x000054c0,0x402fd800,0x6c0005f9,0x000000ef,0x26000fdc, 0x0000000a,0xfffb0000,0xffffffff,0x9807f83f,0x03ffffff,0x00007d80, 0x00000000,0x00000000,0x00001880,0x00000000,0x00000000,0x00000000, 0x00001ff6,0x00000000,0x40000000,0x00260008,0x00000000,0x00c40000, 0x003ff700,0x013a0000,0x4ccc0000,0x99999999,0x99880999,0xd1999999, 0xffffffff,0x7f83ffff,0xfffff980,0x07d8003f,0x33333331,0x26200133, 0x09999999,0x26666666,0x09999999,0x99999988,0x00000199,0x00000000, 0x00355530,0x99999980,0x99999999,0x99999880,0x26661999,0x99999999, 0x99880999,0xb1999999,0x555554ff,0x555542aa,0x65402aaa,0x999aceed, 0x00009999,0x799d9531,0x0000dc05,0x4c000000,0x00001aaa,0x0d554c00, 0x3ff98000,0x477b2600,0x980a9998,0x99751007,0xed890159,0xffffffff, 0xec81deff,0x4effffff,0xfffffffd,0xf83fffff,0xffff9807,0x7d8003ff, 0xfffffd30,0x7001ffff,0xfffffffd,0x7ffff6c7,0xdeffffff,0xffffec81, 0x40004eff,0x99999999,0x99999999,0x99999999,0xedb80009,0xffffefff, 0x3b6000be,0xffffffff,0xec81deff,0x4effffff,0x3fffffb6,0x1defffff, 0xfffffec8,0x64ffb4ef,0x47ffffff,0xffffffeb,0xdfffe980,0xfffffffb, 0x366002ff,0xfffffffe,0x3e62dfff,0x99999881,0x00000099,0x77fff6dc, 0x00beffff,0x3fb6e000,0xeffffeff,0x6fd8000b,0x37ffee00,0x03ffffb7, 0xffb805f1,0x1cfffeff,0x3ffa20f1,0x000effff,0xd81fffd1,0xffffffff, 0x3fc1ffff,0x7ffffcc0,0x07d8003f,0x7fffff44,0x362006ff,0x3a201fff, 0x0effffff,0x1fffd100,0x3bb20000,0xffffffff,0xffffffff,0x03ffffff, 0x37fffa60,0xfffb510b,0xfe88005f,0x00efffff,0x01fffd10,0x7fffff44, 0xfd1000ef,0x47fd81ff,0x07fffff8,0x81ffffff,0x743ffffa,0x2fffffff, 0xdffff900,0x7fdcc415,0xa81ffeff,0x2fffffff,0xfd300000,0x2a217bff, 0x002ffffd,0x6ffff4c0,0xfffb510b,0x7fc4005f,0x5ffd8801,0x1ffffef2, 0xffd303e8,0x7fecc419,0x3fee07ff,0x4003ffff,0xffb82ff8,0xffffffff, 0x403fc1ff,0x3ffffff9,0x8807d800,0xfffffffe,0x017fc004,0x7fffffdc, 0x17fc4003,0xffc80000,0xdfffffff,0xffeccccc,0xf9003fff,0xf9809fff, 0x2000dfff,0x3ffffffb,0x017fc400,0x7fffffdc,0x17fc4003,0x7ff43fec, 0xfffb07ff,0x7ffc41ff,0xffffa86f,0x74c00999,0x7002ffff,0x203fffff, 0x2fffffe8,0xffc80000,0x7fcc04ff,0xc8000dff,0x4c04ffff,0x800dffff, 0xfe8806fb,0x3ffea0ff,0x413604ff,0x7d404ffe,0x3fea07ff,0x8003ffff, 0xfff980ff,0xffffffff,0x4c03fc1f,0x03ffffff,0xf3007d80,0x5fffffff, 0x4007ec00,0x3ffffffa,0x000ff800,0xf7ff3000,0x405fffff,0x403fffd8, 0x06ffffe8,0x3fffff30,0x3fffea00,0xff8003ff,0xffffa800,0xff8003ff, 0xfe87fd80,0xff907fff,0x7ff41fff,0xfff884ff,0xfff9005f,0xf98005ff, 0x3f201fff,0x0002ffff,0x3ffffa20,0xffff3006,0x3fa2003f,0xf3006fff, 0xf803ffff,0xfffd803f,0x7ffffcc2,0x3f216e02,0xff9800ff,0x3fffea07, 0x7e8002ff,0x3fffffe0,0x41ffffff,0xfff9807f,0xd8003fff,0xffff3007, 0x003fffff,0x7fd401f2,0x8002ffff,0x2000007e,0xffffaafc,0xffc802ff, 0x7fffec03,0x3ff6000e,0xfa800fff,0x002fffff,0xff5007e8,0x0005ffff, 0x21ff60fd,0x907ffffe,0x7c1fffff,0xff03ffff,0xfb803fff,0x0003ffff, 0x5c03fff3,0x002fffff,0x3ffff600,0x3ff6000e,0xfd800fff,0x2000efff, 0x00fffffd,0xfb801ff5,0xfffb86ff,0x31aa00ff,0x5c00bfff,0x3ffea07f, 0xd8002fff,0x3ffff207,0x1fffffff,0x7fcc03fc,0x8003ffff,0xfbf3007d, 0x1dffffff,0x2a00f900,0x02ffffff,0x00007d80,0x3feabf30,0x9002ffff, 0x7ffdc07f,0x7cc003ff,0xa805ffff,0x02ffffff,0xf5007d80,0x005fffff, 0x1ff60fb0,0x41fffffa,0x30fffffc,0x207fffff,0x202fffff,0x06fffff8, 0x00ffd400,0x05fffff7,0x3ffee000,0x7cc003ff,0x5c05ffff,0x003fffff, 0x2fffffcc,0x7cc05fb8,0xffc83fff,0x22d405ff,0x4007fffa,0x3ffea07d, 0xd8002fff,0x7ffff407,0x41ffffff,0xfff9807f,0xd8003fff,0xfb3f3007, 0x0bffffff,0x3ea00f90,0x002fffff,0x000007d8,0x3ffea1fb,0xf1002fff, 0x3fffe207,0xfe8001ff,0x5402ffff,0x02ffffff,0xf5007d80,0x005fffff, 0x1ff60fb0,0x41fffffa,0x30fffffc,0x207fffff,0x203fffff,0x03fffffd, 0x201fd800,0x02fffffb,0xffff8800,0xfe8001ff,0xf102ffff,0x003fffff, 0x5fffffd0,0xfd809f90,0xffd80fff,0x225c03ff,0x003ffffc,0x7fd403ea, 0x8002ffff,0x7ff4407d,0x1fffffff,0x7fcc03fc,0x8003ffff,0x23f3007d, 0xfffffffe,0xa803e404,0x02ffffff,0x00007d80,0x3fea3fa8,0x0702ffff, 0x3fffa07b,0xf90007ff,0x401fffff,0x2ffffffa,0x5007d800,0x05ffffff, 0x3f60fb00,0x7ffffe87,0x1fffff90,0x81fffffc,0x701fffff,0x01ffffff, 0x403f3000,0x02fffffb,0xffffe800,0xff90007f,0xfd01ffff,0x000fffff, 0x3ffffff2,0xf301fec0,0x3fe0bfff,0x1e401fff,0x0bfffff6,0xfa807c40, 0x002fffff,0xff7007d8,0x83ffffff,0xfff9807f,0xd8003fff,0x223f3007, 0xffffffff,0x5401f202,0x02ffffff,0x00007d80,0x3fea37c4,0x6882ffff, 0xfffa83b8,0x70004fff,0x07ffffff,0x7fffffd4,0x007d8002,0x5ffffff5, 0x360fb000,0xffffe87f,0xfffff907,0x27fffe41,0x837fffc4,0x7ffffff8, 0x807a0000,0x02fffffb,0x7fffd400,0xf70004ff,0xa87fffff,0x04ffffff, 0xfffff700,0x202fe87f,0xa82ffffc,0xe807ffff,0x7ffffdc1,0x203800cf, 0x2ffffffa,0x4007d800,0x1ffffeca,0x7fcc03fc,0x8003ffff,0x43f3007e, 0xfffffff9,0x200f901f,0x2ffffffa,0x0007d800,0x3ea0fe40,0xa82fffff, 0xfff70106,0x20007fff,0x5ffffff9,0x3ffffea0,0x07d8002f,0xffffff50, 0x20fb0005,0xfffe87fd,0xffff907f,0x7fffcc1f,0x4ffff985,0xffffff50, 0x0040000d,0x8bffffee,0x400beec9,0x3ffffffb,0xffff3000,0xfffb8bff, 0x30003fff,0x8bffffff,0xfff101ff,0xfffd01ff,0x9879809f,0xffffffff, 0x3fea0003,0x8002ffff,0xfe80007d,0x7c403fc1,0x003fffff,0x3f3006e8, 0xffffffb8,0x007c80ef,0x5ffffff5,0x000fb000,0x7d427cc0,0xc82fffff, 0x3fff6006,0x10002fff,0x0dffffff,0x7fffffd4,0x007d8002,0x5ffffff5, 0x360fb000,0xffffe87f,0xfffff907,0x0ffffb81,0x9027ffe4,0x0bffffff, 0x7dc00000,0xff92ffff,0x6c05ffff,0x02ffffff,0xfffff100,0xffffd8df, 0xf10002ff,0xf8dfffff,0xffff500f,0xfffff30d,0xff04c805,0xffffffff, 0xfff50007,0xb0005fff,0x3fd0000f,0xfff007f8,0xf0007fff,0x207e600b, 0xfffffffc,0xf5007c85,0x005fffff,0x40000fb0,0xffff506e,0x06f885ff, 0x3fffffa0,0xff10002f,0x540fffff,0x02ffffff,0xf5007d80,0x005fffff, 0x1ff60fb0,0x41fffffa,0x80fffffc,0xd9bfffea,0x7ec02fff,0x003fffff, 0x3fee0000,0xfffdbfff,0xd00fffff,0x05ffffff,0x3fffe200,0x7fff47ff, 0x10002fff,0x8fffffff,0xfff701ff,0xffffb0bf,0x80fc401f,0xfffffffa, 0x2002efff,0x2ffffffa,0x0007d800,0x03fc1fe8,0x4fffffe8,0x8027c400, 0xfffd01f9,0x7c87ffff,0xfffff500,0x0fb0005f,0x40bee000,0x2ffffffa, 0xf88037e4,0x01ffffff,0xfffff100,0x3fea03ff,0x8002ffff,0xfff5007d, 0xb0005fff,0x3a1ff60f,0xf907ffff,0x6401ffff,0x0bdfffff,0xffffff80, 0x0000002f,0x3fffffee,0xfffff31e,0xfffff10b,0x220003ff,0x1fffffff, 0xfffffff1,0x3fe20003,0x3a1fffff,0xffff902f,0xfffffb87,0x2e02e405, 0xffffffff,0xa801dfff,0x02ffffff,0x80007d80,0x803fc1fe,0x05fffffd, 0x98017dc0,0xffff101f,0x3e45ffff,0xfffffa80,0x07d8002f,0x205f8800, 0xaffffffa,0x006ffea8,0xfffffff3,0x7ffc0003,0xf502ffff,0x005fffff, 0x3ea00fb0,0x002fffff,0x0ffb07d8,0x20fffffd,0x00fffffc,0x000625d7, 0xfffffff1,0x40000003,0x0ffffffb,0x43ffffe4,0xfffffff9,0x3ffe0001, 0xff32ffff,0x003fffff,0x7fffffc0,0x6c13f62f,0x3e63ffff,0x203ffffc, 0xffc800f9,0xffffffff,0x7fd402ff,0x8002ffff,0xfe80007d,0xfb803fc1, 0x000fffff,0x7cc00ff3,0x3fffe601,0x0f90ffff,0x3ffffea0,0x07d8002f, 0x200fd800,0xfffffffa,0x006fffff,0xfffffff3,0x7ffc0001,0xf502ffff, 0x005fffff,0x3ea00fb0,0x002fffff,0x0ffb07d8,0x20fffffd,0x40fffffc, 0x40002fe9,0xfffffff9,0x20000001,0x82fffffb,0x40fffffc,0xfffffff9, 0x3ffe0000,0xff32ffff,0x001fffff,0x7fffffc0,0x7417f22f,0x5f35ffff, 0x205ffff9,0x3ee002f9,0xffffffff,0x3ea03fff,0x002fffff,0xe80007d8, 0xb003fc1f,0x00bfffff,0x4c007fd1,0x7ffd401f,0x0f96ffff,0x3ffffea0, 0x07d8002f,0x6677d400,0xffdccccc,0xfdbcffff,0xff1006ff,0x003fffff, 0x7fffffc0,0xffff501f,0xfb0005ff,0x3fffea00,0x7d8002ff,0xffd0ffb0, 0x3ff20fff,0x7ff40fff,0x7fc40001,0x002fffff,0x3fee0000,0xffb82fff, 0x7fc41fff,0x001fffff,0x3fffffe0,0xfffff11f,0x7c0003ff,0x21ffffff, 0xfffb06f9,0x3f6bffff,0x3f980fff,0x3f6200a8,0xffffffff,0xfff502ff, 0xb0005fff,0x3fd0000f,0x3e2007f8,0x01cfffff,0x98009fd3,0xfffc801f, 0x07cdffff,0xffffff50,0x00fb0005,0x7ffffc40,0xffffffff,0x3e62ffff, 0x3ffe006f,0x0002ffff,0xfffffff1,0x3fffea01,0x7d8002ff,0xfffff500, 0x0fb0005f,0x3ffa1ff6,0xffc80fff,0x3fe60fff,0x99999bef,0xfffff001, 0xdd1007ff,0xdddddddd,0xffb87ddd,0xffb82fff,0xfff81fff,0x0002ffff, 0xfffffff1,0x7fffffc1,0xff10002f,0xf81fffff,0xffffc80f,0xfff50eff, 0x982fc83f,0xffd9800f,0x6fffffff,0xffffff50,0x00dd0005,0x7f83fd00, 0x7fff4c00,0xecbcefff,0xf98003ff,0xffffb001,0x200fffff,0x2ffffffa, 0x0006e800,0x3ea007f2,0x4c2fffff,0x3ff6006f,0x0003ffff,0xfffffff1, 0x7ffffd40,0x06e8002f,0xffffff50,0x20dd0005,0x7ffd47fd,0xffc84fff, 0x3ff20fff,0xffffffff,0xff03dfff,0x009fffff,0x7ffffe44,0xfb81bfff, 0xfb82ffff,0xfd81ffff,0x003fffff,0xffffff10,0xfffffd8f,0xff10003f, 0xf90fffff,0xfffff105,0x9ffffd0b,0x0f603bfb,0xffffd300,0xf507ffff, 0x005fffff,0xd0000dd0,0x0007f83f,0xffffffd5,0x0001bfff,0x744007e6, 0x7fffffff,0xfffff500,0x0dd0005f,0x4013e600,0x2ffffffa,0x3f2006d8, 0x004fffff,0xffffff30,0x7fffd40b,0x6e8002ff,0xfffff500,0x0dd0005f, 0x7ffc5ff6,0x1fffffff,0x83fffff2,0xfffffffb,0xffffffff,0x7fffe40e, 0xfd8005ff,0x203fffff,0x82fffffb,0x81fffffb,0x4ffffffc,0xffff3000, 0xfffc8bff,0x30004fff,0x0bffffff,0xf7101ff1,0x3fb2207b,0x1aa00bde, 0x3faa001b,0x984fffff,0x02ffffff,0x80006f80,0x003fc1fe,0x3ff2a660, 0xf980001d,0x3ffe6001,0x3007ffff,0x05ffffff,0x2000df00,0x3fea006e, 0x6b82ffff,0x3fffe600,0xf70004ff,0x405fffff,0x2ffffff9,0x3006f800, 0x05ffffff,0x3f60df00,0x7fe40007,0x3fe20fff,0xffffffff,0x46ffffff, 0x6ffffff9,0xffffc800,0x3fee02ff,0xffb82fff,0xff981fff,0x0004ffff, 0x5ffffff7,0xffffff98,0xfff70004,0x3f205fff,0x80000005,0x2001ec2e, 0x86fffffd,0x3ffffff9,0x0005f800,0x03fc1fe8,0x03ff9000,0x007e6000, 0xffffff50,0x3ffe600f,0xf8003fff,0x01fb8005,0x3ffffea0,0x2a06982f, 0x7ffffec2,0xfffb0006,0xff980dff,0x8003ffff,0xfff3005f,0xf0007fff, 0x001ff60b,0x1fffff90,0xfffffe98,0xffffffff,0x7fff40ff,0xfb8007ff, 0x201fffff,0x82fffffb,0x01fffffb,0x0dfffffb,0x3ffff600,0xffffb06f, 0x3f6000df,0x2206ffff,0x000002fe,0x01761720,0xdffffd10,0xffffff10, 0x03f98007,0x7c1fe800,0xff500007,0x7cc0000d,0xfffc8001,0xff1007ff, 0x8007ffff,0x7c4003f9,0x7ffd4005,0x40d02fff,0x7fffc42e,0xfe8001ff, 0x4402ffff,0x03ffffff,0x8801fcc0,0x03ffffff,0xfd81fcc0,0x7fdc0007, 0xfff707ff,0xffffdddd,0xf985ffff,0x001fffff,0x7fffffdc,0x3fffee01, 0xffffb82f,0xffff101f,0xfd0003ff,0x2205ffff,0x01ffffff,0xfffffe80, 0x007fcc02,0x07640000,0x260007ec,0xfd04ffff,0x800bffff,0xe80002fc, 0x0003fc1f,0x0006ffd8,0x40007e60,0x007ffffd,0x17fffffa,0x8005f900, 0x7d4000fd,0x002fffff,0x7fe40fd4,0x54005fff,0x005fffff,0x0bfffffd, 0x2002fc80,0x05fffffe,0xfd817e40,0xb8ae2007,0x7547ffff,0xfe9801ff, 0xfffb81ff,0x7dc005ff,0x201fffff,0x82fffffb,0x01fffffb,0x17fffff2, 0xfffff500,0xffffc80b,0x7fd4005f,0xf5005fff,0x4000001b,0x0bfb00dd, 0x05ffff00,0x1bffffee,0x0006f980,0x07f83fd0,0x3fffd000,0x07e60000, 0x7fff4400,0x3ffee007,0x3e6006ff,0x01fd4006,0x7ffffd40,0x83ec002f, 0x0fffffe8,0x3ffffa00,0xfff7000f,0x7cc00dff,0x7ffdc006,0x3e6006ff, 0x801ff606,0xfff51ffe,0x17ffc4df,0xc81bfe00,0x001fffff,0x3fffffee, 0x3fffee01,0xffffb82f,0x3ffa201f,0x3a000fff,0x400fffff,0x0fffffe8, 0x3ffffa00,0x3fea000f,0x6c400002,0x017fec05,0x403fffe0,0x5ffffff8, 0x002ff880,0x7f83fd00,0xfffb0000,0x3ea0000d,0x3fe20003,0x3fe2007f, 0x8805ffff,0x3e2002ff,0xfff50006,0x5c005fff,0x3ffa206f,0xff5004ff, 0x44003fff,0x05ffffff,0x4002ff88,0x5ffffff8,0x202ff880,0xff3007fd, 0x3fffe67f,0x00bffe62,0x7404ff88,0x000effff,0x3ffffff7,0x7ffffdc0, 0xfffffb82,0x7fff4401,0xfff5004f,0x3a2003ff,0x5004ffff,0x003fffff, 0x001bfd30,0x805fb880,0x3001fffd,0xf9805fff,0x80cfffff,0x0003fea8, 0x0ff07fa0,0x3ffea000,0x6c0001ef,0x7d40005f,0x7fcc007f,0x880cffff, 0x6c003fea,0xff50003f,0x2007ffff,0x74405ffd,0x5404ffff,0x001effff, 0xffffff98,0x3fea880c,0xffff3000,0xd51019ff,0x07fd807f,0x7d4fffa0, 0xfffe85ff,0x05fe8800,0x3dffff70,0xfffff700,0x7ffdc03f,0xfffb82ff, 0xfe8802ff,0x7d404fff,0x4001efff,0x04ffffe8,0x0f7fffd4,0x5ff91000, 0x3bf91000,0x3ffff600,0x04ffe803,0xfffffd50,0xfffd79df,0xfe800007, 0x00003fc1,0xbdfffff9,0xfffb8005,0x3ee0001c,0xffea8007,0xebceffff, 0x5c003fff,0xf70003ff,0x40bfffff,0x04fffea8,0x5bffff70,0x3fff6e21, 0x7540004f,0xceffffff,0x003fffeb,0x7ffff540,0xffebceff,0x07fd803f, 0x367bfee0,0xfd880fff,0xaa9aadff,0x4002ffdb,0x9dffffd8,0x7fff5c40, 0x3f200bef,0xfc83ffff,0x2002ffff,0x0adffffb,0x9ffffb71,0xfffb8000, 0xfb710adf,0x00009fff,0x5e77fe44,0xfb97530a,0xffd8003b,0x4c0aefff, 0xc8003ffe,0xffffffff,0x00000cff,0x03fc1fe8,0x3ffee000,0xea802eff, 0xefffffff,0x00fb0003,0x7ffffe40,0x00cfffff,0x3bfff220,0x7ffcc001, 0xcdefffff,0xfffffecc,0x3ae2003f,0xffffffff,0x00001cef,0x3ffffff2, 0x000cffff,0x3ffff200,0x0cffffff,0x800ffb00,0x0cffffeb,0x7ff76440, 0x00abceff,0x3fff6600,0xffffffff,0xe9800bdf,0x20efffff,0xdffffff9, 0x3fae2000,0xffffffff,0x100001ce,0xffffffd7,0x0039dfff,0x7f64c000, 0xacdeffff,0x11db0001,0xfddfff95,0x80001bff,0x9abccca9,0x22000000, 0x00001981,0x001bba88,0x24000000,0x6654c000,0x40009abc,0xfffffffa, 0xffdd503f,0xffffffff,0xffffffff,0x0005ffff,0x2f332aa2,0x4000001a, 0x9abccca9,0x26000000,0x09abccca,0x000cc400,0x02000010,0x75300000, 0x03357999,0xfffffb80,0xffa9ffff,0x1fffffff,0xccaa8800,0x00001abc, 0x66655440,0x000001ab,0x00002200,0x32ea0170,0x000009bc,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00333332,0x00750000,0x000000ee, 0x32219997,0x260003cc,0x02c9803e,0x0004dec4,0x10000180,0x06e01797, 0x33220000,0x000003cc,0x99999700,0x4d800001,0x0003c880,0x3200a200, 0x004b800d,0x004ca880,0x4ccccc80,0x00c00000,0xc8000031,0x001c8801, 0x02eda800,0x00130000,0x32e00022,0x0000cccc,0xffffa800,0x4000004f, 0x27d402fb,0xff100000,0x17ffdcbf,0x813fa000,0xfb800ffa,0x20000dff, 0x4c0000f9,0x22dfffff,0x800002f9,0x01fffffd,0x7c400000,0x0002ffff, 0x300dfb80,0x000005fd,0xf5003f91,0x13f6203d,0xeffd9800,0x7fcc0002, 0x00001fff,0xc83fff70,0x00000eff,0x1fd801fd,0x7fcc0000,0x800003ff, 0x02fa806e,0xffffe880,0xe8000003,0x00ffffff,0x3fe60000,0x3fee621b, 0x2e000002,0x3ffa0fff,0xff980004,0x004ffc85,0x00077fdc,0x20000fe8, 0xfffffff8,0x000ffeff,0x7fffcc00,0x000006ff,0x1ffffdc0,0xff880000, 0x037fd40e,0x0ffdc000,0x983ffb00,0x50000ffe,0x00005fff,0x00bfffee, 0xffff8000,0x13fffe66,0x577e4000,0x01ff2a21,0x3fff6000,0xc800006f, 0x03fe605f,0x7fff4400,0x5c000006,0x4fffffff,0x7f400000,0xffffffff, 0x2000000e,0x3fe21ffe,0x3f600006,0x1fffb0ef,0x3fffb000,0x00ffc800, 0x3fffee00,0x6fffffff,0xffe80000,0x002fffff,0x3ff60000,0x4000003f, 0xff71fffb,0xc800003f,0x7cc000ef,0x7fff52ff,0x3ffe6000,0x3fa00003, 0x000002ff,0x43ffffe6,0x006ffffb,0xfffff300,0x009fffff,0xffffb000, 0xf500000f,0xffb99dff,0xf88000df,0x00000fff,0xb1dfff10,0x00001fff, 0x7ffffcc0,0x0001ffff,0x713fe200,0x400003ff,0xffeefff9,0xff50002f, 0x7fd400bf,0x3b60000f,0xfffffdaa,0x400001ff,0xfe8cfffa,0x0000006f, 0x0007fff1,0x3fffa000,0x0005fffd,0x000ffdc0,0xffdfffd8,0x3fa0006f, 0x300000ff,0x00005fff,0x4bfffd00,0x003ffff8,0x3ffff200,0x000effff, 0xffffa800,0xfb000004,0xffffffff,0xff300003,0x2000007f,0x7fe45ffc, 0x54000005,0x3fffffff,0x7dc00000,0x0003fe86,0xfffffd80,0x3e20006f, 0xff3007ff,0x740001ff,0x77fedc43,0xfe800001,0x0bff623f,0x3ea00000, 0x0000004f,0x3fffffea,0x2e00000f,0x260005ff,0x2fffffff,0xffff3000, 0x7fdc0000,0x30000003,0xfea819fb,0x6400000c,0x1effffff,0x3ae00000, 0x000000bf,0xffffffd1,0x4c00009f,0x800006ff,0xff703ff9,0x88000003, 0x001dffed,0x41fe8000,0x000006f8,0x3ffffff1,0x7ffcc000,0x7ffd402f, 0x020000ff,0xb8000000,0x0dfb01ff,0x9fb00000,0xd0000000,0x009fffff, 0x0fffd400,0x3fff6000,0x2e0005ff,0x0000ffff,0x00007fd0,0x00000000, 0xeffda800,0x00000004,0x64400000,0x002fffff,0x00ff9800,0x017ec000, 0x000017ea,0x00000000,0x00a881a8,0x3ff20000,0x5c0005ff,0x2e02ffff, 0xabffffff,0x000001aa,0xef880000,0x001fe400,0x000aa000,0x7fd40000, 0x00000fff,0x000dfff1,0x3fffff10,0x7ffdc000,0x5500001f,0x00000000, 0x00000000,0x00000000,0xa8800000,0x4000001a,0x400000a9,0x00310009, 0x00000000,0x00000000,0x00000000,0x807fffe4,0xfffffffc,0x2665ffff, 0x99999999,0x98809999,0x19999999,0x01100000,0x00000000,0x00000000, 0x17ffdc00,0x00000000,0x02ffffa8,0x00000000,0x26666666,0x09999999, 0x99999988,0x00000199,0x95300000,0x1b803799,0x00000000,0x00000000, 0x00000000,0x001aaa98,0x554c0000,0x2620001a,0x99999999,0x99999999, 0x09999999,0x20ffffb0,0xffffecc8,0x362ccccf,0xfffffffe,0xc81defff, 0xeffffffe,0x00380004,0x01c00000,0x99999800,0x09999999,0x3fe00000, 0x4ccc00ff,0x99999999,0x99999999,0x22009999,0x3303ffff,0x33333333, 0x00000133,0xffffffdb,0x03bdffff,0xffffffd9,0x4ccccc9d,0x99999999, 0x99999999,0xc8800099,0xffffffff,0x0be22cef,0x0000e000,0x4ccccccc, 0x09999999,0x33333330,0x13333333,0x26666662,0x19999999,0x7ff6dc00, 0xbeffffef,0x36e00000,0xfffefffe,0xf7000bef,0xffffffff,0xffffffff, 0xbfffffff,0x01bfffa0,0x03fffff2,0x3ffffa20,0xd1000eff,0x00001fff, 0x000003e6,0x0007cc00,0x3fffba20,0xffffffff,0x1bdeffff,0xffff7000, 0xfffec880,0xffffffff,0xffffffff,0x7ffc02ff,0xffee884f,0xffffffff, 0xbdefffff,0x3fa20001,0x00efffff,0x81fffd10,0xfffffec8,0xffffffff, 0xffffffff,0x3ff62002,0x999adfff,0xffefffdb,0x07cc0002,0x3fb22000, 0xffffffff,0xfd902def,0xffffffff,0x3b665bff,0xffffffff,0x9800ceff, 0x10bdfffe,0x05ffffb5,0xfffe9800,0xffb510bd,0xff7005ff,0xfb999dff, 0x99dfffff,0x0bffffd9,0x2017fffe,0x00fffffc,0xffffff70,0x2ff88007, 0x13f60000,0x6c000000,0x2200004f,0xcffffffe,0xfffeccaa,0x74001eff, 0x22005fff,0xeffffffe,0xfecccccc,0x7402ffff,0x74405fff,0xacffffff, 0xffffecca,0xf70001ef,0x007fffff,0x4402ff88,0xeffffffe,0xfecccccc, 0x3002ffff,0x03bfffff,0x2ffffe98,0x027ec000,0xfffd1000,0x4005ffff, 0xffffffe8,0x7ffcc02f,0x000effff,0x013ffff2,0x01bffff3,0x9ffff900, 0xdffff980,0x07bfee00,0x3fffffe6,0x05ffe883,0x9007ffff,0x001fffff, 0x3fffffea,0x00ff8003,0x1fff1000,0x88000000,0x00000fff,0x3fffffee, 0xfffff701,0x3fea005f,0x7d4004ff,0x404fffff,0x402fffea,0xb805fffd, 0x01ffffff,0x5ffffff7,0xffff5000,0xff0007ff,0xffff5001,0xfea809ff, 0xffb802ff,0x64005fff,0x20002fff,0x0000fff8,0x3ffffea0,0xff98005f, 0x9005ffff,0x07ffffff,0x3ffffa20,0xffff3006,0x3fa2003f,0xf3006fff, 0x2e03ffff,0xfff300ff,0x7ec07fff,0x05fffb05,0x1fffff90,0x3fffea00, 0x7e8002ff,0x3ff20000,0x0000003f,0x001fffe4,0xfffff500,0x7ffd403f, 0xfc801fff,0x4c003fff,0x04ffffff,0xc805ff90,0xfa803fff,0x201fffff, 0x1ffffffa,0x7fffd400,0x7e8002ff,0xfffff300,0x3ff2009f,0x7fffd402, 0xffb0005f,0x7fe40005,0x2600003f,0x04ffffff,0xfffff980,0xfff7004f, 0x36005fff,0x000effff,0x03fffff6,0x3bffff60,0x3fff6000,0x02fb80ff, 0x3fffffe6,0x5c17e203,0xfc803fff,0x5000ffff,0x05ffffff,0x0000fb00, 0x01bfffe2,0xff880000,0x200006ff,0x1ffffffa,0x7ffffec0,0xffffd806, 0x7ffcc003,0x36004fff,0x7ffec02f,0xffffa800,0x7fec01ff,0x54006fff, 0x02ffffff,0xf3007d80,0x009fffff,0xff3017ec,0x0001ffff,0x880017f4, 0x0006ffff,0x3ffffe60,0xff88004f,0x7004ffff,0x03ffffff,0x7fffff70, 0xffff9800,0x7ffdc05f,0x7cc003ff,0x6b85ffff,0x7ffffcc0,0xb02e403f, 0xff900dff,0x2a001fff,0x02ffffff,0x00007d80,0x05fffff7,0x3ee00000, 0x0002ffff,0xffffff50,0xffffb803,0x7ff401ff,0x7c4002ff,0x004fffff, 0xff880be6,0xfff5003f,0xfb803fff,0x001fffff,0x3fffffea,0x007d8002, 0x9ffffff1,0x8817cc00,0x03fffffe,0x0017dc00,0x2fffffb8,0xfff10000, 0x10009fff,0x09ffffff,0x3ffffee0,0x7ffc401f,0xe8001fff,0x102fffff, 0x03ffffff,0xfffffd00,0x7cc04b85,0x403fffff,0x0ffec059,0x3fffff20, 0xffff5000,0xfb0005ff,0x3ffa0000,0x00006fff,0xfffffd00,0x3ea0000d, 0x401fffff,0x3ffffffa,0x17ffffc0,0x3fffe200,0xd03504ff,0x027fdc05, 0xffffff50,0xffffa803,0x3ea003ff,0x002fffff,0xff1007d8,0x2a09ffff, 0xff702e81,0x0001ffff,0xd0002f88,0x00dfffff,0x3fffe200,0xf88004ff, 0x004fffff,0x3ffffff7,0xfffffe80,0xfff90007,0xffd01fff,0x2000ffff, 0x0ffffffc,0xfff30066,0x07007fff,0x00cffc88,0x01fffff9,0x3ffffea0, 0x07d8002f,0xffffa800,0x00001fff,0x7ffffd40,0xa80001ff,0x01ffffff, 0x7fffffcc,0x3fffe204,0x7fc4002f,0x5b04ffff,0xffb30590,0xfffa8007, 0x7cc01fff,0x004fffff,0x3fffffea,0x007d8002,0x9ffffff1,0x40b20b60, 0x06fffffe,0x00059000,0xfffffff5,0xff100003,0x0009ffff,0x9ffffff1, 0x3fffee00,0x3fea01ff,0x0004ffff,0x7ffffff7,0xffffffa8,0xfff70004, 0x98007fff,0x03ffffff,0x3fae2000,0xfffffc81,0xffff5000,0xfb0005ff, 0xfffd0000,0x000bffff,0xffffe800,0x80005fff,0x1ffffffa,0x7ffffd40, 0x3ffe603f,0x7c4001ff,0xd04fffff,0xdfb81105,0xfff50002,0xfa803fff, 0x003fffff,0x3fffffea,0x007d8002,0x9ffffff1,0x20220ba0,0x4ffffffa, 0x40000000,0xfffffffe,0xff880005,0x8004ffff,0x4ffffff8,0xfffff700, 0x7ffdc03f,0x30003fff,0x8bffffff,0x3ffffffb,0xffff3000,0xf9800bff, 0x003fffff,0x07ff2600,0x03fffff2,0x7ffffd40,0x07d8002f,0x7f5fcc00, 0x000fffff,0xfd7f3000,0x001fffff,0xfffffa80,0x7ffe401f,0x3e601fff, 0x4001ffff,0x4ffffff8,0xf5002f88,0xf500039f,0x803fffff,0x1ffffffc, 0x3fffea00,0x7d8002ff,0xfffff100,0x005f109f,0x7fffffec,0x00000002, 0x3fffafe6,0x40000fff,0x4ffffff8,0xffff8800,0xff7004ff,0x6c03ffff, 0x02ffffff,0xfffff100,0xffffd8df,0xf10002ff,0x00dfffff,0xffffff98, 0xfe880003,0x3fff203f,0xff5000ff,0x0005ffff,0x7d8000fb,0x9ffffff7, 0x5f600000,0x4ffffffb,0x7ffd4000,0x7f401fff,0x400fffff,0x002fffff, 0x7fffffc4,0x2002fc84,0x4005ffc8,0x1ffffffa,0x7fffff40,0x3fea000f, 0x8002ffff,0xfff1007d,0x5f909fff,0x7ffffc00,0x000002ff,0x7fddf600, 0x0004ffff,0x7fffffc4,0xfff88004,0xf7004fff,0x403fffff,0x2ffffffe, 0xffff1000,0xfffe8fff,0x10002fff,0x0fffffff,0xfffff980,0x7440003f, 0x7fe401ff,0xf5000fff,0x005fffff,0x44000fb0,0xfffff14f,0x100000ff, 0x3fffe29f,0x540007ff,0x01ffffff,0x3fffffe6,0xfffff802,0x7ffc4002, 0x7fd44fff,0x5ffa8002,0x3fffea00,0x3fe601ff,0x4002ffff,0x2ffffffa, 0x1007d800,0x89ffffff,0x3e002ffa,0x01ffffff,0xf1000000,0x3ffffe29, 0x7c40007f,0x004fffff,0xffffff88,0xffff7004,0x3fe203ff,0x001fffff, 0xffffff10,0x3fffe23f,0x10001fff,0x3fffffff,0x7fffcc00,0x220003ff, 0xfc806ffe,0x5000ffff,0x05ffffff,0x4000fb00,0x3fff20fc,0x00003fff, 0xfff907e4,0x40007fff,0x1ffffffa,0xffffff50,0x3fffa009,0x7fc4002f, 0xc98cffff,0xf0002fff,0x3ea00bff,0x501fffff,0x09ffffff,0xfffff500, 0x0fb0005f,0x3ffffe20,0xfffc98cf,0xffff1002,0x00001fff,0xc83f2000, 0x03ffffff,0x3fffe200,0xf88004ff,0xaadfffff,0xdaaaaaaa,0x01ffffff, 0xfffffff3,0x7ffc0003,0xff32ffff,0x003fffff,0x7fffffc0,0x3fe6002f, 0x0003ffff,0x200fffea,0x21fffffb,0xffff503b,0xfb0005ff,0x313e2000, 0x0dffffff,0x227c4000,0x6ffffff9,0x3ffea000,0xbaa9afff,0x1dfffffd, 0x3ffff200,0x7ffc4003,0xffffffff,0xf90002ff,0xff5003ff,0x5535ffff, 0xbfffffb7,0x3fea0003,0x8002ffff,0xfff1007d,0xffffffff,0x3e6005ff, 0x01ffffff,0xf8800000,0x7ffffcc4,0x3e20006f,0x004fffff,0xffffff88, 0xffffffff,0xffffffff,0xffff301f,0x40001fff,0x2fffffff,0xfffffff3, 0x7ffc0001,0x2002ffff,0x3ffffff9,0x3fff6000,0xffff8802,0x2a05b9df, 0x02ffffff,0x70007d80,0xffffb03f,0x200005ff,0xfffd81fb,0x50002fff, 0xffffffff,0xbfffffff,0xfff70003,0xff88007f,0xfeceffff,0x90002fff, 0xf5009fff,0xffffffff,0x3bffffff,0xfffa8000,0xd8002fff,0xffff1007, 0xfffd9dff,0x3fe6005f,0x002fffff,0x1fb80000,0xffffffd8,0xfff10002, 0x10009fff,0x5bffffff,0x55555555,0x3ffffffb,0x3ffffe20,0x3e0001ff, 0x11ffffff,0x3fffffff,0x7fffc000,0x26001fff,0x03ffffff,0x0ffffe00, 0x7ffffd40,0x3fea00ff,0x8002ffff,0x0bd0007d,0x3fffffea,0x0bd00005, 0x3fffffea,0xfff50005,0xffb35fff,0x001dffff,0x0bffff30,0xfffff880, 0x0bffa24f,0x37ffec00,0x7ffffd40,0xffffd9af,0x40000eff,0x2ffffffa, 0x1007d800,0x49ffffff,0x2002ffe8,0x3fffffff,0xe8000000,0xfffff505, 0x3e2000bf,0x004fffff,0xffffff88,0xffff7004,0x7ffc03ff,0x0002ffff, 0xfffffff1,0x7fffffc1,0xff10002f,0x001fffff,0x7fffffcc,0x3ffe0003, 0x3f6a005f,0x7d401cef,0x002fffff,0xfa8006e8,0x3ffffa02,0x540001ff, 0x3fffa02f,0xa8001fff,0x11ffffff,0x9ffffffd,0x3fff6000,0x7ffc4006, 0x7fc44fff,0xfffd0002,0xffff500b,0x3ffa23ff,0x0004ffff,0x7fffffd4, 0x006e8002,0x9ffffff1,0x2002ff88,0x4fffffff,0x54000000,0x3fffa02f, 0x88001fff,0x04ffffff,0xfffff880,0xfff7004f,0x7ec03fff,0x003fffff, 0xffffff10,0xfffffd8f,0xff10003f,0x800fffff,0x3ffffff9,0x3fffa000, 0x40010006,0x2ffffffa,0x8006e800,0x7ffdc06e,0x40004fff,0x7ffdc06e, 0xa8004fff,0x21ffffff,0xfffffff9,0xfffa8002,0x7ffc4007,0x2fa84fff, 0x9ffff000,0xfffff500,0x7fffcc3f,0x20002fff,0x2ffffffa,0x1006e800, 0x09ffffff,0x7ec005f5,0x006fffff,0x03740000,0x3fffffee,0xfff88004, 0x88004fff,0x04ffffff,0xffffff70,0x7fffe403,0xf30004ff,0xc8bfffff, 0x04ffffff,0xfffff300,0xff9800bf,0x0003ffff,0x001ffff6,0xfff30002, 0xf0005fff,0xcef9800d,0xfdcccccc,0x00ffffff,0x999df300,0xfffb9999, 0x8001ffff,0x1ffffffa,0x7fffffe4,0xffe8000f,0x3fe2001f,0xf884ffff, 0xfff98002,0xfffa803f,0x7fe41fff,0x000fffff,0xffffff30,0x00df0005, 0x3fffffe2,0x2002f884,0x7ffffff9,0x26000000,0xccccccef,0xffffffdc, 0x7fc4000f,0x8004ffff,0x4ffffff8,0xfffff700,0x7ffcc03f,0x70004fff, 0x85ffffff,0x4ffffff9,0xffff7000,0xf98005ff,0x003fffff,0x03fffee0, 0x0067f540,0xffffff98,0x005f8003,0x7fffffec,0xffffffff,0xb0003fff, 0xffffffff,0xffffffff,0xffa8007f,0xfe81ffff,0x005fffff,0x003fffa8, 0x3fffffe2,0x15c05d04,0x017fffd4,0x7fffffd4,0xfffffe81,0xff30005f, 0x0007ffff,0x3fe200bf,0x5d04ffff,0x3ffa15c0,0x0000ffff,0xffffb000, 0xffffffff,0x007fffff,0xffffff88,0xfff88004,0xf7004fff,0x803fffff, 0x06fffffd,0xfffffb00,0x3ffff60d,0xffb0006f,0x3000dfff,0x07ffffff, 0x7fffd400,0xffff8802,0xffff1005,0xf98007ff,0x00fe2003,0x7fffffc4, 0x03f88007,0xffffff10,0xfffa800f,0xff881fff,0x003fffff,0x2006ffe8, 0x4ffffff8,0x40fc0590,0x800ffffb,0x1ffffffa,0xffffff88,0xff88003f, 0x4003ffff,0xff1003f9,0x3209ffff,0xff707e02,0x0009ffff,0x03f88010, 0xffffff10,0xfff8800f,0x88004fff,0x04ffffff,0xffffff70,0xffff8803, 0xfe8001ff,0xf102ffff,0x003fffff,0x5fffffd0,0xffff3000,0x4c0007ff, 0x8801ffff,0x000fffff,0x0bfffffd,0x2002fc80,0x3f6000fc,0x002fffff, 0xfb0007e4,0x005fffff,0x7fffffd4,0xfffff701,0xf88003ff,0xff1001ff, 0x0009ffff,0x3ffee0f5,0xffff5007,0x3fee03ff,0x001fffff,0x5fffffe8, 0x8017e400,0x4ffffff8,0xfb07a800,0x000fffff,0x07e40588,0xfffffb00, 0x7fc4005f,0x8004ffff,0x4ffffff8,0xfffff700,0xfff9003f,0xfa800bff, 0x6405ffff,0x005fffff,0x2fffffd4,0xffff9800,0x220003ff,0x2a007fff, 0x7001feee,0x00dfffff,0xf10037cc,0xfff98009,0x22006fff,0x7fcc004f, 0x2006ffff,0x1ffffffa,0x3fffff60,0xff98006f,0xffff1006,0xfd0009ff, 0x01fffe20,0x7fffffd4,0x3ffff601,0xfb8006ff,0x2006ffff,0x3e2006f9, 0x004fffff,0xfff107e8,0x20009fff,0x13e206f8,0xfffff300,0x7fc400df, 0x8004ffff,0x4ffffff8,0xfffff700,0xffd1003f,0x74001fff,0x400fffff, 0x0fffffe8,0x3ffffa00,0xff30000f,0x0007ffff,0x0027ffd4,0x3e2006c8, 0x805fffff,0x32002ff8,0xffe8002f,0x9002ffff,0xffd0005f,0x2005ffff, 0x1ffffffa,0x3ffffe20,0xf98004ff,0xfff9802f,0x6c004fff,0x3fffa05f, 0xffffa801,0x3fe201ff,0x004fffff,0x7fffffc4,0x02ff8805,0x3ffffe60, 0x2fec004f,0xffffff30,0x1efa8007,0x2000bf20,0x2ffffffe,0xfffff300, 0xff10009f,0x2009ffff,0x1ffffffb,0xffffd100,0x3ffea009,0xfd1001ff, 0x2a009fff,0x001fffff,0x3ffffe60,0x3f60003f,0x0fe0006f,0xfffff300, 0xfd51019f,0x07fc4007,0x7fffdc00,0xff8806ff,0xfffb8000,0xf5006fff, 0x805fffff,0xfffffffa,0x2ffa8002,0x7ffffcc0,0xffb1004f,0x27ffcc09, 0x7ffffd40,0x7ffd402f,0x4002ffff,0xcffffff9,0x03fea880,0x7ffffcc0, 0xffb1004f,0xfffd8809,0x26200cff,0x7fc405fd,0xfffb8000,0xf3006fff, 0x009fffff,0xffffff30,0x3ffee009,0x22002fff,0x404ffffe,0x01effffa, 0x7ffff440,0x7fffd404,0x7d40001e,0x004fffff,0x00effc88,0x0005d880, 0xffffffd5,0x7fffd79d,0x01ffe800,0xfffff880,0x7ff403ff,0xfff88001, 0xb803ffff,0x03ffffff,0xffffffc8,0xfd98000f,0x3fffea03,0x2e200eff, 0x4403ffff,0x2e00cffe,0x03ffffff,0xffffffc8,0x7f54000f,0xbcefffff, 0x8003fffe,0xeffffffa,0x3ffee200,0xfff7003f,0x9559bfff,0xd005fffd, 0xf10003ff,0x07ffffff,0xffffff50,0xfff5000b,0x3200bfff,0x03ffffff, 0xdffffb80,0xfffb710a,0xfb80009f,0x710adfff,0x009ffffb,0xfffff300, 0x64005fff,0x70002eff,0xf900005b,0xffffffff,0x7540019f,0x4000dfff, 0xfffffffb,0xfffea82f,0x7fdc000d,0x02ffffff,0x3fffffe6,0xffe801ff, 0x002effff,0xfd107d50,0xbdffffff,0xfffdb999,0xb1005fff,0xff309fff, 0x03ffffff,0xffffffd0,0xff90005d,0xffffffff,0xfd100019,0xbdffffff, 0xfffdb999,0x44005fff,0xffffffda,0x400dffff,0x00dfffea,0x7ffffdc0, 0x3a202fff,0x2fffffff,0x3fffa200,0x5403ffff,0xffffffff,0xfeb88001, 0xffffffff,0x100001ce,0xffffffd7,0x0039dfff,0x7ffff440,0xffffffff, 0x00d5c02e,0x00000200,0x2af332a6,0x7fe40009,0x03efffff,0x3fffffaa, 0x0fffffff,0xfffffff9,0x7ff5407d,0xffffffff,0xfffd10ff,0xffffffff, 0x3fe601df,0x07ffffff,0x7ff44600,0xffffffff,0xffffffff,0x001fffff, 0xffe89d44,0xffffffff,0xff300eff,0x0fffffff,0x3332a600,0x440009ab, 0xfffffffe,0xffffffff,0xffffffff,0x75310001,0x20035799,0xfffffffc, 0x3ffaa03e,0xffffffff,0xfffd10ff,0xffffffff,0xffd105df,0xffffffff, 0x3faa7dff,0xffffffff,0x8001efff,0xabcccaa8,0x44000001,0x1abcccaa, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x3332e000, 0x000000cc,0x0733332a,0xc8000000,0x0004cccc,0x33332600,0x4c00001c, 0x0003cccc,0x2600ba60,0xcb80002c,0x0000cccc,0x000e75c4,0x66664c00, 0x2e000003,0x000ccccc,0x11000033,0x20000000,0x005100a9,0x0c013000, 0xcca80000,0x00001ccc,0x03999993,0x2e003720,0x9800000c,0x0002a00a, 0x30720059,0x03333333,0xfffd1000,0x4000007f,0x04ffffe8,0xf3000000, 0x0003ffff,0x7fffec00,0xfd800005,0x0001ffff,0xfa813fa0,0x7c40000f, 0x0002ffff,0x00ffffd8,0x7ffec000,0x800001ff,0x02fffff8,0x00033e60, 0x6c402fb8,0x7d40000f,0x3641cfff,0xffd30000,0x02fffa87,0x7fff4000, 0x3600004f,0x2005ffff,0x3f601ff9,0x74c00005,0x7d42efff,0x00fec000, 0xfffd0bf2,0x0000ffff,0x01bfffa2,0xffd10000,0x000000df,0x0bfffee0, 0xff880000,0x800005ff,0x5ffffffa,0x3fe60000,0x003ffc85,0x2ffffb80, 0xfff88000,0x200003ff,0x5ffffffa,0xffb80000,0xe88002ff,0xff10003f, 0x013fa609,0xfffff500,0x0bf99dff,0x7ffe4000,0x1bfffa0f,0xfff88000, 0x2200005f,0x8005ffff,0x7f442ffd,0x2200000f,0xffffffff,0xc8007fbc, 0x32a21bef,0xfffa80ff,0x200007ff,0x000ffff8,0x7ff44000,0x0000001f, 0x002fffe8,0x7ffd4000,0xfd000005,0x03ffffff,0x77fec000,0x006ffd88, 0x05fffd00,0x3ffe2000,0x200004ff,0xfffffffe,0x7f400001,0x220002ff, 0xf70005fe,0x0fffa8bf,0x7fff4000,0xffffffff,0x3fa00003,0xfff12fff, 0x200001ff,0x0005fffb,0x02fffd40,0x33fff980,0x00007fff,0xffffffc8, 0x005fffff,0xffffff88,0x3a05ffff,0x0007ffff,0x01fffcc0,0x7f440000, 0x0000004f,0x001fffcc,0x77fec000,0xfb800000,0x5ffe9bff,0x3fe60000, 0x02fffeef,0x3fff8800,0x7fec0000,0x700000ff,0xffd39fff,0x7c40000d, 0x880003ff,0xff0004ff,0x7fff71bf,0xcef98000,0xfffffffd,0x7e400006, 0x7fff47ff,0x3fa00005,0xd800005f,0x20000eff,0xfffdfffc,0xff800007, 0xffffffcc,0xf70001ff,0xffffffff,0x7ffff401,0xf9800007,0x0000006f, 0x0000dff1,0x03ffb800,0xff880000,0x8800000e,0x3fa22fff,0x3600001f, 0x06ffffff,0x07ff7000,0xbf910000,0x3e200005,0x3ffa22ff,0xff700002, 0x7dc00007,0xffb8003f,0x006fffff,0x2e20fa80,0x000efffe,0x177e4400, 0x00077f66,0x002ffc40,0x077fc400,0x3ffe2000,0x0002ffff,0x36e22f80, 0x0002ffff,0x7fffffe4,0x7ffec01f,0x3000007f,0x000001ff,0x0007fe60, 0x03fe8000,0xdf500000,0x32000001,0x6fd881ef,0x3fe60000,0x0001ffff, 0x00009fd0,0xc8000000,0x0dfb01ff,0x013fa000,0x0bffe000,0x3ffffa00, 0x880001ff,0x0006a202,0x00000000,0x001df700,0x01df5000,0x3fff2000, 0x000006ff,0x0009a805,0x9dffb300,0xffffb001,0x4c00000f,0x0000000a, 0x000006a6,0x00002a80,0x0002a600,0x0077cc00,0x80000bf2,0x005ffffc, 0x0000aa00,0x10000000,0x2fc801df,0x002a8000,0x1fff9000,0xffffa800, 0x0000005f,0x00000000,0x54c00000,0x53000000,0x7c400001,0x0001ffff, 0x00000000,0xffd80000,0x000007ff,0x00000000,0x00000000,0x00000000, 0x98000000,0x00000000,0x00000000,0x99d95310,0x000dc057,0x00000980, 0x7d400000,0xed8004ff,0x31000eee,0x33333333,0x26662001,0x00099999, 0x006aaa60,0x00000000,0x00000000,0x98000000,0x00001aaa,0x3ff60000, 0x333007ff,0x33333333,0x33333333,0x00013333,0x980001c0,0x99999999, 0x99999999,0x00999999,0x4ccccccc,0x99999999,0x80999999,0x99999999, 0x99999999,0x09999999,0x4cccccc0,0x99999999,0x09999999,0x99999998, 0x09999999,0x3ffb6600,0xffffffff,0x4c07e62d,0x99999999,0x31099999, 0x33333333,0x98801333,0x01999999,0x000ffff8,0x3fa60000,0xffffffff, 0xfffeb800,0x2003ffff,0xfefffedb,0x000befff,0x26666666,0x09999999, 0x33333000,0x33310333,0x33333333,0x40000003,0xfefffedb,0x000befff, 0x26666666,0x09999999,0x07ffffd8,0xffffec88,0xffffffff,0xffffffff, 0xf300002f,0xec880001,0xffffffff,0xffffffff,0x202fffff,0xfffffffa, 0xffffffff,0x43ffffff,0xfffffec8,0xffffffff,0xffffffff,0x3fffea02, 0xffffffff,0xffffffff,0x7ff6443f,0xffffffff,0xff9002de,0x4c415dff, 0xffeffffb,0xfffec881,0xefffffff,0xfffff72d,0x7dffffff,0xffffe980, 0x7f400eff,0xdea804ff,0x00675c41,0x7fffff44,0x362006ff,0x26001fff, 0x10bdfffe,0x05ffffb5,0xffffd910,0xbdffffff,0x3ffa0007,0xd987ffff, 0xfffffffe,0xdeffffff,0xd300001b,0x2217bfff,0x02ffffda,0xffffec88, 0xdeffffff,0x7ffffd82,0x7fff4400,0xccccefff,0xfffffecc,0x9fb00002, 0x7f440000,0xccefffff,0xfffecccc,0x3fee02ff,0xaaabdfff,0xfffffaaa, 0x7f4406ff,0xccefffff,0xfffecccc,0x3fee02ff,0xaaabdfff,0xfffffaaa, 0x7f4406ff,0x02ffffff,0x3ffffa60,0xffff7002,0xffe8803f,0x202fffff, 0xfffffffa,0x7ec4001f,0xff9001ef,0x7fd401ff,0x3fff20ff,0xfffd1006, 0x8009ffff,0x3f2002ff,0x7cc04fff,0x1000dfff,0xfffffffd,0x3ea00003, 0x4c07ffff,0xdfffffff,0xfffffdcc,0x3f20004f,0x7cc04fff,0x1000dfff, 0xfffffffd,0xffffd805,0xfffa8007,0x75404fff,0x80002fff,0x0000fff8, 0x3ffffea0,0x7ff5404f,0x3ffee02f,0x7ffdc00b,0xa801ffff,0x04ffffff, 0x017fff54,0x8017fff7,0xfffffffb,0xffffa801,0x3f2005ff,0x4002ffff, 0x801ffff9,0x5ffffffa,0xfffffb80,0xfa8001ff,0x3fee001f,0x3ff603ff, 0x3fffe3ff,0xfff3001f,0x005fffff,0x744007ec,0x3006ffff,0x003fffff, 0x3fffffea,0x7f400004,0xfc807fff,0xa81fffff,0x01effffe,0x3ffffa20, 0xffff3006,0x3fea003f,0xd805ffff,0x8007ffff,0x4ffffff9,0x005ff900, 0x07fff900,0x7ffcc000,0xf9004fff,0x0ffe405f,0x7ffffc40,0xff3004ff, 0x2009ffff,0x3f202ffc,0xfff8801f,0x3004ffff,0x09ffffff,0x3ffffee0, 0xfff30003,0xffff3003,0x3fa009ff,0x004fffff,0x54003fc8,0x3205ffff, 0x3fa2ffff,0xf3000fff,0xffffffff,0x401f2003,0x00effffd,0x3fffff60, 0xffff9800,0x400003ff,0x807ffffe,0x1ffffffb,0xfffffb10,0x3fff6009, 0x3f6000ef,0x9800ffff,0x04ffffff,0x07ffffd8,0xfffff980,0x0bf6004f, 0xffff1000,0x7cc0000d,0x004fffff,0x2fd80bf6,0xfffffb00,0x3e6001ff, 0x004fffff,0x2fd80bf6,0xfffffb00,0x3e6001ff,0x804fffff,0x06fffff8, 0x00ffd400,0x7fffffcc,0xffff3004,0x44001fff,0xff98006f,0x3fe206ff, 0x27ffd46f,0xfffbf300,0x001dffff,0xfff700f9,0xf98007ff,0x9805ffff, 0x03ffffff,0x7ffec000,0xfffb807f,0x3e201fff,0x403fffff,0x03fffffb, 0x7ffffcc0,0xffff9805,0xffd804ff,0xf88007ff,0x004fffff,0x70000be6, 0x005fffff,0x3fffe200,0x3e6004ff,0x4c017a02,0x2fffffff,0x3fffe200, 0x3e6004ff,0x4c017a02,0x2fffffff,0x3fffe200,0xffd804ff,0x80003fff, 0xff8801fd,0x2004ffff,0x5ffffffd,0x0007f600,0x01ffffe6,0x0054406a, 0x3ff67e60,0x805fffff,0x7ffc407c,0xe8001fff,0x402fffff,0x3ffffff9, 0x7fec0000,0xffb807ff,0x5401ffff,0x01ffffff,0x3ffffff1,0xffffd000, 0xfff8805f,0xfd804fff,0x88007fff,0x04ffffff,0x0005d035,0x6fffffe8, 0xfff10000,0x06a09fff,0x002e80ba,0xdffffffd,0xffff8800,0xd03504ff, 0xe8017405,0x06ffffff,0x7ffffc40,0x7ffdc04f,0x80000fff,0xff8801f9, 0x2004ffff,0xfffffff8,0x004f9801,0x1fffff30,0x30000000,0x3ffffa3f, 0x3e404fff,0x3fffffa0,0xfff90007,0x7cc01fff,0x003fffff,0x7fffec00, 0xffffb807,0xfff801ff,0xffd06fff,0x2000ffff,0x0ffffffc,0x3ffffe20, 0xfffd804f,0xff88007f,0x5b04ffff,0x54000590,0x1fffffff,0xfff88000, 0x05b04fff,0xb8034059,0x1fffffff,0x7fffc400,0x905b04ff,0xfb803405, 0x01ffffff,0x7ffffc40,0x3ffe204f,0x00007fff,0x3fe2007a,0x4004ffff, 0x5ffffffc,0x0000fe80,0x23fffff1,0xaaaaaaa9,0x2aaaaa60,0x11f9802a, 0xffffffff,0xf503e405,0x009fffff,0x3ffffee0,0x3ffe603f,0x00003fff, 0x03ffffec,0x7fffffdc,0xffffc801,0x7ffd42ff,0x70004fff,0x07ffffff, 0x7fffffc4,0xffffd804,0xfff88007,0x05d04fff,0x7f400011,0x05ffffff, 0xffff8800,0x105d04ff,0x7c400401,0x04ffffff,0xfffff880,0x1105d04f, 0x7fc40040,0x004fffff,0xffffff88,0x3fffea04,0x200006ff,0xffff1000, 0xf88009ff,0x02ffffff,0x88000bee,0xd52fffff,0x43ffffff,0xffffffea, 0xf30fcc00,0x3fffffff,0xffb81f20,0x0003ffff,0xbffffff3,0x7ffffcc0, 0x6c00003f,0xb807ffff,0x01ffffff,0xffffffa8,0x7ffffdc5,0xff30003f, 0x440bffff,0x04ffffff,0x07ffffd8,0xfffff880,0x002f884f,0x7f5fcc00, 0x000fffff,0x7ffffc40,0x002f884f,0xffffb000,0x22000dff,0x84ffffff, 0x000002f8,0xdffffffb,0x3ffe2000,0x3f204fff,0x005fffff,0xff880000, 0x8004ffff,0x6ffffffb,0x8000df10,0x42fffff8,0x81fffffe,0x00ffffff, 0x3fee0fcc,0x80efffff,0x3fff607c,0x10002fff,0x0dffffff,0x7fffffcc, 0x7ec00003,0xfb807fff,0x001fffff,0x1fffffff,0x7fffffec,0xfff10002, 0x7c40dfff,0x804fffff,0x007ffffd,0xffffff88,0x0002fc84,0xfffbbec0, 0x40004fff,0x4ffffff8,0x00002fc8,0xffffffa8,0xff10002f,0xf909ffff, 0xf5000005,0x05ffffff,0x3fffe200,0x3ff604ff,0x0003ffff,0xfff88000, 0xd0004fff,0x05ffffff,0x880003f9,0x6c1fffff,0xd81fffff,0x400fffff, 0xfffc81f9,0x7c85ffff,0x3fffffa0,0xff10002f,0x4c0fffff,0x03ffffff, 0x7ffec000,0xfffb807f,0xff001fff,0x747fffff,0x02ffffff,0xfffff100, 0x7ffc40ff,0xfd804fff,0x88007fff,0x44ffffff,0x00002ffa,0x7ffc53e2, 0x40007fff,0x4ffffff8,0x00017fd4,0x3ffffe20,0x220005ff,0x44ffffff, 0x00002ffa,0x7fffffc4,0x3e20005f,0x204fffff,0x2fffffff,0x88000000, 0x04ffffff,0xfffff500,0x004f98df,0xfffff980,0x7ffffe40,0xfffffd81, 0xe80fcc00,0x3fffffff,0xfff883e4,0x0001ffff,0xfffffff1,0x3fffe603, 0x400003ff,0x807ffffd,0x1ffffffb,0xfffffd00,0x3fffe29f,0x10001fff, 0x3fffffff,0x3ffffe20,0xfffd804f,0xff88007f,0xc98cffff,0x00002fff, 0xfffc83f2,0x20003fff,0xcffffff8,0x02fffc98,0x7ffe4000,0x0000ffff, 0x3fffffe2,0x2fffc98c,0x7fe40000,0x000fffff,0x3ffffe20,0xffff104f, 0x00003fff,0xffff1000,0x740009ff,0x23ffffff,0x980000fe,0xfc87ffff, 0xfc81ffff,0x4c00ffff,0xffff101f,0x3e45ffff,0xffffff98,0x3fe0001f, 0x302fffff,0x07ffffff,0xfffd8000,0xfffb807f,0xfb001fff,0x269fffff, 0x1fffffff,0x3fffe000,0xff102fff,0xb009ffff,0x000fffff,0xfffffff1, 0x05ffffff,0x313e2000,0x0dffffff,0x7fffc400,0xffffffff,0x2600002f, 0x3fffffff,0x7ffc4000,0xffffffff,0x200002ff,0xfffffff9,0x7fc40003, 0xf304ffff,0x03ffffff,0xf1000000,0x009fffff,0x7ffffd40,0x002fa8ff, 0xdffff300,0x3fffff90,0x1fffff90,0x2601f980,0xffffffff,0x3fe60f90, 0x000fffff,0x3fffffe0,0xffff302f,0x800007ff,0x807ffffd,0x1ffffffb, 0xfffffb00,0x3fffe6bf,0x20000fff,0x2fffffff,0xffffff10,0xffffb009, 0xfff1000f,0xffd9dfff,0x200005ff,0xfffd81fb,0x10002fff,0x9dffffff, 0x005ffffd,0x7ffff400,0x880006ff,0xceffffff,0x002ffffe,0x3ffffa00, 0x880006ff,0x04ffffff,0xfffffff1,0x00000005,0x9ffffff1,0xfffd8000, 0x006fcfff,0x3fffea00,0xfffffc85,0xfffffc81,0x200fcc00,0xfffffffa, 0x3fe20f96,0x001fffff,0x3fffffe0,0xffff301f,0x800007ff,0x807ffffd, 0x1ffffffb,0xfffff900,0x3fffe2bf,0x20001fff,0x1fffffff,0xffffff10, 0xffffb009,0xfff1000f,0x7f449fff,0xbd00002f,0x3ffffea0,0xff10005f, 0x7449ffff,0x700002ff,0x3fffffff,0xfff10000,0x7f449fff,0xf700002f, 0x03ffffff,0xffff1000,0x7ffc09ff,0x8803ffff,0xeeeeeeee,0x103eeeee, 0x09ffffff,0xffff9800,0x0001ffff,0x0ffffee0,0x07fffff2,0x03fffff2, 0xf9003f30,0x9bffffff,0x7ffffc0f,0xf10002ff,0x01ffffff,0x3fffffe6, 0x7ec00003,0xfb807fff,0x001fffff,0x9ffffffb,0x7ffffffc,0xfff10002, 0x2201ffff,0x04ffffff,0x07ffffe8,0xfffff880,0x017fc44f,0xd017d400, 0x03ffffff,0xfffff100,0x02ff889f,0xffff8800,0x00004fff,0x9ffffff1, 0x0002ff88,0xffffff88,0xf100004f,0x409fffff,0x4fffffff,0x3fff2200, 0x01bfffff,0x3fffffe2,0xffd80004,0x0005ffff,0x83fffec0,0x81fffffc, 0x00fffffc,0xfd800fcc,0x7fffffff,0x3fffff60,0xff10003f,0x4c0fffff, 0x03ffffff,0x7ffec000,0xfffb807f,0xfd001fff,0x6c7fffff,0x03ffffff, 0xfffff100,0x7ffc40ff,0xfe804fff,0x4000ffff,0x4ffffff8,0x80002fa8, 0x7ffdc06e,0x88004fff,0x84ffffff,0xd80002fa,0x0fffffff,0xff880400, 0xfa84ffff,0xffd80002,0x000fffff,0xffff8804,0x3ff204ff,0x8005ffff, 0x3ffffffd,0xfffff880,0xf880004f,0x004fffff,0x1ffff400,0x1fffffc8, 0x0fffffc8,0x8800fcc0,0xfffffffe,0x3ffff207,0xf30004ff,0x40bfffff, 0x3ffffff9,0x7fec0000,0xffb807ff,0xf001ffff,0x43ffffff,0x4ffffffc, 0xffff3000,0x7fc40bff,0x5404ffff,0x0cffffff,0x3fffe200,0x02f884ff, 0x6677cc00,0xffdccccc,0x000fffff,0x7fffffc4,0x0002f884,0x7fffffd4, 0x81dc002f,0x4ffffff8,0x40002f88,0xfffffffa,0x881dc002,0x04ffffff, 0x3fffffe6,0xfffc8006,0xf8802fff,0x004fffff,0xfffff880,0x7c00004f, 0xff900fff,0xff903fff,0xf9801fff,0x3ffe6001,0x2607ffff,0x04ffffff, 0xfffff700,0x7ffcc05f,0x10003fff,0xfffffb09,0xfffff700,0x3ffe003f, 0x3e60ffff,0x004fffff,0xffffff70,0x7fffc405,0xfff104ff,0x3fffffff, 0x3fffe200,0x405d04ff,0x7ffec02b,0xffffffff,0x03ffffff,0x7ffffc40, 0x5c05d04f,0x3fffa202,0xd8005fff,0xfffff102,0xb80ba09f,0x3fffa202, 0xd8005fff,0xfffff102,0xfffe809f,0xfb8007ff,0x801fffff,0x4ffffff8, 0xfff88000,0x00004fff,0xc813ffea,0xc81fffff,0x400fffff,0x7d4001f9, 0x407fffff,0x06fffffd,0xfffffb00,0xffff980d,0x970003ff,0x0fffffb0, 0xffffff70,0xffff1003,0xfffb0dff,0x36000dff,0x406fffff,0x4ffffff8, 0x22000000,0x04ffffff,0x100fc059,0x3fe2007f,0x4007ffff,0x4ffffff8, 0x00fc0590,0xfffffff9,0x01f88001,0x9ffffff1,0x01f80b20,0x3ffffff2, 0x0fc4000f,0xffffff88,0x7fffcc04,0x7dc001ff,0x801fffff,0x4ffffff8, 0xfff88000,0x00004fff,0xc803fffa,0xc81fffff,0x400fffff,0xfc8001f9, 0x4407ffff,0x01ffffff,0xfffffe80,0x7fffcc02,0x9d0003ff,0x0fffffb0, 0xffffff70,0xffff7003,0xfff105ff,0xd0003fff,0x805fffff,0x4ffffff8, 0x01bdea80,0xfffff100,0x0f50009f,0x36000fc8,0x02ffffff,0x3ffffe20, 0x07a8004f,0x3fffffe6,0x0fc8003f,0xffffff10,0x40f50009,0xfffffff9, 0x00fc8003,0x9ffffff1,0xfffff700,0xfffb800b,0xf8801fff,0x004fffff, 0xfffff880,0xf300004f,0xffb803ff,0xffc81fff,0x7cc00fff,0xfffb0001, 0xfff900ff,0xfa800bff,0x9805ffff,0x03ffffff,0xfd83f980,0xfb807fff, 0x801fffff,0x05fffffe,0x17fffff2,0xfffff500,0xffff100b,0xff7009ff, 0xf10001ff,0x009fffff,0x27c40fd0,0x3fffe600,0x3e2006ff,0x004fffff, 0x3ffa07e8,0x8006ffff,0x3fe207f9,0x8004ffff,0x3fffa07e,0x98006fff, 0x3ffe207f,0xf9004fff,0x4003ffff,0x1ffffffb,0xfffff880,0xf880004f, 0x004fffff,0x005ffb00,0x83fffff7,0x0fffffe8,0x8000fcc0,0x807fffe8, 0x0fffffe8,0x3ffffa00,0xfff9800f,0xd8003fff,0xffffd82f,0xffffb807, 0x7fd401ff,0x2200ffff,0x00fffffe,0x3fffffa0,0xffff8800,0xfb8804ff, 0xf98004ff,0x004fffff,0x5f902fec,0xffffd000,0x3e6005ff,0x004fffff, 0xffb82fec,0x001fffff,0xf303ff44,0x009fffff,0xff705fd8,0x003fffff, 0x2607fe88,0x04ffffff,0x3bffffa0,0xffff7000,0xff3003ff,0x0009ffff, 0xffffff10,0xff30000b,0x3ffe6007,0x7fff43ff,0x7d400fff,0x3fe20003, 0xffd1007f,0x3ea009ff,0x3001ffff,0x07ffffff,0xd81ffb80,0xb807ffff, 0x01ffffff,0x1ffffff4,0x7ffff440,0xffff5004,0x3fe6003f,0x2004ffff, 0x98005ffd,0x04ffffff,0x209ffb10,0xb8000ff8,0x06ffffff,0xffffff30, 0x3ff62009,0xfffff884,0x7cc004ff,0x3fe606ff,0x1004ffff,0xff109ffb, 0x009fffff,0x206fff98,0x4ffffff9,0x7fffdc00,0xfffb801e,0xf9801fff, 0x004fffff,0xfffff880,0x7cc0005f,0x7ff4004f,0xefeaafff,0x401fffff, 0x540005fd,0x3a2007ff,0x5404ffff,0x001effff,0x3fffffe6,0x3ffee004, 0x7ffffe80,0xfffffb80,0x3fff202f,0x3a2002ff,0x5404ffff,0x001effff, 0x3fffffe6,0x9fff1004,0xffff5000,0x5c401dff,0xfd03ffff,0xff10003f, 0x007fffff,0xdffffff5,0x7ffdc401,0xffffd83f,0xb3000fff,0x540bffff, 0x0effffff,0x3fffee20,0xfffffd83,0xfb3000ff,0x7d40bfff,0x005fffff, 0xdffffd88,0x7ff5c409,0xa800beff,0x05ffffff,0xffff9800,0x2a0006ff, 0xf98001ef,0x9effffff,0x0cfffffc,0x039fff70,0x003fdc00,0x56ffffdc, 0xffffb710,0xfff50009,0x9801dfff,0xfd07fffc,0xc801ffff,0x83ffffff, 0x0effffd8,0xffff7000,0x3f6e215b,0xa8004fff,0x05ffffff,0x077fed44, 0x3fffa200,0xccdeffff,0xfffffedc,0x7fff542f,0x7fdc000d,0x02ffffff, 0x3fffffa2,0xdcccdeff,0x2ffffffe,0x7fffffd4,0xccccccef,0xfffffecc, 0xffd104ff,0x9bdfffff,0xffffdb99,0xfffa85ff,0xccceffff,0xffeccccc, 0x104fffff,0xfffffffd,0x3f660005,0xffffffff,0x000bdfff,0x3fffffa2, 0x220002ff,0xfffffffe,0x02ea8003,0x7fff5400,0xffff90df,0x3faa3fff, 0x3effffff,0x000fb000,0x3ffffae2,0x1cefffff,0xffff9800,0xccceffff, 0xfffffdcc,0xffffa87f,0xff500cff,0x9bffffff,0x5bffffdb,0xfd710000, 0xffffffff,0xd100039d,0x5fffffff,0x0b7bfe20,0xffffe880,0xffffffff, 0xffffffff,0x3ff21fff,0x03efffff,0x3fffffaa,0x0fffffff,0xffffffd1, 0xffffffff,0xffffffff,0xffffe83f,0xffffffff,0xffffffff,0x3a23ffff, 0xffffffff,0xffffffff,0x1fffffff,0x7ffffff4,0xffffffff,0xffffffff, 0x3ffa23ff,0xffffffff,0x30002eff,0x35799975,0xffe88003,0xffffffff, 0xeb802eff,0xfffffffe,0x00eeffff,0x4c000008,0x000000ab,0x00120000, 0x3332aa20,0xe88001ab,0xffffffff,0xffffffff,0x6fffffff,0x3fffffe2, 0xfd51ffff,0xffffffff,0x59dfffff,0x54400000,0x01abccca,0xffffe880, 0xffffffff,0x0000002e,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x33000000, 0x33333333,0x00000133,0x0c403100,0x100c0000,0x33310003,0x01333333, 0x26666620,0x26660999,0x99999999,0x26620199,0x19999999,0x4ccccc40, 0x33330000,0x33333333,0x00000133,0x09999988,0x332ea200,0x000480ac, 0x028804cc,0x00031000,0x59b95300,0x20000003,0x10006201,0x13333333, 0x40c40310,0x19999998,0x20000000,0x26620001,0x30099999,0x01220597, 0xbccca980,0x4400dc01,0xffffffee,0xffffffff,0x0001bdef,0x20f7fdc0, 0x0000effd,0x641fffb8,0x26000eff,0xfffffffe,0xfeb800ff,0x23ffffff, 0xffffffec,0x205fffff,0xffffffec,0x7fcc06ff,0x88003fff,0xffffffec, 0x03deffff,0x7ffc0000,0x3ee005ff,0xcfffefff,0x2a000f11,0x641cffff, 0xffc80006,0x7640001e,0xfffeffff,0x00000cef,0x320fffdc,0xf9000eff, 0x89dfffff,0x7ec1effb,0x3ffee0ef,0x0001ffff,0x7ff54000,0xffeb8003, 0xfc85ffff,0x360cffff,0x7fe44006,0xefffffff,0x000be22c,0xffffffd1, 0xffd99559,0x0003dfff,0x4bffff10,0x003ffffa,0x26ffff80,0x004ffff9, 0xfffffe88,0x362006ff,0x7ec01fff,0x02ffffff,0x3ffffe60,0x3ffea002, 0x7440006f,0x1fffffff,0xf5000000,0x2600dfff,0x2620cffe,0x007ffffd, 0xffffffa8,0x005fcbef,0x2ffffd40,0xfffe9800,0xff9510bd,0x400005ff, 0x3e65ffff,0xf9003fff,0x3e209fff,0x3fe65fff,0x7ff443ff,0x00001fff, 0x7ffff400,0x3fea0000,0x7ffdc5ff,0xfeefffff,0xfffb1005,0x73335bff, 0x5ffdfffb,0xffff7000,0x3fee03ff,0x0002ffff,0x93ffffd4,0x000bffff, 0x0fffff98,0x00dffff7,0x3ffffa20,0x7c004fff,0xfff9802f,0xe8006fff, 0xa8000dff,0x0001ffff,0x7fffffd4,0x20000004,0x000efffc,0xfa809ffd, 0xfe8007ff,0xffffffff,0x6c0003ff,0x000fffff,0x02ffffe4,0x037fffea, 0xffff3000,0x2ffffdcf,0x0ffffc80,0x4fffff30,0xc85ffffb,0x001fffff, 0x3fe60000,0x40004fff,0x7fc5ffff,0xffffffff,0xff9803ff,0x4c01dfff, 0x002ffffe,0xffffffa8,0x3fffea01,0x7c0001ff,0x3fe64fff,0xe80002ff, 0x3fe25fff,0x260003ff,0xffffffff,0x003f6002,0x3fffffe2,0x27fd4005, 0x3ffea000,0x7fcc0003,0x0003ffff,0x3bffe000,0x1fff9000,0x00fff300, 0xffecef98,0x006fffff,0x6ffffb80,0x3fffa200,0xfff7006f,0xe80003ff, 0x3fe25fff,0xff9002ff,0x7ff401ff,0x3fffe24f,0xfffffb82,0x20000001, 0x02fffff8,0x2ffff400,0xffd73bf1,0x700dffff,0x00bfffff,0x002fffc8, 0xffffffa8,0x7fffec01,0x6cc0006f,0x1ff5c0cf,0xcfd98000,0x0067f540, 0xfffff300,0x2003ffff,0xfff1007c,0x5400bfff,0x700002ff,0x98000dff, 0x03ffffff,0xff500000,0x3fe6001d,0x1fee005f,0x64c1f500,0x000efffe, 0x3ffff880,0x3ffffa00,0x3ff6000f,0x20000fff,0x7540cfd9,0x3ff2004f, 0x67ecc07f,0xb81ff5c0,0x001fffff,0x7fe40000,0xfe80006f,0x303e65ff, 0x5009ffd7,0x00bfffff,0x000bff60,0x3fffffea,0x7fffdc01,0x000001ff, 0x00000000,0x37e60000,0xefffffff,0x1007c800,0x09ffffff,0x0007bee0, 0x003ff700,0x7ffffcc0,0x0000003f,0x54001df9,0x6c007fff,0x10144007, 0x88000035,0x3ee000cb,0x4004ffff,0x05fffff9,0x80000000,0x0007fffc, 0xffffb800,0x0000001f,0x00002c98,0x044bfffd,0x7fcc0020,0x0000ffff, 0x2a000bfa,0x01ffffff,0x7fffffd4,0x00000003,0x00000000,0x3f67e600, 0x05ffffff,0xff1007c8,0xb009ffff,0x000001bf,0x98000fee,0x03ffffff, 0x1ff00000,0xffffc800,0x003ea003,0x00000000,0x7ffcc000,0xf8001fff, 0x002fffff,0x64000000,0x00007fff,0xfffffb80,0x00000001,0xffe80000, 0x8800005f,0x03fffffe,0x0017dc00,0x7fffffd4,0x7fffcc01,0x4ccc04ff, 0x99999999,0x99999999,0x00009999,0x200000e0,0xffffd1f9,0x7c809fff, 0xfffff100,0x27f4409f,0x00000000,0x7ffffcc0,0x0000003f,0x7ffec000, 0x1f1002ff,0x000e0000,0x4cccccc0,0x99999999,0x7fffff40,0xfffb0007, 0x4cc41fff,0x99999999,0x4cc40099,0x32199999,0x26607fff,0x99999999, 0x7dc09999,0x0001ffff,0x4cccccc0,0x99999999,0x09999999,0x32ffff40, 0x33333333,0xb8133333,0x00ffffff,0x0017c400,0x7fffffd4,0x7fffd401, 0x3b2203ff,0xffffffff,0xffffffff,0x002fffff,0x0001f300,0xff11f980, 0x05ffffff,0xff8803e4,0xf304ffff,0xa800005f,0x675c41de,0x3ffe6000, 0x00003fff,0xb883bd50,0x3fee00ce,0x800cffff,0x1f300003,0xfec88000, 0xffffffff,0x3fea2def,0x0004ffff,0x7ffffff5,0x7fffffdc,0x03efffff, 0x7fffff4c,0xffff90ef,0x3fffb220,0xefffffff,0x7fffdc2d,0x5555441f, 0xf500aaaa,0xffffffff,0xffffffff,0xe807ffff,0xfd915fff,0xffffffff, 0xffe85bdf,0x00006fff,0xff500059,0xc803ffff,0x01ffffff,0xfffffd10, 0x999999df,0x05fffffd,0x013f6000,0x4c3f3000,0xffffffff,0x2200f901, 0x84ffffff,0x00001efb,0x907fffd4,0x4c00dfff,0x03ffffff,0xfffa8000, 0x1bfff20f,0xffffff98,0x000003ff,0x00009fb0,0x7fffff44,0xfff702ff, 0x20007fff,0x5ffffff9,0xffffffa8,0x6c4001ff,0x7fe41eff,0xffe8807f, 0x202fffff,0x41fffffb,0xefffffc8,0xffff700c,0x555557bf,0xfffffff5, 0xbfffd00d,0xfffffd10,0x3fea05ff,0x0004ffff,0x7fd40000,0x7401ffff, 0x00ffffff,0x3ffffea0,0x7ff5404f,0xf880002f,0x200000ff,0x7ffdc1f9, 0xc80effff,0xffff1007,0x0efc89ff,0xffd80000,0x3fffe3ff,0xfff3001f, 0x00007fff,0x47ffffb0,0x201fffff,0xffffffff,0x000003ff,0x0003ffe2, 0xfffffa80,0x3fff605f,0x30002fff,0x0dffffff,0x3fffffee,0xffa8001f, 0x07fffc81,0xffffff50,0xffffb80b,0x7fff301f,0x17fff700,0xfffffb80, 0xffe801ff,0xffff505f,0x7fec0bff,0x0002ffff,0x7fd40000,0x2601ffff, 0x02ffffff,0x7ffffcc0,0x5ff9004f,0xfff90000,0x7cc00007,0xfffffc81, 0x007c85ff,0x9ffffff1,0x00bfffa2,0x3fff2000,0x3ffffa2f,0xffff3000, 0x000007ff,0x745ffff9,0x2a00ffff,0xffffffff,0x00002eff,0x003fffc8, 0x3fffe600,0x3ffa04ff,0x0002ffff,0xfffffff1,0x3ffffa01,0xfc8004ff, 0x0ffff903,0x3ffffe60,0x7ffdc04f,0x3ff501ff,0x007ff200,0x3fffffe2, 0xfffd004f,0x3fffe60b,0x3ffe04ff,0x0002ffff,0x7fd40000,0xf501ffff, 0x009fffff,0xffffff30,0x017ec009,0x3fffe200,0x3e600006,0xfffffd01, 0x007c87ff,0x9ffffff1,0x1fffffd3,0xff880000,0x27ffd46f,0xfffff300, 0x1000007f,0xffa8dfff,0xfffb804f,0xffffffff,0xf100001d,0x0000dfff, 0x7fffffcc,0xfffff104,0x220003ff,0x1fffffff,0xffffff30,0x37c4001f, 0x00ffff90,0x3fffffe6,0x7fffdc04,0x003fd01f,0xfd8017ec,0x00ffffff, 0x20bfffd0,0x4ffffff9,0x3fffffe0,0x0000001f,0x7ffffd40,0xfdbaa9af, 0x001dffff,0xffffff10,0x017cc009,0x3fffee00,0xf300002f,0x3fffe203, 0x1f22ffff,0x7ffffc40,0xffffffef,0x800000ef,0x0015101a,0xffffff98, 0x2a000003,0x40015101,0xfffffffc,0x002fffff,0xfffffb80,0xff100002, 0x2609ffff,0x0fffffff,0x3fffe000,0x3f602fff,0x005fffff,0xffc807f6, 0xfff1007f,0xfb809fff,0xfd81ffff,0x802f4001,0xfffffff9,0x3fffa002, 0xfffff105,0x3ffe209f,0x0000ffff,0x7fd40000,0xffffffff,0x01dfffff, 0x7fffc400,0xd03504ff,0xffe80005,0x00006fff,0x7fcc03f3,0x90ffffff, 0x3ffe200f,0xfffeffff,0x0005ffff,0x30000000,0x07ffffff,0x00000000, 0xfffffb80,0x3fffffff,0x7fff4000,0x100006ff,0x09ffffff,0x3fffffe6, 0x3fe0000f,0x202fffff,0xfffffff8,0x404f9801,0x1007fffc,0x09ffffff, 0x1fffffb8,0x74000fec,0xffffd002,0xfe800dff,0xfff105ff,0x3e609fff, 0x01ffffff,0x54000000,0x9affffff,0xeffffffd,0x7fc40000,0x5b04ffff, 0x54000590,0x1fffffff,0x01f98000,0x7fffffd4,0x2200f96f,0x95ffffff, 0x7fffffff,0x2aaa6000,0x2a60aaaa,0x802aaaaa,0x3ffffff9,0xaaa98000, 0x2a60aaaa,0x002aaaaa,0xffffffb1,0x005fffff,0x3ffffea0,0x880001ff, 0x04ffffff,0xfffffff1,0x7ffc0003,0x6401ffff,0x05ffffff,0x7e400fe8, 0xff1007ff,0xb809ffff,0x361fffff,0x00d0004f,0x3fffffee,0x7ff4001f, 0xffff105f,0x3fe609ff,0x002fffff,0x7d400000,0xd11fffff,0x09ffffff, 0xffff8800,0x105d04ff,0x7ff40001,0x005fffff,0xc801f980,0xdfffffff, 0xfff1007c,0x7ff49fff,0x002fffff,0xfffffea8,0x3fffaa1f,0x7cc00fff, 0x003fffff,0xffffea80,0x3ffaa1ff,0x2000ffff,0xffffffd9,0xd0006fff, 0xbfffffff,0xfff10000,0x7fc09fff,0x002fffff,0xffffff10,0xfff8801f, 0x2e02ffff,0xfffc802f,0xffff1007,0xffb809ff,0xfffb1fff,0x10010003, 0x9fffffff,0xbfffd000,0x3ffffe20,0x3fffe04f,0x00003fff,0x7ffd4000, 0x3fe61fff,0x002fffff,0x3ffffe20,0x002f884f,0x7f5fcc00,0x000fffff, 0xd800fcc0,0xffffffff,0xffff1007,0x7ffc49ff,0x000fffff,0x3fffffd0, 0x1ffffff0,0xfffff980,0x3a00003f,0xf81fffff,0x000fffff,0xfffffe98, 0x4c003fff,0xfffffebf,0x7c40000f,0x204fffff,0x3ffffffd,0xffff3000, 0x3ee00fff,0x106fffff,0x3ff200df,0xfff1007f,0xfb809fff,0xffdaffff, 0x000006ff,0xdffffffb,0x3fffa000,0xfffff105,0x7fffc09f,0x00004fff, 0x7ffd4000,0x7fe41fff,0x000fffff,0xffffff10,0x0005f909,0xfff77d80, 0x80009fff,0xfd1001f9,0x0fffffff,0x3ffffe20,0x7fffcc4f,0x8000efff, 0x81fffffd,0x00fffffd,0x7fffffcc,0xd8910003,0xd81fffff,0x6c0fffff, 0xfffd5000,0xd8009fff,0xffffff77,0xff880009,0x3204ffff,0x04ffffff, 0xfffff500,0x7ff400df,0xfc82ffff,0xffff9001,0x3fffe200,0x7fdc04ff, 0xffffffff,0x400004ff,0xfffffffa,0xfffd0002,0x3fffe20b,0x3ff604ff, 0x0006ffff,0x7fd40000,0xfe81ffff,0x005fffff,0xffffff10,0x002ffa89, 0x7c53e200,0x007fffff,0x3000fcc0,0xffffffff,0x3fffe200,0xfffb84ff, 0x8005ffff,0x81fffffc,0x00fffffd,0x7fffffcc,0xc8970003,0xd81fffff, 0x6c0fffff,0x7ffec003,0x3e2006ff,0xffffff14,0xff88000f,0x2604ffff, 0x04ffffff,0xfffff700,0x7fd4005f,0x7cc6ffff,0x3fff2004,0xffff1007, 0xffb809ff,0xfffaffff,0x00001fff,0xfffffff1,0x7ff4000b,0xffff105f, 0x7fcc09ff,0x0007ffff,0x7fd40000,0xf881ffff,0x03ffffff,0xfffff880, 0xfffc98cf,0x3f200002,0x3fffff20,0x3e60003f,0x7ffd4001,0xf1007fff, 0x209fffff,0xfffffffc,0x7ffe4003,0xfffc81ff,0x7fcc00ff,0x0003ffff, 0xffffc89d,0xffffc81f,0x2002ec0f,0x06ffffe8,0xffc83f20,0x0003ffff, 0x3fffffe2,0x7fffec04,0xff90006f,0xd000dfff,0x47ffffff,0x3f2000fe, 0xff1007ff,0xb809ffff,0xf72fffff,0x000dffff,0x3fffff20,0x3a0000ff, 0xff105fff,0xe809ffff,0x00ffffff,0x2a000000,0x01ffffff,0xfffffff7, 0xfff88003,0xffffffff,0x100002ff,0xffff989f,0x260006ff,0xffc8001f, 0xf1007fff,0x409fffff,0xfffffffe,0x3fff2001,0xfffc81ff,0x7fcc00ff, 0x8003ffff,0x7ffe43f9,0xfffc81ff,0x007ec0ff,0x13fffe60,0x3e627c40, 0x006fffff,0x3ffffe20,0x7ffcc04f,0x44001fff,0x01ffffff,0xfffffa80, 0x002fa8ff,0x803fffe4,0x4ffffff8,0x7ffffdc0,0x3fffff61,0x7fcc0004, 0x003fffff,0x82ffff40,0x4ffffff8,0x7ffffdc0,0x0080004f,0xfffff500, 0x7ffec03f,0x44006fff,0xceffffff,0x002ffffe,0xfb03f700,0x005fffff, 0x40007e60,0x007ffffd,0x9ffffff1,0x7ffffc40,0xf9000fff,0xf903ffff, 0x9801ffff,0x03ffffff,0x7e42fd80,0xfc81ffff,0x7ec0ffff,0xffff8005, 0xb03f7002,0x05ffffff,0x3fffe200,0xffc804ff,0x5c005fff,0x005fffff, 0x3fffff60,0xc8006fcf,0xf1007fff,0x809fffff,0x21fffffb,0x2ffffff8, 0x3fffa000,0x80006fff,0xf105fffe,0x009fffff,0x0ffffffb,0x00058800, 0x3ffffff5,0x7ffffc40,0x3e2004ff,0x224fffff,0x00002ffe,0x3ffea0bd, 0x30005fff,0x3a20003f,0xf1007fff,0x80bfffff,0xfffffffa,0xfffc800e, 0xfffc81ff,0x7fcc00ff,0x4003ffff,0x7fe41ffb,0xffc81fff,0x7fec0fff, 0x7fffc002,0x2a0bd000,0x05ffffff,0xfffff100,0xffd1009f,0x74001fff, 0x000fffff,0x3ffffe60,0xc8001fff,0xf1007fff,0x809fffff,0x41fffffb, 0x0ffffffb,0xffffb800,0x80001fff,0xf105fffe,0x009fffff,0x9ffffff1, 0x01be2000,0x7ffffd40,0x7ffd402f,0x1002ffff,0x89ffffff,0x80002ff8, 0x3ffa02fa,0x8001ffff,0x220003fa,0xf1007fff,0x00bfffff,0xfffffff9, 0xffff900d,0xffff903f,0xfff9801f,0x2e004fff,0x7fe40fff,0xffc81fff, 0x7fec0fff,0xfff3001f,0x80bea005,0x1ffffffe,0xffff8800,0xfb1004ff, 0x2a009fff,0x000effff,0xfffffd80,0xff90005f,0x3fe200ff,0x5c04ffff, 0xd82fffff,0x005fffff,0x7fffffc4,0xfd00004f,0x3fe20bff,0x3004ffff, 0x07ffffff,0x001efa80,0xffffff70,0xffff9007,0xf1001fff,0x509fffff, 0xdd00005f,0xfffffb80,0x5fd8004f,0x3ffd4000,0xfffff980,0xfff8806f, 0x00dfffff,0x07fffff2,0x03fffff2,0xffffff50,0xffc9801d,0xffffc87f, 0xffffc81f,0x7fffec0f,0x04ffe803,0xff701ba0,0x0009ffff,0x9ffffff1, 0xffffc800,0x7fffd404,0xf100000e,0x009fffff,0x01ffff20,0x7fffffc4, 0x7fffe404,0xffff982f,0x3f6003ff,0x00ffffff,0xfffe8040,0xfffff105, 0x7ec4009f,0x200cffff,0x0005fd98,0x3fffffe6,0xffe801ff,0x402effff, 0x4ffffff8,0x40002f88,0xcccccef9,0xfffffdcc,0x3ee000ff,0x20001cff, 0xfe8807fb,0x03ffffff,0x7fffffcc,0xc80aefff,0xc81fffff,0x200fffff, 0xfffffff9,0xdcccccef,0x87ffffff,0x81fffffc,0x40fffffc,0xaefffffd, 0x01fff4c0,0x9999df30,0xffffb999,0x88001fff,0x04ffffff,0xdfffeb80, 0xfff9510a,0x8800009f,0x04ffffff,0x0ffff900,0x3ffffe20,0x3ffa604f, 0xfe80dfff,0x802fffff,0xfffffffa,0xe81dc002,0xff105fff,0x0009ffff, 0xbffffff7,0xfffd9559,0xffd10005,0xffffffff,0x3e601dff,0x7fffffff, 0x3ffffe20,0x5c05d04f,0x7fffec02,0xffffffff,0x403fffff,0xffffffea, 0xfb0003ef,0x7ffff740,0xefffffff,0x3ffffe20,0xffffffff,0x7fffe42f, 0xffffc81f,0x7fff440f,0xffffffff,0xffffffff,0xfc86ffff,0xfc81ffff, 0x76c0ffff,0xefffca88,0x000dfffe,0x7fffffec,0xffffffff,0x44003fff, 0x04ffffff,0x3fff2600,0xaeffffff,0xf8800000,0x004fffff,0x00ffff90, 0x3fffffe2,0xfffff704,0x7f45ffff,0x6fffffff,0x3ffffa20,0x2d8005ff, 0x20bfffd0,0x4ffffff8,0xffb51000,0xffffffff,0x0000001b,0x44000000, 0x04ffffff,0x100fc059,0x3fe2007f,0x0007ffff,0x00480000,0x00000000, 0x07fffff2,0x03fffff2,0x40000000,0x81fffffc,0x40fffffc,0x7dd7500b, 0x7f100013,0x3fffe200,0x7c4007ff,0x004fffff,0xffffe880,0x000003ff, 0x7fffffc4,0xfff90004,0x3ffe200f,0x00004fff,0x3ff20000,0x000fffff, 0xffe80fc4,0xffff105f,0x100009ff,0x357bf753,0x20000000,0x0000adec, 0x7ffffc40,0x07a8004f,0xfb0007e4,0x005fffff,0x16774400,0x6c000000, 0x00000ace,0x07ffffee,0x03fffff2,0x1bde9800,0x3ffee000,0xfffc81ff, 0x7cc000ff,0x3f20000d,0x3fff6000,0x22002fff,0x04ffffff,0xffff3000, 0x00000dff,0xffffff88,0xfff90004,0x3ffe200f,0x70004fff,0x800017bd, 0xfffffff9,0x00fc8003,0x220bfffd,0x04ffffff,0x01fe4000,0x6c000000, 0x00007fff,0x7fffffc4,0x207e8004,0x7cc004f8,0x006fffff,0x3fffe200, 0x40000004,0x0005fffe,0x3ffffee0,0x7ffff441,0x3e60000f,0x70002fff, 0x883fffff,0x00fffffe,0x00ffff40,0x20027c40,0x6ffffff9,0x3fffe200, 0x200004ff,0x3ffffffc,0x3e200000,0x004fffff,0x00ffff90,0x3fffffe2, 0xfff90004,0x7f40001f,0x006fffff,0x3fa07f98,0xfff105ff,0x00009fff, 0x0037ffd4,0x32600000,0x00002fff,0x3fffffe6,0x02fec004,0xfd0005f9, 0x005fffff,0x3fff5400,0x2a000000,0x0000fffd,0x7fffff30,0xffffffe8, 0x3ae20000,0xf30006ff,0xfe87ffff,0x000fffff,0x017ffee2,0x2000bf20, 0x2ffffffe,0xfffff300,0x4400009f,0x2ffffffe,0xff100000,0x000bffff, 0x401ffff2,0x4ffffff9,0xfff93000,0x3fee0007,0x001fffff,0xfd03ff44, 0x3fe60bff,0x0004ffff,0x07fff660,0x20000000,0x00004fff,0x3fffffe6, 0x9ffb1004,0x0003fe20,0x3fffffee,0x7d400006,0x000001ff,0x017ffc40, 0xffffd000,0xffdfd55f,0x00003fff,0x4000fff7,0xaafffffe,0xfffffefe, 0x6ffd8001,0x007fc400,0x7ffffdc0,0xfff3006f,0x00009fff,0xfffffe88, 0x400000bf,0x5ffffff8,0xffff9000,0xffff3001,0xe80009ff,0xf88005ff, 0x04ffffff,0x037ffcc0,0x260bffff,0x04ffffff,0x7ffc4000,0x00000002, 0x0017ffcc,0xfffff500,0x7dc401df,0xffd03fff,0xfff10003,0x0007ffff, 0x003ffe40,0x7fd40000,0x2600001f,0xefffffff,0xcfffffc9,0x7fec0000, 0x3fe60006,0xc9efffff,0x00cfffff,0x001fff40,0x20007ffa,0xfffffff8, 0xffffa803,0x000005ff,0xfffffffb,0x00053559,0x7fffffcc,0xfff90006, 0xfff5001f,0x4000bfff,0x8003fff8,0xfffffffd,0xfffb3000,0x3ffe20bf, 0xffff505f,0x80000bff,0x0000fffa,0xfd710000,0x440000bf,0xfffffffe, 0xfedcccde,0x542fffff,0x000dfffe,0x7fffffdc,0x4c0002ff,0x0002fffb, 0x3fee6000,0xa800003f,0x90dffffe,0x3fffffff,0xffca8800,0x7540001f, 0xf90dffff,0x03ffffff,0x01dff930,0x37fffaa0,0x7ffdc000,0x202fffff, 0xffffffe8,0x3000002f,0xfffffff9,0x22000fff,0xfffffffe,0xfffc8003, 0x3fa201df,0x02ffffff,0x2fff5440,0x7fffd400,0xccccefff,0xfffecccc, 0xd984ffff,0xe885ffff,0x2fffffff,0xfea88000,0x0000003f,0x05bdff50, 0xfffd1000,0xffffffff,0xffffffff,0x7e43ffff,0x3effffff,0x3ffffaa0, 0xffffffff,0xeefd8000,0x0000000c,0x0073bbf2,0x15730000,0xff800000, 0x00000bde,0x00002ae6,0x03deff88,0x3fffff20,0x3aa03eff,0xffffffff, 0xfd10ffff,0xffffffff,0x0005dfff,0x79953100,0xeb800135,0xfffffffe, 0x00eeffff,0xeeeeeeb8,0xffffd14e,0xffffffff,0xeff9805d,0xffd0002d, 0xffffffff,0xffffffff,0x47ffffff,0xeeeeeeeb,0xfffffd14,0xdfffffff, 0xddf70005,0x00000039,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x000bb660,0x32a62000,0x2e01cccd,0x1b200001,0x00726000,0x00000000, 0x32200000,0xcccccccc,0x0000cccc,0x99999950,0x05999999,0x33326000, 0xcccccccc,0x664c004c,0xcccccccc,0x993003cc,0x99999999,0xaa800799, 0xaaaaaaaa,0x00000aaa,0x00000000,0x00040000,0x00000274,0xccb98000, 0xea80001b,0x01c9801e,0x32201a88,0x00003ccc,0xff980000,0x800004ff, 0xfffffed9,0x22dfffff,0x200001f9,0x3a60003f,0x0002efff,0x80000000, 0x22000cc9,0xffffffff,0x000fffff,0xfffff900,0xbfffffff,0x3fea0000, 0xffffffff,0x7d4007ff,0xffffffff,0xf7006fff,0xffffffff,0xe800dfff, 0xffffffff,0x0002ffff,0xdd700000,0x2ea20001,0x401abcdc,0xfb73007d, 0x000159bf,0x7c4bfff6,0x7ec406ff,0x004ffcbf,0x4017fe20,0x3a601ff8, 0x3fff201f,0x7cc001ff,0x0004ffff,0x0fffff90,0xfffc8000,0x2e621bdf, 0x1ffeffff,0x01f50000,0xd9977400,0x00000007,0x7ffc4000,0xfff1000f, 0xffffffff,0x200001ff,0xfffffffc,0x005fffff,0xfffff500,0xffffffff, 0xffffa800,0xffffffff,0xffff7006,0xffffffff,0xfffe800d,0xffffffff, 0x0000002f,0x0ffff980,0xfffd7100,0x7fffffff,0x5c03fc81,0xfeefdfff, 0x22001dff,0x3fee4fff,0x3ffa201f,0x001bffa5,0x70007fec,0x9ff505ff, 0x7ffffc40,0x7fe4006f,0x200004ff,0x00fffffd,0xfffe9800,0xffc8803f, 0x00001fff,0x7cc000bb,0x0001fc41,0x30000000,0x2005ffff,0xeeeeeee8, 0x00eeeeee,0xdddd7000,0xdddddddd,0x3a600009,0xeeeeeeee,0x54005eee, 0xeeeeeeee,0x5005eeee,0xdddddddd,0x8009dddd,0xfffffffe,0x002fffff, 0x06aaa600,0x0ffffcc0,0x6ffffdc0,0x3fff260a,0x4409f73f,0x557e2ffe, 0x5005fffe,0x3ffd8dff,0x917ffec0,0xa8009fff,0xfe8003ff,0x03ffee3f, 0xffffffd8,0x3ffe002f,0x4c00004f,0x0004ffff,0x3fffffc8,0x7fffcc00, 0x2f880001,0x6c1f2000,0x00000006,0x7fff4000,0x00000002,0x00000000, 0x00000000,0x00000000,0x00000000,0xfd970000,0xbdfffdff,0x0fffec05, 0x9ffffb10,0xfffff980,0x1fff405f,0x0dffb17e,0xf887ff60,0x7ffd406f, 0x3fffee1f,0x0bff1001,0x37ffea00,0x2603fffd,0xffe9dfff,0xbfff3006, 0x3aa00000,0x5c0000cf,0x003fffff,0x003fff30,0x8000d900,0x027c40fa, 0x00000000,0x003ffa20,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x5bfffd30,0x3fff6a21,0x04fe80be,0x13ffffe2,0x7ffffd40, 0x03ffee01,0x00dfd0bf,0xffa87ff1,0x7fffe400,0x0ffffea0,0x0007fec0, 0xffffffd0,0x24ffe80d,0xc802ffe8,0x000005ff,0xff100000,0x8000ffff, 0x80001ffa,0xdf80004e,0x40003f20,0x99999999,0x80999999,0x99999998, 0x01efb999,0x0d554c00,0x26666000,0x99999999,0x99988099,0x00199999, 0x30000380,0x33333333,0x4c133333,0x99999999,0x99999999,0x00999999, 0x5c41dea8,0xfc8000ce,0x7cc04fff,0xdcceffff,0x7fff404f,0x3fa000ff, 0x3fe06fff,0x4c2fc1ff,0x86fa806f,0xffe803fd,0x3ffea0ff,0x3ffa804f, 0x7ffd4000,0x3ea02fff,0x00dfb03f,0x00000bff,0x7ec00000,0x0004ffff, 0x40001fd8,0xb80000fa,0x004ffdff,0x3ffffb60,0xdeffffff,0xffffec81, 0x01acceff,0xfffdb700,0x17dffffd,0x7fff6c00,0xefffffff,0xfffec81d, 0x0004efff,0x200007cc,0xfffffec8,0x2defffff,0xfffffd91,0xffffffff, 0xffffffff,0xffffa805,0x01bfff20,0x4ffffe88,0xfffff300,0xfc80155b, 0x4005ffff,0x84fffffa,0x7c4ffff8,0xfb00db05,0xf005f881,0x7d41ffff, 0x7c406fff,0xfd00005f,0xfe80bfff,0x301fe401,0x266000df,0x99999999, 0x99999999,0x70099999,0x03ffffff,0x003f3000,0x377765cc,0xbfb10000, 0x3a200003,0x1fffffff,0x1fffd100,0xffd30000,0x36a217bf,0x4002ffff, 0xffffffe8,0xffd1000e,0x3600001f,0x2200004f,0xfffffffe,0x7fff4402, 0xccccefff,0xfffffecc,0x7fffec02,0x07ffffe3,0x37fffec0,0x3ffff600, 0xfffa800f,0x6c001fff,0x41ffffff,0x22fffffa,0x000d505f,0x7fffc000, 0x3fffea0f,0x007fe405,0xaaaa9800,0x40026200,0x0006202a,0x7ffff644, 0xffffffff,0xffffffff,0xffff882f,0x200006ff,0xbffb001e,0x001dfffd, 0x0013f600,0xfffff700,0xff88009f,0xffc80002,0x7fcc04ff,0x2e000dff, 0x03ffffff,0x0017fc40,0x00fff880,0x3ffea000,0xf5005fff,0x809fffff, 0x402fffea,0x3a2ffffc,0xb800ffff,0x003fffff,0x27ffffcc,0x7fffff40, 0x7f7e4006,0x7c46ffff,0xbf3fffff,0x00000040,0x43ffffd0,0x204ffffa, 0x00003ffa,0x00000000,0xfe880000,0xccefffff,0xfffecccc,0xfffa82ff, 0x00004fff,0x3ffa2002,0x0bffff63,0x1fff1000,0x7fd40000,0x8003ffff, 0x220000ff,0x006ffffe,0x03fffff3,0x3ffffea0,0x0ff8003f,0xfff90000, 0x7cc00007,0x004fffff,0x9ffffff3,0x00bff200,0xfa8dfff1,0xff8804ff, 0x8001ffff,0x02fffffe,0x3fffffe6,0x2f3ee005,0x43ffffff,0xdfffffff, 0x5553005f,0x54c15555,0x902aaaaa,0x7dc3ffff,0xff102fff,0x6440000b, 0x0b51bded,0x8def6e44,0x3b72205a,0x400b51bd,0x4ffffffa,0x17fff540, 0x7fffffdc,0x20000004,0x7f46fff8,0x40005fff,0x0003fffc,0x3ffffea0, 0x07e8002f,0x7fffec00,0x3ff6000e,0xfa800fff,0x002fffff,0x100007e8, 0x000dffff,0x7ffffcc0,0xfff3004f,0x6c009fff,0x2035002f,0xffd000a8, 0x2000dfff,0x0ffffffc,0xffffff90,0x557ea009,0x44ffffff,0xfffffffb, 0xffd5005f,0x7543ffff,0x80ffffff,0x322ffff9,0x3f206fff,0xf500000f, 0xffffdbff,0x37ffea0b,0x505ffffe,0xfffdbfff,0x7fcc00bf,0x9004ffff, 0xfffb05ff,0x00007fff,0x1fffe400,0x1ffffff3,0x3ffe2000,0x2a00006f, 0x02ffffff,0x20007d80,0x03fffffb,0x7ffffcc0,0xffffa805,0x7d8002ff, 0xfff70000,0x200005ff,0x4ffffff8,0xfffff100,0x17cc009f,0x2a000000, 0x04ffffff,0xfffff700,0x3fffa07f,0xf9803fff,0x3ffffe26,0xffffe86f, 0x000dffff,0x03fffffd,0x01ffffff,0xfd8ffff2,0x7ff501ff,0x3fe20000, 0x17ff262f,0xc98bffe2,0xfff885ff,0x017ff262,0xffffff98,0x20bf6004, 0x2ffffffe,0xf1000000,0x77645fff,0x0000ffff,0x05fffff7,0x3ffea000, 0xd8002fff,0xfff10007,0xd0003fff,0x805fffff,0x2ffffffa,0x0007d800, 0xdfffffd0,0x3fe20000,0x1004ffff,0x09ffffff,0x530ba06a,0x41555555, 0x2aaaaaa9,0xffffff70,0x3fe60007,0xff05ffff,0x805fffff,0x3fe20ef8, 0xe887ffff,0xffffffff,0xfffd802f,0xfffd81ff,0x3ff600ff,0x207fff16, 0x00005fe8,0x7e41fff6,0x907ffd86,0x0fffb0df,0xf8801bf2,0x004fffff, 0xfff10be6,0x0003ffff,0x3fff2000,0x3feafe1f,0x3fa0005f,0x0006ffff, 0xffffff50,0x00fb0005,0x3fffffa0,0xfff90007,0x7d401fff,0x002fffff, 0xa80007d8,0x1fffffff,0xfff88000,0xf1004fff,0x209fffff,0x7542c82d, 0x21ffffff,0xffffffea,0xfffffd80,0xff10002f,0xf10dffff,0x05ffffff, 0x3e207f44,0x00ffffff,0xfffffffb,0x7e401bff,0xfd81ffff,0x5400ffff, 0x00dffefe,0x00003ff2,0xd02ffff8,0x05ffff0d,0x3fffe1ba,0x4400dd02, 0x04ffffff,0xf985d035,0x01ffffff,0xffd00000,0x443ea3ff,0x3ea0001b, 0x01ffffff,0xffffa800,0x7d8002ff,0xffffa800,0xf70004ff,0x407fffff, 0x2ffffffa,0x0007d800,0xffffffe8,0xf880005f,0x004fffff,0x9ffffff1, 0x40220ba0,0x81fffffe,0x80ffffff,0x2ffffffe,0xffff1000,0xfff30fff, 0x7403ffff,0xfffff01f,0x7fdc05ff,0xefffffff,0xfffff900,0xfffff903, 0x4004c001,0x2e603ffa,0xf301bded,0xd505ffff,0x2fffff98,0x7ffcc6a8, 0x006a82ff,0x3fffffe2,0x05905b04,0x5fffffff,0x3e000000,0x0bb2ffff, 0xfffe8000,0x0005ffff,0xffffffa8,0x007d8002,0xffffffb8,0xfff30003, 0x7d40bfff,0x002fffff,0x4c0007d8,0xfffffebf,0x7c40000f,0x004fffff, 0x9ffffff1,0xd8005f10,0xd81fffff,0x440fffff,0x1fffffff,0xffff1000, 0xff983fff,0xb01fffff,0x7fffc05f,0x74402fff,0xffffffff,0xffffc80f, 0xffffc81f,0x4400000f,0x3fee05fe,0x983ffd9e,0x84ffffff,0x7ffffcc3, 0x7fcc384f,0x0384ffff,0x3ffffe20,0x1105d04f,0xffffffd0,0xdddd1007, 0xdddddddd,0x3fffe27d,0x0002f8bf,0x3ffafe60,0x0000ffff,0x7fffffd4, 0x007d8002,0xffffffd8,0xfff10002,0x7d40dfff,0x002fffff,0x6c0007d8, 0xffffff77,0xff880009,0x1004ffff,0x09ffffff,0xfc8005f9,0xfd81ffff, 0x7cc0ffff,0x01ffffff,0x3ffffe00,0xffff82ff,0x3fc81fff,0x3ffffe20, 0xff7001ff,0x09ffffff,0x03fffff9,0x01fffff9,0x0ffc8000,0x263fff90, 0xfff84fff,0x401effff,0xefffffff,0x7ffffc01,0x10001eff,0x09ffffff, 0x7e4005f1,0x003fffff,0x3fffff22,0x3e61bfff,0x07bcffff,0xfbbec000, 0x004fffff,0x7ffffd40,0x07d8002f,0xfffffe80,0xff10002f,0x540fffff, 0x02ffffff,0x20007d80,0xffff14f8,0x88000fff,0x04ffffff,0xffffff10, 0x002ffa89,0x0fffffe4,0x07ffffe4,0x3fffffe6,0x3fe0000f,0xe82fffff, 0x42ffffff,0x7fc404fb,0x000fffff,0x3ffffffe,0x7ffe41ff,0xfffc81ff, 0x200000ff,0xff303ffa,0x2ffff8ff,0x7fffffe4,0x3ff202ff,0x02ffffff, 0x3ffffff2,0xf88002ff,0xc84fffff,0x3fee002f,0x8004ffff,0x3ffffffd, 0xefffff88,0x2200004e,0xfffff14f,0xfa8000ff,0x002fffff,0x7c4007d8, 0x01ffffff,0xfffff100,0x3fea03ff,0x8002ffff,0x3f20007d,0x3fffff20, 0x3e20003f,0x004fffff,0x9ffffff1,0x05fff931,0xfffffc80,0xfffffc81, 0x7ffffc40,0x3e0001ff,0x81ffffff,0x3ffffffc,0x3e2017ea,0x007fffff, 0x7fffeefc,0x7ffe43ff,0xfffc81ff,0x100000ff,0x7ff40dfd,0x37fff46f, 0x3fffffe2,0xff104fff,0x9fffffff,0x3ffffe20,0x4004ffff,0x4ffffff8, 0x30017fd4,0x0bffffff,0xfffff700,0x3fffe05f,0x00001fff,0xfffc83f2, 0x20003fff,0x2ffffffa,0x4007d800,0xfffffff9,0x3ffe0001,0xf502ffff, 0x005fffff,0x22000fb0,0x7fffcc4f,0x220006ff,0x04ffffff,0xffffff10, 0x5fffffff,0xffffc800,0xffffc81f,0xfffff80f,0xf10002ff,0x01ffffff, 0x9ffffff7,0x26003be6,0x05ffffff,0xfffdafc0,0x7ffe45ff,0xfffc81ff, 0x900000ff,0x3fe201ff,0x7ffec6ff,0x7fff440f,0x104fffff,0xfffffffd, 0x3ffa209f,0x04ffffff,0x3ffffe20,0xfffc98cf,0x7ffec002,0x5c000fff, 0x01ffffff,0x0dfffffb,0x227c4000,0x6ffffff9,0x3ffea000,0xd8002fff, 0x7ffcc007,0x0000ffff,0x3ffffffe,0xfffff502,0x0fb0005f,0x3607ee00, 0x02ffffff,0xfffff100,0x3fe2009f,0xfeceffff,0x64002fff,0xc81fffff, 0xd80fffff,0x03ffffff,0xfffff100,0x3ffe60ff,0x0fe8dfff,0xfffff700, 0x3e00b85f,0x1bffff65,0x03fffff9,0x01fffff9,0x07ff3000,0x22ffffcc, 0x882ffffd,0xfffffffd,0xfffb100f,0x201fffff,0xffffffd8,0xff1000ff, 0xffffffff,0x88005fff,0x03ffffff,0x7ffffdc0,0xffff901f,0x200001ff, 0xfffd81fb,0x50002fff,0x05ffffff,0x8800fb00,0x1fffffff,0x3fffe000, 0xff501fff,0x0005ffff,0x17a000fb,0x7fffffd4,0xfff10005,0x22009fff, 0x24ffffff,0x4002ffe8,0x81fffffc,0x80fffffc,0x4ffffffc,0xffff3000, 0x7fec0bff,0x01feefff,0x3fffff60,0x97e02e86,0x645ffffa,0xc81fffff, 0x000fffff,0x2037f440,0x6c5ffffa,0x2e03ffff,0x3fffffff,0x7ffffdc0, 0x7fdc03ff,0x003fffff,0xdffffff1,0x05ffffd9,0xfffff500,0xfffb800d, 0xff301fff,0x540dffff,0x2a0bd004,0x05ffffff,0xfffff500,0x0fb0005f, 0xffffff00,0x3e20005f,0x00ffffff,0x5ffffff5,0x000fb000,0x7ff405f5, 0x8001ffff,0x4ffffff8,0xfffff100,0x02ff889f,0x7ffffe40,0xfffffc81, 0xfffff980,0xff70004f,0x4405ffff,0x2fffffff,0x7ffffc00,0x3e05e83f, 0x21ffffc5,0x81fffffc,0x00fffffc,0x007fe400,0xb1bfffe6,0x40c5ffff, 0x5fffffe9,0x7fff4c0c,0x74c0c5ff,0x005fffff,0x9ffffff1,0x0017ff44, 0x2fffffc8,0x3fffee00,0x3fee01ff,0x221dffff,0x2fa800fb,0x3fffffa0, 0xffa8001f,0x8002ffff,0xffd8006e,0x0003ffff,0xfffffff1,0x7ffffd40, 0x06e8002f,0x7dc06e80,0x004fffff,0xffffff88,0xffff1004,0x05f509ff, 0xfffffc80,0xfffffc81,0xfffffb00,0x3ff6000d,0xfa806fff,0x4004ffff, 0x05fffffa,0xf17e01fd,0xffb83fff,0xffc81fff,0x20000fff,0xf8803ff9, 0x7fec6fff,0x2203e0ff,0x7c6ffffd,0xffffd880,0x7ec407c6,0xf1006fff, 0x889fffff,0x360002ff,0x001fffff,0x3ffffff7,0xfffffd80,0x03ffefff, 0xffb80dd0,0x8004ffff,0x2ffffffa,0x8006e800,0x4ffffffc,0xffff3000, 0x7fd40bff,0x8002ffff,0x77cc006e,0xdccccccc,0x0fffffff,0x7fffc400, 0xff1004ff,0xf109ffff,0xfffc8005,0xfffc81ff,0xfff100ff,0xd0003fff, 0x005fffff,0x03fffff2,0xeffffe80,0x3e0bfd00,0x213ffe65,0x41fffffb, 0x0fffffe8,0x01bfa000,0x6c6fffe8,0x01fc7fff,0x3f89ffff,0xf13fffe0, 0x27fffc07,0xfffff880,0x002fa84f,0x7ffffd40,0xffffb802,0x7fc401ff, 0xffffffff,0x99df3003,0xffb99999,0x001fffff,0xffffff98,0x006f8002, 0xffffff98,0xfff70004,0x7cc05fff,0x002fffff,0x7ec006f8,0xffffffff, 0xffffffff,0x7ffc4003,0xf1004fff,0x209fffff,0xf90ae02e,0xf903ffff, 0x6401ffff,0x005fffff,0x2fffffd4,0xfffff100,0x3ffee009,0x3ffa01ff, 0x3ff65f85,0xffff980e,0x7ffff43f,0xf90000ff,0x7fd4001f,0x17fffc7f, 0x7fe407fe,0xc80ffc2f,0x0ffc2fff,0x002fffc8,0x9ffffff1,0x00005f10, 0x7bffffb1,0x3fb2a213,0x800befff,0xffffffef,0x3ff6001d,0xffffffff, 0x3fffffff,0x7fffcc00,0x5f8003ff,0xffffb000,0x3f6000df,0x4c06ffff, 0x03ffffff,0x22005f80,0xfff1003f,0x8800ffff,0x04ffffff,0xffffff10, 0x1f80b209,0x0fffffdc,0x07ffffe4,0xfffffd10,0x7ffec001,0x3e6000ff, 0x403fffff,0x00dffffa,0x5677fff4,0xdffeadf8,0x3ffffa00,0xffefeaaf, 0x98001fff,0xfd8003ff,0xbfff11ff,0xfb03ffd0,0x1ffe81df,0x740effd8, 0xeffd81ff,0xffff1000,0x80ba09ff,0x3b26002b,0xffffffff,0x000befff, 0x55dcc3ea,0x01fc4000,0xffffff88,0x7ffc4007,0x4c003fff,0xff10003f, 0x0003ffff,0x05fffffd,0xffffff88,0x01fcc003,0x6c001f90,0x02ffffff, 0x3ffffe20,0xfff1004f,0x50009fff,0xfffff70f,0xffffe883,0x7ff4400f, 0xff5004ff,0x44003fff,0xfffea8ef,0x3ff261be,0xb71003ff,0xffffffff, 0xff3005bf,0x93dfffff,0x019fffff,0x0006fe80,0xfb1bffb1,0xfffd01bf, 0x1fff715b,0x15bfffd0,0xfd01fff7,0xff715bff,0x7fc4001f,0x5904ffff, 0x30000fc0,0x33559bf7,0x002ec000,0x4001f900,0x2ffffffd,0x7ffff400, 0x17dc005f,0xffff9000,0xffa800bf,0xfd005fff,0x800bffff,0x9f1002fc, 0xffff9800,0x3e2006ff,0x004fffff,0x9ffffff1,0xf30fd000,0xfe87ffff, 0x800fffff,0x04ffffe8,0x0f7fffd4,0x981dd100,0xfffffffd,0x20002dff, 0x1efcaa98,0xfffea800,0xffff90df,0x32003fff,0x540001ff,0x202dfffd, 0xffffeced,0xd9db01ef,0x03dfffff,0x3fffb3b6,0x44001eff,0x04ffffff, 0x80007a80,0x00000cfa,0x200005f1,0x7cc004f8,0x006fffff,0x3fffffdc, 0x000df300,0xfffffe88,0x3fffa000,0xff7000ff,0x4c00dfff,0x0bf2006f, 0x3ffffa00,0xff3002ff,0x2009ffff,0x4ffffff9,0xe82fec00,0xeaafffff, 0x1fffffef,0x3fffee00,0x3ff660ad,0xfd8004ff,0x665d4c01,0x0000009a, 0xb98000bf,0x3000000a,0x08000013,0x5d441700,0x5105c00a,0x20b80157, 0x0000aba8,0x9ffffff1,0x000fd000,0x00ffff88,0x0007b800,0x2000bf20, 0x2ffffffe,0x3fffe200,0xff8805ff,0xfe880002,0xf5004fff,0x4003ffff, 0x5ffffff8,0x002ff880,0x70001ff1,0x0dffffff,0x3ffffe60,0xfff3004f, 0x22009fff,0xff304ffd,0x93dfffff,0x019fffff,0x7fff5c40,0xceffffff, 0x00310001,0x20000000,0x0000004e,0x00000000,0x00000000,0x00000000, 0x3ffffe60,0x2fec004f,0x3ff26000,0x4e80003f,0x1ff10000,0xffff7000, 0xf9800dff,0x00cfffff,0x00007fd3,0x27ffff44,0x3bfffea0,0xfff98001, 0xa880cfff,0x3fa003fe,0xff88001f,0x803fffff,0x5ffffffa,0xfffff500, 0x7dc401df,0x3aa03fff,0xf90dffff,0x03ffffff,0x99955100,0x00000357, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0xffffff98, 0x9ffb1004,0x3ffa0000,0x0fcc0004,0x1ffe8000,0xffff8800,0x4c003fff, 0xeffffffe,0x03fffdbc,0xfff70000,0x36e215bf,0x0004ffff,0x7fffff54, 0xfffebcef,0xfffd5003,0xffb8001b,0x02ffffff,0x3fffffa2,0x7f4402ff, 0xdeffffff,0xfffedccc,0xb9802fff,0x0000000a,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x80000000,0xeffffffa,0x3ffee200, 0xf980003f,0x640003ff,0xfea80006,0x5c000dff,0xffffffff,0xfffc8002, 0xcfffffff,0x44000000,0xffffffeb,0x001cefff,0x3ffff200,0x0cffffff, 0xfffff900,0x75407dff,0xffffffff,0xfd10ffff,0xffffffff,0x3a25dfff, 0xffffffff,0xffffffff,0x1fffffff,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x7fffff44,0xdcccdeff, 0x2ffffffe,0x3fae2000,0x2d80005f,0x7ffe4000,0x203effff,0xffffffea, 0x00ffffff,0xbccca980,0x0000009a,0xcccaa880,0x000001ab,0x55e6654c, 0x00000009,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x20000000,0xffffffe8,0xffffffff, 0xffffffff,0xff50001f,0x000005bd,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x40000000,0x0153003b,0x005e4c00,0x00000000,0x54c00ee0,0x33320000, 0x0000003c,0x001c8800,0x99950035,0x32e00019,0x00000ccc,0x00000000, 0x0015c400,0x000132e0,0x00000000,0x00000000,0x00000000,0x880005b5, 0x6440002b,0x332e002c,0x0000004c,0x2a801e40,0x53003b80,0x00dfa801, 0x4c0017ee,0x004ffffe,0x7fff4000,0xfa8000ff,0x01bee00e,0xfffffb80, 0xfe800002,0xbfff31ff,0xe880bfa0,0x7ffc402f,0xf98005ff,0x0004ffff, 0x0effffe8,0x0067fdc4,0x3ffffee0,0x1ffed402,0x07ff5000,0xbfffff30, 0x3ffe6000,0x800005ff,0x02fffffb,0x01dfda80,0x7fffff50,0x7ff54000, 0x6d4003ff,0x740003ff,0xff5000ef,0x00007fff,0x05fffff7,0x7e405fb8, 0x00dfa805,0x7f401bee,0x01ffd80e,0x3225db00,0x1000001f,0x003fffff, 0x64077f40,0xf10001ff,0x00dfffff,0x3fff9800,0x5403fff2,0x5ff983ff, 0xfffffd80,0x7ff4001f,0x0000ffff,0x03bfffe6,0x017ffff2,0x05ffffd0, 0x3fffff22,0xdff10003,0x7fffcc00,0x3fe60007,0x00000fff,0x017ffff4, 0x3ffffcc0,0xbffff700,0x98f74000,0x7e4400fd,0x0003ffff,0xe800bfee, 0x00ffffff,0x7ffff400,0x81bff002,0xd000ffd8,0x3ffb01df,0x47ffea00, 0x0004ffe8,0x00bd07f1,0x3ffee000,0x7cc0001f,0xbffb11ff,0x7ffe4000, 0x0002ffff,0xff17ff20,0x5ffd805f,0x3007ffea,0xbfffffff,0x7fffd400, 0x20004fff,0xf00ffffc,0x001fffff,0x80ffffe6,0x3fffd8a8,0x01ff9000, 0x2ffff980,0x3ffe6000,0x2600002f,0x0003ffff,0x05fffffb,0x07fffdc0, 0x220fcc00,0x6c54403f,0x10003fff,0x7dc009ff,0x03ffffff,0x3fffe200, 0x3bfee003,0x007ffd30,0xe88fffd4,0x7f4004ff,0x0ffffbff,0x901f7000, 0x3a00000f,0x00001fff,0xffd7fffb,0x3e60001f,0x6ffe9eff,0x3ffa0000, 0x2017fe60,0xffcdfff9,0xfffe804f,0x801fffca,0xfd9efff8,0xfd0000ff, 0x3fe203ff,0x7001ffff,0x5c007fff,0xa8003fff,0xf50003ff,0xa8000bff, 0x00005fff,0x000fffee,0x4fffffe8,0x1fffe400,0x6d83e400,0x0fffee00, 0x0077f400,0xe9efff88,0x70000fff,0xd0007fff,0xffff7fff,0x7fffd000, 0x8001ffff,0xfffffff9,0x0be20003,0x2000017a,0x0001fff8,0x3ffffe60, 0x360004ff,0x3ffa24ff,0xff980002,0x80077e42,0xfffffffd,0x0f7fd400, 0xf900dff7,0x27fe41df,0x0fffcc00,0x1bffff60,0x003ffe80,0x001fffdc, 0x0001bfa2,0x0000fff5,0x0001fff5,0x000fffa0,0x1fffff70,0x0bff9000, 0xf883f500,0x3ffee003,0x2ffb8003,0x837ff200,0xd0004ffd,0x2a0009ff, 0x2fffffff,0xffff9800,0xb0003fff,0x00dfffff,0x7dc3db00,0xfb800001, 0xd800002f,0x00ffffff,0x207ff500,0xc80006fd,0x001fe84f,0x3fffffe6, 0x80dfe803,0x3e202ffa,0x03ff704f,0x801ffc80,0x002ffff9,0x70009ff3, 0xc8007fff,0xa80000ff,0xa80002ff,0x980002ff,0x880004ff,0x0004fffd, 0x20003ff2,0x01f910df,0x01fffdc0,0x8013fe20,0xff904ff9,0x4ff88001, 0x7fff4000,0x360006ff,0x006fffff,0x3ffffe60,0xff980002,0x00005ffe, 0x00005fd0,0x3ffffe20,0x07fa0003,0x80007f90,0x027cc0ee,0x37fffec0, 0x26027dc0,0x00ff606f,0xfe800bf5,0x00154001,0x5c0013ee,0x2a003fff, 0x200003ff,0x700005fb,0xf70000bf,0xa8800009,0x3fd80000,0xfeffb800, 0x7fdc004f,0x7ff4003f,0x00bf6000,0xfb8009f7,0xffa80004,0x20001fff, 0x02fffff9,0x15555400,0x336a0000,0x26000001,0x54000000,0x40002aaa, 0x00550009,0x10000000,0x10035555,0x402a2003,0x00530009,0x00000098, 0x5c000310,0xd1003fff,0x100000df,0x0c400001,0x000c4000,0x40000000, 0xb7100009,0xff700017,0x7fdc007f,0x8004c002,0x00c40029,0x55555000, 0x55550000,0x00000005,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x07fff700,0x0007ff20,0x00000000, 0x00000000,0x00000000,0x2e000000,0xf1003fff,0x0000009f,0x00400000, 0x00000000,0x2aaaaa60,0x2aaa60aa,0xaa982aaa,0x260aaaaa,0x02aaaaaa, 0x337fb2e0,0x77edc40a,0xdb98002c,0xa980bdee,0x2aaaaaaa,0x2aaaaaaa, 0x2aaa62aa,0x6dd400aa,0x50000ade,0x0017bdb7,0xbdeedb98,0x3b6ea000, 0x730000ad,0x8017bddb,0x36ea0018,0x2e000ade,0xf9803fff,0x7500003f, 0x00015bdb,0x9dfdb751,0xb7510003,0x00039dfd,0x5d400050,0x2000bded, 0xcefedba8,0x3ffee001,0x01ffb003,0xbdb75000,0xb7300017,0x74417bdd, 0x3b6ea204,0x50001cef,0x8015bdb7,0xffffffea,0x3ffffaa1,0x7ff540ff, 0x3aa1ffff,0x00ffffff,0x7fefffdc,0xdff51fff,0x001bfff9,0xffbbffb1, 0xfffa85ff,0x323effff,0xdfffffff,0x37fff662,0x9fffd100,0x2007dffb, 0xffbdffd8,0xffd8801f,0x02ffffdd,0x6e7fff44,0xb1003eff,0xffffbbff, 0x4402dc05,0xffdcfffe,0xfffb803e,0x037f4403,0x7fff4400,0x003effdc, 0xffdbdff5,0x7d400bff,0xffffedef,0x01e20005,0x2f7ff620,0xfa801fff, 0xffffedef,0x7fff7005,0x005ff700,0xbdffd880,0xb1001fff,0xfffb9fff, 0x7d40dd17,0xffffedef,0x3ffa2005,0x03effdcf,0x0ffffff4,0x07fffffc, 0x1fffffe8,0x0ffffff8,0xb83ffd10,0x5ffdffff,0x803fff62,0x3f63ffe8, 0x7fc42fff,0xfa83ffff,0xb00fffff,0x7ffcc07f,0x13fff20d,0x4c5fff30, 0x3a203fff,0x3fff63ff,0xbfff302f,0x027ffe41,0xfd8fffa2,0x0db02fff, 0x20dfff98,0x6404fffc,0x7e404fff,0x7cc0001f,0x3ff20dff,0x3ff6204f, 0x27fffe41,0x907ff620,0x0009ffff,0xff3001aa,0x1fffcc5f,0x641ffd88, 0xc804ffff,0x7c404fff,0x7cc0005f,0x3ffe62ff,0x7fff4403,0x3bfffea0, 0x41ffd880,0x804ffffc,0x320dfff9,0x3f604fff,0xfd81ffff,0xfb00ffff, 0xfb03ffff,0x3a01ffff,0xfff905ff,0xff981fff,0xdffd105f,0x87ffffa8, 0x05fffffa,0x05fffffd,0xfff981b6,0x7fffc41f,0x0dfff103,0xd101fffb, 0xfffa8dff,0xffff987f,0x1ffffc41,0x546ffe88,0xfd07ffff,0x0ffffcc0, 0x80ffffe2,0x2604fffc,0x4c0003ff,0x7c41ffff,0xffb03fff,0x3ffffe0d, 0x41bff602,0x002fffff,0x3e2006c8,0xfffd86ff,0xf06ffd80,0xc805ffff, 0x7ec04fff,0x3e20000f,0xfffd86ff,0x7ffff100,0x20bfffb0,0xfff06ffd, 0x7fcc05ff,0x7ffc41ff,0xffff903f,0xffffb03f,0x3fff201f,0xfffd81ff, 0xfffa80ff,0xffffb82f,0x3fffd05f,0x887fff90,0xe80fffff,0xb80fffff, 0xf04fffff,0x3fffec07,0x81ffffd8,0xfb83fffc,0xfffc84ff,0x7ffffc43, 0x83fffec0,0xc81ffffd,0x7fc43fff,0x0ff80fff,0x20ffffb0,0x221ffffd, 0xcfffffca,0x0006fe82,0xb07fffd8,0xf983ffff,0xfff83fff,0xfff305ff, 0xfffff07f,0x04f9800b,0x20ffff20,0x7cc4fffb,0xfff83fff,0xfca885ff, 0xb82cffff,0x640002ff,0xffb83fff,0xffff904f,0x3ffff703,0x83ffff98, 0x205fffff,0xfb07fffd,0xff903fff,0xff903fff,0x3f201fff,0xfc81ffff, 0xfc80ffff,0xffa86fff,0xffb04fff,0xffff88bf,0x0ffffd82,0x3fffffb8, 0x7fffffd8,0xff300f98,0x3fee0dff,0x7ffcc4ff,0xffffa82f,0x0bfffe20, 0x983ffff6,0xf706ffff,0xff889fff,0xfffd82ff,0x417fc40f,0x706ffff9, 0x9989ffff,0x41999999,0xda881ffc,0xfff302de,0x3ffee0df,0x7fffe44f, 0x6ffffe86,0x0dffff90,0x00dffffd,0x98007fd4,0xfa82ffff,0x3ff20fff, 0xfffe86ff,0x3333306f,0xff883333,0x987fd005,0xfa82ffff,0x7fc40fff, 0xffb80fff,0x7ffe46ff,0xffffe86f,0xdffff306,0x13fffee0,0x07fffff2, 0x03fffff2,0x0fffffe4,0x07ffffe4,0x437fffcc,0x03fffffa,0xfc8ffffb, 0xffa81fff,0xffff104f,0xffef88df,0x02e42fff,0x20bffffd,0x6c6ffffb, 0xfa81ffff,0x3ff22fff,0xfffa81ff,0x2fffff44,0x46ffffb8,0xa81ffffc, 0xff984fff,0x5ffffe83,0x0dffff70,0x41ffcc00,0x5ffffffa,0x05ffffe8, 0xa8dffff7,0xfe86ffff,0xff506fff,0xfffd0dff,0x3ff200df,0x3fff6005, 0xffffa81f,0x1bfffea2,0x01bffffa,0x007fec00,0x3f61ffec,0xffa81fff, 0x7ffe42ff,0xffff987f,0x3ffea1ff,0xffffe86f,0xbffffd06,0x1bfffee0, 0x07fffff2,0x03fffff2,0x0fffffe4,0x07ffffe4,0xa81effd8,0x901fffff, 0x7fc1ffff,0x35101fff,0xfffffd80,0x3ffe7ae0,0xf01fc5ff,0x2a0bffff, 0x3a0fffff,0xf980ffff,0x3ffe3fff,0x035101ff,0x20bfffff,0x20fffffa, 0x101fffff,0x17fee035,0x417ffffe,0x00fffffa,0xf10dfd00,0x3fffffdf, 0x05fffff8,0x81fffff5,0xfe82fffc,0x3f206fff,0xfffe82ff,0x7ff4406f, 0x3ffa001f,0xfff980ff,0x17ffe43f,0x037ffff4,0x017fdc00,0x3a1fffdc, 0xf980ffff,0x7fec3fff,0x7f7c47ff,0x7e43ffff,0xfffe82ff,0xfffff06f, 0x3fffea0b,0x7fffe40f,0xffffc81f,0xffff900f,0xffff903f,0x440c401f, 0xeffffffc,0xfffeeeee,0xffff11ff,0xfa80005f,0x53a3ffff,0x50fffffe, 0x3ffe201f,0xfff504ff,0x7fffc3ff,0xfeeeeeef,0xfff14fff,0xf88005ff, 0xf504ffff,0x3e23ffff,0x0002ffff,0xff88fffb,0xff504fff,0x90003fff, 0x219b03ff,0x225fffe9,0x504fffff,0x203fffff,0xffffea81,0xea81806f, 0x206fffff,0x006ffff9,0x777ffffc,0xffffeeee,0xffd50304,0x8000dfff, 0xfa805ff8,0x7ffc3fff,0xeeeeeeff,0x7fc4ffff,0x4f747fff,0x304fffff, 0xfffffd50,0xfffff10d,0x3fffea09,0x7fffe41f,0xffffc81f,0xffff900f, 0xffff903f,0x7e44001f,0xdfffffbe,0xcccccccc,0xffff31cc,0xff00007f, 0x47e6dfff,0xb3fffffb,0x7fffd40b,0xffff504f,0x3fffe27f,0xccccccdf, 0xfff33ccc,0xfa8007ff,0xf504ffff,0x3e67ffff,0x0003ffff,0x7d43ffff, 0xf504ffff,0x8007ffff,0x50503ff9,0x7fd4bfff,0xff504fff,0xd5007fff, 0xdffffd9f,0xecfea800,0xf306ffff,0x4005ffff,0xcdfffff8,0xcccccccc, 0xecfea803,0x0006ffff,0x26007fec,0x223fffdf,0xccdfffff,0x3ccccccc, 0x9fffffe2,0xffff98ed,0xcfea805f,0xa86ffffe,0x504fffff,0xc87fffff, 0xc81fffff,0x900fffff,0x903fffff,0x001fffff,0xf31bff91,0x0005ffff, 0x0bfffff5,0xffff9000,0x7fc4d73f,0x02f8efff,0x13ffffea,0xa7ffffd4, 0x02fffffa,0x7ffffd40,0x7ffd4005,0xfff504ff,0x3ffea9ff,0xf98005ff, 0x3fea3fff,0xff504fff,0xe8009fff,0x7fc4006f,0x3fffea2f,0xffff504f, 0x7ff5409f,0x0dffffd3,0x74fffaa0,0xfb06ffff,0xa800ffff,0x002fffff, 0xd3ffea80,0x000dffff,0x22017fdc,0x23fff9cf,0x02fffffa,0xfffff980, 0x3fe63f97,0x3aa05fff,0xffffd3ff,0xfffff50d,0x3fffea09,0x7fffe44f, 0xffffc81f,0xffff900f,0xffff903f,0xfffa801f,0x3ffffe23,0xfff98004, 0x980006ff,0x3edfffff,0x67ffffec,0x7fffcc07,0xffff704f,0x3fffe67f, 0x7fcc003f,0x4c006fff,0x704fffff,0x267fffff,0x006fffff,0x25ffffb8, 0x04fffff9,0x07fffff7,0x000ffe40,0xff31ffea,0x3ee09fff,0xd883ffff, 0x3ffa2fff,0x7ec406ff,0x3fffa2ff,0xfffff06f,0x9877ae0d,0x003fffff, 0x8bfff620,0x006ffffe,0x880bff10,0x47fff35e,0x03fffff9,0xfffff880, 0x3fe61faf,0xfd884fff,0x3fffa2ff,0xffff986f,0xffff704f,0xffffc87f, 0xffffc81f,0xffff900f,0xffff903f,0x7ffec01f,0x7ffffc43,0xfff88006, 0xd00007ff,0x81ffffff,0x4ffffffa,0x7ffffc40,0xfffff704,0x3ffffe25, 0x7ffc4005,0x7c4007ff,0xf704ffff,0x3e25ffff,0x8007ffff,0x226ffffd, 0x704fffff,0x005fffff,0x2000ffe6,0x7fc42ffc,0xff704fff,0xfe985fff, 0x7fff42ff,0x3ffa606f,0x7ffff42f,0xfffff986,0x0ffff885,0x0bfffff1, 0x3fffa600,0x37ffff42,0x00ffd800,0xfff9876c,0x3ffffe23,0xffff0005, 0xff985fff,0x7f4c2fff,0x7fff42ff,0xffff886f,0xffff704f,0xffffc85f, 0xffffc81f,0xffff900f,0xffff903f,0x3fff601f,0xfffff80f,0xfff8000f, 0x80003fff,0x05fffffb,0x05ffffff,0x0bfffff0,0x87ffffee,0x00ffffff, 0x7fffffc0,0x7fffc003,0xffff705f,0x7ffffc3f,0x7ff4003f,0x3ffe0fff, 0xfff705ff,0x3fa003ff,0x3ff88006,0x0bfffff0,0x87ffffee,0xe87fffe8, 0xd106ffff,0xffd0ffff,0xfff70dff,0xfff70bff,0x7ffffc7f,0x7f44000f, 0xfffe87ff,0xffb8006f,0xf307e402,0xffff87ff,0xfe8000ff,0xf984ffff, 0x3a20ffff,0xffe87fff,0xffff06ff,0x3ffee0bf,0x7ffdc1ff,0xfffc81ff, 0xfff700ff,0xfff903ff,0xfff501ff,0x3fff20bf,0x20a804ff,0x06fffffd, 0xffff8800,0xffff902f,0x3fff600f,0xffff905f,0xfffffe8f,0xffb1c404, 0xd800dfff,0xf905ffff,0xffd8ffff,0x22006fff,0x21ffffff,0x905ffffd, 0x200fffff,0xe8001ffc,0x3fff603f,0xffff905f,0x5ffffc8f,0x06ffffe8, 0xd0bffff9,0xf50dffff,0xf10bffff,0x7ff47fff,0x1c404fff,0xd0bffff9, 0x800dffff,0x7d405ff8,0xfffdccce,0x3ffffa4d,0x2e1c404f,0xf507ffff, 0xffc8ffff,0xfffe85ff,0xffffb06f,0x3ffff20b,0xfffffb87,0x7ffff441, 0xffff700f,0xfffe883f,0xfffe80ff,0xffff506f,0x235403ff,0x4ffffff9, 0x3fa012a0,0x3fe607ff,0xff3004ff,0x3ff20dff,0x7ffd43ff,0x5d100fff, 0x7fffffcc,0xff992a04,0xfff906ff,0xffff987f,0x4d2a04ff,0x22ffffff, 0x906ffff9,0x3007ffff,0xf90007ff,0x3fe61887,0xfff906ff,0xffffe87f, 0x7ffffc47,0xfffffd07,0x7fffff88,0x6fffff98,0x543fffd0,0x00ffffff, 0x7fff45d1,0x7fffc47f,0x7fec007f,0x7fffd400,0x27ffffff,0x0ffffffa, 0xfff05d10,0xfff701ff,0xffffe8bf,0x7ffffc47,0xdffff307,0x0fffff20, 0x0fffffe6,0x1ffffffd,0x3ffffe60,0x7fffff43,0xfffff80f,0x7ffecc2f, 0xfa82ffff,0xfffffd81,0x00fdc1cf,0x2027ffdc,0x2001fffe,0xe80ffffc, 0xffd07fff,0xd883ffff,0xfffffd85,0x20fdc1cf,0xe80ffffc,0xffb07fff, 0xb839ffff,0xfffff51f,0xffffc87f,0x07fffe80,0x9000dfd0,0x2274c45f, 0xe80ffffc,0xfff87fff,0xffcadfff,0xff07ffff,0xf95bffff,0x20ffffff, 0x81fffffd,0xffe86ffb,0x6c41ffff,0x7fffffc5,0xfffffcad,0x3fea007f, 0xeeeea802,0x45efffee,0x1ffffffe,0xffb82ec4,0xfffc81ff,0x7ffffc0f, 0xffffcadf,0x3ff207ff,0xfffe80ff,0x3ffffa07,0xffefeaaf,0x3fa01fff, 0xfeaaffff,0x81fffffe,0xeffffffe,0xfffbefec,0xfdceffff,0xffff104f, 0xffdfffff,0x3ffe2007,0x037fdc01,0x0ffffa20,0x203ffff3,0xfffffffa, 0x880ffece,0xffffffff,0xe883ffef,0x7fcc3fff,0xfff101ff,0xfdffffff, 0x7fffc47f,0x7ff441ff,0x7fffcc3f,0x01ffc801,0x7ffffdc0,0x7f442fff, 0x7ffcc3ff,0xffffc81f,0xffdcffff,0x321ecfff,0xffffffff,0xcfffffdc, 0x3fffe21e,0x0ffdc1ef,0x7fffffd4,0x40ffecef,0xfffffffc,0xfffffdcf, 0x3fe201ec,0x7fcc0005,0xffffa83f,0xffecefff,0x9ffffb00,0x83ffff88, 0xfffffffc,0xfffffdcf,0x7ff441ec,0x7fffcc3f,0x3fffe601,0xffc9efff, 0xf300cfff,0x3dffffff,0x19fffff9,0xffffffa8,0x3fe62fff,0xffffffff, 0x7fff4404,0x03ffffff,0x4403fec0,0xd88004ff,0xffd12eff,0xfff9803d, 0x1fffffff,0x3ffffa20,0x203fffff,0xd12effd8,0xe8803dff,0xffffffff, 0xffffc83f,0x5dffb106,0x007bffa2,0x5000ffe6,0xffffffff,0xdffb101f, 0x07bffa25,0x7fffffcc,0xfffff31e,0xffff985f,0xfff31eff,0xfd305fff, 0xfb5bffff,0x7ffcc03d,0x1fffffff,0xffffff98,0xfffff31e,0x0ffd805f, 0x7ffcc000,0xfffff303,0x203fffff,0xcfffc9fc,0x03fffd88,0xdffffff3, 0x3ffffe63,0xdffb102f,0x07bffa25,0x3ffffaa0,0xfffff90d,0x3faa03ff, 0xff90dfff,0xc83fffff,0x0cefffff,0xfffffd98,0x3f6002ef,0x01ceffff, 0xb004fa80,0x7e40003f,0x0dffffff,0xffffd300,0x360019ff,0x1cefffff, 0xfffff900,0x6c001bff,0x1cefffff,0x019fd710,0xffffffc8,0xdfd000df, 0xffff9800,0x407fffff,0xfffffffc,0x7fed400d,0x7ff5c0be,0xdffb502e, 0xeffeb817,0x7ff6d402,0xd3002eef,0x19ffffff,0x5f7fed40,0x177ff5c0, 0x000bfea0,0x80fffe60,0xffffffe9,0x4c5f500c,0xcefffffe,0x77fed401, 0x77ff5c0b,0xffffc802,0x4000dfff,0x00000ab9,0x000055cc,0x2000ab98, 0x0001abb9,0x00002ee6,0x024c0032,0x0aca8800,0x55dcc000,0x17730000, 0x56544000,0x5dcc0000,0x44000000,0x44000aca,0x00000099,0x05654400, 0x44004400,0x10011000,0x00020001,0x002aee60,0x00880088,0x00003310, 0xabb98000,0x75101800,0x01100015,0x51000110,0x00000159,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x5c000000,0x0000cccc, 0x00cccca8,0x00000000,0x00000000,0x00595100,0x00599100,0x0003004c, 0x01500d4c,0x579b9750,0x79710001,0x54c40005,0x20009abb,0x2002801b, 0x98006009,0x0001cccc,0x31000000,0x1b7004c0,0x2a009900,0x000bdedb, 0x00000130,0x03799953,0x310001b8,0x05799d95,0x260000dc,0x09999999, 0x9800bca8,0x4c000600,0x004fffff,0x7ffffc40,0x7d400005,0x2003ffff, 0x05fffff8,0xfffc8000,0xffd101ff,0x40007fff,0xd8800efe,0x7ff4c4ff, 0x3ffa6003,0x03ea0bef,0xfffefea8,0xc8803fff,0x3efffefe,0x3fff2200, 0x003ffffe,0xfd305df5,0x4ffe8803,0x4017ffd4,0x006ffffe,0x17ffffe2, 0x01fffffb,0x883bff20,0xbf505ffd,0x4404fb80,0xfffbdffd,0x3ffa6001, 0xfc880004,0xffffffff,0x00be22ce,0xffffed98,0x2dffffff,0x980007e6, 0xfffffffe,0x3bfffe62,0x89ffd101,0x4002fffa,0x0ffffffe,0x3fff6000, 0x00001fff,0x00fffff6,0x3ffffe60,0x7fc00000,0x3fa02fff,0x00fffffe, 0x002ffb80,0x6c3ffff7,0xf1007fff,0xbfffffff,0x77e40ff9,0x3ffffee0, 0x5fff500e,0x402fffec,0x2e1dfffb,0x9801ffff,0xdfd88dff,0xffffc800, 0x01bfffa0,0x7ffffff7,0x3fffee00,0x7ffffb05,0x9ffff300,0x40ffffdc, 0x99abeff8,0x2603ffdb,0x3fe62fff,0xfffb003f,0x3620005f,0x9adfffff, 0xefffdb99,0xff9002ff,0x4c415dff,0xffeffffb,0xfe880001,0x3f62ffff, 0xf906ffff,0x7ff41fff,0x3fea006f,0x004fffff,0xffffff30,0x220000bf, 0x0004ffff,0x00ffffe6,0xffff9800,0xfd893602,0x7c4004ff,0x3ff6004f, 0x3fffe3ff,0xfffc801f,0xffffffff,0x309ff505,0x50bfffff,0xff98dfff, 0x3fea06ff,0xfffa80ff,0xffe8800e,0x3fa001df,0xfff12fff,0x3fe201ff, 0x007fffff,0x440bfffd,0xb805fffe,0x3f66ffff,0xff904fff,0xdfffffff, 0x437ffc40,0x4400fffd,0x005fffff,0xdfffff98,0x7fff4c01,0x7ff4c02f, 0xff7002ff,0x00003fff,0x4bffffee,0xfffffff8,0x2ffffe82,0x01fffff1, 0x36bfffe0,0xe8000fff,0xfffcafff,0xffa80001,0xf980004f,0x200005ff, 0x0c02fffc,0x0017ffd4,0xa8003bfa,0x3f21ffff,0x7fd006ff,0xfffffff9, 0x1bffe03f,0x17fffff4,0x907ffff1,0xf107ffff,0x7fc0bfff,0xff9005ff, 0xffb8009f,0x3fff60ff,0x2ffff206,0x4403fffb,0x4400efff,0x4400fffe, 0x3ea3ffff,0x3fa01fff,0x1fffffff,0x20ffff20,0xe804fffb,0x4003ffff, 0x05fffffb,0x017ffe40,0x05fffff9,0x1ffff980,0xfff70000,0x7fff45ff, 0xffb83fff,0x3fff60ff,0x1dff7006,0x2002ffe4,0x3ee1effa,0xfd80006f, 0x2a00004f,0x00000fff,0x20007fff,0x5c004ffc,0xfc8002ff,0x0efe443e, 0x7ed42f80,0xff301fff,0xfff903ff,0x7ffdc9ff,0xffffa82f,0x7fffe41f, 0x1ffff604,0xfff7ff50,0x77e44009,0x80efecc2,0x3ea2fff9,0x3fee00ff, 0xffd1000e,0x19fd5007,0x4403efc8,0x2ffffffd,0x0bfffe60,0x003fffea, 0x001ffff7,0x2fffffd4,0x02ffd800,0x07fffff7,0x07ffe600,0x7ffdc000, 0x3ffee2ff,0xfc884fff,0x0efecc2e,0xb82ffc40,0xff1001ff,0x05ff501b, 0x02ffc400,0x1ffd4000,0x1ffcc000,0x0eff9800,0x013fe200,0x28000000, 0x3ea00cc0,0xffb84fff,0x3ff65fff,0xfff982ff,0x7fff44ff,0x3fff207f, 0x0cfe980f,0x000bfff7,0x1efd8000,0x3a04ff98,0x744000ef,0x0000005f, 0x017bd950,0x81ffffd8,0x802ffffa,0x26000bc9,0x00ffffff,0x220bfa00, 0x006fffff,0x000ffd40,0xfffffb80,0x7fdeecc2,0x90000003,0x05fa807f, 0xf9809f70,0x17ea0006,0x5fa80000,0x03fc8000,0xffffe980,0x1ffd001f, 0x00000000,0xfff00000,0xffff707f,0x7ffffc9f,0xfffff882,0x7fffffc7, 0x1ffff901,0xffd01bd0,0x0000009f,0xe88037ea,0x00ef880f,0x001fd100, 0x00000000,0x203ffffa,0x003ffff9,0xfffd1000,0xb80007ff,0xffffd82f, 0xfd80003f,0xff700001,0xff805fff,0x30000002,0x400a6001,0x01510008, 0x00006200,0x00006200,0xc9800062,0xb807ffff,0x000002ff,0x00000000, 0xf901dff7,0x3e65ffff,0xff02ffff,0x7ec3ffff,0xfd05ffff,0xa8020bff, 0x0002ffff,0x10018800,0x00131035,0x00001880,0x3e000000,0xeeeeffff, 0x04ffffee,0xfff70000,0x80001fff,0x7ffdc2f8,0x80000fff,0x700001f9, 0x405fffff,0x00000ffa,0x00000000,0x00000000,0x00000000,0xf9800000, 0x3e201fff,0x2aa6004f,0x260aaaaa,0x02aaaaaa,0x2b7b6ea0,0x6c031000, 0x3ee7ffff,0xfd03ffff,0x7dc7ffff,0xf84fffff,0x31002fff,0x03ffffa1, 0x56f6dd40,0x00000000,0xa8000000,0x000bdedb,0x05ef6dd4,0xdfffff88, 0xcccccccc,0x76dd403c,0x7ff400bd,0x00006fff,0x7fffc459,0x200007ff, 0x3ae6001e,0xffff71ce,0x01fec05f,0x3bfb6ea2,0xba88001c,0x401cefed, 0xaaaaaaa9,0x2aaaaa60,0xaaaa982a,0x2aa60aaa,0xa982aaaa,0x20aaaaaa, 0x2aaaaaa9,0x37b6ea00,0xffc8000b,0x03ff602f,0xffffea80,0x3ffaa1ff, 0x4400ffff,0xffdcfffe,0x7fc0003e,0x3ff24fff,0xffb03fff,0x7fcc9fff, 0x50dfffff,0x4401dfff,0xffefffec,0x74405fff,0xeffdcfff,0x55555403, 0x2aaa02aa,0x5402aaaa,0x02aaaaaa,0xfbdffd88,0xfd8801ff,0x81fffbdf, 0x02fffffa,0x6ffec400,0xf501fffb,0x009fffff,0x3ffea000,0x00006fff, 0x7ffdc002,0xffbaffff,0xdf102fff,0xedeffa80,0x2005ffff,0xffedeffa, 0x3faa05ff,0x2a1fffff,0x0ffffffe,0x7fffff54,0x3fffaa1f,0x7f540fff, 0x2a1fffff,0x0ffffffe,0x5effec40,0x44001fff,0xff700fff,0x3ffa0005, 0xfff81fff,0x3e600fff,0x3ff20dff,0xff70004f,0xfffb8bff,0xfff904ff, 0xfffe89ff,0xfe9effff,0x7ffcc04f,0xfffea9bf,0xfff300ff,0x27ffe41b, 0xffffff90,0x7fffe40f,0x7fe407ff,0x4c07ffff,0x3fe62fff,0x3ffe603f, 0x30fffe62,0x007fffff,0x317ffcc0,0xffb07fff,0x0005ffff,0x3ffff200, 0x000005ff,0x67fffdc0,0xfffefda9,0x0ee882ff,0xc83ffb10,0x4404ffff, 0x7fe41ffd,0x7ff404ff,0xfff81fff,0xffd00fff,0xfff03fff,0x3fa01fff, 0xff81ffff,0x2600ffff,0x3fe62fff,0xf81dc43f,0x0bff104f,0x7fffec00, 0xffffd81f,0xffff300f,0x3ffff883,0xdfffe800,0x7ffffcc0,0xfffff905, 0xfffff889,0x02ffffff,0x21ffffcc,0x84fffffa,0x441ffff9,0x2203ffff, 0x407fffff,0x07fffff8,0x7fffff88,0x21bffe20,0xf880fffd,0xfffd86ff, 0x3ffffe20,0xfff10005,0x81fffb0d,0x2fffffff,0xffb00000,0x0007ffff, 0x7ffcc000,0xffffc87f,0x02fd42ff,0x7fc1bff6,0x3f602fff,0xfffff06f, 0x7fffec05,0xffffd81f,0xffffb00f,0xffffb03f,0x3fff601f,0xfffd81ff, 0xfff100ff,0x41fffb0d,0x3ea2effc,0x003ff606,0xfffffc80,0xfffffd81, 0x0ffffb00,0x007ffff6,0x103fffa8,0x01ffffff,0x07fffff9,0xffffffd3, 0xfe801dff,0xfffd07ff,0xffffb0ff,0x07ffff60,0x07ffffe8,0x07ffffe8, 0x0fffffd0,0x5c1fffe4,0xffc84fff,0x4fffb83f,0x07fffffc,0x1fffe400, 0x3e27ffdc,0x01ffffff,0xffff0000,0x00005fff,0x7ffff400,0xfffffd02, 0x260065c5,0xff83ffff,0xff305fff,0xffff07ff,0x7ffe40bf,0xfffd81ff, 0xfff900ff,0xfffb03ff,0x3ff201ff,0xffd81fff,0xff900fff,0x9fff707f, 0x77ffffcc,0x0bfee03f,0xffff9000,0xffff903f,0xffff301f,0x3fffee0d, 0x07bf6004,0x5fffffb0,0x5fffffb0,0x3ffffa20,0x501effff,0x320dffff, 0x261fffff,0xf706ffff,0x7f409fff,0xfe807fff,0xfd007fff,0x3e60ffff, 0xffa82fff,0x3ffe60ff,0xffffa82f,0x3fffffa0,0xff31c404,0xfff505ff, 0x3fffe21f,0x00000fff,0xffffff88,0x0000001f,0x01fffff3,0x0bffffee, 0x3ffff200,0x6ffffe86,0x0dffff90,0x40dffffd,0x81fffffc,0x00fffffc, 0x03fffff9,0x01fffff9,0x07fffff2,0x03fffff2,0x20bfffe6,0x220ffffa, 0x2009abba,0xfd005ff8,0xfffff907,0xfffff903,0xbffffd01,0x1bfffee0, 0x4006fc40,0x0efffff8,0x0fffffec,0xffffff30,0xfd03ffff,0x3f20bfff, 0x3fa2ffff,0xff705fff,0x7ff40dff,0xffe807ff,0xffd007ff,0x3ff60fff, 0xfffa81ff,0x3ffff62f,0x2ffffa81,0x3fffffea,0x7ec5d100,0xffa81fff, 0xffff32ff,0x00003fff,0xffffff30,0x0000003f,0x81ffffee,0x02fffffb, 0x6ffffa80,0x06ffffe8,0xd0dffff5,0x640dffff,0xc81fffff,0x900fffff, 0x903fffff,0x201fffff,0x81fffffc,0x80fffffc,0xa81ffffd,0x0002ffff, 0x6c007fec,0xfffc83ff,0xfffc81ff,0xffff80ff,0xffff505f,0x01d7001f, 0x7ffffdc0,0xffffebbe,0xffc880ff,0xfffffffd,0x3ffe20ef,0xfff704ff, 0x7fffc7ff,0xffff505f,0x3fffa01f,0xfffe807f,0xfffd007f,0x3fffa0ff, 0xffff980f,0x03ffffa3,0xd0ffffe6,0x83ffffff,0x7fff45d8,0xffff980f, 0xffffff33,0x1000005f,0x5fffffff,0x32000000,0x2e06ffff,0x002fffff, 0xd05fff90,0x640dffff,0xffe82fff,0x3ff206ff,0xffc81fff,0xff900fff, 0xff903fff,0x3f201fff,0xfc81ffff,0xfe80ffff,0xff980fff,0x2e0003ff, 0xffb802ff,0xffffc83f,0xffffc81f,0x7fffc40f,0xffff504f,0x0099003f, 0xffffff30,0xbfffffdf,0x26dffd10,0xfffffffe,0x3ffffe64,0xfffff704, 0x3ffffe29,0xfffff504,0x3ffffa03,0xffffe807,0xffffd007,0x3ffffe0f, 0xffeeeeee,0x3fffe4ff,0xfeeeeeef,0x7fd44fff,0xecefffff,0x7fffc0ff, 0xfeeeeeef,0x3ffe4fff,0x0003ffff,0xffffff00,0xddd1007f,0xdddddddd, 0x7fff47dd,0x3ffee06f,0x0c0002ff,0x7fffff54,0xfea81806,0x3206ffff, 0xc81fffff,0x900fffff,0x903fffff,0x201fffff,0x81fffffc,0x80fffffc, 0xeeefffff,0x4ffffeee,0x0bff1000,0x07ffff50,0x03fffff9,0x81fffff9, 0x04fffffa,0x07fffff5,0x220005b0,0xfa9ceeca,0x7c42ffff,0x3fa23fff, 0x2a6fffff,0x704fffff,0x2a9fffff,0x504fffff,0x207fffff,0x807ffffe, 0x007ffffe,0x10fffffd,0x99bfffff,0x79999999,0x37ffffe2,0xcccccccc, 0xffff983c,0x41ffffff,0xcdfffff8,0xcccccccc,0x3fffffe3,0xf000004f, 0x09ffffff,0x7fffe440,0x7c1bffff,0x2e06ffff,0x002fffff,0x3b3faa00, 0x4006ffff,0xfffecfea,0x3fff206f,0xfffc81ff,0xfff900ff,0xfff903ff, 0x3ff201ff,0xffc81fff,0x7fc40fff,0xccccdfff,0x003ccccc,0x9801ffb0, 0xc83fffdf,0xc81fffff,0x540fffff,0x504fffff,0x009fffff,0xb0000019, 0xfb0dffff,0xfe881fff,0xf50fffff,0x2e09ffff,0xf53fffff,0x2a09ffff, 0xd04fffff,0xd00fffff,0x200fffff,0xa87ffffe,0x002fffff,0x17ffffd4, 0x3ffa6000,0xa80cffff,0x002fffff,0xffffffd8,0xf9000006,0x00bfffff, 0xffffffb0,0xfffff307,0x7fffdc0d,0xea80002f,0xffffd3ff,0x3ffaa00d, 0x0dffffd3,0x0fffffe4,0x07ffffe4,0x1fffffc8,0x0fffffc8,0x3fffff90, 0x1fffff90,0x2fffffa8,0x3ee00000,0x4e7c402f,0xffc83fff,0xffc81fff, 0x7fcc0fff,0xff704fff,0x00007fff,0x3ffe2000,0x7ffc43ff,0xffff107f, 0x3ffe67ff,0xfff704ff,0x3ffe63ff,0xfff704ff,0x3ffa07ff,0xffe807ff, 0xffd007ff,0xfff30fff,0xf98007ff,0x0003ffff,0x802b7f20,0x03fffff9, 0xfffff980,0x3000007f,0x0dffffff,0xfffff900,0xffff105f,0x7ffdc0df, 0x220002ff,0x3fa2fffd,0x6c406fff,0x3ffa2fff,0x3ff206ff,0xffc81fff, 0xff900fff,0xff903fff,0x3f201fff,0xfc81ffff,0x7cc0ffff,0x0003ffff, 0x80bff100,0x7fff35e8,0x3fffff90,0x1fffff90,0x4fffff88,0x5fffff70, 0x20000000,0xa85ffffb,0x3606ffff,0x3e4fffff,0xf704ffff,0x3e21ffff, 0xf704ffff,0x3a05ffff,0xe807ffff,0xd007ffff,0xf10fffff,0x800bffff, 0x05fffff8,0x01ff9000,0xbfffff10,0x3fffa000,0x00000fff,0xffffffd0, 0xffff7000,0x3ffe03ff,0x3fee06ff,0x30002fff,0xfe85fffd,0x3a606fff, 0x7ff42fff,0x3ff206ff,0xffc81fff,0xff900fff,0xff903fff,0x3f201fff, 0xfc81ffff,0x7c40ffff,0x0005ffff,0x801ffb00,0x7fff30ed,0x3fffff90, 0x1fffff90,0x0bfffff0,0x07ffffee,0x74000000,0xfb80ffff,0x3ea05fff, 0x3fa3ffff,0xff705fff,0xffff8fff,0xffff705f,0x3fffa03f,0xfffe807f, 0xfffd007f,0x3fffe0ff,0x7fc000ff,0x0000ffff,0xf002ffcc,0x001fffff, 0xffffff70,0x30100009,0x03ffffff,0xfffffb80,0xfffff01f,0x7fffdc0f, 0xfe88002f,0xfffe87ff,0xfffd106f,0xdffffd0f,0x7ffffe40,0xfffffc81, 0xfffff900,0xfffff903,0x3ffff201,0xffffc81f,0xfffff80f,0x5c00000f, 0x07e402ff,0xf707fff3,0xf903ffff,0xfb01ffff,0x3f20bfff,0x64407fff, 0x900003ef,0x2605ffff,0x2206ffff,0x322fffff,0xf905ffff,0xffd8bfff, 0xfff905ff,0x7fff40ff,0xfffe807f,0xfffd007f,0x3fffa0ff,0xd1c404ff, 0x809fffff,0x1bff2038,0xfffffe80,0x7ec1c404,0x0007ffff,0xfffb82c4, 0x7dc005ff,0xb01fffff,0x203fffff,0x02fffffb,0x5ffffc80,0x06ffffe8, 0xd0bffff9,0x5c0dffff,0xc81fffff,0x700fffff,0x903fffff,0x201fffff, 0x81fffffb,0x80fffffc,0x04fffffe,0xff8801c4,0x6677d405,0x44dfffdc, 0x41fffffb,0x0fffffe8,0x06ffff98,0x807ffff9,0x003ffffd,0x17fffe40, 0x0fffff10,0x20fffff8,0xb06ffffa,0xf987ffff,0xff906fff,0x7ff407ff, 0xffe807ff,0xffd007ff,0x3fea0fff,0xd100ffff,0x7ffffd45,0x405d100f, 0x5001fffe,0x01ffffff,0x3fe20ba2,0x0004ffff,0x7fe40df1,0x2e001fff, 0x01ffffff,0x07fffff3,0x0bfffff6,0x3ffffa00,0x7ffffc47,0xfffffd07, 0x7fffff88,0x3ffffee0,0x7ffff441,0xffff700f,0xfffe883f,0xfff700ff, 0xffe883ff,0xffa80fff,0xd100ffff,0x03ff6005,0xffffff50,0xf98fffff, 0x7f43ffff,0x900fffff,0xfd01ffff,0xff980fff,0x20006fff,0x801efffc, 0x501ffffd,0xfb07ffff,0x3ffa0fff,0xffff906f,0x0ffffd01,0x07ffffe8, 0x07ffffe8,0x0fffffd0,0x7ffffff4,0x7f42ec41,0x441fffff,0x7ffec05d, 0xfffd000e,0x5d883fff,0x3ffffe60,0x77d4003f,0x7ffff401,0xfff7000e, 0x7f403fff,0x7dc0ffff,0x003fffff,0xdffffff8,0xffffffca,0xffffff07, 0xfffff95b,0x7ffcc0ff,0x7fff43ff,0xff300fff,0xffe87fff,0xf300ffff, 0xfe87ffff,0xd00fffff,0x83ffffff,0xff5005d8,0xdddd5005,0x0bdfffdd, 0x55fffffd,0xfffffdfd,0x3fffa203,0x0ffffcc3,0x3ffffea0,0xffc88007, 0xfd1000df,0x3ff20bff,0xffff105f,0x1ffff985,0x87fffd10,0x401ffff9, 0x807ffffe,0x007ffffe,0x40fffffd,0xfffffffa,0xa80ffece,0xefffffff, 0x5400ffec,0x801effff,0xfffffffa,0x400ffece,0xcfffffd8,0x17f66200, 0xeffffb80,0xffffb801,0x3fe601ff,0xfb88dfff,0x06fffffe,0xfffffc80, 0xfffdcfff,0x3f21ecff,0xcfffffff,0xecfffffd,0xfffffe81,0xfffefeaa, 0x3ffa01ff,0xefeaafff,0x201fffff,0xaafffffe,0xfffffefe,0xfffff501, 0x1ffd9dff,0x00bff100,0x03fff980,0xfffffff3,0xfffff93d,0x3ff62019, 0x3dffd12e,0x3ffffe00,0x3ff26004,0xe98001cf,0xf910cfff,0xfe8809ff, 0xfffd11ef,0xeffd8803,0x03dffd12,0x1fffffd0,0xfffffe80,0xffffe800, 0x3ffe600f,0x1fffffff,0x3ffffe60,0x001fffff,0xbffffffb,0x7fffcc05, 0x01ffffff,0x3ffffee0,0xfecaacdf,0xd88002ff,0x409dffff,0xeffffeb8, 0x7ffcc00b,0xfbbfffff,0x04ffffff,0x3ffffe60,0xffff31ef,0xfff985ff, 0xff31efff,0x2605ffff,0xefffffff,0xcfffffc9,0xfffff300,0xfff93dff, 0x3e6019ff,0x9effffff,0x0cfffffc,0xffffff30,0x2003ffff,0x40000ffd, 0x2a03fff9,0x90dffffe,0x3fffffff,0x7ffffe40,0x2a000dff,0x4401efff, 0x00beffeb,0xffffb800,0x001efffe,0x3fffffee,0x3f2000cf,0x0dffffff, 0xfffffa80,0x3ffea04f,0x7d404fff,0x404fffff,0xffffffe9,0xffe9800c, 0x000cffff,0x77ffffdc,0x7fff4c02,0x8000cfff,0xfffffda8,0x00dfffff, 0x7ffecc00,0xffffffff,0x4c000bdf,0x72fffffe,0x0359dfff,0x7dffb500, 0x2effeb81,0x17dffb50,0x02effeb8,0x6fffff54,0xffffff90,0x3ffaa03f, 0xfff90dff,0x2a03ffff,0x90dffffe,0x3fffffff,0x3ffffa60,0xf5000cff, 0xf300005f,0x573007ff,0x51000001,0xa8000159,0x01355001,0x5d4c0000, 0x200009ac,0x000abca9,0x002b2a20,0x7fffffc4,0x3e21ffff,0xffffffff, 0x7fffc41f,0x01ffffff,0x000abb98,0x00157730,0x00ddd440,0x0055dcc0, 0xcba98800,0x00001abc,0x79997530,0x20000335,0x0d4c1ba8,0x00220000, 0x00440022,0x2e600044,0x4c00000a,0x400000ab,0x00000ab9,0x000abb98, 0x00000cc4,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x30000000,0x10054035, 0x33333333,0x33333333,0x2e0036a0,0x4cc40005,0x00199999,0x56665cc4, 0xdba88002,0x0001cefe,0x00000088,0x2012ea62,0x006601a8,0x99999988, 0x20999999,0x99999999,0x80999999,0x99999999,0x00999999,0x01599750, 0x33333300,0x33333333,0x2aaaaa63,0x54c1aaaa,0x2002aaaa,0x00bcecb8, 0x2a200726,0x776dc401,0x80f4c0bd,0x02c00cb8,0x0379b751,0x55555100, 0x76dc4555,0x0000003d,0x2bcb9800,0x800ca800,0x6ecc00a8,0xfffd3002, 0x00fd417d,0xfffffff9,0xffffffff,0x501be60f,0xe98000bf,0x1fffffff, 0xdfffe880,0x002efffe,0xffdbdff5,0x22000bff,0x0000dffd,0x5bffd710, 0xffffd801,0x800fe20b,0xfffffffd,0x912fffff,0xfffffffd,0x885bdfff, 0xffffffdc,0x03dfffff,0x7fffffdc,0x7ee4003f,0xffffffff,0xfff54dff, 0x85bfffff,0x03ffffda,0xffd9ff90,0x017f405f,0x7e403fd1,0x1ffdbdff, 0xff703ff7,0x8a7c09ff,0xffffffdb,0x1004efff,0xfffffff9,0x3fffffee, 0x3f60001f,0x4001ffff,0xeffeffe9,0x03be2002,0x3200ffa8,0x4404ffff, 0xffffffff,0x7f407fcd,0xffffffff,0x05ffffff,0x266b3bfe,0x0004ffcb, 0xffffff10,0xefffa803,0x13fffea0,0x641ffd88,0x8004ffff,0x004ffffb, 0x5fffecc0,0xffffb000,0x5fd7bfff,0x3fffe200,0xffffffff,0xffffd107, 0x6c005fff,0x3fffffff,0xffffe880,0x006fffff,0xffffff70,0x3ffa20bf, 0x7e406fff,0x3ffb000f,0x40bfffe2,0xffa83ffa,0x5fffb105,0xfffeffd8, 0x7ffffe81,0x3bffffe0,0xffd7309b,0x22003dff,0xfaffffff,0xefffffde, 0xfff88000,0x7d4001ff,0x9ffd10ff,0x40ffe400,0x7fc03ffb,0x3200ffff, 0xffffffff,0x3e206fff,0xffffffff,0x2fffffff,0x3ffffee0,0x000fffff, 0x3ffff200,0x3ffee01f,0xffffe81f,0x20dffb02,0x002fffff,0x03fffff4, 0x1bfff900,0x7fffcc00,0xffffffff,0xffff7000,0xffffffff,0x7fffd409, 0x7c4005ff,0x807fffff,0xffffffe8,0x004fffff,0xffffffd0,0x7fffd401, 0x01fd407f,0x7f47ffd8,0xffd00fff,0x807ffdc9,0xf886fffe,0x4c1fffff, 0x02ffffff,0x7007ffff,0x007fffff,0x3ffffffe,0x3ffffa63,0xfffa8005, 0x7fd4001f,0x27ffd44f,0x22fff880,0x7cc06ffd,0x202fffff,0xffffcbfe, 0x2a01ffff,0xffffffff,0x7fffffff,0xfffffd80,0x98002fff,0xfdaaaaaa, 0x81acffff,0xc80fffff,0xf986ffff,0xfff83fff,0x7ec005ff,0x88005fff, 0x8005fffe,0xfffeccfc,0x2004ffff,0xfffffffe,0x201fffff,0x4ffffff9, 0xfffff800,0xdffd806f,0xffffffec,0xfd8000ff,0xe807ffff,0x202fffff, 0xff9800fc,0x7ffff46f,0xbbfff503,0x3ee09fff,0xffb03fff,0xff983fff, 0xff03ffff,0x7fdc003f,0xfe805fff,0xf984ffff,0x4002ffff,0x4001fffd, 0xf81ffff8,0xf9001fff,0x5fffd9ff,0xffffff00,0x36a1fc01,0x6402ffff, 0xffffffff,0x5fffffff,0xffffd880,0xf70003ff,0xffffffff,0xa89fffff, 0xf707ffff,0xfc81ffff,0xffe86fff,0x7cc006ff,0x4c001fff,0x0005ffff, 0xfffca8bb,0x3fe2004f,0xffffffff,0x7fcc06ff,0x8004ffff,0x06ffffff, 0x7ecc1fcc,0x001fffff,0x7fffffd8,0xfffffa80,0x74013a05,0x7fec7fff, 0x3ffa03ff,0x880fffff,0x900fffff,0x983fffff,0x02ffffff,0xf90007ff, 0xe807ffff,0xf00fffff,0x400dffff,0x8002fff8,0xff07fffb,0x3e200bff, 0x05ffffff,0x09ffff90,0x006600a8,0x56677ff4,0xffaaaaaa,0x3b2a002f, 0x260000bd,0xfdaaaaaa,0x41acffff,0x707ffffc,0xa83fffff,0xfe86ffff, 0x88006fff,0x7c4000bb,0x20005fff,0x002a601a,0x33337f70,0x01333333, 0xffffff88,0xffff8004,0x01f405ff,0x5ffffff1,0xffffb000,0x3ffa00ff, 0x1f980fff,0xfffff880,0x07fffea0,0xffffff98,0xfffff503,0x7ffffe40, 0xffffff81,0x2000df00,0x0ffffff8,0x1fffffa0,0x0fffffc8,0x005ff500, 0x41ffffe0,0x001ffffe,0x3ffffff7,0x016ecc00,0x3be00000,0x0fff3001, 0x00000000,0x0fffffdc,0x07ffffc8,0x01fffff7,0xfd05fff9,0x0000dfff, 0xffffe800,0x00000000,0x00007e80,0x7fffffc4,0xffff8004,0x00a205ff, 0x03fffff6,0x3ffff600,0xfff7007f,0x00d909ff,0x07ffffea,0xfb007df9, 0x7e40dfff,0x3f206fff,0xfe81ffff,0x0fe07fff,0xffffd800,0x3fffa05f, 0x3ffee07f,0x5fb001ff,0x3ffea000,0xffffb07f,0x3ffe2007,0x000004ff, 0x3f300000,0x02ffdc00,0x00000000,0x03fffff7,0x41fffff6,0x406ffffb, 0xffffea81,0x0000006f,0x017ffff2,0x20000000,0x400004f9,0x4ffffff8, 0xfffff800,0xfa80005f,0xb0005fff,0x00ffffff,0x3fffffe2,0xfb801fc0, 0x0002ffff,0x00d55544,0x40dffffb,0x81fffffc,0x205ffffc,0x3ea0000e, 0xd02fffff,0x5c0fffff,0x003fffff,0x7e400013,0xffb06fff,0x54c00bff, 0x00000aaa,0xfdb75100,0x0198039d,0x8017ff40,0xcefedba8,0xbd930001, 0x3fffee19,0xffffb01f,0x3ffff20f,0x33faa002,0x006ffffe,0x5ef76dcc, 0x3fffe600,0x554c002f,0x260aaaaa,0x02aaaaaa,0x26f3bff2,0x3fe20000, 0x8004ffff,0x05ffffff,0xffffb800,0xfffb0001,0x7e400fff,0x3ea3ffff, 0xffff9000,0x0000007f,0x05fffff8,0x07fffff2,0x80ffffea,0xfff80000, 0xffd06fff,0x7fd40fff,0x00004fff,0xdffffd00,0x1fffff60,0x00000000, 0x3b7bfea0,0x0005ffff,0x003ffe20,0x3fb7bfea,0x2e005fff,0xafffffff, 0x01fffffb,0x10fffffb,0x2007ffff,0xffd3ffea,0x36200dff,0xffffddff, 0xfffff902,0xfffd5000,0x7f543fff,0xd00fffff,0xffffffff,0xfff10007, 0xf0009fff,0x00bfffff,0x03fffb00,0x7fffec00,0x3fe2007f,0x01766fff, 0x5fffffb8,0x55555000,0x3fe60555,0x3f205fff,0xf981ffff,0x00001fff, 0x7fffffc0,0xffffe80f,0x3fffea07,0x5555535f,0x76dcc155,0x7fffc00b, 0xffffb06f,0x2aaaa63f,0x36e60aaa,0x400000be,0x7e41ffd8,0x00004fff, 0xd880bff7,0x7ffe41ff,0xfffc804f,0xfefda9cf,0xfb01ffff,0xffe8ffff, 0xfd8800ae,0x3fffa2ff,0xffe8806f,0x0bffff63,0x59fffff1,0x8037bdb9, 0x81fffffe,0x80ffffff,0xfffffff9,0x2002ffff,0x4ffffff8,0xfffff800, 0x7cc0005f,0x6c0001ff,0x007fffff,0x57ffffec,0x3ea002f8,0x0006ffff, 0xfffffff9,0x3ffffea0,0x3ffff205,0x0ffff01f,0xffd00000,0xfd03ffff, 0x7d40ffff,0xfd33ffff,0x325fffff,0x03ffffff,0x0dfffff1,0x4bfffff6, 0xffffffe9,0xffffff92,0x7ec00007,0xfffff06f,0xffd00005,0x06ffd805, 0x405fffff,0xd86ffffa,0x01ffffff,0xd8fffffb,0x200befff,0x742fffe9, 0x4406ffff,0x7fd46ffe,0x7ffdc7ff,0xffffffff,0x3ff603ff,0xffd81fff, 0xffc80fff,0xffffffff,0xf8801eff,0x004fffff,0x5ffffff8,0x3ffe2000, 0x7ec0004f,0x4007ffff,0xbdfffff9,0xfb999807,0x999fffff,0xfff10009, 0x3fe60fff,0x3f205fff,0xfb01ffff,0x000000df,0x5ffffffb,0x0fffffd0, 0x17ffffdc,0x2ffffff6,0xfffffffd,0xffff980f,0xffffb06f,0xffffd87f, 0xfffffdbf,0x80000fff,0xf83ffff9,0x0005ffff,0x3007ffc4,0xff07ffff, 0x7f40bfff,0xfe882fff,0xfb01ffff,0x3f20ffff,0xfe880fff,0xfffe87ff, 0x7ffe406f,0x7ffffc43,0x3fffffa0,0xffffdabe,0xffff905f,0xffffb03f, 0xfffff01f,0xffffffff,0xff8801ff,0x8004ffff,0x05ffffff,0xffffc980, 0xb0000eff,0x00ffffff,0xffffffd0,0xffff8809,0xffffffff,0x3fa004ff, 0xff107fff,0x7e40dfff,0xf701ffff,0xaaaa889f,0xaaaaaaaa,0xaaaaaaaa, 0x4ffffffd,0x07ffffe8,0x03ffffee,0xdffffff7,0x3ffffe63,0xfffffa85, 0xfffffb06,0xfffffb87,0xffff31ef,0x401980bf,0xe86ffffc,0x0006ffff, 0x3202ffdc,0xfe86ffff,0xff506fff,0x7fdc0fff,0xffb01fff,0x7ff40fff, 0xffffc85f,0x6ffffe85,0x0bfffe20,0xf83ffff6,0xfc87ffff,0xfc82ffff, 0xfc81ffff,0x7d40ffff,0xffffffff,0x06ffffff,0x7fffffc4,0xffff8004, 0x7e4005ff,0xffffffff,0xffd8001f,0xa8007fff,0x00ffffff,0x7fffffc4, 0xffffffff,0x3fffa004,0x3fffa07f,0x3fff207f,0x5ff301ff,0xffffffa8, 0xffffffff,0xffffffff,0xe85fffff,0x3207ffff,0xfb87ffff,0x6c0fffff, 0xfa87ffff,0xfb06ffff,0xfb89ffff,0x6c0fffff,0xd507ffff,0x3ea01dff, 0xffe86fff,0x740006ff,0x7fd402ff,0xfffe86ff,0xffff906f,0x7fffdc0d, 0xffffb01f,0x7fffec0f,0x3fffff42,0x1fffffe2,0x81ffffc8,0x3e24fffa, 0xf887ffff,0x640fffff,0xc81fffff,0x100fffff,0xfffb9553,0x09ffffff, 0x7fffffc4,0xffff8004,0xda8005ff,0xffffffff,0xfffd8006,0xff0007ff, 0xf100dfff,0xffffffff,0x009fffff,0x03fffff4,0x03fffff7,0x07fffff2, 0x3e607fc4,0xabffffff,0xaaaaaaaa,0xffffdaaa,0xfffe85ff,0x3fffa07f, 0xffffb86f,0xffffc82f,0x7fffd40f,0xffffb06f,0xffffb89f,0xffffc82f, 0x7fffc40f,0xfff900ff,0xdffffd05,0x7ffc4000,0x2fffc800,0x06ffffe8, 0x40dffffb,0x01fffffb,0x40fffffb,0x7c6ffffc,0xcadfffff,0x07ffffff, 0x407ffffe,0x7ffcc1a8,0xfffd06ff,0xfffc85ff,0xfffc81ff,0x644000ff, 0x7fffffff,0x3ffffe20,0xfff8004f,0x20005fff,0xffffffe8,0x7fec002f, 0x90007fff,0x0005ffff,0x0bffffee,0xffffe800,0x3fffe207,0xfffe884f, 0x21fe01ff,0xfffffff8,0xfffc8000,0xffe84fff,0xff883fff,0xffb82fff, 0xffb82fff,0x7fcc1fff,0xffb06fff,0xffb87fff,0xffb82fff,0x7fe41fff, 0x0c04ffff,0x7fffff54,0x3fee0006,0x7540c005,0xf06fffff,0x5c0bffff, 0xb01fffff,0x640fffff,0x7e47ffff,0xcfffffff,0xecfffffd,0x3ffffe21, 0x7ffd4002,0xfff706ff,0xfffc87ff,0xfffc81ff,0x2e0000ff,0x00ffffff, 0x9ffffff1,0xfffff000,0xfb0000bf,0x009fffff,0x7fffffd8,0xffff1000, 0x3fe20001,0x20002fff,0x407ffffe,0x0cfffffb,0xfffffff3,0xff836c03, 0x001fffff,0xffffffd8,0xfffffe82,0x3fff623f,0xffff705f,0xffff705f, 0xffff883f,0xffffb06f,0xffffb83f,0xffffb82f,0x7fffe41f,0x3aa006ff, 0x6ffffecf,0x0fff6000,0xecfea800,0xf886ffff,0x2e05ffff,0xb01fffff, 0x640fffff,0x260fffff,0x1effffff,0x5ffffff3,0x3fffff98,0x7fffd400, 0xffff506f,0xffffc8bf,0xffffc81f,0x7dc0000f,0xf102ffff,0x009fffff, 0xbffffff0,0x3ff60000,0x6c005fff,0x007fffff,0x0013ff60,0x03ffffd0, 0x7ffff400,0xffffb807,0xffcdffff,0x17201fff,0x7ffffff4,0xfffd8001, 0xffe81fff,0xfcffbfff,0x700effff,0x705fffff,0xf03fffff,0x360dffff, 0x5c0fffff,0xb82fffff,0x4c1fffff,0x07ffffff,0xfd3ffea8,0x2000dfff, 0x8000fff8,0xffd3ffea,0xfff30dff,0x7fdc0bff,0xffb01fff,0x7fe40fff, 0x7ed42fff,0x7f5c0bef,0xfffa82ef,0x7c4005ff,0xf307ffff,0xfc8dffff, 0xfc81ffff,0x0000ffff,0x03ffffb8,0x9ffffff1,0xfffff000,0x220000bf, 0x005fffff,0x3fffffec,0x03ff3000,0x7fffb800,0x7fff4000,0xfff7007f, 0x3ff27fff,0x0ea01fff,0x7fffffe4,0xfffe8001,0xffe80fff,0xffff57ff, 0x7dc017df,0xfb82ffff,0xfe81ffff,0xffb06fff,0xfff70fff,0xfff705ff, 0xfff703ff,0x7ec40dff,0x3fffa2ff,0xff70006f,0xffd8800b,0x3ffffa2f, 0xfffff986,0x3fffee05,0xffffb01f,0x7fffe40f,0x4c01102f,0x3fe600ee, 0xf8006fff,0xf307ffff,0xfc8bffff,0xfc81ffff,0x0000ffff,0x205fffd0, 0x4ffffff8,0xfff00b98,0x0000bfff,0x21ffffdc,0xfffb01b8,0xe8000fff, 0xff980006,0x7f40006f,0x4c007fff,0x7ffe41bb,0xf70001ff,0x005fffff, 0xdffffff0,0x1fffffa0,0x2e001773,0xb82fffff,0xd81fffff,0xfb06ffff, 0xff70dfff,0xff705fff,0xc8403fff,0xfffd305f,0x6ffffe85,0x07ffb000, 0x17fff4c0,0x21bffffa,0x06fffff8,0x07ffffee,0x03ffffec,0x03fffff9, 0x803ff500,0x07fffff8,0xfffffd80,0xfffff880,0x7ffffe43,0xfffffc81, 0xff700000,0x3ffe203f,0x7ff44fff,0xfffff83f,0x2600005f,0x3f21ffff, 0xfffd85ff,0x7c0006ff,0xfff00002,0x3a01100b,0x0007ffff,0x3fffff20, 0xfff10001,0x88007fff,0x02ffffff,0x00fffffd,0xfffff700,0xfffff705, 0xdffff903,0x17ffff60,0x0bffffee,0x07ffffee,0x3a20ffa0,0xffe87fff, 0xf88006ff,0xfd1000ff,0xfffd0fff,0x3fffe0df,0x3ffee07f,0xfffb01ff, 0x7ffdc0ff,0x7c4000ff,0xffff007f,0xfb8007ff,0xff01ffff,0xffc83fff, 0xffc81fff,0x00000fff,0x7c40fff3,0x2a4fffff,0xff87ffff,0x0004ffff, 0x43fffe20,0x41fffff8,0x06fffffd,0x8001ea00,0x3ffeacba,0xfe80f440, 0x00007fff,0x07fffff2,0xffffb800,0x7fdc004f,0x3fa05fff,0x80007fff, 0x82fffffb,0x81fffffb,0xb06ffff9,0xf707ffff,0xf705ffff,0x8803ffff, 0xfffc80ff,0xffffe85f,0x6ffa8006,0x3ffff200,0x6ffffe85,0x1fffffd0, 0x3ffffee0,0xfffffb01,0x37fffc40,0x07ffd400,0x7ffffec0,0x7ffcc006, 0xfff882ff,0xffffb87f,0xffffc81f,0xf100000f,0x7ffc407f,0x3ff24fff, 0x7ffc1fff,0x00003fff,0xff72fffc,0xffd87fff,0x75c04fff,0x40026c0c, 0xffffffe8,0xfea981cf,0xfffffd00,0x7fe40000,0xfd701fff,0x3fffa019, 0x7ff4006f,0x3fa00fff,0x80007fff,0x82fffffb,0x01fffffb,0x360ffffd, 0xfb80ffff,0xfb82ffff,0x5c01ffff,0xffffd03f,0xfffff88f,0x3ffd8007, 0x3ffffa00,0x7ffffc47,0xfffff507,0x3ffff607,0xffffb01f,0xfe877e4f, 0xfc8005ff,0xff9803ff,0x2a04ffff,0x27ffff44,0x42ffffc4,0x41fffffb, 0x0fffffe8,0x800ceeb8,0x3e600ffb,0x2e4fffff,0xff86ffff,0x2a01ffff, 0xff9803ee,0x3fffea0f,0x7ffff40f,0x3ffea02f,0x20003e24,0xfffedffb, 0xffffffff,0x3ffa07ff,0x200007ff,0x81fffffc,0x505ffffb,0x005fffff, 0x0fffffe2,0x0fffffd0,0xffff7000,0xffff705f,0x3ffee03f,0x4fffe80f, 0x5fffff70,0x3fffff70,0xff02fcc0,0xf95bffff,0x00ffffff,0x000fff88, 0x37fffffe,0xffffffca,0x3ffffe07,0x7fffdc0f,0xfffb02ff,0x53ffe2ff, 0x8001fffc,0x801ffffb,0xcffffffd,0x3e60fdc1,0xff986fff,0xfff981ff, 0x7fff43ff,0x7fc40fff,0x7f403fff,0x7fffcc01,0x3ffe64ff,0x7fffc42f, 0x7fffc06f,0x0bff200d,0xf09ffff1,0x401dffff,0x1727fffd,0x3ee2fc00, 0xffffffff,0x3fa04fff,0x00007fff,0x07fffff2,0x03fffffe,0x07ffffec, 0x2fffff40,0x3fffff40,0x7ffdc000,0xfffb82ff,0x3ffa01ff,0x0ffff81f, 0x5fffff70,0x3fffff70,0xf9013ea0,0x9fffffff,0xd9fffffb,0x0dff5003, 0xfffffc80,0xfffdcfff,0x7d41ecff,0xb88cffff,0x5fffffef,0x2fffffd0, 0xff74fff8,0x3fe60007,0x7c402fff,0xffffffff,0xff903ffe,0xfffc85ff, 0x3ffffa03,0xffefeaaf,0x7fcc1fff,0x4c1effff,0xffa802fd,0x7e45ffff, 0x7ffdc0ff,0x3fe200ef,0xf982efff,0x3fff503f,0x1fffff98,0x4ffffdc0, 0xf88000fb,0x7ffffec3,0x0fffffff,0x1fffffa0,0xfffd8000,0x7ffc42ff, 0x3ee02fff,0x7ec04fff,0xff002fff,0x0000ffff,0x05fffff7,0x03fffff9, 0x2a27ffc4,0x3ee03fff,0xfc82ffff,0xde81ffff,0xffff9801,0xfff31eff, 0x36005fff,0x7cc003ff,0x31efffff,0x05ffffff,0x3fffffea,0xffffbaff, 0x3fea3fff,0x3ff27fff,0x0005fe9d,0x7fffffdc,0xfffd103e,0x07ffffff, 0x51efffb8,0xf9807fff,0x9effffff,0x0cfffffc,0x7fffffec,0x01efdcdf, 0xfffffe88,0x6ffec2ff,0xeffffa8a,0xffffc800,0xefdabdff,0x577fe401, 0x1ffffe98,0xfffff880,0x3f60003f,0xfdbffc9a,0x3fffffff,0x7fffff40, 0xff880000,0x6c0dffff,0x8806ffff,0x30befffe,0x01bfffb7,0x3ffffea0, 0x7e40002f,0xfc83ffff,0x4402ffff,0xffd32fff,0xffffc805,0xffffc83f, 0x5400082f,0x5c0beffd,0x1002effe,0x50001fff,0xb817dffb,0x5402effe, 0x72fffffe,0x4359dfff,0x7ffffffd,0x0b7ffae2,0x7ffd4000,0x7ec03fff, 0x01ceffff,0xfdfffb30,0x3aa0039d,0xf90dffff,0x43ffffff,0xffffffc8, 0x74402dff,0xffffffff,0xd52effff,0x9fffffff,0x3ff62001,0x3effffff, 0x3fffa600,0x001dffff,0x00bbff26,0xffffd300,0x7ffffd45,0x7ffd401f, 0x20004fff,0xffffffea,0x3fa64fff,0x36e002ff,0xffffffff,0xff1002df, 0xdfffffff,0xffd30009,0x7cc1dfff,0x00dfffff,0x7ffffecc,0x7ff4c01e, 0x3e60efff,0x00dfffff,0x10011000,0x3cc98001,0x40044000,0x5d440008, 0x0000d4c1,0x80000040,0x000abba8,0x80002ee6,0x0000bba8,0x00002ae6, 0x05565d54,0x4c000000,0x000abcca,0x35795510,0xcba98000,0x000000ab, 0x80dcc000,0x2009bb98,0xfffffff8,0x00001fff,0x0002a800,0x04de5cc4, 0x00000000,0x3fffffee,0xfffa9fff,0x01ffffff,0x70015730,0xffffffff, 0xfffff53f,0x0003ffff,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x3372a600,0x330001ac,0x33333333,0x2f372a01,0x55551001,0x6dcc1555, 0xd90001ce,0x9001b709,0x55100009,0x33333555,0x33333333,0x81333333, 0x99999998,0x33100099,0x01333333,0x06540000,0x00005440,0x0de6e54c, 0x50000000,0x75100179,0x09015999,0xa80e64c0,0x2aaa60cc,0x2a60aaaa, 0x00aaaaaa,0x0d400722,0x02aaaaa8,0x20555555,0x99999998,0x40099999, 0x99999999,0x26666621,0x20999999,0x99999998,0x20099999,0x01999999, 0x0d554c00,0x16ecc000,0xffff9100,0x17dfffff,0x7fff6400,0x544fffff, 0xdffffffe,0x7fff4c00,0xfff93fff,0x88009fff,0x05fa83ff,0x4c0027dc, 0xfffffedb,0xffffffff,0xffffffff,0x74c2ffff,0xffffffff,0xffeb800f, 0x003fffff,0x01fffffb,0xf50077cc,0x6c40001f,0xcfffffff,0x20000000, 0x01effff9,0x3fbfffee,0x00f11cff,0xfc80ffdc,0x7ffff547,0x3ffaa1ff, 0x7401ffff,0x0bfa202f,0x837ffff4,0x706ffffe,0xffffffff,0xd807dfff, 0xfffffffe,0xffffff70,0x645dffff,0xfffffffe,0xd104efff,0x00dfffff, 0xefffedb8,0x00beffff,0x17fffee0,0x59fff910,0xffb55333,0xfe88009f, 0x2e4fffff,0xffca9bef,0xffc801ff,0xfffdbfff,0x002fffff,0x3e207fea, 0xdb99abdf,0x7dc002ff,0xdaacefff,0xffffffff,0xffedccce,0xd102ffff, 0xdfffffff,0x7ffec400,0x3ffe2001,0xffc801ff,0x002ffb81,0x22bbfea0, 0x005ffffc,0xffb01800,0xfd30dfff,0x7ecc419f,0x36007fff,0x41bfa07f, 0x81fffffe,0x01fffffe,0x7cc1ffd4,0x3fffa05f,0xffffd06f,0x7ffe440d, 0x8005ffff,0x40dfffe8,0xffffffd8,0x3ffea02f,0x000fffff,0x4005ffd1, 0x0bdfffe9,0x5ffffb51,0x3ffffa00,0x5dfd300f,0x3bfae200,0x3ffe6000, 0x09f74fff,0x007fffea,0xdffffff5,0x3ffffe63,0x81bf6007,0xfffffffc, 0x362006ff,0xf104ffff,0x09ffffff,0x017fff4c,0xffffffd1,0x2ff8009f, 0x7fffdc00,0x5fff1001,0x00037fec,0xfa87fff1,0x00003fff,0xfff103e6, 0xfe83ffff,0x7ffd404f,0x41bfa007,0xff904ff8,0xff903fff,0xfd003fff, 0x0fffdc9f,0x0dffffd0,0x01bffffa,0x3ffffffa,0x5ff70003,0x7ffffcc0, 0x7fd400ff,0x4007ffff,0x3f2005fb,0x7cc04fff,0x2600dfff,0x82ffffff, 0x10004ffa,0x22003ffb,0x9cffffff,0x7ffec03f,0x3ffea00f,0x7fe41fff, 0xff000fff,0x7fff4409,0x001fffff,0x09ffffd1,0xffffffb8,0x17ff4404, 0x3ffffe60,0x36002fff,0x7fec000f,0x7fe4001f,0x01fffecf,0x03fff600, 0x0017fffa,0x7c07f440,0x23ffffff,0x9800fffc,0xff1007ff,0x40ffe609, 0x81fffffb,0x01fffffc,0xfcdfff98,0x7ff404ff,0xfffd06ff,0xfff500df, 0x2000bfff,0xffd805fb,0xe802ffff,0x01ffffff,0x22007f20,0x006ffffe, 0x03fffff3,0x07fffffc,0x00007fe6,0x22003fea,0xecffffff,0xffffa805, 0x3fffea05,0xffffb83f,0x1ffa801f,0x7fffec40,0xff3002ff,0xf300ffff, 0x009fffff,0xff300bfa,0x3fffffff,0x1001f200,0x10005fff,0xbfffffff, 0x7ffcc000,0x6fffc80f,0x1ff90000,0xffffff70,0x017ffe67,0xf3007fb8, 0x07fee07f,0x0fffffdc,0x0fffffe4,0xfffffd80,0x7ff400ff,0xfffd06ff, 0x3ffa00df,0x8000ffff,0xff9800fd,0xb805ffff,0x04ffffff,0x7ec01ba0, 0x2000efff,0x00fffffd,0x88bffff7,0xd97302fe,0xb9a2379d,0xfff8805f, 0x000fffff,0x205fffff,0x83fffffa,0x01fffffb,0x2a007fc8,0x2000bdec, 0x04fffffd,0xffffff88,0x805f7004,0xfffffdf9,0x7c800eff,0x017fdc00, 0xfffff900,0x7d40001f,0xffb81fff,0xfa80004f,0x7bb500ff,0x3ffea5ff, 0x803ec007,0xff901ffb,0x7ffffdc0,0xfffffc81,0xffff3001,0xffd007ff, 0x3ffa0dff,0xff7006ff,0x8009ffff,0x3fa005f8,0x400fffff,0x7ffffff8, 0x7007f100,0x007fffff,0x5fffff98,0x360b7660,0xeffc884f,0x6fffc98a, 0x3e201fec,0x03ffffff,0x1bffffa0,0x1fffffd4,0x17ffffdc,0x00027fc0, 0xffffa800,0xff8801ff,0x8704ffff,0x4fcc02f8,0xfffffffd,0x4007c805, 0x440002fd,0x004fffff,0x1ffffe40,0x000fffe4,0x03fffea0,0x7e47fe20, 0x2a003fff,0x07fd800f,0xffb81bfa,0xffc81fff,0x36001fff,0xd006ffff, 0x3a0dffff,0x1006ffff,0x1fffffff,0x000fdc00,0x7ffffff7,0xfffffb00, 0x01f7005f,0xffffff88,0xfffe8001,0xf88002ff,0x04fff986,0x0ff11bf2, 0xffffff88,0x7fff4007,0xfffa81ff,0xfffb83ff,0x7fcc02ff,0xd0000002, 0x00dfffff,0x3fffffe2,0x02d86884,0xfffe8fcc,0x6404ffff,0x0004c007, 0x0aaaa980,0x7ffe4000,0x04ffe86f,0x7fffdc00,0x27fa800f,0x02fffffd, 0xfd001f10,0x7027fc0d,0x903fffff,0x003fffff,0x00d55544,0x06ffffe8, 0x00dffffd,0x7fffffe4,0x0017a003,0xfffffff1,0xfffff500,0x00bd00bf, 0x0ffffffd,0x3ffff200,0x7e4000ff,0x037ffc42,0x0bf21be2,0xffffff88, 0x7ffec004,0xfffa84ff,0xfffb83ff,0x3fe402ff,0x5bdb7500,0xffff7001, 0x3e2007ff,0xa84fffff,0x7cc00886,0xffffff11,0x03e405ff,0x00000000, 0x3fff2000,0x13fee1ff,0xffff9000,0x035557ff,0x7ffdc7fb,0x3800cfff, 0x7f777744,0xeeeeeeff,0x5c1eeeff,0xc81fffff,0x001fffff,0xfffd0000, 0x3fffa0df,0x3fe2006f,0x5006ffff,0xff90003f,0xf005ffff,0x01ffffff, 0x3ea017cc,0x004fffff,0xffffff70,0xd87f8007,0x6b802fff,0x3e206f88, 0x004fffff,0x37ffffec,0x1fffffd4,0x17ffffdc,0x22017fa0,0xffdcfffe, 0x3fff603e,0xf1003fff,0x909fffff,0x87e6000d,0xfffffff9,0x220f901f, 0x0aaaaaaa,0x510675cc,0x81555555,0x2000ceb9,0xadfffffa,0x40002efd, 0xfffffffd,0x7c45ffff,0x7ffffcc6,0x44003fff,0xffffffff,0xffffffff, 0x7fdc2fff,0xffc81fff,0x55501fff,0x55555555,0xfd055555,0x3fa0dfff, 0x6c006fff,0x01ffffff,0xf30006e8,0x80bfffff,0xfffffffa,0x2e01f203, 0x03ffffff,0xfffff300,0x27d400bf,0x801fffe6,0x2201fb03,0x04ffffff, 0x7ffffe40,0x7fffd40f,0xffffb83f,0x0bfe602f,0x41bfff30,0xfd04fffc, 0x005fffff,0x3fffffe2,0x80037c44,0x7ffdc1f9,0xc80effff,0xffff9107, 0x7ffe47ff,0x3fff225f,0x3ff23fff,0x3e2005ff,0x2effffff,0xecc88000, 0xcccfffff,0x203ba22c,0xffffffff,0xff1003ff,0xffffffff,0xffffffff, 0xffffb85f,0xffffc81f,0xffff881f,0xfffeeeff,0xffe86fff,0xfffd06ff, 0xff9800df,0x4c05ffff,0x3fa0002f,0x200fffff,0xfffffffd,0xb009f106, 0x05ffffff,0x3fffe200,0x3ee006ff,0x037ffe42,0x880fe400,0x04ffffff, 0x7ffffe40,0x7fffd41f,0xffffb83f,0x03fee02f,0x41ffff98,0xf83ffff8, 0x01ffffff,0xffffff10,0x0006fc89,0xfff903f3,0xf90bffff,0xfffffc80, 0xffffff93,0xfffffc81,0xffffff93,0x7fff4001,0x776406ff,0xb04eeeee, 0x201fffff,0x3fea05fa,0xffffffff,0x7fd8002e,0xf701bfa0,0xf903ffff, 0xf103ffff,0xff9813bf,0xfe82ffff,0xffd06fff,0xfd000dff,0x401fffff, 0x7dc0006d,0x303fffff,0xfffffb7f,0x003f503f,0x5ffffffd,0x3ffe2000, 0x32007fff,0x2fffec1f,0x817d4000,0x4ffffff8,0x7fffe400,0x7ffd42ff, 0xfffb83ff,0x17fa02ff,0x20ffffb0,0x261ffffd,0x1fffffff,0xfffff100, 0xdffb519f,0x407e6000,0xfffffffe,0x3ea03e43,0xffabffff,0xfa87ffff, 0xffabffff,0x2007ffff,0xfffffffb,0x3fff2203,0xffb00bef,0x19701fff, 0xfffff700,0x3bffffff,0x8837f400,0x7fdc04ff,0xffc81fff,0x5f881fff, 0x3fffffa0,0xdffffd05,0x1bffffa0,0x3fffee00,0x07f104ff,0xffff8800, 0x51f907ff,0x09ffffff,0xfff100dd,0x0003ffff,0x3fffffe2,0x7ec1881f, 0x027fff40,0x8827cc00,0x04ffffff,0x7ffffe40,0x7fffd43f,0xffffb83f, 0x07ff102f,0x837fffcc,0x2a4ffffb,0x0fffffff,0xfffff100,0xdfffffff, 0x407e6000,0xfffffff8,0xf301f22f,0x19f9ffff,0xf309fff9,0x19f9ffff, 0x7009fff9,0xfffffbff,0xffd801ff,0x7ffec00e,0xc80000ff,0xffffffff, 0x8802ffff,0x7ff304ff,0xfffffb80,0xfffffc82,0xf701f881,0x201fffff, 0xd06ffffe,0x144dffff,0xffffff80,0x0001f907,0xffffff90,0x7ffc9f05, 0x1fc47fff,0x7ffffcc0,0x3e0001ff,0x22ffffff,0xfb1dffd8,0x05ffff81, 0x104f9800,0x09ffffff,0xfffffc80,0x7fffd43f,0xffffb83f,0x01ff702f, 0x82fffff4,0x2a6ffffb,0x07ffffff,0x3ffffe20,0x6fffecef,0x403f3000, 0xfffffff9,0xf980f90f,0x445fffff,0xffff302b,0x02b88bff,0xfa97ff4c, 0x406fffff,0xfd801ffc,0x0000ffff,0xffffff70,0x07ffffff,0xf703ff98, 0xfffa803f,0xfffe82ff,0x106881ff,0x09ffffff,0x43fffff4,0x27fffff8, 0xfff9003b,0x4f885fff,0xfff30000,0x1fa8bfff,0x3ffffff2,0x26003ee2, 0x0fffffff,0x3fffe000,0x3ff62fff,0xe83f96ff,0x80006fff,0xfff102fa, 0xc8009fff,0x42ffffff,0x83fffffa,0x02fffffb,0xfff80dfb,0xfff505ff, 0x3ffe61ff,0x22007fff,0x24ffffff,0x30006ffa,0xfffa803f,0x0f96ffff, 0xffffff98,0x7ffcc001,0xa8001fff,0x7ff42fff,0x3a03ffff,0xfffb004f, 0x400001ff,0xffffffd8,0x202fffff,0xff901ffb,0xfffff300,0xfffffd87, 0x3f60101f,0x7406ffff,0x221fffff,0x0ffffffe,0x3fe2005b,0x7dc6ffff, 0x3fa00000,0x3a0fffff,0x7ffffcc6,0x44017a5f,0x1fffffff,0x3fffe000, 0xfff11fff,0x85f73fff,0x0006fffc,0xff101fc8,0x8009ffff,0x1ffffffc, 0x27ffffdc,0x17ffffdc,0xf101ffc4,0x2a09ffff,0xf11fffff,0x01ffffff, 0x3ffffe20,0x0037dc4f,0xfc801f98,0xcdffffff,0x7fffcc07,0xff98007f, 0xa8007fff,0xff987fff,0x882fffff,0x3ff6006f,0x00000fff,0xfffffd98, 0x3606ffff,0x0dfd00ff,0x3fffffe0,0xfffefdac,0x3e6002ff,0x402fffff, 0xadfffffe,0xffffdeeb,0x2000fdef,0x1ffffffd,0x7000017a,0x27ffffff, 0xfffe82f9,0x02f98fff,0x3fffffe0,0xff10002f,0x261fffff,0x9affffff, 0x7fffd44f,0x07ec0000,0xffffff88,0x7ffe4004,0x3fa20fff,0x5c1effff, 0xa82fffff,0x3fea01ff,0xff504fff,0x7ffc7fff,0x1001ffff,0x09ffffff, 0x3e6000dd,0xffffb001,0x980fffff,0x006fffff,0x6fffff98,0x7fffc400, 0xfffff905,0x01fc83ff,0x3fffff60,0x26000000,0xfffffffe,0xfffff13f, 0xffffffff,0x05ffffff,0xfffffff3,0xfffff93f,0x3ffa001b,0xff805fff, 0xdfffffff,0xffffff88,0x7fcc002f,0x3f55ffff,0xff880000,0x0f97ffff, 0x3fffffee,0x7ec007db,0x003fffff,0xffffff10,0x6ffffd8f,0x3fff61fe, 0xdf101004,0x7ffffc40,0x7fe4004f,0x3fea7fff,0x1fffffff,0x0bffffee, 0xff501bf6,0x3ea09fff,0x3f64ffff,0x002fffff,0x9ffffff1,0x26000d90, 0xffd1001f,0x80ffffff,0x05fffff9,0xfffff980,0x7ffe4005,0xffff106f, 0x3ea1ffff,0x7ffec003,0x1b0000ff,0x3fffaa00,0xfff14fff,0xffffffff, 0xffffffff,0x3fffea05,0xffff90ef,0xfb803fff,0x800fffff,0xfffffdff, 0x7ffffd44,0xfffd0002,0x00bd1fff,0x3fff2000,0x103fbfff,0xffffffff, 0xfffc8009,0x30004fff,0x8bffffff,0x322fffe9,0x7fffc42f,0x32076200, 0x3ffe202f,0x64004fff,0x006fffff,0x7ffffdc0,0x4c04ff82,0x704fffff, 0x547fffff,0x03ffffff,0xffffff10,0x0dc0d509,0x26001f98,0x7fffffff, 0x7ffffcc0,0xfff98003,0x7f4003ff,0xf301ffff,0x3dffffff,0xffb000df, 0x20001fff,0x7fec003d,0xddd16fff,0xddddddff,0xdddddfff,0x40ab9803, 0x44001fe9,0x04ffffff,0xbb98ff88,0x0055d401,0xfffff700,0x00005fbf, 0x3ffffe60,0x3f200fff,0x01ffffff,0x7ffffcc0,0xff70004f,0x2605ffff, 0xe986f882,0x3e982fff,0x7c407f88,0x004fffff,0x1fffffe4,0x3ffee000, 0x0ffd41ff,0x3ffffe20,0xfffff704,0xfffffe85,0xffff1004,0x40d109ff, 0x003f301e,0xffffffa8,0x7fffcc07,0xff98003f,0x22003fff,0x03ffffff, 0x3fffffea,0xd8000fff,0x000fffff,0xe8800bb0,0xfb86ffff,0x00ffb01f, 0x02ffa800,0xfffffd80,0x03ff5006,0x7c000000,0x06ffffff,0x7ff40000, 0x4c05ffff,0x06ffffff,0xfffffb00,0x3ff6000d,0x90006fff,0x3fff209f, 0xb00efddf,0xfff8807f,0x20204fff,0x007ffffc,0xfffffb80,0xf803fe40, 0xf705ffff,0xfb83ffff,0x1007ffff,0x09ffffff,0xf300f980,0xfff90003, 0xff980fff,0x98003fff,0x003fffff,0x3fffffe6,0x7fffe406,0x8000efff, 0x00fffffd,0x8001fb00,0xd84ffff9,0x01bfa07f,0x01fff000,0xfffff980, 0x7ff9002f,0x40000000,0x3ffffffc,0x7dc00000,0x801fffff,0x03fffffe, 0xfffff100,0xffd0003f,0x0c405fff,0x54c05fd0,0x3ee009bc,0xffff8805, 0xefea84ff,0x0fffff21,0x7dc37100,0x7fc0ffff,0xffffb004,0x3ffff20b, 0xfffffb07,0xffff3005,0x7e8009ff,0x40007e60,0x407ffffd,0x03fffff9, 0xfffff980,0x3ffe2003,0x6c05ffff,0xefffffff,0xffb01501,0x20001fff, 0xff8005fd,0x06fe82ff,0x00009ff1,0x000fffcc,0x17fffffa,0x02ffec28, 0xf1000000,0x000fffff,0xffff1000,0x3fee00df,0x20000fff,0x05fffffc, 0x7ffffd40,0x5dff9105,0x0005ff10,0x1001df70,0x09ffffff,0x7ec9fffd, 0x22000fff,0xfff70fff,0x02ff98ff,0x0dffff30,0x40fffff2,0x06fffff8, 0xffffffa8,0x817f6004,0xd10001f9,0xf980ffff,0x8003ffff,0x03fffff9, 0x7fffff40,0x7ff404ff,0x43ffffff,0xfffc80fa,0xfb0000ff,0xfff8005f, 0x827fc40f,0x00003ff9,0x800fffee,0x0ffffffb,0x7fff8b10,0x40000000, 0x003ffffd,0xfff90000,0x3fe2007f,0x440005ff,0x00fffffe,0x3fffffa0, 0xfffff700,0x009ff501,0x007bf620,0x7fffffcc,0x27ffff85,0x4003fffd, 0xff71fffa,0x07fc89ff,0x07fffe40,0x203ffff4,0x03fffff9,0x7fffffdc, 0x09ff9004,0x10001fd4,0xf980ffff,0x8003ffff,0x03fffff9,0x7ffffdc0, 0xea81dfff,0xffffffff,0x703fedff,0x5c3fffff,0x3fffb003,0x0bffe600, 0x7dc0bfe6,0x2a00001f,0x8801ffff,0x03ffffff,0xffff8972,0x00000000, 0x003fffe6,0x7fcc0000,0x3f6000ff,0x880002ff,0x004ffffe,0x03fffff5, 0x1ffffff4,0x00befe88,0x00dffc88,0x3ffffe60,0xffffd85f,0x0007ffd0, 0x3ee3fff5,0x05fe86ff,0x1ffff440,0x007fffe6,0x0fffff62,0xffffffe8, 0x7fff5406,0x0017f603,0xa80fff50,0x003fffff,0x3fffffa8,0xffffd800, 0xdcffffff,0xfffdcfff,0x6fffffff,0x3ffffe20,0x36005b9d,0xe803ffff, 0x3ff704ff,0x0001ff60,0x7fffff10,0xfffffd80,0xf993ea06,0x00001fff, 0x27ff4000,0x3a000000,0x7d4004ff,0x2200007f,0x404ffffe,0x01effffa, 0x27fffffc,0x2f7fff20,0xffdca99a,0x7f44003f,0x43ffffff,0xfaaffff9, 0x3f60003f,0x1fffe9df,0x40017fcc,0xd12effd8,0xb8003dff,0xaaceffff, 0xffffffeb,0xedccdeff,0x02ffffff,0x0039fff7,0x2e03fdc0,0x004fffff, 0x4fffffb8,0xfffd8800,0xffffffff,0x3ffee0cf,0x00efffff,0x7fffffd4, 0x3ff6000f,0x4c0aefff,0x3f603ffe,0x001bfa07,0x3fffea00,0x7fcc4dff, 0xb882ffff,0x3ffe23ff,0x00000007,0x0001ffa8,0x0ffdc000,0x0027fc00, 0x7fffdc00,0xffb710ad,0x3f2009ff,0x8800ffff,0xffffffeb,0x22002eff, 0xffffffee,0x93efffff,0x05dfffff,0xffff7000,0x1ff70159,0x7ffe4000, 0x000dffff,0xffffb510,0xffffffff,0xffffffff,0x3fffffff,0x7fffff54, 0xb0003eff,0x7ffec40f,0x22000eff,0x0efffffd,0xfffd5000,0x019fffff, 0x3fffffe6,0xffb5000d,0xed80039d,0xefffca88,0x400dfffe,0x9ff105fe, 0x3a600000,0x744fffff,0xaaffffff,0x3ffffdca,0x000177e4,0x05f80000, 0xf8800000,0x03f90005,0x3ae20000,0xffffffff,0x22001cef,0x8004fffd, 0x0aaccba9,0x20000000,0x0000acb9,0x79700100,0x32a20000,0x8800000a, 0x09999aa9,0x00000000,0x3ea09000,0xffffffff,0xffffa806,0x006fffff, 0x26f2ea60,0x0b2a6000,0x40001000,0x7997500b,0x0b320013,0x0000e644, 0x02aee600,0xfffffff7,0xffffffff,0x0000005f,0x00350000,0x06e00000, 0x0001cc00,0xccaa8800,0x40001abc,0x000000a9,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00da8000,0x880005b8,0x19999999,0x33333330,0x13333333, 0x33333310,0x6e540333,0x9999acee,0x26660999,0x00019999,0x000013b6, 0x5666e54c,0x00000001,0x99999988,0x99999999,0x99999999,0x4c000099, 0x99999999,0x99999999,0x99999999,0x20030000,0x0ea801e9,0x26666666, 0x00099999,0x00e64c00,0x26600000,0x00199999,0x4ccccccc,0x33333301, 0x33333333,0xa8800001,0x3300accc,0x10333333,0x33330597,0x20333333, 0x4c199998,0x99999999,0x88099999,0x440002cb,0x1bea00ef,0x3ffa6000, 0xd81fffff,0xfffffffe,0xc81defff,0xeffffffe,0xdfffe984,0xfffffffb, 0x3fffa2ff,0x20007fff,0x200007fc,0xffffffc8,0x000befff,0x3fffea00, 0xffffb83f,0xffffffff,0xffffffff,0x0005ffff,0x7ffff764,0xffffffff, 0xffffffff,0x7e4003ff,0x77c401ef,0xc89be600,0xfffffffe,0xeeffffff, 0xffe8001c,0x000003ff,0x3fffffa0,0x3fe2007f,0x887fffff,0xfffffffe, 0x04efffff,0xbff91000,0x441dfff9,0x7ffffffe,0x22ffffdc,0xffffffff, 0xfffe80ff,0xffd910ff,0xffffffff,0xfffb87bd,0x7fc0005f,0xfcb99ace, 0x2200004f,0x01ffffff,0x3fffffa2,0xfd1000ef,0x3fea01ff,0x7fff43ff, 0x7cc2ffff,0x0007ffff,0x0000bfe6,0x359fff91,0xfffb5533,0x3f600009, 0xff704fff,0xfb99bdff,0x99dfffff,0x0bffffd9,0x7ffe4000,0xcdffffff, 0xfffecccc,0x3e6003ff,0xfe806fff,0xfcb99ace,0xfffd105f,0xd999bfff, 0x019fffff,0xffffff50,0x40000003,0x07fffffa,0x7fffdc40,0x7ffcc07f, 0x002fffff,0x3fff4400,0xf509fffd,0xff8fffff,0x3224ffff,0x02ffffff, 0x880f7fc4,0xfffffffe,0x3ffffe01,0x3ee0003f,0xffffffff,0x6400000f, 0x401fffff,0x3ffffffb,0x817fc400,0xa86ffff8,0x0999ffff,0x07ffffe8, 0x0027fc00,0x005dfd30,0x003bfae2,0x09ffff00,0x4c07ffdc,0x83ffffff, 0x0005ffd8,0x3feffe60,0x2202ffff,0x2003fffd,0x01fffffc,0x7fffffd4, 0x2e01ffff,0x83ffffff,0x2fffffe9,0x7ffffec0,0x0000005f,0x03fffff4, 0x7fffff80,0xfffffa80,0xe800004f,0x3ffe5fff,0xfffff07f,0x7ffffd4f, 0xffffe87f,0x00ff802f,0x7fffffd4,0x3fffea04,0x6c0007ff,0xffffffff, 0xfc800003,0x5401ffff,0x03ffffff,0xfd00ff80,0xff109fff,0xffe80bff, 0x640007ff,0xff50007f,0x3f620009,0xff50001f,0x0ffb809f,0xffffff30, 0x002fec07,0xff55f900,0x9005ffff,0x7d4007ff,0xfb007fff,0x7fffffff, 0xfffffa80,0x3fff203f,0x3fee05ff,0x0006ffff,0x7fff4000,0xffd0007f, 0xff300fff,0x0007ffff,0x5ffffb80,0x740ffff6,0x3e67ffff,0x40ffffff, 0x04fffffb,0x7cc027c4,0x203fffff,0xfffffff9,0x3f620000,0x003fffff, 0xffff7000,0xfffa803f,0xe8002fff,0x3ffffe07,0x3fffff03,0x3fffff40, 0x07fea000,0x003ff300,0x001ff500,0x700bffb0,0x7ffcc05f,0x3e203fff, 0xbf300005,0x3fffffea,0x007f9002,0x004ffff8,0x3ffffff2,0xffff9803, 0x7ff403ff,0xff104fff,0x000fffff,0xfffd8000,0xffd0007f,0xff300fff, 0x0007ffff,0x5ffffc80,0xffd00dd4,0xfffe8fff,0x7fc41fff,0x7dc07fff, 0xffff9801,0x7ff403ff,0x0001ffff,0x00bdeca8,0x3fee0000,0x7d401fff, 0x002fffff,0xfff307d8,0x3ffe07ff,0x3ffa02ff,0xf80007ff,0x3fa2004f, 0x99999992,0x2e015599,0x5ff8005f,0xf980f700,0x403fffff,0xfb00005c, 0x3ffffea1,0x07f1002f,0x00039500,0x0039bd93,0x3fffffe6,0x7fffcc03, 0x9d9102ff,0x00000dfd,0x7ffffd80,0xffffd000,0xffff300f,0x800007ff, 0x005ffffd,0x87ffffe8,0x80ffccdb,0x02fffffd,0x7fcc01b6,0xb803ffff, 0x000ffccd,0x00000000,0x1fffffb8,0x7ffffd40,0x07d8002f,0x07fffff3, 0x80fffffe,0x007ffffe,0x2006fd80,0x3ff664fd,0xfffebaff,0x003fd80d, 0x4b8017ea,0x7ffffcc0,0x002cc03f,0xff51fd40,0x0e05ffff,0x000000f6, 0xff980000,0xe803ffff,0x00ffffff,0x00004fc8,0x7fffec00,0xfffd0007, 0xfff300ff,0x00007fff,0x05ffffe8,0x7ffffe80,0xfa83fd40,0xf105ffff, 0x3ffe6007,0x54003fff,0x0000007f,0xff700000,0xfa803fff,0x002fffff, 0x3ffe07d8,0xffff03ff,0x7fff403f,0xfa80007f,0x86f8801f,0x7d47fffa, 0x3fc40eff,0x98003100,0x7fffcc01,0x003803ff,0x3ea37c40,0x882fffff, 0x00003b86,0x26000000,0x03ffffff,0xffffffb8,0x002ff804,0x7fec0000, 0xfd0007ff,0xf300ffff,0xc87fffff,0x3ffe0001,0xfe8005ff,0x7e407fff, 0x3ffffe05,0x001fb80f,0x7ffffff3,0x005fc800,0x55555553,0x555554c1, 0x3b26002a,0xffff70cd,0xfffa803f,0xd8002fff,0x3ffff207,0x6ffff884, 0x3fffff40,0x0039db73,0xf9007ff1,0x0ffff105,0xf907ffff,0x00000005, 0xffffff98,0xc8000003,0x7fffd41f,0x106a82ff,0x2aaaaaa0,0xaaaaaaaa, 0xaaaaa82a,0xff3002aa,0x1007ffff,0x0fffffff,0x2aa26f98,0x261aaaaa, 0xb001cedb,0x000fffff,0x01fffffa,0x3fffffe6,0x0003fd13,0x02fffffc, 0x3fffff40,0xfc803fe0,0x6d83ffff,0x3fffe600,0x7fc003ff,0xfffd5000, 0x7f543fff,0x400fffff,0xfffffffb,0x1fffffba,0x7ffffd40,0x07d8002f, 0x217fffe6,0x404ffff9,0xf97ffffe,0x03ffffff,0x7f806fd8,0x90ffff10, 0xdf10bfff,0x55555550,0x55555555,0xfff98005,0x00003fff,0x7d427cc0, 0xc82fffff,0x3ffe2006,0xffeeefff,0xfc86ffff,0x007fffff,0x7ffffff3, 0x3ffffa00,0x87f602ff,0xffffffd8,0xffffff74,0xffffb00b,0x3ffa000f, 0x260397ff,0x9bffffff,0x7c0001ff,0x8005ffff,0x207ffffe,0x7fcc04fa, 0x1fc46fff,0xfffff300,0x27d4007f,0x7ffff400,0xfffff81f,0x3fff200f, 0xfefda9cf,0x5401ffff,0x02ffffff,0x7dc07d80,0x7fe40fff,0xfffe804f, 0xffbcfeff,0x2e00ffff,0x13ea00ff,0x6c3fffc4,0x1fb05fff,0x7fffffc4, 0xfffffeee,0x7fcc006f,0x0003ffff,0xfa837400,0x442fffff,0x3fe2006f, 0x7ffcc09d,0xff102fff,0x2600ffff,0x03ffffff,0xffffffb0,0x5c0bf209, 0xfccfffff,0x2fffffff,0x3ffffec0,0xffffe800,0xff300fdf,0x1dfdffff, 0xffff0000,0xffd000bf,0x13e60fff,0x7fffffc0,0x98003ee0,0x03ffffff, 0x20009f30,0x81fffffd,0x00fffffd,0xb0dffff5,0x03ffffff,0xffffffa8, 0x807d8002,0xd9bfffea,0xfd002fff,0x441dffff,0x00effffd,0x7dc07ff1, 0x8ffff102,0x902ffff8,0x4effc43f,0x7ffffcc0,0x7fcc002f,0x0003ffff, 0x540bee00,0x42ffffff,0x3e2006fc,0x3ffffa05,0x7fff405f,0xfff3007f, 0x36007fff,0x45ffffff,0x3ea01ed9,0x12ffffff,0x01fffffd,0x43ffffec, 0x3ffa02ca,0x2600efff,0x4fffffff,0x3ffe0000,0xfe8005ff,0x7e447fff, 0x3fff2003,0x001ba3ff,0x7ffffff3,0x003fc880,0x3fffff20,0xfffffd81, 0x5ffffd00,0xfffffd10,0xffffa803,0x7d8002ff,0x3ffff200,0x3a000bdf, 0x880fffff,0x205fffff,0x07f205fe,0x323fffc4,0x3ea06fff,0xfe817e22, 0x2a05ffff,0xffeeeeee,0xeeeeffff,0x440005ee,0x3ffea05f,0xfea8afff, 0x07e2006f,0x7fffffdc,0x7ffff400,0xfb999107,0x99bfffff,0xffc85999, 0x3626ffff,0xffff9802,0x7ffdc2ff,0x3ff601ff,0x7ffe47ff,0xfffffd04, 0xffff9801,0x400004ff,0x005fffff,0x47ffffe8,0x7cc000bd,0x7f16ffff, 0xffff9800,0x05ec03ff,0x3fff2000,0xfffc81ff,0xfffa80ff,0x3ffee07f, 0x7fd401ff,0x8002ffff,0x25d7007d,0x3fa00018,0x3fa07fff,0x3ee07fff, 0x201fb00f,0xfbaffff8,0x7cc03fff,0x7dc07e24,0x200fffff,0xfffffffb, 0xffffffff,0x40006fff,0x3fea00fd,0xffffffff,0x1a2006ff,0x7fffffc4, 0xffffe804,0xfffff307,0xffffffff,0xffb89fff,0x0007ffff,0x09fffff3, 0x05fffff5,0x13ffffec,0xd01fffff,0x300fffff,0x07ffffff,0xffff8000, 0xffe8005f,0x200007ff,0xb9fffffe,0x7fcc000f,0x0003ffff,0xffff9000, 0xffff903f,0xffff901f,0x7fffdc0d,0x7ffd401f,0xd8002fff,0x017f4c07, 0xffffd000,0x7fffe40f,0x05ff300f,0x7fc403f6,0x2ffffcff,0x1a24f980, 0x7fffffc4,0xfff30004,0x00007fff,0x9999df50,0xffffb999,0xfffb79ff, 0xfb00800d,0x200dffff,0x007ffffe,0x7ffffff3,0x3fffee00,0xf30007ff, 0xf509ffff,0x6c05ffff,0x7fc7ffff,0xfffd07ff,0xfff300ff,0x00007fff, 0x05fffff8,0x7ffffe80,0x3fee0000,0x006ecfff,0xffffff98,0x90000003, 0x903fffff,0xb01fffff,0x5c0dffff,0x401fffff,0x2ffffffa,0x7407d800, 0x200001ff,0x207ffffe,0x02fffffb,0x0fe417fa,0xf77fff88,0x5f500dff, 0xffffb008,0x7cc000df,0x003fffff,0x7fffc400,0xffffffff,0x262fffff, 0x980006ff,0x02ffffff,0x0fffffd0,0x3ffffe60,0xfff9003f,0x2000bfff, 0x84fffff9,0x03fffffa,0x91fffff6,0xff309fff,0xf300ffff,0x007fffff, 0xfffff800,0xfffe8005,0xeee8007f,0xffffeeee,0xeeeeffff,0xfff300ee, 0x00007fff,0x3ffff200,0xffffc81f,0xfffff80f,0x3fffee05,0x7ffd401f, 0xd8002fff,0x3bffe607,0x0199999b,0x3fffff40,0x9fffff70,0xfb83fe40, 0x4ffff102,0x6403fffe,0xfff9801f,0x20002fff,0x3ffffff9,0x0fe40000, 0x7ffffd40,0x0037cc2f,0x7fffff40,0x3fffa005,0xfff3007f,0x36007fff, 0x04ffffff,0xfffff300,0xfffff509,0x7fffec07,0xfa81c987,0x407fffff, 0xffffffe9,0x7fc00003,0xe8005fff,0x8007ffff,0xfeeeeeee,0xeeffffff, 0x300eeeee,0x07ffffff,0x3f200000,0xfc81ffff,0x7c40ffff,0x2e05ffff, 0x401fffff,0x2ffffffa,0x3206e800,0xffffffff,0x03dfffff,0x03fffff4, 0x0bfffff5,0x7cc17fcc,0x4ffff104,0x6c07fffa,0xfffe800f,0x4c0005ff, 0x03ffffff,0x013e6000,0x7fffffd4,0x40006d82,0x0ffffffb,0x3ffffa00, 0xffff3007,0x3f6007ff,0x003fffff,0x9fffff30,0x7fffff50,0x3ffffec0, 0xffd9f100,0x7fd40fff,0x03ffffff,0x7fffc000,0xffe8005f,0x400007ff, 0x05fffffb,0xfffff300,0x0000007f,0x07fffff2,0x03fffff2,0x0bfffff3, 0x0fffffdc,0x3ffffea0,0x06e8002f,0x3fffffee,0xffffffff,0xfffd00ef, 0x7ffd40ff,0x27fc04ff,0xfff107f8,0x03fffe8f,0xff700df1,0x0001ffff, 0xffffff98,0x1ba00003,0xfffffa80,0x0006b82f,0x3fffffe2,0x7fff4004, 0xfff3007f,0x3a007fff,0x01ffffff,0xfffff300,0xfffff509,0x7fffec07, 0x7f4a2007,0xbf907fff,0x7ffffff3,0x3e122000,0x8005ffff,0x007ffffe, 0x7fffd400,0xff30005f,0x0007ffff,0xffc80122,0xffc81fff,0x7fcc0fff, 0x3ee05fff,0x4c01ffff,0x02ffffff,0x3e206f80,0xffffffff,0x6fffffff, 0x0fffffd0,0x17ffffd4,0x7e41ff20,0x0ffff982,0x203fffe6,0x7fc402fc, 0x0004ffff,0xffffff98,0x3f700003,0x7fffd400,0x206982ff,0x3fff602a, 0xfe8006ff,0xf3007fff,0x007fffff,0x3ffffffe,0xfff30000,0xfff509ff, 0x7fec07ff,0xfd0007ff,0x9f10ffff,0x3fffffe6,0xf0970003,0x000bffff, 0x00fffffd,0xffffa800,0xff30005f,0x0007ffff,0xffc8012e,0xffc81fff, 0x7fc40fff,0x3ee06fff,0x4c01ffff,0x03ffffff,0x74c05f80,0xffffffff, 0x0fffffff,0x07ffffe8,0x03ffffea,0xf103ff50,0x5ffff70d,0x446fffd8, 0xfffd807f,0x300006ff,0x07ffffff,0x00bf1000,0xffffffa8,0x81740d02, 0x2ffffff9,0xffffe800,0xffff3007,0xff3007ff,0x0007ffff,0x27ffffcc, 0x1fffffd4,0x0fffffb0,0x3ffffa00,0x3fe62887,0x0003ffff,0xfffff07d, 0xfffd000b,0x999000ff,0xfffb9999,0x99999dff,0x3fe60199,0x0003ffff, 0x7fe4009d,0xffc81fff,0xfff80fff,0x3fee07ff,0x7c401fff,0x003fffff, 0x7dc01fcc,0xffeeeeff,0x82ffffff,0x207ffffe,0x007ffffb,0x53f209ff, 0xffffffd8,0xdffff11e,0xf300ff61,0x005fffff,0x3fffe600,0xd80003ff, 0x7fd4000f,0x4002ffff,0xfffd01fa,0xd0140bff,0x200fffff,0x3ffffff9, 0xfffffd80,0x7fcc0006,0xffa84fff,0x3f603fff,0xd0007fff,0x300fffff, 0x07ffffff,0xff05f100,0xd000bfff,0x000fffff,0xffffffff,0xffffffff, 0x201fffff,0x3ffffff9,0x003f9800,0x07ffffee,0x03fffff2,0x03fffffa, 0x0fffffdc,0x7fffff40,0x017e4005,0x3003ffd5,0xfd03fffd,0x7e40ffff, 0xfb005fff,0x9997f40d,0x20999999,0xbf719998,0xfffffd00,0x2600140b, 0x03ffffff,0x001fd400,0x7fffffd4,0xb83ec002,0x00ffffff,0x7fff40b1, 0xfff3007f,0xf8807fff,0x001fffff,0x7ffffcc0,0xfffffa84,0x3ffff603, 0xfffd0007,0xfff300ff,0xb0007fff,0xfffff03f,0xfffd000b,0xa80000ff, 0x005fffff,0xffffff30,0x05fb0007,0x7ffffdc0,0x7ffff441,0xffffa80f, 0xffffb03f,0xfff7003f,0x7cc00dff,0x0bffe206,0x3a0dff00,0x3607ffff, 0x5002ffff,0x3fe203ff,0xefb80002,0x7fffdc00,0x00b100ff,0xffffff98, 0x1be20003,0x7fffd400,0x3ee002ff,0xfffff886,0xe817203f,0x3007ffff, 0x07ffffff,0x4fffffc8,0xfff98000,0xfffa84ff,0x3ff603ff,0xfd0007ff, 0xf300ffff,0x007fffff,0xff81ffb8,0xe8005fff,0x0007ffff,0x7ffffd40, 0xfff30005,0xb8007fff,0x3e6001ff,0x7f43ffff,0xf00fffff,0xb81fffff, 0x02ffffff,0xffffff88,0x02ff8805,0x800bffe6,0xffd04ff8,0xff101fff, 0x7c400bff,0x13fea03f,0x0f7ec400,0x3ffffe20,0x0017203f,0x9ffffff5, 0x01fec000,0xfffffa80,0xbffb003f,0xdfffffb0,0xfd027d40,0x2a00ffff, 0x03ffffff,0x0fffffee,0x7ffcc000,0xfffa84ff,0x3ffa03ff,0xfd0007ff, 0xf300ffff,0x009fffff,0x7c07ffcc,0x8005ffff,0x007ffffe,0x7fffdc00, 0xff30006f,0x4009ffff,0x4000fffb,0xaafffffe,0xfffffefe,0xfffff501, 0xffdf7119,0x2600bfff,0x0cffffff,0x803fea88,0x8800fffe,0x3ffa05fe, 0xffc84fff,0x7ec000ef,0x5f7f4406,0xdffc8800,0xffffd800,0x013ea06f, 0xffffff50,0x3fee000b,0xfff70003,0x5440bfff,0x7cc4fffe,0x882fffff, 0x3fa03ffb,0xb800ffff,0x05ffffff,0x03dffff9,0x7ffd4000,0xfffb84ff, 0x3ffa04ff,0xf8000fff,0xa807ffff,0x0effffff,0x3fffe440,0x37ffffc4, 0x7ffff400,0x3200000f,0x007fffff,0xffffff50,0xffc9801d,0xff98007f, 0xc9efffff,0x00cfffff,0xfffffff5,0xfffff75f,0xfd5007ff,0x79dfffff, 0x2007fffd,0xaadfffd8,0x2ffdbaa9,0x7ef7ff40,0xdfff50bf,0x1ff70001, 0x7bfff900,0xffb95335,0x3fe6007f,0xb882ffff,0x3e6003ff,0x2fffffff, 0x3fff2200,0x7fcc001e,0xdeffffff,0xffffeccc,0x7fff43ff,0xdcaaafff, 0xf503ffff,0x809fffff,0xfffffff9,0xfffedcef,0x400003df,0xffffffd8, 0x3ffffa21,0xfffa80ef,0x2000cfff,0x3ffffffa,0x3ffffa20,0xccccefff, 0xfffffedc,0x7fffe446,0x3ea001ff,0x004fffff,0xfffff700,0x4c0019ff, 0xffffffff,0xfdccccce,0x007fffff,0xbffffd50,0x3fffff21,0xffd501ff, 0x3fee5fff,0x4001acef,0xfffffffc,0x8000cfff,0xffffeec8,0xe800abce, 0x3fffea3f,0x20003fff,0x71003ff8,0xfffffffd,0xfe8005df,0xaaafffff, 0x03ffffdc,0x7fffff44,0xefffffff,0x3fffea02,0xd503ffff,0xfffffffd, 0xffffffff,0x5fffffff,0x7fffffdc,0xffffffff,0x7ffc42ff,0x1fffffff, 0x3fffffa6,0xffffffff,0x0000adef,0xfffff980,0xff8affff,0x3fffffff, 0xfffffff1,0xf8803fff,0xffffffff,0xfffdd10f,0xffffffff,0xffffffff, 0x7fecbfff,0xefffffff,0x3fffe203,0x01ffffff,0xffffed80,0xefffffff, 0xffffd104,0xffffffff,0xffffffff,0x8000dfff,0x00000ab9,0x2a60dd44, 0x2a600001,0x009abccc,0x00008000,0x32e6202e,0x9700001a,0x97530007, 0x70001559,0xffffffff,0xffffffff,0x00000005,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x05530000, 0x33330054,0x33333333,0x26662133,0x99999999,0x4cccc199,0x99999999, 0x26600000,0x99999999,0x20001999,0x446601a8,0x09999999,0x4cccc000, 0x99999999,0x22000099,0x26602601,0x99999999,0x4cc00009,0x99999999, 0x26666661,0x00999999,0x33333300,0x01333333,0x33330000,0x40003333, 0x6544003a,0x998800ac,0x00019999,0x09970000,0x26666666,0x80999999, 0x99999998,0x26662099,0x99999999,0x4ccc4009,0x26019999,0x99999999, 0x99999999,0x44009999,0x266600cb,0x99999999,0xfd100999,0x7cc17dff, 0x3fffb201,0xffffffff,0xffffb32d,0xffffffff,0x3ffb2219,0xffffffff, 0x01ceefff,0x7ffee440,0xdfffffff,0xfffb0004,0xa9fc417f,0x2fffffff, 0x3fb22000,0xffffffff,0x90003def,0x7f441dff,0x3ffb224f,0x4fffffff, 0x3ffea000,0xceffffff,0xfffffdb0,0xdfffffff,0x7440179d,0xfffffffe, 0xffffffff,0xe8001bde,0x07ffffff,0x037fdc40,0xfffffd88,0x3fee01ef, 0x001fffff,0x7fdc0000,0xfffffd07,0x7dffffff,0xfffffd90,0x7fdc5dff, 0xffffffff,0x7f4c03ef,0x80efffff,0xfffffffa,0xffffffff,0x03ffffff, 0x20ffffe6,0xfffffec8,0x2defffff,0xfffffff0,0x001fd9bf,0xffffffd1, 0xfffa807f,0x401fffff,0xffffffe8,0xfffecccd,0xe8000cff,0x06ffffff, 0x7fffec00,0x2febdfff,0x3fffffa2,0xfd100002,0x03ffffff,0xffff9800, 0x07fffee3,0x3fffffa2,0x3a0007ff,0xffffffff,0x7fffec00,0xffedcdff, 0x4400cfff,0xcffffffe,0xfffeccaa,0x54001eff,0x007fffff,0x0dffff91, 0xffffff30,0x4403ffff,0x01fffffe,0x3e600000,0x3fe607ff,0x1fffffff, 0xcffffa80,0x3fffea00,0x4001ffff,0x201effd8,0xbdfffffb,0xffaaaaaa, 0x406fffff,0x406ffffd,0xffffffe8,0x7ffdc02f,0xffffffff,0x3ffee006, 0xfd007fff,0x009fffff,0x3fffffee,0xffffe983,0x7fd4002f,0x0002ffff, 0x3fffffe6,0x40ffffff,0x02fffffc,0x3ffea000,0x80004fff,0x365ffffb, 0xf503ffff,0x5fffffff,0xffdf3000,0x3007ffff,0x87ffffff,0x2ffffffa, 0x7ffffdc0,0xffff701f,0xfe8005ff,0x64c07fff,0x06ffffff,0x7fffffc4, 0x02ffffff,0x07fffff2,0x74400000,0x7cc07fff,0x0fffffff,0x007ffd00, 0x3fffffee,0xffa8001f,0x5fffdc01,0x7fffdc00,0x7fc01fff,0x5401ffff, 0x05ffffff,0xfffccfd8,0x402fffff,0xffffbaaa,0xaaaaaeff,0xfffdaaaa, 0x02aacfff,0x3fffffea,0x3ffff203,0x3fe6005f,0x0001ffff,0x3ffb37f2, 0x264fffff,0xcfffffda,0x0002aaaa,0x7ffffff3,0xfff10000,0x7fffd45f, 0xfff9f300,0x9000dfff,0xffffff7f,0xffff1005,0xfff507ff,0x7d403fff, 0x201fffff,0x1ffffffa,0x3ffffa00,0xffffb307,0xe80dffff,0xffffffff, 0x2e07ffff,0x001fffff,0xfffb0000,0xfff700ff,0x2009ffff,0x7f4004ff, 0x004fffff,0xfc803fc8,0xfff8801f,0xc804ffff,0x9806ffff,0x04ffffff, 0x7fed43e8,0xffe802ff,0xffffffff,0xffffffff,0xffffffff,0x3e607fff, 0x403fffff,0x04fffffe,0xffffff30,0x22ec0003,0x44ffffca,0xfffffffc, 0x007fffff,0xffffff30,0x3ae00007,0x03efc84f,0x3fffabe6,0x22001fff, 0xfffffadf,0xffff002f,0x3ff607ff,0x3ea06fff,0x401fffff,0x06fffffd, 0x1fffff60,0x7ffd4dec,0x3ea06fff,0xffeb9adf,0x701fffff,0x003fffff, 0xfff50000,0x3fa00fff,0x01ffffff,0x4c002fdc,0x0fffffff,0x401be200, 0xffb002fd,0x001fffff,0x005ffff3,0x9ffffff3,0x0cc01500,0xff755500, 0x555bffff,0xfb555555,0x559fffff,0x7fffcc05,0x7fcc03ff,0x9802ffff, 0x01ffffff,0xa9806600,0xfffda980,0x2aaaacff,0xffff3000,0x000007ff, 0xaaf98000,0x05ffffff,0x3fea7ee0,0xf002ffff,0x207fffff,0x1ffffffb, 0xffffff50,0xffffb803,0xffb001ff,0x3ea00fff,0x3a06ffff,0xffff900e, 0x3fee09ff,0x00001fff,0x7ffffc40,0xfff1007f,0x4c0dffff,0xfb0000ef, 0x00bfffff,0x5e800fec,0xfffff300,0xba8005ff,0xffff1000,0x000009ff, 0xffff8800,0xff7004ff,0x2003ffff,0x3ffffff9,0xfffffe80,0x7ffcc00f, 0xeeeeefff,0x000002bc,0x2fffffb8,0x3fe60000,0x0003ffff,0x7cc00000, 0xffffffd2,0x7d5ba001,0x002fffff,0x07ffffff,0x3fffffea,0xfffff502, 0xfffa803f,0xfb003fff,0x2600ffff,0x306fffff,0xfffe801f,0xfff705ff, 0x000003ff,0xffffefe8,0x3ffee007,0xfd04ffff,0x7fc40001,0x801fffff, 0x0ba004f9,0x7fffff40,0x8000006f,0x4ffffff8,0x40000000,0x4ffffff8, 0xfffff700,0x3fe6003f,0xb803ffff,0x04ffffff,0x7fffffcc,0xffffffee, 0x2000003f,0x02fffffb,0x3ffe6000,0x00003fff,0x97cc0000,0x4ffffffb, 0xff52f980,0x2005ffff,0x03ffffff,0x9ffffff3,0x3ffffea0,0x7ffcc01f, 0xfb004fff,0x2600ffff,0x106fffff,0xffff5001,0x3ffee09f,0x000001ff, 0x3fff6bf2,0x7fec007f,0x6c1fffff,0xfc80001f,0x805fffff,0x01a000fe, 0x7fffffdc,0x8000001f,0x4ffffff8,0xaaaaaa98,0x2fb6e60a,0x3ffe2000, 0xf7004fff,0x003fffff,0x3fffffe6,0xffff8803,0x7fcc07ff,0x3621ffff, 0x00efffff,0x55555555,0xfffffb80,0x077bae62,0xfffff980,0x2a00003f, 0x02aaaaaa,0x3fe25f30,0xc807ffff,0x3ffffea7,0xffff002f,0x3fea07ff, 0xf503ffff,0x803fffff,0x3ffffffa,0xfffffb00,0x3fffe600,0x7cc0006f, 0xf703ffff,0xa883ffff,0x0aaaaaaa,0xffb4fa80,0xf8800fff,0x26ffffff, 0x100003fb,0x5fffffff,0x20017dc0,0xffff8800,0x55004fff,0x00555555, 0x9ffffff1,0xfffffd30,0x3ffff25f,0xff1003ff,0x2009ffff,0x1ffffffb, 0xfffff300,0x3ffa007f,0x2602ffff,0x81ffffff,0x0efffffd,0xffffffc8, 0x7fffdc07,0xfffff92f,0x3fe6007f,0x0003ffff,0x3fffff20,0x45f3007f, 0x2ffffffc,0xffa93e20,0xf002ffff,0x207fffff,0x1ffffffb,0xffffff50, 0xffffc803,0xffb001ff,0x3e600fff,0x0006ffff,0x0fffffc4,0x1fffffb8, 0x7ffffe44,0x37c400ce,0x00fffffb,0xffffff50,0x0009f57f,0xfffffb80, 0x00df106f,0x3fff6000,0x32006fff,0x07ffffff,0xffffff88,0x3ffff604, 0xfffffdbf,0xf8800fff,0x004fffff,0x3ffffff7,0x3fffe600,0xffb003ff, 0x4c09ffff,0x81ffffff,0x4ffffff8,0xffffff10,0xfffffb80,0xffffffdb, 0xff9800ff,0x0003ffff,0x7ffffc40,0x4c5f3007,0x06ffffff,0xfffa83ee, 0xff002fff,0x3607ffff,0x206fffff,0x1ffffffa,0x7fffff40,0xfffb000f, 0x3fe600ff,0x40006fff,0x206ffff9,0x01fffffb,0x4007fff3,0x3fff61fe, 0xffb0007f,0x0bffffff,0x3ffa0000,0xfc82ffff,0xfa800001,0x02ffffff, 0x7ffffc40,0xffff8807,0x3fee04ff,0xf31effff,0x100bffff,0x09ffffff, 0x3ffffee0,0xfff3001f,0x36007fff,0x05ffffff,0x3fffffe6,0xfffffd01, 0x3fffa01f,0x7ffdc07f,0xff51efff,0xf300bfff,0x407fffff,0xffe80019, 0x5f3007ff,0xffffffd8,0xffa8bd01,0xf002ffff,0x307fffff,0x05ffffff, 0x7fffffd4,0x3fffe601,0x3f6002ff,0xf3007fff,0x000dffff,0x03ffffa8, 0x07ffffee,0x9000ffd4,0xffffd87f,0xfff10007,0x001fffff,0x3ffea000, 0x27cc6fff,0x7fc40000,0x005fffff,0x0fffffd0,0xffffff10,0x7fffdc09, 0x7ffec0ff,0xfff8807f,0xaaaadfff,0xffdaaaaa,0x9101ffff,0xfffffb99, 0x599999bf,0xffffffc8,0x3fffe606,0xfffb01ff,0x3fa03fff,0x7dc07fff, 0x6c0fffff,0x9807ffff,0x03ffffff,0x4001dffb,0x007ffffe,0xfffa85f3, 0x2fa85fff,0x7fffffd4,0xfffff002,0xfffe987f,0x7fd403ff,0xf501ffff, 0x009fffff,0x07ffffd8,0xdfffff30,0xfffc8000,0x7fffdc06,0x003fd01f, 0x7fec2fd4,0x2a0007ff,0x4fffffff,0x3fa00000,0x3a3fffff,0xc800000f, 0x0fffffff,0xffffd000,0xffff100f,0x7fdc09ff,0xffc82fff,0x7c400fff, 0xffffffff,0xffffffff,0x01ffffff,0xfffffff3,0xffffffff,0xffffb89f, 0x3fe607ff,0xf701ffff,0x205fffff,0x407ffffe,0x82fffffb,0x00fffffc, 0x7fffffcc,0x3ffff983,0x3ffffa00,0xd05f3007,0x81ffffff,0xffffa86d, 0xfff002ff,0xf975bfff,0x003dffff,0x5ffffff5,0xfffb7553,0xb0003bff, 0x200fffff,0x06fffff9,0x0ffffc00,0x3ffffee0,0x2001fd81,0xffd80ef8, 0x6c0007ff,0x1fffffff,0xff500000,0xf51fffff,0xf3000005,0x07ffffff, 0x7ffff400,0xffff8807,0x3fee04ff,0xffb82fff,0x7c401fff,0xaadfffff, 0xdaaaaaaa,0x01ffffff,0xffffff30,0x3ffee007,0x3e607fff,0x701fffff, 0x03ffffff,0x01fffffa,0x05fffff7,0x03fffff7,0xffffff98,0x5ffffb83, 0x3ffffa00,0x705f3007,0x47ffffff,0xfffa83f8,0xff002fff,0xffffffff, 0x4003bdff,0xfffffffa,0xffffffff,0x3f60001d,0xf3007fff,0x000dffff, 0x401fffd4,0x41fffffb,0x7ec001fd,0xfffffb01,0xfff88000,0x0006ffff, 0x3ffff600,0x0006fcff,0xfffffd00,0xfe8000df,0xf8807fff,0x204fffff, 0x82fffffb,0x01fffffb,0x7fffffc4,0xffff7004,0x3e6003ff,0x003fffff, 0xbffffff9,0x7ffffcc0,0xffffb01f,0x7fff40ff,0x7ffdc07f,0xfffb82ff, 0x7fcc01ff,0xf883ffff,0x3a002fff,0x3007ffff,0xffff105f,0x407dcfff, 0x2ffffffa,0xffffff00,0x00033339,0x7fffffd4,0xfffffd9a,0x360000ef, 0x3007ffff,0x00dfffff,0x802fff40,0x21fffffb,0x7dc004fd,0x3ffff603, 0xffb80007,0x004fffff,0xffff3000,0x0003ffff,0xfffff700,0xe80003ff, 0x8807ffff,0x04ffffff,0x0bffffee,0x07ffffee,0xffffff10,0x3ffee009, 0xf3001fff,0x007fffff,0x3ffffff6,0x3fffe604,0xfffd01ff,0x7ff40bff, 0x7fdc07ff,0xffb82fff,0x7cc01fff,0x503fffff,0xfe8005db,0xf3007fff, 0x3ffff205,0x2a09f2ff,0x02ffffff,0x7ffffff0,0x7fd40000,0xfd11ffff, 0x009fffff,0x3ffffec0,0xfffff980,0xdff70006,0x3ffee001,0x3fffb1ff, 0xb017e600,0x000fffff,0xffffff98,0x00001fff,0xffffffb0,0xf100000b, 0x09ffffff,0xffffd000,0xffff100f,0x7fdc09ff,0xffb82fff,0x7c401fff, 0x004fffff,0x3ffffff7,0x3fffe600,0xffb003ff,0x4c07ffff,0x81ffffff, 0x2ffffff8,0x1fffffa0,0x5fffff70,0x3fffff70,0xfffff980,0xe800003f, 0x3007ffff,0x3ffe605f,0x01faefff,0x5ffffff5,0x3ffffe00,0x2a00003f, 0x21ffffff,0xfffffff9,0xfffb0002,0x3fe600ff,0x88006fff,0x2e000eff, 0xfdafffff,0xfd006fff,0x9999999b,0x99fffffd,0x8ee88003,0x6ffffffe, 0xff100000,0x0009ffff,0xfffffb00,0x808001ff,0x807ffffe,0x4ffffff8, 0x3ffffee0,0xfffffb82,0x7fffc401,0xff7004ff,0x2003ffff,0x3ffffff9, 0xfffffd00,0x7ffcc03f,0xffd81fff,0x7f405fff,0x7dc07fff,0xfb82ffff, 0x4c01ffff,0x03ffffff,0x3fa09100,0xf3007fff,0x7fffec05,0x3ea06eff, 0x002fffff,0x07ffffff,0x7ffd4000,0x7fe41fff,0x000fffff,0x07ffffd8, 0xdfffff30,0x03ffb000,0xfffffb80,0x4fffffff,0xffffff80,0xffffffff, 0x4003ffff,0xffff30fe,0x00009fff,0xffffff10,0xfa800009,0x02ffffff, 0x7ff41dc0,0xff8807ff,0x2e04ffff,0xb82fffff,0x401fffff,0x4ffffff8, 0xfffff700,0x3fe6003f,0xf003ffff,0x01ffffff,0x7fffffcc,0xffffb511, 0xffe801bf,0x7fdc07ff,0xffb82fff,0x7cc01fff,0x003fffff,0x3ffa0970, 0x5f3007ff,0x7ffffd40,0x3fea02ff,0xf002ffff,0x007fffff,0x7fffd400, 0xfffe81ff,0xd8005fff,0x3007ffff,0x00dfffff,0x0401ffb8,0x7fffffdc, 0x1ffffffa,0x7fffffc0,0xffffffff,0x2003ffff,0x7ffe42fc,0x0001ffff, 0x7ffffc40,0x2200004f,0x5ffffffe,0xfe82d800,0xf8807fff,0x204fffff, 0x82fffffb,0x01fffffb,0x7fffffc4,0xffff7004,0x3e6003ff,0x803fffff, 0x3ffffff9,0x7ffffcc0,0xffffffff,0xffd002ef,0xffb80fff,0xffb82fff, 0x7cc01fff,0x003fffff,0x3ffa09d0,0x5f3007ff,0xfffffe80,0x7fffd407, 0xfff002ff,0x00007fff,0x7fffffd4,0xfffff881,0x7ec003ff,0xf3007fff, 0x400dffff,0x86801ff9,0x72fffffb,0x80dfffff,0xffffffff,0xffffffff, 0x7f7003ff,0x3fffffa0,0x200000ef,0x4ffffff8,0x3ff20000,0x000fffff, 0x7ff40fc4,0xff8807ff,0x2e04ffff,0xb82fffff,0x401fffff,0x4ffffff8, 0xfffff700,0x3fe6003f,0xd803ffff,0x806fffff,0xdffffff9,0x001abccc, 0x07ffffe8,0x17ffffdc,0x0fffffdc,0x3ffffe60,0x3f98003f,0x0fffffd0, 0xf700be60,0xa807ffff,0x02ffffff,0x7ffffff0,0x7fd40000,0xf701ffff, 0x03ffffff,0x3ffffec0,0xfffff980,0x03ff1006,0xfff70d90,0x7ffec3ff, 0x3bb604ff,0xfeeeeeee,0x2eefffff,0x2605f980,0x4fffffff,0x3fe20000, 0x0004ffff,0xffffff30,0x1f90007f,0x0fffffd0,0xffffff10,0x7fffdc09, 0xffffb82f,0x7ffc401f,0xf7004fff,0x003fffff,0x3fffffe6,0x7fffc403, 0xff9801ff,0x0001ffff,0x1fffffa0,0x5fffff70,0x3fffff70,0xfffff980, 0x2fd8003f,0x0fffffd0,0xf100be60,0xa801ffff,0x02ffffff,0x7ffffff0, 0x7fd40000,0x3601ffff,0x06ffffff,0x1fffff60,0x7ffffcc0,0x559fd006, 0xfd755555,0xfffff709,0x7ffffc43,0x7ec0002f,0x26007fff,0xfffc806f, 0x0002ffff,0xffffff10,0x3fa00009,0x006fffff,0xffd07f98,0xff100fff, 0x5c09ffff,0xb82fffff,0x401fffff,0x4ffffff8,0xfffff700,0x3fe6003f, 0x6403ffff,0x004fffff,0x3ffffff3,0x7ff40000,0x7fdc07ff,0xffb82fff, 0x7cc01fff,0x003fffff,0xfe80ffdc,0xf3007fff,0xbfff9005,0xfffff500, 0x3ffe005f,0x00003fff,0x3fffffea,0x3fffe201,0xfb004fff,0x2600ffff, 0x806fffff,0xfffffffc,0x83ffffff,0x41fffffb,0x0ffffffb,0x3fff6000, 0x3fd1007f,0x3ffffa00,0x80000fff,0x5ffffff8,0xfffb8000,0x4001ffff, 0xffd07fe8,0xff300fff,0x5c09ffff,0xc82fffff,0x401fffff,0x5ffffff9, 0xfffff900,0x3fea005f,0x2e03ffff,0x003fffff,0x3fffffe6,0x3fa00001, 0x7dc07fff,0xfb82ffff,0x4c02ffff,0x04ffffff,0x403ffee0,0x007ffffe, 0xff3005f3,0xfff7003f,0xf1005fff,0x007fffff,0x7fffd400,0x7fd402ff, 0x802fffff,0x007ffffe,0x0dfffff3,0xffffffb8,0xffffffff,0xfffffb81, 0xfffffd82,0x3ff60005,0xfe8807ff,0x3ffea004,0x0005ffff,0xffffff88, 0x7fc40005,0x004fffff,0xe837ffcc,0x9807ffff,0x04ffffff,0x0ffffff2, 0x0bfffff2,0xffffff50,0x3fff200b,0xf7003fff,0x20bfffff,0x01effffc, 0x7ffffd40,0x3a00002f,0x200fffff,0x83fffffc,0x02fffffc,0x7fffffd4, 0x7fe4c00e,0x3fffa07f,0x6fc800ff,0x200dfb00,0x3ffffffc,0xfffff980, 0x2e00004f,0x03ffffff,0xffffffc8,0x7fff400f,0xffb800ff,0xf300ffff, 0xffffffff,0x01ffffff,0x05fffff9,0x7ffffff3,0x3fff6000,0x7ff4407f, 0x7fff4003,0x0003ffff,0x7fffffcc,0x7fec0006,0x000fffff,0x0bffffb3, 0x03fffffa,0xffffff50,0x3fffa60b,0x3fe60eff,0x100dffff,0xfffffffd, 0xffffa807,0x4c01ffff,0xffffffff,0xffffedce,0xfe98003d,0x01efffff, 0xffffa800,0xffd104ff,0x7cc1bfff,0x00dfffff,0xfffffff3,0xb99999df, 0x0fffffff,0x3fffffea,0x67ffdc04,0x401fd401,0xfffffffa,0x3ffa201f, 0x002fffff,0xfffff980,0xfe801fff,0x02efffff,0x9ffffff5,0x7fffd401, 0x7c40dfff,0xffffffff,0x86ffffff,0xdfffffe9,0xfffffe80,0xffd8002f, 0xff7107ff,0x26003dff,0xffffffff,0xe88000bf,0x3fffffff,0xffff5000, 0x9999dfff,0xfffd9999,0xf509ffff,0x409fffff,0xffffffe8,0x7fffdc2f, 0xfa9fffff,0xffffffff,0xffffdd11,0xdfffffff,0x3ffffaa7,0xffffffff, 0xffffd31e,0xffffffff,0x0015bdff,0xfffffe88,0x6fffffff,0xffff8800, 0x21ffffff,0xfffffffb,0xffffa9ff,0xd11fffff,0xffffffff,0xffffffff, 0xdfffffff,0xffffff88,0x3a21ffff,0xffffffff,0xfe981a02,0xffffffff, 0xffb1efff,0xffffffff,0x44003dff,0xfffffffe,0x00efffff,0xfffffff3, 0x7fffc4ff,0x21ffffff,0xffffffec,0xd5ffffff,0xffffffff,0xbfffffff, 0xffffffb8,0x3ffa2fff,0x06ffffff,0x3ffffec0,0x7fffffe4,0xf980eeff, 0xffffffff,0xb801ffff,0xffffffee,0x0eefffff,0xfffffd00,0xffffffff, 0xffffffff,0x7fc47fff,0xffffffff,0xfffffd11,0xdfffffff,0x00000005, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x99999998,0x09999999,0x1c000000, 0x99998000,0x99999999,0x26662019,0x41999999,0x99999998,0x99999999, 0x99999999,0x26666609,0x99999999,0x33310000,0x33333333,0x26200003, 0x00999999,0x4ccccc00,0x99999999,0x99999999,0x2a200099,0x980bcdcb, 0x99999999,0x31099999,0x33333333,0x99833333,0x99999999,0x99999999, 0x00099999,0x55554c03,0x36e60aaa,0x2aa200be,0x4c0aaaaa,0xb9800ceb, 0x400bdeed,0x51bdedc8,0x6401800b,0xcccccccc,0xcccccccc,0xff884ccc, 0xffffffff,0xfe800fff,0xffffffff,0x3e603fff,0xffffffff,0x79107fff, 0xfffec881,0xefffffff,0x0000003d,0x200003e6,0xffffffec,0x205fffff, 0xffffffec,0x7ffdc6ff,0xffffffff,0xffffffff,0x365fffff,0xfffffffe, 0xffffffff,0x36600ace,0xfffffffe,0xdeffffff,0x3fea001b,0x002fffff, 0x3fffb220,0xffffffff,0xffffffff,0xff5002ff,0x83ffff7d,0xffffffec, 0x32dfffff,0xffffffdb,0x419dffff,0xffffffec,0xffffffff,0x4fffffff, 0xd300f980,0x25ffffff,0x3ffffffc,0xfffff910,0x7fffe47f,0x37ff6205, 0x502ffffd,0xfffdbfff,0x07cc00bf,0x99999c88,0x99999999,0x0c999999, 0x7fffffc4,0x0fffffff,0xfffffe80,0x3fffffff,0x3ffffe60,0x7fffffff, 0x01ffffa8,0xffffffd1,0x0000003f,0x00013f60,0xffffffb0,0x7fcc005f, 0xff702fff,0xfb999dff,0x99dfffff,0x0bffffd9,0xffffffd1,0xffffb999, 0xf3003dff,0x9bffffff,0xffffffb9,0x3ffa2009,0x00002fff,0xffffffd1, 0xd999999d,0x005fffff,0x3f61fffb,0xffd105ff,0x805fffff,0xfffffff9, 0xfffd800e,0xccccefff,0xfffffecc,0x400fe804,0xdbfffffd,0xffffffff, 0x3ffff200,0xfffff93f,0x7ffd101f,0x217fffec,0x3262fff8,0xfd1005ff, 0x0000e201,0xfff88190,0xffffffff,0xffe800ff,0xffffffff,0x3fe603ff, 0xffffffff,0xfffd87ff,0x3ffea05f,0x00004fff,0x1fff1000,0x7fcc0000, 0x8006ffff,0x2e00dffe,0xff981eff,0xe883ffff,0xfff505ff,0xffb05fff, 0x9005ffff,0x03ffffff,0x3dffffd5,0xfffff900,0x7d400005,0x404fffff, 0x402fffea,0x3f67fffc,0xff300fff,0x200bffff,0x3ffffffc,0xfffff300, 0xffd8809f,0x07fe404f,0x3ffffee0,0xffff31ef,0x7ffd40bf,0xffffabff, 0xffe887ff,0x3ffffd46,0x7e41fff6,0x01ff9006,0x900000e2,0xaaaaa881, 0x2aaaaaaa,0x55555500,0x15555555,0x55555440,0x2aaaaaaa,0x07fffff8, 0x3fffffe6,0x00000003,0x0007fff9,0x7ffffc40,0x7fd4005f,0x00ffb804, 0x7ffffff3,0xf982fec0,0x902fffff,0x05ffffff,0xffffffb8,0xffffb101, 0xfffb809f,0x200002ff,0x4ffffff9,0x405ff900,0x2e6ffff9,0x3e605fff, 0x004fffff,0x5ffffff7,0x3fffe200,0xfd3004ff,0x07ffd409,0x3ffffee0, 0x7fffec0f,0x3fffe607,0xffc8cfcf,0x3fffc84f,0x07ffffc4,0x3a05ffff, 0x0fffa806,0x80000710,0x0000000c,0x00000000,0x6fffff80,0x3ffffe60, 0x0000003f,0x06ffff88,0x3ffe2000,0x2a005fff,0x5f7002ff,0x7ffffcc0, 0x417e203f,0x2ffffff9,0x3fffffe0,0x7fffdc05,0x3fe201ff,0x2e03ffff, 0x002fffff,0x3fffe600,0x3f6004ff,0x3fffee02,0x2200e4c6,0x04ffffff, 0xffffff70,0x3ffe2003,0x26004fff,0xffff304f,0xffffb801,0xffffc82f, 0xffff300f,0x82b88bff,0xd82ffff8,0xff30ffff,0x0d505fff,0x00ffff98, 0xc8000071,0x00000000,0x00000000,0x04ffffd8,0x3fffffe6,0x80000003, 0x02fffffb,0xffff1000,0x3ee009ff,0x01ae001e,0x7ffffff3,0xff305c80, 0x6c05ffff,0x00ffffff,0x3fffffee,0x7fffd401,0xfff701ff,0x400005ff, 0x4ffffff8,0xc80be600,0x0006ffff,0x9ffffff1,0x3fffee00,0xff1001ff, 0x8009ffff,0xffffa84d,0x7ffdc00f,0xfffb82ff,0xfff301ff,0x64003fff, 0xfa81ffff,0x3ffe64ff,0x20384fff,0x00fffffa,0xc8000071,0x3b6ea200, 0x54c01cef,0x20aaaaaa,0x2aaaaaa9,0x37b6ea00,0x3fff200b,0x3ffe603f, 0x00003fff,0xffffe800,0xf100006f,0x009fffff,0xb8001bfb,0x7fffcc04, 0x82cc03ff,0x2ffffff9,0x3ffffee0,0x3ffee02f,0xff801fff,0xf706ffff, 0x0005ffff,0x7ffffc40,0x5d03504f,0x3fffff40,0xffff8800,0xff7004ff, 0x2003ffff,0x4ffffff8,0x3ee25c00,0xaabfffff,0x7fffdc1a,0xffffb82f, 0xffff301f,0xfff800ff,0x035101ff,0xdfffffff,0xffff7003,0x235557ff, 0x64000038,0xdbdff500,0x540bffff,0x1ffffffe,0x3fffffaa,0x7fec400f, 0x301fffbd,0x4c01ffff,0x03ffffff,0x7d400000,0x01ffffff,0xffff8800, 0x3fa204ff,0x80330004,0x3ffffff9,0xfff30380,0x7e405fff,0x202fffff, 0x1ffffffb,0xfffffc80,0xffffb82f,0x2200002f,0x04ffffff,0x7405905b, 0x0007ffff,0x9ffffff1,0x3fffee00,0xff1001ff,0x6409ffff,0xfff924c1, 0xffffffff,0xfffffb8b,0xfffffb82,0xfffff301,0x7ffc400d,0xfc8002ff, 0x2fffffff,0x3fffff20,0x15ffffff,0x0c800007,0x320ffec4,0x7404ffff, 0xf81fffff,0x200fffff,0x3e62fff9,0xffff03ff,0xfffff980,0x0000003f, 0x7ffffff4,0xf880005f,0x304fffff,0x000005ff,0xffffff98,0x3fe60003, 0x3a02ffff,0x01ffffff,0x3fffffee,0xffffa801,0xfffb85ff,0x3bb262ff, 0x3fe2000b,0x5d04ffff,0xeaa98110,0x2aafffff,0x3fffe200,0xff7004ff, 0x2003ffff,0x4ffffff8,0xcc8807a0,0xccfffffe,0x7ffdc2cc,0xfffb82ff, 0xfff301ff,0x7cc00bff,0x8003ffff,0xfffffff8,0xecc884ff,0xcccfffff, 0x0000712c,0x37fec0c8,0x02fffff8,0x07fffff6,0x03fffff6,0x6c37ffc4, 0xffd80fff,0x7fffcc04,0x000003ff,0x3ffafe60,0x0000ffff,0x7fffffc4, 0x001efb84,0xfff98000,0x20003fff,0x2ffffff9,0x3fffffe0,0x7fffdc05, 0xfff001ff,0xfb81ffff,0xff92ffff,0x2005ffff,0x4ffffff8,0xf9002f88, 0xffffffff,0x7fc400bf,0x7004ffff,0x03ffffff,0x3ffffe20,0x003f104f, 0x03fffff2,0x5fffff70,0x3fffff70,0x3ffffe60,0x3ffea003,0xd10005ff, 0xffffffff,0x7fffec09,0x0007100f,0x3fe60c80,0xffff83ff,0x3fff205f, 0xfffd81ff,0xfff900ff,0x09fff707,0xf9805ff7,0x003fffff,0x5df60000, 0x04ffffff,0x7fffc400,0x077e44ff,0xf9800000,0x003fffff,0x3ffffe60, 0xffffb02f,0xffb801df,0xf001ffff,0x87ffffff,0xdbfffffb,0xffffffff, 0xffff8800,0x02fc84ff,0xffff9950,0x400799ff,0x4ffffff8,0xfffff700, 0x3fe2003f,0xf704ffff,0x3fff2003,0x7fdc00ff,0xffb82fff,0xff301fff, 0x4c007fff,0x006fffff,0x3ffff620,0xfb00ffff,0x2201ffff,0x06400003, 0xd0dffff9,0x640dffff,0xc81fffff,0x980fffff,0xfa82ffff,0x7fcc0fff, 0x7fffcc00,0x000003ff,0x3fe29f10,0x0007ffff,0x7fffffc4,0x05fffd14, 0x3e600000,0x003fffff,0x3ffffe60,0x7fff442f,0xfb800dff,0x001fffff, 0x9ffffffd,0xffffffb8,0xfffff31e,0xffff100b,0x2ffa89ff,0xffffe800, 0xfff10007,0x2e009fff,0x01ffffff,0xffffff10,0x003ff509,0x03fffff2, 0x5fffff70,0x3fffff70,0x3ffffe60,0x3ffe2003,0xb80007ff,0x3fffffff, 0x1fffffb0,0x00000e20,0x7fffd419,0x6ffffe86,0x3fffff20,0xfffffc81, 0x1ffffd80,0x82ffffa8,0xfff9806f,0x00003fff,0x7e41f900,0x003fffff, 0x3ffffe20,0xffffe9cf,0x8000000f,0x3ffffff9,0x3ffe6000,0xfdcccfff, 0x001befff,0x3fffffee,0xffffb001,0xfffb89ff,0x7fe40fff,0xff8807ff, 0xc98cffff,0xe8002fff,0x0007ffff,0xbffffff1,0x55555555,0xffffffb5, 0x3ffe2003,0xf9514fff,0x3f2003ff,0x5c00ffff,0xb82fffff,0x301fffff, 0x007fffff,0x3ffffff8,0x7f4c0c00,0xfb05ffff,0x2201ffff,0x06400003, 0x3a0bfff2,0x3206ffff,0xc81fffff,0xe80fffff,0xf980ffff,0x04c83fff, 0xffffff98,0x88000003,0x7fffcc4f,0x220006ff,0xfeffffff,0x0effffff, 0x7cc00000,0x003fffff,0x3ffffe60,0xffffffff,0x2e000adf,0x01ffffff, 0xffffffb0,0xfffffb8b,0xfffffc82,0x7fffc400,0xffffffff,0xffe8002f, 0xf10007ff,0xffffffff,0xffffffff,0x03ffffff,0x3ffffe20,0xffffffff, 0xfff9001f,0xffb801ff,0xffb82fff,0xff301fff,0xd8007fff,0x006fffff, 0x7fec407c,0x3b3226ff,0xcccfffff,0x0000712c,0xd50300c8,0x40dfffff, 0x81fffffc,0x80fffffc,0xeeefffff,0x4ffffeee,0x3ffe6000,0x00003fff, 0xfd81fb80,0x002fffff,0xffffff10,0xffffffdf,0x800000bf,0x3ffffff9, 0x3ffe6000,0xca99bfff,0x1dffffff,0xfffffb80,0xfff9001f,0xffb8bfff, 0xffb82fff,0x7c401fff,0xecefffff,0x8002ffff,0x007ffffe,0xffffff10, 0x5555555b,0xfffffb55,0x3fe2003f,0xffceffff,0x9001ffff,0x801fffff, 0x82fffffb,0x01fffffb,0x07fffff3,0xfffff980,0x3f92a04f,0x993fffe0, 0xffffffff,0x0715ffff,0x800c8000,0xfffecfea,0x3fff206f,0xfffc81ff, 0x7ffc40ff,0xcccccdff,0x0003cccc,0x3fffffe6,0xe8000003,0xfffff505, 0x3e2000bf,0xf95fffff,0x07ffffff,0x7fcc0000,0x0003ffff,0x3fffffe6, 0xffffe882,0x7fdc03ff,0xb001ffff,0x89ffffff,0x82fffffb,0x01fffffb, 0x7fffffc4,0x00bffa24,0x1fffffa0,0x7fffc400,0xff7004ff,0x2003ffff, 0x4ffffff8,0x007ffb26,0x07ffffe4,0x3ffffee0,0xfffffc82,0xfffff501, 0xfffb0007,0xfb839fff,0x7e407fe1,0xfffb02ff,0x00e201ff,0x54019000, 0xfffd3ffe,0x7ffe40df,0xfffc81ff,0x7ffd40ff,0x4c0002ff,0x7fffcc00, 0x000003ff,0xffd017d4,0x0003ffff,0x9ffffff1,0x7ffffff4,0x3000002f, 0x07ffffff,0x7fffcc00,0xffd102ff,0x5c05ffff,0x01ffffff,0xffffffd0, 0xfffffb87,0xfffffb82,0x7fffc401,0x17fc44ff,0x7ffff400,0xfff10007, 0x2e009fff,0x01ffffff,0xffffff10,0x003ff109,0x03fffff2,0x7fffff90, 0x5fffff90,0x3ffffee0,0xfff88004,0xfeffffff,0x40fff43f,0xfb00effd, 0x2201ffff,0x06400003,0xd17ffec4,0x640dffff,0xc81fffff,0x4c0fffff, 0x003fffff,0xf3003ea0,0x007fffff,0x406e8000,0x4ffffffb,0xffff8800, 0x3ffe24ff,0x000fffff,0xffff9800,0x260003ff,0x02ffffff,0x3fffffe6, 0xffff700f,0x3fe003ff,0x5c1fffff,0xb82fffff,0x401fffff,0x4ffffff8, 0xe8002fa8,0x0007ffff,0x9ffffff1,0x3fffee00,0xff1001ff,0x2a09ffff, 0xfff9001f,0x7f4c01ff,0x260effff,0x0dffffff,0x7ffffec4,0xfe88000e, 0xffffffff,0xadfffe83,0x200fffb8,0x00fffffd,0xc8000071,0x17fff4c0, 0x81bffffa,0x81fffffc,0x40fffffc,0x05fffff8,0x803df100,0x3ffffff9, 0x98091000,0xccccccef,0xffffffdc,0x7fc4000f,0x7cc4ffff,0x0effffff, 0x7fcc0000,0x0003ffff,0x3fffffe6,0x7ffffc02,0xfff703ff,0x3e003fff, 0x40ffffff,0x82fffffb,0x01fffffb,0x7fffffc4,0x8002f884,0x007ffffe, 0xffffff10,0x3ffee009,0xf1001fff,0x409fffff,0xfff9001f,0x3fee01ff, 0x9fffffff,0xfffffffa,0xffff51ff,0x00dfffff,0x3fffff60,0xd9db01ce, 0x03dfffff,0x0fffffd8,0x80000710,0x3fffa20c,0x6ffffe87,0x3fffff20, 0xfffffc81,0xffffff80,0xfffd8000,0x3fffe602,0x970003ff,0xfffffd80, 0xffffffff,0x4003ffff,0x4ffffff8,0xffffffb8,0x4c00005f,0x03ffffff, 0x3fffe600,0x7fec02ff,0xf704ffff,0x003fffff,0xdffffff1,0x5fffff70, 0x3fffff70,0xfffff880,0x5c05d04f,0x7ffffe82,0xffff1000,0x3ee009ff, 0x001fffff,0x9ffffff1,0xfc800ec0,0x0000ffff,0x00000000,0x003ba600, 0x0afc882e,0xfffffb00,0x0000e201,0x7ffe4190,0xffffe85f,0x3fffee06, 0xffffc81f,0xffffe80f,0x711c404f,0x7cc0bfff,0x003fffff,0x1fc409d0, 0xfffff880,0x7fc4007f,0xf904ffff,0x07ffffff,0x7ffcc000,0x20003fff, 0x2ffffff9,0x7ffffdc0,0xffff705f,0xff7003ff,0xf705ffff,0xf705ffff, 0x8803ffff,0x04ffffff,0x740fc059,0x0007ffff,0x9ffffff1,0x3fffee00, 0xff1001ff,0x6409ffff,0xffff9001,0x3ae0001f,0xd80000bd,0x40000ace, 0x88000df9,0x3f2001ef,0x7100ffff,0x20c80000,0x447ffffe,0x207fffff, 0x41fffffb,0x0fffffe8,0xffffffa8,0xf905d100,0x7ffcc0ff,0x98003fff, 0x003f203f,0xffffffd8,0x3ffe2002,0x3fa04fff,0x01ffffff,0xffff3000, 0x4c0007ff,0x02ffffff,0x7fffffec,0xfffff703,0xfffd003f,0x3fee0bff, 0xffb82fff,0x7c401fff,0x004fffff,0xfffd07a8,0x3e2000ff,0x004fffff, 0x3ffffff7,0x3fffe200,0x800204ff,0x00fffffc,0x1ffff900,0xffff8000, 0x3fa20004,0x7ec001ff,0xff9003ff,0x0e203fff,0x7c190000,0xcadfffff, 0x07ffffff,0x0fffffe6,0x1ffffffd,0x3fffffa0,0xe82ec41f,0x3fe604ff, 0x8003ffff,0x09f102fd,0xfffff980,0x3fe2006f,0x2204ffff,0xffffffff, 0xff980000,0x0003ffff,0x3fffffe6,0x7ffffc02,0xfff702ff,0xfa803fff, 0x700fffff,0x705fffff,0x803fffff,0x4ffffff8,0xfd07e800,0x2000ffff, 0x4ffffff8,0xfffff700,0x3fe2003f,0x0004ffff,0x3fffff70,0xfc9801dc, 0x540003ff,0x0000fffe,0x009fff91,0x006fffb8,0x45fffff7,0x0000713b, 0x3fff20c8,0xfdcfffff,0x81ecffff,0xaafffffe,0xfffffefe,0xfffff501, 0x1ffd9dff,0x00effc98,0x3fffffe6,0x0ffdc003,0xe8002fc8,0x02ffffff, 0xffffff10,0xffffa80b,0x0000efff,0x7fffffcc,0x3fe60003,0x2602ffff, 0x06ffffff,0x3fffffee,0x7ffff401,0x3ffee03f,0xfffb82ff,0x7fcc01ff, 0x4004ffff,0xfffd05fd,0x3e2000ff,0x004fffff,0x3ffffff7,0x3fffe200, 0x100005ff,0x73bfffff,0xbffd000b,0xfff30000,0xffd80005,0x7ffb8005, 0xfffff300,0x01c4b73d,0xf9832000,0x31efffff,0x05ffffff,0x3fffffe6, 0xffffc9ef,0xfff300cf,0x3fffffff,0x803deff8,0x4ffffff9,0x03ffee00, 0x20003fe2,0x6ffffffb,0xfffff100,0xfff900bf,0x000dffff,0xffffff98, 0x3fe60003,0xf302ffff,0x01ffffff,0x7fffffdc,0x3ffff202,0x7ffdc02f, 0xfffb82ff,0x7fcc02ff,0x1004ffff,0x3fa09ffb,0x30007fff,0x09ffffff, 0x3ffffee0,0xfff1002f,0x0000bfff,0x7fffffd4,0x7fc4000f,0xfb80003f, 0x7c0000ff,0xfd8003ff,0x3fee005f,0x220fffff,0x06400003,0x02fbff6a, 0x805dffd7,0x0dffffea,0xfffffff9,0x3fffa603,0x0000cfff,0xffffff50, 0xffc9801d,0x03ffd07f,0xfffff100,0xff3007ff,0x100dffff,0xffffffff, 0x3ea0001b,0x004fffff,0x3ffffea0,0xffff985f,0x7e401eff,0x883fffff, 0x00effffd,0x3fffffc8,0x2fffffc8,0x7ffffd40,0x3ee200ef,0xfff03fff, 0x2a000fff,0x05ffffff,0xffffff90,0x3ffe6007,0x00006fff,0x0e77fed4, 0xbffd5100,0xffb98000,0x3260003f,0x26000dff,0x4001effb,0x41ceffda, 0xcccccce8,0xcccccccc,0x00eccccc,0x00110011,0x0000ab98,0x00abb980, 0x3ffe6000,0xccefffff,0xffffdccc,0x7ff547ff,0x7dc000df,0x2fffffff, 0x3ffffa20,0x7cc03fff,0xffffffff,0x3e6000ae,0x2fffffff,0xfffe9800, 0xfdceffff,0x02efffff,0xffffffa8,0xffedcdff,0xd3002dff,0x41dfffff, 0xdffffff9,0xffffd100,0x999bdfff,0xffffffdb,0xfffff505,0x7440017f, 0x3fffffff,0x7ffffd40,0x74401fff,0x3fffffff,0x00100000,0x05bdff30, 0xceefc800,0xdff10001,0xeef8007b,0x040000bd,0x00000000,0x00000000, 0x00000000,0xfffffe88,0xffffffff,0xffffffff,0x3fff26ff,0x203effff, 0xffffffea,0x20ffffff,0xffffffee,0x20efffff,0xfffffff8,0x2fffffff, 0x3ffffa20,0xffffffff,0x3ffa202e,0xffffffff,0xbcdeffff,0x7fff5402, 0xffffffff,0x002cefff,0x7fffffdc,0xfffa9fff,0x11ffffff,0xfffffffd, 0xffffffff,0xffffffff,0x7ffffdc3,0x205fffff,0xffffffe8,0x3effffff, 0xffffffd5,0x3dffffff,0x7fffff74,0x3effffff,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0xfff80000,0xffffffff,0x7ffec1ff,0xffffffff, 0x154c003f,0xaa880000,0x00000001,0x00000662,0x04000000,0x00000000, 0x00000000,0x55554c00,0x4c1aaaaa,0x532aaaaa,0x55555555,0x55555554, 0x2aaa62aa,0xedc880aa,0x400b51bd,0x302cdeca,0x4c079dd7,0x0aaaaaaa, 0x2aaaaaa6,0xdb751002,0x200039df,0x00adedba,0x9bfd9700,0xefdb8815, 0xdb98002c,0x2000bdee,0x00bdedba,0x55555554,0xaaaaaaaa,0x022004c2, 0x7c00cc00,0xffffffff,0x7ec1ffff,0xffffffff,0x6c003fff,0x3000007f, 0x000007ff,0x01ffec00,0x0f660000,0x7bddb730,0xaa9a7441,0x260aaaaa, 0x22aaaaaa,0x074c0dda,0x224c8010,0x2000002e,0xfffffffa,0x7fecc2df, 0xffff53ff,0x7e47dfff,0x2dffffff,0x037fff66,0xffdbfff5,0xfd980bff, 0x0effdcef,0x3ffb7ff2,0xfffea80e,0x3faa1fff,0x400fffff,0xffedeffa, 0x3a2005ff,0xeffdcfff,0xbfff7003,0x2a3fffff,0xdfffceff,0xdffd8800, 0x402ffffd,0xffbdffd8,0xffff101f,0xfffdddff,0x0ee8dfff,0x9800bee0, 0x3e02fffd,0xffffffff,0x7ec1ffff,0xffffffff,0x6c003fff,0x3000007f, 0x200007ff,0x03defdba,0x003ffff3,0xffeb8800,0x9fffb103,0xdd17fffb, 0x7fffff54,0x3fffaa1f,0xfff98fff,0x443bfe67,0x0cefffeb,0x7fc4fff2, 0x000001cf,0x0ffffffd,0x7c40ffc8,0xa83fffff,0x00ffffff,0xfff107fb, 0x02ffe4c5,0xfb8ffff5,0x23ffdaff,0xfd01fffc,0xff03ffff,0x2201ffff, 0x7fe41ffd,0xff9804ff,0x3fff20df,0x07ffa204,0xffbffff7,0x07ffec4b, 0x6c7ffd10,0xf302ffff,0x7ffcc5ff,0x09dff883,0x7fffffcc,0x88077d42, 0xfff001ff,0x2aa03fff,0xaaaaaaaa,0x55540aaa,0xaaaaaaaa,0x7ec001aa, 0xf3000007,0xe880007f,0xfffdcfff,0x0ffffc43,0xffc98000,0xfe882fff, 0x3ffea0ff,0xfffe80ef,0xffff81ff,0xffffa8ff,0xf7dffd11,0xffffffff, 0x221dff99,0x02efffff,0x7ffd4000,0x1fdc07ff,0x5fffffa8,0x5fffffd0, 0x7fec1b60,0x260df907,0xfe83ffff,0xff86ffff,0xffffb06f,0xffffb03f, 0x1bff601f,0x017ffffc,0x883ffff3,0xfd03ffff,0x3fff20bf,0x7fcc0fff, 0xdffd105f,0x87ffffa8,0xfd86fff8,0x02fc40ff,0x0bfffffd,0xffb817fa, 0x7fffd401,0x000005ff,0x6c000000,0x3000007f,0x540007ff,0x3f20efff, 0x7ffcc4ff,0x7f540000,0x880cffff,0xfd83ffff,0xfffb05ff,0xfffb03ff, 0xfffd11ff,0x7ffff443,0xfffdcdff,0x5c40efff,0x0cfffffe,0xfffd0000, 0x07ec05ff,0x1fffffd0,0x9fffff70,0x7ffc0fe0,0x3a0dd02f,0xff707fff, 0xffb09fff,0xffff905f,0xffffb03f,0xffff301f,0xbfffff07,0x83fffec0, 0x541ffffd,0xfb82ffff,0xfd05ffff,0xfff903ff,0xfffff887,0x41fffe40, 0x7c44fffb,0xfffff701,0x17fea01f,0x7007ffc4,0x0fffffff,0x00000000, 0x007fd800,0x07ff3000,0x3fffe600,0x6ffffc43,0x0005fd11,0x3fffff22, 0x7ffe402e,0xffffb81f,0xfffffc81,0xfffffd81,0xd10dff10,0x3ea05fff, 0x6cc00fff,0x02dfffff,0x7fffd400,0x809f105f,0x83fffffb,0x87fffffd, 0xfff980f9,0xb86a82ff,0xf506ffff,0xfb07ffff,0xfff90dff,0xfff903ff, 0xfff901ff,0xffffd0df,0x3fffe60d,0x9ffff706,0x86ffffc8,0x04fffffa, 0xf88bfffb,0xffd82fff,0x3ffe60ff,0xffffa82f,0x7fc41a20,0x7404ffff, 0xdff704ff,0x3fffe201,0x5d400fff,0x5000aded,0x05555555,0x007fd800, 0x07ff3000,0x3ffffa00,0xfffffd80,0xa8002dff,0x1cfffffd,0xfffff880, 0x6ffffb80,0x1fffffc8,0xafffffc8,0xf980dfca,0x7f4400ef,0xff71002f, 0x0017ffff,0x3fffffa0,0x4400fa80,0x446fffff,0x2fffffef,0xfff982e4, 0xc8384fff,0xf305ffff,0xf905ffff,0xfff90fff,0xfff903ff,0xfff501ff, 0xffffd0df,0x3ffffa0d,0xdffff705,0x86ffff98,0x03fffffa,0xfc8ffffb, 0xffa81fff,0x7fffec4f,0x2ffffa81,0xffffd804,0xfffa806f,0x01dfff03, 0x3ffbffaa,0x9fffd100,0xc807dffb,0x07ffffff,0x003fec00,0x03ff9800, 0x6ffffa80,0x09ffff70,0x3ffae200,0x2000bfff,0x987ffffc,0x41ffffff, 0x81fffffc,0xacfffffc,0x07ff6009,0x0037fc40,0x7ffffed4,0x7fdc002d, 0x05e84fff,0x1fffffb0,0x7fffcf5c,0xff01fc5f,0x03dfffff,0x04ffffe8, 0x03fffff3,0xc81ffff9,0xc81fffff,0x900fffff,0xffd05fff,0x3ffe0dff, 0xfff505ff,0xeffd81ff,0xfffffa81,0x1ffff901,0x80fffffc,0xfffe81a8, 0xffff980f,0xffff9803,0xffd002ff,0xdfff707f,0x20ff5180,0x320dfff9, 0x7c404fff,0x0007ffff,0x00003fec,0x8003ff98,0x705ffffe,0x800dffff, 0xdfffffc9,0xfffb0002,0xffef88ff,0x7fe43fff,0xffc81fff,0xf8800fff, 0x7fdc004f,0xff910002,0x0017dfff,0x8ffffff1,0xff5001f9,0xea747fff, 0xf50fffff,0x7fffe401,0xf102ffff,0x2609ffff,0xccdfffff,0x1ffffecc, 0x0fffffe4,0x07ffffe4,0x3ffaa060,0xff886fff,0xff504fff,0x03103fff, 0xffffff91,0xffdddddd,0x3fe23fff,0xf8002fff,0xeeeeffff,0x04ffffee, 0x5fffffe8,0x3fffea00,0x05ffff82,0xff985fc8,0x7ffc41ff,0x7fff403f, 0x7ec0007f,0xf3000007,0xfff0007f,0x3fea0bff,0xea800fff,0x00cfffff, 0x7ffffc00,0x7ffcf747,0x7ffe44ff,0xfffc81ff,0xffa800ff,0x1ffcc002, 0x7ff54000,0x6401dfff,0x322fffff,0x7fffc006,0x3ee3f36f,0x0bb3ffff, 0xffffff88,0xffa84fff,0xff304fff,0xdddddfff,0xc85ddddd,0xc81fffff, 0x000fffff,0x3ffb3faa,0xfffa86ff,0xfff504ff,0xf91007ff,0xbfffff7d, 0x99999999,0x3ffe6399,0x7c4003ff,0xcccdffff,0x03cccccc,0x7fffffdc, 0x7fff4000,0x7fffdc1f,0x6c0ffc04,0xffb07fff,0x7ff403ff,0x555307ff, 0xfd555555,0x5555555f,0x2aaa2555,0xfbaaaaaa,0xaaaaaadf,0xfff11aaa, 0x3fea09ff,0x3e201fff,0x003effff,0xfffff100,0x7fcc76cf,0x7fe45fff, 0xffc81fff,0xfb800fff,0x4ff8000f,0x3f260000,0x2603ffff,0x3e6fffff, 0x7ffe4002,0x3e26b9ff,0x2f8effff,0xffffe880,0x7dc4ffff,0xf303ffff, 0x0005ffff,0x07fffff2,0x03fffff2,0x74fffaa0,0xfa86ffff,0xf504ffff, 0x4409ffff,0xff98dffc,0xa8002fff,0x005fffff,0x17ffffd4,0x7ffc4000, 0xb8004fff,0x7c45ffff,0xf301ffff,0xdffff30b,0x13fffee0,0x07ffffe8, 0xfffffff9,0xffffffff,0x2fffffff,0xfffffff8,0xffffffff,0x3fffffff, 0x09fffff5,0x0fffffea,0xdfffff88,0xff300001,0x47f2ffff,0x45fffff9, 0x81fffffc,0x00fffffc,0x8000ffb8,0x200004ff,0x3fffffc9,0x7ffffec0, 0xf98007a9,0x43edffff,0x7cfffffd,0x3fff6200,0x2a0fffff,0x303fffff, 0x009fffff,0x3fffff20,0xfffffc81,0x3fff6200,0x1bffffa2,0x13ffffe6, 0x1fffffdc,0x223fffa8,0x004fffff,0x6fffff98,0x7fffcc00,0xfd80003f, 0x0006ffff,0xb81dfffd,0xd102ffff,0xffffd01d,0x3fffee0b,0x3ffffa06, 0xfffff907,0xffffffff,0xffffffff,0x3ffffe2f,0xffffffff,0xffffffff, 0xfffff53f,0x3fffea09,0x7fe4c04f,0x000befff,0x3ffffe20,0x3fe61faf, 0x7fe44fff,0xffc81fff,0xfa800fff,0x7fcc002f,0xfea80003,0x801cffff, 0xedfffffa,0xfffd0004,0xffa81fff,0x8004ffff,0xfffffffb,0x3ffffe63, 0xfffff304,0x3ff2000b,0xffc81fff,0xfd300fff,0xfffe85ff,0xffff886f, 0xffff704f,0x7fffb05f,0x6fffff88,0xffff8800,0x7fc4007f,0x40005fff, 0x2ffffff9,0xefffb800,0x1ffffc40,0x3fe05e98,0xff505fff,0x3fa01fff, 0x55307fff,0xd5555555,0x555555ff,0x2aa25555,0xbaaaaaaa,0xaaaaadff, 0xff31aaaa,0x3ee09fff,0x2003ffff,0xcfffffea,0xffff0001,0xff985fff, 0x7fe42fff,0xffc81fff,0xf9800fff,0x7fdc004f,0xff910002,0x0017dfff, 0xffffffe8,0xfff70000,0x3ffe0bff,0x81802fff,0x5fffffe9,0x13ffffe2, 0x7fffffcc,0xfffc8000,0xfffc81ff,0xffe880ff,0xffffe87f,0xbfffff06, 0x3ffffee0,0x07fffec1,0x07fffffc,0x7ffffc00,0x7ffc003f,0x20000fff, 0x05fffffe,0x1ffff80a,0x904fffc8,0x7ffc405d,0xfff504ff,0x3ffa03ff, 0x6c0007ff,0x3000007f,0xf88007ff,0xf704ffff,0x0005ffff,0xdfffff93, 0xfffe8005,0xfff984ff,0x7ffe40ff,0xfffc81ff,0xffd000ff,0x1bfe2003, 0x3fff6a00,0x20001dff,0x05fffffb,0x3fffe200,0xffff902f,0x2203e00f, 0x746ffffd,0xf504ffff,0x807fffff,0x7fffdc0a,0xffffc81f,0xffffc80f, 0x6ffffe85,0x0bffffb0,0x51fffff2,0x320bffff,0x804fffff,0x3ffff60a, 0x7ff4006f,0x1c404fff,0x7fffffdc,0x3ee0b100,0xfff881ff,0x3ea00604, 0xf504ffff,0x3a07ffff,0x0007ffff,0x00003fec,0x8003ff98,0x705fffff, 0x003fffff,0x7fff5c40,0xfb800cff,0xff507fff,0xfff70fff,0xfff903ff, 0x3e6001ff,0xffd800ef,0xffd71003,0x00017fff,0x3fffff10,0xfffe8000, 0x3fffe607,0x7c07f004,0x7fd44fff,0xfff705ff,0x2601ffff,0x7fffdc0e, 0x7fff441f,0xfffe80ff,0x7fffc47f,0xffff307f,0x3ffff20d,0x37ffff43, 0xffffffa8,0xff31aa01,0x5409ffff,0x3ffffea4,0x885d100f,0x03ffffff, 0x0fffc172,0x0005ffc8,0x4fffffa8,0x9fffff50,0x1fffffa0,0x00ffb000, 0x0ffe6000,0x3ffff600,0xfffff905,0x7ecc0000,0x402dffff,0xb80fffff, 0xfb85ffff,0x7442ffff,0x000fffff,0x4c0bfffa,0x4c00fffe,0x2dfffffc, 0xffc80000,0xfb80006f,0x7ff404ff,0x03ff001f,0x3a0bfff2,0xffb07fff, 0x81dfffff,0xfff982f9,0x7fff43ff,0xfff80fff,0xffcadfff,0x3207ffff, 0xfe80ffff,0xffff87ff,0x7fecc2ff,0xa82fffff,0xffffd81f,0x0fdc1cff, 0x3ffffffa,0x7ec2ec41,0x2a06ffff,0x02ffb84f,0x0000bff1,0x13ffffe6, 0x1fffffdc,0x07ffffe8,0x003fec00,0x03ff9800,0x6ffff980,0x07ffff90, 0xfd710000,0x7017ffff,0xf903ffff,0xff301fff,0xffd87fff,0xb000ffff, 0x9bdfffff,0xdfffffdb,0xffffd501,0x0000039f,0x001fffcc,0x00fffc40, 0xe801bfee,0xeffd81ff,0x3fffe880,0x7fffffc4,0xfecdffff,0x3ffffa05, 0xffefeaaf,0xffc81fff,0xdcffffff,0x1ecfffff,0x21ffff44,0xe81ffff9, 0xceffffff,0xffffbefe,0xffdcefff,0xfffff104,0x7ffdffff,0xffffff50, 0x81ffd9df,0x2ffffff9,0xf83ffb88,0x03bf203f,0x7ffc4000,0xfff704ff, 0x3ffa05ff,0x6c0007ff,0x3000007f,0x320007ff,0xffb07fff,0x000000ff, 0x5fffffb5,0x44ffffd8,0x103ffff8,0x75fffffd,0xfffffdfd,0x9dffb003, 0xffffffff,0x21dffb9f,0x2efffff8,0x36000000,0xb00000ff,0x9ff100ff, 0x6ffff400,0x00fffb8a,0x447fffa2,0xffe9dffd,0x05ffffff,0x7fffffcc, 0xffffc9ef,0x7ffcc0cf,0xff31efff,0x2205ffff,0xfd12effd,0x3fea03df, 0x2fffffff,0x3fffffe6,0x4404ffff,0xfffffffe,0x3fe603ff,0xffffffff, 0xfffffe81,0xffdcaaaf,0x01fdc3ff,0x00001df3,0x05fffff8,0x03fffff7, 0x01fffffa,0x000ffb00,0x00ffe600,0x17fff440,0x007fffe6,0xfb880000, 0x327f23ff,0xfd88cfff,0x7fcc03ff,0xc8efffff,0x00cfffff,0x6443bfe2, 0x20cefffe,0xfff11ffd,0x00000039,0x00009f50,0xfd8027d4,0x3b3b6001, 0x01efffff,0xfffffd90,0xffffc87f,0xfd5003ff,0x3f21bfff,0x41ffffff, 0x40beffda,0x802effeb,0xfffffffc,0x7ffe400d,0xd980ceff,0x2effffff, 0x3ffff600,0xe9801cef,0x0cffffff,0xffffffb8,0xffffffff,0x201ec2ff, 0x800000db,0x905ffffd,0x740fffff,0x9507ffff,0x99999999,0x99999ffd, 0x80099999,0x20003ff9,0xb11effd8,0x00003dff,0xa9ed4000,0x3fffa62f, 0x5001ceff,0x21bffffd,0xfffffffc,0x08036601,0x17d10ec0,0x80000000, 0x6400000c,0x80093000,0x02aea20b,0x4ddd4400,0x15775100,0x01573000, 0x20022000,0xca880008,0xab98000a,0x2aee6000,0x2ee60001,0x2ee60000, 0x0000000a,0x00000000,0x837fffcc,0x203ffffc,0xb07ffffe,0xffffffff, 0xffffffff,0x00ffffff,0x0003ff98,0xffffffb8,0x000000df,0x51018000, 0x4c000157,0x000000ab,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x0ffffc80,0x407fffe8,0x907ffffe,0xffffffff,0xffffffff,0x00ffffff, 0x0003ff98,0x002b2a20,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x22000000,0x7cc3fffe,0x7f401fff,0x9880ffff, 0x99999999,0x99999999,0x80019999,0x00000099,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x12effd88, 0xa803dffd,0x04ffffff,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x80000000,0xfffffffc, 0x3ffe200d,0x1fffffff,0x2aaaaaa6,0x2fb6e60a,0x00c40000,0xaaaa884c, 0x36e60aaa,0xca880ace,0x2a200bde,0x40aaaaaa,0x5540ceb9,0x982aaaaa, 0xaaaaaaaa,0x5555511a,0x55501555,0x35555555,0x06aaaaaa,0x00000000, 0x164c0000,0x802b8800,0x50002ca8,0x2e200039,0x0b2600bc,0x71005930, 0x5d400159,0xa8800abc,0xcc880acc,0xcccccccc,0xcccccccc,0xdd12cccc, 0xdddddddd,0xdddddddd,0x0005dddd,0x00544000,0x000b332a,0x88062064, 0x77777740,0x806eeeee,0x0000aca8,0x7fff4c00,0xfff92fff,0x20007fff, 0x87ec05f9,0xffffffd9,0xffffff73,0x7fff4c1d,0xf9102fff,0x647fffff, 0x7e45ffff,0x987fffff,0xfffffffe,0xffff911e,0xff9019df,0x39ffffff, 0x0bbffff2,0x003bf200,0xb5000950,0x0bffe200,0x04ffda80,0x3fffffa2, 0x1bfe2003,0xffffd300,0xffff907f,0x1ffff901,0xfffffd50,0x56f5403d, 0x2a01fffb,0x43ffaaff,0xfffffff8,0xffffffff,0x3fffffff,0xfffffff1, 0xffffffff,0x7fffffff,0x0fffffe4,0x5fffff88,0x427ffec4,0xffffffd8, 0x41f3002d,0x7ec0effb,0x3ffffe5f,0x07ffffff,0x00000000,0x2ffffff6, 0xfffffffd,0x7fc4000f,0x3213f201,0xfcbfffff,0x5fffffee,0xffffdff3, 0x7fe401ff,0xfff93fff,0xff881fff,0x3f207fff,0xf304ffff,0xfd1007ff, 0xf90fffff,0x3e60001d,0x3ea004ff,0x3fea004f,0x5fffb805,0x7fffe440, 0x3fbf604f,0xb000ffff,0x74007fff,0x0fffffff,0x21fffffc,0x43fffff8, 0xfffffffa,0x1ff881ff,0x7dc1ffee,0x893fea3f,0xffffffff,0xffffffff, 0x13ffffff,0xffffffff,0xffffffff,0x87ffffff,0x503ffffd,0xb81dffff, 0x740fffff,0xffffffff,0x9f600bef,0x2a4ffff8,0xfff2ffff,0xffffffff, 0x0000000f,0x7fffdc00,0xfff31eff,0x74400bff,0x03fee05f,0x3fffffea, 0x3ffff21f,0xff30cfdf,0x7d40bfff,0xffabffff,0xfd07ffff,0x7dc0ffff, 0xf303ffff,0x7fcc005f,0x7ec2ffff,0x3fe60000,0x3fe6004f,0xfffa804f, 0x3fff9803,0x7fec5440,0x6c49904f,0xf9804fff,0xc800ffff,0xffffb8ad, 0x3ffffe64,0x7ffffd45,0x46fffea5,0x641fffc9,0x3ffee6ff,0x10fffc40, 0x00003fff,0x000ffe20,0x7fec0000,0xdfffb06f,0xffffff01,0x556ffd49, 0xfffffffc,0xa97f662d,0x3f26ffff,0xffff4fff,0xffffffff,0x00000000, 0x7ffffdc0,0x7fffec0f,0x3ffd1007,0x540ffee0,0x41ffffff,0x4ffffff8, 0x06ffffe8,0x33ffffe6,0x4fffc8cf,0x0fffffd0,0x17ffffd4,0xc8002fe8, 0x2a6fffff,0xfc80001f,0x7fcc000d,0x3ffea04f,0x07ffe003,0x04fffb80, 0x05fff303,0x9ffdffd0,0xffb81900,0x3fffe25f,0x7fffc44f,0x407ffe4f, 0x7fd45ffa,0x707ffea4,0xfff81fff,0xf1000004,0x0000007f,0x20fffec0, 0xd00efff8,0x6c9fffff,0xfffb500f,0xffffffff,0x1ffffc41,0x2a3ffff5, 0xaaaaaaaa,0x000002aa,0x3fee0000,0xffc82fff,0xfd800fff,0x1fff504f, 0x3ffffea0,0xdfffff03,0x1fffff60,0xffffff98,0xfd015c45,0x7d40ffff, 0xfd82ffff,0xfff10001,0x09d15fff,0x20000000,0xfa84fff9,0xcfd883ff, 0xdf71bee0,0x09fff703,0x4027fdc0,0xfff9dffa,0xfff98000,0x17ffffc2, 0x997ffffc,0x3fe405ff,0xfffc8844,0x07ffe42f,0x0001bffe,0x001ffc40, 0xfd100000,0x0effa87f,0x3ffffee0,0x2e2017e0,0xffffffff,0x40cfea82, 0x00003efb,0x00000000,0x2fffffb8,0x1fffffb8,0x407ffec0,0x2a03fffa, 0xf03fffff,0x320dffff,0x300fffff,0x03ffffff,0xfffffd00,0x7ffffd40, 0x0000fe42,0x3bffffee,0x0000006c,0x27ffcc00,0x2e07fff5,0x5f13ffff, 0x217fffa2,0x3004fffb,0xfd001fff,0x017ff61f,0xd03ffea0,0xfb01ffff, 0x3fee1fff,0x40ffd402,0xfffbcfc8,0x207ffec2,0x00007fff,0x0007ff10, 0xfe880000,0x2007fec6,0x223fffd8,0x764c001f,0x00000cef,0x00000000, 0xff700000,0xff705fff,0x7e403fff,0xfff984ff,0x3ffea00f,0xffff03ff, 0x3fff20df,0xfff300ff,0x3a000fff,0x2a07ffff,0x322fffff,0xfd00005f, 0x003fffff,0x30000000,0xfff59fff,0x7fffd407,0xfff33d3f,0xfff709ff, 0xfffe9809,0x3fee02ff,0x007ffe24,0xf707ff90,0x3fee0fff,0x201ff66f, 0x7fd43ff9,0xd85fff53,0x7ffc0fff,0xf1000006,0x3fffe27f,0xffffffff, 0xffffffff,0x7f4403ff,0x4003ff11,0x00000028,0x00000000,0x00000000, 0x3ffffee0,0xfffffb82,0x1ffff901,0x03ffff98,0x1fffffd4,0x06fffff8, 0x01fffff9,0x1bffffe6,0x7ffff400,0x3fffea07,0x05fff92f,0xffff5000, 0x553001ff,0x55555555,0x55555555,0x7cc05555,0x803fffff,0xfefffffc, 0x0cfffffe,0x804fffb8,0x07ffffc9,0xfb81fff1,0x3fe2006f,0x0bfff305, 0xfc93ffe6,0x17fd400f,0x7fd4dff5,0x07ffdc2f,0x00013ffe,0xf89ffc40, 0xffffffff,0xffffffff,0x803fffff,0x00026098,0x00000000,0x00000000, 0x00000000,0x05fffff7,0x03fffff7,0x887ffff7,0xa807ffff,0xf03fffff, 0x320dffff,0x300fffff,0x00bfffff,0x1fffffa0,0xafffffa8,0x00fffffd, 0xffffe800,0xfffc804f,0xffffffff,0xffffffff,0x7fcc07ff,0x20c003ff, 0x2e0045eb,0x26004fff,0xfd81ffff,0x05ffd03f,0xff017f60,0x17ffc05f, 0xfd807ff5,0xb9bff60f,0x7fc42fff,0x07ffe21f,0x77440000,0xdddddd12, 0xdddddddd,0xdddddddd,0x00000005,0x00000000,0x00000000,0x40000000, 0x82fffffb,0x41fffffb,0x42ffffe8,0x805ffffb,0x03fffffa,0x20dfffff, 0x00fffffc,0x07fffff3,0x3ffffa00,0x3fffea07,0xffffffef,0xff980004, 0x6400ffff,0xffffffff,0xffffffff,0x407fffff,0x004ffffa,0x013a3ee0, 0x004fffb8,0x2617ffdc,0x3fea06ff,0x084fb807,0xfb007fec,0x0fffc41f, 0x7f46ffb8,0xfffeeeff,0x51ffdc2c,0x000009ff,0x00000000,0x00000000, 0x00000000,0x00000000,0x2e000000,0xb82fffff,0x981fffff,0xfd86ffff, 0x7d401fff,0xff03ffff,0x3f20dfff,0xf300ffff,0x0007ffff,0x81fffffa, 0xaffffffa,0x02ffffff,0xffffd800,0x5554c04f,0xaaaaaaaa,0xaaaaaaaa, 0x3fea02aa,0x4004ffff,0x5df75fe9,0x09fff700,0x40fff880,0x7f402ffe, 0x213ea03f,0x2037dc4d,0xfffa86fb,0xfffd989c,0x8f7ffdc1,0xfa81fffe, 0x4c3feabf,0xbbbbbbbb,0xbbbbbbbb,0x002bbbbb,0x00000000,0x00000000, 0x00000000,0x00000000,0xffffb800,0xffffb82f,0xffff301f,0x0bfffb05, 0x3fffffa8,0x0dfffff0,0x03fffff2,0x1fffffcc,0xffffe800,0x3fffea07, 0xfffff52f,0xfd80001f,0x000fffff,0x2a000000,0xfff9bfff,0x7fff7004, 0x7013ffe6,0x0ee09fff,0x3fea2ff4,0x0fff9805,0xeeeeffa8,0x027cc2ff, 0x7fe413e6,0x2fffffff,0xaa883510,0x2b32a200,0xfffffa80,0xffffffff, 0xffffffff,0xffffff54,0xffffffff,0x9fffffff,0x00000000,0x00000000, 0x00000000,0x70000000,0x705fffff,0x403fffff,0xe886fffa,0x3ea01fff, 0xff03ffff,0x3f20dfff,0xf300ffff,0x0007ffff,0x81fffffa,0x22fffffa, 0x05fffffd,0x3ff7ea00,0x00005fff,0xfff50000,0x027ffcc7,0xff07fffc, 0x7fe403ff,0x2effb85f,0x3ffa1bea,0x89ffb001,0xfffffff9,0x802f80ff, 0x3ffea02f,0x0001efff,0xffa80000,0xffffffff,0xffffffff,0xfff54fff, 0xffffffff,0xffffffff,0x000009ff,0x00000000,0x00000000,0x00000000, 0xfffff700,0xfffff705,0x2fffa803,0x205ffe88,0x03fffffa,0x20dfffff, 0x00fffffc,0x07fffff3,0x3ffffa00,0x3fffea07,0x3fffe22f,0xf88003ff, 0xffffff8b,0x00980001,0x07fff500,0x4409fff3,0x7fe45fff,0x7fe5442f, 0x3e62cfff,0x83feffff,0x22004ffb,0xfff31fff,0x0dffffff,0x73100000, 0x00000379,0x88888000,0x88888888,0x88888888,0xbbbbb308,0xbbbbbbbb, 0xbbbbbbbb,0x00000007,0x00000000,0x00000000,0x00000000,0x05fffff7, 0x03fffff7,0x220dff70,0xff501fff,0x3fe07fff,0xff906fff,0x3e601fff, 0x0003ffff,0x40fffffd,0x42fffffa,0x0ffffffa,0xff92f400,0x8000dfff, 0x54001ffe,0x3e603fff,0x3bf204ff,0x9837f441,0x19999999,0x04d5dd44, 0x40009988,0x33310998,0x01333333,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0xfffffb80,0xfffffc82, 0x07ff9001,0x7d417fe6,0xff03ffff,0x3f60dfff,0xf501ffff,0x0007ffff, 0x81fffffa,0x82fffffa,0x06fffffd,0xff883f20,0x0002ffff,0x4009fff5, 0x9803fff9,0x00204fff,0x00000001,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0xffff9000, 0xffff907f,0x37e4005f,0xf703ff30,0xf109ffff,0x360dffff,0x701fffff, 0x009fffff,0x3fffffa0,0xfffff900,0xfffff107,0x09f7009f,0x1ffffffb, 0x7fff1000,0x01ffcc00,0x0009ff30,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x7fff4c00,0x3fe60eff,0x000dffff,0x5fa80ff6,0x7ffffec4,0x7fffdc1e, 0x7ffd43ff,0x6c40cfff,0x00efffff,0x7ffffd40,0xfffe984f,0xffd81eff, 0x9303ffff,0xfff70bff,0x0001bfff,0x730007b5,0x00093000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x7fffdc00,0xfa9fffff,0xffffffff,0x70176001, 0x3fffea1d,0xfd3fffff,0xffffffff,0x3ffffff6,0xfff51fff,0x0dffffff, 0xffffff10,0x3ee3ffff,0xffffffff,0x3fffffa3,0x3fa0ffff,0xe9beffff, 0xffffffff,0x0000003f,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000, }; static signed short stb__times_bold_47_latin_ext_x[560]={ 0,3,3,0,1,2,1,2,1,0,2,0,1,1, 1,0,1,2,1,0,1,1,1,1,1,1,3,3,0,0,0,2,1,0,0,1,0,0,0,1,0,0,0,0, 0,0,0,1,1,1,0,2,1,0,0,0,0,0,0,4,0,1,3,-1,0,1,0,1,1,1,1,1,1,0, -2,1,0,1,1,1,0,1,1,1,0,1,0,0,0,0,0,3,3,1,0,5,5,5,5,5,5,5,5,5, 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,0,3,2,0,0,0, 3,1,0,1,0,0,0,1,1,-1,1,0,0,0,4,1,0,1,3,1,1,0,1,1,0,2,0,0,0,0, 0,0,-1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,3,1,0,0,0,0,0,0,1,1,1, 1,1,1,1,1,1,1,1,1,1,-1,0,-1,-1,1,1,1,1,1,1,1,0,1,1,1,1,1,0,0,0, 0,1,0,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1, 1,1,1,1,1,1,0,1,0,1,0,-1,0,-1,0,-1,0,0,0,0,0,0,0,-2,0,1,1,0,0,0, 0,0,0,0,0,0,0,0,1,0,1,0,1,3,0,1,1,1,1,1,1,1,1,1,0,1,0,1,0,1, 2,1,2,1,2,1,2,1,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,1,1,0,0,0,0, 0,0,0,0,0,0,0,0,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,1,5,5,-1,5,5,5, 5,5,5,5,5,5,5,5,5,5,1,1,5,5,5,5,5,5,5,5,5,5,5,5,5,0,1,5,5,5, 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,0,1,0,-1,1, 1,0,1,0,1,0,1,0,1,0,1,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5, 5,5,5,5,5,5,5,5,5,5,0,1,-1,1,1,1,5,5,5,5,5,5,5,5,5,5,5,5,5,5, 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5, 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5, 5,5,5,5,5,5, }; static signed short stb__times_bold_47_latin_ext_y[560]={ 37,8,8,8,8,8,8,8,8,8,8,11,30,25, 30,8,8,8,8,8,8,8,8,8,8,8,17,17,12,18,12,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,43,7,17,8,17,8,17,8,17,8,8, 8,8,8,17,17,17,17,17,17,17,10,17,17,17,17,17,17,8,8,8,22,10,10,10,10,10,10,10,10,10, 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,37,16,9,8,12,8, 8,8,8,8,8,17,18,25,8,3,8,11,8,8,7,17,8,19,36,8,8,17,8,8,8,16,-1,-1,-1,0, 0,1,8,8,-1,-1,-1,0,-1,-1,-1,0,8,0,-1,-1,-1,0,0,13,7,-1,-1,-1,0,-1,8,8,7,7, 7,8,8,7,17,17,7,7,7,8,7,7,7,8,8,8,7,7,7,8,8,13,16,7,7,7,8,7,8,8, 2,11,-1,8,8,17,-1,7,-2,7,0,8,-1,7,-1,8,8,8,2,11,-1,8,0,8,8,17,-1,7,-2,7, -1,8,0,8,8,6,-2,-2,8,8,0,8,2,11,-1,8,8,8,0,17,8,8,-2,7,8,8,17,-1,-1,8, 8,8,8,8,8,8,8,-1,7,8,17,-1,7,8,8,17,2,11,-1,8,-1,7,8,17,-1,7,8,17,-1,7, -1,7,-2,7,8,17,-1,7,8,10,-1,8,8,10,0,8,2,11,-1,8,-2,7,-1,7,8,17,-2,7,-2,7, 0,-1,7,0,8,-1,7,8,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,8,10,10,8,10,10,10, 10,10,10,10,10,10,10,10,10,10,5,15,10,10,10,10,10,10,10,10,10,10,10,10,10,2,16,10,10,10, 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,-2,7,-2,7,-2, 7,-2,7,-1,4,-1,1,-1,0,-1,1,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10, 10,10,10,10,10,10,10,10,10,10,-7,-2,-2,7,-2,7,10,10,10,10,10,10,10,10,10,10,10,10,10,10, 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10, 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10, 10,10,10,10,10,10, }; static unsigned short stb__times_bold_47_latin_ext_w[560]={ 0,8,17,21,19,38,33,8,13,13,17,24,9,13, 8,12,19,16,19,19,19,19,19,20,19,19,8,9,24,24,24,17,38,31,27,28,29,27,25,32,33,16,21,34, 27,40,30,31,24,31,32,20,26,30,31,43,31,31,28,9,12,9,19,23,10,20,22,17,22,17,17,20,22,12, 13,23,12,34,22,19,22,22,18,15,14,22,21,31,21,21,19,12,3,13,24,23,23,23,23,23,23,23,23,23, 23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,0,8,17,21,21,22, 3,19,14,30,14,21,24,13,30,23,15,23,12,12,10,23,23,8,8,11,12,21,30,30,31,17,31,31,31,31, 31,31,42,28,27,27,27,27,16,16,16,16,30,30,31,31,31,31,31,19,31,30,30,30,30,31,25,21,20,20, 20,20,20,20,29,17,17,17,17,17,13,13,14,14,19,22,19,19,19,19,19,23,19,22,22,22,22,21,22,21, 31,20,31,20,31,21,28,17,28,17,28,17,28,17,29,30,30,22,27,17,27,17,27,17,27,17,27,17,32,20, 32,20,32,20,32,20,33,22,33,22,16,14,16,14,16,14,16,12,16,12,35,21,21,16,34,23,24,27,12,27, 12,27,20,27,18,27,12,30,22,30,22,30,22,31,31,20,31,19,31,19,31,19,40,29,32,18,32,18,32,18, 20,15,20,15,20,15,20,15,26,14,26,22,26,14,30,22,30,22,30,22,30,22,30,22,29,22,43,31,31,21, 31,28,19,28,19,28,19,17,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,29,23,23,23,23,23,23, 23,23,23,23,23,23,23,23,23,23,33,24,23,23,23,23,23,23,23,23,23,23,23,23,23,36,26,23,23,23, 23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,31,20,16,14,31, 19,30,22,30,22,30,22,30,22,30,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23, 23,23,23,23,23,23,23,23,23,23,31,20,42,29,31,19,23,23,23,23,23,23,23,23,23,23,23,23,23,23, 23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23, 23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23, 23,23,23,23,23,23, }; static unsigned short stb__times_bold_47_latin_ext_h[560]={ 0,30,15,30,32,31,30,15,38,38,17,24,15,5, 8,30,30,29,29,30,29,30,30,30,30,30,21,28,22,10,22,30,39,29,29,30,29,29,29,30,29,29,30,29, 29,29,30,30,29,37,29,30,29,30,30,30,29,29,29,37,30,37,16,4,9,21,30,21,30,21,29,30,29,29, 39,29,29,20,20,21,30,30,20,21,28,21,21,21,20,30,20,38,39,38,8,27,27,27,27,27,27,27,27,27, 27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,0,31,36,30,22,29, 39,39,7,30,13,20,10,5,30,4,15,24,16,16,9,30,39,8,9,16,13,20,31,31,31,31,38,38,38,37, 37,36,29,37,38,38,38,37,38,38,38,37,29,38,39,39,39,38,38,19,32,39,39,39,38,38,29,30,31,31, 31,30,30,31,21,28,31,31,31,30,30,30,30,29,30,29,31,31,31,30,30,19,22,31,31,31,30,40,39,39, 35,27,38,30,39,30,39,31,40,31,38,30,39,31,38,30,29,30,35,27,38,30,37,30,39,30,38,31,40,40, 39,39,38,39,37,41,39,39,29,29,37,29,35,26,38,29,39,39,37,20,30,39,40,40,37,37,20,38,38,37, 37,29,29,29,29,29,29,39,30,37,28,39,30,29,30,30,36,27,39,30,39,31,30,21,38,30,37,28,38,30, 39,31,40,31,37,28,39,31,40,38,38,30,29,28,38,30,36,27,39,30,40,31,39,31,39,30,40,31,39,40, 37,38,30,37,29,38,30,29,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,30,27,27,39,27,27,27, 27,27,27,27,27,27,27,27,27,27,33,23,27,27,27,27,27,27,27,27,27,27,27,27,27,36,22,27,27,27, 27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,39,31,39,30,40, 31,40,31,39,34,39,37,39,38,39,37,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27, 27,27,27,27,27,27,27,27,27,27,44,40,39,31,41,31,27,27,27,27,27,27,27,27,27,27,27,27,27,27, 27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27, 27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27, 27,27,27,27,27,27, }; static unsigned short stb__times_bold_47_latin_ext_s[560]={ 459,372,315,306,378,421,228,502,283,274,239, 60,501,498,503,85,457,308,325,248,369,192,149,22,222,202,503,500,110,402,204, 184,452,29,123,397,151,204,284,426,250,495,268,61,1,196,159,471,237,304,262, 285,96,47,395,427,389,421,453,368,122,448,282,377,427,352,99,423,24,441,232, 78,181,482,263,345,295,81,36,373,411,349,116,283,310,329,229,251,173,290,459, 325,285,126,458,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416, 416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,459,282,62, 312,182,453,239,243,483,1,349,59,377,498,135,401,333,36,302,269,438,371,32, 449,502,257,364,479,461,311,109,404,29,218,186,255,62,80,213,475,1,61,118, 34,491,175,225,378,291,311,191,388,420,445,342,219,346,254,1,344,371,242,89, 87,362,383,1,1,490,440,393,367,422,91,492,325,311,297,282,181,242,1,342, 291,244,164,262,195,135,68,45,22,141,199,476,490,212,440,459,43,155,109,32, 264,317,226,430,131,315,138,415,459,58,64,261,484,402,343,1,379,187,361,297, 208,426,86,332,375,192,311,29,33,1,365,24,130,458,115,244,21,477,276,396, 499,287,135,212,289,128,150,125,395,148,374,402,183,494,476,432,153,354,386,373, 413,434,94,325,86,477,322,32,64,149,1,35,98,67,188,118,299,338,190,1, 348,250,209,491,492,252,476,234,385,294,460,377,140,99,262,186,401,155,169,181, 461,223,1,346,85,117,398,56,328,273,156,444,404,336,89,166,419,256,146,351, 414,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,381,416,416,215, 416,416,416,416,416,416,416,416,416,416,416,416,416,312,85,416,416,416,416,416, 416,416,416,416,416,416,416,416,112,155,416,416,416,416,416,416,416,416,416,416, 416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,92,21, 277,334,167,42,221,62,459,289,1,211,124,288,61,160,416,416,416,416,416,416, 416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416, 416,416,416,1,107,148,108,54,1,416,416,416,416,416,416,416,416,416,416,416, 416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416, 416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416, 416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416, 416,416,416,416,416,416,416,416,416, }; static unsigned short stb__times_bold_47_latin_ext_t[560]={ 41,345,523,376,243,243,376,468,126,166,523, 498,498,523,398,376,345,438,438,345,438,345,345,345,313,313,376,345,498,523,498, 313,86,468,468,313,468,468,468,313,468,438,345,468,468,438,376,376,438,205,438, 376,468,407,376,376,438,438,438,205,407,205,523,534,523,498,407,498,407,498,468, 407,468,438,46,438,438,523,523,498,345,345,523,498,468,498,498,498,523,345,498, 126,86,126,523,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468, 468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,41,280,243, 345,498,407,46,46,523,376,523,523,523,523,407,534,523,498,523,523,523,376,86, 523,484,523,523,498,280,280,313,280,166,126,126,205,205,243,407,205,166,166,166, 205,126,166,166,205,407,166,86,86,86,166,166,523,243,86,86,46,126,166,438, 345,280,280,313,345,313,280,498,468,280,313,280,313,313,313,313,438,313,438,280, 280,280,313,313,523,498,313,313,313,313,1,46,1,243,468,126,345,46,345,46, 280,1,280,126,345,46,280,166,313,438,345,243,468,126,313,243,313,46,313,126, 280,1,1,86,46,166,86,243,1,126,86,438,438,205,438,243,498,166,407,46, 46,205,523,345,86,1,1,205,205,523,166,166,205,166,407,407,438,407,407,407, 46,345,205,468,86,345,407,376,376,243,498,126,376,126,280,376,498,126,376,205, 468,126,376,86,243,1,243,205,468,46,243,1,126,126,376,407,468,126,345,243, 468,86,407,1,280,86,243,86,376,1,280,46,1,205,166,407,205,407,166,376, 407,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,345,468,468,46, 468,468,468,468,468,468,468,468,468,468,468,468,468,243,498,468,468,468,468,468, 468,468,468,468,468,468,468,468,243,498,468,468,468,468,468,468,468,468,468,468, 468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,46,281, 46,345,1,281,1,280,1,243,46,205,46,166,46,205,468,468,468,468,468,468, 468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468, 468,468,468,1,1,86,280,1,281,468,468,468,468,468,468,468,468,468,468,468, 468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468, 468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468, 468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468,468, 468,468,468,468,468,468,468,468,468, }; static unsigned short stb__times_bold_47_latin_ext_a[560]={ 170,226,377,340,340,679,566,189, 226,226,340,387,170,226,170,189,340,340,340,340,340,340,340,340, 340,340,226,226,387,387,387,340,632,490,453,490,490,453,415,528, 528,264,340,528,453,641,490,528,415,528,490,378,453,490,490,679, 490,490,453,226,189,226,395,340,226,340,378,301,378,301,226,340, 378,189,226,378,189,566,378,340,378,378,301,264,226,378,340,490, 340,340,301,268,150,268,353,528,528,528,528,528,528,528,528,528, 528,528,528,528,528,528,528,528,528,528,528,528,528,528,528,528, 528,528,528,528,528,528,528,528,170,226,340,340,340,340,150,340, 226,507,204,340,387,226,507,340,272,373,204,204,226,391,367,170, 226,204,224,340,509,509,509,340,490,490,490,490,490,490,679,490, 453,453,453,453,264,264,264,264,490,490,528,528,528,528,528,387, 528,490,490,490,490,490,415,378,340,340,340,340,340,340,490,301, 301,301,301,301,189,189,189,189,340,378,340,340,340,340,340,373, 340,378,378,378,378,340,378,340,490,340,490,340,490,340,490,301, 490,301,490,301,490,301,490,498,490,378,453,301,453,301,453,301, 453,301,453,301,528,340,528,340,528,340,528,340,528,378,528,378, 264,189,264,189,264,189,264,189,264,189,559,375,340,226,528,378, 378,453,189,453,189,453,318,453,269,453,189,490,378,490,378,490, 378,495,522,378,528,340,528,340,528,340,679,490,490,301,490,301, 490,301,378,264,378,264,378,264,378,264,453,226,453,354,453,226, 490,378,490,378,490,378,490,378,490,378,490,378,679,490,490,340, 490,453,301,453,301,453,301,189,528,528,528,528,528,528,528,528, 528,528,528,528,528,528,528,502,528,528,340,528,528,528,528,528, 528,528,528,528,528,528,528,528,528,376,528,528,528,528,528,528, 528,528,528,528,528,528,528,540,407,528,528,528,528,528,528,528, 528,528,528,528,528,528,528,528,528,528,528,528,528,528,528,528, 528,528,528,528,528,490,340,264,189,528,340,490,378,490,378,490, 378,490,378,490,378,528,528,528,528,528,528,528,528,528,528,528, 528,528,528,528,528,528,528,528,528,528,528,528,528,528,528,528, 528,528,490,340,679,490,528,340,528,528,528,528,528,528,528,528, 528,528,528,528,528,528,528,528,528,528,528,528,528,528,528,528, 528,528,528,528,528,528,528,528,528,528,528,528,528,528,528,528, 528,528,528,528,528,528,528,528,528,528,528,528,528,528,528,528, 528,528,528,528,528,528,528,528,528,528,528,528,528,528,528,528, 528,528,528,528,528,528,528,528, }; // Call this function with // font: NULL or array length // data: NULL or specified size // height: STB_FONT_times_bold_47_latin_ext_BITMAP_HEIGHT or STB_FONT_times_bold_47_latin_ext_BITMAP_HEIGHT_POW2 // return value: spacing between lines static void stb_font_times_bold_47_latin_ext(stb_fontchar font[STB_FONT_times_bold_47_latin_ext_NUM_CHARS], unsigned char data[STB_FONT_times_bold_47_latin_ext_BITMAP_HEIGHT][STB_FONT_times_bold_47_latin_ext_BITMAP_WIDTH], int height) { int i,j; if (data != 0) { unsigned int *bits = stb__times_bold_47_latin_ext_pixels; unsigned int bitpack = *bits++, numbits = 32; for (i=0; i < STB_FONT_times_bold_47_latin_ext_BITMAP_WIDTH*height; ++i) data[0][i] = 0; // zero entire bitmap for (j=1; j < STB_FONT_times_bold_47_latin_ext_BITMAP_HEIGHT-1; ++j) { for (i=1; i < STB_FONT_times_bold_47_latin_ext_BITMAP_WIDTH-1; ++i) { unsigned int value; if (numbits==0) bitpack = *bits++, numbits=32; value = bitpack & 1; bitpack >>= 1, --numbits; if (value) { if (numbits < 3) bitpack = *bits++, numbits = 32; data[j][i] = (bitpack & 7) * 0x20 + 0x1f; bitpack >>= 3, numbits -= 3; } else { data[j][i] = 0; } } } } // build font description if (font != 0) { float recip_width = 1.0f / STB_FONT_times_bold_47_latin_ext_BITMAP_WIDTH; float recip_height = 1.0f / height; for (i=0; i < STB_FONT_times_bold_47_latin_ext_NUM_CHARS; ++i) { // pad characters so they bilerp from empty space around each character font[i].s0 = (stb__times_bold_47_latin_ext_s[i]) * recip_width; font[i].t0 = (stb__times_bold_47_latin_ext_t[i]) * recip_height; font[i].s1 = (stb__times_bold_47_latin_ext_s[i] + stb__times_bold_47_latin_ext_w[i]) * recip_width; font[i].t1 = (stb__times_bold_47_latin_ext_t[i] + stb__times_bold_47_latin_ext_h[i]) * recip_height; font[i].x0 = stb__times_bold_47_latin_ext_x[i]; font[i].y0 = stb__times_bold_47_latin_ext_y[i]; font[i].x1 = stb__times_bold_47_latin_ext_x[i] + stb__times_bold_47_latin_ext_w[i]; font[i].y1 = stb__times_bold_47_latin_ext_y[i] + stb__times_bold_47_latin_ext_h[i]; font[i].advance_int = (stb__times_bold_47_latin_ext_a[i]+8)>>4; font[i].s0f = (stb__times_bold_47_latin_ext_s[i] - 0.5f) * recip_width; font[i].t0f = (stb__times_bold_47_latin_ext_t[i] - 0.5f) * recip_height; font[i].s1f = (stb__times_bold_47_latin_ext_s[i] + stb__times_bold_47_latin_ext_w[i] + 0.5f) * recip_width; font[i].t1f = (stb__times_bold_47_latin_ext_t[i] + stb__times_bold_47_latin_ext_h[i] + 0.5f) * recip_height; font[i].x0f = stb__times_bold_47_latin_ext_x[i] - 0.5f; font[i].y0f = stb__times_bold_47_latin_ext_y[i] - 0.5f; font[i].x1f = stb__times_bold_47_latin_ext_x[i] + stb__times_bold_47_latin_ext_w[i] + 0.5f; font[i].y1f = stb__times_bold_47_latin_ext_y[i] + stb__times_bold_47_latin_ext_h[i] + 0.5f; font[i].advance = stb__times_bold_47_latin_ext_a[i]/16.0f; } } } #ifndef STB_SOMEFONT_CREATE #define STB_SOMEFONT_CREATE stb_font_times_bold_47_latin_ext #define STB_SOMEFONT_BITMAP_WIDTH STB_FONT_times_bold_47_latin_ext_BITMAP_WIDTH #define STB_SOMEFONT_BITMAP_HEIGHT STB_FONT_times_bold_47_latin_ext_BITMAP_HEIGHT #define STB_SOMEFONT_BITMAP_HEIGHT_POW2 STB_FONT_times_bold_47_latin_ext_BITMAP_HEIGHT_POW2 #define STB_SOMEFONT_FIRST_CHAR STB_FONT_times_bold_47_latin_ext_FIRST_CHAR #define STB_SOMEFONT_NUM_CHARS STB_FONT_times_bold_47_latin_ext_NUM_CHARS #define STB_SOMEFONT_LINE_SPACING STB_FONT_times_bold_47_latin_ext_LINE_SPACING #endif
71.136134
131
0.819571
stetre
1f4861b660c7ac97c5873e63c199efa7e74de58e
732
cc
C++
src/ipcz/node_name.cc
krockot/ipcz
6a6ebe43c2cb86882b0df9bf888dc5d34037f015
[ "BSD-3-Clause" ]
null
null
null
src/ipcz/node_name.cc
krockot/ipcz
6a6ebe43c2cb86882b0df9bf888dc5d34037f015
[ "BSD-3-Clause" ]
null
null
null
src/ipcz/node_name.cc
krockot/ipcz
6a6ebe43c2cb86882b0df9bf888dc5d34037f015
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2022 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 "ipcz/node_name.h" #include <cinttypes> #include <cstdint> #include <cstdio> #include <string> #include <type_traits> #include "third_party/abseil-cpp/absl/base/macros.h" namespace ipcz { static_assert(std::is_standard_layout<NodeName>::value, "Invalid NodeName"); NodeName::~NodeName() = default; std::string NodeName::ToString() const { std::string name(33, 0); int length = snprintf(name.data(), name.size(), "%016" PRIx64 "%016" PRIx64, high_, low_); ABSL_ASSERT(length == 32); return name; } } // namespace ipcz
24.4
78
0.693989
krockot
1f4f0cdbbf93f934fe37d224274fc9cbf041f2c3
1,556
cc
C++
src/platform/unix_thread.cc
AnthonyBrunasso/test_games
31354d2bf95aae9a880e7292bc78ad8577b3f09c
[ "MIT" ]
null
null
null
src/platform/unix_thread.cc
AnthonyBrunasso/test_games
31354d2bf95aae9a880e7292bc78ad8577b3f09c
[ "MIT" ]
null
null
null
src/platform/unix_thread.cc
AnthonyBrunasso/test_games
31354d2bf95aae9a880e7292bc78ad8577b3f09c
[ "MIT" ]
2
2019-11-12T23:15:18.000Z
2020-01-15T17:49:27.000Z
#include "thread.h" #include <pthread.h> #include <sched.h> #include <climits> #include <cstddef> static_assert(offsetof(Thread, id) == 0 && sizeof(Thread::id) >= sizeof(pthread_t), "Thread_t layout must be compatible with pthread_t"); namespace platform { void* pthread_shim(void* pthread_arg) { Thread* ti = (Thread*)pthread_arg; ti->return_value = ti->func(ti->arg); return NULL; } u64 ThreadId() { pthread_t ptid = pthread_self(); u64 tid; memcpy(&tid, &ptid, MIN(sizeof(tid), sizeof(ptid))); return tid; } b8 ThreadCreate(Thread* t) { if (t->id) return false; pthread_attr_t attr; pthread_attr_init(&attr); pthread_create((pthread_t*)t, &attr, pthread_shim, t); return true; } void ThreadYield() { sched_yield(); } b8 ThreadJoin(Thread* t) { if (!t->id) return false; pthread_t* pt = (pthread_t*)t; pthread_join(*pt, 0); return true; } void ThreadExit(Thread* t, u64 value) { t->return_value = value; pthread_exit(&t->return_value); } b8 MutexCreate(Mutex* m) { int res = pthread_mutex_init(&m->lock, nullptr); if (res) { printf("mutex_create error: %d\n", res); return false; } return true; } void MutexLock(Mutex* m) { int res = pthread_mutex_lock(&m->lock); if (res) { printf("mutex_lock error: %d\n", res); } } void MutexUnlock(Mutex* m) { int res = pthread_mutex_unlock(&m->lock); if (res) { printf("mutex_unlock error: %d\n", res); } } void MutexFree(Mutex* m) { pthread_mutex_destroy(&m->lock); } } // namespace platform
14.961538
67
0.647172
AnthonyBrunasso