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
108
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
67k
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
ec2ec73f474fa18945883ea8e2f68b90c16505c2
1,645
hpp
C++
libcaf_net/caf/net/http/v1.hpp
seewpx/actor-framework
65ecf35317b81d7a211848d59e734f43483fe410
[ "BSD-3-Clause" ]
null
null
null
libcaf_net/caf/net/http/v1.hpp
seewpx/actor-framework
65ecf35317b81d7a211848d59e734f43483fe410
[ "BSD-3-Clause" ]
null
null
null
libcaf_net/caf/net/http/v1.hpp
seewpx/actor-framework
65ecf35317b81d7a211848d59e734f43483fe410
[ "BSD-3-Clause" ]
null
null
null
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #pragma once #include "caf/byte_span.hpp" #include "caf/detail/net_export.hpp" #include "caf/net/http/header_fields_map.hpp" #include "caf/net/http/status.hpp" #include <string_view> #include <utility> namespace caf::net::http::v1 { /// Tries splitting the given byte span into an HTTP header (`first`) and a /// remainder (`second`). Returns an empty `string_view` as `first` for /// incomplete HTTP headers. CAF_NET_EXPORT std::pair<std::string_view, byte_span> split_header(byte_span bytes); /// Writes an HTTP header to the buffer. CAF_NET_EXPORT void write_header(status code, const header_fields_map& fields, byte_buffer& buf); /// Writes a complete HTTP response to the buffer. Automatically sets /// Content-Type and Content-Length header fields. CAF_NET_EXPORT void write_response(status code, std::string_view content_type, std::string_view content, byte_buffer& buf); /// Writes a complete HTTP response to the buffer. Automatically sets /// Content-Type and Content-Length header fields followed by the user-defined /// @p fields. CAF_NET_EXPORT void write_response(status code, std::string_view content_type, std::string_view content, const header_fields_map& fields, byte_buffer& buf); } // namespace caf::net::http::v1
40.121951
79
0.68997
seewpx
ec30e5ce0bcc57fc07b313ca33ef1b05123d8737
2,089
cpp
C++
lib-dmxserial/src/serial/serialspi.cpp
vanvught/rpidmx512
b56bb2db406247b4fd4c56aa372952939f4a3290
[ "MIT" ]
328
2015-02-26T09:54:16.000Z
2022-03-31T11:04:00.000Z
lib-dmxserial/src/serial/serialspi.cpp
vanvught/rpidmx512
b56bb2db406247b4fd4c56aa372952939f4a3290
[ "MIT" ]
195
2016-07-13T10:43:37.000Z
2022-03-20T19:14:55.000Z
lib-dmxserial/src/serial/serialspi.cpp
vanvught/rpidmx512
b56bb2db406247b4fd4c56aa372952939f4a3290
[ "MIT" ]
113
2015-06-08T04:54:23.000Z
2022-02-15T09:06:10.000Z
/** * @file serialspi.cpp * */ /* Copyright (C) 2020-2021 by Arjan van Vught mailto:info@orangepi-dmx.nl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #include <cstdint> #include <cstdio> #include <cassert> #include "serial.h" #include "hal_spi.h" #include "debug.h" using namespace serial; void Serial::SetSpiSpeedHz(uint32_t nSpeedHz) { DEBUG_PRINTF("nSpeedHz=%d", nSpeedHz); if (nSpeedHz == 0) { return; } m_SpiConfiguration.nSpeed = nSpeedHz; } void Serial::SetSpiMode(uint32_t nMode) { DEBUG_PRINTF("tMode=%d", nMode); if (nMode > 3) { return; } m_SpiConfiguration.nMode = static_cast<uint8_t>(nMode); } bool Serial::InitSpi() { DEBUG_ENTRY FUNC_PREFIX (spi_begin()); FUNC_PREFIX (spi_set_speed_hz(m_SpiConfiguration.nSpeed)); FUNC_PREFIX (spi_chipSelect(SPI_CS0)); FUNC_PREFIX (spi_setDataMode(m_SpiConfiguration.nMode)); DEBUG_EXIT return true; } void Serial::SendSpi(const uint8_t *pData, uint32_t nLength) { DEBUG_ENTRY FUNC_PREFIX (spi_writenb(reinterpret_cast<const char *>(pData), nLength)); DEBUG_EXIT }
26.782051
80
0.748205
vanvught
ec33e1506d3394794f2a6196eef9fa94d4dc6e6e
32,278
cpp
C++
Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformProcess.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformProcess.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
2
2015-06-21T17:38:11.000Z
2015-06-22T20:54:42.000Z
Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformProcess.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "CorePrivatePCH.h" #include "LinuxPlatformRunnableThread.h" #include "EngineVersion.h" #include <spawn.h> #include <sys/wait.h> #include <sys/resource.h> #include <sys/ioctl.h> // ioctl #include <asm/ioctls.h> // FIONREAD #include "LinuxApplication.h" // FLinuxApplication::IsForeground() void* FLinuxPlatformProcess::GetDllHandle( const TCHAR* Filename ) { check( Filename ); FString AbsolutePath = FPaths::ConvertRelativePathToFull(Filename); int DlOpenMode = RTLD_LAZY; if (AbsolutePath.EndsWith(TEXT("libsteam_api.so"))) { DlOpenMode |= RTLD_GLOBAL; //Global symbol resolution when loading shared objects - Needed for Steam to work when its library is loaded by a plugin } else { DlOpenMode |= RTLD_LOCAL; //Local symbol resolution when loading shared objects - Needed for Hot-Reload } void *Handle = dlopen( TCHAR_TO_UTF8(*AbsolutePath), DlOpenMode ); if (!Handle) { UE_LOG(LogLinux, Warning, TEXT("dlopen failed: %s"), ANSI_TO_TCHAR(dlerror()) ); } return Handle; } void FLinuxPlatformProcess::FreeDllHandle( void* DllHandle ) { check( DllHandle ); dlclose( DllHandle ); } void* FLinuxPlatformProcess::GetDllExport( void* DllHandle, const TCHAR* ProcName ) { check(DllHandle); check(ProcName); return dlsym( DllHandle, TCHAR_TO_ANSI(ProcName) ); } int32 FLinuxPlatformProcess::GetDllApiVersion( const TCHAR* Filename ) { check(Filename); return GCompatibleWithEngineVersion.GetChangelist(); } const TCHAR* FLinuxPlatformProcess::GetModulePrefix() { return TEXT("lib"); } const TCHAR* FLinuxPlatformProcess::GetModuleExtension() { return TEXT("so"); } const TCHAR* FLinuxPlatformProcess::GetBinariesSubdirectory() { return TEXT("Linux"); } namespace PlatformProcessLimits { enum { MaxComputerName = 128, MaxBaseDirLength= MAX_PATH + 1, MaxArgvParameters = 256 }; }; const TCHAR* FLinuxPlatformProcess::ComputerName() { static bool bHaveResult = false; static TCHAR CachedResult[ PlatformProcessLimits::MaxComputerName ]; if (!bHaveResult) { struct utsname name; const char * SysName = name.nodename; if(uname(&name)) { SysName = "Linux Computer"; } FCString::Strcpy(CachedResult, ARRAY_COUNT(CachedResult) - 1, ANSI_TO_TCHAR(SysName)); CachedResult[ARRAY_COUNT(CachedResult) - 1] = 0; bHaveResult = true; } return CachedResult; } void FLinuxPlatformProcess::CleanFileCache() { bool bShouldCleanShaderWorkingDirectory = true; #if !(UE_BUILD_SHIPPING && WITH_EDITOR) // Only clean the shader working directory if we are the first instance, to avoid deleting files in use by other instances // @todo - check if any other instances are running right now bShouldCleanShaderWorkingDirectory = GIsFirstInstance; #endif if (bShouldCleanShaderWorkingDirectory && !FParse::Param( FCommandLine::Get(), TEXT("Multiprocess"))) { // get shader path, and convert it to the userdirectory FString ShaderDir = FString(FPlatformProcess::BaseDir()) / FPlatformProcess::ShaderDir(); FString UserShaderDir = IFileManager::Get().ConvertToAbsolutePathForExternalAppForWrite(*ShaderDir); FPaths::CollapseRelativeDirectories(ShaderDir); // make sure we don't delete from the source directory if (ShaderDir != UserShaderDir) { IFileManager::Get().DeleteDirectory(*UserShaderDir, false, true); } FPlatformProcess::CleanShaderWorkingDir(); } } const TCHAR* FLinuxPlatformProcess::BaseDir() { static bool bHaveResult = false; static TCHAR CachedResult[ PlatformProcessLimits::MaxBaseDirLength ]; if (!bHaveResult) { char SelfPath[ PlatformProcessLimits::MaxBaseDirLength ] = {0}; if (readlink( "/proc/self/exe", SelfPath, ARRAY_COUNT(SelfPath) - 1) == -1) { int ErrNo = errno; UE_LOG(LogHAL, Fatal, TEXT("readlink() failed with errno = %d (%s)"), ErrNo, StringCast< TCHAR >(strerror(ErrNo)).Get()); // unreachable return CachedResult; } SelfPath[ARRAY_COUNT(SelfPath) - 1] = 0; FCString::Strcpy(CachedResult, ARRAY_COUNT(CachedResult) - 1, ANSI_TO_TCHAR(dirname(SelfPath))); CachedResult[ARRAY_COUNT(CachedResult) - 1] = 0; FCString::Strcat(CachedResult, ARRAY_COUNT(CachedResult) - 1, TEXT("/")); bHaveResult = true; } return CachedResult; } const TCHAR* FLinuxPlatformProcess::UserDir() { // The UserDir is where user visible files (such as game projects) live. // On Linux (just like on Mac) this corresponds to $HOME/Documents. // To accomodate localization requirement we use xdg-user-dir command, // and fall back to $HOME/Documents if setting not found. static TCHAR Result[MAX_PATH] = TEXT(""); if (!Result[0]) { char DocPath[MAX_PATH]; FILE* FilePtr = popen("xdg-user-dir DOCUMENTS", "r"); if(fgets(DocPath, MAX_PATH, FilePtr) == NULL) { char* Home = secure_getenv("HOME"); if (!Home) { UE_LOG(LogHAL, Warning, TEXT("Unable to read the $HOME environment variable")); } else { FCString::Strcpy(Result, ANSI_TO_TCHAR(Home)); FCString::Strcat(Result, TEXT("/Documents/")); } } else { size_t DocLen = strlen(DocPath) - 1; DocPath[DocLen] = '\0'; FCString::Strcpy(Result, ANSI_TO_TCHAR(DocPath)); FCString::Strcat(Result, TEXT("/")); } pclose(FilePtr); } return Result; } const TCHAR* FLinuxPlatformProcess::UserSettingsDir() { // Like on Mac we use the same folder for UserSettingsDir and ApplicationSettingsDir // $HOME/.config/Epic/ return ApplicationSettingsDir(); } const TCHAR* FLinuxPlatformProcess::ApplicationSettingsDir() { // The ApplicationSettingsDir is where the engine stores settings and configuration // data. On linux this corresponds to $HOME/.config/Epic static TCHAR Result[MAX_PATH] = TEXT(""); if (!Result[0]) { char* Home = secure_getenv("HOME"); if (!Home) { UE_LOG(LogHAL, Warning, TEXT("Unable to read the $HOME environment variable")); } else { FCString::Strcpy(Result, ANSI_TO_TCHAR(Home)); FCString::Strcat(Result, TEXT("/.config/Epic/")); } } return Result; } bool FLinuxPlatformProcess::SetProcessLimits(EProcessResource::Type Resource, uint64 Limit) { rlimit NativeLimit; NativeLimit.rlim_cur = Limit; NativeLimit.rlim_max = Limit; int NativeResource = RLIMIT_AS; switch(Resource) { case EProcessResource::VirtualMemory: NativeResource = RLIMIT_AS; break; default: UE_LOG(LogHAL, Warning, TEXT("Unknown resource type %d"), Resource); return false; } if (setrlimit(NativeResource, &NativeLimit) != 0) { UE_LOG(LogHAL, Warning, TEXT("setrlimit() failed with error %d (%s)\n"), errno, ANSI_TO_TCHAR(strerror(errno))); return false; } return true; } const TCHAR* FLinuxPlatformProcess::ExecutableName(bool bRemoveExtension) { static bool bHaveResult = false; static TCHAR CachedResult[ PlatformProcessLimits::MaxBaseDirLength ]; if (!bHaveResult) { char SelfPath[ PlatformProcessLimits::MaxBaseDirLength ] = {0}; if (readlink( "/proc/self/exe", SelfPath, ARRAY_COUNT(SelfPath) - 1) == -1) { int ErrNo = errno; UE_LOG(LogHAL, Fatal, TEXT("readlink() failed with errno = %d (%s)"), ErrNo, StringCast< TCHAR >(strerror(ErrNo)).Get()); return CachedResult; } SelfPath[ARRAY_COUNT(SelfPath) - 1] = 0; FCString::Strcpy(CachedResult, ARRAY_COUNT(CachedResult) - 1, ANSI_TO_TCHAR(basename(SelfPath))); CachedResult[ARRAY_COUNT(CachedResult) - 1] = 0; bHaveResult = true; } return CachedResult; } FString FLinuxPlatformProcess::GenerateApplicationPath( const FString& AppName, EBuildConfigurations::Type BuildConfiguration) { FString PlatformName = GetBinariesSubdirectory(); FString ExecutablePath = FString::Printf(TEXT("../%s/%s"), *PlatformName, *AppName); if (BuildConfiguration != EBuildConfigurations::Development && BuildConfiguration != EBuildConfigurations::DebugGame) { ExecutablePath += FString::Printf(TEXT("-%s-%s"), *PlatformName, EBuildConfigurations::ToString(BuildConfiguration)); } return ExecutablePath; } FString FLinuxPlatformProcess::GetApplicationName( uint32 ProcessId ) { FString Output = TEXT(""); const int32 ReadLinkSize = 1024; char ReadLinkCmd[ReadLinkSize] = {0}; FCStringAnsi::Sprintf(ReadLinkCmd, "/proc/%d/exe", ProcessId); char ProcessPath[ PlatformProcessLimits::MaxBaseDirLength ] = {0}; int32 Ret = readlink(ReadLinkCmd, ProcessPath, ARRAY_COUNT(ProcessPath) - 1); if (Ret != -1) { Output = ANSI_TO_TCHAR(ProcessPath); } return Output; } FPipeHandle::~FPipeHandle() { close(PipeDesc); } FString FPipeHandle::Read() { const int kBufferSize = 4096; ANSICHAR Buffer[kBufferSize]; FString Output; int BytesAvailable = 0; if (ioctl(PipeDesc, FIONREAD, &BytesAvailable) == 0) { if (BytesAvailable > 0) { int BytesRead = read(PipeDesc, Buffer, kBufferSize - 1); if (BytesRead > 0) { Buffer[BytesRead] = 0; Output += StringCast< TCHAR >(Buffer).Get(); } } } else { UE_LOG(LogHAL, Fatal, TEXT("ioctl(..., FIONREAD, ...) failed with errno=%d (%s)"), errno, StringCast< TCHAR >(strerror(errno)).Get()); } return Output; } bool FPipeHandle::ReadToArray(TArray<uint8> & Output) { int BytesAvailable = 0; if (ioctl(PipeDesc, FIONREAD, &BytesAvailable) == 0) { if (BytesAvailable > 0) { Output.SetNumUninitialized(BytesAvailable); int BytesRead = read(PipeDesc, Output.GetData(), BytesAvailable); if (BytesRead > 0) { if (BytesRead < BytesAvailable) { Output.SetNum(BytesRead); } return true; } else { Output.Empty(); } } } return false; } void FLinuxPlatformProcess::ClosePipe( void* ReadPipe, void* WritePipe ) { if (ReadPipe) { FPipeHandle * PipeHandle = reinterpret_cast< FPipeHandle* >(ReadPipe); delete PipeHandle; } if (WritePipe) { FPipeHandle * PipeHandle = reinterpret_cast< FPipeHandle* >(WritePipe); delete PipeHandle; } } bool FLinuxPlatformProcess::CreatePipe( void*& ReadPipe, void*& WritePipe ) { int PipeFd[2]; if (-1 == pipe(PipeFd)) { int ErrNo = errno; UE_LOG(LogHAL, Warning, TEXT("pipe() failed with errno = %d (%s)"), ErrNo, StringCast< TCHAR >(strerror(ErrNo)).Get()); return false; } ReadPipe = new FPipeHandle(PipeFd[ 0 ]); WritePipe = new FPipeHandle(PipeFd[ 1 ]); return true; } FString FLinuxPlatformProcess::ReadPipe( void* ReadPipe ) { if (ReadPipe) { FPipeHandle * PipeHandle = reinterpret_cast< FPipeHandle* >(ReadPipe); return PipeHandle->Read(); } return FString(); } bool FLinuxPlatformProcess::ReadPipeToArray(void* ReadPipe, TArray<uint8> & Output) { if (ReadPipe) { FPipeHandle * PipeHandle = reinterpret_cast<FPipeHandle*>(ReadPipe); return PipeHandle->ReadToArray(Output); } return false; } bool FLinuxPlatformProcess::WritePipe(void* WritePipe, const FString& Message, FString* OutWritten) { // if there is not a message or WritePipe is null if ((Message.Len() == 0) || (WritePipe == nullptr)) { return false; } // convert input to UTF8CHAR uint32 BytesAvailable = Message.Len(); UTF8CHAR* Buffer = new UTF8CHAR[BytesAvailable + 1]; if (!FString::ToBlob(Message, Buffer, BytesAvailable)) { return false; } // write to pipe uint32 BytesWritten = write(*(int*)WritePipe, Buffer, BytesAvailable); if (OutWritten != nullptr) { OutWritten->FromBlob(Buffer, BytesWritten); } return (BytesWritten == BytesAvailable); } FRunnableThread* FLinuxPlatformProcess::CreateRunnableThread() { return new FRunnableThreadLinux(); } void FLinuxPlatformProcess::LaunchURL(const TCHAR* URL, const TCHAR* Parms, FString* Error) { // @todo This ignores params and error; mostly a stub pid_t pid = fork(); UE_LOG(LogHAL, Verbose, TEXT("FLinuxPlatformProcess::LaunchURL: '%s'"), URL); if (pid == 0) { exit(execl("/usr/bin/xdg-open", "xdg-open", TCHAR_TO_UTF8(URL), (char *)0)); } } /** * This class exists as an imperfect workaround to allow both "fire and forget" children and children about whose return code we actually care. * (maybe we could fork and daemonize ourselves for the first case instead?) */ struct FChildWaiterThread : public FRunnable { /** Global table of all waiter threads */ static TArray<FChildWaiterThread *> ChildWaiterThreadsArray; /** Lock guarding the acess to child waiter threads */ static FCriticalSection ChildWaiterThreadsArrayGuard; /** Pid of child to wait for */ int ChildPid; FChildWaiterThread(pid_t InChildPid) : ChildPid(InChildPid) { // add ourselves to thread array ChildWaiterThreadsArrayGuard.Lock(); ChildWaiterThreadsArray.Add(this); ChildWaiterThreadsArrayGuard.Unlock(); } virtual ~FChildWaiterThread() { // remove ChildWaiterThreadsArrayGuard.Lock(); ChildWaiterThreadsArray.RemoveSingle(this); ChildWaiterThreadsArrayGuard.Unlock(); } virtual uint32 Run() { for(;;) // infinite loop in case we get EINTR and have to repeat { siginfo_t SignalInfo; if (waitid(P_PID, ChildPid, &SignalInfo, WEXITED)) { if (errno != EINTR) { int ErrNo = errno; UE_LOG(LogHAL, Fatal, TEXT("FChildWaiterThread::Run(): waitid for pid %d failed (errno=%d, %s)"), static_cast< int32 >(ChildPid), ErrNo, ANSI_TO_TCHAR(strerror(ErrNo))); break; // exit the loop if for some reason Fatal log (above) returns } } else { check(SignalInfo.si_pid == ChildPid); break; } } return 0; } virtual void Exit() { // unregister from the array delete this; } }; /** See FChildWaiterThread */ TArray<FChildWaiterThread *> FChildWaiterThread::ChildWaiterThreadsArray; /** See FChildWaiterThread */ FCriticalSection FChildWaiterThread::ChildWaiterThreadsArrayGuard; FProcHandle FLinuxPlatformProcess::CreateProc(const TCHAR* URL, const TCHAR* Parms, bool bLaunchDetached, bool bLaunchHidden, bool bLaunchReallyHidden, uint32* OutProcessID, int32 PriorityModifier, const TCHAR* OptionalWorkingDirectory, void* PipeWrite) { // @TODO bLaunchHidden bLaunchReallyHidden are not handled // We need an absolute path to executable FString ProcessPath = URL; if (*URL != TEXT('/')) { ProcessPath = FPaths::ConvertRelativePathToFull(ProcessPath); } if (!FPaths::FileExists(ProcessPath)) { return FProcHandle(); } FString Commandline = ProcessPath; Commandline += TEXT(" "); Commandline += Parms; UE_LOG(LogHAL, Log, TEXT("FLinuxPlatformProcess::CreateProc: '%s'"), *Commandline); TArray<FString> ArgvArray; int Argc = Commandline.ParseIntoArray(ArgvArray, TEXT(" "), true); char* Argv[PlatformProcessLimits::MaxArgvParameters + 1] = { NULL }; // last argument is NULL, hence +1 struct CleanupArgvOnExit { int Argc; char** Argv; // relying on it being long enough to hold Argc elements CleanupArgvOnExit( int InArgc, char *InArgv[] ) : Argc(InArgc) , Argv(InArgv) {} ~CleanupArgvOnExit() { for (int Idx = 0; Idx < Argc; ++Idx) { FMemory::Free(Argv[Idx]); } } } CleanupGuard(Argc, Argv); // make sure we do not lose arguments with spaces in them due to Commandline.ParseIntoArray breaking them apart above // @todo this code might need to be optimized somehow and integrated with main argument parser below it TArray<FString> NewArgvArray; if (Argc > 0) { if (Argc > PlatformProcessLimits::MaxArgvParameters) { UE_LOG(LogHAL, Warning, TEXT("FLinuxPlatformProcess::CreateProc: too many (%d) commandline arguments passed, will only pass %d"), Argc, PlatformProcessLimits::MaxArgvParameters); Argc = PlatformProcessLimits::MaxArgvParameters; } FString MultiPartArg; for (int32 Index = 0; Index < Argc; Index++) { if (MultiPartArg.IsEmpty()) { if ((ArgvArray[Index].StartsWith(TEXT("\"")) && !ArgvArray[Index].EndsWith(TEXT("\""))) // check for a starting quote but no ending quote, excludes quoted single arguments || (ArgvArray[Index].Contains(TEXT("=\"")) && !ArgvArray[Index].EndsWith(TEXT("\""))) // check for quote after =, but no ending quote, this gets arguments of the type -blah="string string string" || ArgvArray[Index].EndsWith(TEXT("=\""))) // check for ending quote after =, this gets arguments of the type -blah=" string string string " { MultiPartArg = ArgvArray[Index]; } else { if (ArgvArray[Index].Contains(TEXT("=\""))) { FString SingleArg = ArgvArray[Index]; SingleArg = SingleArg.Replace(TEXT("=\""), TEXT("=")); NewArgvArray.Add(SingleArg.TrimQuotes(NULL)); } else { NewArgvArray.Add(ArgvArray[Index].TrimQuotes(NULL)); } } } else { MultiPartArg += TEXT(" "); MultiPartArg += ArgvArray[Index]; if (ArgvArray[Index].EndsWith(TEXT("\""))) { if (MultiPartArg.StartsWith(TEXT("\""))) { NewArgvArray.Add(MultiPartArg.TrimQuotes(NULL)); } else { NewArgvArray.Add(MultiPartArg); } MultiPartArg.Empty(); } } } } // update Argc with the new argument count Argc = NewArgvArray.Num(); if (Argc > 0) // almost always, unless there's no program name { if (Argc > PlatformProcessLimits::MaxArgvParameters) { UE_LOG(LogHAL, Warning, TEXT("FLinuxPlatformProcess::CreateProc: too many (%d) commandline arguments passed, will only pass %d"), Argc, PlatformProcessLimits::MaxArgvParameters); Argc = PlatformProcessLimits::MaxArgvParameters; } for (int Idx = 0; Idx < Argc; ++Idx) { FTCHARToUTF8 AnsiBuffer(*NewArgvArray[Idx]); const char* Ansi = AnsiBuffer.Get(); size_t AnsiSize = FCStringAnsi::Strlen(Ansi) + 1; // will work correctly with UTF-8 check(AnsiSize); Argv[Idx] = reinterpret_cast< char* >( FMemory::Malloc(AnsiSize) ); check(Argv[Idx]); FCStringAnsi::Strncpy(Argv[Idx], Ansi, AnsiSize); // will work correctly with UTF-8 } // last Argv should be NULL check(Argc <= PlatformProcessLimits::MaxArgvParameters + 1); Argv[Argc] = NULL; } extern char ** environ; // provided by libc pid_t ChildPid = -1; posix_spawn_file_actions_t FileActions; posix_spawn_file_actions_init(&FileActions); if (PipeWrite) { const FPipeHandle* PipeWriteHandle = reinterpret_cast< const FPipeHandle* >(PipeWrite); posix_spawn_file_actions_adddup2(&FileActions, PipeWriteHandle->GetHandle(), STDOUT_FILENO); } int PosixSpawnErrNo = posix_spawn(&ChildPid, TCHAR_TO_UTF8(*ProcessPath), &FileActions, nullptr, Argv, environ); posix_spawn_file_actions_destroy(&FileActions); if (PosixSpawnErrNo != 0) { UE_LOG(LogHAL, Fatal, TEXT("FLinuxPlatformProcess::CreateProc: posix_spawn() failed (%d, %s)"), PosixSpawnErrNo, ANSI_TO_TCHAR(strerror(PosixSpawnErrNo))); return FProcHandle(); // produce knowingly invalid handle if for some reason Fatal log (above) returns } // renice the child (subject to race condition). // Why this instead of posix_spawn_setschedparam()? // Because posix_spawnattr priority is unusable under Linux due to min/max priority range being [0;0] for the default scheduler if (PriorityModifier != 0) { errno = 0; int TheirCurrentPrio = getpriority(PRIO_PROCESS, ChildPid); if (errno != 0) { int ErrNo = errno; UE_LOG(LogHAL, Warning, TEXT("FLinuxPlatformProcess::CreateProc: could not get child's priority, errno=%d (%s)"), ErrNo, ANSI_TO_TCHAR(strerror(ErrNo)) ); // proceed anyway... TheirCurrentPrio = 0; } rlimit PrioLimits; int MaxPrio = 0; if (getrlimit(RLIMIT_NICE, &PrioLimits) == -1) { int ErrNo = errno; UE_LOG(LogHAL, Warning, TEXT("FLinuxPlatformProcess::CreateProc: could not get priority limits (RLIMIT_NICE), errno=%d (%s)"), ErrNo, ANSI_TO_TCHAR(strerror(ErrNo)) ); // proceed anyway... } else { MaxPrio = PrioLimits.rlim_cur; } int NewPrio = TheirCurrentPrio; if (PriorityModifier > 0) { // decrease the nice value - will perhaps fail, it's up to the user to run with proper permissions NewPrio -= 10; } else { NewPrio += 10; } // cap to [RLIMIT_NICE, 19] NewPrio = FMath::Min(19, NewPrio); NewPrio = FMath::Max(MaxPrio, NewPrio); // MaxPrio is actually the _lowest_ numerically priority if (setpriority(PRIO_PROCESS, ChildPid, NewPrio) == -1) { int ErrNo = errno; UE_LOG(LogHAL, Warning, TEXT("FLinuxPlatformProcess::CreateProc: could not change child's priority (nice value) from %d to %d, errno=%d (%s)"), TheirCurrentPrio, NewPrio, ErrNo, ANSI_TO_TCHAR(strerror(ErrNo)) ); } else { UE_LOG(LogHAL, Log, TEXT("Changed child's priority (nice value) to %d (change from %d)"), NewPrio, TheirCurrentPrio); } } else { UE_LOG(LogHAL, Log, TEXT("FLinuxPlatformProcess::CreateProc: spawned child %d"), ChildPid); } if (OutProcessID) { *OutProcessID = ChildPid; } // [RCL] 2015-03-11 @FIXME: is bLaunchDetached usable when determining whether we're in 'fire and forget' mode? This doesn't exactly match what bLaunchDetached is used for. return FProcHandle(new FProcState(ChildPid, bLaunchDetached)); } /** Initialization constructor. */ FProcState::FProcState(pid_t InProcessId, bool bInFireAndForget) : ProcessId(InProcessId) , bIsRunning(true) // assume it is , bHasBeenWaitedFor(false) , ReturnCode(-1) , bFireAndForget(bInFireAndForget) { } FProcState::~FProcState() { if (!bFireAndForget) { // If not in 'fire and forget' mode, try to catch the common problems that leave zombies: // - We don't want to close the handle of a running process as with our current scheme this will certainly leak a zombie. // - Nor we want to leave the handle unwait()ed for. if (bIsRunning) { // Warn the users before going into what may be a very long block UE_LOG(LogHAL, Warning, TEXT("Closing a process handle while the process (pid=%d) is still running - we will block until it exits to prevent a zombie"), GetProcessId() ); } else if (!bHasBeenWaitedFor) // if child is not running, but has not been waited for, still communicate a problem, but we shouldn't be blocked for long in this case. { UE_LOG(LogHAL, Warning, TEXT("Closing a process handle of a process (pid=%d) that has not been wait()ed for - will wait() now to reap a zombie"), GetProcessId() ); } Wait(); // will exit immediately if everything is Ok } else if (IsRunning()) { // warn about leaking a thread ;/ UE_LOG(LogHAL, Warning, TEXT("Process (pid=%d) is still running - we will reap it in a waiter thread, but the thread handle is going to be leaked."), GetProcessId() ); FChildWaiterThread * WaiterRunnable = new FChildWaiterThread(GetProcessId()); // [RCL] 2015-03-11 @FIXME: do not leak FRunnableThread * WaiterThread = FRunnableThread::Create(WaiterRunnable, *FString::Printf(TEXT("waitpid(%d)"), GetProcessId(), 32768 /* needs just a small stack */, TPri_BelowNormal)); } } bool FProcState::IsRunning() { if (bIsRunning) { check(!bHasBeenWaitedFor); // check for the sake of internal consistency // check if actually running int KillResult = kill(GetProcessId(), 0); // no actual signal is sent check(KillResult != -1 || errno != EINVAL); bIsRunning = (KillResult == 0 || (KillResult == -1 && errno == EPERM)); // additional check if it's a zombie if (bIsRunning) { for(;;) // infinite loop in case we get EINTR and have to repeat { siginfo_t SignalInfo; SignalInfo.si_pid = 0; // if remains 0, treat as child was not waitable (i.e. was running) if (waitid(P_PID, GetProcessId(), &SignalInfo, WEXITED | WNOHANG | WNOWAIT)) { if (errno != EINTR) { int ErrNo = errno; UE_LOG(LogHAL, Fatal, TEXT("FLinuxPlatformProcess::WaitForProc: waitid for pid %d failed (errno=%d, %s)"), static_cast< int32 >(GetProcessId()), ErrNo, ANSI_TO_TCHAR(strerror(ErrNo))); break; // exit the loop if for some reason Fatal log (above) returns } } else { bIsRunning = ( SignalInfo.si_pid != GetProcessId() ); break; } } } // If child is a zombie, wait() immediately to free up kernel resources. Higher level code // (e.g. shader compiling manager) can hold on to handle of no longer running process for longer, // which is a dubious, but valid behavior. We don't want to keep zombie around though. if (!bIsRunning) { UE_LOG(LogHAL, Log, TEXT("Child %d is no more running (zombie), Wait()ing immediately."), GetProcessId() ); Wait(); } } return bIsRunning; } bool FProcState::GetReturnCode(int32* ReturnCodePtr) { check(!bIsRunning || !"You cannot get a return code of a running process"); if (!bHasBeenWaitedFor) { Wait(); } if (ReturnCode != -1) { if (ReturnCodePtr != NULL) { *ReturnCodePtr = ReturnCode; } return true; } return false; } void FProcState::Wait() { if (bHasBeenWaitedFor) { return; // we could try waitpid() another time, but why } for(;;) // infinite loop in case we get EINTR and have to repeat { siginfo_t SignalInfo; if (waitid(P_PID, GetProcessId(), &SignalInfo, WEXITED)) { if (errno != EINTR) { int ErrNo = errno; UE_LOG(LogHAL, Fatal, TEXT("FLinuxPlatformProcess::WaitForProc: waitid for pid %d failed (errno=%d, %s)"), static_cast< int32 >(GetProcessId()), ErrNo, ANSI_TO_TCHAR(strerror(ErrNo))); break; // exit the loop if for some reason Fatal log (above) returns } } else { check(SignalInfo.si_pid == GetProcessId()); ReturnCode = (SignalInfo.si_code == CLD_EXITED) ? SignalInfo.si_status : -1; bHasBeenWaitedFor = true; bIsRunning = false; // set in advance break; } } } bool FLinuxPlatformProcess::IsProcRunning( FProcHandle & ProcessHandle ) { FProcState * ProcInfo = ProcessHandle.GetProcessInfo(); return ProcInfo ? ProcInfo->IsRunning() : false; } void FLinuxPlatformProcess::WaitForProc( FProcHandle & ProcessHandle ) { FProcState * ProcInfo = ProcessHandle.GetProcessInfo(); if (ProcInfo) { ProcInfo->Wait(); } } void FLinuxPlatformProcess::CloseProc(FProcHandle & ProcessHandle) { // dispose of both handle and process info FProcState * ProcInfo = ProcessHandle.GetProcessInfo(); ProcessHandle.Reset(); delete ProcInfo; } void FLinuxPlatformProcess::TerminateProc( FProcHandle & ProcessHandle, bool KillTree ) { if (KillTree) { // TODO: enumerate the children STUBBED("FLinuxPlatformProcess::TerminateProc() : Killing a subtree is not implemented yet"); } FProcState * ProcInfo = ProcessHandle.GetProcessInfo(); if (ProcInfo) { int KillResult = kill(ProcInfo->GetProcessId(), SIGTERM); // graceful check(KillResult != -1 || errno != EINVAL); } } uint32 FLinuxPlatformProcess::GetCurrentProcessId() { return getpid(); } FString FLinuxPlatformProcess::GetCurrentWorkingDirectory() { // get the current directory ANSICHAR CurrentDir[MAX_PATH] = { 0 }; getcwd(CurrentDir, sizeof(CurrentDir)); return UTF8_TO_TCHAR(CurrentDir); } bool FLinuxPlatformProcess::GetProcReturnCode(FProcHandle& ProcHandle, int32* ReturnCode) { if (IsProcRunning(ProcHandle)) { return false; } FProcState * ProcInfo = ProcHandle.GetProcessInfo(); return ProcInfo ? ProcInfo->GetReturnCode(ReturnCode) : false; } bool FLinuxPlatformProcess::Daemonize() { if (daemon(1, 1) == -1) { int ErrNo = errno; UE_LOG(LogHAL, Warning, TEXT("daemon(1, 1) failed with errno = %d (%s)"), ErrNo, StringCast< TCHAR >(strerror(ErrNo)).Get()); return false; } return true; } bool FLinuxPlatformProcess::IsApplicationRunning( uint32 ProcessId ) { errno = 0; getpriority(PRIO_PROCESS, ProcessId); return errno == 0; } bool FLinuxPlatformProcess::IsThisApplicationForeground() { extern FLinuxApplication* LinuxApplication; return (LinuxApplication != nullptr) ? LinuxApplication->IsForeground() : true; } bool FLinuxPlatformProcess::IsApplicationRunning( const TCHAR* ProcName ) { FString Commandline = TEXT("pidof '"); Commandline += ProcName; Commandline += TEXT("' > /dev/null"); return !system(TCHAR_TO_UTF8(*Commandline)); } bool FLinuxPlatformProcess::ExecProcess( const TCHAR* URL, const TCHAR* Params, int32* OutReturnCode, FString* OutStdOut, FString* OutStdErr ) { FString CmdLineParams = Params; FString ExecutableFileName = URL; int32 ReturnCode = -1; FString DefaultError; if (!OutStdErr) { OutStdErr = &DefaultError; } void* PipeRead = nullptr; void* PipeWrite = nullptr; verify(FPlatformProcess::CreatePipe(PipeRead, PipeWrite)); bool bInvoked = false; const bool bLaunchDetached = true; const bool bLaunchHidden = false; const bool bLaunchReallyHidden = bLaunchHidden; FProcHandle ProcHandle = FPlatformProcess::CreateProc(*ExecutableFileName, *CmdLineParams, bLaunchDetached, bLaunchHidden, bLaunchReallyHidden, NULL, 0, NULL, PipeWrite); if (ProcHandle.IsValid()) { while (FPlatformProcess::IsProcRunning(ProcHandle)) { FString NewLine = FPlatformProcess::ReadPipe(PipeRead); if (NewLine.Len() > 0) { if (OutStdOut != nullptr) { *OutStdOut += NewLine; } } FPlatformProcess::Sleep(0.5); } // read the remainder for(;;) { FString NewLine = FPlatformProcess::ReadPipe(PipeRead); if (NewLine.Len() <= 0) { break; } if (OutStdOut != nullptr) { *OutStdOut += NewLine; } } FPlatformProcess::Sleep(0.5); bInvoked = true; bool bGotReturnCode = FPlatformProcess::GetProcReturnCode(ProcHandle, &ReturnCode); check(bGotReturnCode); *OutReturnCode = ReturnCode; FPlatformProcess::CloseProc(ProcHandle); } else { bInvoked = false; *OutReturnCode = -1; *OutStdOut = ""; UE_LOG(LogHAL, Warning, TEXT("Failed to launch Tool. (%s)"), *ExecutableFileName); } FPlatformProcess::ClosePipe(PipeRead, PipeWrite); return bInvoked; } void FLinuxPlatformProcess::LaunchFileInDefaultExternalApplication( const TCHAR* FileName, const TCHAR* Parms, ELaunchVerb::Type Verb ) { // TODO This ignores parms and verb pid_t pid = fork(); if (pid == 0) { exit(execl("/usr/bin/xdg-open", "xdg-open", TCHAR_TO_UTF8(FileName), (char *)0)); } } void FLinuxPlatformProcess::ExploreFolder( const TCHAR* FilePath ) { // TODO This is broken, not an explore action but should be fine if called on a directory FLinuxPlatformProcess::LaunchFileInDefaultExternalApplication(FilePath, NULL, ELaunchVerb::Edit); } /** * Private struct to store implementation specific data. */ struct FProcEnumData { // Array of processes. TArray<FLinuxPlatformProcess::FProcEnumInfo> Processes; // Current process id. uint32 CurrentProcIndex; }; FLinuxPlatformProcess::FProcEnumerator::FProcEnumerator() { Data = new FProcEnumData; Data->CurrentProcIndex = -1; TArray<uint32> PIDs; class FPIDsCollector : public IPlatformFile::FDirectoryVisitor { public: FPIDsCollector(TArray<uint32>& InPIDsToCollect) : PIDsToCollect(InPIDsToCollect) { } bool Visit(const TCHAR* FilenameOrDirectory, bool bIsDirectory) { FString StrPID = FPaths::GetBaseFilename(FilenameOrDirectory); if (bIsDirectory && FCString::IsNumeric(*StrPID)) { PIDsToCollect.Add(FCString::Atoi(*StrPID)); } return true; } private: TArray<uint32>& PIDsToCollect; } PIDsCollector(PIDs); IPlatformFile::GetPlatformPhysical().IterateDirectory(TEXT("/proc"), PIDsCollector); for (auto PID : PIDs) { Data->Processes.Add(FProcEnumInfo(PID)); } } FLinuxPlatformProcess::FProcEnumerator::~FProcEnumerator() { delete Data; } FLinuxPlatformProcess::FProcEnumInfo FLinuxPlatformProcess::FProcEnumerator::GetCurrent() const { return Data->Processes[Data->CurrentProcIndex]; } bool FLinuxPlatformProcess::FProcEnumerator::MoveNext() { if (Data->CurrentProcIndex + 1 == Data->Processes.Num()) { return false; } ++Data->CurrentProcIndex; return true; } FLinuxPlatformProcess::FProcEnumInfo::FProcEnumInfo(uint32 InPID) : PID(InPID) { } uint32 FLinuxPlatformProcess::FProcEnumInfo::GetPID() const { return PID; } uint32 FLinuxPlatformProcess::FProcEnumInfo::GetParentPID() const { char Buf[256]; uint32 DummyNumber; char DummyChar; uint32 ParentPID; sprintf(Buf, "/proc/%d/stat", GetPID()); FILE* FilePtr = fopen(Buf, "r"); fscanf(FilePtr, "%d %s %c %d", &DummyNumber, Buf, &DummyChar, &ParentPID); fclose(FilePtr); return ParentPID; } FString FLinuxPlatformProcess::FProcEnumInfo::GetFullPath() const { return GetApplicationName(GetPID()); } FString FLinuxPlatformProcess::FProcEnumInfo::GetName() const { return FPaths::GetCleanFilename(GetFullPath()); }
26.875937
253
0.707045
PopCap
ec349105626f6ef1b4acc73abbf21be54516c61e
4,545
cpp
C++
LaalMathEngine/src/Shape/SvgShape.cpp
vijayshankarkumar/LME
6483d893a8902cec4959936220656fcab2b72d4f
[ "MIT" ]
1
2022-02-18T10:38:42.000Z
2022-02-18T10:38:42.000Z
LaalMathEngine/src/Shape/SvgShape.cpp
vijayshankarkumar/LME
6483d893a8902cec4959936220656fcab2b72d4f
[ "MIT" ]
1
2021-09-03T21:20:38.000Z
2021-09-03T21:20:38.000Z
LaalMathEngine/src/Shape/SvgShape.cpp
vijayshankarkumar/LME
6483d893a8902cec4959936220656fcab2b72d4f
[ "MIT" ]
null
null
null
#include "Shape/SvgShape.h" namespace laal { SvgShape::SvgShape() { } SvgShape::SvgShape(const std::string& fileName) { InitChildShapes(fileName); } SvgShape::~SvgShape() { for (Shape* shape : m_ChildShapes) { delete shape; } } void SvgShape::InitChildShapes(const std::string& fileName) { NSVGimage* image; image = nsvgParseFromFile(fileName.c_str(), "px", 96); //std::cout << "after the image init..." << std::endl; for (NSVGshape* shape = image->shapes; shape != NULL; shape = shape->next) { //std::cout << "In ther loop..." << std::endl; Shape* childShape = new Shape(); SetFillStyle(shape, childShape); SetStrokeStyle(shape, childShape); SetPath(shape, childShape); Add(childShape); } nsvgDelete(image); } void SvgShape::SetFillStyle(NSVGshape* fromShape, Shape* toShape) { Style fillStyle; switch (fromShape->fill.type) { case NSVG_PAINT_NONE: fillStyle.StyleType(STYLE_NONE); break; case NSVG_PAINT_COLOR: { unsigned int color = fromShape->fill.color; double r = (double)(color & 255) / 255.0; color >>= 8; double g = (double)(color & 255) / 255.0; color >>= 8; double b = (double)(color & 255) / 255.0; color >>= 8; double a = (double)(color) / 255.0; fillStyle.SetColor(Color(r, g, b, a)); //std::cout << "fill color => " << r << " " << g << " " << b << " " << a << std::endl; break; } case NSVG_PAINT_LINEAR_GRADIENT: break; case NSVG_PAINT_RADIAL_GRADIENT: break; default: break; } switch (fromShape->fillRule) { case NSVG_FILLRULE_EVENODD: fillStyle.FillRule(FILL_RULE_EVENODD); break; case NSVG_FILLRULE_NONZERO: fillStyle.FillRule(FILL_RULE_NONEZERO); break; default: break; } fillStyle.Opacity(fromShape->opacity); toShape->SetFillStyle(fillStyle); } void SvgShape::SetStrokeStyle(NSVGshape* fromShape, Shape* toShape) { /*switch (fromShape->stroke.type) { case NSVG_PAINT_NONE: toShape->FillType(FILL_NONE); break; case NSVG_PAINT_COLOR: toShape->StrokeColor(fromShape->fill.color); break; case NSVG_PAINT_LINEAR_GRADIENT: break; case NSVG_PAINT_RADIAL_GRADIENT: break; default: break; } switch (fromShape->fillRule) { case NSVG_FILLRULE_EVENODD: toShape->FillRule(FILL_RULE_EVENODD); break; case NSVG_FILLRULE_NONZERO: toShape->FillRule(FILL_RULE_NONEZERO); break; default: break; }*/ if (fromShape->fill.type == NSVG_PAINT_COLOR) { unsigned int color = fromShape->fill.color; double r = (double)(color & 255) / 255.0; color >>= 8; double g = (double)(color & 255) / 255.0; color >>= 8; double b = (double)(color & 255) / 255.0; color >>= 8; double a = (double)(color) / 255.0; toShape->StrokeColor(Color(r, g, b, a)); //std::cout << "stroke color => " << r << " " << g << " " << b << " " << a << std::endl; } toShape->StrokeOpacity(fromShape->opacity); toShape->StrokeWidth(fromShape->strokeWidth); //std::cout << "stroke type => " << fromShape->stroke.type << std::endl; //std::cout << "stroke width => " << fromShape->strokeWidth << std::endl; } void SvgShape::SetPath(NSVGshape* fromShape, Shape* toShape) { for (NSVGpath* path = fromShape->paths; path != NULL; path = path->next) { toShape->StartNewPath(Point(path->pts[0], path->pts[1], 0.0)); for (int i = 0; i < path->npts - 1; i += 3) { float* p = &path->pts[i * 2]; toShape->LastPath()->AddPoint(Point(p[2], p[3], 0.0)); toShape->LastPath()->AddPoint(Point(p[4], p[5], 0.0)); toShape->LastPath()->AddPoint(Point(p[6], p[7], 0.0)); } toShape->LastPath()->MiterLimit(fromShape->miterLimit); switch (fromShape->strokeLineJoin) { case NSVG_JOIN_BEVEL: toShape->LastPath()->LineJoin(JOIN_BAVEL); break; case NSVG_JOIN_MITER: toShape->LastPath()->LineJoin(JOIN_MITER); break; case NSVG_JOIN_ROUND: toShape->LastPath()->LineJoin(JOIN_ROUND); break; default: break; } switch (fromShape->strokeLineCap) { case NSVG_CAP_BUTT: toShape->LastPath()->LineCap(CAP_BUTT); break; case NSVG_CAP_ROUND: toShape->LastPath()->LineCap(CAP_ROUND); break; case NSVG_CAP_SQUARE: toShape->LastPath()->LineCap(CAP_SQUARE); break; default: break; } //std::cout << "path closed flag => " << (int)path->closed << std::endl; if ((int)path->closed == 0) { toShape->LastPath()->Close(); //std::cout << "path is closed...." << std::endl; } } } }
22.5
91
0.626843
vijayshankarkumar
ec360c64fc078ef775cec6f7c9475b9ced8fe411
1,343
cc
C++
src/leveldb/db/version_edit_test.cc
moorecoin/MooreCoinMiningAlgorithm
fe6a153e1392f6e18110b1e69481aa5c3c8b4a1d
[ "MIT" ]
null
null
null
src/leveldb/db/version_edit_test.cc
moorecoin/MooreCoinMiningAlgorithm
fe6a153e1392f6e18110b1e69481aa5c3c8b4a1d
[ "MIT" ]
null
null
null
src/leveldb/db/version_edit_test.cc
moorecoin/MooreCoinMiningAlgorithm
fe6a153e1392f6e18110b1e69481aa5c3c8b4a1d
[ "MIT" ]
null
null
null
// copyright (c) 2011 the leveldb authors. all rights reserved. // use of this source code is governed by a bsd-style license that can be // found in the license file. see the authors file for names of contributors. #include "db/version_edit.h" #include "util/testharness.h" namespace leveldb { static void testencodedecode(const versionedit& edit) { std::string encoded, encoded2; edit.encodeto(&encoded); versionedit parsed; status s = parsed.decodefrom(encoded); assert_true(s.ok()) << s.tostring(); parsed.encodeto(&encoded2); assert_eq(encoded, encoded2); } class versionedittest { }; test(versionedittest, encodedecode) { static const uint64_t kbig = 1ull << 50; versionedit edit; for (int i = 0; i < 4; i++) { testencodedecode(edit); edit.addfile(3, kbig + 300 + i, kbig + 400 + i, internalkey("foo", kbig + 500 + i, ktypevalue), internalkey("zoo", kbig + 600 + i, ktypedeletion)); edit.deletefile(4, kbig + 700 + i); edit.setcompactpointer(i, internalkey("x", kbig + 900 + i, ktypevalue)); } edit.setcomparatorname("foo"); edit.setlognumber(kbig + 100); edit.setnextfile(kbig + 200); edit.setlastsequence(kbig + 1000); testencodedecode(edit); } } // namespace leveldb int main(int argc, char** argv) { return leveldb::test::runalltests(); }
28.574468
77
0.676098
moorecoin
ec3dedc1db72bb18c98c72b2040a10eee84a5009
62,323
cpp
C++
Analysis/Calibration/LinearCalibrationModel.cpp
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
125
2015-01-22T05:43:23.000Z
2022-03-22T17:15:59.000Z
Analysis/Calibration/LinearCalibrationModel.cpp
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
59
2015-02-10T09:13:06.000Z
2021-11-11T02:32:38.000Z
Analysis/Calibration/LinearCalibrationModel.cpp
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
98
2015-01-17T01:25:10.000Z
2022-03-18T17:29:42.000Z
/* Copyright (C) 2015 Life Technologies Corporation, a part of Thermo Fisher Scientific, Inc. All Rights Reserved. */ //! @file LinearCalibrationModel.cpp //! @ingroup Calibration //! @brief LinearCalibrationModel. Algorithms for adjusting the predicted signal by homopolymer. //! @brief During model training we collect pairs of measured and predicted signals by homopolymer //! @brief and determine offset and gain coefficients. //! @brief During model application we adjust the predicted signal using the model parameters. #include <math.h> #include <SystemMagicDefines.h> #include "LinearCalibrationModel.h" #include "FlowAlignment.h" // ========================================================================== // A general word of caution: // The module LinearCalibrationModel uses closed intervals in its json representation. // Expect for "max_hp_calibrated", which is exclusive. void LinearCalibrationModel::PrintHelp_Training() { cout << "LinearCalibrationModel Training Options:" << endl; cout << " --model-calibration BOOL Turn training for this module on/off [true]" << endl; cout << " --model-training-style STR Train using {common-offset, old-style} [common-offset]" << endl; cout << " --model-calib-min-hp INT Min homopolymer length to be trained [0]" << endl; cout << " --model-calib-min-samples INT Min required number of samples per HP [50]" << endl; cout << " --model-calib-min-inphase FLOAT Minimum fraction of in-phase molecules [0.1]" << endl; cout << " --model-calib-max-residual FLOAT Maximum accepted value for scaled residual [1.5]" << endl; cout << " --model-calib-max-gain-shift FLOAT Max shift in slope between adjacent lengths [0.1]" << endl; cout << " --model-multi-train BOOL Train adjacent homopolymers using same data [false]" << endl; cout << " --multi-weight INT Weight of target homopolymer compared to adjacent ones [10]" << endl; cout << " --model-training-stats BOOL Switch to output training statistics [false]" << endl; // These option only have an effect on the model training portion of the code } // ========================================================================== // Structure to accumulate statistics for an atomic calibration unit LinearFitCell::LinearFitCell() { Reset(); }; // -------------------------------------------------------------------------- void LinearFitCell::Reset() { mean_pred_ = 0.0; mean_measured_ = 0.0; M2pred_ = 0.0; M2meas_ = 0.0; Cn_ = 0.0; nsamples_ = 0; nreads_ = 0; }; // set a flat prior at '1,0' void LinearFitCell::Prior(float center, float var, int xamples) { mean_pred_ = center; mean_measured_ = center; M2pred_ = var; M2meas_ = var; Cn_ = var; nsamples_ = xamples; }; //discount void LinearFitCell::ReduceStrength(int xamples) { if (xamples<(int)nsamples_){ float super_ratio = (xamples*1.0f)/(nsamples_*1.0f); M2pred_ *= super_ratio; M2meas_ *= super_ratio; Cn_ *= super_ratio; nsamples_ = xamples; } } // -------------------------------------------------------------------------- // Update for adding one more data point void LinearFitCell::AddDataPoint(float prediction, float measured) { ++nsamples_; double delta_p = prediction - mean_pred_; mean_pred_ += delta_p / (double)nsamples_; double delta_m = measured - mean_measured_; mean_measured_ += delta_m / (double)nsamples_; M2pred_ += delta_p * (prediction - mean_pred_); M2meas_ += delta_m * (measured - mean_measured_); Cn_ += delta_p * (measured - mean_measured_); if (active_){ nreads_++; active_ = false; // ate this read already } }; // -------------------------------------------------------------------------- // Add data from one cell to a master cell void LinearFitCell::AccumulateTrainingData(const LinearFitCell& other) { if (other.nsamples_ == 0) return; // Nothing to do if (nsamples_ == 0){ nsamples_ = other.nsamples_; mean_pred_ = other.mean_pred_; mean_measured_ = other.mean_measured_; M2pred_ = other.M2pred_; M2meas_ = other.M2meas_; Cn_ = other.Cn_; nreads_ = other.nreads_; return; } // We have data in both the master as well as the input cell and have to combine them unsigned long total_samples = other.nsamples_ + nsamples_; double delta_mean_p = other.mean_pred_ - mean_pred_; mean_pred_ += (delta_mean_p * (double)other.nsamples_) / (double)total_samples; M2pred_ += other.M2pred_ + (delta_mean_p * (double)nsamples_ / (double)total_samples * delta_mean_p * (double)other.nsamples_) ; double delta_mean_m = other.mean_measured_ - mean_measured_; mean_measured_ += (delta_mean_m * (double)other.nsamples_) / (double)total_samples; M2meas_ += other.M2meas_ + (delta_mean_m * (double)nsamples_ / (double)total_samples * delta_mean_m * (double)other.nsamples_) ; Cn_ += other.Cn_ + (delta_mean_p * (double)nsamples_ / (double)total_samples * delta_mean_m * (double)other.nsamples_); nsamples_ = total_samples; nreads_ = other.nreads_ + nreads_; }; // -------------------------------------------------------------------------- void LinearFitCell::GetSlopeOnlyFit(double &gain) const { gain = (Cn_ / (double)(nsamples_-1) + (mean_pred_ * mean_measured_)) / (M2pred_ / (double)(nsamples_-1) + (mean_pred_ * mean_pred_)); }; // -------------------------------------------------------------------------- void LinearFitCell::GetSlopeAndInterceptFit(double &gain, double &offset) const { gain = Cn_ / M2pred_; offset = mean_measured_ - (gain * mean_pred_); }; void LinearFitCell::GetSafeSlopeAndInterceptFit(double &gain, double &offset, double safety_frac) const { GetSlopeAndInterceptFit(gain, offset); double valid_offset = mean_measured_ * safety_frac; if (offset>valid_offset){ offset = valid_offset; } if (offset<(-valid_offset)){ offset = -valid_offset; } gain = GetSlopeOnlyFitWithOffset(offset); }; // -------------------------------------------------------------------------- double LinearFitCell::GetSlopeOnlyFitWithOffset(double offset) const { double new_mean_pred = mean_pred_ + offset; // We store centered sums of squares and now we un-center them with the new mean return ((Cn_ / (double)(nsamples_-1) + (new_mean_pred * mean_measured_)) / (M2pred_ / (double)(nsamples_-1) + (new_mean_pred * new_mean_pred))); } // -------------------------------------------------------------------------- double LinearFitCell::GetOffsetOnly() const { return (mean_measured_ - mean_pred_); } // -------------------------------------------------------------------------- Json::Value LinearFitCell::DataToJson() const { Json::Value my_value(Json::objectValue); my_value["num_samples"] = (Json::UInt64)nsamples_; my_value["mean_predicted"] = mean_pred_; my_value["mean_measured"] = mean_measured_; if (nsamples_ > 1){ my_value["var_predicted"] = M2pred_ / (double)(nsamples_-1); my_value["var_measured"] = M2meas_ / (double)(nsamples_-1); my_value["covariance"] = Cn_ / (double)(nsamples_-1); } else{ my_value["var_predictions"] = 0.0f; my_value["var_measured"] = 0.0f; my_value["covariance"] = 0.0f; } return my_value; } // ========================================================================== // gain and offset stratified by <flow><nucleotide><called_hp length> void LinCalModelRegion::Initialize(int num_flow_windows) { gain_values.resize(num_flow_windows); offset_values.resize(num_flow_windows); for (int iWindow=0; iWindow < num_flow_windows; ++iWindow){ gain_values.at(iWindow).resize(4); offset_values.at(iWindow).resize(4); for (int iNuc=0; iNuc < 4; ++iNuc){ gain_values.at(iWindow).at(iNuc).assign(MAX_HPXLEN+1, 1.0); offset_values.at(iWindow).at(iNuc).assign(MAX_HPXLEN+1, 0.0); } } } // -------------------------------------------------------------------------- // This function exists because in the future we want to do something smarter // than just copying the values void LinCalModelRegion::SetModelGainsAndOffsets(int num_flows, int flow_window_size) { gains.resize(num_flows); offsets.resize(num_flows); int my_flow_window = 0; for (int iFlow=0; iFlow<num_flows; ++iFlow){ gains.at(iFlow).resize(4); offsets.at(iFlow).resize(4); my_flow_window = iFlow / flow_window_size; for (int iNuc=0; iNuc < 4; ++iNuc) { gains.at(iFlow).at(iNuc).resize(MAX_HPXLEN+1); offsets.at(iFlow).at(iNuc).resize(MAX_HPXLEN+1); for (int iHP=0; iHP <= MAX_HPXLEN; ++iHP) { gains.at(iFlow).at(iNuc).at(iHP) = gain_values.at(my_flow_window).at(iNuc).at(iHP); offsets.at(iFlow).at(iNuc).at(iHP) = offset_values.at(my_flow_window).at(iNuc).at(iHP); } } } } // -------------------------------------------------------------------------- void LinCalModelRegion::InitializeTrainingData(int num_flow_windows) { training_data.resize(num_flow_windows); for (int iWindow=0; iWindow < num_flow_windows; ++iWindow){ training_data.at(iWindow).resize(4); for (int iNuc=0; iNuc < 4; ++iNuc) { training_data.at(iWindow).at(iNuc).resize(MAX_HPXLEN+1); for (int iHP=0; iHP <= MAX_HPXLEN; ++iHP) { training_data.at(iWindow).at(iNuc).at(iHP).Reset(); } } } } // data points come from fresh read, as opposed to additional data within same read void LinCalModelRegion::FreshReadData() { for (unsigned int iWindow=0; iWindow < training_data.size(); ++iWindow){ for (unsigned int iNuc=0; iNuc < training_data.at(iWindow).size(); ++iNuc) { for (unsigned int iHP=0; iHP < training_data.at(iWindow).at(iNuc).size(); ++iHP) { training_data.at(iWindow).at(iNuc).at(iHP).SetActive(true); } } } } // -------------------------------------------------------------------------- void LinCalModelRegion::AccumulateTrainingData(const LinCalModelRegion& other) { for (unsigned int iWindow=0; iWindow < training_data.size(); ++iWindow){ for (unsigned int iNuc=0; iNuc < training_data.at(iWindow).size(); ++iNuc) { for (unsigned int iHP=0; iHP < training_data.at(iWindow).at(iNuc).size(); ++iHP) { training_data.at(iWindow).at(iNuc).at(iHP).AccumulateTrainingData(other.training_data.at(iWindow).at(iNuc).at(iHP)); } } } } // -------------------------------------------------------------------------- // Single line function??? // because caller should not know internal data structure of lincalmodelregion void LinCalModelRegion::AddDataPoint(int flow_window, int nuc, int hp, float prediction, float measured) { training_data.at(flow_window).at(nuc).at(hp).AddDataPoint(prediction, measured); } // -------------------------------------------------------------------------- // We take training data and turn it into a calibration model // This is a different approach than the one in the calibrate module int LinCalModelRegion::CreateCalibrationModel(int region_idx, unsigned long min_nsamples, float max_gain_shift, bool verbose) { // Initialize data structures to hold model parameters Initialize(training_data.size()); double offset_zero, gain_value; int max_hp_calibrated = 0; vector<int> max_hps_calibrated(4,0); // Iterate over atomic elements for (unsigned int iWindow=0; iWindow < training_data.size(); ++iWindow){ max_hps_calibrated.assign(4,0); for (unsigned int iNuc=0; iNuc < 4; ++iNuc) { //cout << " -- Computing model for window " << iWindow << " nuc " << ion::FlowOrder::IntToNuc(iNuc) << endl; // Compute a common offset from the zero-mer values if (training_data.at(iWindow).at(iNuc).at(0).NumSamples() >= min_nsamples) { offset_zero = training_data.at(iWindow).at(iNuc).at(0).GetOffsetOnly(); offset_values.at(iWindow).at(iNuc).at(0) = offset_zero; } else offset_zero = 0; //cout << " -> Offset: " << offset_zero << "Gains: "; for (int iHP=1; iHP <= MAX_HPXLEN; ++iHP) { offset_values.at(iWindow).at(iNuc).at(iHP) = offset_zero; if (training_data.at(iWindow).at(iNuc).at(iHP).NumSamples() >= min_nsamples) { gain_values.at(iWindow).at(iNuc).at(iHP) = training_data.at(iWindow).at(iNuc).at(iHP).GetSlopeOnlyFitWithOffset(offset_zero); // it may be helpful to restrain this // ((a*HP-b)-(a'*HP-b)) vs k*HP -> abs(a-a')<k float last_gain = gain_values.at(iWindow).at(iNuc).at(iHP-1); float cur_gain = gain_values.at(iWindow).at(iNuc).at(iHP); if ((last_gain-cur_gain)>max_gain_shift){ cur_gain=last_gain-max_gain_shift; } if ((cur_gain-last_gain)>max_gain_shift){ cur_gain = last_gain+max_gain_shift; } gain_values.at(iWindow).at(iNuc).at(iHP)=cur_gain; max_hp_calibrated = max(max_hp_calibrated, iHP); max_hps_calibrated.at(iNuc) = max(max_hps_calibrated.at(iNuc), iHP); //cout << gain_values.at(iWindow).at(iNuc).at(iHP) << ", "; } else { // Zero order interpolation if we don't have enough training data gain_values.at(iWindow).at(iNuc).at(iHP) = gain_values.at(iWindow).at(iNuc).at(iHP-1); //cout << gain_values.at(iWindow).at(iNuc).at(iHP) << "(" << training_data.at(iWindow).at(iNuc).at(iHP).GetNSamples()<< "), "; } } } // Print maximum calibrated hp lengths by region, window, and nucleotide to log file. if (verbose) { if (iWindow == 0) cout << "LinearModelCalibration: Max HP calibrated, region " << region_idx; cout << "; window " << iWindow << ": " << max_hps_calibrated.at(0) << ion::FlowOrder::IntToNuc(0); for (unsigned int iNuc=1; iNuc < 4; ++iNuc) { cout << "," << max_hps_calibrated.at(iNuc) << ion::FlowOrder::IntToNuc(iNuc); } if (iWindow == training_data.size()-1) cout << endl; } } return max_hp_calibrated; } // ----------------------------------------------------------- // free-form can soak up issues with phasing int LinCalModelRegion::CreateOldStyleCalibrationModel(int region_idx, unsigned long min_nsamples, bool verbose) { // Initialize data structures to hold model parameters Initialize(training_data.size()); double offset_zero, gain_value; int max_hp_calibrated = 0; vector<int> max_hps_calibrated(4,0); // Iterate over atomic elements for (unsigned int iWindow=0; iWindow < training_data.size(); ++iWindow){ max_hps_calibrated.assign(4,0); for (unsigned int iNuc=0; iNuc < 4; ++iNuc) { //cout << " -- Computing model for window " << iWindow << " nuc " << ion::FlowOrder::IntToNuc(iNuc) << endl; // Compute a common offset from the zero-mer values if (training_data.at(iWindow).at(iNuc).at(0).NumSamples() >= min_nsamples) { offset_zero = training_data.at(iWindow).at(iNuc).at(0).GetOffsetOnly(); offset_values.at(iWindow).at(iNuc).at(0) = offset_zero; } else offset_zero = 0; //cout << " -> Offset: " << offset_zero << "Gains: "; double last_good_gain = 1.0; for (int iHP=1; iHP <= MAX_HPXLEN; ++iHP) { offset_values.at(iWindow).at(iNuc).at(iHP) = offset_zero; if (training_data.at(iWindow).at(iNuc).at(iHP).NumSamples() >= min_nsamples) { double tmp_gain, tmp_offset; //old-style free-form any slope/intercept combination // safety: not more than 30% of the mean measurement for offset training_data.at(iWindow).at(iNuc).at(iHP).GetSafeSlopeAndInterceptFit(tmp_gain, tmp_offset,0.3); gain_values.at(iWindow).at(iNuc).at(iHP) = tmp_gain; offset_values.at(iWindow).at(iNuc).at(iHP) = tmp_offset; // track what we would see with a simple model with offset last_good_gain = training_data.at(iWindow).at(iNuc).at(iHP).GetSlopeOnlyFitWithOffset(offset_zero); max_hp_calibrated = max(max_hp_calibrated, iHP); max_hps_calibrated.at(iNuc) = max(max_hps_calibrated.at(iNuc), iHP); //cout << gain_values.at(iWindow).at(iNuc).at(iHP) << ", "; } else { // Zero order interpolation if we don't have enough training data // extrapolate with the last good gain - effectively with near-zero intercept to be good gain_values.at(iWindow).at(iNuc).at(iHP) = last_good_gain; //cout << gain_values.at(iWindow).at(iNuc).at(iHP) << "(" << training_data.at(iWindow).at(iNuc).at(iHP).GetNSamples()<< "), "; // old-style requires explicit tables with extrapolation done beforehand } } } // Print maximum calibrated hp lengths by region, window, and nucleotide to log file. if (verbose) { if (iWindow == 0) cout << "LinearModelCalibration: Max HP calibrated, region " << region_idx; cout << "; window " << iWindow << ": " << max_hps_calibrated.at(0) << ion::FlowOrder::IntToNuc(0); for (unsigned int iNuc=1; iNuc < 4; ++iNuc) { cout << "," << max_hps_calibrated.at(iNuc) << ion::FlowOrder::IntToNuc(iNuc); } if (iWindow == training_data.size()-1) cout << endl; } } return max_hp_calibrated+1; // include a gain-only for extrapolation to work properly } // -------------------------------------------------------------------------- void LinCalModelRegion::CoefficientZeroOrderHold(int hold_hp) { int start_hp = hold_hp+1; for (unsigned int iWindow=0; iWindow < gain_values.size(); ++iWindow){ for (unsigned int iNuc=0; iNuc < gain_values.at(iWindow).size(); ++iNuc) { for (unsigned int iHP=start_hp; iHP < gain_values.at(iWindow).at(iNuc).size(); ++iHP) { offset_values.at(iWindow).at(iNuc).at(iHP) = offset_values.at(iWindow).at(iNuc).at(hold_hp); gain_values.at(iWindow).at(iNuc).at(iHP) = gain_values.at(iWindow).at(iNuc).at(hold_hp); } } } } // ========================================================================== // multiple constructors need a certain amount of common information void LinearCalibrationModel::Defaults(){ do_training_ = false; is_enabled_ = false; verbose_ = false; debug_ = false; output_training_stats_ = false; min_num_samples_ = 50; min_num_reads_ = 250; hp_threshold_ = 0; flow_window_size_ = 0; num_flow_windows_ = 0; num_flows_ = 0; min_state_inphase_ = 0.1; max_scaled_residual_ = 1.5; training_mode_ = 1; multi_weight_ = 10; multi_train_ = false; max_gain_shift_ = 0.1f; // really quite large! training_method_ = "common-offset"; max_hp_calibrated_ = MAX_HPXLEN; spam_debug_ = false; } // -------------------------------------------------------------------------- LinearCalibrationModel::LinearCalibrationModel() { Defaults(); } // -------------------------------------------------------------------------- // Constructor for use in BaseCaller - we do not deviate from generated model LinearCalibrationModel::LinearCalibrationModel(OptArgs& opts, vector<string> &bam_comments, const string & run_id, const ion::ChipSubset & chip_subset, const ion::FlowOrder * flow_order) { Defaults(); verbose_ = true; bool diagonal_state_prog = opts.GetFirstBoolean('-', "diagonal-state-prog", false); if (diagonal_state_prog) return; string legacy_file_name = opts.GetFirstString ('s', "model-file", ""); string calibration_file_name = opts.GetFirstString ('s', "calibration-json", ""); num_flows_ = flow_order->num_flows(); // Preferentially load json if both options are provided if (not calibration_file_name.empty()) { ifstream calibration_file(calibration_file_name.c_str(), ifstream::in); if (not calibration_file.good()){ cerr << "LinearCalibrationModel WARNING: Cannot open file " << calibration_file_name << endl; } else { Json::Value temp_calibraiton_file; calibration_file >> temp_calibraiton_file; if (temp_calibraiton_file.isMember("LinearModel")){ InitializeModelFromJson(temp_calibraiton_file["LinearModel"]); } else { cerr << "LinearCalibrationModel WARNING: Cannot find json member <LinearCalibrationModel>" << endl; } } calibration_file.close(); if (not is_enabled_) cerr << "LinearCalibrationModel WARNING: Unable to load calibration model from json file " << calibration_file_name << endl; } // Load HP model from file if provided and we don't have a json model if ((not is_enabled_) and (not legacy_file_name.empty())) { InitializeModelFromTxtFile(legacy_file_name, hp_threshold_); } if (not is_enabled_){ cout << "LinearCalibrationModel: Disabled." << endl; } else{ // TODO: Check chip parameters like offset and and size for consistency // If we use a calibration model we are going to write in into the BAM header to avoid model mismatches SaveModelFileToBamComments(bam_comments, run_id); } } // -------------------------------------------------------------------------- // Constructor for calibration module LinearCalibrationModel::LinearCalibrationModel(OptArgs& opts, const CalibrationContext& calib_context) : chip_subset_(calib_context.chip_subset) { Defaults(); max_hp_calibrated_ = 0; is_enabled_ = false; flow_window_size_ = calib_context.flow_window_size; num_flow_windows_ = (calib_context.max_num_flows + flow_window_size_ -1) / flow_window_size_; verbose_ = (calib_context.verbose_level > 0); debug_ = calib_context.debug; num_flows_ = calib_context.max_num_flows; training_method_ = opts.GetFirstString ('-', "model-training-style", "common-offset"); if (training_method_ == "common-offset") training_mode_ = 1; else if (training_method_ == "old-style") training_mode_ = 2; else { cerr << "HistogramCalibration ERROR: unknown training method " << training_method_ << endl; exit(EXIT_FAILURE); } min_num_samples_ = opts.GetFirstInt ('-', "model-calib-min-samples", min_num_samples_); do_training_ = opts.GetFirstBoolean('-', "model-calibration", true); hp_threshold_ = opts.GetFirstInt ('-', "model-calib-min-hp", hp_threshold_); min_state_inphase_ = opts.GetFirstDouble ('-', "model-calib-min-inphase", min_state_inphase_); max_scaled_residual_ = opts.GetFirstDouble ('-', "model-calib-max-residual", max_scaled_residual_); max_gain_shift_ = opts.GetFirstDouble ('-', "model-calib-max-gain-shift", max_gain_shift_); output_training_stats_= opts.GetFirstBoolean('-', "model-training-stats", output_training_stats_); multi_train_ = opts.GetFirstBoolean('-', "model-multi-train", multi_train_); multi_weight_ = opts.GetFirstInt ('-', "model-multi-weight", multi_weight_); spam_debug_ = opts.GetFirstBoolean('-', "model-spam-debug", spam_debug_); if (multi_train_){ min_num_samples_ *= multi_weight_; // increase weight to deal with increased weighting } // Size calibration structures region_data.resize(chip_subset_.NumRegions()); for (int iRegion=0; iRegion<chip_subset_.NumRegions(); ++iRegion) { //region_data.at(iRegion).Initialize(num_flow_windows_); // We don't need those until we create the model region_data.at(iRegion).InitializeTrainingData(num_flow_windows_); } if (do_training_ and (calib_context.verbose_level > 0)){ cout << "LinearCalibrationModel Training Options:" << endl; cout << " model-training-style : " << training_method_ << endl; cout << " model-calib-min-hp : " << hp_threshold_ << endl; cout << " model-calib-min-samples : " << min_num_samples_ << endl; cout << " model-calib-min-inphase : " << min_state_inphase_ << endl; cout << " model-calib-max-residual : " << max_scaled_residual_ << endl; cout << " model-calib-max-gain-shift : " << max_gain_shift_ << endl; cout << " model-multi-train : " << (multi_train_ ? "on" : "off") << endl; cout << " multi-weight : " << multi_weight_ << endl; cout << " model-training-stats : " << (output_training_stats_ ? "on" : "off") << endl; } } // -------------------------------------------------------------------------- const vector<vector<vector<float> > > * LinearCalibrationModel::getGains(int x, int y) const { if (not is_enabled_) return NULL; int my_region = chip_subset_.CoordinatesToRegionIdx(x, y); if (my_region < 0) { if (verbose_) cerr << "LinearCalibrationModel::getGains ERROR: Cannot find region for for well x=" << x << " y=" << y << endl; return NULL; } else return region_data.at(my_region).getGains(); }; // -------------------------------------------------------------------------- const vector<vector<vector<float> > > * LinearCalibrationModel::getOffsets(int x, int y) const { if (not is_enabled_) return NULL; int my_region = chip_subset_.CoordinatesToRegionIdx(x, y); if (my_region < 0) { if (verbose_) cerr << "LinearCalibrationModel::getGains ERROR: Cannot find region for for well x=" << x << " y=" << y << endl; return NULL; } else return region_data.at(my_region).getOffsets(); }; // -------------------------------------------------------------------------- void LinearCalibrationModel::getAB(MultiAB &multi_ab, int x, int y) const { if (not is_enabled_){ multi_ab.Null(); return; } int my_region = chip_subset_.CoordinatesToRegionIdx(x, y); if (my_region < 0){ if (verbose_) cerr << "LinearCalibrationModel::getGains ERROR: Cannot find region for for well x=" << x << " y=" << y << endl; multi_ab.Null(); } else { multi_ab.aPtr = region_data.at(my_region).getGains(); multi_ab.bPtr = region_data.at(my_region).getOffsets(); } }; // return local step size for adding/subtracting a base float LinearCalibrationModel::ReturnLocalInterval(float original_step, float local_prediction, float called_hp, float finish_hp, int my_region, int my_flow_window, int my_nuc_idx){ float local_interval = original_step; // only if we calibrated in the first place do we return a different value if (called_hp>=hp_threshold_){ float local_sign = finish_hp-called_hp; // find endpoints of interval float local_gain_start =region_data.at(my_region).gain_values.at(my_flow_window).at(my_nuc_idx).at(called_hp); float local_gain_finish = region_data.at(my_region).gain_values.at(my_flow_window).at(my_nuc_idx).at(finish_hp); float local_offset_start =region_data.at(my_region).offset_values.at(my_flow_window).at(my_nuc_idx).at(called_hp); float local_offset_finish = region_data.at(my_region).offset_values.at(my_flow_window).at(my_nuc_idx).at(finish_hp); // in the awful case of doubly calibrating // the interval needs to be modified to account for the linear calibration local_interval = original_step*local_gain_finish+ local_sign*(local_gain_finish-local_gain_start)*(local_prediction-local_offset_start)/local_gain_start + local_sign*(local_offset_finish-local_offset_start); } return(local_interval); } // -------------------------------------------------------------------------- // This function retains the original (rather wasteful) json structure that we put into bam headers void LinearCalibrationModel::ExportModelToJson(Json::Value &json, string run_id) const { if (not is_enabled_) return; // Add a (legacy) hash code to identify json objects corresponding to linear calibration models. // MD5 hash of "This uniquely identifies json comments for recalibration." json["MagicCode"] = "6d5b9d29ede5f176a4711d415d769108"; // Keep 5 character ID to not upset all the hard coded methods if (run_id.empty()) run_id = "NORID"; std::stringstream block_id_stream; block_id_stream << run_id << ".block_X" << chip_subset_.GetOffsetX() << "_Y" << chip_subset_.GetOffsetY(); string block_id = block_id_stream.str(); // Run global information json["MasterKey"] = block_id; json["MasterCol"] = (Json::UInt64)chip_subset_.GetColOffset(); json["MasterRow"] = (Json::UInt64)chip_subset_.GetRowOffset(); // Store information about how Calibration executable was run json["CalibrationParameters"]["model_training_style"] = (Json::UInt64)min_num_samples_; json["CalibrationParameters"]["model_calib_min_inphase"] = min_state_inphase_; json["CalibrationParameters"]["model_calib_max_residual"] = max_scaled_residual_; json["CalibrationParameters"]["model-calib-max-gain-shift"] = max_gain_shift_; json["CalibrationParameters"]["model-multi-train"] = multi_train_; json["CalibrationParameters"]["multi-weight"] = (Json::Int)multi_weight_; // Global block information -- CLOSED INTERVALS json[block_id]["flowStart"] = 0; json[block_id]["flowEnd"] = num_flows_ -1; json[block_id]["flowSpan"] = flow_window_size_; json[block_id]["xMin"] = chip_subset_.GetOffsetX(); json[block_id]["xMax"] = chip_subset_.GetOffsetX() + chip_subset_.GetChipSizeX() -1; json[block_id]["xSpan"] = chip_subset_.GetRegionSizeX(); json[block_id]["yMin"] = chip_subset_.GetOffsetY(); json[block_id]["yMax"] = chip_subset_.GetOffsetY() + chip_subset_.GetChipSizeY() -1; json[block_id]["ySpan"] = chip_subset_.GetRegionSizeY(); json[block_id]["max_hp_calibrated"] = max_hp_calibrated_+1; // The json value is exclusive json[block_id]["min_hp_calibrated"] = hp_threshold_; // Now write the information of the individual regions json[block_id]["modelParameters"] = Json::arrayValue; int start_x, start_y, start_flow, element_id = 0; for (int iRegion=0; iRegion<chip_subset_.NumRegions(); ++iRegion){ chip_subset_.GetRegionStart(iRegion, start_x, start_y); for (int iWindow=0; iWindow < num_flow_windows_; ++iWindow){ start_flow = iWindow * flow_window_size_; for (int iNuc = 0; iNuc < 4; ++iNuc){ // To be compatible with the legacy BAM format we write the char value into the json as an integer char base = ion::FlowOrder::IntToNuc(iNuc); for (int iHP=hp_threshold_; iHP<= max_hp_calibrated_; ++iHP) { json[block_id]["modelParameters"][element_id]["flowBase"] = (Json::Int)base; json[block_id]["modelParameters"][element_id]["flowStart"] = (Json::Int)start_flow; json[block_id]["modelParameters"][element_id]["flowEnd"] = (Json::Int)(start_flow + flow_window_size_ -1); json[block_id]["modelParameters"][element_id]["xMin"] = (Json::Int)start_x; json[block_id]["modelParameters"][element_id]["xMax"] = (Json::Int)min((start_x+chip_subset_.GetRegionSizeX()-1), (chip_subset_.GetOffsetX()+chip_subset_.GetChipSizeX()-1)); json[block_id]["modelParameters"][element_id]["yMin"] = (Json::Int)start_y; json[block_id]["modelParameters"][element_id]["yMax"] = (Json::Int)min((start_y+chip_subset_.GetRegionSizeY()-1), (chip_subset_.GetOffsetY()+chip_subset_.GetChipSizeY()-1)); json[block_id]["modelParameters"][element_id]["refHP"] = (Json::Int)iHP; // Here we assume that the model parameters are constant over one element json[block_id]["modelParameters"][element_id]["paramA"] = region_data.at(iRegion).gain_values.at(iWindow).at(iNuc).at(iHP); json[block_id]["modelParameters"][element_id]["paramB"] = region_data.at(iRegion).offset_values.at(iWindow).at(iNuc).at(iHP); // Optionally output training data if (output_training_stats_){ json[block_id]["modelParameters"][element_id]["TrainingData"] = region_data.at(iRegion).training_data.at(iWindow).at(iNuc).at(iHP).DataToJson(); } ++element_id; } } } } }; // -------------------------------------------------------------------------- void LinearCalibrationModel::SaveModelFileToBamComments(vector<string> &comments, const string &run_id) const { if (not is_enabled_) return; Json::Value json; ExportModelToJson(json, run_id); Json::FastWriter writer; string comment_str = writer.write(json); // trim unwanted newline added by writer int last_char = comment_str.size()-1; if ((last_char>=0) and (comment_str.at(last_char) == '\n')) { comment_str.erase(last_char,1); } comments.push_back(comment_str); } // -------------------------------------------------------------------------- // We only load data for HPs that are above a desired threshold // The internally stored data structures reflect that so that we put accurate // information about what we did into the BAM header bool LinearCalibrationModel::InitializeModelFromJson(Json::Value &json, const int num_flows) { is_enabled_ = false; if (num_flows > 0) num_flows_ = num_flows; // Check if we have a json object corresponding to a histogram calibration model. if ((not json.isMember("MagicCode")) or (json["MagicCode"].asString() != "6d5b9d29ede5f176a4711d415d769108")){ cerr << "LinearCalibrationModel::InitializeModelFromJson WARNING: Cannot find appropriate magic code." << endl; return false; } // Json structure uses -- CLOSED INTERVALS -- (mostly) // We now assume that the json is correctly formatted and skip checks string block_id = json["MasterKey"].asString(); int block_offset_x = json["MasterCol"].asInt(); int block_offset_y = json["MasterRow"].asInt(); // Check number of flows int num_flows_json = json[block_id]["flowEnd"].asInt() +1; if (num_flows_json != num_flows_){ cerr << "LinearCalibrationModel::InitializeModelFromJson WARNING: Number of flows in json " << num_flows_json << " does not match number of flows in run " << num_flows_ << endl; return false; } flow_window_size_ = json[block_id]["flowSpan"].asInt(); if (not (flow_window_size_ > 0)){ cerr << "LinearCalibrationModel::InitializeModelFromJson WARNING: Flow window is zero." << endl; return false; } num_flow_windows_ = (num_flows_ + flow_window_size_ -1) / flow_window_size_; // Load region information int block_size_x = json[block_id]["xMax"].asInt() - block_offset_x +1; int block_size_y = json[block_id]["yMax"].asInt() - block_offset_y +1; int region_size_x = json[block_id]["xSpan"].asInt(); int region_size_y = json[block_id]["ySpan"].asInt(); int num_regions_x = (block_size_x + region_size_x - 1) / region_size_x; int num_regions_y = (block_size_y + region_size_y - 1) / region_size_y; chip_subset_.InitializeCalibrationRegions(block_offset_x, block_offset_y, block_size_x, block_size_y, num_regions_x, num_regions_y); // Check number and range of elements int json_size = json[block_id]["modelParameters"].size(); max_hp_calibrated_ = json[block_id]["max_hp_calibrated"].asInt() -1; // The json value is exclusive // The purpose of this block is to prevent double calibration in TVC when loading the headers from <TS5.0 BAM files int min_hp = 4; // Hard coded to legacy default; no need to ever change that. if (json[block_id].isMember("min_hp_calibrated")) min_hp = json[block_id]["min_hp_calibrated"].asInt(); // BAM files created before TS 5.0 will not have this json entry hp_threshold_ = max(hp_threshold_, min_hp); // This will avoid doubly calibrating old BAM files in TVC // new json file have min_hp_calibrated=0 and so can be doubly calibrated if we've trained that way // Iterate over model parameters in json and fill in class data region_data.resize(chip_subset_.NumRegions()); for (int iRegion=0; iRegion<chip_subset_.NumRegions(); ++iRegion) { region_data.at(iRegion).Initialize(num_flow_windows_); } int xMin, yMin, my_region, my_flow_window, nuc_idx, my_hp; for (int i_item=0; i_item<json_size; i_item++) { // We only load calibration data for HPs above the threshold and keep the parameters of the others at default my_hp = json[block_id]["modelParameters"][i_item]["refHP"].asInt(); if ((my_hp < hp_threshold_) or (my_hp > MAX_HPXLEN)) continue; xMin = json[block_id]["modelParameters"][i_item]["xMin"].asInt(); yMin = json[block_id]["modelParameters"][i_item]["yMin"].asInt(); my_region = chip_subset_.CoordinatesToRegionIdx(xMin, yMin); if (my_region < 0){ cerr << "LinearCalibrationModel::InitializeModelFromJson WARNING: Cannot resolve region for coordinates x=" << xMin << " y=" << yMin << endl; return false; } my_flow_window = json[block_id]["modelParameters"][i_item]["flowStart"].asInt() / flow_window_size_; char base = (char)json[block_id]["modelParameters"][i_item]["flowBase"].asInt(); nuc_idx = ion::FlowOrder::NucToInt(base); region_data.at(my_region).gain_values.at(my_flow_window).at(nuc_idx).at(my_hp) = json[block_id]["modelParameters"][i_item]["paramA"].asFloat(); region_data.at(my_region).offset_values.at(my_flow_window).at(nuc_idx).at(my_hp) = json[block_id]["modelParameters"][i_item]["paramB"].asFloat(); } // Now that we have calibration data we build the class output data structures for (int iRegion=0; iRegion<chip_subset_.NumRegions(); ++iRegion) { region_data.at(iRegion).CoefficientZeroOrderHold(max_hp_calibrated_); region_data.at(iRegion).SetModelGainsAndOffsets(num_flows_, flow_window_size_); } if (verbose_) cout << "LinearCalibrationModel: enabled for HPs >=" << hp_threshold_ << " (using block id " << block_id << ") in a " << chip_subset_.GetNumRegionsX() << 'x' << chip_subset_.GetNumRegionsY() << 'x' << num_flow_windows_ << " grid." <<endl << endl; //PrintModelParameters(); is_enabled_ = true; return true; }; void LinearCalibrationModel::SetModelGainsAndOffsets(){ for (int iRegion=0; iRegion<chip_subset_.NumRegions(); ++iRegion) { region_data.at(iRegion).SetModelGainsAndOffsets(num_flows_, flow_window_size_); } } // -------------------------------------------------------------------------- bool LinearCalibrationModel::InitializeModelFromTxtFile(string model_file_name, int hp_threshold, const int num_flows) { is_enabled_ = false; if (num_flows > 0) num_flows_ = num_flows; ifstream calibration_file; calibration_file.open(model_file_name.c_str()); if (not calibration_file.good()) { cerr << "LinearCalibrationModel WARNING: Cannot open legacy model in file " << model_file_name << endl; calibration_file.close(); return false; } string comment_line; getline(calibration_file, comment_line); // Read global block info from header line int flowStart, flowEnd, flowSpan, xMin, xMax, xSpan, yMin, yMax, ySpan, max_hp_calibrated; calibration_file >> flowStart >> flowEnd >> flowSpan >> xMin >> xMax >> xSpan >> yMin >> yMax >> ySpan >> max_hp_calibrated; // Check number of flows int num_flows_json = flowEnd+1; if (num_flows_json != num_flows_){ cerr << "LinearCalibrationModel::InitializeModelFromTxtFile WARNING: Number of flows in file " << num_flows_json << " does not match number of flows in run " << num_flows_ << endl; calibration_file.close(); return false; } flow_window_size_ = flowSpan; num_flow_windows_ = (flowEnd + flow_window_size_) / flow_window_size_; // Load region information int block_size_x = xMax-xMin+1; int block_size_y = yMax-yMin+1; int num_regions_x = (block_size_x + xSpan - 1) / xSpan; int num_regions_y = (block_size_y + ySpan - 1) / ySpan; chip_subset_.InitializeCalibrationRegions(xMin, yMin, block_size_x, block_size_y, num_regions_x, num_regions_y); // Initialize region data and set defaults region_data.resize(chip_subset_.NumRegions()); for (int iRegion=0; iRegion<chip_subset_.NumRegions(); ++iRegion) { region_data.at(iRegion).Initialize(num_flow_windows_); } // Read lines of text file - one line per parameter pair float paramA, paramB; int my_region, my_flow_window, nuc_idx, my_hp; char flowBase; while (calibration_file.good()) { calibration_file >> flowBase >> flowStart >> flowEnd >> xMin >> xMax >> yMin >> yMax >> my_hp >> paramA >> paramB; if ((my_hp < hp_threshold) or (my_hp > MAX_HPXLEN)) continue; my_region = chip_subset_.CoordinatesToRegionIdx(xMin, yMin); if (my_region < 0){ cerr << "LinearCalibrationModel::InitializeModelFromTxtFile WARNING: Cannot resolve region for coordinates x=" << xMin << " y=" << yMin << endl; calibration_file.close(); return false; } my_flow_window = flowStart / flow_window_size_; nuc_idx = ion::FlowOrder::NucToInt(flowBase); region_data.at(my_region).gain_values.at(my_flow_window).at(nuc_idx).at(my_hp) = paramA; region_data.at(my_region).offset_values.at(my_flow_window).at(nuc_idx).at(my_hp) = paramB; } calibration_file.close(); // Now that we have calibration data we build the class output data structures for (int iRegion=0; iRegion<chip_subset_.NumRegions(); ++iRegion) { region_data.at(iRegion).SetModelGainsAndOffsets(num_flows_, flow_window_size_); } if (verbose_) cout << "LinearCalibrationModel: enabled for HPs >=" << hp_threshold << " (from text file " << model_file_name << ") in a " << chip_subset_.GetNumRegionsX() << 'x' << chip_subset_.GetNumRegionsY() << 'x' << num_flow_windows_ << " grid." <<endl << endl; is_enabled_ = true; return is_enabled_; } // -------------------------------------------------------------------------- void LinearCalibrationModel::CleanSlate() { for (int iRegion=0; iRegion<chip_subset_.NumRegions(); ++iRegion) { region_data.at(iRegion).InitializeTrainingData(num_flow_windows_); } } // -------------------------------------------------------------------------- void LinearCalibrationModel::AccumulateTrainingData(const LinearCalibrationModel& other) { if (not do_training_) return; for (int iRegion=0; iRegion<chip_subset_.NumRegions(); ++iRegion) { region_data.at(iRegion).AccumulateTrainingData(other.region_data.at(iRegion)); } } // -------------------------------------------------------------------------- // direct copy to update the model XXX void LinearCalibrationModel::CopyTrainingData(const LinearCalibrationModel &other){ if (not do_training_) return; region_data = other.region_data; } // -------------------------------------------------------------------------- bool LinearCalibrationModel::FilterTrainingReads(const ReadAlignmentInfo& read_alignment, LinearCalibrationModel &linear_model_cal_sim, int my_region, int iHP, float &yobs, float &xobs, int &governing_hp){ bool res_train = true; int my_flow_idx = read_alignment.align_flow_index.at(iHP); int my_flow_window = my_flow_idx / flow_window_size_; int my_nuc_idx = ion::FlowOrder::NucToInt(read_alignment.aln_flow_order.at(iHP)); float local_interval = read_alignment.state_inphase.at(my_flow_idx); float local_measurement = read_alignment.measurements.at(my_flow_idx); float local_prediction = read_alignment.predictions_ref.at(my_flow_idx); // should be 'as-simulated with model int original_hp = read_alignment.aligned_tHPs.at(iHP); // original prediction int finish_hp = (local_measurement-local_prediction)>0.0f ? min(MAX_HPXLEN,(original_hp+1)): max(0,(original_hp-1)); // one-liner version if (linear_model_cal_sim.is_enabled()) linear_model_cal_sim.ReturnLocalInterval(local_interval, local_prediction, original_hp, finish_hp, my_region, my_flow_window, my_nuc_idx); // Reject outlier measurements if (local_interval < min_state_inphase_){ if (debug_) cout << "Ignoring HP " << iHP << ": state_inphase too small " << local_interval << endl; res_train=false; } float residual_predictor = fabs(local_measurement - local_prediction) / local_interval; if (residual_predictor > max_scaled_residual_) { if (debug_) cout << "Ignoring HP " << iHP << ": residual too high " << residual_predictor << endl; res_train =false; } // And finally add the data point to the training set yobs = local_measurement; // this must be the predictions without applying the linear model // for the governing_hp xobs = local_prediction; governing_hp = min(original_hp, MAX_HPXLEN); if ((governing_hp>4) and spam_debug_){ int called_hp=read_alignment.aligned_qHPs.at(iHP); // called float cal_prediction = read_alignment.predictions_as_called.at(my_flow_idx); float alt_residual_predictor = fabs(local_measurement-cal_prediction)/local_interval; stringstream my_diagnostic; my_diagnostic << "TAXES:\t" << governing_hp << "\t" << original_hp <<"\t" << finish_hp << "\t" << called_hp <<"\t" << "V:\t" << local_prediction << "\t" << cal_prediction <<"\t" << local_measurement << "\t" << "P:\t" << residual_predictor << "\t" << alt_residual_predictor << "\t" << "I:\t" << local_interval << "\t" << (res_train?1:0) <<endl; cout << my_diagnostic.str(); } return(res_train); } // -------------------------------------------------------------------------- bool LinearCalibrationModel::AddTrainingRead(const ReadAlignmentInfo& read_alignment, LinearCalibrationModel &linear_model_cal_sim) { if (read_alignment.is_filtered or (not do_training_)) return false; int my_nuc_idx, my_flow_idx, my_flow_window; double residual_predictor; int my_region = chip_subset_.CoordinatesToRegionIdx(read_alignment.well_xy.at(0), read_alignment.well_xy.at(1)); if (my_region < 0){ if (debug_) cout << "Ignoring read " << read_alignment.alignment->Name << ": coordinates of bounds; region idx " << my_region << endl; return false; } // a little uncertain about too much training per one read region_data.at(my_region).FreshReadData(); // Step through flow alignment and extract info for (unsigned int iHP=0; iHP < read_alignment.pretty_flow_align.size(); ++iHP){ // Ignore Flow InDels if (IsInDelAlignSymbol(read_alignment.pretty_flow_align.at(iHP))) { if (debug_) cout << "Ignoring HP " << iHP << ": Flow alignment symbol is InDel." << endl; continue; } // Ignore HPs that are too large if (read_alignment.aligned_tHPs.at(iHP) > MAX_HPXLEN) { if (debug_) cout << "Ignoring HP " << iHP << ": HP size out of bounds, " << read_alignment.aligned_tHPs.at(iHP) << endl; continue; } my_nuc_idx = ion::FlowOrder::NucToInt(read_alignment.aln_flow_order.at(iHP)); if (my_nuc_idx < 0){ if (debug_) cout << "Ignoring HP " << iHP << ": nuc idx out of bounds, " << my_nuc_idx << endl; continue; } my_flow_idx = read_alignment.align_flow_index.at(iHP); my_flow_window = my_flow_idx / flow_window_size_; float xobs,yobs; int governing_hp; bool res_train = FilterTrainingReads(read_alignment,linear_model_cal_sim, my_region, iHP, yobs, xobs, governing_hp); if (res_train){ region_data.at(my_region).AddDataPoint(my_flow_window, my_nuc_idx, governing_hp, xobs, yobs); // integer values because of weighting methodology if (multi_train_){ int false_hp = max(governing_hp-1,0); region_data.at(my_region).AddDataPoint(my_flow_window, my_nuc_idx, false_hp, xobs, yobs); false_hp = min(governing_hp+1,MAX_HPXLEN); region_data.at(my_region).AddDataPoint(my_flow_window, my_nuc_idx, false_hp, xobs, yobs); // pseudo-weight for (int xxi=0; xxi<multi_weight_; xxi++){ region_data.at(my_region).AddDataPoint(my_flow_window, my_nuc_idx, governing_hp, xobs, yobs); } } } } return true; } bool LinearCalibrationModel::FilterBlindReads(const ReadAlignmentInfo& read_alignment, LinearCalibrationModel &linear_model_cal_sim, int my_region, int iHP, float &yobs, float &xobs, int &governing_hp){ // at the main flow for iHP // filter out data points by 'recalling' the read // conditional on the current calibration model bool res_train = true; int my_flow_idx = read_alignment.align_flow_index.at(iHP); int my_flow_window = my_flow_idx / flow_window_size_; int my_nuc_idx = ion::FlowOrder::NucToInt(read_alignment.aln_flow_order.at(iHP)); float local_measurement = read_alignment.measurements.at(my_flow_idx); // now the basecaller logic float original_interval = read_alignment.state_inphase.at(my_flow_idx); // when first we basecalled, we came as close as possible given that we had no calibration model float original_prediction = read_alignment.predictions_ref.at(my_flow_idx); int original_hp = read_alignment.aligned_qHPs.at(iHP); // original prediction // Reject measurement if the interval is too narrow to be trusted if (original_interval < min_state_inphase_){ if (debug_) cout << "Ignoring HP " << iHP << ": state_inphase too small " << original_interval << endl; return(false); // do not use me at all } float original_predictor = fabs(local_measurement-original_prediction)/original_interval; // reject measurement if there was too much interference from other flows leading the basecaller to put the call somewhere strange if (original_predictor > max_scaled_residual_) { res_train=false; } // Now we need to generate the correct >call< given that we know calibration is happening for high HPs, so the original prediction is wrong float cal_prediction = read_alignment.predictions_as_called.at(my_flow_idx); // int finish_hp = (local_measurement-cal_prediction)>0.0f ? min(MAX_HPXLEN,(original_hp+1)): max(0,(original_hp-1)); // one-liner version float local_interval=original_interval; // how large is the step size if (linear_model_cal_sim.is_enabled()) linear_model_cal_sim.ReturnLocalInterval(local_interval, cal_prediction, original_hp, finish_hp, my_region, my_flow_window, my_nuc_idx); int ref_hp = original_hp; float ref_prediction=original_prediction; float alt_prediction = cal_prediction; float alt_residual_predictor = fabs(local_measurement-alt_prediction)/local_interval; float final_residual_predictor = alt_residual_predictor; float ref_residual_predictor = 1.0f; float finish_prediction=alt_prediction; // possibility to improve fit-to-data by changing call if (alt_residual_predictor>0.5){ // if we take a step towards the data we may improve the fit ref_hp = finish_hp; // we take one step towards reclassified values float ref_predict_delta = (finish_hp-original_hp)*original_interval; // delta >for this flow< in predictions without model shift ref_prediction = original_prediction+ref_predict_delta; // update prediction float call_predict_delta = (finish_hp-original_hp)*local_interval; // prediction after change alt_prediction = cal_prediction+call_predict_delta; finish_prediction=alt_prediction; ref_residual_predictor = fabs(alt_prediction-original_prediction)/original_interval; if (ref_residual_predictor>1.5){ // reject step: if the basecaller could have done this it would have originally ref_hp = original_hp; ref_prediction = original_prediction; alt_prediction = cal_prediction; } final_residual_predictor = fabs(local_measurement-alt_prediction)/local_interval; } // need to be finally close to the data // to have confidence we are not 'leaking' float dynamic_threshold=min(0.5f,2.0f/(original_hp+ref_hp+0.5f)); // higher HPs have more overlap, need careful attention dynamic_threshold = 0.5f; if (final_residual_predictor>dynamic_threshold){ res_train=false; } // transfer data out xobs=ref_prediction; yobs=local_measurement; governing_hp = ref_hp; if ((governing_hp>4) and spam_debug_){ stringstream my_diagnostic; my_diagnostic << "TAXES:\t" << governing_hp << "\t" << original_hp <<"\t" << finish_hp << "\t" << "V:\t" << original_prediction<< "\t" << cal_prediction <<"\t" << finish_prediction <<"\t" << alt_prediction << "\t" << local_measurement << "\t" << "P:\t" << original_predictor << "\t" << alt_residual_predictor << "\t" << ref_residual_predictor << "\t" << final_residual_predictor << "\t" << "I:\t" << original_interval <<"\t" << local_interval << "\t" << (res_train?1:0) <<endl; cout << my_diagnostic.str(); } return(res_train); } bool LinearCalibrationModel::FilterBlindReadsOld(const ReadAlignmentInfo& read_alignment, LinearCalibrationModel &linear_model_cal_sim, int my_region, int iHP, float &yobs, float &xobs, int &governing_hp){ bool res_train = true; int my_flow_idx = read_alignment.align_flow_index.at(iHP); int my_flow_window = my_flow_idx / flow_window_size_; int my_nuc_idx = ion::FlowOrder::NucToInt(read_alignment.aln_flow_order.at(iHP)); float local_interval = read_alignment.state_inphase.at(my_flow_idx); float local_measured = read_alignment.measurements.at(my_flow_idx); float local_prediction = read_alignment.predictions_as_called.at(my_flow_idx); // should be 'as-simulated with model int called_hp = read_alignment.aligned_qHPs.at(iHP); // original prediction int finish_hp = (local_measured-local_prediction)>0.0f ? min(MAX_HPXLEN,(called_hp+1)): max(0,(called_hp-1)); // one-liner version if (linear_model_cal_sim.is_enabled()) linear_model_cal_sim.ReturnLocalInterval(local_interval, local_prediction, called_hp, finish_hp, my_region, my_flow_window, my_nuc_idx); // Reject outlier measurements if (local_interval < min_state_inphase_){ if (debug_) cout << "Ignoring HP " << iHP << ": state_inphase too small " << local_interval << endl; res_train=false; } float residual_predictor = fabs(local_measured - local_prediction) / local_interval; float alt_residual_predictor = residual_predictor; // too large a step: only allow to correct by one from the original called, // 1.25-1 = 0.25 meaning we're almost certainly correct in classification // because we're blind, we need a narrower range of success if (residual_predictor > max_scaled_residual_) { if (debug_) cout << "Ignoring HP " << iHP << ": residual too high " << residual_predictor << endl; res_train=false; } // update the model // what base am I really, and how should it have been predicted? float ref_predict_delta = 0.0f; float call_predict_delta = 0.0f; int ref_hp = called_hp; if (residual_predictor>0.5f){ // adjust predictions and 'reference' ref_hp = finish_hp; // we take one step towards reclassified values ref_predict_delta = (finish_hp-called_hp)*read_alignment.state_inphase.at(my_flow_idx); // delta >for this flow< in predictions without model shift float step_delta = local_prediction-read_alignment.predictions_ref.at(my_flow_idx); // if positive, local predictions have been bumped up call_predict_delta = (finish_hp-called_hp)*local_interval; // prediction after change alt_residual_predictor = fabs(local_measured-(local_prediction+call_predict_delta))/local_interval; // if we're correcting the data, it had better be in the correct direction for the current model // the effect is to shift the interval of 'good calls' in the direction we want if (step_delta*ref_predict_delta>0){ ref_hp = called_hp; ref_predict_delta = 0.0f; // only if we go in the opposite direction do we change the call res_train = false; } } if (alt_residual_predictor>0.5) // train only on central tendency of data where our probability of being correct is highest res_train = false; yobs = read_alignment.measurements.at(my_flow_idx); // this must be the predictions without applying the linear model // for the governing_hp xobs = read_alignment.predictions_ref.at(my_flow_idx)+ref_predict_delta; // assume hps are rare, don't affect neighbors too much governing_hp = ref_hp; // blinded return(res_train); } bool LinearCalibrationModel::AddBlindTrainingRead(const ReadAlignmentInfo& read_alignment, LinearCalibrationModel &linear_model_cal_sim) { if (read_alignment.is_filtered or (not do_training_)) return false; int my_nuc_idx, my_flow_idx, my_flow_window; double residual_predictor; double alt_residual_predictor; int my_region = chip_subset_.CoordinatesToRegionIdx(read_alignment.well_xy.at(0), read_alignment.well_xy.at(1)); if (my_region < 0){ if (debug_) cout << "Ignoring read " << read_alignment.alignment->Name << ": coordinates of bounds; region idx " << my_region << endl; return false; } // a little uncertain about too much training per one read // data points now added note a fresh read is coming region_data.at(my_region).FreshReadData(); // Step through flow alignment and extract info for (unsigned int iHP=0; iHP < read_alignment.pretty_flow_align.size(); ++iHP){ // Ignore Flow InDels if (IsInDelAlignSymbol(read_alignment.pretty_flow_align.at(iHP))) { if (debug_) cout << "Ignoring HP " << iHP << ": Flow alignment symbol is InDel." << endl; continue; } // Ignore HPs that are too large if (read_alignment.aligned_tHPs.at(iHP) > MAX_HPXLEN) { if (debug_) cout << "Ignoring HP " << iHP << ": HP size out of bounds, " << read_alignment.aligned_tHPs.at(iHP) << endl; continue; } my_nuc_idx = ion::FlowOrder::NucToInt(read_alignment.aln_flow_order.at(iHP)); if (my_nuc_idx < 0){ if (debug_) cout << "Ignoring HP " << iHP << ": nuc idx out of bounds, " << my_nuc_idx << endl; continue; } my_flow_idx = read_alignment.align_flow_index.at(iHP); my_flow_window = my_flow_idx / flow_window_size_; float xobs, yobs; int governing_hp=0; // complex like the tax code: find what the basecaller would have called, if it knew the current calibration model // you cannot use Form BaseCallerEZ bool res_train = FilterBlindReads(read_alignment,linear_model_cal_sim, my_region, iHP, yobs, xobs, governing_hp); // now finally train int my_hp; // 'able to predict next 2 slots adequately' - my_hp = max(0,governing_hp-1); // only unlock training when we have enough training data - 'accurate calls' // data coming from >separate reads<, not just from one read // 0,1,2 assumed generally accurate without training if ((linear_model_cal_sim.region_data.at(my_region).training_data.at(my_flow_window).at(my_nuc_idx).at(my_hp).NumReads() < min_num_reads_) and my_hp>2) // allow training only when enough found res_train=false; if (res_train){ region_data.at(my_region).AddDataPoint(my_flow_window, my_nuc_idx, governing_hp, xobs, yobs); // integer values because of weighting methodology if (multi_train_){ int false_hp = max(governing_hp-1,0); region_data.at(my_region).AddDataPoint(my_flow_window, my_nuc_idx, false_hp, xobs, yobs); false_hp = min(governing_hp+1,MAX_HPXLEN); region_data.at(my_region).AddDataPoint(my_flow_window, my_nuc_idx, false_hp, xobs, yobs); // pseudo-weight for (int xxi=0; xxi<multi_weight_; xxi++){ region_data.at(my_region).AddDataPoint(my_flow_window, my_nuc_idx, governing_hp, xobs, yobs); } } } } return true; } // -------------------------------------------------------------------------- bool LinearCalibrationModel::CreateCalibrationModel(bool verbose) { if (not do_training_) return false; max_hp_calibrated_ = 0; for (int iRegion=0; iRegion<chip_subset_.NumRegions(); ++iRegion) { if (training_mode_==1) max_hp_calibrated_ = max(max_hp_calibrated_, region_data.at(iRegion).CreateCalibrationModel(iRegion, min_num_samples_, max_gain_shift_, verbose)); if (training_mode_==2) max_hp_calibrated_ = max(max_hp_calibrated_, region_data.at(iRegion).CreateOldStyleCalibrationModel(iRegion, min_num_samples_, verbose)); } is_enabled_ = true; //PrintModelParameters(); return is_enabled_; } // -------------------------------------------------------------------------- void LinearCalibrationModel::PrintModelParameters() { cout << "Calibration model parameters: min_hp=" << hp_threshold_ << " max_hp_calibrated=" << max_hp_calibrated_ << endl; for (int iRegion=0; iRegion<chip_subset_.NumRegions(); ++iRegion) { cout << "Calibration Model for region " << iRegion; // Iterate over atomic elements for (unsigned int iWindow=0; iWindow < region_data.at(iRegion).gain_values.size(); ++iWindow) { cout << " flow window " << iWindow; for (unsigned int iNuc=0; iNuc < 4; ++iNuc) { cout << "Nucleotide " << ion::FlowOrder::IntToNuc(iNuc) << endl; cout << "-- Offset: "; for (int iHP=0; iHP <= MAX_HPXLEN; ++iHP) cout << region_data.at(iRegion).offset_values.at(iWindow).at(iNuc).at(iHP) << " "; cout << endl; cout << "-- Gains : "; for (int iHP=0; iHP <= MAX_HPXLEN; ++iHP) cout << region_data.at(iRegion).gain_values.at(iWindow).at(iNuc).at(iHP) << " "; cout << endl; cout << "-- Samples : "; for (int iHP=0; iHP <= MAX_HPXLEN; ++iHP) cout << region_data.at(iRegion).training_data.at(iWindow).at(iNuc).at(iHP).NumSamples() << " "; cout << endl; } } } }
41.355674
196
0.656194
konradotto
ec3f65192e715686735d0cc87c5ef7837a149342
6,837
cpp
C++
SimSpark/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.cpp
IllyasvielEin/Robocup3dInstaller
12e91d9372dd08a92feebf98e916c98bc2242ff4
[ "MIT" ]
null
null
null
SimSpark/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.cpp
IllyasvielEin/Robocup3dInstaller
12e91d9372dd08a92feebf98e916c98bc2242ff4
[ "MIT" ]
null
null
null
SimSpark/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.cpp
IllyasvielEin/Robocup3dInstaller
12e91d9372dd08a92feebf98e916c98bc2242ff4
[ "MIT" ]
null
null
null
/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group $Id$ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "gamestateitem.h" #include "gamestateaspect.h" #include <soccerbase/soccerbase.h> using namespace oxygen; using namespace std; GameStateItem::GameStateItem() : MonitorItem() { ResetSentFlags(); } GameStateItem::~GameStateItem() { } void GameStateItem::ResetSentFlags() { mSentLeftTeamname = false; mSentRightTeamname = false; mLastHalf = GH_NONE; mLastLeftScore = -1; mLastRightScore = -1; mLastPlayMode = PM_NONE; mSentFlags = false; } void GameStateItem::PutFloatParam(const string& name, PredicateList& pList) { float value; if (! SoccerBase::GetSoccerVar(*this,name,value)) { return; } Predicate& pred = pList.AddPredicate(); pred.name = name; pred.parameter.AddValue(value); } void GameStateItem::GetInitialPredicates(PredicateList& pList) { ResetSentFlags(); // field geometry parameter PutFloatParam("FieldLength",pList); PutFloatParam("FieldWidth",pList); PutFloatParam("FieldHeight",pList); PutFloatParam("GoalWidth",pList); PutFloatParam("GoalDepth",pList); PutFloatParam("GoalHeight",pList); PutFloatParam("BorderSize",pList); PutFloatParam("FreeKickDistance",pList); PutFloatParam("WaitBeforeKickOff",pList); // agent parameter // PutFloatParam("AgentMass",pList); PutFloatParam("AgentRadius",pList); // PutFloatParam("AgentMaxSpeed",pList); // ball parameter PutFloatParam("BallRadius",pList); PutFloatParam("BallMass",pList); // soccer rule parameters PutFloatParam("RuleGoalPauseTime",pList); PutFloatParam("RuleKickInPauseTime",pList); PutFloatParam("RuleHalfTime",pList); PutFloatParam("PassModeMinOppBallDist",pList); PutFloatParam("PassModeDuration",pList); // play modes Predicate& pred = pList.AddPredicate(); pred.name = "play_modes"; for (int i=0; i<PM_NONE; ++i) { pred.parameter.AddValue (SoccerBase::PlayMode2Str(static_cast<TPlayMode>(i))); } GetPredicates(pList); } void GameStateItem::GetPredicates(PredicateList& pList) { if (mGameState.get() == 0) { return; } Predicate& timePred = pList.AddPredicate(); timePred.name = "time"; timePred.parameter.AddValue(mGameState->GetTime()); if (! mSentLeftTeamname) { // team names string name = mGameState->GetTeamName(TI_LEFT); if (! name.empty()) { Predicate& teamPredLeft = pList.AddPredicate(); teamPredLeft.name = "team_left"; teamPredLeft.parameter.AddValue(name); mSentLeftTeamname = true; } } if (! mSentRightTeamname) { // team names string name = mGameState->GetTeamName(TI_RIGHT); if (! name.empty()) { Predicate& teamPredRight = pList.AddPredicate(); teamPredRight.name = "team_right"; teamPredRight.parameter.AddValue(name); mSentRightTeamname = true; } } // game half TGameHalf half = mGameState->GetGameHalf(); if (half != mLastHalf) { mLastHalf = half; Predicate& halfPred = pList.AddPredicate(); halfPred.name = "half"; halfPred.parameter.AddValue(static_cast<int>(half)); } // scores int left_score = mGameState->GetScore(TI_LEFT); if (left_score != mLastLeftScore) { mLastLeftScore = left_score; Predicate& scoreLeftPred = pList.AddPredicate(); scoreLeftPred.name = "score_left"; scoreLeftPred.parameter.AddValue(left_score); } int right_score = mGameState->GetScore(TI_RIGHT); if (right_score != mLastRightScore) { mLastRightScore = right_score; Predicate& scoreRightPred = pList.AddPredicate(); scoreRightPred.name = "score_right"; scoreRightPred.parameter.AddValue(right_score); } // gamestate TPlayMode play_mode = mGameState->GetPlayMode(); if (play_mode != mLastPlayMode) { mLastPlayMode = play_mode; Predicate& modePred = pList.AddPredicate(); modePred.name = "play_mode"; modePred.parameter.AddValue(static_cast<int>(play_mode)); } //pass mode score wait time left team if (mGameState->GetPlayMode() == PM_PlayOn && mGameState->GetTime()-mGameState->GetLastTimeInPassMode(TI_LEFT) < mPassModeScoreWaitTime && !mGameState->GetPassModeClearedToScore(TI_LEFT)) { float wait_time = mPassModeScoreWaitTime - (mGameState->GetTime()-mGameState->GetLastTimeInPassMode(TI_LEFT)); Predicate& passModeScoreWaitLeftPred = pList.AddPredicate(); passModeScoreWaitLeftPred.name = "pass_mode_score_wait_left"; passModeScoreWaitLeftPred.parameter.AddValue(wait_time); } //pass mode score wait time right team if (mGameState->GetPlayMode() == PM_PlayOn && mGameState->GetTime()-mGameState->GetLastTimeInPassMode(TI_RIGHT) < mPassModeScoreWaitTime && !mGameState->GetPassModeClearedToScore(TI_RIGHT)) { float wait_time = mPassModeScoreWaitTime - (mGameState->GetTime()-mGameState->GetLastTimeInPassMode(TI_RIGHT)); Predicate& passModeScoreWaitRightPred = pList.AddPredicate(); passModeScoreWaitRightPred.name = "pass_mode_score_wait_right"; passModeScoreWaitRightPred.parameter.AddValue(wait_time); } } void GameStateItem::OnLink() { SoccerBase::GetGameState(*this,mGameState); mPassModeScoreWaitTime = 10.0; SoccerBase::GetSoccerVar(*this,"PassModeScoreWaitTime",mPassModeScoreWaitTime); } void GameStateItem::OnUnlink() { mGameState.reset(); }
31.506912
124
0.64853
IllyasvielEin
ec411e41e5e7f00fd5988a99752d7abb2b69a426
4,490
cpp
C++
3DShootingGame/Framework/Physics/Rigidbody.cpp
ydeagames/3DShootingGame
f93e15179452810bd55fbfcedb6c162698296ec4
[ "MIT" ]
2
2020-03-30T05:11:51.000Z
2022-01-30T09:04:40.000Z
3DShootingGame/Framework/Physics/Rigidbody.cpp
ydeagames/3DShootingGame
f93e15179452810bd55fbfcedb6c162698296ec4
[ "MIT" ]
null
null
null
3DShootingGame/Framework/Physics/Rigidbody.cpp
ydeagames/3DShootingGame
f93e15179452810bd55fbfcedb6c162698296ec4
[ "MIT" ]
2
2020-03-30T05:11:52.000Z
2020-10-28T02:06:35.000Z
// Copyright (c) 2019-2020 ydeagames // Released under the MIT license // https://github.com/ydeagames/3DShootingGame/blob/master/LICENSE // // Author: ${ydeagames} // Created: 2019-07-22 06:12:28 +0900 // Modified: 2020-01-17 11:44:41 +0900 #include "pch.h" #include "Rigidbody.h" #include "Collidable.h" #include <Framework/ECS/GameContext.h> #include <Framework/ECS/GameObject.h> #include <Framework/ECS/Scene.h> #include <Framework/Context/SceneManager.h> #include <Framework/PhysX/PhysXManager.h> #include <Framework/PhysX/PhysXScene.h> #include <Framework/Tags/Tags.h> void Rigidbody::Start() { gameObject.FindGameObjectWithTag<Tag::PhysXSceneTag>().ifPresent([&](GameObject& obj) { if (obj.HasComponent<PhysXScene>()) { auto& manager = GameContext::Get<PhysXManager>(); auto trans = physx::PxTransform(physx::toPhysX(gameObject.GetComponent<Transform>().position), physx::toPhysX(gameObject.GetComponent<Transform>().rotation)); if (gameObject.GetComponent<Transform>().isStatic) rigid = manager.GetPhysics()->createRigidStatic(trans); else { auto dynamic = manager.GetPhysics()->createRigidDynamic(trans); dynamic->setRigidBodyFlags(lockFlags); rigid = dynamic; } auto& reg = *gameObject.registry; auto& e = gameObject.entity; std::vector<entt::entity> src; auto rec0 = [&](auto& e, auto& rec) mutable -> void { src.push_back(e); reg.view<Transform>().each([&](auto entity, Transform& component) { if (component.parent == e) rec(entity, rec); }); }; rec0(e, rec0); Collidable::AddCollider(reg, src, std::forward<physx::PxRigidActor>(*rigid)); obj.GetComponent<PhysXScene>().CreateObject(*rigid); if (rigid && rigid->is<physx::PxRigidBody>()) { auto dynamic = rigid->is<physx::PxRigidBody>(); dynamic->setLinearVelocity(preVelocity); dynamic->addForce(preForce); } } }); } void Rigidbody::Update() { if (rigid) { auto trans = rigid->getGlobalPose(); gameObject.GetComponent<Transform>().position = physx::fromPhysX(trans.p); gameObject.GetComponent<Transform>().rotation = physx::fromPhysX(trans.q); } } void Rigidbody::OnDestroy() { if (rigid) { auto scene = rigid->getScene(); if (scene) scene->removeActor(*rigid); px_release(rigid); } } void Rigidbody::AddForce(const DirectX::SimpleMath::Vector3& force) { preForce = physx::toPhysX(force); if (rigid && rigid->is<physx::PxRigidBody>()) rigid->is<physx::PxRigidBody>()->addForce(physx::toPhysX(force)); } void Rigidbody::SetVelocity(const DirectX::SimpleMath::Vector3& velocity) { preVelocity = physx::toPhysX(velocity); if (rigid && rigid->is<physx::PxRigidBody>()) rigid->is<physx::PxRigidBody>()->setLinearVelocity(physx::toPhysX(velocity)); } DirectX::SimpleMath::Vector3 Rigidbody::GetVelocity() const { if (rigid && rigid->is<physx::PxRigidBody>()) return physx::fromPhysX(rigid->is<physx::PxRigidBody>()->getLinearVelocity()); return DirectX::SimpleMath::Vector3(); } Transform& Rigidbody::Fetch() { auto& t = gameObject.GetComponent<Transform>(); if (rigid) { auto trans = rigid->getGlobalPose(); t.position = physx::fromPhysX(trans.p); t.rotation = physx::fromPhysX(trans.q); } return t; } void Rigidbody::Apply() { if (rigid) { auto& t = gameObject.GetComponent<Transform>(); physx::PxTransform trans; trans.p = physx::toPhysX(t.position); trans.q = physx::toPhysX(t.rotation); rigid->setGlobalPose(trans); } } void Rigidbody::EditorGui() { { uint32_t flags = lockFlags; ImGui::CheckboxFlags("Kinematic", &flags, physx::PxRigidBodyFlag::eKINEMATIC); ImGui::CheckboxFlags("Use Kinematic Target for Scene Queries", &flags, physx::PxRigidBodyFlag::eUSE_KINEMATIC_TARGET_FOR_SCENE_QUERIES); ImGui::CheckboxFlags("Enable CCD", &flags, physx::PxRigidBodyFlag::eENABLE_CCD); ImGui::CheckboxFlags("Enable CCD Friction", &flags, physx::PxRigidBodyFlag::eENABLE_CCD_FRICTION); ImGui::CheckboxFlags("Enable Pose Integration Preview", &flags, physx::PxRigidBodyFlag::eENABLE_POSE_INTEGRATION_PREVIEW); ImGui::CheckboxFlags("Enable Speculative CCD", &flags, physx::PxRigidBodyFlag::eENABLE_SPECULATIVE_CCD); ImGui::CheckboxFlags("Enable CCD Max Contact Impulse", &flags, physx::PxRigidBodyFlag::eENABLE_CCD_MAX_CONTACT_IMPULSE); ImGui::CheckboxFlags("Return Accelerations", &flags, physx::PxRigidBodyFlag::eRETAIN_ACCELERATIONS); lockFlags = physx::PxRigidBodyFlags(physx::PxU8(flags)); } }
30.753425
162
0.710022
ydeagames
ec41db944c5ccf4371e9f02f77f4024f1882087c
754
cpp
C++
source/native-backend/parsing/TextProcessor.cpp
batburger/Native-Backend
aaed26851e09f9e110061025fb2140aed1b4f9b5
[ "Apache-2.0" ]
null
null
null
source/native-backend/parsing/TextProcessor.cpp
batburger/Native-Backend
aaed26851e09f9e110061025fb2140aed1b4f9b5
[ "Apache-2.0" ]
null
null
null
source/native-backend/parsing/TextProcessor.cpp
batburger/Native-Backend
aaed26851e09f9e110061025fb2140aed1b4f9b5
[ "Apache-2.0" ]
null
null
null
// // Created by albert on 3/17/18. // #include "native-backend/parsing/TextProcessor.h" /*!\brief Finds the value specified as key in \c replacement_map in the \c input_string and replaces it with the value for the key.*/ void nvb::TextProcessor::process(std::string *input_string, std::unordered_map<std::string, std::string> &replacement_map) { for(auto replacement_pair : replacement_map){ while(input_string->find(replacement_pair.first, 0) != input_string->npos){ size_t position = input_string->find(replacement_pair.first, 0); *input_string = input_string->erase(position, replacement_pair.first.size()); *input_string = input_string->insert(position, replacement_pair.second); } } }
41.888889
133
0.706897
batburger
ec452340961e1d815ad437430988dbeaa16cbb3d
1,234
cpp
C++
daolib/CommonQueries.cpp
mfranceschi/SQLiteDao
447da25d15f6332e454f151fb71aa232665d8506
[ "MIT" ]
null
null
null
daolib/CommonQueries.cpp
mfranceschi/SQLiteDao
447da25d15f6332e454f151fb71aa232665d8506
[ "MIT" ]
null
null
null
daolib/CommonQueries.cpp
mfranceschi/SQLiteDao
447da25d15f6332e454f151fb71aa232665d8506
[ "MIT" ]
null
null
null
#include "CommonQueries.hpp" #include <algorithm> #include "magic_enum.hpp" #include <fmt/core.h> #include <fmt/format.h> std::string enquote(const std::string &text) { return fmt::format("`{}`", text); }; namespace CommonQueries { std::string dropTableIfExists(const std::string &tableName) { return fmt::format("DROP TABLE IF EXISTS {}; ", enquote(tableName)); } std::string createTable(const std::string &tableName, const ColumnList_t &columnList) { std::vector<std::string> columnDeclarations(columnList.size()); std::transform(columnList.cbegin(), columnList.cend(), columnDeclarations.begin(), [](const ColumnData &columnData) { return fmt::format("{} {}", columnData.name, magic_enum::enum_name(columnData.type)); }); return fmt::format("CREATE TABLE {} ({}); ", tableName, fmt::join(columnDeclarations, ", ")); } std::string selectAll(const std::string &tableName) { return fmt::format("SELECT * FROM {}; ", enquote(tableName)); } std::string listTables() { return "SELECT name FROM sqlite_schema WHERE type = 'table' ORDER BY NAME; "; } } // namespace CommonQueries
30.85
79
0.628849
mfranceschi
ec4c7360f6ec7ae840e22bc6ba95fe901cc59e4a
186
cpp
C++
test/test-bits.cpp
mbeutel/slowmath
d09967d168433814896e83af2fbc92bc36e6c4fb
[ "BSL-1.0" ]
1
2021-09-02T07:03:53.000Z
2021-09-02T07:03:53.000Z
test/test-bits.cpp
mbeutel/slowmath
d09967d168433814896e83af2fbc92bc36e6c4fb
[ "BSL-1.0" ]
8
2019-12-03T21:11:07.000Z
2020-02-05T18:44:31.000Z
test/test-bits.cpp
mbeutel/slowmath
d09967d168433814896e83af2fbc92bc36e6c4fb
[ "BSL-1.0" ]
null
null
null
#include <tuple> #include <catch2/catch.hpp> #include <slowmath/arithmetic.hpp> // TODO: add comprehensive tests for shift_left() // TODO: add comprehensive tests for shift_right()
16.909091
50
0.741935
mbeutel
ec4de22693fbd85ce1682b86960c25b1d8fde467
1,614
cpp
C++
HW06/src/utils.cpp
petegerhat/cuda
671c244276828baeeb66e2c4e0e2f9881b666716
[ "Apache-2.0" ]
null
null
null
HW06/src/utils.cpp
petegerhat/cuda
671c244276828baeeb66e2c4e0e2f9881b666716
[ "Apache-2.0" ]
null
null
null
HW06/src/utils.cpp
petegerhat/cuda
671c244276828baeeb66e2c4e0e2f9881b666716
[ "Apache-2.0" ]
null
null
null
/* * File: main.cpp * Author: peter * * Created on March 25, 2012, 1:36 AM */ #ifndef UTILS_H #define UTILS_H #include <cstdlib> #include <iostream> #include <iomanip> #include <math.h> using namespace std; DT& getDistance(DT* distances, int n, int i, int j) { #ifdef DIS1 return distances[i * n + j]; #else throw "Missing DIS"; #endif } DT *genEmptyMatrix(const int n) { DT *ptr; //cudaMallocHost(&ptr, n * sizeof (DT)); ptr = new DT[n]; return ptr; } unsigned int *genEmptyColMatrix(const int n) { unsigned int *ptr; //cudaMallocHost(&ptr, n * sizeof (DT)); ptr = new unsigned int[n]; return ptr; } DT *genMatrix(const int n) { DT *ptr; ptr = genEmptyMatrix(n); for (int i = 0; i < n; i++) { ptr[i] = ((DT) rand()) / RAND_MAX; } return ptr; } DT **genMatrix(const int n, const int m) { DT **ptr; //ptr = (DT**)malloc(n*sizeof(DT*)); //cudaMallocHost((void**)&ptr, n*sizeof(DT*)); ptr = new DT*[n]; for (int i = 0; i < n; i++) { ptr[i] = genEmptyMatrix(m); for (int j = 0; j < m; j++) { ptr[i][j] = ((DT) rand()) / RAND_MAX; } } return ptr; } void cudaRelease(int n, DT** array) { for (int i = 0; i < n; i++) { cudaFree(array[i]); } cudaFree(array); } void cudaRelease(DT* array) { cudaFree(array); } void cudaRelease(unsigned int* array) { cudaFree(array); } void release(int n, DT** array) { for (int i = 0; i < n; i++) { free(array[i]); } free(array); } void release(DT* array) { free(array); } #endif
17.543478
53
0.545229
petegerhat
ec5c747a65793612ebb73d5af99470d314af928a
1,235
cc
C++
common/iterator_test.cc
disktnk/chainer-compiler
5cfd027b40ea6e4abf73eb42be70b4fba74d1cde
[ "MIT" ]
116
2019-01-25T03:54:44.000Z
2022-03-08T00:11:14.000Z
common/iterator_test.cc
disktnk/chainer-compiler
5cfd027b40ea6e4abf73eb42be70b4fba74d1cde
[ "MIT" ]
431
2019-01-25T10:18:44.000Z
2020-06-17T05:28:55.000Z
common/iterator_test.cc
disktnk/chainer-compiler
5cfd027b40ea6e4abf73eb42be70b4fba74d1cde
[ "MIT" ]
26
2019-01-25T07:21:09.000Z
2021-11-26T04:24:35.000Z
#include <gtest/gtest.h> #include <set> #include <vector> #include <common/iterator.h> namespace chainer_compiler { namespace { TEST(IteratorTest, Zip) { std::set<int> ints = {3, 4, 5}; std::vector<std::string> strs = {"a", "b", "c"}; std::vector<std::tuple<int, std::string>> results; for (const auto& p : Zip(ints, strs)) { results.push_back(p); } ASSERT_EQ(3, results.size()); EXPECT_EQ(3, std::get<0>(results[0])); EXPECT_EQ("a", std::get<1>(results[0])); EXPECT_EQ(4, std::get<0>(results[1])); EXPECT_EQ("b", std::get<1>(results[1])); EXPECT_EQ(5, std::get<0>(results[2])); EXPECT_EQ("c", std::get<1>(results[2])); } TEST(IteratorTest, Enumerator) { std::vector<std::string> strs = {"a", "b", "c"}; std::vector<std::pair<size_t, std::string>> results; for (const auto& e : Enumerate(strs)) { results.emplace_back(e.index, e.value); } ASSERT_EQ(3, results.size()); EXPECT_EQ(0, results[0].first); EXPECT_EQ("a", results[0].second); EXPECT_EQ(1, results[1].first); EXPECT_EQ("b", results[1].second); EXPECT_EQ(2, results[2].first); EXPECT_EQ("c", results[2].second); } } // namespace } // namespace chainer_compiler
28.068182
56
0.604858
disktnk
ec5f0a1e909552fb2848eaa8bea0b5b849b68c16
575
cpp
C++
Algorithms/1269.Number_of_Ways_to_Stay_in_the_Same_Place_After_Some_Steps.cpp
metehkaya/LeetCode
52f4a1497758c6f996d515ced151e8783ae4d4d2
[ "MIT" ]
2
2020-07-20T06:40:22.000Z
2021-11-20T01:23:26.000Z
Problems/LeetCode/Problems/1269.Number_of_Ways_to_Stay_in_the_Same_Place_After_Some_Steps.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
Problems/LeetCode/Problems/1269.Number_of_Ways_to_Stay_in_the_Same_Place_After_Some_Steps.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
class Solution { public: const int MOD = (int) 1e9 + 7; int numWays(int steps, int n) { n = min(n,steps+1); vector<vector<int>> dp(steps+1,vector<int>(n,0)); dp[0][0] = 1; for( int s = 1 ; s <= steps ; s++ ) for( int i = 0 ; i < n ; i++ ) { dp[s][i] = dp[s-1][i]; if(i-1 >= 0) dp[s][i] = ( dp[s][i] + dp[s-1][i-1] ) % MOD; if(i+1 <= n-1) dp[s][i] = ( dp[s][i] + dp[s-1][i+1] ) % MOD; } return dp[steps][0]; } };
31.944444
65
0.353043
metehkaya
ec626a878b49aeca2f8c8eb34f81b11e7ba0e81b
46,255
cpp
C++
net/tapi/skywalker/terminals/frecord/recordingtrackterminal.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
net/tapi/skywalker/terminals/frecord/recordingtrackterminal.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
net/tapi/skywalker/terminals/frecord/recordingtrackterminal.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
// RecordingTrackTerminal.cpp: implementation of the CRecordingTrackTerminal class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "RecordingTrackTerminal.h" #include "FileRecordingTerminal.h" #include "..\storage\RendPinFilter.h" #include <formats.h> // {9DB520FD-CF2D-40dc-A4C9-5570630A7E2B} const CLSID CLSID_FileRecordingTrackTerminal = {0x9DB520FD, 0xCF2D, 0x40DC, 0xA4, 0xC9, 0x55, 0x70, 0x63, 0x0A, 0x7E, 0x2B}; ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CRecordingTrackTerminal::CRecordingTrackTerminal() :m_pParentTerminal(NULL), m_pEventSink(NULL) { LOG((MSP_TRACE, "CRecordingTrackTerminal::CRecordingTrackTerminal[%p] - enter", this)); // // the actual terminal name will be set in InitializeDynamic // m_szName[0] = _T('\0'); m_TerminalType = TT_DYNAMIC; LOG((MSP_TRACE, "CRecordingTrackTerminal::CRecordingTrackTerminal - finish")); } ////////////////////////////////////////////////////////////////////////////// CRecordingTrackTerminal::~CRecordingTrackTerminal() { LOG((MSP_TRACE, "CRecordingTrackTerminal::~CRecordingTrackTerminal[%p] - enter", this)); // // if we have an event sink, release it // if( NULL != m_pEventSink ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::~CRecordingTrackTerminal releasing sink %p", m_pEventSink)); m_pEventSink->Release(); m_pEventSink = NULL; } LOG((MSP_TRACE, "CRecordingTrackTerminal::~CRecordingTrackTerminal - finish")); } ////////////////////////////////////////////////////////////////////////////// // // IDispatch implementation // typedef IDispatchImpl<ITFileTrackVtblFRT<CRecordingTrackTerminal> , &IID_ITFileTrack, &LIBID_TAPI3Lib> CTFileTrackFRT; typedef IDispatchImpl<ITTerminalVtblBase<CBaseTerminal>, &IID_ITTerminal, &LIBID_TAPI3Lib> CTTerminalFRT; ///////////////////////////////////////////////////////////////////////// // // CRecordingTrackTerminal::GetIDsOfNames // // STDMETHODIMP CRecordingTrackTerminal::GetIDsOfNames(REFIID riid, LPOLESTR* rgszNames, UINT cNames, LCID lcid, DISPID* rgdispid ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::GetIDsOfNames[%p] - enter. Name [%S]", this, *rgszNames)); HRESULT hr = DISP_E_UNKNOWNNAME; // // See if the requsted method belongs to the default interface // hr = CTTerminalFRT::GetIDsOfNames(riid, rgszNames, cNames, lcid, rgdispid); if (SUCCEEDED(hr)) { LOG((MSP_TRACE, "CRecordingTrackTerminal::GetIDsOfNames - found %S on ITTerminal", *rgszNames)); rgdispid[0] |= 0; return hr; } // // If not, then try the ITFileTrack interface // hr = CTFileTrackFRT::GetIDsOfNames(riid, rgszNames, cNames, lcid, rgdispid); if (SUCCEEDED(hr)) { LOG((MSP_TRACE, "CRecordingTrackTerminal::GetIDsOfNames - found %S on ITFileTrack", *rgszNames)); rgdispid[0] |= IDISPFILETRACK; return hr; } LOG((MSP_TRACE, "CRecordingTrackTerminal::GetIDsOfNames - finish. didn't find %S on our iterfaces", *rgszNames)); return hr; } ///////////////////////////////////////////////////////////////////////// // // CRecordingTrackTerminal::Invoke // // STDMETHODIMP CRecordingTrackTerminal::Invoke(DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pdispparams, VARIANT* pvarResult, EXCEPINFO* pexcepinfo, UINT* puArgErr ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::Invoke[%p] - enter. dispidMember %lx", this, dispidMember)); HRESULT hr = DISP_E_MEMBERNOTFOUND; DWORD dwInterface = (dispidMember & INTERFACEMASK); // // Call invoke for the required interface // switch (dwInterface) { case 0: { hr = CTTerminalFRT::Invoke(dispidMember, riid, lcid, wFlags, pdispparams, pvarResult, pexcepinfo, puArgErr ); LOG((MSP_TRACE, "CRecordingTrackTerminal::Invoke - ITTerminal")); break; } case IDISPFILETRACK: { hr = CTFileTrackFRT::Invoke(dispidMember, riid, lcid, wFlags, pdispparams, pvarResult, pexcepinfo, puArgErr ); LOG((MSP_TRACE, "CRecordingTrackTerminal::Invoke - ITFileTrack")); break; } } // end switch (dwInterface) LOG((MSP_TRACE, "CRecordingTrackTerminal::Invoke - finish. hr = %lx", hr)); return hr; } ///////////////////////////////////// // // CRecordingTrackTerminal::SetFilter // // configures the track terminal with a filter to use // // if filter pointer is null, this uninitializes the treack // HRESULT CRecordingTrackTerminal::SetFilter(IN CBRenderFilter *pRenderingFilter) { LOG((MSP_TRACE, "CRecordingTrackTerminal::SetFilter[%p] - enter. " "pFilter = [%p]", this, pRenderingFilter)); // // check arguments // if ( ( pRenderingFilter != NULL ) && ( IsBadReadPtr( pRenderingFilter, sizeof(CBRenderFilter ) ) ) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::SetFilter - bad filter passed in.")); return E_POINTER; } // // accessing data members -- lock // CLock lock(m_CritSec); // // temporaries for new filter and pin // IBaseFilter *pNewFilter = NULL; IPin *pNewPin = NULL; // // if a new filter was passed in, gets its IBaseFilter interface and its pin // if (NULL != pRenderingFilter) { // // get filter's IBaseFilter interface. // HRESULT hr = pRenderingFilter->QueryInterface(IID_IBaseFilter, (void**)&pNewFilter); if( FAILED(hr) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::SetFilter - QI for IBaseFilter failed. " "hr = %lx", hr)); return hr; } // // get filter's pin // pNewPin = pRenderingFilter->GetPin(0); if (FAILED(hr)) { LOG((MSP_ERROR, "CRecordingTrackTerminal::SetFilter - failed to get pin. " "hr = %lx", hr)); // // cleanup // pNewFilter->Release(); pNewFilter = NULL; return hr; } } // // keep the new filter and pin (or NULLs if a NULL was passed for a filter) // the smart pointers will take care of addrefing. // m_pIPin = pNewPin; m_pIFilter = pNewFilter; // // release filter to compensate for the outstanding refcount from qi // if (NULL != pNewFilter) { pNewFilter->Release(); pNewFilter = NULL; } LOG((MSP_TRACE, "CRecordingTrackTerminal::SetFilter - finish")); return S_OK; } ////////////////////////////////////////////////////////////////////////////// HRESULT CRecordingTrackTerminal::GetFilter(OUT CBRenderFilter **ppRenderingFilter) { LOG((MSP_TRACE, "CRecordingTrackTerminal::GetFilter[%p] - enter.", this)); // // check arguments // if ( ( IsBadWritePtr( ppRenderingFilter, sizeof(CBRenderFilter *) ) ) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::SetFilter - bad filter passed in.")); return E_POINTER; } // // accessing data members -- lock // CLock lock(m_CritSec); *ppRenderingFilter = NULL; // // if we have a filter pointer that is not null, return it // if (m_pIFilter != NULL) { // // get a pointer to the filter object from a <smart> interface pointer // *ppRenderingFilter = static_cast<CBRenderFilter *>(m_pIFilter.p); // // return an extra reference // (*ppRenderingFilter)->AddRef(); } LOG((MSP_TRACE, "CRecordingTrackTerminal::GetFilter - finish")); return S_OK; } ////////////////////////////////////////////////////////////////////////////// HRESULT CRecordingTrackTerminal::AddFiltersToGraph() { LOG((MSP_TRACE, "CRecordingTrackTerminal::AddFiltersToGraph - enter")); // USES_CONVERSION; CLock lock(m_CritSec); // // Validates m_pGraph // if ( m_pGraph == NULL) { LOG((MSP_ERROR, "CRecordingTrackTerminal::AddFiltersToGraph - " "we have no graph - returning E_UNEXPECTED")); return E_UNEXPECTED; } // // Validates m_pIFilter // if ( m_pIFilter == NULL) { LOG((MSP_ERROR, "CRecordingTrackTerminal::AddFiltersToGraph - " "we have no filter - returning E_UNEXPECTED")); return E_UNEXPECTED; } // // AddFilter returns VFW_S_DUPLICATE_NAME if name is duplicate; still succeeds // HRESULT hr = m_pGraph->AddFilter(m_pIFilter, T2CW(m_szName)); if ( FAILED(hr) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::AddFiltersToGraph() - " "Can't add filter. hr = %lx", hr)); return hr; } LOG((MSP_TRACE, "CRecordingTrackTerminal::AddFiltersToGraph - exit S_OK")); return S_OK; } ////////////////////////////////////////////////////////////////////////////// HRESULT STDMETHODCALLTYPE CRecordingTrackTerminal::InitializeDynamic( IN IID iidTerminalClass, IN DWORD dwMediaType, IN TERMINAL_DIRECTION Direction, IN MSP_HANDLE htAddress ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::InitializeDynamic[%p] - enter", this)); // // make sure the direction is correct // if (TD_RENDER != Direction) { LOG((MSP_ERROR, "CRecordingTrackTerminal::InitializeDynamic - bad direction [%d] requested. returning E_INVALIDARG", Direction)); return E_INVALIDARG; } // // make sure the mediatype is correct (multitrack or (audio but nothing else)) // DWORD dwMediaTypesOtherThanVideoAndAudio = dwMediaType & ~(TAPIMEDIATYPE_AUDIO); // | TAPIMEDIATYPE_VIDEO); if ( (TAPIMEDIATYPE_MULTITRACK != dwMediaType) && (0 != dwMediaTypesOtherThanVideoAndAudio) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::InitializeDynamic - bad media type [%d] requested. returning E_INVALIDARG", dwMediaType)); return E_INVALIDARG; } CLock lock(m_CritSec); // // set track's name for ITTerminal::get_Name // // load string from resources BSTR bstrTrackName = SafeLoadString(IDS_FR_TRACK_NAME); // calculate the size of the array we have at our disposal size_t nStringMaxSize = sizeof(m_szName)/sizeof(TCHAR); if (NULL != bstrTrackName ) { _tcsncpy(m_szName, bstrTrackName, nStringMaxSize); } else { LOG((MSP_ERROR, "CRecordingTrackTerminal::InitializeDynamic - failed to load terminal name resource")); return E_OUTOFMEMORY; } SysFreeString(bstrTrackName); bstrTrackName = NULL; // in case string copy did not append with a zero, do it by hand m_szName[nStringMaxSize-1] = 0; LOG((MSP_TRACE, "CRecordingTrackTerminal::InitializeDynamic - Track Name [%S]", m_szName)); // // keep the address handle -- will need it when creating track terminals // m_htAddress = htAddress; // // keep direction // m_TerminalDirection = Direction; // // keep media type // m_dwMediaType = dwMediaType; // // keep terminal class // m_TerminalClassID = iidTerminalClass; LOG((MSP_TRACE, "CRecordingTrackTerminal::InitializeDynamic - finish")); return S_OK; } ////////////////////////////////////////////////////////////////////////////// DWORD CRecordingTrackTerminal::GetSupportedMediaTypes() { LOG((MSP_TRACE, "CRecordingTrackTerminal::GetSupportedMediaTypes[%p] - finish", this)); CLock lock(m_CritSec); DWORD dwMediaType = m_dwMediaType; LOG((MSP_TRACE, "CRecordingTrackTerminal::GetSupportedMediaTypes - finish. MediaType = [0x%lx]", dwMediaType)); return dwMediaType; } // // ITFileTrack methods // ////////////////////////////////////////////////////////////////////////////// HRESULT STDMETHODCALLTYPE CRecordingTrackTerminal::get_Format(OUT AM_MEDIA_TYPE **ppmt) { LOG((MSP_TRACE, "CRecordingTrackTerminal::get_Format[%p] - enter.", this)); // // check the argument // if (IsBadWritePtr(ppmt, sizeof(AM_MEDIA_TYPE*))) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_Format - bad pointer ppmt passed in")); return E_POINTER; } // // no garbage out // *ppmt = NULL; CLock lock(m_CritSec); // // we need a pin to know format // if (m_pIPin == NULL) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_Format - no pin. the terminal was not initialized. " "TAPI_E_NOT_INITIALIZED")); return TAPI_E_NOT_INITIALIZED; } // // get a pointer to the pin object // CBRenderPin *pPinObject = GetCPin(); if (NULL == pPinObject) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_Format - the pins is not CBRenderPin")); TM_ASSERT(FALSE); return E_UNEXPECTED; } // // ask pin for its media type // CMediaType MediaTypeClass; HRESULT hr = pPinObject->GetMediaType(0, &MediaTypeClass); if (FAILED(hr)) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_Format - failed to get pin's format. hr = %lx", hr)); return hr; } // // fail if the format was not yet set. // if ( VFW_S_NO_MORE_ITEMS == hr ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_Format - format not yet set. TAPI_E_NOFORMAT")); return TAPI_E_NOFORMAT; } // // allocate am_media_type to be returned // *ppmt = CreateMediaType(&MediaTypeClass); if (NULL == *ppmt) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_Format - the pins is not CBRenderPin")); return E_OUTOFMEMORY; } LOG((MSP_TRACE, "CRecordingTrackTerminal::get_Format - finish")); return S_OK; } ////////////////////////////////////////////////////////////////////////////// HRESULT STDMETHODCALLTYPE CRecordingTrackTerminal::put_Format(IN const AM_MEDIA_TYPE *pmt) { LOG((MSP_TRACE, "CRecordingTrackTerminal::put_Format[%p] - enter.", this)); // // check the argument // if (IsBadReadPtr(pmt, sizeof(AM_MEDIA_TYPE))) { LOG((MSP_ERROR, "CRecordingTrackTerminal::put_Format - bad pointer pmt passed in")); return E_POINTER; } CLock lock(m_CritSec); // // we need a pin to know format // if (m_pIFilter == NULL) { LOG((MSP_ERROR, "CRecordingTrackTerminal::put_Format - no filter -- the terminal not uninitilized")); return TAPI_E_NOT_INITIALIZED; } // // make sure supplied format matches track's type // if ( IsEqualGUID(pmt->majortype, MEDIATYPE_Audio) ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::put_Format - MEDIATYPE_Audio")); // // audio format, the track should be audio too // if (TAPIMEDIATYPE_AUDIO != m_dwMediaType) { LOG((MSP_ERROR, "CRecordingTrackTerminal::put_Format - trying to put audio format on a non-audio track. " "VFW_E_INVALIDMEDIATYPE" )); return VFW_E_INVALIDMEDIATYPE; } } else if ( IsEqualGUID(pmt->majortype, MEDIATYPE_Video) ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::put_Format - MEDIATYPE_Video")); // // audio format, the track should be audio too // if (TAPIMEDIATYPE_VIDEO != m_dwMediaType) { LOG((MSP_ERROR, "CRecordingTrackTerminal::put_Format - trying to put video format on a non-video track. " "VFW_E_INVALIDMEDIATYPE" )); return VFW_E_INVALIDMEDIATYPE; } } else { LOG((MSP_ERROR, "CRecordingTrackTerminal::put_Format - major type not recognized or supported. " "VFW_E_INVALIDMEDIATYPE" )); return VFW_E_INVALIDMEDIATYPE; } // // get a pointer to the filter object // CBRenderFilter *pFilter = static_cast<CBRenderFilter *>(m_pIFilter.p); // // allocate a CMediaType object to pass to the filer // HRESULT hr = E_FAIL; CMediaType *pMediaTypeObject = NULL; try { // // constructor allocates memory, do inside try/catch // pMediaTypeObject = new CMediaType(*pmt); } catch(...) { LOG((MSP_ERROR, "CRecordingTrackTerminal::put_Format - exception. failed to allocate media format")); return E_OUTOFMEMORY; } // // no memory for the object // if (NULL == pMediaTypeObject) { LOG((MSP_ERROR, "CRecordingTrackTerminal::put_Format - failed to allocate media format")); return E_OUTOFMEMORY; } // // pass format to the filter // hr = pFilter->put_MediaType(pMediaTypeObject); delete pMediaTypeObject; pMediaTypeObject = NULL; LOG((MSP_(hr), "CRecordingTrackTerminal::put_Format - finish.. hr = %lx", hr)); return hr; } STDMETHODIMP CRecordingTrackTerminal::CompleteConnectTerminal() { LOG((MSP_TRACE, "CRecordingTrackTerminal::CompleteConnectTerminal[%p] - enter.", this)); // // pointers to be used outside the lock // CFileRecordingTerminal *pParentTerminal = NULL; CBRenderFilter *pFilter = NULL; { CLock lock(m_CritSec); // // we should have a parent // if (NULL == m_pParentTerminal) { LOG((MSP_ERROR, "CRecordingTrackTerminal::CompleteConnectTerminal - no parent")); return E_FAIL; } // // we should have a filter // if (m_pIFilter == NULL) { LOG((MSP_ERROR, "CRecordingTrackTerminal::CompleteConnectTerminal - no filter")); return E_FAIL; } // // cast filter interface pointer to a filter obejct pointer // pFilter = static_cast<CBRenderFilter *>(m_pIFilter.p); // // addref the filter and parent terminal so we can use outside the lock // pFilter->AddRef(); pParentTerminal = m_pParentTerminal; pParentTerminal->AddRef(); } // // notify the parent that the terminal connected // HRESULT hr = pParentTerminal->OnFilterConnected(pFilter); pFilter->Release(); pFilter = NULL; pParentTerminal->Release(); pParentTerminal = NULL; LOG((MSP_(hr), "CRecordingTrackTerminal::CompleteConnectTerminal - finish. hr = %lx", hr)); return hr; } // // a helper method used by file recording terminal to let us know who the parent is // // the method returns current track's refcount // // note that tracks don't keep refcounts to the parents. // HRESULT CRecordingTrackTerminal::SetParent(IN CFileRecordingTerminal *pParentTerminal, LONG *pCurrentRefCount) { LOG((MSP_TRACE, "CRecordingTrackTerminal::SetParent[%p] - enter. " "pParentTerminal = [%p]", this, pParentTerminal)); // // check argument // if (IsBadWritePtr(pCurrentRefCount, sizeof(LONG))) { LOG((MSP_ERROR, "CRecordingTrackTerminal::SetParent - bad pointer passed in pCurrentRefCount[%p]", pCurrentRefCount)); TM_ASSERT(FALSE); return E_POINTER; } CLock lock(m_CritSec); // // if we already have a parent, release it // if (NULL != m_pParentTerminal) { LOG((MSP_TRACE, "CRecordingTrackTerminal::SetParent - releasing existing new parent [%p]", m_pParentTerminal)); m_pParentTerminal = NULL; } // // keep the new parent // if (NULL != pParentTerminal) { LOG((MSP_TRACE, "CRecordingTrackTerminal::SetParent - keeping the new parent.")); m_pParentTerminal = pParentTerminal; } // // return our current reference count // *pCurrentRefCount = m_dwRef; LOG((MSP_TRACE, "CRecordingTrackTerminal::SetParent - finish.")); return S_OK; } ///////////////////////////////////////////////////////////////////////////// ULONG CRecordingTrackTerminal::InternalAddRef() { // LOG((MSP_TRACE, "CRecordingTrackTerminal::InternalAddRef[%p] - enter.", this)); // // attempt to notify a parent // CLock lock(m_CritSec); if (NULL != m_pParentTerminal) { LOG((MSP_TRACE, "CRecordingTrackTerminal::InternalAddRef - notifying the parent.")); // // notify the parent of an addref, thus causing it to update its total refcount // m_pParentTerminal->ChildAddRef(); } m_dwRef++; ULONG ulReturnValue = m_dwRef; // LOG((MSP_TRACE, "CRecordingTrackTerminal::InternalAddRef - finish. ulReturnValue %lu", ulReturnValue)); return ulReturnValue; } ///////////////////////////////////////////////////////////////////////////// ULONG CRecordingTrackTerminal::InternalRelease() { // LOG((MSP_TRACE, "CRecordingTrackTerminal::InternalRelease[%p] - enter.", this)); // // attempt to notify a parent // CLock lock(m_CritSec); if (NULL != m_pParentTerminal) { LOG((MSP_TRACE, "CRecordingTrackTerminal::InternalRelease - notifying the parent.")); // // propagate release to the parent // m_pParentTerminal->ChildRelease(); // // if the parent is going away, the parent will set my parent pointer to null, and call release on me again. // that is ok -- i will not go away until the first call to release completes // } m_dwRef--; ULONG ulReturnValue = m_dwRef; // LOG((MSP_TRACE, "CRecordingTrackTerminal::InternalRelease - finish. ulReturnValue %lu", ulReturnValue)); return ulReturnValue; } CBRenderPin *CRecordingTrackTerminal::GetCPin() { // // nothing to do if the pin is null // if (m_pIPin == NULL) { return NULL; } CBRenderPin *pCPin = static_cast<CBRenderPin*>(m_pIPin.p); return pCPin; } HRESULT STDMETHODCALLTYPE CRecordingTrackTerminal::get_ControllingTerminal( OUT ITTerminal **ppControllingTerminal ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::get_ControllingTerminal[%p] - enter.", this)); if (IsBadWritePtr(ppControllingTerminal, sizeof(ITTerminal*))) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_ControllingTerminal - bad pointer passed in.")); return E_POINTER; } // // no garbage out // *ppControllingTerminal = NULL; CLock lock(m_CritSec); HRESULT hr = S_OK; // // if i have a parent i will addref it and return a pointer to its ITTerminal interface // if (NULL == m_pParentTerminal) { *ppControllingTerminal = NULL; LOG((MSP_TRACE, "CRecordingTrackTerminal::get_ControllingTerminal - this track has no parent.")); } else { // // get parent's ITTerminal // hr = m_pParentTerminal->_InternalQueryInterface(IID_ITTerminal, (void**)ppControllingTerminal); if (FAILED(hr)) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_ControllingTerminal - querying parent for ITTerminal failed hr = %lx", hr)); // // just to be safe // *ppControllingTerminal = NULL; } } LOG((MSP_TRACE, "CRecordingTrackTerminal::get_ControllingTerminal - finish. hr = %lx", hr)); return hr; } HRESULT CRecordingTrackTerminal::get_AudioFormatForScripting( OUT ITScriptableAudioFormat** ppAudioFormat ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::get_AudioFormatForScripting[%p] - enter.", this)); // // Validates argument // if( IsBadWritePtr( ppAudioFormat, sizeof( ITScriptableAudioFormat*)) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_AudioFormatForScripting - " "bad ITScriptableAudioFormat* pointer - returning E_POINTER")); return E_POINTER; } // // Mediatype audio? // if( TAPIMEDIATYPE_AUDIO != m_dwMediaType) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_AudioFormatForScripting - " "invalid media type - returning TAPI_E_INVALIDMEDIATYPE")); return TAPI_E_INVALIDMEDIATYPE; } // // accessing data members -- lock // CLock lock(m_CritSec); // // need to have a pin // if(m_pIPin == NULL) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_AudioFormatForScripting - " "no pin - returning TAPI_E_NOT_INITIALIZED")); return TAPI_E_NOT_INITIALIZED; } // // get a pointer to the pin object // CBRenderPin *pRenderPinObject = GetCPin(); if (NULL == pRenderPinObject) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_AudioFormatForScripting - the pins is not CBRenderPin")); TM_ASSERT(FALSE); return E_UNEXPECTED; } // // Create the object object // CComObject<CTAudioFormat> *pAudioFormat = NULL; HRESULT hr = CComObject<CTAudioFormat>::CreateInstance(&pAudioFormat); if( FAILED(hr) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_AudioFormatForScripting - " "CreateInstance failed - returning 0x%08x", hr)); return hr; } // // Get the interface // hr = pAudioFormat->QueryInterface( IID_ITScriptableAudioFormat, (void**)ppAudioFormat ); if( FAILED(hr) ) { delete pAudioFormat; LOG((MSP_ERROR, "CRecordingTrackTerminal::get_AudioFormatForScripting - " "QueryInterface failed - returning 0x%08x", hr)); return hr; } // // Get audio format // // ask the pin for its format CMediaType MediaTypeObject; hr = pRenderPinObject->GetMediaType(0, &MediaTypeObject); if( FAILED(hr) ) { (*ppAudioFormat)->Release(); *ppAudioFormat = NULL; LOG((MSP_ERROR, "CRecordingTrackTerminal::get_AudioFormatForScripting - " "get_Format failed - returning 0x%08x", hr)); return hr; } // // make sure we have an audio format // if( MediaTypeObject.formattype != FORMAT_WaveFormatEx) { (*ppAudioFormat)->Release(); *ppAudioFormat = NULL; LOG((MSP_ERROR, "CRecordingTrackTerminal::get_AudioFormatForScripting - " "formattype is not WAVEFORMATEX - Returning TAPI_E_INVALIDMEDIATYPE")); return TAPI_E_INVALIDMEDIATYPE; } // // Get WAVEFORMATEX // pAudioFormat->Initialize( (WAVEFORMATEX*)(MediaTypeObject.pbFormat)); LOG((MSP_TRACE, "CRecordingTrackTerminal::get_AudioFormatForScripting - finish")); return S_OK; } HRESULT CRecordingTrackTerminal::put_AudioFormatForScripting( IN ITScriptableAudioFormat* pAudioFormat ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::put_AudioFormatForScripting[%p] - enter.", this)); // // Validate argument // if( IsBadReadPtr( pAudioFormat, sizeof(ITScriptableAudioFormat)) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::put_AudioFormatForScripting - " "bad ITScriptableAudioFormat* pointer - returning E_POINTER")); return E_POINTER; } // // Create a WAVEFORMATEX structure // WAVEFORMATEX wfx; long lValue = 0; pAudioFormat->get_FormatTag( &lValue ); wfx.wFormatTag = (WORD)lValue; pAudioFormat->get_Channels( &lValue ); wfx.nChannels = (WORD)lValue; pAudioFormat->get_SamplesPerSec( &lValue ); wfx.nSamplesPerSec = (DWORD)lValue; pAudioFormat->get_AvgBytesPerSec( &lValue ); wfx.nAvgBytesPerSec = (DWORD)lValue; pAudioFormat->get_BlockAlign( &lValue ); wfx.nBlockAlign = (WORD)lValue; pAudioFormat->get_BitsPerSample(&lValue); wfx.wBitsPerSample = (WORD)lValue; wfx.cbSize = 0; // // accessing data members -- lock // CLock lock(m_CritSec); // // have a pin? // if( m_pIPin == NULL ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_AudioFormatForScripting - no pin. " "returning TAPI_E_NOT_INITIALIZED")); return TAPI_E_NOT_INITIALIZED; } // // get a pointer to the pin object // CBRenderPin *pRenderPinObject = GetCPin(); if (NULL == pRenderPinObject) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_AudioFormatForScripting - the pins is not CBRenderPin")); TM_ASSERT(FALSE); return E_UNEXPECTED; } // // Create AM_MEDIA_TYPE structure // CMediaType MediaFormatObject; HRESULT hr = CreateAudioMediaType(&wfx, &MediaFormatObject, TRUE); if( FAILED(hr) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::put_AudioFormatForScripting - " "CreateAudioMediaType failed - returning 0x%08x", hr)); return hr; } // // Set format on the pin // hr = pRenderPinObject->SetMediaType(&MediaFormatObject); LOG((MSP_(hr), "CRecordingTrackTerminal::put_AudioFormatForScripting - finish 0x%08x", hr)); return hr; } /* HRESULT CRecordingTrackTerminal::get_VideoFormatForScripting( OUT ITScriptableVideoFormat** ppVideoFormat ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::get_VideoFormatForScripting[%p] - enter.", this)); // // Validates argument // if( IsBadWritePtr( ppVideoFormat, sizeof( ITScriptableVideoFormat*)) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_VideoFormatForScripting - " "bad ITScriptableVideoFormat* pointer - returning E_POINTER")); return E_POINTER; } // // Mediatype video? // if( TAPIMEDIATYPE_VIDEO != m_dwMediaType) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_VideoFormatForScripting - " "invalid media type - returning TAPI_E_INVALIDMEDIATYPE")); return TAPI_E_INVALIDMEDIATYPE; } // // accessing data members -- lock // CLock lock(m_CritSec); // // have a pin? // if( m_pIPin == NULL ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_VideoFormatForScripting - " "no pin - returning TAPI_E_NOT_INITIALIZED")); return TAPI_E_NOT_INITIALIZED; } // // get a pointer to the pin object // CBRenderPin *pRenderPinObject = GetCPin(); if (NULL == pRenderPinObject) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_AudioFormatForScripting - the pins is not CBRenderPin")); TM_ASSERT(FALSE); return E_UNEXPECTED; } // // Create the object // CComObject<CTVideoFormat> *pVideoFormat = NULL; HRESULT hr = CComObject<CTVideoFormat>::CreateInstance(&pVideoFormat); if( FAILED(hr) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_VideoFormatForScripting - " "CreateInstance failed - returning 0x%08x", hr)); return hr; } // // Get the interface // hr = pVideoFormat->QueryInterface( IID_ITScriptableVideoFormat, (void**)ppVideoFormat ); if( FAILED(hr) ) { delete pVideoFormat; LOG((MSP_ERROR, "CRecordingTrackTerminal::get_VideoFormatForScripting - " "QueryInterface failed - returning 0x%08x", hr)); return hr; } // // Get video format // CMediaType MediaTypeObject; hr = pRenderPinObject->GetMediaType(0, &MediaTypeObject); if( FAILED(hr) ) { (*ppVideoFormat)->Release(); *ppVideoFormat = NULL; LOG((MSP_ERROR, "CRecordingTrackTerminal::get_VideoFormatForScripting - " "get_Format failed - returning 0x%08x", hr)); return hr; } // // make sure the format actually is video // if( MediaTypeObject.formattype != FORMAT_VideoInfo) { (*ppVideoFormat)->Release(); *ppVideoFormat = NULL; LOG((MSP_ERROR, "CRecordingTrackTerminal::get_VideoFormatForScripting - " "formattype is not VIDEOINFOHEADER - Returning TAPI_E_INVALIDMEDIATYPE")); return TAPI_E_INVALIDMEDIATYPE; } // // Get VIDEOINFOHEADER // pVideoFormat->Initialize( (VIDEOINFOHEADER*)(MediaTypeObject.pbFormat)); LOG((MSP_TRACE, "CRecordingTrackTerminal::get_VideoFormatForScripting - finish S_OK")); return S_OK; } HRESULT CRecordingTrackTerminal::put_VideoFormatForScripting( IN ITScriptableVideoFormat* pVideoFormat ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::put_VideoFormatForScripting[%p] - enter.", this)); // // Validate argument // if( IsBadReadPtr( pVideoFormat, sizeof(ITScriptableVideoFormat)) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::put_VideoFormatForScripting - " "bad ITScriptableVideoFormat* pointer - returning E_POINTER")); return E_POINTER; } // // accessing data members -- lock // CLock lock(m_CritSec); // // have a pin? // if( m_pIPin == NULL ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::put_VideoFormatForScripting - no pin. " "returning TAPI_E_NOT_INITIALIZED")); return TAPI_E_NOT_INITIALIZED; } // // get a pointer to the pin object // CBRenderPin *pRenderPinObject = GetCPin(); if (NULL == pRenderPinObject) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_AudioFormatForScripting - the pins is not CBRenderPin")); TM_ASSERT(FALSE); return E_UNEXPECTED; } // // Create a WAVEFORMATEX structure // VIDEOINFOHEADER vih; long lValue = 0; double dValue = 0; memset( &vih.rcTarget, 0, sizeof(vih.rcTarget)); memset( &vih.rcTarget, 0, sizeof(vih.rcSource)); pVideoFormat->get_BitRate( &lValue ); vih.dwBitRate = (DWORD)lValue; pVideoFormat->get_BitErrorRate( &lValue ); vih.dwBitErrorRate = (DWORD)lValue; pVideoFormat->get_AvgTimePerFrame( &dValue ); vih.AvgTimePerFrame = (REFERENCE_TIME)dValue; vih.bmiHeader.biSize = sizeof( BITMAPINFOHEADER); pVideoFormat->get_Width( &lValue ); vih.bmiHeader.biWidth = lValue; pVideoFormat->get_Height( &lValue ); vih.bmiHeader.biHeight = lValue; vih.bmiHeader.biPlanes = 1; pVideoFormat->get_BitCount( &lValue ); vih.bmiHeader.biBitCount = (WORD)lValue; pVideoFormat->get_Compression( &lValue ); vih.bmiHeader.biCompression = (DWORD)lValue; pVideoFormat->get_SizeImage( &lValue ); vih.bmiHeader.biSizeImage = (DWORD)lValue; vih.bmiHeader.biXPelsPerMeter = 0; vih.bmiHeader.biYPelsPerMeter = 0; vih.bmiHeader.biClrUsed= 0; vih.bmiHeader.biClrImportant = 0; // // Create AM_MEDIA_TYPE structure // VIDEOINFOHEADER* pvih = new VIDEOINFOHEADER(vih); if( pvih == NULL ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::put_VideoFormatForScripting - " "new allocation failed - returning E_OUTOFMEMORY")); return E_OUTOFMEMORY; } // // prepare a cmediatype object to pass to the pin // CMediaType mt; mt.majortype = MEDIATYPE_Video; mt.subtype = CLSID_NULL; mt.bFixedSizeSamples = TRUE; mt.bTemporalCompression = FALSE; mt.lSampleSize = 0; mt.formattype = FORMAT_VideoInfo; mt.pUnk = NULL; mt.cbFormat = sizeof(vih); mt.pbFormat = (unsigned char *)pvih; // // Set format on the pin // HRESULT hr = pRenderPinObject->SetMediaType(&mt); // // Clean-up // delete pvih; LOG((MSP_(hr), "CRecordingTrackTerminal::get_VideoFormatForScripting - finish 0x%08x", hr)); return hr; } */ HRESULT CRecordingTrackTerminal::get_EmptyAudioFormatForScripting( OUT ITScriptableAudioFormat** ppAudioFormat ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::get_EmptyAudioFormatForScripting - enter")); // // Validate argument // if( IsBadReadPtr( ppAudioFormat, sizeof(ITScriptableAudioFormat*)) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_EmptyAudioFormatForScripting - " "bad ITScriptableAudioFormat* pointer - returning E_POINTER")); return E_POINTER; } // // Create the object // CComObject<CTAudioFormat> *pAudioFormat = NULL; HRESULT hr = CComObject<CTAudioFormat>::CreateInstance(&pAudioFormat); if( FAILED(hr) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_EmptyAudioFormatForScripting - " "CreateInstance failed - returning 0x%08x", hr)); return hr; } // // Get the interface // hr = pAudioFormat->QueryInterface( IID_ITScriptableAudioFormat, (void**)ppAudioFormat ); if( FAILED(hr) ) { delete pAudioFormat; LOG((MSP_ERROR, "CRecordingTrackTerminal::get_EmptyAudioFormatForScripting - " "QueryInterface failed - returning 0x%08x", hr)); return hr; } LOG((MSP_TRACE, "CRecordingTrackTerminal::get_EmptyAudioFormatForScripting - exit S_OK")); return S_OK; } /* HRESULT CRecordingTrackTerminal::get_EmptyVideoFormatForScripting( OUT ITScriptableVideoFormat** ppVideoFormat ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::get_EmptyVideoFormatForScripting - enter")); // // Validate argument // if( IsBadReadPtr( ppVideoFormat, sizeof(ITScriptableVideoFormat*)) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_EmptyVideoFormatForScripting - " "bad ITScriptableVideoFormat* pointer - returning E_POINTER")); return E_POINTER; } // // Create the object // CComObject<CTVideoFormat> *pVideoFormat = NULL; HRESULT hr = CComObject<CTVideoFormat>::CreateInstance(&pVideoFormat); if( FAILED(hr) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::get_EmptyVideoFormatForScripting - " "CreateInstance failed - returning 0x%08x", hr)); return hr; } // // Get the interface // hr = pVideoFormat->QueryInterface( IID_ITScriptableVideoFormat, (void**)ppVideoFormat ); if( FAILED(hr) ) { delete pVideoFormat; LOG((MSP_ERROR, "CRecordingTrackTerminal::get_EmptyVideoFormatForScripting - " "QueryInterface failed - returning 0x%08x", hr)); return hr; } LOG((MSP_TRACE, "CRecordingTrackTerminal::get_EmptyVideoFormatForScripting - exit S_OK")); return S_OK; } */ ////////////////////////////////////////////////////////////////////// // // ITPluggableTerminalEventSinkRegistration - Methods implementation // ////////////////////////////////////////////////////////////////////// HRESULT CRecordingTrackTerminal::RegisterSink( IN ITPluggableTerminalEventSink *pSink ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::RegisterSink - enter [%p]", this)); // // Critical section // CLock lock(m_CritSec); // // Validates argument // if( IsBadReadPtr( pSink, sizeof(ITPluggableTerminalEventSink)) ) { LOG((MSP_ERROR, "CRecordingTrackTerminal::RegisterSink - exit " "ITPluggableTerminalEventSink invalid pointer. Returns E_POINTER")); return E_POINTER; } // // Release the old event sink // if( NULL != m_pEventSink ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::RegisterSink - releasing sink %p", m_pEventSink)); m_pEventSink->Release(); m_pEventSink = NULL; } // // Set the new event sink // LOG((MSP_TRACE, "CRecordingTrackTerminal::RegisterSink - keeping new sink %p", pSink)); m_pEventSink = pSink; m_pEventSink->AddRef(); LOG((MSP_TRACE, "CRecordingTrackTerminal::RegisterSink - exit S_OK")); return S_OK; } HRESULT CRecordingTrackTerminal::UnregisterSink() { // // Critical section // LOG((MSP_TRACE, "CRecordingTrackTerminal::UnregisterSink - enter [%p]", this)); CLock lock(m_CritSec); // // Release the old event sink // if( m_pEventSink ) { LOG((MSP_TRACE, "CRecordingTrackTerminal::UnregisterSink - releasing sink %p", m_pEventSink)); m_pEventSink->Release(); m_pEventSink = NULL; } LOG((MSP_TRACE, "CRecordingTrackTerminal::UnregisterSink - exit S_OK")); return S_OK; } HRESULT CRecordingTrackTerminal::FireEvent(TERMINAL_MEDIA_STATE tmsState, FT_STATE_EVENT_CAUSE ftecEventCause, HRESULT hrErrorCode) { LOG((MSP_TRACE, "CRecordingTrackTerminal::FireEvent - enter [%p]", this)); // // we need a synk before we can fire an event // CLock lock(m_CritSec); if (NULL == m_pEventSink) { LOG((MSP_WARN, "CRecordingTrackTerminal::FireEvent - no sink")); return E_FAIL; } // // initilize the structure // MSP_EVENT_INFO mspEventInfo; mspEventInfo.dwSize = sizeof(MSP_EVENT_INFO); mspEventInfo.Event = ME_FILE_TERMINAL_EVENT; mspEventInfo.hCall = NULL; mspEventInfo.MSP_FILE_TERMINAL_EVENT_INFO.TerminalMediaState = tmsState; mspEventInfo.MSP_FILE_TERMINAL_EVENT_INFO.ftecEventCause = ftecEventCause; mspEventInfo.MSP_FILE_TERMINAL_EVENT_INFO.hrErrorCode = hrErrorCode; // // keep the pointer to our ITTerminal interface in the structure // HRESULT hr = _InternalQueryInterface(IID_ITFileTrack, (void**)&(mspEventInfo.MSP_FILE_TERMINAL_EVENT_INFO.pFileTrack)); if (FAILED(hr)) { LOG((MSP_ERROR, "CRecordingTrackTerminal::FireEvent - failed to get ITFileTrack interface")); return hr; } // // get a pointer to the parent terminal // hr = get_ControllingTerminal(&(mspEventInfo.MSP_FILE_TERMINAL_EVENT_INFO.pParentFileTerminal)); if (FAILED(hr)) { mspEventInfo.MSP_FILE_TERMINAL_EVENT_INFO.pFileTrack->Release(); mspEventInfo.MSP_FILE_TERMINAL_EVENT_INFO.pFileTrack = NULL; LOG((MSP_ERROR, "CRecordingTrackTerminal::FireEvent - failed to get controlling terminal")); return hr; } // // pass event to the msp // hr = m_pEventSink->FireEvent(&mspEventInfo); if (FAILED(hr)) { // // release all interfaces that we are holding. // fire event failed so no one else will release then for us. // mspEventInfo.MSP_FILE_TERMINAL_EVENT_INFO.pFileTrack->Release(); mspEventInfo.MSP_FILE_TERMINAL_EVENT_INFO.pFileTrack = NULL; mspEventInfo.MSP_FILE_TERMINAL_EVENT_INFO.pParentFileTerminal->Release(); mspEventInfo.MSP_FILE_TERMINAL_EVENT_INFO.pParentFileTerminal = NULL; LOG((MSP_ERROR, "CRecordingTrackTerminal::FireEvent - FireEvent on sink failed. hr = %lx", hr)); return hr; } // // event fired // LOG((MSP_TRACE, "CRecordingTrackTerminal::FireEvent - finish")); return S_OK; }
22.955335
141
0.575224
npocmaka
ec62ea93f7707080935e94c530290dd834411df5
23,401
cxx
C++
SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimFlowEnergyTransfer_HeatExEarthToWater_Surface.cxx
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
3
2016-05-30T15:12:16.000Z
2022-03-22T08:11:13.000Z
SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimFlowEnergyTransfer_HeatExEarthToWater_Surface.cxx
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
21
2016-06-13T11:33:45.000Z
2017-05-23T09:46:52.000Z
SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimFlowEnergyTransfer_HeatExEarthToWater_Surface.cxx
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
null
null
null
// Copyright (c) 2005-2014 Code Synthesis Tools CC // // This program was generated by CodeSynthesis XSD, an XML Schema to // C++ data binding compiler. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Free Software Foundation. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // // In addition, as a special exception, Code Synthesis Tools CC gives // permission to link this program with the Xerces-C++ library (or with // modified versions of Xerces-C++ that use the same license as Xerces-C++), // and distribute linked combinations including the two. You must obey // the GNU General Public License version 2 in all respects for all of // the code used other than Xerces-C++. If you modify this copy of the // program, you may extend this exception to your version of the program, // but you are not obligated to do so. If you do not wish to do so, delete // this exception statement from your version. // // Furthermore, Code Synthesis Tools CC makes a special exception for // the Free/Libre and Open Source Software (FLOSS) which is described // in the accompanying FLOSSE file. // // Begin prologue. // // // End prologue. #include <xsd/cxx/pre.hxx> #include "SimFlowEnergyTransfer_HeatExEarthToWater_Surface.hxx" namespace schema { namespace simxml { namespace MepModel { // SimFlowEnergyTransfer_HeatExEarthToWater_Surface // const SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_HydronicTubingsideDiam_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_HydronicTubingsideDiam () const { return this->SimFlowEnergyTrans_HydronicTubingsideDiam_; } SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_HydronicTubingsideDiam_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_HydronicTubingsideDiam () { return this->SimFlowEnergyTrans_HydronicTubingsideDiam_; } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_HydronicTubingsideDiam (const SimFlowEnergyTrans_HydronicTubingsideDiam_type& x) { this->SimFlowEnergyTrans_HydronicTubingsideDiam_.set (x); } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_HydronicTubingsideDiam (const SimFlowEnergyTrans_HydronicTubingsideDiam_optional& x) { this->SimFlowEnergyTrans_HydronicTubingsideDiam_ = x; } const SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_FluidInletNodeName_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_FluidInletNodeName () const { return this->SimFlowEnergyTrans_FluidInletNodeName_; } SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_FluidInletNodeName_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_FluidInletNodeName () { return this->SimFlowEnergyTrans_FluidInletNodeName_; } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_FluidInletNodeName (const SimFlowEnergyTrans_FluidInletNodeName_type& x) { this->SimFlowEnergyTrans_FluidInletNodeName_.set (x); } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_FluidInletNodeName (const SimFlowEnergyTrans_FluidInletNodeName_optional& x) { this->SimFlowEnergyTrans_FluidInletNodeName_ = x; } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_FluidInletNodeName (::std::auto_ptr< SimFlowEnergyTrans_FluidInletNodeName_type > x) { this->SimFlowEnergyTrans_FluidInletNodeName_.set (x); } const SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_FluidOutletNodeName_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_FluidOutletNodeName () const { return this->SimFlowEnergyTrans_FluidOutletNodeName_; } SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_FluidOutletNodeName_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_FluidOutletNodeName () { return this->SimFlowEnergyTrans_FluidOutletNodeName_; } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_FluidOutletNodeName (const SimFlowEnergyTrans_FluidOutletNodeName_type& x) { this->SimFlowEnergyTrans_FluidOutletNodeName_.set (x); } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_FluidOutletNodeName (const SimFlowEnergyTrans_FluidOutletNodeName_optional& x) { this->SimFlowEnergyTrans_FluidOutletNodeName_ = x; } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_FluidOutletNodeName (::std::auto_ptr< SimFlowEnergyTrans_FluidOutletNodeName_type > x) { this->SimFlowEnergyTrans_FluidOutletNodeName_.set (x); } const SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_NumTubingCircuits_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_NumTubingCircuits () const { return this->SimFlowEnergyTrans_NumTubingCircuits_; } SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_NumTubingCircuits_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_NumTubingCircuits () { return this->SimFlowEnergyTrans_NumTubingCircuits_; } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_NumTubingCircuits (const SimFlowEnergyTrans_NumTubingCircuits_type& x) { this->SimFlowEnergyTrans_NumTubingCircuits_.set (x); } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_NumTubingCircuits (const SimFlowEnergyTrans_NumTubingCircuits_optional& x) { this->SimFlowEnergyTrans_NumTubingCircuits_ = x; } const SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_ConstructionName_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_ConstructionName () const { return this->SimFlowEnergyTrans_ConstructionName_; } SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_ConstructionName_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_ConstructionName () { return this->SimFlowEnergyTrans_ConstructionName_; } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_ConstructionName (const SimFlowEnergyTrans_ConstructionName_type& x) { this->SimFlowEnergyTrans_ConstructionName_.set (x); } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_ConstructionName (const SimFlowEnergyTrans_ConstructionName_optional& x) { this->SimFlowEnergyTrans_ConstructionName_ = x; } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_ConstructionName (::std::auto_ptr< SimFlowEnergyTrans_ConstructionName_type > x) { this->SimFlowEnergyTrans_ConstructionName_.set (x); } const SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_HydronicTubeSpacing_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_HydronicTubeSpacing () const { return this->SimFlowEnergyTrans_HydronicTubeSpacing_; } SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_HydronicTubeSpacing_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_HydronicTubeSpacing () { return this->SimFlowEnergyTrans_HydronicTubeSpacing_; } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_HydronicTubeSpacing (const SimFlowEnergyTrans_HydronicTubeSpacing_type& x) { this->SimFlowEnergyTrans_HydronicTubeSpacing_.set (x); } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_HydronicTubeSpacing (const SimFlowEnergyTrans_HydronicTubeSpacing_optional& x) { this->SimFlowEnergyTrans_HydronicTubeSpacing_ = x; } const SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_SurfLength_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_SurfLength () const { return this->SimFlowEnergyTrans_SurfLength_; } SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_SurfLength_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_SurfLength () { return this->SimFlowEnergyTrans_SurfLength_; } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_SurfLength (const SimFlowEnergyTrans_SurfLength_type& x) { this->SimFlowEnergyTrans_SurfLength_.set (x); } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_SurfLength (const SimFlowEnergyTrans_SurfLength_optional& x) { this->SimFlowEnergyTrans_SurfLength_ = x; } const SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_SurfWidth_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_SurfWidth () const { return this->SimFlowEnergyTrans_SurfWidth_; } SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_SurfWidth_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_SurfWidth () { return this->SimFlowEnergyTrans_SurfWidth_; } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_SurfWidth (const SimFlowEnergyTrans_SurfWidth_type& x) { this->SimFlowEnergyTrans_SurfWidth_.set (x); } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_SurfWidth (const SimFlowEnergyTrans_SurfWidth_optional& x) { this->SimFlowEnergyTrans_SurfWidth_ = x; } const SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_LowSurfEnvironment_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_LowSurfEnvironment () const { return this->SimFlowEnergyTrans_LowSurfEnvironment_; } SimFlowEnergyTransfer_HeatExEarthToWater_Surface::SimFlowEnergyTrans_LowSurfEnvironment_optional& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_LowSurfEnvironment () { return this->SimFlowEnergyTrans_LowSurfEnvironment_; } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_LowSurfEnvironment (const SimFlowEnergyTrans_LowSurfEnvironment_type& x) { this->SimFlowEnergyTrans_LowSurfEnvironment_.set (x); } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_LowSurfEnvironment (const SimFlowEnergyTrans_LowSurfEnvironment_optional& x) { this->SimFlowEnergyTrans_LowSurfEnvironment_ = x; } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTrans_LowSurfEnvironment (::std::auto_ptr< SimFlowEnergyTrans_LowSurfEnvironment_type > x) { this->SimFlowEnergyTrans_LowSurfEnvironment_.set (x); } } } } #include <xsd/cxx/xml/dom/parsing-source.hxx> #include <xsd/cxx/tree/type-factory-map.hxx> namespace _xsd { static const ::xsd::cxx::tree::type_factory_plate< 0, char > type_factory_plate_init; } namespace schema { namespace simxml { namespace MepModel { // SimFlowEnergyTransfer_HeatExEarthToWater_Surface // SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTransfer_HeatExEarthToWater_Surface () : ::schema::simxml::MepModel::SimFlowEnergyTransfer_HeatExEarthToWater (), SimFlowEnergyTrans_HydronicTubingsideDiam_ (this), SimFlowEnergyTrans_FluidInletNodeName_ (this), SimFlowEnergyTrans_FluidOutletNodeName_ (this), SimFlowEnergyTrans_NumTubingCircuits_ (this), SimFlowEnergyTrans_ConstructionName_ (this), SimFlowEnergyTrans_HydronicTubeSpacing_ (this), SimFlowEnergyTrans_SurfLength_ (this), SimFlowEnergyTrans_SurfWidth_ (this), SimFlowEnergyTrans_LowSurfEnvironment_ (this) { } SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTransfer_HeatExEarthToWater_Surface (const RefId_type& RefId) : ::schema::simxml::MepModel::SimFlowEnergyTransfer_HeatExEarthToWater (RefId), SimFlowEnergyTrans_HydronicTubingsideDiam_ (this), SimFlowEnergyTrans_FluidInletNodeName_ (this), SimFlowEnergyTrans_FluidOutletNodeName_ (this), SimFlowEnergyTrans_NumTubingCircuits_ (this), SimFlowEnergyTrans_ConstructionName_ (this), SimFlowEnergyTrans_HydronicTubeSpacing_ (this), SimFlowEnergyTrans_SurfLength_ (this), SimFlowEnergyTrans_SurfWidth_ (this), SimFlowEnergyTrans_LowSurfEnvironment_ (this) { } SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTransfer_HeatExEarthToWater_Surface (const SimFlowEnergyTransfer_HeatExEarthToWater_Surface& x, ::xml_schema::flags f, ::xml_schema::container* c) : ::schema::simxml::MepModel::SimFlowEnergyTransfer_HeatExEarthToWater (x, f, c), SimFlowEnergyTrans_HydronicTubingsideDiam_ (x.SimFlowEnergyTrans_HydronicTubingsideDiam_, f, this), SimFlowEnergyTrans_FluidInletNodeName_ (x.SimFlowEnergyTrans_FluidInletNodeName_, f, this), SimFlowEnergyTrans_FluidOutletNodeName_ (x.SimFlowEnergyTrans_FluidOutletNodeName_, f, this), SimFlowEnergyTrans_NumTubingCircuits_ (x.SimFlowEnergyTrans_NumTubingCircuits_, f, this), SimFlowEnergyTrans_ConstructionName_ (x.SimFlowEnergyTrans_ConstructionName_, f, this), SimFlowEnergyTrans_HydronicTubeSpacing_ (x.SimFlowEnergyTrans_HydronicTubeSpacing_, f, this), SimFlowEnergyTrans_SurfLength_ (x.SimFlowEnergyTrans_SurfLength_, f, this), SimFlowEnergyTrans_SurfWidth_ (x.SimFlowEnergyTrans_SurfWidth_, f, this), SimFlowEnergyTrans_LowSurfEnvironment_ (x.SimFlowEnergyTrans_LowSurfEnvironment_, f, this) { } SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: SimFlowEnergyTransfer_HeatExEarthToWater_Surface (const ::xercesc::DOMElement& e, ::xml_schema::flags f, ::xml_schema::container* c) : ::schema::simxml::MepModel::SimFlowEnergyTransfer_HeatExEarthToWater (e, f | ::xml_schema::flags::base, c), SimFlowEnergyTrans_HydronicTubingsideDiam_ (this), SimFlowEnergyTrans_FluidInletNodeName_ (this), SimFlowEnergyTrans_FluidOutletNodeName_ (this), SimFlowEnergyTrans_NumTubingCircuits_ (this), SimFlowEnergyTrans_ConstructionName_ (this), SimFlowEnergyTrans_HydronicTubeSpacing_ (this), SimFlowEnergyTrans_SurfLength_ (this), SimFlowEnergyTrans_SurfWidth_ (this), SimFlowEnergyTrans_LowSurfEnvironment_ (this) { if ((f & ::xml_schema::flags::base) == 0) { ::xsd::cxx::xml::dom::parser< char > p (e, true, false, true); this->parse (p, f); } } void SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: parse (::xsd::cxx::xml::dom::parser< char >& p, ::xml_schema::flags f) { this->::schema::simxml::MepModel::SimFlowEnergyTransfer_HeatExEarthToWater::parse (p, f); for (; p.more_content (); p.next_content (false)) { const ::xercesc::DOMElement& i (p.cur_element ()); const ::xsd::cxx::xml::qualified_name< char > n ( ::xsd::cxx::xml::dom::name< char > (i)); // SimFlowEnergyTrans_HydronicTubingsideDiam // if (n.name () == "SimFlowEnergyTrans_HydronicTubingsideDiam" && n.namespace_ () == "http://d-alchemy.com/schema/simxml/MepModel") { if (!this->SimFlowEnergyTrans_HydronicTubingsideDiam_) { this->SimFlowEnergyTrans_HydronicTubingsideDiam_.set (SimFlowEnergyTrans_HydronicTubingsideDiam_traits::create (i, f, this)); continue; } } // SimFlowEnergyTrans_FluidInletNodeName // if (n.name () == "SimFlowEnergyTrans_FluidInletNodeName" && n.namespace_ () == "http://d-alchemy.com/schema/simxml/MepModel") { ::std::auto_ptr< SimFlowEnergyTrans_FluidInletNodeName_type > r ( SimFlowEnergyTrans_FluidInletNodeName_traits::create (i, f, this)); if (!this->SimFlowEnergyTrans_FluidInletNodeName_) { this->SimFlowEnergyTrans_FluidInletNodeName_.set (r); continue; } } // SimFlowEnergyTrans_FluidOutletNodeName // if (n.name () == "SimFlowEnergyTrans_FluidOutletNodeName" && n.namespace_ () == "http://d-alchemy.com/schema/simxml/MepModel") { ::std::auto_ptr< SimFlowEnergyTrans_FluidOutletNodeName_type > r ( SimFlowEnergyTrans_FluidOutletNodeName_traits::create (i, f, this)); if (!this->SimFlowEnergyTrans_FluidOutletNodeName_) { this->SimFlowEnergyTrans_FluidOutletNodeName_.set (r); continue; } } // SimFlowEnergyTrans_NumTubingCircuits // if (n.name () == "SimFlowEnergyTrans_NumTubingCircuits" && n.namespace_ () == "http://d-alchemy.com/schema/simxml/MepModel") { if (!this->SimFlowEnergyTrans_NumTubingCircuits_) { this->SimFlowEnergyTrans_NumTubingCircuits_.set (SimFlowEnergyTrans_NumTubingCircuits_traits::create (i, f, this)); continue; } } // SimFlowEnergyTrans_ConstructionName // if (n.name () == "SimFlowEnergyTrans_ConstructionName" && n.namespace_ () == "http://d-alchemy.com/schema/simxml/MepModel") { ::std::auto_ptr< SimFlowEnergyTrans_ConstructionName_type > r ( SimFlowEnergyTrans_ConstructionName_traits::create (i, f, this)); if (!this->SimFlowEnergyTrans_ConstructionName_) { this->SimFlowEnergyTrans_ConstructionName_.set (r); continue; } } // SimFlowEnergyTrans_HydronicTubeSpacing // if (n.name () == "SimFlowEnergyTrans_HydronicTubeSpacing" && n.namespace_ () == "http://d-alchemy.com/schema/simxml/MepModel") { if (!this->SimFlowEnergyTrans_HydronicTubeSpacing_) { this->SimFlowEnergyTrans_HydronicTubeSpacing_.set (SimFlowEnergyTrans_HydronicTubeSpacing_traits::create (i, f, this)); continue; } } // SimFlowEnergyTrans_SurfLength // if (n.name () == "SimFlowEnergyTrans_SurfLength" && n.namespace_ () == "http://d-alchemy.com/schema/simxml/MepModel") { if (!this->SimFlowEnergyTrans_SurfLength_) { this->SimFlowEnergyTrans_SurfLength_.set (SimFlowEnergyTrans_SurfLength_traits::create (i, f, this)); continue; } } // SimFlowEnergyTrans_SurfWidth // if (n.name () == "SimFlowEnergyTrans_SurfWidth" && n.namespace_ () == "http://d-alchemy.com/schema/simxml/MepModel") { if (!this->SimFlowEnergyTrans_SurfWidth_) { this->SimFlowEnergyTrans_SurfWidth_.set (SimFlowEnergyTrans_SurfWidth_traits::create (i, f, this)); continue; } } // SimFlowEnergyTrans_LowSurfEnvironment // if (n.name () == "SimFlowEnergyTrans_LowSurfEnvironment" && n.namespace_ () == "http://d-alchemy.com/schema/simxml/MepModel") { ::std::auto_ptr< SimFlowEnergyTrans_LowSurfEnvironment_type > r ( SimFlowEnergyTrans_LowSurfEnvironment_traits::create (i, f, this)); if (!this->SimFlowEnergyTrans_LowSurfEnvironment_) { this->SimFlowEnergyTrans_LowSurfEnvironment_.set (r); continue; } } break; } } SimFlowEnergyTransfer_HeatExEarthToWater_Surface* SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: _clone (::xml_schema::flags f, ::xml_schema::container* c) const { return new class SimFlowEnergyTransfer_HeatExEarthToWater_Surface (*this, f, c); } SimFlowEnergyTransfer_HeatExEarthToWater_Surface& SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: operator= (const SimFlowEnergyTransfer_HeatExEarthToWater_Surface& x) { if (this != &x) { static_cast< ::schema::simxml::MepModel::SimFlowEnergyTransfer_HeatExEarthToWater& > (*this) = x; this->SimFlowEnergyTrans_HydronicTubingsideDiam_ = x.SimFlowEnergyTrans_HydronicTubingsideDiam_; this->SimFlowEnergyTrans_FluidInletNodeName_ = x.SimFlowEnergyTrans_FluidInletNodeName_; this->SimFlowEnergyTrans_FluidOutletNodeName_ = x.SimFlowEnergyTrans_FluidOutletNodeName_; this->SimFlowEnergyTrans_NumTubingCircuits_ = x.SimFlowEnergyTrans_NumTubingCircuits_; this->SimFlowEnergyTrans_ConstructionName_ = x.SimFlowEnergyTrans_ConstructionName_; this->SimFlowEnergyTrans_HydronicTubeSpacing_ = x.SimFlowEnergyTrans_HydronicTubeSpacing_; this->SimFlowEnergyTrans_SurfLength_ = x.SimFlowEnergyTrans_SurfLength_; this->SimFlowEnergyTrans_SurfWidth_ = x.SimFlowEnergyTrans_SurfWidth_; this->SimFlowEnergyTrans_LowSurfEnvironment_ = x.SimFlowEnergyTrans_LowSurfEnvironment_; } return *this; } SimFlowEnergyTransfer_HeatExEarthToWater_Surface:: ~SimFlowEnergyTransfer_HeatExEarthToWater_Surface () { } } } } #include <istream> #include <xsd/cxx/xml/sax/std-input-source.hxx> #include <xsd/cxx/tree/error-handler.hxx> namespace schema { namespace simxml { namespace MepModel { } } } #include <xsd/cxx/post.hxx> // Begin epilogue. // // // End epilogue.
41.271605
164
0.718345
EnEff-BIM
ec6550f7f9b7351b4b82ef1fc9ffef8244d19ad7
5,809
hpp
C++
my_vulkan/command_buffer.hpp
pixelwise/my_vulkan
f1c139ed8f95380186905d77cb8e81008f48bc95
[ "CC0-1.0" ]
null
null
null
my_vulkan/command_buffer.hpp
pixelwise/my_vulkan
f1c139ed8f95380186905d77cb8e81008f48bc95
[ "CC0-1.0" ]
3
2019-02-25T10:13:57.000Z
2020-11-11T14:46:14.000Z
my_vulkan/command_buffer.hpp
pixelwise/my_vulkan
f1c139ed8f95380186905d77cb8e81008f48bc95
[ "CC0-1.0" ]
null
null
null
#pragma once #include <vulkan/vulkan.h> #include <vector> #include "utils.hpp" namespace my_vulkan { struct command_buffer_t { struct scope_t { scope_t( VkCommandBuffer command_buffer, VkCommandBufferUsageFlags flags ); scope_t(const scope_t&) = delete; scope_t(scope_t&& other) noexcept; scope_t& operator=(const scope_t&) = delete; scope_t& operator=(scope_t&& other) noexcept; struct buffer_binding_t { VkBuffer buffer; VkDeviceSize offset; }; void begin_render_pass( VkRenderPass renderPass, VkFramebuffer framebuffer, VkRect2D render_area, std::vector<VkClearValue> clear_values = {}, VkSubpassContents contents = VK_SUBPASS_CONTENTS_INLINE ); void next_subpass( VkSubpassContents contents = VK_SUBPASS_CONTENTS_INLINE ); void set_viewport( std::vector<VkViewport> viewports, uint32_t first = 0 ); void set_scissor( std::vector<VkRect2D> scissors, uint32_t first = 0 ); void clear( std::vector<VkClearAttachment> attachements, std::vector<VkClearRect> rects ); void bind_pipeline( VkPipelineBindPoint bind_point, VkPipeline pipeline, std::optional<VkRect2D> target_rect = std::nullopt ); void bind_vertex_buffers( std::vector<buffer_binding_t> bindings, uint32_t offset = 0 ); void bind_index_buffer( VkBuffer buffer, VkIndexType type, size_t offset = 0 ); void bind_descriptor_set( VkPipelineBindPoint bind_point, VkPipelineLayout layout, std::vector<VkDescriptorSet> descriptors, uint32_t offset = 0, std::vector<uint32_t> dynamic_offset = {} ); void draw_indexed( index_range_t index_range, uint32_t vertex_offset = 0, index_range_t instance_range = {0, 1} ); void draw( index_range_t index_range, index_range_t instance_range = {0, 1} ); void end_render_pass(); void pipeline_barrier( VkPipelineStageFlags src_stage_mask, VkPipelineStageFlags dst_stage_mask, std::vector<VkMemoryBarrier> barriers, VkDependencyFlags dependency_flags = 0 ); void pipeline_barrier( VkPipelineStageFlags src_stage_mask, VkPipelineStageFlags dst_stage_mask, std::vector<VkBufferMemoryBarrier> barriers, VkDependencyFlags dependency_flags = 0 ); void pipeline_barrier( VkPipelineStageFlags src_stage_mask, VkPipelineStageFlags dst_stage_mask, std::vector<VkImageMemoryBarrier> barriers, VkDependencyFlags dependency_flags = 0 ); void pipeline_barrier( VkPipelineStageFlags src_stage_mask, VkPipelineStageFlags dst_stage_mask, std::vector<VkMemoryBarrier> memory_barriers, std::vector<VkBufferMemoryBarrier> buffer_barriers, std::vector<VkImageMemoryBarrier> image_barriers, VkDependencyFlags dependency_flags = 0 ); void copy( VkBuffer src, VkBuffer dst, std::vector<VkBufferCopy> operations ); void copy( VkBuffer src, VkImage dst, VkImageLayout dst_layout, std::vector<VkBufferImageCopy> operations ); void copy( VkImage src, VkBuffer dst, VkImageLayout src_layout, std::vector<VkBufferImageCopy> operations ); void copy( VkImage src, VkImageLayout src_layout, VkImage dst, VkImageLayout dst_layout, std::vector<VkImageCopy> operations ); void blit( VkImage src, VkImageLayout src_layout, VkImage dst, VkImageLayout dst_layout, std::vector<VkImageBlit> operations, VkFilter filter = VK_FILTER_NEAREST ); VkCommandBuffer end(); ~scope_t(); private: VkCommandBuffer _command_buffer{0}; }; command_buffer_t( VkDevice device, VkCommandPool command_pool, VkCommandBufferLevel level = VK_COMMAND_BUFFER_LEVEL_PRIMARY ); command_buffer_t(const command_buffer_t&) = delete; command_buffer_t(command_buffer_t&& other) noexcept; command_buffer_t& operator=(const command_buffer_t&) = delete; command_buffer_t& operator=(command_buffer_t&& other) noexcept; ~command_buffer_t(); VkCommandBuffer get(); VkDevice device(); scope_t begin(VkCommandBufferUsageFlags flags); void reset(); private: void cleanup(); VkDevice _device; VkCommandPool _command_pool; VkCommandBuffer _command_buffer; }; }
33.773256
72
0.531589
pixelwise
ec669e2811f8c3832ac24e4ccb6ea55c1716d7e3
2,325
cpp
C++
leetcode/stack and queue/Implement Stack using Queues225/Implement Stack using Queues/Implement Stack using Queues/main.cpp
mingyuefly/leetcode
b1af0b715ac6ef15a1321057bbd9e6f8bddbbcf8
[ "MIT" ]
null
null
null
leetcode/stack and queue/Implement Stack using Queues225/Implement Stack using Queues/Implement Stack using Queues/main.cpp
mingyuefly/leetcode
b1af0b715ac6ef15a1321057bbd9e6f8bddbbcf8
[ "MIT" ]
null
null
null
leetcode/stack and queue/Implement Stack using Queues225/Implement Stack using Queues/Implement Stack using Queues/main.cpp
mingyuefly/leetcode
b1af0b715ac6ef15a1321057bbd9e6f8bddbbcf8
[ "MIT" ]
null
null
null
// // main.cpp // Implement Stack using Queues // /** Implement the following operations of a stack using queues. push(x) -- Push element x onto stack. pop() -- Removes the element on top of the stack. top() -- Get the top element. empty() -- Return whether the stack is empty. Example: MyStack stack = new MyStack(); stack.push(1); stack.push(2); stack.top(); // returns 2 stack.pop(); // returns 2 stack.empty(); // returns false Notes: You must use only standard operations of a queue -- which means only push to back, peek/pop from front, size, and is empty operations are valid. Depending on your language, queue may not be supported natively. You may simulate a queue by using a list or deque (double-ended queue), as long as you use only standard operations of a queue. You may assume that all operations are valid (for example, no pop or top operations will be called on an empty stack). */ // Created by mingyue on 2020/8/8. // Copyright © 2020 Gmingyue. All rights reserved. // #include <iostream> #include <queue> using namespace std; class MyStack { public: /** Initialize your data structure here. */ queue<int> queueOne; queue<int> queueTwo; //queue<int> queueThree; MyStack() { } /** Push element x onto stack. */ void push(int x) { queueOne.push(x); } /** Removes the element on top of the stack and returns that element. */ int pop() { int result = queueOne.back(); while (queueOne.size() != 1) { queueTwo.push(queueOne.front()); queueOne.pop(); } queueOne.pop(); swap(queueOne, queueTwo); return result; } /** Get the top element. */ int top() { return queueOne.back();; } /** Returns whether the stack is empty. */ bool empty() { return queueOne.empty(); } }; int main(int argc, const char * argv[]) { MyStack stack = MyStack(); stack.push(1); stack.push(2); int top = stack.top(); // returns 2 cout << top << endl; int pop = stack.pop(); // returns 2 cout << pop << endl; bool empty = stack.empty(); // returns false if (empty) { cout << "empty" << endl; } else { cout << "not empty" << endl; } return 0; }
25.833333
193
0.603011
mingyuefly
ec68e4787edb502ad2d5e52c90b00576688b9711
1,373
cpp
C++
src/core/main.cpp
Opticalp/instrumentall
f952c1cd54f375dc4cb258fec5af34d14c2b8044
[ "MIT" ]
1
2020-05-19T02:06:55.000Z
2020-05-19T02:06:55.000Z
src/core/main.cpp
Opticalp/instrumentall
f952c1cd54f375dc4cb258fec5af34d14c2b8044
[ "MIT" ]
16
2015-11-18T13:25:30.000Z
2018-05-17T19:25:46.000Z
src/core/main.cpp
Opticalp/instrumentall
f952c1cd54f375dc4cb258fec5af34d14c2b8044
[ "MIT" ]
null
null
null
/** * @file src/core/main.cpp * @date nov. 2015 * @author PhRG / opticalp.fr * * Entry point for the Instrumentall software. * * Using POCO (pocoproject.org) Util Application feature. */ /* Copyright (c) 2015 Ph. Renaud-Goud / Opticalp Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "Poco/Util/Application.h" #include "MainApplication.h" POCO_APP_MAIN(MainApplication)
36.131579
77
0.778587
Opticalp
ec69358fa56dcbd1b4a63769bb58639a33809df3
762
hpp
C++
matlab/src/bits/nnsimpooling.hpp
taigw/matconvnet-dermoscopy
14429a9f66a116cabafaae252f23bd88f0b910a5
[ "BSD-2-Clause" ]
39
2017-06-15T19:34:26.000Z
2021-12-10T23:25:13.000Z
matlab/src/bits/nnsimpooling.hpp
taigw/matconvnet-dermoscopy
14429a9f66a116cabafaae252f23bd88f0b910a5
[ "BSD-2-Clause" ]
2
2018-06-05T20:34:50.000Z
2019-02-10T19:35:21.000Z
matlab/src/bits/nnsimpooling.hpp
igondia/matconvnet-dermoscopy
038cc2f023d464520517ca6a5fedf95bc09a9edc
[ "BSD-2-Clause" ]
21
2017-06-02T13:00:12.000Z
2021-01-02T11:14:42.000Z
// @file nnpooling.hpp // @brief Pooling block // @author Andrea Vedaldi /* Copyright (C) 2014-16 Andrea Vedaldi and Karel Lenc. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #ifndef __vl__nnsimpooling__ #define __vl__nnsimpooling__ #include "data.hpp" #include <stdio.h> namespace vl { vl::ErrorCode nnsimpooling_forward(vl::Context& context, vl::Tensor output, vl::Tensor data) ; vl::ErrorCode nnsimpooling_backward(vl::Context& context, vl::Tensor derData, vl::Tensor data, vl::Tensor derOutput) ; } #endif /* defined(__vl__nnpooling__) */
21.771429
67
0.641732
taigw
ec6dac3adc0af9a1ab1733e9ef7655065611ac44
6,494
cpp
C++
utils/TauReflectionGenerator/src/reflection/attribs/GetAttribute.cpp
hyfloac/TauEngine
1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c
[ "MIT" ]
1
2020-04-22T04:07:01.000Z
2020-04-22T04:07:01.000Z
utils/TauReflectionGenerator/src/reflection/attribs/GetAttribute.cpp
hyfloac/TauEngine
1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c
[ "MIT" ]
null
null
null
utils/TauReflectionGenerator/src/reflection/attribs/GetAttribute.cpp
hyfloac/TauEngine
1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c
[ "MIT" ]
null
null
null
#include <llvm/Support/raw_ostream.h> #include "reflection/attribs/GetAttribute.hpp" #include "reflection/Class.hpp" namespace tau { namespace reflection { namespace attribs { AttributeData GetPropertyAttribute::parseAttribute(const DynString& attribName, const ::clang::MacroArgs*, const ::clang::Token*& currentToken) const noexcept { currentToken = getNextToken(currentToken); return AttributeData(this, nullptr, attribName); } void GetPropertyAttribute::generateBaseTauClass(::llvm::raw_fd_ostream& base) const noexcept { base << "public:\n" " template<typename _T>\n" " [[nodiscard]] const _T* getProperty(const void* const object, const char* const propName) const noexcept\n" " { return reinterpret_cast<const _T*>(_getProperty(object, propName)); }\n" "\n" " template<typename _T>\n" " [[nodiscard]] const _T* getProperty(const void* const object, const int propIndex) const noexcept\n" " { return reinterpret_cast<const _T*>(_getProperty(object, propIndex)); }\n" "protected:\n" " [[nodiscard]] virtual const void* _getProperty(const void* object, const char* propName) const noexcept = 0;\n" " [[nodiscard]] virtual const void* _getProperty(const void* object, unsigned propIndex) const noexcept = 0;\n"; } void GetPropertyAttribute::generateImplTauClass(::llvm::raw_fd_ostream& base, const Ref<Class>& clazz) const noexcept { base << " public: \\\n" " template<typename _T> \\\n" " [[nodiscard]] const _T* getProperty(const " << clazz->name() << "* const object, const char* const propName) const noexcept \\\n" " { return reinterpret_cast<const _T*>(getPropertyImpl(object, propName)); } \\\n" " \\\n" " template<typename _T> \\\n" " [[nodiscard]] const _T* getProperty(const " << clazz->name() << "* const object, const unsigned propIndex) const noexcept \\\n" " { return reinterpret_cast<const _T*>(getPropertyImpl(object, propIndex)); } \\\n" " protected: \\\n" " [[nodiscard]] const void* _getProperty(const void* const object, const char* const propName) const noexcept override \\\n" " { return getPropertyImpl(reinterpret_cast<const " << clazz->name() << "*>(object), propName); } \\\n" " \\\n" " [[nodiscard]] const void* _getProperty(const void* const object, const unsigned propIndex) const noexcept override \\\n" " { return getPropertyImpl(reinterpret_cast<const " << clazz->name() << "*>(object), propIndex); } \\\n" " \\\n" " [[nodiscard]] const void* getPropertyImpl(const " << clazz->name() << "* const object, const char* const propName) const noexcept \\\n" " { \\\n"; for(uSys i = 0; i < clazz->properties().size(); ++i) { if(!clazz->properties()[i]->declaration()->hasAttribute("get")) { continue; } base << " if(::std::strcmp(propName, \"" << clazz->properties()[i]->name() << "\") == 0) \\\n" " { return &object->" << clazz->properties()[i]->name() << "; } \\\n"; } base << " return nullptr; \\\n" " } \\\n" " \\\n" " [[nodiscard]] const void* getPropertyImpl(const " << clazz->name() << "* const object, const unsigned propIndex) const noexcept \\\n" " { \\\n" " switch(propIndex) \\\n" " { \\\n"; for(uSys i = 0; i < clazz->properties().size(); ++i) { if(!clazz->properties()[i]->declaration()->hasAttribute("get")) { continue; } base << " case " << i << ": return &object->" << clazz->properties()[i]->name() << "; \\\n"; } base << " default: return nullptr; \\\n" " } \\\n" " } \\\n"; } } } }
74.643678
158
0.345088
hyfloac
ec7446fc4af36d64c68344b4d9619a9098c878d8
3,468
cpp
C++
cpp/godot-cpp/src/gen/TextureLayered.cpp
GDNative-Gradle/proof-of-concept
162f467430760cf959f68f1638adc663fd05c5fd
[ "MIT" ]
1
2021-03-16T09:51:00.000Z
2021-03-16T09:51:00.000Z
cpp/godot-cpp/src/gen/TextureLayered.cpp
GDNative-Gradle/proof-of-concept
162f467430760cf959f68f1638adc663fd05c5fd
[ "MIT" ]
null
null
null
cpp/godot-cpp/src/gen/TextureLayered.cpp
GDNative-Gradle/proof-of-concept
162f467430760cf959f68f1638adc663fd05c5fd
[ "MIT" ]
null
null
null
#include "TextureLayered.hpp" #include <core/GodotGlobal.hpp> #include <core/CoreTypes.hpp> #include <core/Ref.hpp> #include <core/Godot.hpp> #include "__icalls.hpp" #include "Image.hpp" namespace godot { TextureLayered::___method_bindings TextureLayered::___mb = {}; void TextureLayered::___init_method_bindings() { ___mb.mb__get_data = godot::api->godot_method_bind_get_method("TextureLayered", "_get_data"); ___mb.mb__set_data = godot::api->godot_method_bind_get_method("TextureLayered", "_set_data"); ___mb.mb_create = godot::api->godot_method_bind_get_method("TextureLayered", "create"); ___mb.mb_get_depth = godot::api->godot_method_bind_get_method("TextureLayered", "get_depth"); ___mb.mb_get_flags = godot::api->godot_method_bind_get_method("TextureLayered", "get_flags"); ___mb.mb_get_format = godot::api->godot_method_bind_get_method("TextureLayered", "get_format"); ___mb.mb_get_height = godot::api->godot_method_bind_get_method("TextureLayered", "get_height"); ___mb.mb_get_layer_data = godot::api->godot_method_bind_get_method("TextureLayered", "get_layer_data"); ___mb.mb_get_width = godot::api->godot_method_bind_get_method("TextureLayered", "get_width"); ___mb.mb_set_data_partial = godot::api->godot_method_bind_get_method("TextureLayered", "set_data_partial"); ___mb.mb_set_flags = godot::api->godot_method_bind_get_method("TextureLayered", "set_flags"); ___mb.mb_set_layer_data = godot::api->godot_method_bind_get_method("TextureLayered", "set_layer_data"); } Dictionary TextureLayered::_get_data() const { return ___godot_icall_Dictionary(___mb.mb__get_data, (const Object *) this); } void TextureLayered::_set_data(const Dictionary data) { ___godot_icall_void_Dictionary(___mb.mb__set_data, (const Object *) this, data); } void TextureLayered::create(const int64_t width, const int64_t height, const int64_t depth, const int64_t format, const int64_t flags) { ___godot_icall_void_int_int_int_int_int(___mb.mb_create, (const Object *) this, width, height, depth, format, flags); } int64_t TextureLayered::get_depth() const { return ___godot_icall_int(___mb.mb_get_depth, (const Object *) this); } int64_t TextureLayered::get_flags() const { return ___godot_icall_int(___mb.mb_get_flags, (const Object *) this); } Image::Format TextureLayered::get_format() const { return (Image::Format) ___godot_icall_int(___mb.mb_get_format, (const Object *) this); } int64_t TextureLayered::get_height() const { return ___godot_icall_int(___mb.mb_get_height, (const Object *) this); } Ref<Image> TextureLayered::get_layer_data(const int64_t layer) const { return Ref<Image>::__internal_constructor(___godot_icall_Object_int(___mb.mb_get_layer_data, (const Object *) this, layer)); } int64_t TextureLayered::get_width() const { return ___godot_icall_int(___mb.mb_get_width, (const Object *) this); } void TextureLayered::set_data_partial(const Ref<Image> image, const int64_t x_offset, const int64_t y_offset, const int64_t layer, const int64_t mipmap) { ___godot_icall_void_Object_int_int_int_int(___mb.mb_set_data_partial, (const Object *) this, image.ptr(), x_offset, y_offset, layer, mipmap); } void TextureLayered::set_flags(const int64_t flags) { ___godot_icall_void_int(___mb.mb_set_flags, (const Object *) this, flags); } void TextureLayered::set_layer_data(const Ref<Image> image, const int64_t layer) { ___godot_icall_void_Object_int(___mb.mb_set_layer_data, (const Object *) this, image.ptr(), layer); } }
41.783133
154
0.789792
GDNative-Gradle
ec749757eb5106520231af244b31d13744d49a66
2,431
cpp
C++
isis/src/base/objs/AtmosModelFactory/AtmosModelFactory.cpp
kdl222/ISIS3
aab0e63088046690e6c031881825596c1c2cc380
[ "CC0-1.0" ]
134
2018-01-18T00:16:24.000Z
2022-03-24T03:53:33.000Z
isis/src/base/objs/AtmosModelFactory/AtmosModelFactory.cpp
kdl222/ISIS3
aab0e63088046690e6c031881825596c1c2cc380
[ "CC0-1.0" ]
3,825
2017-12-11T21:27:34.000Z
2022-03-31T21:45:20.000Z
isis/src/base/objs/AtmosModelFactory/AtmosModelFactory.cpp
jlaura/isis3
2c40e08caed09968ea01d5a767a676172ad20080
[ "CC0-1.0" ]
164
2017-11-30T21:15:44.000Z
2022-03-23T10:22:29.000Z
/** This is free and unencumbered software released into the public domain. The authors of ISIS do not claim copyright on the contents of this file. For more details about the LICENSE terms and the AUTHORS, you will find files of those names at the top level of this repository. **/ /* SPDX-License-Identifier: CC0-1.0 */ #include "AtmosModelFactory.h" #include "AtmosModel.h" #include "Plugin.h" #include "IException.h" #include "FileName.h" namespace Isis { /** * Create an AtmosModel object using a PVL specification. * An example of the PVL required for this is: * * @code * Object = AtmosphericModel * Group = Algorithm * # Use 'AtmName' instead of 'Name' if using the Gui combo box * # for unique Pvl keyword in DefFile * AtmName/Name = Isotropic1 * Tau = 0.7 * Tauref = 0.0 * Wha = 0.5 * Hnorm = 0.003 * Nulneg = NO * EndGroup * EndObject * @endcode * * There are many other options that can be set via the pvl and are * described in other documentation (see below). * * @param pvl The pvl object containing the specification * @param pmodel The PhotoModel objects contining the data * * @return A pointer to the new AtmosModel * * @see atmosphericModels.doc **/ AtmosModel *AtmosModelFactory::Create(Pvl &pvl, PhotoModel &pmodel) { // Get the algorithm name to create PvlGroup &algo = pvl.findObject("AtmosphericModel") .findGroup("Algorithm", Pvl::Traverse); QString algorithm = ""; if(algo.hasKeyword("AtmName")) { algorithm = QString(algo["AtmName"]); } else if(algo.hasKeyword("Name")) { algorithm = QString(algo["Name"]); } else { QString msg = "Keyword [Name] or keyword [AtmName] must "; msg += "exist in [Group = Algorithm]"; throw IException(IException::User, msg, _FILEINFO_); } // Open the factory plugin file Plugin *p = new Plugin; FileName f("AtmosModel.plugin"); if(f.fileExists()) { p->read("AtmosModel.plugin"); } else { p->read("$ISISROOT/lib/AtmosModel.plugin"); } // Get the algorithm specific plugin and return it AtmosModel * (*plugin)(Pvl & pvl, PhotoModel & pmodel); plugin = (AtmosModel * ( *)(Pvl & pvl, PhotoModel & pmodel)) p->GetPlugin(algorithm); return (*plugin)(pvl, pmodel); } } // end namespace isis
30.3875
75
0.63513
kdl222
3f3c5d302aa9fcea024c627020f5f72bb25c5f8b
2,518
cpp
C++
RenderSystem/Cpu/rtCpuRenderSystem.cpp
CharlesCarley/Raytracer
63f4926846195e45b3620aeea007094857a709d9
[ "MIT" ]
null
null
null
RenderSystem/Cpu/rtCpuRenderSystem.cpp
CharlesCarley/Raytracer
63f4926846195e45b3620aeea007094857a709d9
[ "MIT" ]
null
null
null
RenderSystem/Cpu/rtCpuRenderSystem.cpp
CharlesCarley/Raytracer
63f4926846195e45b3620aeea007094857a709d9
[ "MIT" ]
null
null
null
/* ------------------------------------------------------------------------------- Copyright (c) Charles Carley. 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 "rtCpuRenderSystem.h" #include <cstdio> #include <thread> #include "RenderSystem/rtCamera.h" #include "RenderSystem/rtScene.h" #include "RenderSystem/rtTarget.h" #include "rtTileManager.h" rtCpuRenderSystem::rtCpuRenderSystem() : m_tiles(nullptr) { } rtCpuRenderSystem::~rtCpuRenderSystem() { delete m_tiles; } void rtCpuRenderSystem::initialize(rtScene* scene) { m_scene = scene; if (!m_scene) { printf("Invalid supplied scene.\n"); return; } if (!m_target) { printf("No target was specified.\n"); return; } rtCameras& cameras = m_scene->getCameras(); if (cameras.empty()) { printf("No cameras were found in the scene.\n"); return; } // Cache any persistent per frame variables before spiting into tiles. // Any render method / sub method must be immutable. m_camera = cameras.at(0); rtSceneType* sc = m_scene->getPtr(); rtCameraType* ca = m_camera->getPtr(); updatePixelOffset(); ca->offset = { m_iPixelOffset.x, m_iPixelOffset.y, m_iPixelOffset.z, m_iPixelOffset.w, }; sc->camera = ca; delete m_tiles; m_tiles = new rtTileManager(this, m_target->getFrameBufferInfo()); m_tiles->initialize(); m_dirty = false; } void rtCpuRenderSystem::render(rtScene* scene) { if (m_dirty) initialize(scene); m_scene->updateCaches(); m_tiles->synchronize(); }
26.787234
79
0.639793
CharlesCarley
3f404a701ec0e6c5ef9feb354a41640bc9ef5dd3
1,966
cc
C++
cpp/shared/tflite_micro/mltk_tflite_micro_recorded_data.cc
SiliconLabs/mltk
56b19518187e9d1c8a0d275de137fc9058984a1f
[ "Zlib" ]
null
null
null
cpp/shared/tflite_micro/mltk_tflite_micro_recorded_data.cc
SiliconLabs/mltk
56b19518187e9d1c8a0d275de137fc9058984a1f
[ "Zlib" ]
1
2021-11-19T20:10:09.000Z
2021-11-19T20:10:09.000Z
cpp/shared/tflite_micro/mltk_tflite_micro_recorded_data.cc
sldriedler/mltk
d82a60359cf875f542a2257f1bc7d8eb4bdaa204
[ "Zlib" ]
null
null
null
#if TFLITE_MICRO_RECORDER_ENABLED #include <cstring> #include <cassert> #include "mltk_tflite_micro_recorded_data.hpp" namespace mltk { static TfliteMicroRecordedData _recorded_data; /*************************************************************************************************/ TfliteMicroRecordedData& TfliteMicroRecordedData::instance() { return _recorded_data; } /*************************************************************************************************/ TfliteMicroRecordedTensor::TfliteMicroRecordedTensor(const TfLiteTensor* tensor) { if(tensor == nullptr) { this->data = nullptr; this->length = 0; } else { this->data = (uint8_t*)malloc(tensor->bytes); assert(this->data != nullptr); memcpy(this->data, tensor->data.raw, tensor->bytes); this->length = tensor->bytes; } } /*************************************************************************************************/ void TfliteMicroRecordedTensor::clear() { if(this->data != nullptr) { free(this->data); this->data = nullptr; this->length = 0; } } /*************************************************************************************************/ void TfliteMicroRecordedLayer::clear() { for(auto& i : this->inputs) { i.clear(); } this->inputs.clear(); for(auto& i : this->outputs) { i.clear(); } this->outputs.clear(); } /*************************************************************************************************/ TfliteMicroRecordedData::~TfliteMicroRecordedData() { clear(); } /*************************************************************************************************/ void TfliteMicroRecordedData::clear(void) { for(auto& i : *this) { i.clear(); } cpputils::TypedList<TfliteMicroRecordedLayer>::clear(); } } // namespace mltk #endif // TFLITE_MICRO_RECORDER_ENABLED
22.860465
99
0.437436
SiliconLabs
3f47a80f400cd1cc69732af1e9dec95d15ed7b12
954
cpp
C++
src/receptor-bridge/receptors/TiltReceptor.cpp
bistanovski/ShiftEmitter
000f14e3501bfb5d0b65cf2d9bbe8c150c66f391
[ "MIT" ]
null
null
null
src/receptor-bridge/receptors/TiltReceptor.cpp
bistanovski/ShiftEmitter
000f14e3501bfb5d0b65cf2d9bbe8c150c66f391
[ "MIT" ]
3
2018-05-05T19:51:14.000Z
2018-05-06T22:25:41.000Z
src/receptor-bridge/receptors/TiltReceptor.cpp
bistanovski/ShiftEmitter
000f14e3501bfb5d0b65cf2d9bbe8c150c66f391
[ "MIT" ]
null
null
null
#include "TiltReceptor.hpp" #include <QDebug> TiltReceptor::TiltReceptor(QObject *parent) : Receptor(parent) { qDebug() << "TiltReceptor"; } TiltReceptor::~TiltReceptor() { qDebug() << "~TiltReceptor"; } void TiltReceptor::connectReceptor() { QObject::connect(&m_tiltSensor, SIGNAL(readingChanged()), this, SLOT(onReadingChanged())); setConnectedToBackend(m_tiltSensor.connectToBackend()); qDebug() << "Connected to Backend:" << (isConnectedToBackend() ? "true" : "false"); } void TiltReceptor::startListening() { setIsListening(m_tiltSensor.start()); qDebug() << "Tilt Listening:" << (isListening() ? "true" : "false"); } void TiltReceptor::stopListening() { m_tiltSensor.stop(); setIsListening(false); } void TiltReceptor::onReadingChanged() { qDebug() << "Reading Changed"; const auto tiltReading = m_tiltSensor.reading(); emit tiltDetected(tiltReading->xRotation(), tiltReading->yRotation()); }
23.85
94
0.691824
bistanovski
3f4b62d952232e291a04c2a3b2fb320970ea9535
1,063
cpp
C++
src/btr/native_io.nix.cpp
vector-of-bool/batteries
8be07c729e0461e8e0b50c89c5ac9b90e48452a8
[ "BSL-1.0" ]
2
2021-08-02T15:04:33.000Z
2021-08-10T05:07:46.000Z
src/btr/native_io.nix.cpp
vector-of-bool/batteries
8be07c729e0461e8e0b50c89c5ac9b90e48452a8
[ "BSL-1.0" ]
null
null
null
src/btr/native_io.nix.cpp
vector-of-bool/batteries
8be07c729e0461e8e0b50c89c5ac9b90e48452a8
[ "BSL-1.0" ]
null
null
null
#include "./native_io.hpp" #include "./syserror.hpp" using namespace btr; #if !_WIN32 #include <unistd.h> void posix_fd_traits::close(int fd) noexcept { ::close(fd); } std::size_t posix_fd_traits::write(int fd, const_buffer cbuf) { neo_assert(expects, fd != null_handle, "Attempted to write data to a closed file descriptor", std::string_view(cbuf), cbuf.size()); auto nwritten = ::write(fd, cbuf.data(), cbuf.size()); if (nwritten < 0) { throw_current_error("::write() on file descriptor failed"); } return static_cast<std::size_t>(nwritten); } std::size_t posix_fd_traits::read(int fd, mutable_buffer buf) { neo_assert(expects, fd != null_handle, "Attempted to read data from a closed file descriptor", buf.size()); auto nread = ::read(fd, buf.data(), buf.size()); if (nread < 0) { throw_current_error("::read() on file descriptor failed"); } return static_cast<std::size_t>(nread); } #endif
27.25641
70
0.605833
vector-of-bool
3f4ece7a59eb5f75bc51e55c851b7c331440f617
3,081
hpp
C++
include/codegen/include/Valve/VR/IVRScreenshots__GetScreenshotPropertyFilename.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/Valve/VR/IVRScreenshots__GetScreenshotPropertyFilename.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/Valve/VR/IVRScreenshots__GetScreenshotPropertyFilename.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:15 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.MulticastDelegate #include "System/MulticastDelegate.hpp" // Including type: Valve.VR.IVRScreenshots #include "Valve/VR/IVRScreenshots.hpp" #include "utils/il2cpp-utils.hpp" // Completed includes // Begin forward declares // Forward declaring namespace: System namespace System { // Skipping declaration: IntPtr because it is already included! // Forward declaring type: IAsyncResult class IAsyncResult; // Forward declaring type: AsyncCallback class AsyncCallback; } // Forward declaring namespace: Valve::VR namespace Valve::VR { // Forward declaring type: EVRScreenshotPropertyFilenames struct EVRScreenshotPropertyFilenames; // Forward declaring type: EVRScreenshotError struct EVRScreenshotError; } // Forward declaring namespace: System::Text namespace System::Text { // Forward declaring type: StringBuilder class StringBuilder; } // Completed forward declares // Type namespace: Valve.VR namespace Valve::VR { // Autogenerated type: Valve.VR.IVRScreenshots/_GetScreenshotPropertyFilename class IVRScreenshots::_GetScreenshotPropertyFilename : public System::MulticastDelegate { public: // public System.Void .ctor(System.Object object, System.IntPtr method) // Offset: 0x16B3ABC static IVRScreenshots::_GetScreenshotPropertyFilename* New_ctor(::Il2CppObject* object, System::IntPtr method); // public System.UInt32 Invoke(System.UInt32 screenshotHandle, Valve.VR.EVRScreenshotPropertyFilenames filenameType, System.Text.StringBuilder pchFilename, System.UInt32 cchFilename, Valve.VR.EVRScreenshotError pError) // Offset: 0x16B3AD0 uint Invoke(uint screenshotHandle, Valve::VR::EVRScreenshotPropertyFilenames filenameType, System::Text::StringBuilder* pchFilename, uint cchFilename, Valve::VR::EVRScreenshotError& pError); // public System.IAsyncResult BeginInvoke(System.UInt32 screenshotHandle, Valve.VR.EVRScreenshotPropertyFilenames filenameType, System.Text.StringBuilder pchFilename, System.UInt32 cchFilename, Valve.VR.EVRScreenshotError pError, System.AsyncCallback callback, System.Object object) // Offset: 0x16B3DB4 System::IAsyncResult* BeginInvoke(uint screenshotHandle, Valve::VR::EVRScreenshotPropertyFilenames filenameType, System::Text::StringBuilder* pchFilename, uint cchFilename, Valve::VR::EVRScreenshotError& pError, System::AsyncCallback* callback, ::Il2CppObject* object); // public System.UInt32 EndInvoke(Valve.VR.EVRScreenshotError pError, System.IAsyncResult result) // Offset: 0x16B3EA0 uint EndInvoke(Valve::VR::EVRScreenshotError& pError, System::IAsyncResult* result); }; // Valve.VR.IVRScreenshots/_GetScreenshotPropertyFilename } DEFINE_IL2CPP_ARG_TYPE(Valve::VR::IVRScreenshots::_GetScreenshotPropertyFilename*, "Valve.VR", "IVRScreenshots/_GetScreenshotPropertyFilename"); #pragma pack(pop)
54.052632
286
0.776696
Futuremappermydud
3f4fd94e8e029a3067bf411c49d6eb736c47a204
2,650
cpp
C++
src/lowestindexbranchingscheme.cpp
sraaphorst/nibac
288fcc4012065cf8b15dab4fc5f0c829b2b4a65c
[ "Apache-2.0" ]
null
null
null
src/lowestindexbranchingscheme.cpp
sraaphorst/nibac
288fcc4012065cf8b15dab4fc5f0c829b2b4a65c
[ "Apache-2.0" ]
9
2018-05-06T20:27:49.000Z
2018-10-24T23:28:24.000Z
src/lowestindexbranchingscheme.cpp
sraaphorst/nibac
288fcc4012065cf8b15dab4fc5f0c829b2b4a65c
[ "Apache-2.0" ]
null
null
null
/** * lowestindexbranchingscheme.cpp * * By Sebastian Raaphorst, 2003 - 2018. */ #include <map> #include <set> #include <sstream> #include <string> #include "common.h" #include "lowestindexbranchingscheme.h" #include "nibacexception.h" #include "node.h" namespace vorpal::nibac { int LowestIndexBranchingScheme::getBranchingVariableIndex(Node &n) { return n.getLowestFreeVariableIndex(); } std::map <std::string, std::pair<std::string, std::string>> LowestIndexBranchingSchemeCreator::getOptionsMap(void) { std::map <std::string, std::pair<std::string, std::string>> optionsMap; return optionsMap; } bool LowestIndexBranchingSchemeCreator::processOptionsString(const char *options) { char ch, eqls; // We must explicitly check for empty string prior to processing, since an empty string does // not generate an EOF status. if (strlen(options) == 0) return true; std::istringstream stream(options); while (!stream.eof()) { stream >> ch; if (stream.fail()) throw IllegalParameterException("LowestIndexBranchingScheme::ConfigurationString", options, "could not process string"); stream >> eqls; if (stream.fail() || eqls != '=') throw IllegalParameterException("LowestIndexBranchingScheme::ConfigurationString", options, "could not process string"); // TODO: Again, what was I thinking here?!? switch (ch) { default: std::ostringstream outputstream; outputstream << ch; throw IllegalParameterException("LowestIndexBranchingScheme::ConfigurationString", outputstream.str().c_str(), "not a supported option"); } if (!stream.eof()) { stream >> ch; if (!stream || ch != ':') throw IllegalParameterException("LowestIndexBranchingScheme::ConfigurationString", options, "could not process string"); } } return true; } BranchingScheme *LowestIndexBranchingSchemeCreator::create(void) const { return new LowestIndexBranchingScheme(); } };
35.810811
120
0.526038
sraaphorst
3f50c9431e2adc2e41c156e9fac5231e218f41c7
651
hpp
C++
include/haz/Tools/SourceInfo.hpp
Hazurl/Framework-haz
370348801cd969ce8521264653069923a255e0b0
[ "MIT" ]
null
null
null
include/haz/Tools/SourceInfo.hpp
Hazurl/Framework-haz
370348801cd969ce8521264653069923a255e0b0
[ "MIT" ]
null
null
null
include/haz/Tools/SourceInfo.hpp
Hazurl/Framework-haz
370348801cd969ce8521264653069923a255e0b0
[ "MIT" ]
null
null
null
#ifndef __HAZ_SOURCE_INF #define __HAZ_SOURCE_INF #include <haz/Tools/Macro.hpp> BEG_NAMESPACE_HAZ #define SOURCE_INFO_LIST __LINE__, __PRETTY_FUNCTION__, __FILE__ #define SOURCE_INFO ::haz::SourceInfo(SOURCE_INFO_LIST) struct SourceInfo { inline SourceInfo(unsigned int line, const char* func, const char* file) : file(file), func(func), line(line) {} const char* const file; const char* const func; const unsigned int line; }; std::ostream& operator << (std::ostream& os, SourceInfo const& s) { return os << "in " << s.func << " from " << s.file << " at " << s.line; } END_NAMESPACE_HAZ #endif
22.448276
78
0.674347
Hazurl
3f5150feae066afa27501536c9e4d4ecb09eae86
171
hpp
C++
cpp/Autogarden/include/pins/interfaces/output.hpp
e-dang/Autogarden
b15217e5d4755fc028b8dc4255cbdcb77ead80f4
[ "MIT" ]
null
null
null
cpp/Autogarden/include/pins/interfaces/output.hpp
e-dang/Autogarden
b15217e5d4755fc028b8dc4255cbdcb77ead80f4
[ "MIT" ]
null
null
null
cpp/Autogarden/include/pins/interfaces/output.hpp
e-dang/Autogarden
b15217e5d4755fc028b8dc4255cbdcb77ead80f4
[ "MIT" ]
null
null
null
#pragma once #include <pins/interfaces/pin.hpp> class IOutputPin : virtual public IPin { public: virtual ~IOutputPin() = default; virtual void connect() = 0; };
17.1
40
0.690058
e-dang
3f51813b9ca97a9e20f84b41c6663a2d08d07cd1
3,225
hh
C++
include/introvirt/windows/kernel/nt/types/objects/FILE_OBJECT.hh
srpape/IntroVirt
fe553221c40b8ef71f06e79c9d54d9e123a06c89
[ "Apache-2.0" ]
null
null
null
include/introvirt/windows/kernel/nt/types/objects/FILE_OBJECT.hh
srpape/IntroVirt
fe553221c40b8ef71f06e79c9d54d9e123a06c89
[ "Apache-2.0" ]
null
null
null
include/introvirt/windows/kernel/nt/types/objects/FILE_OBJECT.hh
srpape/IntroVirt
fe553221c40b8ef71f06e79c9d54d9e123a06c89
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2021 Assured Information Security, Inc. * * 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. */ #pragma once #include "OBJECT.hh" #include <introvirt/windows/kernel/nt/fwd.hh> #include <string> namespace introvirt { namespace windows { namespace nt { class FileObjectFlags { public: bool FO_FILE_OPEN() const; bool FO_SYNCHRONOUS_IO() const; bool FO_ALERTABLE_IO() const; bool FO_NO_INTERMEDIATE_BUFFERING() const; bool FO_WRITE_THROUGH() const; bool FO_SEQUENTIAL_ONLY() const; bool FO_CACHE_SUPPORTED() const; bool FO_NAMED_PIPE() const; bool FO_STREAM_FILE() const; bool FO_MAILSLOT() const; bool FO_GENERATE_AUDIT_ON_CLOSE() const; bool FO_QUEUE_IRP_TO_THREAD() const; bool FO_DIRECT_DEVICE_OPEN() const; bool FO_FILE_MODIFIED() const; bool FO_FILE_SIZE_CHANGED() const; bool FO_CLEANUP_COMPLETE() const; bool FO_TEMPORARY_FILE() const; bool FO_DELETE_ON_CLOSE() const; bool FO_OPENED_CASE_SENSITIVE() const; bool FO_HANDLE_CREATED() const; bool FO_FILE_FAST_IO_READ() const; bool FO_RANDOM_ACCESS() const; bool FO_FILE_OPEN_CANCELLED() const; bool FO_VOLUME_OPEN() const; bool FO_REMOTE_ORIGIN() const; bool FO_SKIP_COMPLETION_PORT() const; bool FO_SKIP_SET_EVENT() const; bool FO_SKIP_SET_FAST_IO() const; uint32_t value() const { return value_; } FileObjectFlags(uint32_t value) : value_(value) {} private: const uint32_t value_; }; class FILE_OBJECT : public OBJECT { public: virtual const DEVICE_OBJECT* DeviceObject() const = 0; virtual std::string FileName() const = 0; virtual bool DeletePending() const = 0; virtual void DeletePending(bool value) = 0; virtual FileObjectFlags Flags() const = 0; virtual void Flags(FileObjectFlags flags) = 0; virtual bool DeleteAccess() const = 0; virtual void DeleteAccess(bool value) = 0; virtual bool SharedDelete() const = 0; virtual void SharedDelete(bool value) = 0; /** * @brief Get the drive letter of the file object */ virtual std::string drive_letter() const = 0; /** * @brief Get the full path, drive letter included */ virtual std::string full_path() const = 0; static std::shared_ptr<FILE_OBJECT> make_shared(const NtKernel& kernel, const GuestVirtualAddress& gva); static std::shared_ptr<FILE_OBJECT> make_shared(const NtKernel& kernel, std::unique_ptr<OBJECT_HEADER>&& object_header); virtual ~FILE_OBJECT() = default; }; } /* namespace nt */ } /* namespace windows */ } /* namespace introvirt */
30.714286
100
0.688372
srpape
3f53f83a723c80a9ba3a98b0c76669d871de493e
1,342
cpp
C++
src/Collection.cpp
fatehmtd/QtPexelsLib
f38bc62b43444c98935c72164f87aeb9a4021a44
[ "MIT" ]
3
2021-11-19T21:37:41.000Z
2021-12-09T21:20:17.000Z
src/Collection.cpp
fatehmtd/QtPexelsLib
f38bc62b43444c98935c72164f87aeb9a4021a44
[ "MIT" ]
null
null
null
src/Collection.cpp
fatehmtd/QtPexelsLib
f38bc62b43444c98935c72164f87aeb9a4021a44
[ "MIT" ]
null
null
null
#include "../include/Collection.h" qtpexels::Collection::Collection(QObject* parent) : FetchableResource(parent) { } bool qtpexels::Collection::processJSON(const QJsonObject& jsonObject) { _id = jsonObject["id"].toString(); _title = jsonObject["title"].toString(); _description = jsonObject["description"].toString(); _private = jsonObject["private"].toBool(); _mediaCount = jsonObject["media_count"].toInt(); _photosCount = jsonObject["photos_count"].toInt(); _videosCount = jsonObject["videos_count"].toInt(); return true; } const QString& qtpexels::Collection::id() const { return _id; } const QString& qtpexels::Collection::title() const { return _title; } const QString& qtpexels::Collection::description() const { return _description; } bool qtpexels::Collection::isPrivate() const { return _private; } int qtpexels::Collection::mediaCount() const { return _mediaCount; } int qtpexels::Collection::photosCount() const { return _photosCount; } int qtpexels::Collection::videosCount() const { return _videosCount; } const QList<qtpexels::Photo*>& qtpexels::Collection::photos() const { return _photos; } const QList<qtpexels::Video*>& qtpexels::Collection::videos() const { return _videos; }
20.96875
70
0.672131
fatehmtd
3f54e3856c78df42fcc6af14574621d6ea764a36
1,342
cpp
C++
src/plane.cpp
Twinklebear/micro-packet
24a35b4ecde7bc0283abba3b03eefe497fb1f138
[ "MIT" ]
12
2015-03-21T01:43:46.000Z
2020-08-05T01:55:37.000Z
src/plane.cpp
Twinklebear/micro-packet
24a35b4ecde7bc0283abba3b03eefe497fb1f138
[ "MIT" ]
null
null
null
src/plane.cpp
Twinklebear/micro-packet
24a35b4ecde7bc0283abba3b03eefe497fb1f138
[ "MIT" ]
null
null
null
#include "plane.h" Plane::Plane(Vec3f pos, Vec3f normal, int material_id) : pos(pos), normal(normal.normalized()), material_id(material_id){} __m256 Plane::intersect(Ray8 &ray, DiffGeom8 &dg) const { const auto vpos = Vec3f_8{pos}; const auto vnorm = Vec3f_8{normal}; const auto t = _mm256_div_ps((vpos - ray.o).dot(vnorm), ray.d.dot(vnorm)); auto hits = _mm256_and_ps(_mm256_cmp_ps(t, ray.t_min, _CMP_GT_OQ), _mm256_cmp_ps(t, ray.t_max, _CMP_LT_OQ)); hits = _mm256_and_ps(hits, ray.active); // Check if all rays miss the sphere if (_mm256_movemask_ps(hits) == 0){ return hits; } // Update t values for rays that did hit ray.t_max = _mm256_blendv_ps(ray.t_max, t, hits); const auto point = ray.at(ray.t_max); dg.point.x = _mm256_blendv_ps(dg.point.x, point.x, hits); dg.point.y = _mm256_blendv_ps(dg.point.y, point.y, hits); dg.point.z = _mm256_blendv_ps(dg.point.z, point.z, hits); dg.normal.x = _mm256_blendv_ps(dg.normal.x, vnorm.x, hits); dg.normal.y = _mm256_blendv_ps(dg.normal.y, vnorm.y, hits); dg.normal.z = _mm256_blendv_ps(dg.normal.z, vnorm.z, hits); // There's no blendv_epi32 in AVX/AVX2 so we have to resort to some hacky casting dg.material_id = _mm256_castps_si256(_mm256_blendv_ps(_mm256_castsi256_ps(dg.material_id), _mm256_castsi256_ps(_mm256_set1_epi32(material_id)), hits)); return hits; }
44.733333
122
0.732489
Twinklebear
3f5538f21dc87bc5c7ac85ae5d1c154a908cade1
8,538
cpp
C++
src/cdcarduino.cpp
gdsports/cdcarduino_uhs2
40e39265a1009cff53d85460939066d87b917866
[ "MIT" ]
3
2020-06-04T11:31:10.000Z
2021-10-03T03:03:50.000Z
src/cdcarduino.cpp
gdsports/cdcarduino_uhs2
40e39265a1009cff53d85460939066d87b917866
[ "MIT" ]
null
null
null
src/cdcarduino.cpp
gdsports/cdcarduino_uhs2
40e39265a1009cff53d85460939066d87b917866
[ "MIT" ]
null
null
null
/* * Arduino board serial console port USB CDC ACM. * This adds to the generic CDC ACM class, Arduino board detection and * board reset. Works for Uno and Mega/Mega2560. Includes experimental * code for Leonardo(32u4) and Nano Every (4809) but they are not supported. */ /* * MIT License * * Copyright (c) 2019 gdsports625@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include "cdcarduino.h" ARD::ARD(USB *p, CDCAsyncOper *pasync) : ACM(p, pasync), vid(0), pid(0), targetBaudRate(0), targetResetMsec(0) { } uint8_t ARD::reset_dtr_rts(int resetLowMsec) { uint8_t rcode; // Set DTR=RTS=0 rcode = ACM::SetControlLineState(0); if (rcode) { ErrorMessage<uint8_t>(PSTR("SetControlLineState"), rcode); return rcode; } delay(resetLowMsec); // Set DTR=RTS=1 rcode = ACM::SetControlLineState(3); if (rcode) { ErrorMessage<uint8_t>(PSTR("SetControlLineState"), rcode); return rcode; } return 0; } uint8_t ARD::reset_touch_1200bps() { uint8_t rcode; // Set DTR=1, RTS=1 rcode = ACM::SetControlLineState(0x03); if (rcode) { ErrorMessage<uint8_t>(PSTR("SetControlLineState"), rcode); return rcode; } delay(4); // 1200 baud, 8 data bits, no parity, 1 stop bit LINE_CODING lc; lc.dwDTERate = 1200; lc.bCharFormat = 0; lc.bParityType = 0; lc.bDataBits = 8; rcode = ACM::SetLineCoding(&lc); if (rcode) { ErrorMessage<uint8_t>(PSTR("SetLineCoding"), rcode); return rcode; } delay(4); // Set DTR=0, RTS=1 rcode = ACM::SetControlLineState(0x02); if (rcode) { ErrorMessage<uint8_t>(PSTR("SetControlLineState"), rcode); return rcode; } delay(4); // Set DTR=0, RTS=0 rcode = ACM::SetControlLineState(0); if (rcode) { ErrorMessage<uint8_t>(PSTR("SetControlLineState"), rcode); return rcode; } return 0; } bool ARD::reset_target() { if (targetResetMsec) { reset_dtr_rts(targetResetMsec); } else { //reset_touch_1200bps(); } } bool ARD::find_target(uint16_t vid, uint16_t pid) { for (int i = 0; i < sizeof(Boards)/sizeof(Boards[0]); i++) { if ((vid == Boards[i].vendorID) && (pid == Boards[i].productID)) { targetBaudRate = BoardActions[Boards[i].board_actions].baudRate; targetResetMsec = BoardActions[Boards[i].board_actions].resetMsec; return true; } } targetBaudRate = 115200; targetResetMsec = 250; return false; } uint8_t ARD::Init(uint8_t parent, uint8_t port, bool lowspeed) { const uint8_t constBufSize = sizeof (USB_DEVICE_DESCRIPTOR); uint8_t buf[constBufSize]; USB_DEVICE_DESCRIPTOR * udd = reinterpret_cast<USB_DEVICE_DESCRIPTOR*>(buf); uint8_t rcode; UsbDevice *p = NULL; EpInfo *oldep_ptr = NULL; uint8_t num_of_conf; // number of configurations AddressPool &addrPool = pUsb->GetAddressPool(); USBTRACE("ARD Init\r\n"); if(bAddress) return USB_ERROR_CLASS_INSTANCE_ALREADY_IN_USE; // Get pointer to pseudo device with address 0 assigned p = addrPool.GetUsbDevicePtr(0); if(!p) return USB_ERROR_ADDRESS_NOT_FOUND_IN_POOL; if(!p->epinfo) { USBTRACE("epinfo\r\n"); return USB_ERROR_EPINFO_IS_NULL; } // Save old pointer to EP_RECORD of address 0 oldep_ptr = p->epinfo; // Temporary assign new pointer to epInfo to p->epinfo in order to avoid toggle inconsistence p->epinfo = epInfo; p->lowspeed = lowspeed; // Get device descriptor rcode = pUsb->getDevDescr(0, 0, constBufSize, (uint8_t*)buf); USBTRACE2("getDevDescr ", rcode); // Restore p->epinfo p->epinfo = oldep_ptr; if(rcode) goto FailGetDevDescr; // Allocate new address according to device class bAddress = addrPool.AllocAddress(parent, false, port); USBTRACE2("bAddress=", bAddress); if(!bAddress) return USB_ERROR_OUT_OF_ADDRESS_SPACE_IN_POOL; // Assign new address to the device rcode = pUsb->setAddr(0, 0, bAddress); if(rcode) { p->lowspeed = false; addrPool.FreeAddress(bAddress); bAddress = 0; USBTRACE2("setAddr:", rcode); return rcode; } USBTRACE2("Addr:", bAddress); p->lowspeed = false; // Get device descriptor rcode = pUsb->getDevDescr(bAddress, 0, constBufSize, (uint8_t*)buf); USBTRACE2("getDevDescr ", rcode); vid = udd->idVendor; pid = udd->idProduct; // Extract Max Packet Size from the device descriptor epInfo[0].maxPktSize = udd->bMaxPacketSize0; p = addrPool.GetUsbDevicePtr(bAddress); if(!p) return USB_ERROR_ADDRESS_NOT_FOUND_IN_POOL; p->lowspeed = lowspeed; num_of_conf = udd->bNumConfigurations; // Assign epInfo to epinfo pointer rcode = pUsb->setEpInfoEntry(bAddress, 1, epInfo); if(rcode) goto FailSetDevTblEntry; USBTRACE("VID:"), D_PrintHex(vid, 0x80); USBTRACE(" PID:"), D_PrintHex(pid, 0x80); USBTRACE2(" NC:", num_of_conf); for(uint8_t i = 0; i < num_of_conf; i++) { ConfigDescParser< USB_CLASS_COM_AND_CDC_CTRL, CDC_SUBCLASS_ACM, 0, CP_MASK_COMPARE_CLASS | CP_MASK_COMPARE_SUBCLASS > CdcControlParser(this); ConfigDescParser<USB_CLASS_CDC_DATA, 0, 0, CP_MASK_COMPARE_CLASS> CdcDataParser(this); rcode = pUsb->getConfDescr(bAddress, 0, i, &CdcControlParser); if(rcode) goto FailGetConfDescr; rcode = pUsb->getConfDescr(bAddress, 0, i, &CdcDataParser); if(rcode) goto FailGetConfDescr; if(bNumEP > 1) break; } // for if(bNumEP < 4) return USB_DEV_CONFIG_ERROR_DEVICE_NOT_SUPPORTED; // Assign epInfo to epinfo pointer rcode = pUsb->setEpInfoEntry(bAddress, bNumEP, epInfo); USBTRACE2("Conf:", bConfNum); // Set Configuration Value rcode = pUsb->setConf(bAddress, 0, bConfNum); if(rcode) goto FailSetConfDescr; // Set up features status _enhanced_status = enhanced_features(); half_duplex(false); autoflowRTS(false); autoflowDSR(false); autoflowXON(false); wide(false); // Always false, because this is only available in custom mode. find_target(vid, pid); USBTRACE2("Baud=", targetBaudRate); USBTRACE2("Reset (ms)=", targetResetMsec); if (targetResetMsec) { // Set DTR = 1 RTS=1 rcode = ACM::SetControlLineState(3); if (rcode) goto FailOnInit; } LINE_CODING lc; lc.dwDTERate = targetBaudRate; lc.bCharFormat = 0; lc.bParityType = 0; lc.bDataBits = 8; rcode = ACM::SetLineCoding(&lc); if (rcode) goto FailOnInit; rcode = pAsync->OnInit(this); if(rcode) goto FailOnInit; USBTRACE("ARD configured\r\n"); ready = true; return 0; FailGetDevDescr: #ifdef DEBUG_USB_HOST NotifyFailGetDevDescr(); goto Fail; #endif FailSetDevTblEntry: #ifdef DEBUG_USB_HOST NotifyFailSetDevTblEntry(); goto Fail; #endif FailGetConfDescr: #ifdef DEBUG_USB_HOST NotifyFailGetConfDescr(); goto Fail; #endif FailSetConfDescr: #ifdef DEBUG_USB_HOST NotifyFailSetConfDescr(); goto Fail; #endif FailOnInit: #ifdef DEBUG_USB_HOST USBTRACE("OnInit:"); #endif #ifdef DEBUG_USB_HOST Fail: NotifyFail(rcode); #endif Release(); return rcode; }
26.030488
97
0.656711
gdsports
3f56037fcbef6bda39ff9d24e5fb8fa7a61e044f
4,177
cpp
C++
Source/RenderMotion.cpp
marcussvensson92/vulkan_testbed
6cfbee9fd5fb245f10c1d5694812eda6232b9a6c
[ "MIT" ]
10
2020-03-26T08:51:29.000Z
2021-08-17T07:43:12.000Z
Source/RenderMotion.cpp
marcussvensson92/vulkan_testbed
6cfbee9fd5fb245f10c1d5694812eda6232b9a6c
[ "MIT" ]
null
null
null
Source/RenderMotion.cpp
marcussvensson92/vulkan_testbed
6cfbee9fd5fb245f10c1d5694812eda6232b9a6c
[ "MIT" ]
null
null
null
#include "RenderMotion.h" #include "VkUtil.h" void RenderMotion::Create(const RenderContext& rc) { // Generate { VkDescriptorSetLayoutBinding set_layout_bindings[] = { { 0, VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1, VK_SHADER_STAGE_COMPUTE_BIT, NULL }, { 1, VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, 1, VK_SHADER_STAGE_COMPUTE_BIT, NULL }, { 2, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1, VK_SHADER_STAGE_COMPUTE_BIT, NULL }, }; VkDescriptorSetLayoutCreateInfo set_layout_info = {}; set_layout_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO; set_layout_info.bindingCount = static_cast<uint32_t>(sizeof(set_layout_bindings) / sizeof(*set_layout_bindings)); set_layout_info.pBindings = set_layout_bindings; VK(vkCreateDescriptorSetLayout(Vk.Device, &set_layout_info, NULL, &m_GenerateDescriptorSetLayout)); VkPipelineLayoutCreateInfo pipeline_layout_info = {}; pipeline_layout_info.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO; pipeline_layout_info.setLayoutCount = 1; pipeline_layout_info.pSetLayouts = &m_GenerateDescriptorSetLayout; VK(vkCreatePipelineLayout(Vk.Device, &pipeline_layout_info, NULL, &m_GeneratePipelineLayout)); } CreatePipelines(rc); } void RenderMotion::Destroy() { DestroyPipelines(); vkDestroyPipelineLayout(Vk.Device, m_GeneratePipelineLayout, NULL); vkDestroyDescriptorSetLayout(Vk.Device, m_GenerateDescriptorSetLayout, NULL); } void RenderMotion::CreatePipelines(const RenderContext& rc) { // Generate { VkUtilCreateComputePipelineParams pipeline_params; pipeline_params.PipelineLayout = m_GeneratePipelineLayout; pipeline_params.ComputeShaderFilepath = "../Assets/Shaders/MotionGenerate.comp"; m_GeneratePipeline = VkUtilCreateComputePipeline(pipeline_params); } } void RenderMotion::DestroyPipelines() { vkDestroyPipeline(Vk.Device, m_GeneratePipeline, NULL); } void RenderMotion::RecreatePipelines(const RenderContext& rc) { DestroyPipelines(); CreatePipelines(rc); } void RenderMotion::Generate(const RenderContext& rc, VkCommandBuffer cmd) { VkPushLabel(cmd, "Motion Generate"); VkUtilImageBarrier(cmd, rc.MotionTexture.Image, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, VK_IMAGE_LAYOUT_GENERAL, VK_IMAGE_ASPECT_COLOR_BIT); vkCmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_COMPUTE, m_GeneratePipeline); const glm::mat4 curr = rc.CameraCurr.m_ProjectionNoJitter * rc.CameraCurr.m_View; const glm::mat4 prev = rc.CameraPrev.m_ProjectionNoJitter * rc.CameraPrev.m_View; const glm::mat4 curr_to_prev = prev * glm::inverse(curr); const float depth_param = (rc.CameraCurr.m_FarZ - rc.CameraCurr.m_NearZ) / rc.CameraCurr.m_NearZ; const glm::mat4 pre = { 2.0f, 0.0f, 0.0f, 0.0f, 0.0f, 2.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f / depth_param, 0.0f, -1.0f, -1.0f, -1.0f / depth_param, 1.0f }; const glm::mat4 post = { 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.5f, 0.5f, 0.0f, 1.0f }; struct Constants { glm::mat4 CurrToPrev; }; VkAllocation constants_allocation = VkAllocateUploadBuffer(sizeof(Constants)); Constants* constants = reinterpret_cast<Constants*>(constants_allocation.Data); constants->CurrToPrev = post * curr_to_prev * pre; VkDescriptorSet set = VkCreateDescriptorSetForCurrentFrame(m_GenerateDescriptorSetLayout, { { 0, VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 0, constants_allocation.Buffer, constants_allocation.Offset, sizeof(Constants) }, { 1, VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, 0, rc.MotionTexture.ImageView, VK_IMAGE_LAYOUT_GENERAL, VK_NULL_HANDLE }, { 2, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 0, rc.LinearDepthTextures[rc.FrameCounter & 1].ImageView, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, rc.NearestClamp }, }); vkCmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_COMPUTE, m_GeneratePipelineLayout, 0, 1, &set, 0, NULL); vkCmdDispatch(cmd, (rc.Width + 7) / 8, (rc.Height + 7) / 8, 1); VkUtilImageBarrier(cmd, rc.MotionTexture.Image, VK_IMAGE_LAYOUT_GENERAL, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, VK_IMAGE_ASPECT_COLOR_BIT); VkPopLabel(cmd); }
37.630631
169
0.762988
marcussvensson92
3f58aedd4acc2f31c673e6ba3b8eed88ce901e63
689
hpp
C++
components/python/detail/context_manager.hpp
jinntechio/RocketJoe
9b08a21fda1609c57b40ef8b9750897797ac815b
[ "BSD-3-Clause" ]
9
2020-07-20T15:32:07.000Z
2021-06-04T13:02:58.000Z
components/python/detail/context_manager.hpp
jinntechio/RocketJoe
9b08a21fda1609c57b40ef8b9750897797ac815b
[ "BSD-3-Clause" ]
26
2019-10-27T12:58:42.000Z
2020-05-30T16:43:48.000Z
components/python/detail/context_manager.hpp
jinntechio/RocketJoe
9b08a21fda1609c57b40ef8b9750897797ac815b
[ "BSD-3-Clause" ]
3
2020-08-29T07:07:49.000Z
2021-06-04T13:02:59.000Z
#pragma once #include <list> #include <memory> #include <unordered_map> #include <boost/filesystem.hpp> #include <boost/utility/string_view.hpp> #include <detail/forward.hpp> namespace components { namespace python { namespace detail { constexpr const static char* __default__ = "default"; class context_manager final { public: context_manager(file_manager& file_manager); auto create_context(const std::string& name) -> context*; auto create_context() -> context*; private: file_manager& file_manager_; std::unordered_map<std::string, std::unique_ptr<context>> contexts_; }; }}} // namespace components::python::detail
23.758621
76
0.698113
jinntechio
3f58caacc4df8b2c650520659ac51658e51a74d7
1,947
cpp
C++
day16/Packet.cpp
fardragon/AdventOfCode2021
16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea
[ "MIT" ]
1
2021-12-02T14:11:37.000Z
2021-12-02T14:11:37.000Z
day16/Packet.cpp
fardragon/AdventOfCode2021
16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea
[ "MIT" ]
null
null
null
day16/Packet.cpp
fardragon/AdventOfCode2021
16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea
[ "MIT" ]
null
null
null
#include "Packet.hpp" #include <algorithm> std::uint64_t Packet::GetVersionSum() const noexcept { std::uint64_t versionSum{version}; if (type != 4) { for (const auto &sub: std::get<std::vector<Packet>>(content)) { versionSum += sub.GetVersionSum(); } } return versionSum; } std::uint64_t Packet::Solve() const { switch (type) { case 0: { std::uint64_t sum{}; for (const auto &sub: std::get<std::vector<Packet>>(content)) { sum += sub.Solve(); } return sum; } case 1: { std::uint64_t product{1}; for (const auto &sub: std::get<std::vector<Packet>>(content)) { product *= sub.Solve(); } return product; } case 2: { const auto &subPackets = std::get<std::vector<Packet>>(content); return std::min_element(subPackets.begin(), subPackets.end(), [](const Packet &a, const Packet &b) { return a.Solve() < b.Solve(); } )->Solve(); } case 3: { const auto &subPackets = std::get<std::vector<Packet>>(content); return std::min_element(subPackets.begin(), subPackets.end(), [](const Packet &a, const Packet &b) { return a.Solve() > b.Solve(); } )->Solve(); } case 4: { return std::get<std::uint64_t>(content); } case 5: { const auto &subPackets = std::get<std::vector<Packet>>(content); return subPackets[0].Solve() > subPackets[1].Solve() ? 1U: 0U; } case 6: { const auto &subPackets = std::get<std::vector<Packet>>(content); return subPackets[0].Solve() < subPackets[1].Solve() ? 1U: 0U; } case 7: { const auto &subPackets = std::get<std::vector<Packet>>(content); return subPackets[0].Solve() == subPackets[1].Solve() ? 1U: 0U; } default: throw std::runtime_error("Unknown type"); } }
22.639535
67
0.543914
fardragon
3f58e087a958649137ef391194bd6e849c41c9d4
678,705
cpp
C++
tests/cuda2.2/tests/Particles/particles_kernel.cu.cpp
florianjacob/gpuocelot
fa63920ee7c5f9a86e264cd8acd4264657cbd190
[ "BSD-3-Clause" ]
221
2015-03-29T02:05:49.000Z
2022-03-25T01:45:36.000Z
tests/cuda2.2/tests/Particles/particles_kernel.cu.cpp
mprevot/gpuocelot
d9277ef05a110e941aef77031382d0260ff115ef
[ "BSD-3-Clause" ]
106
2015-03-29T01:28:42.000Z
2022-02-15T19:38:23.000Z
tests/cuda2.2/tests/Particles/particles_kernel.cu.cpp
mprevot/gpuocelot
d9277ef05a110e941aef77031382d0260ff115ef
[ "BSD-3-Clause" ]
83
2015-07-10T23:09:57.000Z
2022-03-25T03:01:00.000Z
# 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.cpp" # 1 "<built-in>" # 1 "<command-line>" # 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.cpp" # 1 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" # 46 "/usr/local/cuda/bin/../include/device_types.h" # 149 "/usr/lib/gcc/i686-linux-gnu/4.4.5/include/stddef.h" 3 typedef long ptrdiff_t; # 211 "/usr/lib/gcc/i686-linux-gnu/4.4.5/include/stddef.h" 3 typedef unsigned long size_t; # 1 "/usr/local/cuda/bin/../include/crt/host_runtime.h" 1 3 # 69 "/usr/local/cuda/bin/../include/crt/host_runtime.h" 3 # 1 "/usr/local/cuda/bin/../include/builtin_types.h" 1 3 # 42 "/usr/local/cuda/bin/../include/builtin_types.h" 3 # 1 "/usr/local/cuda/bin/../include/device_types.h" 1 3 # 46 "/usr/local/cuda/bin/../include/device_types.h" 3 enum cudaRoundMode { cudaRoundNearest, cudaRoundZero, cudaRoundPosInf, cudaRoundMinInf }; # 43 "/usr/local/cuda/bin/../include/builtin_types.h" 2 3 # 1 "/usr/local/cuda/bin/../include/driver_types.h" 1 3 # 96 "/usr/local/cuda/bin/../include/driver_types.h" 3 enum cudaError { cudaSuccess = 0, cudaErrorMissingConfiguration = 1, cudaErrorMemoryAllocation = 2, cudaErrorInitializationError = 3, # 131 "/usr/local/cuda/bin/../include/driver_types.h" 3 cudaErrorLaunchFailure = 4, # 140 "/usr/local/cuda/bin/../include/driver_types.h" 3 cudaErrorPriorLaunchFailure = 5, # 150 "/usr/local/cuda/bin/../include/driver_types.h" 3 cudaErrorLaunchTimeout = 6, # 159 "/usr/local/cuda/bin/../include/driver_types.h" 3 cudaErrorLaunchOutOfResources = 7, cudaErrorInvalidDeviceFunction = 8, # 174 "/usr/local/cuda/bin/../include/driver_types.h" 3 cudaErrorInvalidConfiguration = 9, cudaErrorInvalidDevice = 10, cudaErrorInvalidValue = 11, cudaErrorInvalidPitchValue = 12, cudaErrorInvalidSymbol = 13, cudaErrorMapBufferObjectFailed = 14, cudaErrorUnmapBufferObjectFailed = 15, cudaErrorInvalidHostPointer = 16, cudaErrorInvalidDevicePointer = 17, cudaErrorInvalidTexture = 18, cudaErrorInvalidTextureBinding = 19, cudaErrorInvalidChannelDescriptor = 20, cudaErrorInvalidMemcpyDirection = 21, # 255 "/usr/local/cuda/bin/../include/driver_types.h" 3 cudaErrorAddressOfConstant = 22, # 264 "/usr/local/cuda/bin/../include/driver_types.h" 3 cudaErrorTextureFetchFailed = 23, # 273 "/usr/local/cuda/bin/../include/driver_types.h" 3 cudaErrorTextureNotBound = 24, # 282 "/usr/local/cuda/bin/../include/driver_types.h" 3 cudaErrorSynchronizationError = 25, cudaErrorInvalidFilterSetting = 26, cudaErrorInvalidNormSetting = 27, cudaErrorMixedDeviceExecution = 28, cudaErrorCudartUnloading = 29, cudaErrorUnknown = 30, cudaErrorNotYetImplemented = 31, # 330 "/usr/local/cuda/bin/../include/driver_types.h" 3 cudaErrorMemoryValueTooLarge = 32, cudaErrorInvalidResourceHandle = 33, cudaErrorNotReady = 34, cudaErrorInsufficientDriver = 35, # 365 "/usr/local/cuda/bin/../include/driver_types.h" 3 cudaErrorSetOnActiveProcess = 36, cudaErrorInvalidSurface = 37, cudaErrorNoDevice = 38, cudaErrorECCUncorrectable = 39, cudaErrorSharedObjectSymbolNotFound = 40, cudaErrorSharedObjectInitFailed = 41, cudaErrorUnsupportedLimit = 42, cudaErrorDuplicateVariableName = 43, cudaErrorDuplicateTextureName = 44, cudaErrorDuplicateSurfaceName = 45, # 426 "/usr/local/cuda/bin/../include/driver_types.h" 3 cudaErrorDevicesUnavailable = 46, cudaErrorInvalidKernelImage = 47, cudaErrorNoKernelImageForDevice = 48, # 448 "/usr/local/cuda/bin/../include/driver_types.h" 3 cudaErrorIncompatibleDriverContext = 49, cudaErrorStartupFailure = 0x7f, cudaErrorApiFailureBase = 10000 }; enum cudaChannelFormatKind { cudaChannelFormatKindSigned = 0, cudaChannelFormatKindUnsigned = 1, cudaChannelFormatKindFloat = 2, cudaChannelFormatKindNone = 3 }; struct cudaChannelFormatDesc { int x; int y; int z; int w; enum cudaChannelFormatKind f; }; struct cudaArray; enum cudaMemcpyKind { cudaMemcpyHostToHost = 0, cudaMemcpyHostToDevice = 1, cudaMemcpyDeviceToHost = 2, cudaMemcpyDeviceToDevice = 3 }; struct cudaPitchedPtr { void *ptr; size_t pitch; size_t xsize; size_t ysize; }; struct cudaExtent { size_t width; size_t height; size_t depth; }; struct cudaPos { size_t x; size_t y; size_t z; }; struct cudaMemcpy3DParms { struct cudaArray *srcArray; struct cudaPos srcPos; struct cudaPitchedPtr srcPtr; struct cudaArray *dstArray; struct cudaPos dstPos; struct cudaPitchedPtr dstPtr; struct cudaExtent extent; enum cudaMemcpyKind kind; }; struct cudaGraphicsResource; enum cudaGraphicsRegisterFlags { cudaGraphicsRegisterFlagsNone = 0 }; enum cudaGraphicsMapFlags { cudaGraphicsMapFlagsNone = 0, cudaGraphicsMapFlagsReadOnly = 1, cudaGraphicsMapFlagsWriteDiscard = 2 }; enum cudaGraphicsCubeFace { cudaGraphicsCubeFacePositiveX = 0x00, cudaGraphicsCubeFaceNegativeX = 0x01, cudaGraphicsCubeFacePositiveY = 0x02, cudaGraphicsCubeFaceNegativeY = 0x03, cudaGraphicsCubeFacePositiveZ = 0x04, cudaGraphicsCubeFaceNegativeZ = 0x05 }; struct cudaFuncAttributes { size_t sharedSizeBytes; size_t constSizeBytes; size_t localSizeBytes; int maxThreadsPerBlock; int numRegs; int ptxVersion; int binaryVersion; int __cudaReserved[6]; }; enum cudaFuncCache { cudaFuncCachePreferNone = 0, cudaFuncCachePreferShared = 1, cudaFuncCachePreferL1 = 2 }; enum cudaComputeMode { cudaComputeModeDefault = 0, cudaComputeModeExclusive = 1, cudaComputeModeProhibited = 2 }; enum cudaLimit { cudaLimitStackSize = 0x00, cudaLimitPrintfFifoSize = 0x01, cudaLimitMallocHeapSize = 0x02 }; struct cudaDeviceProp { char name[256]; size_t totalGlobalMem; size_t sharedMemPerBlock; int regsPerBlock; int warpSize; size_t memPitch; int maxThreadsPerBlock; int maxThreadsDim[3]; int maxGridSize[3]; int clockRate; size_t totalConstMem; int major; int minor; size_t textureAlignment; int deviceOverlap; int multiProcessorCount; int kernelExecTimeoutEnabled; int integrated; int canMapHostMemory; int computeMode; int maxTexture1D; int maxTexture2D[2]; int maxTexture3D[3]; int maxTexture2DArray[3]; size_t surfaceAlignment; int concurrentKernels; int ECCEnabled; int pciBusID; int pciDeviceID; int tccDriver; int __cudaReserved[21]; }; # 768 "/usr/local/cuda/bin/../include/driver_types.h" 3 typedef enum cudaError cudaError_t; typedef struct CUstream_st *cudaStream_t; typedef struct CUevent_st *cudaEvent_t; typedef struct cudaGraphicsResource *cudaGraphicsResource_t; typedef struct CUuuid_st cudaUUID_t; # 44 "/usr/local/cuda/bin/../include/builtin_types.h" 2 3 # 1 "/usr/local/cuda/bin/../include/surface_types.h" 1 3 # 63 "/usr/local/cuda/bin/../include/surface_types.h" 3 enum cudaSurfaceBoundaryMode { cudaBoundaryModeZero = 0, cudaBoundaryModeClamp = 1, cudaBoundaryModeTrap = 2 }; enum cudaSurfaceFormatMode { cudaFormatModeForced = 0, cudaFormatModeAuto = 1 }; struct surfaceReference { struct cudaChannelFormatDesc channelDesc; }; # 45 "/usr/local/cuda/bin/../include/builtin_types.h" 2 3 # 1 "/usr/local/cuda/bin/../include/texture_types.h" 1 3 # 63 "/usr/local/cuda/bin/../include/texture_types.h" 3 enum cudaTextureAddressMode { cudaAddressModeWrap = 0, cudaAddressModeClamp = 1, cudaAddressModeMirror = 2, cudaAddressModeBorder = 3 }; enum cudaTextureFilterMode { cudaFilterModePoint = 0, cudaFilterModeLinear = 1 }; enum cudaTextureReadMode { cudaReadModeElementType = 0, cudaReadModeNormalizedFloat = 1 }; struct textureReference { int normalized; enum cudaTextureFilterMode filterMode; enum cudaTextureAddressMode addressMode[3]; struct cudaChannelFormatDesc channelDesc; int __cudaReserved[16]; }; # 46 "/usr/local/cuda/bin/../include/builtin_types.h" 2 3 # 1 "/usr/local/cuda/bin/../include/vector_types.h" 1 3 # 45 "/usr/local/cuda/bin/../include/vector_types.h" 3 # 1 "/usr/local/cuda/bin/../include/builtin_types.h" 1 3 # 46 "/usr/local/cuda/bin/../include/builtin_types.h" 3 # 1 "/usr/local/cuda/bin/../include/vector_types.h" 1 3 # 46 "/usr/local/cuda/bin/../include/builtin_types.h" 2 3 # 46 "/usr/local/cuda/bin/../include/vector_types.h" 2 3 # 1 "/usr/local/cuda/bin/../include/host_defines.h" 1 3 # 47 "/usr/local/cuda/bin/../include/vector_types.h" 2 3 # 75 "/usr/local/cuda/bin/../include/vector_types.h" 3 struct char1 { signed char x; }; struct uchar1 { unsigned char x; }; struct __attribute__((aligned(2))) char2 { signed char x, y; }; struct __attribute__((aligned(2))) uchar2 { unsigned char x, y; }; struct char3 { signed char x, y, z; }; struct uchar3 { unsigned char x, y, z; }; struct __attribute__((aligned(4))) char4 { signed char x, y, z, w; }; struct __attribute__((aligned(4))) uchar4 { unsigned char x, y, z, w; }; struct short1 { short x; }; struct ushort1 { unsigned short x; }; struct __attribute__((aligned(4))) short2 { short x, y; }; struct __attribute__((aligned(4))) ushort2 { unsigned short x, y; }; struct short3 { short x, y, z; }; struct ushort3 { unsigned short x, y, z; }; struct __attribute__((aligned(8))) short4 { short x; short y; short z; short w; }; struct __attribute__((aligned(8))) ushort4 { unsigned short x; unsigned short y; unsigned short z; unsigned short w; }; struct int1 { int x; }; struct uint1 { unsigned int x; }; struct __attribute__((aligned(8))) int2 { int x; int y; }; struct __attribute__((aligned(8))) uint2 { unsigned int x; unsigned int y; }; struct int3 { int x, y, z; }; struct uint3 { unsigned int x, y, z; }; struct __attribute__((aligned(16))) int4 { int x, y, z, w; }; struct __attribute__((aligned(16))) uint4 { unsigned int x, y, z, w; }; struct long1 { long int x; }; struct ulong1 { unsigned long x; }; # 229 "/usr/local/cuda/bin/../include/vector_types.h" 3 struct __attribute__((aligned(2*sizeof(long int)))) long2 { long int x, y; }; struct __attribute__((aligned(2*sizeof(unsigned long int)))) ulong2 { unsigned long int x, y; }; struct long3 { long int x, y, z; }; struct ulong3 { unsigned long int x, y, z; }; struct __attribute__((aligned(16))) long4 { long int x, y, z, w; }; struct __attribute__((aligned(16))) ulong4 { unsigned long int x, y, z, w; }; struct float1 { float x; }; struct __attribute__((aligned(8))) float2 { float x; float y; }; struct float3 { float x, y, z; }; struct __attribute__((aligned(16))) float4 { float x, y, z, w; }; struct longlong1 { long long int x; }; struct ulonglong1 { unsigned long long int x; }; struct __attribute__((aligned(16))) longlong2 { long long int x, y; }; struct __attribute__((aligned(16))) ulonglong2 { unsigned long long int x, y; }; struct longlong3 { long long int x, y, z; }; struct ulonglong3 { unsigned long long int x, y, z; }; struct __attribute__((aligned(16))) longlong4 { long long int x, y, z ,w; }; struct __attribute__((aligned(16))) ulonglong4 { unsigned long long int x, y, z, w; }; struct double1 { double x; }; struct __attribute__((aligned(16))) double2 { double x, y; }; struct double3 { double x, y, z; }; struct __attribute__((aligned(16))) double4 { double x, y, z, w; }; # 366 "/usr/local/cuda/bin/../include/vector_types.h" 3 typedef struct char1 char1; typedef struct uchar1 uchar1; typedef struct char2 char2; typedef struct uchar2 uchar2; typedef struct char3 char3; typedef struct uchar3 uchar3; typedef struct char4 char4; typedef struct uchar4 uchar4; typedef struct short1 short1; typedef struct ushort1 ushort1; typedef struct short2 short2; typedef struct ushort2 ushort2; typedef struct short3 short3; typedef struct ushort3 ushort3; typedef struct short4 short4; typedef struct ushort4 ushort4; typedef struct int1 int1; typedef struct uint1 uint1; typedef struct int2 int2; typedef struct uint2 uint2; typedef struct int3 int3; typedef struct uint3 uint3; typedef struct int4 int4; typedef struct uint4 uint4; typedef struct long1 long1; typedef struct ulong1 ulong1; typedef struct long2 long2; typedef struct ulong2 ulong2; typedef struct long3 long3; typedef struct ulong3 ulong3; typedef struct long4 long4; typedef struct ulong4 ulong4; typedef struct float1 float1; typedef struct float2 float2; typedef struct float3 float3; typedef struct float4 float4; typedef struct longlong1 longlong1; typedef struct ulonglong1 ulonglong1; typedef struct longlong2 longlong2; typedef struct ulonglong2 ulonglong2; typedef struct longlong3 longlong3; typedef struct ulonglong3 ulonglong3; typedef struct longlong4 longlong4; typedef struct ulonglong4 ulonglong4; typedef struct double1 double1; typedef struct double2 double2; typedef struct double3 double3; typedef struct double4 double4; # 469 "/usr/local/cuda/bin/../include/vector_types.h" 3 struct dim3 { unsigned int x, y, z; dim3(unsigned int vx = 1, unsigned int vy = 1, unsigned int vz = 1) : x(vx), y(vy), z(vz) {} dim3(uint3 v) : x(v.x), y(v.y), z(v.z) {} operator uint3(void) { uint3 t; t.x = x; t.y = y; t.z = z; return t; } }; typedef struct dim3 dim3; # 46 "/usr/local/cuda/bin/../include/builtin_types.h" 2 3 # 70 "/usr/local/cuda/bin/../include/crt/host_runtime.h" 2 3 # 1 "/usr/local/cuda/bin/../include/crt/storage_class.h" 1 3 # 71 "/usr/local/cuda/bin/../include/crt/host_runtime.h" 2 3 # 213 "/usr/lib/gcc/i686-linux-gnu/4.4.5/include/stddef.h" 2 3 # 96 "/usr/local/cuda/bin/../include/driver_types.h" # 466 "/usr/local/cuda/bin/../include/driver_types.h" # 478 "/usr/local/cuda/bin/../include/driver_types.h" # 491 "/usr/local/cuda/bin/../include/driver_types.h" # 497 "/usr/local/cuda/bin/../include/driver_types.h" # 510 "/usr/local/cuda/bin/../include/driver_types.h" # 523 "/usr/local/cuda/bin/../include/driver_types.h" # 535 "/usr/local/cuda/bin/../include/driver_types.h" # 546 "/usr/local/cuda/bin/../include/driver_types.h" # 564 "/usr/local/cuda/bin/../include/driver_types.h" # 570 "/usr/local/cuda/bin/../include/driver_types.h" # 579 "/usr/local/cuda/bin/../include/driver_types.h" # 590 "/usr/local/cuda/bin/../include/driver_types.h" # 603 "/usr/local/cuda/bin/../include/driver_types.h" # 656 "/usr/local/cuda/bin/../include/driver_types.h" # 667 "/usr/local/cuda/bin/../include/driver_types.h" # 678 "/usr/local/cuda/bin/../include/driver_types.h" # 689 "/usr/local/cuda/bin/../include/driver_types.h" # 768 "/usr/local/cuda/bin/../include/driver_types.h" # 774 "/usr/local/cuda/bin/../include/driver_types.h" # 780 "/usr/local/cuda/bin/../include/driver_types.h" # 786 "/usr/local/cuda/bin/../include/driver_types.h" # 792 "/usr/local/cuda/bin/../include/driver_types.h" # 63 "/usr/local/cuda/bin/../include/surface_types.h" # 74 "/usr/local/cuda/bin/../include/surface_types.h" # 84 "/usr/local/cuda/bin/../include/surface_types.h" # 63 "/usr/local/cuda/bin/../include/texture_types.h" # 75 "/usr/local/cuda/bin/../include/texture_types.h" # 85 "/usr/local/cuda/bin/../include/texture_types.h" # 95 "/usr/local/cuda/bin/../include/texture_types.h" # 75 "/usr/local/cuda/bin/../include/vector_types.h" # 81 "/usr/local/cuda/bin/../include/vector_types.h" # 87 "/usr/local/cuda/bin/../include/vector_types.h" # 93 "/usr/local/cuda/bin/../include/vector_types.h" # 99 "/usr/local/cuda/bin/../include/vector_types.h" # 105 "/usr/local/cuda/bin/../include/vector_types.h" # 111 "/usr/local/cuda/bin/../include/vector_types.h" # 117 "/usr/local/cuda/bin/../include/vector_types.h" # 123 "/usr/local/cuda/bin/../include/vector_types.h" # 129 "/usr/local/cuda/bin/../include/vector_types.h" # 135 "/usr/local/cuda/bin/../include/vector_types.h" # 141 "/usr/local/cuda/bin/../include/vector_types.h" # 147 "/usr/local/cuda/bin/../include/vector_types.h" # 153 "/usr/local/cuda/bin/../include/vector_types.h" # 159 "/usr/local/cuda/bin/../include/vector_types.h" # 162 "/usr/local/cuda/bin/../include/vector_types.h" # 165 "/usr/local/cuda/bin/../include/vector_types.h" # 171 "/usr/local/cuda/bin/../include/vector_types.h" # 177 "/usr/local/cuda/bin/../include/vector_types.h" # 180 "/usr/local/cuda/bin/../include/vector_types.h" # 183 "/usr/local/cuda/bin/../include/vector_types.h" # 189 "/usr/local/cuda/bin/../include/vector_types.h" # 195 "/usr/local/cuda/bin/../include/vector_types.h" # 201 "/usr/local/cuda/bin/../include/vector_types.h" # 207 "/usr/local/cuda/bin/../include/vector_types.h" # 213 "/usr/local/cuda/bin/../include/vector_types.h" # 229 "/usr/local/cuda/bin/../include/vector_types.h" # 235 "/usr/local/cuda/bin/../include/vector_types.h" # 243 "/usr/local/cuda/bin/../include/vector_types.h" # 249 "/usr/local/cuda/bin/../include/vector_types.h" # 255 "/usr/local/cuda/bin/../include/vector_types.h" # 261 "/usr/local/cuda/bin/../include/vector_types.h" # 267 "/usr/local/cuda/bin/../include/vector_types.h" # 273 "/usr/local/cuda/bin/../include/vector_types.h" # 276 "/usr/local/cuda/bin/../include/vector_types.h" # 282 "/usr/local/cuda/bin/../include/vector_types.h" # 288 "/usr/local/cuda/bin/../include/vector_types.h" # 294 "/usr/local/cuda/bin/../include/vector_types.h" # 300 "/usr/local/cuda/bin/../include/vector_types.h" # 306 "/usr/local/cuda/bin/../include/vector_types.h" # 312 "/usr/local/cuda/bin/../include/vector_types.h" # 318 "/usr/local/cuda/bin/../include/vector_types.h" # 324 "/usr/local/cuda/bin/../include/vector_types.h" # 330 "/usr/local/cuda/bin/../include/vector_types.h" # 336 "/usr/local/cuda/bin/../include/vector_types.h" # 342 "/usr/local/cuda/bin/../include/vector_types.h" # 348 "/usr/local/cuda/bin/../include/vector_types.h" # 354 "/usr/local/cuda/bin/../include/vector_types.h" # 366 "/usr/local/cuda/bin/../include/vector_types.h" # 368 "/usr/local/cuda/bin/../include/vector_types.h" # 370 "/usr/local/cuda/bin/../include/vector_types.h" # 372 "/usr/local/cuda/bin/../include/vector_types.h" # 374 "/usr/local/cuda/bin/../include/vector_types.h" # 376 "/usr/local/cuda/bin/../include/vector_types.h" # 378 "/usr/local/cuda/bin/../include/vector_types.h" # 380 "/usr/local/cuda/bin/../include/vector_types.h" # 382 "/usr/local/cuda/bin/../include/vector_types.h" # 384 "/usr/local/cuda/bin/../include/vector_types.h" # 386 "/usr/local/cuda/bin/../include/vector_types.h" # 388 "/usr/local/cuda/bin/../include/vector_types.h" # 390 "/usr/local/cuda/bin/../include/vector_types.h" # 392 "/usr/local/cuda/bin/../include/vector_types.h" # 394 "/usr/local/cuda/bin/../include/vector_types.h" # 396 "/usr/local/cuda/bin/../include/vector_types.h" # 398 "/usr/local/cuda/bin/../include/vector_types.h" # 400 "/usr/local/cuda/bin/../include/vector_types.h" # 402 "/usr/local/cuda/bin/../include/vector_types.h" # 404 "/usr/local/cuda/bin/../include/vector_types.h" # 406 "/usr/local/cuda/bin/../include/vector_types.h" # 408 "/usr/local/cuda/bin/../include/vector_types.h" # 410 "/usr/local/cuda/bin/../include/vector_types.h" # 412 "/usr/local/cuda/bin/../include/vector_types.h" # 414 "/usr/local/cuda/bin/../include/vector_types.h" # 416 "/usr/local/cuda/bin/../include/vector_types.h" # 418 "/usr/local/cuda/bin/../include/vector_types.h" # 420 "/usr/local/cuda/bin/../include/vector_types.h" # 422 "/usr/local/cuda/bin/../include/vector_types.h" # 424 "/usr/local/cuda/bin/../include/vector_types.h" # 426 "/usr/local/cuda/bin/../include/vector_types.h" # 428 "/usr/local/cuda/bin/../include/vector_types.h" # 430 "/usr/local/cuda/bin/../include/vector_types.h" # 432 "/usr/local/cuda/bin/../include/vector_types.h" # 434 "/usr/local/cuda/bin/../include/vector_types.h" # 436 "/usr/local/cuda/bin/../include/vector_types.h" # 438 "/usr/local/cuda/bin/../include/vector_types.h" # 440 "/usr/local/cuda/bin/../include/vector_types.h" # 442 "/usr/local/cuda/bin/../include/vector_types.h" # 444 "/usr/local/cuda/bin/../include/vector_types.h" # 446 "/usr/local/cuda/bin/../include/vector_types.h" # 448 "/usr/local/cuda/bin/../include/vector_types.h" # 450 "/usr/local/cuda/bin/../include/vector_types.h" # 452 "/usr/local/cuda/bin/../include/vector_types.h" # 454 "/usr/local/cuda/bin/../include/vector_types.h" # 456 "/usr/local/cuda/bin/../include/vector_types.h" # 458 "/usr/local/cuda/bin/../include/vector_types.h" # 460 "/usr/local/cuda/bin/../include/vector_types.h" # 469 "/usr/local/cuda/bin/../include/vector_types.h" # 480 "/usr/local/cuda/bin/../include/vector_types.h" # 115 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaThreadExit(); # 131 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaThreadSynchronize(); # 183 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaThreadSetLimit(cudaLimit, size_t); # 207 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaThreadGetLimit(size_t *, cudaLimit); # 237 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaThreadGetCacheConfig(cudaFuncCache *); # 278 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaThreadSetCacheConfig(cudaFuncCache); # 330 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGetLastError(); # 373 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaPeekAtLastError(); # 387 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" const char *cudaGetErrorString(cudaError_t); # 418 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGetDeviceCount(int *); # 536 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGetDeviceProperties(cudaDeviceProp *, int); # 555 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaChooseDevice(int *, const cudaDeviceProp *); # 579 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaSetDevice(int); # 597 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGetDevice(int *); # 626 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaSetValidDevices(int *, int); # 677 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaSetDeviceFlags(unsigned); # 703 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaStreamCreate(cudaStream_t *); # 719 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaStreamDestroy(cudaStream_t); # 753 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaStreamWaitEvent(cudaStream_t, cudaEvent_t, unsigned); # 771 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaStreamSynchronize(cudaStream_t); # 789 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaStreamQuery(cudaStream_t); # 821 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaEventCreate(cudaEvent_t *); # 852 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaEventCreateWithFlags(cudaEvent_t *, unsigned); # 885 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaEventRecord(cudaEvent_t, cudaStream_t = 0); # 914 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaEventQuery(cudaEvent_t); # 946 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaEventSynchronize(cudaEvent_t); # 966 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaEventDestroy(cudaEvent_t); # 1007 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaEventElapsedTime(float *, cudaEvent_t, cudaEvent_t); # 1046 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaConfigureCall(dim3, dim3, size_t = (0), cudaStream_t = 0); # 1073 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaSetupArgument(const void *, size_t, size_t); # 1119 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaFuncSetCacheConfig(const char *, cudaFuncCache); # 1154 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaLaunch(const char *); # 1187 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaFuncGetAttributes(cudaFuncAttributes *, const char *); # 1209 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaSetDoubleForDevice(double *); # 1231 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaSetDoubleForHost(double *); # 1263 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMalloc(void **, size_t); # 1292 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMallocHost(void **, size_t); # 1331 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMallocPitch(void **, size_t *, size_t, size_t); # 1370 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMallocArray(cudaArray **, const cudaChannelFormatDesc *, size_t, size_t = (0), unsigned = (0)); # 1394 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaFree(void *); # 1414 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaFreeHost(void *); # 1436 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaFreeArray(cudaArray *); # 1495 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaHostAlloc(void **, size_t, unsigned); # 1522 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaHostGetDevicePointer(void **, void *, unsigned); # 1541 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaHostGetFlags(unsigned *, void *); # 1576 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMalloc3D(cudaPitchedPtr *, cudaExtent); # 1626 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMalloc3DArray(cudaArray **, const cudaChannelFormatDesc *, cudaExtent, unsigned = (0)); # 1723 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpy3D(const cudaMemcpy3DParms *); # 1828 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpy3DAsync(const cudaMemcpy3DParms *, cudaStream_t = 0); # 1847 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemGetInfo(size_t *, size_t *); # 1880 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpy(void *, const void *, size_t, cudaMemcpyKind); # 1913 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpyToArray(cudaArray *, size_t, size_t, const void *, size_t, cudaMemcpyKind); # 1946 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpyFromArray(void *, const cudaArray *, size_t, size_t, size_t, cudaMemcpyKind); # 1981 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpyArrayToArray(cudaArray *, size_t, size_t, const cudaArray *, size_t, size_t, size_t, cudaMemcpyKind = cudaMemcpyDeviceToDevice); # 2023 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpy2D(void *, size_t, const void *, size_t, size_t, size_t, cudaMemcpyKind); # 2064 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpy2DToArray(cudaArray *, size_t, size_t, const void *, size_t, size_t, size_t, cudaMemcpyKind); # 2105 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpy2DFromArray(void *, size_t, const cudaArray *, size_t, size_t, size_t, size_t, cudaMemcpyKind); # 2144 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpy2DArrayToArray(cudaArray *, size_t, size_t, const cudaArray *, size_t, size_t, size_t, size_t, cudaMemcpyKind = cudaMemcpyDeviceToDevice); # 2179 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpyToSymbol(const char *, const void *, size_t, size_t = (0), cudaMemcpyKind = cudaMemcpyHostToDevice); # 2213 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpyFromSymbol(void *, const char *, size_t, size_t = (0), cudaMemcpyKind = cudaMemcpyDeviceToHost); # 2256 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpyAsync(void *, const void *, size_t, cudaMemcpyKind, cudaStream_t = 0); # 2298 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpyToArrayAsync(cudaArray *, size_t, size_t, const void *, size_t, cudaMemcpyKind, cudaStream_t = 0); # 2340 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpyFromArrayAsync(void *, const cudaArray *, size_t, size_t, size_t, cudaMemcpyKind, cudaStream_t = 0); # 2391 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpy2DAsync(void *, size_t, const void *, size_t, size_t, size_t, cudaMemcpyKind, cudaStream_t = 0); # 2441 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpy2DToArrayAsync(cudaArray *, size_t, size_t, const void *, size_t, size_t, size_t, cudaMemcpyKind, cudaStream_t = 0); # 2491 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpy2DFromArrayAsync(void *, size_t, const cudaArray *, size_t, size_t, size_t, size_t, cudaMemcpyKind, cudaStream_t = 0); # 2535 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpyToSymbolAsync(const char *, const void *, size_t, size_t, cudaMemcpyKind, cudaStream_t = 0); # 2578 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemcpyFromSymbolAsync(void *, const char *, size_t, size_t, cudaMemcpyKind, cudaStream_t = 0); # 2600 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemset(void *, int, size_t); # 2626 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemset2D(void *, size_t, int, size_t, size_t); # 2665 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemset3D(cudaPitchedPtr, int, cudaExtent); # 2692 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemsetAsync(void *, int, size_t, cudaStream_t = 0); # 2724 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemset2DAsync(void *, size_t, int, size_t, size_t, cudaStream_t = 0); # 2769 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaMemset3DAsync(cudaPitchedPtr, int, cudaExtent, cudaStream_t = 0); # 2796 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGetSymbolAddress(void **, const char *); # 2819 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGetSymbolSize(size_t *, const char *); # 2865 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGraphicsUnregisterResource(cudaGraphicsResource_t); # 2897 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t, unsigned); # 2932 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGraphicsMapResources(int, cudaGraphicsResource_t *, cudaStream_t = 0); # 2963 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGraphicsUnmapResources(int, cudaGraphicsResource_t *, cudaStream_t = 0); # 2992 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGraphicsResourceGetMappedPointer(void **, size_t *, cudaGraphicsResource_t); # 3026 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGraphicsSubResourceGetMappedArray(cudaArray **, cudaGraphicsResource_t, unsigned, unsigned); # 3059 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGetChannelDesc(cudaChannelFormatDesc *, const cudaArray *); # 3094 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaChannelFormatDesc cudaCreateChannelDesc(int, int, int, int, cudaChannelFormatKind); # 3136 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaBindTexture(size_t *, const textureReference *, const void *, const cudaChannelFormatDesc *, size_t = (((2147483647) * 2U) + 1U)); # 3179 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaBindTexture2D(size_t *, const textureReference *, const void *, const cudaChannelFormatDesc *, size_t, size_t, size_t); # 3207 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaBindTextureToArray(const textureReference *, const cudaArray *, const cudaChannelFormatDesc *); # 3228 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaUnbindTexture(const textureReference *); # 3253 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGetTextureAlignmentOffset(size_t *, const textureReference *); # 3277 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGetTextureReference(const textureReference **, const char *); # 3310 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaBindSurfaceToArray(const surfaceReference *, const cudaArray *, const cudaChannelFormatDesc *); # 3328 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGetSurfaceReference(const surfaceReference **, const char *); # 3355 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaDriverGetVersion(int *); # 3372 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaRuntimeGetVersion(int *); # 3377 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" extern "C" cudaError_t cudaGetExportTable(const void **, const cudaUUID_t *); # 93 "/usr/local/cuda/bin/../include/channel_descriptor.h" template< class T> inline cudaChannelFormatDesc cudaCreateChannelDesc() # 94 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 95 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(0, 0, 0, 0, cudaChannelFormatKindNone); # 96 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 98 "/usr/local/cuda/bin/../include/channel_descriptor.h" static inline cudaChannelFormatDesc cudaCreateChannelDescHalf() # 99 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 100 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned short)) * 8); # 102 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindFloat); # 103 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 105 "/usr/local/cuda/bin/../include/channel_descriptor.h" static inline cudaChannelFormatDesc cudaCreateChannelDescHalf1() # 106 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 107 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned short)) * 8); # 109 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindFloat); # 110 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 112 "/usr/local/cuda/bin/../include/channel_descriptor.h" static inline cudaChannelFormatDesc cudaCreateChannelDescHalf2() # 113 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 114 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned short)) * 8); # 116 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindFloat); # 117 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 119 "/usr/local/cuda/bin/../include/channel_descriptor.h" static inline cudaChannelFormatDesc cudaCreateChannelDescHalf4() # 120 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 121 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned short)) * 8); # 123 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindFloat); # 124 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 126 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< char> () # 127 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 128 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(char)) * 8); # 133 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned); # 135 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 137 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< signed char> () # 138 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 139 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(signed char)) * 8); # 141 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindSigned); # 142 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 144 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< unsigned char> () # 145 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 146 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned char)) * 8); # 148 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned); # 149 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 151 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< char1> () # 152 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 153 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(signed char)) * 8); # 155 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindSigned); # 156 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 158 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< uchar1> () # 159 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 160 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned char)) * 8); # 162 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned); # 163 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 165 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< char2> () # 166 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 167 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(signed char)) * 8); # 169 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindSigned); # 170 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 172 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< uchar2> () # 173 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 174 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned char)) * 8); # 176 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindUnsigned); # 177 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 179 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< char4> () # 180 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 181 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(signed char)) * 8); # 183 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindSigned); # 184 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 186 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< uchar4> () # 187 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 188 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned char)) * 8); # 190 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindUnsigned); # 191 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 193 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< short> () # 194 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 195 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(short)) * 8); # 197 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindSigned); # 198 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 200 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< unsigned short> () # 201 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 202 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned short)) * 8); # 204 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned); # 205 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 207 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< short1> () # 208 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 209 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(short)) * 8); # 211 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindSigned); # 212 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 214 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< ushort1> () # 215 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 216 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned short)) * 8); # 218 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned); # 219 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 221 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< short2> () # 222 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 223 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(short)) * 8); # 225 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindSigned); # 226 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 228 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< ushort2> () # 229 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 230 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned short)) * 8); # 232 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindUnsigned); # 233 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 235 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< short4> () # 236 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 237 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(short)) * 8); # 239 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindSigned); # 240 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 242 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< ushort4> () # 243 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 244 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned short)) * 8); # 246 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindUnsigned); # 247 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 249 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< int> () # 250 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 251 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(int)) * 8); # 253 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindSigned); # 254 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 256 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< unsigned> () # 257 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 258 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned)) * 8); # 260 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned); # 261 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 263 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< int1> () # 264 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 265 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(int)) * 8); # 267 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindSigned); # 268 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 270 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< uint1> () # 271 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 272 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned)) * 8); # 274 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindUnsigned); # 275 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 277 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< int2> () # 278 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 279 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(int)) * 8); # 281 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindSigned); # 282 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 284 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< uint2> () # 285 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 286 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned)) * 8); # 288 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindUnsigned); # 289 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 291 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< int4> () # 292 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 293 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(int)) * 8); # 295 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindSigned); # 296 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 298 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< uint4> () # 299 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 300 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(unsigned)) * 8); # 302 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindUnsigned); # 303 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 365 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< float> () # 366 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 367 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(float)) * 8); # 369 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindFloat); # 370 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 372 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< float1> () # 373 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 374 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(float)) * 8); # 376 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, 0, 0, 0, cudaChannelFormatKindFloat); # 377 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 379 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< float2> () # 380 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 381 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(float)) * 8); # 383 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, 0, 0, cudaChannelFormatKindFloat); # 384 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 386 "/usr/local/cuda/bin/../include/channel_descriptor.h" template<> inline cudaChannelFormatDesc cudaCreateChannelDesc< float4> () # 387 "/usr/local/cuda/bin/../include/channel_descriptor.h" { # 388 "/usr/local/cuda/bin/../include/channel_descriptor.h" int e = (((int)sizeof(float)) * 8); # 390 "/usr/local/cuda/bin/../include/channel_descriptor.h" return cudaCreateChannelDesc(e, e, e, e, cudaChannelFormatKindFloat); # 391 "/usr/local/cuda/bin/../include/channel_descriptor.h" } # 65 "/usr/local/cuda/bin/../include/driver_functions.h" static inline cudaPitchedPtr make_cudaPitchedPtr(void *d, size_t p, size_t xsz, size_t ysz) # 66 "/usr/local/cuda/bin/../include/driver_functions.h" { # 67 "/usr/local/cuda/bin/../include/driver_functions.h" cudaPitchedPtr s; # 69 "/usr/local/cuda/bin/../include/driver_functions.h" (s.ptr) = d; # 70 "/usr/local/cuda/bin/../include/driver_functions.h" (s.pitch) = p; # 71 "/usr/local/cuda/bin/../include/driver_functions.h" (s.xsize) = xsz; # 72 "/usr/local/cuda/bin/../include/driver_functions.h" (s.ysize) = ysz; # 74 "/usr/local/cuda/bin/../include/driver_functions.h" return s; # 75 "/usr/local/cuda/bin/../include/driver_functions.h" } # 92 "/usr/local/cuda/bin/../include/driver_functions.h" static inline cudaPos make_cudaPos(size_t x, size_t y, size_t z) # 93 "/usr/local/cuda/bin/../include/driver_functions.h" { # 94 "/usr/local/cuda/bin/../include/driver_functions.h" cudaPos p; # 96 "/usr/local/cuda/bin/../include/driver_functions.h" (p.x) = x; # 97 "/usr/local/cuda/bin/../include/driver_functions.h" (p.y) = y; # 98 "/usr/local/cuda/bin/../include/driver_functions.h" (p.z) = z; # 100 "/usr/local/cuda/bin/../include/driver_functions.h" return p; # 101 "/usr/local/cuda/bin/../include/driver_functions.h" } # 118 "/usr/local/cuda/bin/../include/driver_functions.h" static inline cudaExtent make_cudaExtent(size_t w, size_t h, size_t d) # 119 "/usr/local/cuda/bin/../include/driver_functions.h" { # 120 "/usr/local/cuda/bin/../include/driver_functions.h" cudaExtent e; # 122 "/usr/local/cuda/bin/../include/driver_functions.h" (e.width) = w; # 123 "/usr/local/cuda/bin/../include/driver_functions.h" (e.height) = h; # 124 "/usr/local/cuda/bin/../include/driver_functions.h" (e.depth) = d; # 126 "/usr/local/cuda/bin/../include/driver_functions.h" return e; # 127 "/usr/local/cuda/bin/../include/driver_functions.h" } # 55 "/usr/local/cuda/bin/../include/vector_functions.h" static inline char1 make_char1(signed char x) # 56 "/usr/local/cuda/bin/../include/vector_functions.h" { # 57 "/usr/local/cuda/bin/../include/vector_functions.h" char1 t; (t.x) = x; return t; # 58 "/usr/local/cuda/bin/../include/vector_functions.h" } # 60 "/usr/local/cuda/bin/../include/vector_functions.h" static inline uchar1 make_uchar1(unsigned char x) # 61 "/usr/local/cuda/bin/../include/vector_functions.h" { # 62 "/usr/local/cuda/bin/../include/vector_functions.h" uchar1 t; (t.x) = x; return t; # 63 "/usr/local/cuda/bin/../include/vector_functions.h" } # 65 "/usr/local/cuda/bin/../include/vector_functions.h" static inline char2 make_char2(signed char x, signed char y) # 66 "/usr/local/cuda/bin/../include/vector_functions.h" { # 67 "/usr/local/cuda/bin/../include/vector_functions.h" char2 t; (t.x) = x; (t.y) = y; return t; # 68 "/usr/local/cuda/bin/../include/vector_functions.h" } # 70 "/usr/local/cuda/bin/../include/vector_functions.h" static inline uchar2 make_uchar2(unsigned char x, unsigned char y) # 71 "/usr/local/cuda/bin/../include/vector_functions.h" { # 72 "/usr/local/cuda/bin/../include/vector_functions.h" uchar2 t; (t.x) = x; (t.y) = y; return t; # 73 "/usr/local/cuda/bin/../include/vector_functions.h" } # 75 "/usr/local/cuda/bin/../include/vector_functions.h" static inline char3 make_char3(signed char x, signed char y, signed char z) # 76 "/usr/local/cuda/bin/../include/vector_functions.h" { # 77 "/usr/local/cuda/bin/../include/vector_functions.h" char3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t; # 78 "/usr/local/cuda/bin/../include/vector_functions.h" } # 80 "/usr/local/cuda/bin/../include/vector_functions.h" static inline uchar3 make_uchar3(unsigned char x, unsigned char y, unsigned char z) # 81 "/usr/local/cuda/bin/../include/vector_functions.h" { # 82 "/usr/local/cuda/bin/../include/vector_functions.h" uchar3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t; # 83 "/usr/local/cuda/bin/../include/vector_functions.h" } # 85 "/usr/local/cuda/bin/../include/vector_functions.h" static inline char4 make_char4(signed char x, signed char y, signed char z, signed char w) # 86 "/usr/local/cuda/bin/../include/vector_functions.h" { # 87 "/usr/local/cuda/bin/../include/vector_functions.h" char4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t; # 88 "/usr/local/cuda/bin/../include/vector_functions.h" } # 90 "/usr/local/cuda/bin/../include/vector_functions.h" static inline uchar4 make_uchar4(unsigned char x, unsigned char y, unsigned char z, unsigned char w) # 91 "/usr/local/cuda/bin/../include/vector_functions.h" { # 92 "/usr/local/cuda/bin/../include/vector_functions.h" uchar4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t; # 93 "/usr/local/cuda/bin/../include/vector_functions.h" } # 95 "/usr/local/cuda/bin/../include/vector_functions.h" static inline short1 make_short1(short x) # 96 "/usr/local/cuda/bin/../include/vector_functions.h" { # 97 "/usr/local/cuda/bin/../include/vector_functions.h" short1 t; (t.x) = x; return t; # 98 "/usr/local/cuda/bin/../include/vector_functions.h" } # 100 "/usr/local/cuda/bin/../include/vector_functions.h" static inline ushort1 make_ushort1(unsigned short x) # 101 "/usr/local/cuda/bin/../include/vector_functions.h" { # 102 "/usr/local/cuda/bin/../include/vector_functions.h" ushort1 t; (t.x) = x; return t; # 103 "/usr/local/cuda/bin/../include/vector_functions.h" } # 105 "/usr/local/cuda/bin/../include/vector_functions.h" static inline short2 make_short2(short x, short y) # 106 "/usr/local/cuda/bin/../include/vector_functions.h" { # 107 "/usr/local/cuda/bin/../include/vector_functions.h" short2 t; (t.x) = x; (t.y) = y; return t; # 108 "/usr/local/cuda/bin/../include/vector_functions.h" } # 110 "/usr/local/cuda/bin/../include/vector_functions.h" static inline ushort2 make_ushort2(unsigned short x, unsigned short y) # 111 "/usr/local/cuda/bin/../include/vector_functions.h" { # 112 "/usr/local/cuda/bin/../include/vector_functions.h" ushort2 t; (t.x) = x; (t.y) = y; return t; # 113 "/usr/local/cuda/bin/../include/vector_functions.h" } # 115 "/usr/local/cuda/bin/../include/vector_functions.h" static inline short3 make_short3(short x, short y, short z) # 116 "/usr/local/cuda/bin/../include/vector_functions.h" { # 117 "/usr/local/cuda/bin/../include/vector_functions.h" short3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t; # 118 "/usr/local/cuda/bin/../include/vector_functions.h" } # 120 "/usr/local/cuda/bin/../include/vector_functions.h" static inline ushort3 make_ushort3(unsigned short x, unsigned short y, unsigned short z) # 121 "/usr/local/cuda/bin/../include/vector_functions.h" { # 122 "/usr/local/cuda/bin/../include/vector_functions.h" ushort3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t; # 123 "/usr/local/cuda/bin/../include/vector_functions.h" } # 125 "/usr/local/cuda/bin/../include/vector_functions.h" static inline short4 make_short4(short x, short y, short z, short w) # 126 "/usr/local/cuda/bin/../include/vector_functions.h" { # 127 "/usr/local/cuda/bin/../include/vector_functions.h" short4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t; # 128 "/usr/local/cuda/bin/../include/vector_functions.h" } # 130 "/usr/local/cuda/bin/../include/vector_functions.h" static inline ushort4 make_ushort4(unsigned short x, unsigned short y, unsigned short z, unsigned short w) # 131 "/usr/local/cuda/bin/../include/vector_functions.h" { # 132 "/usr/local/cuda/bin/../include/vector_functions.h" ushort4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t; # 133 "/usr/local/cuda/bin/../include/vector_functions.h" } # 135 "/usr/local/cuda/bin/../include/vector_functions.h" static inline int1 make_int1(int x) # 136 "/usr/local/cuda/bin/../include/vector_functions.h" { # 137 "/usr/local/cuda/bin/../include/vector_functions.h" int1 t; (t.x) = x; return t; # 138 "/usr/local/cuda/bin/../include/vector_functions.h" } # 140 "/usr/local/cuda/bin/../include/vector_functions.h" static inline uint1 make_uint1(unsigned x) # 141 "/usr/local/cuda/bin/../include/vector_functions.h" { # 142 "/usr/local/cuda/bin/../include/vector_functions.h" uint1 t; (t.x) = x; return t; # 143 "/usr/local/cuda/bin/../include/vector_functions.h" } # 145 "/usr/local/cuda/bin/../include/vector_functions.h" static inline int2 make_int2(int x, int y) # 146 "/usr/local/cuda/bin/../include/vector_functions.h" { # 147 "/usr/local/cuda/bin/../include/vector_functions.h" int2 t; (t.x) = x; (t.y) = y; return t; # 148 "/usr/local/cuda/bin/../include/vector_functions.h" } # 150 "/usr/local/cuda/bin/../include/vector_functions.h" static inline uint2 make_uint2(unsigned x, unsigned y) # 151 "/usr/local/cuda/bin/../include/vector_functions.h" { # 152 "/usr/local/cuda/bin/../include/vector_functions.h" uint2 t; (t.x) = x; (t.y) = y; return t; # 153 "/usr/local/cuda/bin/../include/vector_functions.h" } # 155 "/usr/local/cuda/bin/../include/vector_functions.h" static inline int3 make_int3(int x, int y, int z) # 156 "/usr/local/cuda/bin/../include/vector_functions.h" { # 157 "/usr/local/cuda/bin/../include/vector_functions.h" int3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t; # 158 "/usr/local/cuda/bin/../include/vector_functions.h" } # 160 "/usr/local/cuda/bin/../include/vector_functions.h" static inline uint3 make_uint3(unsigned x, unsigned y, unsigned z) # 161 "/usr/local/cuda/bin/../include/vector_functions.h" { # 162 "/usr/local/cuda/bin/../include/vector_functions.h" uint3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t; # 163 "/usr/local/cuda/bin/../include/vector_functions.h" } # 165 "/usr/local/cuda/bin/../include/vector_functions.h" static inline int4 make_int4(int x, int y, int z, int w) # 166 "/usr/local/cuda/bin/../include/vector_functions.h" { # 167 "/usr/local/cuda/bin/../include/vector_functions.h" int4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t; # 168 "/usr/local/cuda/bin/../include/vector_functions.h" } # 170 "/usr/local/cuda/bin/../include/vector_functions.h" static inline uint4 make_uint4(unsigned x, unsigned y, unsigned z, unsigned w) # 171 "/usr/local/cuda/bin/../include/vector_functions.h" { # 172 "/usr/local/cuda/bin/../include/vector_functions.h" uint4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t; # 173 "/usr/local/cuda/bin/../include/vector_functions.h" } # 175 "/usr/local/cuda/bin/../include/vector_functions.h" static inline long1 make_long1(long x) # 176 "/usr/local/cuda/bin/../include/vector_functions.h" { # 177 "/usr/local/cuda/bin/../include/vector_functions.h" long1 t; (t.x) = x; return t; # 178 "/usr/local/cuda/bin/../include/vector_functions.h" } # 180 "/usr/local/cuda/bin/../include/vector_functions.h" static inline ulong1 make_ulong1(unsigned long x) # 181 "/usr/local/cuda/bin/../include/vector_functions.h" { # 182 "/usr/local/cuda/bin/../include/vector_functions.h" ulong1 t; (t.x) = x; return t; # 183 "/usr/local/cuda/bin/../include/vector_functions.h" } # 185 "/usr/local/cuda/bin/../include/vector_functions.h" static inline long2 make_long2(long x, long y) # 186 "/usr/local/cuda/bin/../include/vector_functions.h" { # 187 "/usr/local/cuda/bin/../include/vector_functions.h" long2 t; (t.x) = x; (t.y) = y; return t; # 188 "/usr/local/cuda/bin/../include/vector_functions.h" } # 190 "/usr/local/cuda/bin/../include/vector_functions.h" static inline ulong2 make_ulong2(unsigned long x, unsigned long y) # 191 "/usr/local/cuda/bin/../include/vector_functions.h" { # 192 "/usr/local/cuda/bin/../include/vector_functions.h" ulong2 t; (t.x) = x; (t.y) = y; return t; # 193 "/usr/local/cuda/bin/../include/vector_functions.h" } # 195 "/usr/local/cuda/bin/../include/vector_functions.h" static inline long3 make_long3(long x, long y, long z) # 196 "/usr/local/cuda/bin/../include/vector_functions.h" { # 197 "/usr/local/cuda/bin/../include/vector_functions.h" long3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t; # 198 "/usr/local/cuda/bin/../include/vector_functions.h" } # 200 "/usr/local/cuda/bin/../include/vector_functions.h" static inline ulong3 make_ulong3(unsigned long x, unsigned long y, unsigned long z) # 201 "/usr/local/cuda/bin/../include/vector_functions.h" { # 202 "/usr/local/cuda/bin/../include/vector_functions.h" ulong3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t; # 203 "/usr/local/cuda/bin/../include/vector_functions.h" } # 205 "/usr/local/cuda/bin/../include/vector_functions.h" static inline long4 make_long4(long x, long y, long z, long w) # 206 "/usr/local/cuda/bin/../include/vector_functions.h" { # 207 "/usr/local/cuda/bin/../include/vector_functions.h" long4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t; # 208 "/usr/local/cuda/bin/../include/vector_functions.h" } # 210 "/usr/local/cuda/bin/../include/vector_functions.h" static inline ulong4 make_ulong4(unsigned long x, unsigned long y, unsigned long z, unsigned long w) # 211 "/usr/local/cuda/bin/../include/vector_functions.h" { # 212 "/usr/local/cuda/bin/../include/vector_functions.h" ulong4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t; # 213 "/usr/local/cuda/bin/../include/vector_functions.h" } # 215 "/usr/local/cuda/bin/../include/vector_functions.h" static inline float1 make_float1(float x) # 216 "/usr/local/cuda/bin/../include/vector_functions.h" { # 217 "/usr/local/cuda/bin/../include/vector_functions.h" float1 t; (t.x) = x; return t; # 218 "/usr/local/cuda/bin/../include/vector_functions.h" } # 220 "/usr/local/cuda/bin/../include/vector_functions.h" static inline float2 make_float2(float x, float y) # 221 "/usr/local/cuda/bin/../include/vector_functions.h" { # 222 "/usr/local/cuda/bin/../include/vector_functions.h" float2 t; (t.x) = x; (t.y) = y; return t; # 223 "/usr/local/cuda/bin/../include/vector_functions.h" } # 225 "/usr/local/cuda/bin/../include/vector_functions.h" static inline float3 make_float3(float x, float y, float z) # 226 "/usr/local/cuda/bin/../include/vector_functions.h" { # 227 "/usr/local/cuda/bin/../include/vector_functions.h" float3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t; # 228 "/usr/local/cuda/bin/../include/vector_functions.h" } # 230 "/usr/local/cuda/bin/../include/vector_functions.h" static inline float4 make_float4(float x, float y, float z, float w) # 231 "/usr/local/cuda/bin/../include/vector_functions.h" { # 232 "/usr/local/cuda/bin/../include/vector_functions.h" float4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t; # 233 "/usr/local/cuda/bin/../include/vector_functions.h" } # 235 "/usr/local/cuda/bin/../include/vector_functions.h" static inline longlong1 make_longlong1(long long x) # 236 "/usr/local/cuda/bin/../include/vector_functions.h" { # 237 "/usr/local/cuda/bin/../include/vector_functions.h" longlong1 t; (t.x) = x; return t; # 238 "/usr/local/cuda/bin/../include/vector_functions.h" } # 240 "/usr/local/cuda/bin/../include/vector_functions.h" static inline ulonglong1 make_ulonglong1(unsigned long long x) # 241 "/usr/local/cuda/bin/../include/vector_functions.h" { # 242 "/usr/local/cuda/bin/../include/vector_functions.h" ulonglong1 t; (t.x) = x; return t; # 243 "/usr/local/cuda/bin/../include/vector_functions.h" } # 245 "/usr/local/cuda/bin/../include/vector_functions.h" static inline longlong2 make_longlong2(long long x, long long y) # 246 "/usr/local/cuda/bin/../include/vector_functions.h" { # 247 "/usr/local/cuda/bin/../include/vector_functions.h" longlong2 t; (t.x) = x; (t.y) = y; return t; # 248 "/usr/local/cuda/bin/../include/vector_functions.h" } # 250 "/usr/local/cuda/bin/../include/vector_functions.h" static inline ulonglong2 make_ulonglong2(unsigned long long x, unsigned long long y) # 251 "/usr/local/cuda/bin/../include/vector_functions.h" { # 252 "/usr/local/cuda/bin/../include/vector_functions.h" ulonglong2 t; (t.x) = x; (t.y) = y; return t; # 253 "/usr/local/cuda/bin/../include/vector_functions.h" } # 255 "/usr/local/cuda/bin/../include/vector_functions.h" static inline longlong3 make_longlong3(long long x, long long y, long long z) # 256 "/usr/local/cuda/bin/../include/vector_functions.h" { # 257 "/usr/local/cuda/bin/../include/vector_functions.h" longlong3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t; # 258 "/usr/local/cuda/bin/../include/vector_functions.h" } # 260 "/usr/local/cuda/bin/../include/vector_functions.h" static inline ulonglong3 make_ulonglong3(unsigned long long x, unsigned long long y, unsigned long long z) # 261 "/usr/local/cuda/bin/../include/vector_functions.h" { # 262 "/usr/local/cuda/bin/../include/vector_functions.h" ulonglong3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t; # 263 "/usr/local/cuda/bin/../include/vector_functions.h" } # 265 "/usr/local/cuda/bin/../include/vector_functions.h" static inline longlong4 make_longlong4(long long x, long long y, long long z, long long w) # 266 "/usr/local/cuda/bin/../include/vector_functions.h" { # 267 "/usr/local/cuda/bin/../include/vector_functions.h" longlong4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t; # 268 "/usr/local/cuda/bin/../include/vector_functions.h" } # 270 "/usr/local/cuda/bin/../include/vector_functions.h" static inline ulonglong4 make_ulonglong4(unsigned long long x, unsigned long long y, unsigned long long z, unsigned long long w) # 271 "/usr/local/cuda/bin/../include/vector_functions.h" { # 272 "/usr/local/cuda/bin/../include/vector_functions.h" ulonglong4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t; # 273 "/usr/local/cuda/bin/../include/vector_functions.h" } # 275 "/usr/local/cuda/bin/../include/vector_functions.h" static inline double1 make_double1(double x) # 276 "/usr/local/cuda/bin/../include/vector_functions.h" { # 277 "/usr/local/cuda/bin/../include/vector_functions.h" double1 t; (t.x) = x; return t; # 278 "/usr/local/cuda/bin/../include/vector_functions.h" } # 280 "/usr/local/cuda/bin/../include/vector_functions.h" static inline double2 make_double2(double x, double y) # 281 "/usr/local/cuda/bin/../include/vector_functions.h" { # 282 "/usr/local/cuda/bin/../include/vector_functions.h" double2 t; (t.x) = x; (t.y) = y; return t; # 283 "/usr/local/cuda/bin/../include/vector_functions.h" } # 285 "/usr/local/cuda/bin/../include/vector_functions.h" static inline double3 make_double3(double x, double y, double z) # 286 "/usr/local/cuda/bin/../include/vector_functions.h" { # 287 "/usr/local/cuda/bin/../include/vector_functions.h" double3 t; (t.x) = x; (t.y) = y; (t.z) = z; return t; # 288 "/usr/local/cuda/bin/../include/vector_functions.h" } # 290 "/usr/local/cuda/bin/../include/vector_functions.h" static inline double4 make_double4(double x, double y, double z, double w) # 291 "/usr/local/cuda/bin/../include/vector_functions.h" { # 292 "/usr/local/cuda/bin/../include/vector_functions.h" double4 t; (t.x) = x; (t.y) = y; (t.z) = z; (t.w) = w; return t; # 293 "/usr/local/cuda/bin/../include/vector_functions.h" } # 44 "/usr/include/string.h" 3 extern "C" __attribute__((weak)) void *memcpy(void *__restrict__, const void *__restrict__, size_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 49 "/usr/include/string.h" 3 extern "C" void *memmove(void *, const void *, size_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 57 "/usr/include/string.h" 3 extern "C" void *memccpy(void *__restrict__, const void *__restrict__, int, size_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 65 "/usr/include/string.h" 3 extern "C" __attribute__((weak)) void *memset(void *, int, size_t) throw() __attribute__((nonnull(1))); # 68 "/usr/include/string.h" 3 extern "C" int memcmp(const void *, const void *, size_t) throw() __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 75 "/usr/include/string.h" 3 extern void *memchr(void *, int, size_t) throw() __asm__("memchr") __attribute__((__pure__)) __attribute__((nonnull(1))); # 77 "/usr/include/string.h" 3 extern const void *memchr(const void *, int, size_t) throw() __asm__("memchr") __attribute__((__pure__)) __attribute__((nonnull(1))); # 104 "/usr/include/string.h" 3 void *rawmemchr(void *, int) throw() __asm__("rawmemchr") __attribute__((__pure__)) __attribute__((nonnull(1))); # 106 "/usr/include/string.h" 3 const void *rawmemchr(const void *, int) throw() __asm__("rawmemchr") __attribute__((__pure__)) __attribute__((nonnull(1))); # 115 "/usr/include/string.h" 3 void *memrchr(void *, int, size_t) throw() __asm__("memrchr") __attribute__((__pure__)) __attribute__((nonnull(1))); # 117 "/usr/include/string.h" 3 const void *memrchr(const void *, int, size_t) throw() __asm__("memrchr") __attribute__((__pure__)) __attribute__((nonnull(1))); # 128 "/usr/include/string.h" 3 extern "C" char *strcpy(char *__restrict__, const char *__restrict__) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 131 "/usr/include/string.h" 3 extern "C" char *strncpy(char *__restrict__, const char *__restrict__, size_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 136 "/usr/include/string.h" 3 extern "C" char *strcat(char *__restrict__, const char *__restrict__) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 139 "/usr/include/string.h" 3 extern "C" char *strncat(char *__restrict__, const char *__restrict__, size_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 143 "/usr/include/string.h" 3 extern "C" int strcmp(const char *, const char *) throw() __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 146 "/usr/include/string.h" 3 extern "C" int strncmp(const char *, const char *, size_t) throw() __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 150 "/usr/include/string.h" 3 extern "C" int strcoll(const char *, const char *) throw() __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 153 "/usr/include/string.h" 3 extern "C" size_t strxfrm(char *__restrict__, const char *__restrict__, size_t) throw() __attribute__((nonnull(2))); # 40 "/usr/include/xlocale.h" 3 extern "C" { typedef # 28 "/usr/include/xlocale.h" 3 struct __locale_struct { # 31 "/usr/include/xlocale.h" 3 struct __locale_data *__locales[13]; # 34 "/usr/include/xlocale.h" 3 const unsigned short *__ctype_b; # 35 "/usr/include/xlocale.h" 3 const int *__ctype_tolower; # 36 "/usr/include/xlocale.h" 3 const int *__ctype_toupper; # 39 "/usr/include/xlocale.h" 3 const char *__names[13]; # 40 "/usr/include/xlocale.h" 3 } *__locale_t; } # 43 "/usr/include/xlocale.h" 3 extern "C" { typedef __locale_t locale_t; } # 165 "/usr/include/string.h" 3 extern "C" int strcoll_l(const char *, const char *, __locale_t) throw() __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))) __attribute__((nonnull(3))); # 168 "/usr/include/string.h" 3 extern "C" size_t strxfrm_l(char *, const char *, size_t, __locale_t) throw() __attribute__((nonnull(2))) __attribute__((nonnull(4))); # 175 "/usr/include/string.h" 3 extern "C" char *strdup(const char *) throw() __attribute__((__malloc__)) __attribute__((nonnull(1))); # 183 "/usr/include/string.h" 3 extern "C" char *strndup(const char *, size_t) throw() __attribute__((__malloc__)) __attribute__((nonnull(1))); # 215 "/usr/include/string.h" 3 extern char *strchr(char *, int) throw() __asm__("strchr") __attribute__((__pure__)) __attribute__((nonnull(1))); # 217 "/usr/include/string.h" 3 extern const char *strchr(const char *, int) throw() __asm__("strchr") __attribute__((__pure__)) __attribute__((nonnull(1))); # 242 "/usr/include/string.h" 3 extern char *strrchr(char *, int) throw() __asm__("strrchr") __attribute__((__pure__)) __attribute__((nonnull(1))); # 244 "/usr/include/string.h" 3 extern const char *strrchr(const char *, int) throw() __asm__("strrchr") __attribute__((__pure__)) __attribute__((nonnull(1))); # 271 "/usr/include/string.h" 3 char *strchrnul(char *, int) throw() __asm__("strchrnul") __attribute__((__pure__)) __attribute__((nonnull(1))); # 273 "/usr/include/string.h" 3 const char *strchrnul(const char *, int) throw() __asm__("strchrnul") __attribute__((__pure__)) __attribute__((nonnull(1))); # 284 "/usr/include/string.h" 3 extern "C" size_t strcspn(const char *, const char *) throw() __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 288 "/usr/include/string.h" 3 extern "C" size_t strspn(const char *, const char *) throw() __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 294 "/usr/include/string.h" 3 extern char *strpbrk(char *, const char *) throw() __asm__("strpbrk") __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 296 "/usr/include/string.h" 3 extern const char *strpbrk(const char *, const char *) throw() __asm__("strpbrk") __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 321 "/usr/include/string.h" 3 extern char *strstr(char *, const char *) throw() __asm__("strstr") __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 323 "/usr/include/string.h" 3 extern const char *strstr(const char *, const char *) throw() __asm__("strstr") __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 348 "/usr/include/string.h" 3 extern "C" char *strtok(char *__restrict__, const char *__restrict__) throw() __attribute__((nonnull(2))); # 354 "/usr/include/string.h" 3 extern "C" char *__strtok_r(char *__restrict__, const char *__restrict__, char **__restrict__) throw() __attribute__((nonnull(2))) __attribute__((nonnull(3))); # 359 "/usr/include/string.h" 3 extern "C" char *strtok_r(char *__restrict__, const char *__restrict__, char **__restrict__) throw() __attribute__((nonnull(2))) __attribute__((nonnull(3))); # 367 "/usr/include/string.h" 3 char *strcasestr(char *, const char *) throw() __asm__("strcasestr") __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 369 "/usr/include/string.h" 3 const char *strcasestr(const char *, const char *) throw() __asm__("strcasestr") __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 382 "/usr/include/string.h" 3 extern "C" void *memmem(const void *, size_t, const void *, size_t) throw() __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(3))); # 388 "/usr/include/string.h" 3 extern "C" void *__mempcpy(void *__restrict__, const void *__restrict__, size_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 391 "/usr/include/string.h" 3 extern "C" void *mempcpy(void *__restrict__, const void *__restrict__, size_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 399 "/usr/include/string.h" 3 extern "C" size_t strlen(const char *) throw() __attribute__((__pure__)) __attribute__((nonnull(1))); # 406 "/usr/include/string.h" 3 extern "C" size_t strnlen(const char *, size_t) throw() __attribute__((__pure__)) __attribute__((nonnull(1))); # 413 "/usr/include/string.h" 3 extern "C" char *strerror(int) throw(); # 438 "/usr/include/string.h" 3 extern "C" char *strerror_r(int, char *, size_t) throw() __attribute__((nonnull(2))); # 445 "/usr/include/string.h" 3 extern "C" char *strerror_l(int, __locale_t) throw(); # 451 "/usr/include/string.h" 3 extern "C" void __bzero(void *, size_t) throw() __attribute__((nonnull(1))); # 455 "/usr/include/string.h" 3 extern "C" void bcopy(const void *, void *, size_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 459 "/usr/include/string.h" 3 extern "C" void bzero(void *, size_t) throw() __attribute__((nonnull(1))); # 462 "/usr/include/string.h" 3 extern "C" int bcmp(const void *, const void *, size_t) throw() __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 469 "/usr/include/string.h" 3 extern char *index(char *, int) throw() __asm__("index") __attribute__((__pure__)) __attribute__((nonnull(1))); # 471 "/usr/include/string.h" 3 extern const char *index(const char *, int) throw() __asm__("index") __attribute__((__pure__)) __attribute__((nonnull(1))); # 497 "/usr/include/string.h" 3 extern char *rindex(char *, int) throw() __asm__("rindex") __attribute__((__pure__)) __attribute__((nonnull(1))); # 499 "/usr/include/string.h" 3 extern const char *rindex(const char *, int) throw() __asm__("rindex") __attribute__((__pure__)) __attribute__((nonnull(1))); # 523 "/usr/include/string.h" 3 extern "C" int ffs(int) throw() __attribute__((__const__)); # 528 "/usr/include/string.h" 3 extern "C" int ffsl(long) throw() __attribute__((__const__)); # 530 "/usr/include/string.h" 3 extern "C" int ffsll(long long) throw() __attribute__((__const__)); # 536 "/usr/include/string.h" 3 extern "C" int strcasecmp(const char *, const char *) throw() __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 540 "/usr/include/string.h" 3 extern "C" int strncasecmp(const char *, const char *, size_t) throw() __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 547 "/usr/include/string.h" 3 extern "C" int strcasecmp_l(const char *, const char *, __locale_t) throw() __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))) __attribute__((nonnull(3))); # 551 "/usr/include/string.h" 3 extern "C" int strncasecmp_l(const char *, const char *, size_t, __locale_t) throw() __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))) __attribute__((nonnull(4))); # 559 "/usr/include/string.h" 3 extern "C" char *strsep(char **__restrict__, const char *__restrict__) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 566 "/usr/include/string.h" 3 extern "C" char *strsignal(int) throw(); # 569 "/usr/include/string.h" 3 extern "C" char *__stpcpy(char *__restrict__, const char *__restrict__) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 571 "/usr/include/string.h" 3 extern "C" char *stpcpy(char *__restrict__, const char *__restrict__) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 576 "/usr/include/string.h" 3 extern "C" char *__stpncpy(char *__restrict__, const char *__restrict__, size_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 579 "/usr/include/string.h" 3 extern "C" char *stpncpy(char *__restrict__, const char *__restrict__, size_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 586 "/usr/include/string.h" 3 extern "C" int strverscmp(const char *, const char *) throw() __attribute__((__pure__)) __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 590 "/usr/include/string.h" 3 extern "C" char *strfry(char *) throw() __attribute__((nonnull(1))); # 593 "/usr/include/string.h" 3 extern "C" void *memfrob(void *, size_t) throw() __attribute__((nonnull(1))); # 601 "/usr/include/string.h" 3 char *basename(char *) throw() __asm__("basename") __attribute__((nonnull(1))); # 603 "/usr/include/string.h" 3 const char *basename(const char *) throw() __asm__("basename") __attribute__((nonnull(1))); # 31 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned char __u_char; } # 32 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned short __u_short; } # 33 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned __u_int; } # 34 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned long __u_long; } # 37 "/usr/include/bits/types.h" 3 extern "C" { typedef signed char __int8_t; } # 38 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned char __uint8_t; } # 39 "/usr/include/bits/types.h" 3 extern "C" { typedef signed short __int16_t; } # 40 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned short __uint16_t; } # 41 "/usr/include/bits/types.h" 3 extern "C" { typedef signed int __int32_t; } # 42 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned __uint32_t; } # 44 "/usr/include/bits/types.h" 3 extern "C" { typedef signed long __int64_t; } # 45 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned long __uint64_t; } # 53 "/usr/include/bits/types.h" 3 extern "C" { typedef long __quad_t; } # 54 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned long __u_quad_t; } # 134 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned long __dev_t; } # 135 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned __uid_t; } # 136 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned __gid_t; } # 137 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned long __ino_t; } # 138 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned long __ino64_t; } # 139 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned __mode_t; } # 140 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned long __nlink_t; } # 141 "/usr/include/bits/types.h" 3 extern "C" { typedef long __off_t; } # 142 "/usr/include/bits/types.h" 3 extern "C" { typedef long __off64_t; } # 143 "/usr/include/bits/types.h" 3 extern "C" { typedef int __pid_t; } # 144 "/usr/include/bits/types.h" 3 extern "C" { typedef struct { int __val[2]; } __fsid_t; } # 145 "/usr/include/bits/types.h" 3 extern "C" { typedef long __clock_t; } # 146 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned long __rlim_t; } # 147 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned long __rlim64_t; } # 148 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned __id_t; } # 149 "/usr/include/bits/types.h" 3 extern "C" { typedef long __time_t; } # 150 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned __useconds_t; } # 151 "/usr/include/bits/types.h" 3 extern "C" { typedef long __suseconds_t; } # 153 "/usr/include/bits/types.h" 3 extern "C" { typedef int __daddr_t; } # 154 "/usr/include/bits/types.h" 3 extern "C" { typedef long __swblk_t; } # 155 "/usr/include/bits/types.h" 3 extern "C" { typedef int __key_t; } # 158 "/usr/include/bits/types.h" 3 extern "C" { typedef int __clockid_t; } # 161 "/usr/include/bits/types.h" 3 extern "C" { typedef void *__timer_t; } # 164 "/usr/include/bits/types.h" 3 extern "C" { typedef long __blksize_t; } # 169 "/usr/include/bits/types.h" 3 extern "C" { typedef long __blkcnt_t; } # 170 "/usr/include/bits/types.h" 3 extern "C" { typedef long __blkcnt64_t; } # 173 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned long __fsblkcnt_t; } # 174 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned long __fsblkcnt64_t; } # 177 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned long __fsfilcnt_t; } # 178 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned long __fsfilcnt64_t; } # 180 "/usr/include/bits/types.h" 3 extern "C" { typedef long __ssize_t; } # 184 "/usr/include/bits/types.h" 3 extern "C" { typedef __off64_t __loff_t; } # 185 "/usr/include/bits/types.h" 3 extern "C" { typedef __quad_t *__qaddr_t; } # 186 "/usr/include/bits/types.h" 3 extern "C" { typedef char *__caddr_t; } # 189 "/usr/include/bits/types.h" 3 extern "C" { typedef long __intptr_t; } # 192 "/usr/include/bits/types.h" 3 extern "C" { typedef unsigned __socklen_t; } # 60 "/usr/include/time.h" 3 extern "C" { typedef __clock_t clock_t; } # 76 "/usr/include/time.h" 3 extern "C" { typedef __time_t time_t; } # 92 "/usr/include/time.h" 3 extern "C" { typedef __clockid_t clockid_t; } # 104 "/usr/include/time.h" 3 extern "C" { typedef __timer_t timer_t; } # 120 "/usr/include/time.h" 3 extern "C" { struct timespec { # 122 "/usr/include/time.h" 3 __time_t tv_sec; # 123 "/usr/include/time.h" 3 long tv_nsec; # 124 "/usr/include/time.h" 3 }; } # 133 "/usr/include/time.h" 3 extern "C" { struct tm { # 135 "/usr/include/time.h" 3 int tm_sec; # 136 "/usr/include/time.h" 3 int tm_min; # 137 "/usr/include/time.h" 3 int tm_hour; # 138 "/usr/include/time.h" 3 int tm_mday; # 139 "/usr/include/time.h" 3 int tm_mon; # 140 "/usr/include/time.h" 3 int tm_year; # 141 "/usr/include/time.h" 3 int tm_wday; # 142 "/usr/include/time.h" 3 int tm_yday; # 143 "/usr/include/time.h" 3 int tm_isdst; # 146 "/usr/include/time.h" 3 long tm_gmtoff; # 147 "/usr/include/time.h" 3 const char *tm_zone; # 152 "/usr/include/time.h" 3 }; } # 161 "/usr/include/time.h" 3 extern "C" { struct itimerspec { # 163 "/usr/include/time.h" 3 timespec it_interval; # 164 "/usr/include/time.h" 3 timespec it_value; # 165 "/usr/include/time.h" 3 }; } # 168 "/usr/include/time.h" 3 struct sigevent; # 174 "/usr/include/time.h" 3 extern "C" { typedef __pid_t pid_t; } # 183 "/usr/include/time.h" 3 extern "C" __attribute__((weak)) clock_t clock() throw(); # 186 "/usr/include/time.h" 3 extern "C" time_t time(time_t *) throw(); # 189 "/usr/include/time.h" 3 extern "C" double difftime(time_t, time_t) throw() __attribute__((__const__)); # 193 "/usr/include/time.h" 3 extern "C" time_t mktime(tm *) throw(); # 199 "/usr/include/time.h" 3 extern "C" size_t strftime(char *__restrict__, size_t, const char *__restrict__, const tm *__restrict__) throw(); # 207 "/usr/include/time.h" 3 extern "C" char *strptime(const char *__restrict__, const char *__restrict__, tm *) throw(); # 217 "/usr/include/time.h" 3 extern "C" size_t strftime_l(char *__restrict__, size_t, const char *__restrict__, const tm *__restrict__, __locale_t) throw(); # 224 "/usr/include/time.h" 3 extern "C" char *strptime_l(const char *__restrict__, const char *__restrict__, tm *, __locale_t) throw(); # 233 "/usr/include/time.h" 3 extern "C" tm *gmtime(const time_t *) throw(); # 237 "/usr/include/time.h" 3 extern "C" tm *localtime(const time_t *) throw(); # 243 "/usr/include/time.h" 3 extern "C" tm *gmtime_r(const time_t *__restrict__, tm *__restrict__) throw(); # 248 "/usr/include/time.h" 3 extern "C" tm *localtime_r(const time_t *__restrict__, tm *__restrict__) throw(); # 255 "/usr/include/time.h" 3 extern "C" char *asctime(const tm *) throw(); # 258 "/usr/include/time.h" 3 extern "C" char *ctime(const time_t *) throw(); # 266 "/usr/include/time.h" 3 extern "C" char *asctime_r(const tm *__restrict__, char *__restrict__) throw(); # 270 "/usr/include/time.h" 3 extern "C" char *ctime_r(const time_t *__restrict__, char *__restrict__) throw(); # 276 "/usr/include/time.h" 3 extern "C" { extern char *__tzname[2]; } # 277 "/usr/include/time.h" 3 extern "C" { extern int __daylight; } # 278 "/usr/include/time.h" 3 extern "C" { extern long __timezone; } # 283 "/usr/include/time.h" 3 extern "C" { extern char *tzname[2]; } # 287 "/usr/include/time.h" 3 extern "C" void tzset() throw(); # 291 "/usr/include/time.h" 3 extern "C" { extern int daylight; } # 292 "/usr/include/time.h" 3 extern "C" { extern long timezone; } # 298 "/usr/include/time.h" 3 extern "C" int stime(const time_t *) throw(); # 313 "/usr/include/time.h" 3 extern "C" time_t timegm(tm *) throw(); # 316 "/usr/include/time.h" 3 extern "C" time_t timelocal(tm *) throw(); # 319 "/usr/include/time.h" 3 extern "C" int dysize(int) throw() __attribute__((__const__)); # 328 "/usr/include/time.h" 3 extern "C" int nanosleep(const timespec *, timespec *); # 333 "/usr/include/time.h" 3 extern "C" int clock_getres(clockid_t, timespec *) throw(); # 336 "/usr/include/time.h" 3 extern "C" int clock_gettime(clockid_t, timespec *) throw(); # 339 "/usr/include/time.h" 3 extern "C" int clock_settime(clockid_t, const timespec *) throw(); # 347 "/usr/include/time.h" 3 extern "C" int clock_nanosleep(clockid_t, int, const timespec *, timespec *); # 352 "/usr/include/time.h" 3 extern "C" int clock_getcpuclockid(pid_t, clockid_t *) throw(); # 357 "/usr/include/time.h" 3 extern "C" int timer_create(clockid_t, sigevent *__restrict__, timer_t *__restrict__) throw(); # 362 "/usr/include/time.h" 3 extern "C" int timer_delete(timer_t) throw(); # 365 "/usr/include/time.h" 3 extern "C" int timer_settime(timer_t, int, const itimerspec *__restrict__, itimerspec *__restrict__) throw(); # 370 "/usr/include/time.h" 3 extern "C" int timer_gettime(timer_t, itimerspec *) throw(); # 374 "/usr/include/time.h" 3 extern "C" int timer_getoverrun(timer_t) throw(); # 390 "/usr/include/time.h" 3 extern "C" { extern int getdate_err; } # 399 "/usr/include/time.h" 3 extern "C" tm *getdate(const char *); # 413 "/usr/include/time.h" 3 extern "C" int getdate_r(const char *__restrict__, tm *__restrict__); # 57 "/usr/local/cuda/bin/../include/common_functions.h" extern "C" __attribute__((weak)) clock_t clock() throw(); # 59 "/usr/local/cuda/bin/../include/common_functions.h" extern "C" __attribute__((weak)) void *memset(void *, int, size_t) throw() __attribute__((nonnull(1))); # 61 "/usr/local/cuda/bin/../include/common_functions.h" extern "C" __attribute__((weak)) void *memcpy(void *, const void *, size_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 66 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int abs(int) throw() __attribute__((__const__)); # 68 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) long labs(long) throw() __attribute__((__const__)); # 70 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) long long llabs(long long) throw() __attribute__((__const__)); # 72 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double fabs(double) throw() __attribute__((__const__)); # 74 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float fabsf(float) throw() __attribute__((__const__)); # 77 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int min(int, int); # 79 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) unsigned umin(unsigned, unsigned); # 81 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) long long llmin(long long, long long); # 83 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) unsigned long long ullmin(unsigned long long, unsigned long long); # 85 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float fminf(float, float) throw(); # 87 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double fmin(double, double) throw(); # 90 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int max(int, int); # 92 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) unsigned umax(unsigned, unsigned); # 94 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) long long llmax(long long, long long); # 96 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) unsigned long long ullmax(unsigned long long, unsigned long long); # 98 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float fmaxf(float, float) throw(); # 100 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double fmax(double, double) throw(); # 103 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double sin(double) throw(); # 105 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float sinf(float) throw(); # 108 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double cos(double) throw(); # 110 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float cosf(float) throw(); # 113 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) void sincos(double, double *, double *) throw(); # 115 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) void sincosf(float, float *, float *) throw(); # 118 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double tan(double) throw(); # 120 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float tanf(float) throw(); # 123 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double sqrt(double) throw(); # 125 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float sqrtf(float) throw(); # 128 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double rsqrt(double); # 130 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float rsqrtf(float); # 133 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double exp2(double) throw(); # 135 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float exp2f(float) throw(); # 138 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double exp10(double) throw(); # 140 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float exp10f(float) throw(); # 143 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double expm1(double) throw(); # 145 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float expm1f(float) throw(); # 148 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double log2(double) throw(); # 150 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float log2f(float) throw(); # 153 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double log10(double) throw(); # 155 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float log10f(float) throw(); # 158 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double log(double) throw(); # 160 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float logf(float) throw(); # 163 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double log1p(double) throw(); # 165 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float log1pf(float) throw(); # 168 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double floor(double) throw() __attribute__((__const__)); # 170 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float floorf(float) throw() __attribute__((__const__)); # 173 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double exp(double) throw(); # 175 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float expf(float) throw(); # 178 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double cosh(double) throw(); # 180 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float coshf(float) throw(); # 183 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double sinh(double) throw(); # 185 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float sinhf(float) throw(); # 188 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double tanh(double) throw(); # 190 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float tanhf(float) throw(); # 193 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double acosh(double) throw(); # 195 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float acoshf(float) throw(); # 198 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double asinh(double) throw(); # 200 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float asinhf(float) throw(); # 203 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double atanh(double) throw(); # 205 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float atanhf(float) throw(); # 208 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double ldexp(double, int) throw(); # 210 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float ldexpf(float, int) throw(); # 213 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double logb(double) throw(); # 215 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float logbf(float) throw(); # 218 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int ilogb(double) throw(); # 220 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int ilogbf(float) throw(); # 223 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double scalbn(double, int) throw(); # 225 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float scalbnf(float, int) throw(); # 228 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double scalbln(double, long) throw(); # 230 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float scalblnf(float, long) throw(); # 233 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double frexp(double, int *) throw(); # 235 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float frexpf(float, int *) throw(); # 238 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double round(double) throw() __attribute__((__const__)); # 240 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float roundf(float) throw() __attribute__((__const__)); # 243 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) long lround(double) throw(); # 245 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) long lroundf(float) throw(); # 248 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) long long llround(double) throw(); # 250 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) long long llroundf(float) throw(); # 253 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double rint(double) throw(); # 255 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float rintf(float) throw(); # 258 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) long lrint(double) throw(); # 260 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) long lrintf(float) throw(); # 263 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) long long llrint(double) throw(); # 265 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) long long llrintf(float) throw(); # 268 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double nearbyint(double) throw(); # 270 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float nearbyintf(float) throw(); # 273 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double ceil(double) throw() __attribute__((__const__)); # 275 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float ceilf(float) throw() __attribute__((__const__)); # 278 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double trunc(double) throw() __attribute__((__const__)); # 280 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float truncf(float) throw() __attribute__((__const__)); # 283 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double fdim(double, double) throw(); # 285 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float fdimf(float, float) throw(); # 288 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double atan2(double, double) throw(); # 290 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float atan2f(float, float) throw(); # 293 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double atan(double) throw(); # 295 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float atanf(float) throw(); # 298 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double asin(double) throw(); # 300 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float asinf(float) throw(); # 303 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double acos(double) throw(); # 305 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float acosf(float) throw(); # 308 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double hypot(double, double) throw(); # 310 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float hypotf(float, float) throw(); # 313 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double cbrt(double) throw(); # 315 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float cbrtf(float) throw(); # 318 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double rcbrt(double); # 320 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float rcbrtf(float); # 323 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double sinpi(double); # 325 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float sinpif(float); # 328 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double pow(double, double) throw(); # 330 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float powf(float, float) throw(); # 333 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double modf(double, double *) throw(); # 335 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float modff(float, float *) throw(); # 338 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double fmod(double, double) throw(); # 340 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float fmodf(float, float) throw(); # 343 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double remainder(double, double) throw(); # 345 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float remainderf(float, float) throw(); # 348 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double remquo(double, double, int *) throw(); # 350 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float remquof(float, float, int *) throw(); # 353 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double erf(double) throw(); # 355 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float erff(float) throw(); # 358 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double erfinv(double); # 360 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float erfinvf(float); # 363 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double erfc(double) throw(); # 365 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float erfcf(float) throw(); # 368 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double erfcinv(double); # 370 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float erfcinvf(float); # 373 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double lgamma(double) throw(); # 375 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float lgammaf(float) throw(); # 378 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double tgamma(double) throw(); # 380 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float tgammaf(float) throw(); # 383 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double copysign(double, double) throw() __attribute__((__const__)); # 385 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float copysignf(float, float) throw() __attribute__((__const__)); # 388 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double nextafter(double, double) throw() __attribute__((__const__)); # 390 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float nextafterf(float, float) throw() __attribute__((__const__)); # 393 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double nan(const char *) throw() __attribute__((__const__)); # 395 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float nanf(const char *) throw() __attribute__((__const__)); # 398 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int __isinf(double) throw() __attribute__((__const__)); # 400 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int __isinff(float) throw() __attribute__((__const__)); # 403 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int __isnan(double) throw() __attribute__((__const__)); # 405 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int __isnanf(float) throw() __attribute__((__const__)); # 419 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int __finite(double) throw() __attribute__((__const__)); # 421 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int __finitef(float) throw() __attribute__((__const__)); # 423 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int __signbit(double) throw() __attribute__((__const__)); # 428 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int __signbitf(float) throw() __attribute__((__const__)); # 431 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) double fma(double, double, double) throw(); # 433 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) float fmaf(float, float, float) throw(); # 441 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int __signbitl(long double) throw() __attribute__((__const__)); # 443 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int __isinfl(long double) throw() __attribute__((__const__)); # 445 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int __isnanl(long double) throw() __attribute__((__const__)); # 455 "/usr/local/cuda/bin/../include/math_functions.h" extern "C" __attribute__((weak)) int __finitel(long double) throw() __attribute__((__const__)); # 31 "/usr/include/bits/mathdef.h" 3 extern "C" { typedef float float_t; } # 32 "/usr/include/bits/mathdef.h" 3 extern "C" { typedef double double_t; } # 55 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double acos(double) throw(); extern "C" double __acos(double) throw(); # 57 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double asin(double) throw(); extern "C" double __asin(double) throw(); # 59 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double atan(double) throw(); extern "C" double __atan(double) throw(); # 61 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double atan2(double, double) throw(); extern "C" double __atan2(double, double) throw(); # 64 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double cos(double) throw(); extern "C" double __cos(double) throw(); # 66 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double sin(double) throw(); extern "C" double __sin(double) throw(); # 68 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double tan(double) throw(); extern "C" double __tan(double) throw(); # 73 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double cosh(double) throw(); extern "C" double __cosh(double) throw(); # 75 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double sinh(double) throw(); extern "C" double __sinh(double) throw(); # 77 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double tanh(double) throw(); extern "C" double __tanh(double) throw(); # 82 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) void sincos(double, double *, double *) throw(); extern "C" void __sincos(double, double *, double *) throw(); # 89 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double acosh(double) throw(); extern "C" double __acosh(double) throw(); # 91 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double asinh(double) throw(); extern "C" double __asinh(double) throw(); # 93 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double atanh(double) throw(); extern "C" double __atanh(double) throw(); # 101 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double exp(double) throw(); extern "C" double __exp(double) throw(); # 104 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double frexp(double, int *) throw(); extern "C" double __frexp(double, int *) throw(); # 107 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double ldexp(double, int) throw(); extern "C" double __ldexp(double, int) throw(); # 110 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double log(double) throw(); extern "C" double __log(double) throw(); # 113 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double log10(double) throw(); extern "C" double __log10(double) throw(); # 116 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double modf(double, double *) throw(); extern "C" double __modf(double, double *) throw(); # 121 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double exp10(double) throw(); extern "C" double __exp10(double) throw(); # 123 "/usr/include/bits/mathcalls.h" 3 extern "C" double pow10(double) throw(); extern "C" double __pow10(double) throw(); # 129 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double expm1(double) throw(); extern "C" double __expm1(double) throw(); # 132 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double log1p(double) throw(); extern "C" double __log1p(double) throw(); # 135 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double logb(double) throw(); extern "C" double __logb(double) throw(); # 142 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double exp2(double) throw(); extern "C" double __exp2(double) throw(); # 145 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double log2(double) throw(); extern "C" double __log2(double) throw(); # 154 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double pow(double, double) throw(); extern "C" double __pow(double, double) throw(); # 157 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double sqrt(double) throw(); extern "C" double __sqrt(double) throw(); # 163 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double hypot(double, double) throw(); extern "C" double __hypot(double, double) throw(); # 170 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double cbrt(double) throw(); extern "C" double __cbrt(double) throw(); # 179 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double ceil(double) throw() __attribute__((__const__)); extern "C" double __ceil(double) throw() __attribute__((__const__)); # 182 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double fabs(double) throw() __attribute__((__const__)); extern "C" double __fabs(double) throw() __attribute__((__const__)); # 185 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double floor(double) throw() __attribute__((__const__)); extern "C" double __floor(double) throw() __attribute__((__const__)); # 188 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double fmod(double, double) throw(); extern "C" double __fmod(double, double) throw(); # 193 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) int __isinf(double) throw() __attribute__((__const__)); # 196 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) int __finite(double) throw() __attribute__((__const__)); # 202 "/usr/include/bits/mathcalls.h" 3 extern "C" int isinf(double) throw() __attribute__((__const__)); # 205 "/usr/include/bits/mathcalls.h" 3 extern "C" int finite(double) throw() __attribute__((__const__)); # 208 "/usr/include/bits/mathcalls.h" 3 extern "C" double drem(double, double) throw(); extern "C" double __drem(double, double) throw(); # 212 "/usr/include/bits/mathcalls.h" 3 extern "C" double significand(double) throw(); extern "C" double __significand(double) throw(); # 218 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double copysign(double, double) throw() __attribute__((__const__)); extern "C" double __copysign(double, double) throw() __attribute__((__const__)); # 225 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double nan(const char *) throw() __attribute__((__const__)); extern "C" double __nan(const char *) throw() __attribute__((__const__)); # 231 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) int __isnan(double) throw() __attribute__((__const__)); # 235 "/usr/include/bits/mathcalls.h" 3 extern "C" int isnan(double) throw() __attribute__((__const__)); # 238 "/usr/include/bits/mathcalls.h" 3 extern "C" double j0(double) throw(); extern "C" double __j0(double) throw(); # 239 "/usr/include/bits/mathcalls.h" 3 extern "C" double j1(double) throw(); extern "C" double __j1(double) throw(); # 240 "/usr/include/bits/mathcalls.h" 3 extern "C" double jn(int, double) throw(); extern "C" double __jn(int, double) throw(); # 241 "/usr/include/bits/mathcalls.h" 3 extern "C" double y0(double) throw(); extern "C" double __y0(double) throw(); # 242 "/usr/include/bits/mathcalls.h" 3 extern "C" double y1(double) throw(); extern "C" double __y1(double) throw(); # 243 "/usr/include/bits/mathcalls.h" 3 extern "C" double yn(int, double) throw(); extern "C" double __yn(int, double) throw(); # 250 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double erf(double) throw(); extern "C" double __erf(double) throw(); # 251 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double erfc(double) throw(); extern "C" double __erfc(double) throw(); # 252 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double lgamma(double) throw(); extern "C" double __lgamma(double) throw(); # 259 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double tgamma(double) throw(); extern "C" double __tgamma(double) throw(); # 265 "/usr/include/bits/mathcalls.h" 3 extern "C" double gamma(double) throw(); extern "C" double __gamma(double) throw(); # 272 "/usr/include/bits/mathcalls.h" 3 extern "C" double lgamma_r(double, int *) throw(); extern "C" double __lgamma_r(double, int *) throw(); # 280 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double rint(double) throw(); extern "C" double __rint(double) throw(); # 283 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double nextafter(double, double) throw() __attribute__((__const__)); extern "C" double __nextafter(double, double) throw() __attribute__((__const__)); # 285 "/usr/include/bits/mathcalls.h" 3 extern "C" double nexttoward(double, long double) throw() __attribute__((__const__)); extern "C" double __nexttoward(double, long double) throw() __attribute__((__const__)); # 289 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double remainder(double, double) throw(); extern "C" double __remainder(double, double) throw(); # 293 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double scalbn(double, int) throw(); extern "C" double __scalbn(double, int) throw(); # 297 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) int ilogb(double) throw(); extern "C" int __ilogb(double) throw(); # 302 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double scalbln(double, long) throw(); extern "C" double __scalbln(double, long) throw(); # 306 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double nearbyint(double) throw(); extern "C" double __nearbyint(double) throw(); # 310 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double round(double) throw() __attribute__((__const__)); extern "C" double __round(double) throw() __attribute__((__const__)); # 314 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double trunc(double) throw() __attribute__((__const__)); extern "C" double __trunc(double) throw() __attribute__((__const__)); # 319 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double remquo(double, double, int *) throw(); extern "C" double __remquo(double, double, int *) throw(); # 326 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) long lrint(double) throw(); extern "C" long __lrint(double) throw(); # 327 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) long long llrint(double) throw(); extern "C" long long __llrint(double) throw(); # 331 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) long lround(double) throw(); extern "C" long __lround(double) throw(); # 332 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) long long llround(double) throw(); extern "C" long long __llround(double) throw(); # 336 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double fdim(double, double) throw(); extern "C" double __fdim(double, double) throw(); # 339 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double fmax(double, double) throw(); extern "C" double __fmax(double, double) throw(); # 342 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double fmin(double, double) throw(); extern "C" double __fmin(double, double) throw(); # 346 "/usr/include/bits/mathcalls.h" 3 extern "C" int __fpclassify(double) throw() __attribute__((__const__)); # 350 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) int __signbit(double) throw() __attribute__((__const__)); # 355 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) double fma(double, double, double) throw(); extern "C" double __fma(double, double, double) throw(); # 364 "/usr/include/bits/mathcalls.h" 3 extern "C" double scalb(double, double) throw(); extern "C" double __scalb(double, double) throw(); # 55 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float acosf(float) throw(); extern "C" float __acosf(float) throw(); # 57 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float asinf(float) throw(); extern "C" float __asinf(float) throw(); # 59 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float atanf(float) throw(); extern "C" float __atanf(float) throw(); # 61 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float atan2f(float, float) throw(); extern "C" float __atan2f(float, float) throw(); # 64 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float cosf(float) throw(); # 66 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float sinf(float) throw(); # 68 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float tanf(float) throw(); # 73 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float coshf(float) throw(); extern "C" float __coshf(float) throw(); # 75 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float sinhf(float) throw(); extern "C" float __sinhf(float) throw(); # 77 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float tanhf(float) throw(); extern "C" float __tanhf(float) throw(); # 82 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) void sincosf(float, float *, float *) throw(); # 89 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float acoshf(float) throw(); extern "C" float __acoshf(float) throw(); # 91 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float asinhf(float) throw(); extern "C" float __asinhf(float) throw(); # 93 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float atanhf(float) throw(); extern "C" float __atanhf(float) throw(); # 101 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float expf(float) throw(); # 104 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float frexpf(float, int *) throw(); extern "C" float __frexpf(float, int *) throw(); # 107 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float ldexpf(float, int) throw(); extern "C" float __ldexpf(float, int) throw(); # 110 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float logf(float) throw(); # 113 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float log10f(float) throw(); # 116 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float modff(float, float *) throw(); extern "C" float __modff(float, float *) throw(); # 121 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float exp10f(float) throw(); # 123 "/usr/include/bits/mathcalls.h" 3 extern "C" float pow10f(float) throw(); extern "C" float __pow10f(float) throw(); # 129 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float expm1f(float) throw(); extern "C" float __expm1f(float) throw(); # 132 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float log1pf(float) throw(); extern "C" float __log1pf(float) throw(); # 135 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float logbf(float) throw(); extern "C" float __logbf(float) throw(); # 142 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float exp2f(float) throw(); extern "C" float __exp2f(float) throw(); # 145 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float log2f(float) throw(); # 154 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float powf(float, float) throw(); # 157 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float sqrtf(float) throw(); extern "C" float __sqrtf(float) throw(); # 163 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float hypotf(float, float) throw(); extern "C" float __hypotf(float, float) throw(); # 170 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float cbrtf(float) throw(); extern "C" float __cbrtf(float) throw(); # 179 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float ceilf(float) throw() __attribute__((__const__)); extern "C" float __ceilf(float) throw() __attribute__((__const__)); # 182 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float fabsf(float) throw() __attribute__((__const__)); extern "C" float __fabsf(float) throw() __attribute__((__const__)); # 185 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float floorf(float) throw() __attribute__((__const__)); extern "C" float __floorf(float) throw() __attribute__((__const__)); # 188 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float fmodf(float, float) throw(); extern "C" float __fmodf(float, float) throw(); # 193 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) int __isinff(float) throw() __attribute__((__const__)); # 196 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) int __finitef(float) throw() __attribute__((__const__)); # 202 "/usr/include/bits/mathcalls.h" 3 extern "C" int isinff(float) throw() __attribute__((__const__)); # 205 "/usr/include/bits/mathcalls.h" 3 extern "C" int finitef(float) throw() __attribute__((__const__)); # 208 "/usr/include/bits/mathcalls.h" 3 extern "C" float dremf(float, float) throw(); extern "C" float __dremf(float, float) throw(); # 212 "/usr/include/bits/mathcalls.h" 3 extern "C" float significandf(float) throw(); extern "C" float __significandf(float) throw(); # 218 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float copysignf(float, float) throw() __attribute__((__const__)); extern "C" float __copysignf(float, float) throw() __attribute__((__const__)); # 225 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float nanf(const char *) throw() __attribute__((__const__)); extern "C" float __nanf(const char *) throw() __attribute__((__const__)); # 231 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) int __isnanf(float) throw() __attribute__((__const__)); # 235 "/usr/include/bits/mathcalls.h" 3 extern "C" int isnanf(float) throw() __attribute__((__const__)); # 238 "/usr/include/bits/mathcalls.h" 3 extern "C" float j0f(float) throw(); extern "C" float __j0f(float) throw(); # 239 "/usr/include/bits/mathcalls.h" 3 extern "C" float j1f(float) throw(); extern "C" float __j1f(float) throw(); # 240 "/usr/include/bits/mathcalls.h" 3 extern "C" float jnf(int, float) throw(); extern "C" float __jnf(int, float) throw(); # 241 "/usr/include/bits/mathcalls.h" 3 extern "C" float y0f(float) throw(); extern "C" float __y0f(float) throw(); # 242 "/usr/include/bits/mathcalls.h" 3 extern "C" float y1f(float) throw(); extern "C" float __y1f(float) throw(); # 243 "/usr/include/bits/mathcalls.h" 3 extern "C" float ynf(int, float) throw(); extern "C" float __ynf(int, float) throw(); # 250 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float erff(float) throw(); extern "C" float __erff(float) throw(); # 251 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float erfcf(float) throw(); extern "C" float __erfcf(float) throw(); # 252 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float lgammaf(float) throw(); extern "C" float __lgammaf(float) throw(); # 259 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float tgammaf(float) throw(); extern "C" float __tgammaf(float) throw(); # 265 "/usr/include/bits/mathcalls.h" 3 extern "C" float gammaf(float) throw(); extern "C" float __gammaf(float) throw(); # 272 "/usr/include/bits/mathcalls.h" 3 extern "C" float lgammaf_r(float, int *) throw(); extern "C" float __lgammaf_r(float, int *) throw(); # 280 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float rintf(float) throw(); extern "C" float __rintf(float) throw(); # 283 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float nextafterf(float, float) throw() __attribute__((__const__)); extern "C" float __nextafterf(float, float) throw() __attribute__((__const__)); # 285 "/usr/include/bits/mathcalls.h" 3 extern "C" float nexttowardf(float, long double) throw() __attribute__((__const__)); extern "C" float __nexttowardf(float, long double) throw() __attribute__((__const__)); # 289 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float remainderf(float, float) throw(); extern "C" float __remainderf(float, float) throw(); # 293 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float scalbnf(float, int) throw(); extern "C" float __scalbnf(float, int) throw(); # 297 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) int ilogbf(float) throw(); extern "C" int __ilogbf(float) throw(); # 302 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float scalblnf(float, long) throw(); extern "C" float __scalblnf(float, long) throw(); # 306 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float nearbyintf(float) throw(); extern "C" float __nearbyintf(float) throw(); # 310 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float roundf(float) throw() __attribute__((__const__)); extern "C" float __roundf(float) throw() __attribute__((__const__)); # 314 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float truncf(float) throw() __attribute__((__const__)); extern "C" float __truncf(float) throw() __attribute__((__const__)); # 319 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float remquof(float, float, int *) throw(); extern "C" float __remquof(float, float, int *) throw(); # 326 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) long lrintf(float) throw(); extern "C" long __lrintf(float) throw(); # 327 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) long long llrintf(float) throw(); extern "C" long long __llrintf(float) throw(); # 331 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) long lroundf(float) throw(); extern "C" long __lroundf(float) throw(); # 332 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) long long llroundf(float) throw(); extern "C" long long __llroundf(float) throw(); # 336 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float fdimf(float, float) throw(); extern "C" float __fdimf(float, float) throw(); # 339 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float fmaxf(float, float) throw(); extern "C" float __fmaxf(float, float) throw(); # 342 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float fminf(float, float) throw(); extern "C" float __fminf(float, float) throw(); # 346 "/usr/include/bits/mathcalls.h" 3 extern "C" int __fpclassifyf(float) throw() __attribute__((__const__)); # 350 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) int __signbitf(float) throw() __attribute__((__const__)); # 355 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) float fmaf(float, float, float) throw(); extern "C" float __fmaf(float, float, float) throw(); # 364 "/usr/include/bits/mathcalls.h" 3 extern "C" float scalbf(float, float) throw(); extern "C" float __scalbf(float, float) throw(); # 55 "/usr/include/bits/mathcalls.h" 3 extern "C" long double acosl(long double) throw(); extern "C" long double __acosl(long double) throw(); # 57 "/usr/include/bits/mathcalls.h" 3 extern "C" long double asinl(long double) throw(); extern "C" long double __asinl(long double) throw(); # 59 "/usr/include/bits/mathcalls.h" 3 extern "C" long double atanl(long double) throw(); extern "C" long double __atanl(long double) throw(); # 61 "/usr/include/bits/mathcalls.h" 3 extern "C" long double atan2l(long double, long double) throw(); extern "C" long double __atan2l(long double, long double) throw(); # 64 "/usr/include/bits/mathcalls.h" 3 extern "C" long double cosl(long double) throw(); extern "C" long double __cosl(long double) throw(); # 66 "/usr/include/bits/mathcalls.h" 3 extern "C" long double sinl(long double) throw(); extern "C" long double __sinl(long double) throw(); # 68 "/usr/include/bits/mathcalls.h" 3 extern "C" long double tanl(long double) throw(); extern "C" long double __tanl(long double) throw(); # 73 "/usr/include/bits/mathcalls.h" 3 extern "C" long double coshl(long double) throw(); extern "C" long double __coshl(long double) throw(); # 75 "/usr/include/bits/mathcalls.h" 3 extern "C" long double sinhl(long double) throw(); extern "C" long double __sinhl(long double) throw(); # 77 "/usr/include/bits/mathcalls.h" 3 extern "C" long double tanhl(long double) throw(); extern "C" long double __tanhl(long double) throw(); # 82 "/usr/include/bits/mathcalls.h" 3 extern "C" void sincosl(long double, long double *, long double *) throw(); extern "C" void __sincosl(long double, long double *, long double *) throw(); # 89 "/usr/include/bits/mathcalls.h" 3 extern "C" long double acoshl(long double) throw(); extern "C" long double __acoshl(long double) throw(); # 91 "/usr/include/bits/mathcalls.h" 3 extern "C" long double asinhl(long double) throw(); extern "C" long double __asinhl(long double) throw(); # 93 "/usr/include/bits/mathcalls.h" 3 extern "C" long double atanhl(long double) throw(); extern "C" long double __atanhl(long double) throw(); # 101 "/usr/include/bits/mathcalls.h" 3 extern "C" long double expl(long double) throw(); extern "C" long double __expl(long double) throw(); # 104 "/usr/include/bits/mathcalls.h" 3 extern "C" long double frexpl(long double, int *) throw(); extern "C" long double __frexpl(long double, int *) throw(); # 107 "/usr/include/bits/mathcalls.h" 3 extern "C" long double ldexpl(long double, int) throw(); extern "C" long double __ldexpl(long double, int) throw(); # 110 "/usr/include/bits/mathcalls.h" 3 extern "C" long double logl(long double) throw(); extern "C" long double __logl(long double) throw(); # 113 "/usr/include/bits/mathcalls.h" 3 extern "C" long double log10l(long double) throw(); extern "C" long double __log10l(long double) throw(); # 116 "/usr/include/bits/mathcalls.h" 3 extern "C" long double modfl(long double, long double *) throw(); extern "C" long double __modfl(long double, long double *) throw(); # 121 "/usr/include/bits/mathcalls.h" 3 extern "C" long double exp10l(long double) throw(); extern "C" long double __exp10l(long double) throw(); # 123 "/usr/include/bits/mathcalls.h" 3 extern "C" long double pow10l(long double) throw(); extern "C" long double __pow10l(long double) throw(); # 129 "/usr/include/bits/mathcalls.h" 3 extern "C" long double expm1l(long double) throw(); extern "C" long double __expm1l(long double) throw(); # 132 "/usr/include/bits/mathcalls.h" 3 extern "C" long double log1pl(long double) throw(); extern "C" long double __log1pl(long double) throw(); # 135 "/usr/include/bits/mathcalls.h" 3 extern "C" long double logbl(long double) throw(); extern "C" long double __logbl(long double) throw(); # 142 "/usr/include/bits/mathcalls.h" 3 extern "C" long double exp2l(long double) throw(); extern "C" long double __exp2l(long double) throw(); # 145 "/usr/include/bits/mathcalls.h" 3 extern "C" long double log2l(long double) throw(); extern "C" long double __log2l(long double) throw(); # 154 "/usr/include/bits/mathcalls.h" 3 extern "C" long double powl(long double, long double) throw(); extern "C" long double __powl(long double, long double) throw(); # 157 "/usr/include/bits/mathcalls.h" 3 extern "C" long double sqrtl(long double) throw(); extern "C" long double __sqrtl(long double) throw(); # 163 "/usr/include/bits/mathcalls.h" 3 extern "C" long double hypotl(long double, long double) throw(); extern "C" long double __hypotl(long double, long double) throw(); # 170 "/usr/include/bits/mathcalls.h" 3 extern "C" long double cbrtl(long double) throw(); extern "C" long double __cbrtl(long double) throw(); # 179 "/usr/include/bits/mathcalls.h" 3 extern "C" long double ceill(long double) throw() __attribute__((__const__)); extern "C" long double __ceill(long double) throw() __attribute__((__const__)); # 182 "/usr/include/bits/mathcalls.h" 3 extern "C" long double fabsl(long double) throw() __attribute__((__const__)); extern "C" long double __fabsl(long double) throw() __attribute__((__const__)); # 185 "/usr/include/bits/mathcalls.h" 3 extern "C" long double floorl(long double) throw() __attribute__((__const__)); extern "C" long double __floorl(long double) throw() __attribute__((__const__)); # 188 "/usr/include/bits/mathcalls.h" 3 extern "C" long double fmodl(long double, long double) throw(); extern "C" long double __fmodl(long double, long double) throw(); # 193 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) int __isinfl(long double) throw() __attribute__((__const__)); # 196 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) int __finitel(long double) throw() __attribute__((__const__)); # 202 "/usr/include/bits/mathcalls.h" 3 extern "C" int isinfl(long double) throw() __attribute__((__const__)); # 205 "/usr/include/bits/mathcalls.h" 3 extern "C" int finitel(long double) throw() __attribute__((__const__)); # 208 "/usr/include/bits/mathcalls.h" 3 extern "C" long double dreml(long double, long double) throw(); extern "C" long double __dreml(long double, long double) throw(); # 212 "/usr/include/bits/mathcalls.h" 3 extern "C" long double significandl(long double) throw(); extern "C" long double __significandl(long double) throw(); # 218 "/usr/include/bits/mathcalls.h" 3 extern "C" long double copysignl(long double, long double) throw() __attribute__((__const__)); extern "C" long double __copysignl(long double, long double) throw() __attribute__((__const__)); # 225 "/usr/include/bits/mathcalls.h" 3 extern "C" long double nanl(const char *) throw() __attribute__((__const__)); extern "C" long double __nanl(const char *) throw() __attribute__((__const__)); # 231 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) int __isnanl(long double) throw() __attribute__((__const__)); # 235 "/usr/include/bits/mathcalls.h" 3 extern "C" int isnanl(long double) throw() __attribute__((__const__)); # 238 "/usr/include/bits/mathcalls.h" 3 extern "C" long double j0l(long double) throw(); extern "C" long double __j0l(long double) throw(); # 239 "/usr/include/bits/mathcalls.h" 3 extern "C" long double j1l(long double) throw(); extern "C" long double __j1l(long double) throw(); # 240 "/usr/include/bits/mathcalls.h" 3 extern "C" long double jnl(int, long double) throw(); extern "C" long double __jnl(int, long double) throw(); # 241 "/usr/include/bits/mathcalls.h" 3 extern "C" long double y0l(long double) throw(); extern "C" long double __y0l(long double) throw(); # 242 "/usr/include/bits/mathcalls.h" 3 extern "C" long double y1l(long double) throw(); extern "C" long double __y1l(long double) throw(); # 243 "/usr/include/bits/mathcalls.h" 3 extern "C" long double ynl(int, long double) throw(); extern "C" long double __ynl(int, long double) throw(); # 250 "/usr/include/bits/mathcalls.h" 3 extern "C" long double erfl(long double) throw(); extern "C" long double __erfl(long double) throw(); # 251 "/usr/include/bits/mathcalls.h" 3 extern "C" long double erfcl(long double) throw(); extern "C" long double __erfcl(long double) throw(); # 252 "/usr/include/bits/mathcalls.h" 3 extern "C" long double lgammal(long double) throw(); extern "C" long double __lgammal(long double) throw(); # 259 "/usr/include/bits/mathcalls.h" 3 extern "C" long double tgammal(long double) throw(); extern "C" long double __tgammal(long double) throw(); # 265 "/usr/include/bits/mathcalls.h" 3 extern "C" long double gammal(long double) throw(); extern "C" long double __gammal(long double) throw(); # 272 "/usr/include/bits/mathcalls.h" 3 extern "C" long double lgammal_r(long double, int *) throw(); extern "C" long double __lgammal_r(long double, int *) throw(); # 280 "/usr/include/bits/mathcalls.h" 3 extern "C" long double rintl(long double) throw(); extern "C" long double __rintl(long double) throw(); # 283 "/usr/include/bits/mathcalls.h" 3 extern "C" long double nextafterl(long double, long double) throw() __attribute__((__const__)); extern "C" long double __nextafterl(long double, long double) throw() __attribute__((__const__)); # 285 "/usr/include/bits/mathcalls.h" 3 extern "C" long double nexttowardl(long double, long double) throw() __attribute__((__const__)); extern "C" long double __nexttowardl(long double, long double) throw() __attribute__((__const__)); # 289 "/usr/include/bits/mathcalls.h" 3 extern "C" long double remainderl(long double, long double) throw(); extern "C" long double __remainderl(long double, long double) throw(); # 293 "/usr/include/bits/mathcalls.h" 3 extern "C" long double scalbnl(long double, int) throw(); extern "C" long double __scalbnl(long double, int) throw(); # 297 "/usr/include/bits/mathcalls.h" 3 extern "C" int ilogbl(long double) throw(); extern "C" int __ilogbl(long double) throw(); # 302 "/usr/include/bits/mathcalls.h" 3 extern "C" long double scalblnl(long double, long) throw(); extern "C" long double __scalblnl(long double, long) throw(); # 306 "/usr/include/bits/mathcalls.h" 3 extern "C" long double nearbyintl(long double) throw(); extern "C" long double __nearbyintl(long double) throw(); # 310 "/usr/include/bits/mathcalls.h" 3 extern "C" long double roundl(long double) throw() __attribute__((__const__)); extern "C" long double __roundl(long double) throw() __attribute__((__const__)); # 314 "/usr/include/bits/mathcalls.h" 3 extern "C" long double truncl(long double) throw() __attribute__((__const__)); extern "C" long double __truncl(long double) throw() __attribute__((__const__)); # 319 "/usr/include/bits/mathcalls.h" 3 extern "C" long double remquol(long double, long double, int *) throw(); extern "C" long double __remquol(long double, long double, int *) throw(); # 326 "/usr/include/bits/mathcalls.h" 3 extern "C" long lrintl(long double) throw(); extern "C" long __lrintl(long double) throw(); # 327 "/usr/include/bits/mathcalls.h" 3 extern "C" long long llrintl(long double) throw(); extern "C" long long __llrintl(long double) throw(); # 331 "/usr/include/bits/mathcalls.h" 3 extern "C" long lroundl(long double) throw(); extern "C" long __lroundl(long double) throw(); # 332 "/usr/include/bits/mathcalls.h" 3 extern "C" long long llroundl(long double) throw(); extern "C" long long __llroundl(long double) throw(); # 336 "/usr/include/bits/mathcalls.h" 3 extern "C" long double fdiml(long double, long double) throw(); extern "C" long double __fdiml(long double, long double) throw(); # 339 "/usr/include/bits/mathcalls.h" 3 extern "C" long double fmaxl(long double, long double) throw(); extern "C" long double __fmaxl(long double, long double) throw(); # 342 "/usr/include/bits/mathcalls.h" 3 extern "C" long double fminl(long double, long double) throw(); extern "C" long double __fminl(long double, long double) throw(); # 346 "/usr/include/bits/mathcalls.h" 3 extern "C" int __fpclassifyl(long double) throw() __attribute__((__const__)); # 350 "/usr/include/bits/mathcalls.h" 3 extern "C" __attribute__((weak)) int __signbitl(long double) throw() __attribute__((__const__)); # 355 "/usr/include/bits/mathcalls.h" 3 extern "C" long double fmal(long double, long double, long double) throw(); extern "C" long double __fmal(long double, long double, long double) throw(); # 364 "/usr/include/bits/mathcalls.h" 3 extern "C" long double scalbl(long double, long double) throw(); extern "C" long double __scalbl(long double, long double) throw(); # 161 "/usr/include/math.h" 3 extern "C" { extern int signgam; } # 203 "/usr/include/math.h" 3 enum { # 204 "/usr/include/math.h" 3 FP_NAN, # 206 "/usr/include/math.h" 3 FP_INFINITE, # 208 "/usr/include/math.h" 3 FP_ZERO, # 210 "/usr/include/math.h" 3 FP_SUBNORMAL, # 212 "/usr/include/math.h" 3 FP_NORMAL # 214 "/usr/include/math.h" 3 }; # 302 "/usr/include/math.h" 3 extern "C" { typedef # 296 "/usr/include/math.h" 3 enum { # 297 "/usr/include/math.h" 3 _IEEE_ = (-1), # 298 "/usr/include/math.h" 3 _SVID_ = 0, # 299 "/usr/include/math.h" 3 _XOPEN_, # 300 "/usr/include/math.h" 3 _POSIX_, # 301 "/usr/include/math.h" 3 _ISOC_ # 302 "/usr/include/math.h" 3 } _LIB_VERSION_TYPE; } # 307 "/usr/include/math.h" 3 extern "C" { extern _LIB_VERSION_TYPE _LIB_VERSION; } # 318 "/usr/include/math.h" 3 extern "C" { struct __exception { # 323 "/usr/include/math.h" 3 int type; # 324 "/usr/include/math.h" 3 char *name; # 325 "/usr/include/math.h" 3 double arg1; # 326 "/usr/include/math.h" 3 double arg2; # 327 "/usr/include/math.h" 3 double retval; # 328 "/usr/include/math.h" 3 }; } # 331 "/usr/include/math.h" 3 extern "C" int matherr(__exception *) throw(); # 67 "/usr/include/bits/waitstatus.h" 3 extern "C" { union wait { # 69 "/usr/include/bits/waitstatus.h" 3 int w_status; # 71 "/usr/include/bits/waitstatus.h" 3 struct { # 73 "/usr/include/bits/waitstatus.h" 3 unsigned __w_termsig:7; # 74 "/usr/include/bits/waitstatus.h" 3 unsigned __w_coredump:1; # 75 "/usr/include/bits/waitstatus.h" 3 unsigned __w_retcode:8; # 76 "/usr/include/bits/waitstatus.h" 3 unsigned:16; # 84 "/usr/include/bits/waitstatus.h" 3 } __wait_terminated; # 86 "/usr/include/bits/waitstatus.h" 3 struct { # 88 "/usr/include/bits/waitstatus.h" 3 unsigned __w_stopval:8; # 89 "/usr/include/bits/waitstatus.h" 3 unsigned __w_stopsig:8; # 90 "/usr/include/bits/waitstatus.h" 3 unsigned:16; # 97 "/usr/include/bits/waitstatus.h" 3 } __wait_stopped; # 98 "/usr/include/bits/waitstatus.h" 3 }; } # 102 "/usr/include/stdlib.h" 3 extern "C" { typedef # 99 "/usr/include/stdlib.h" 3 struct { # 100 "/usr/include/stdlib.h" 3 int quot; # 101 "/usr/include/stdlib.h" 3 int rem; # 102 "/usr/include/stdlib.h" 3 } div_t; } # 110 "/usr/include/stdlib.h" 3 extern "C" { typedef # 107 "/usr/include/stdlib.h" 3 struct { # 108 "/usr/include/stdlib.h" 3 long quot; # 109 "/usr/include/stdlib.h" 3 long rem; # 110 "/usr/include/stdlib.h" 3 } ldiv_t; } # 122 "/usr/include/stdlib.h" 3 extern "C" { typedef # 119 "/usr/include/stdlib.h" 3 struct { # 120 "/usr/include/stdlib.h" 3 long long quot; # 121 "/usr/include/stdlib.h" 3 long long rem; # 122 "/usr/include/stdlib.h" 3 } lldiv_t; } # 140 "/usr/include/stdlib.h" 3 extern "C" size_t __ctype_get_mb_cur_max() throw(); # 145 "/usr/include/stdlib.h" 3 extern "C" double atof(const char *) throw() __attribute__((__pure__)) __attribute__((nonnull(1))); # 148 "/usr/include/stdlib.h" 3 extern "C" int atoi(const char *) throw() __attribute__((__pure__)) __attribute__((nonnull(1))); # 151 "/usr/include/stdlib.h" 3 extern "C" long atol(const char *) throw() __attribute__((__pure__)) __attribute__((nonnull(1))); # 158 "/usr/include/stdlib.h" 3 extern "C" long long atoll(const char *) throw() __attribute__((__pure__)) __attribute__((nonnull(1))); # 165 "/usr/include/stdlib.h" 3 extern "C" double strtod(const char *__restrict__, char **__restrict__) throw() __attribute__((nonnull(1))); # 173 "/usr/include/stdlib.h" 3 extern "C" float strtof(const char *__restrict__, char **__restrict__) throw() __attribute__((nonnull(1))); # 176 "/usr/include/stdlib.h" 3 extern "C" long double strtold(const char *__restrict__, char **__restrict__) throw() __attribute__((nonnull(1))); # 184 "/usr/include/stdlib.h" 3 extern "C" long strtol(const char *__restrict__, char **__restrict__, int) throw() __attribute__((nonnull(1))); # 188 "/usr/include/stdlib.h" 3 extern "C" unsigned long strtoul(const char *__restrict__, char **__restrict__, int) throw() __attribute__((nonnull(1))); # 196 "/usr/include/stdlib.h" 3 extern "C" long long strtoq(const char *__restrict__, char **__restrict__, int) throw() __attribute__((nonnull(1))); # 201 "/usr/include/stdlib.h" 3 extern "C" unsigned long long strtouq(const char *__restrict__, char **__restrict__, int) throw() __attribute__((nonnull(1))); # 210 "/usr/include/stdlib.h" 3 extern "C" long long strtoll(const char *__restrict__, char **__restrict__, int) throw() __attribute__((nonnull(1))); # 215 "/usr/include/stdlib.h" 3 extern "C" unsigned long long strtoull(const char *__restrict__, char **__restrict__, int) throw() __attribute__((nonnull(1))); # 240 "/usr/include/stdlib.h" 3 extern "C" long strtol_l(const char *__restrict__, char **__restrict__, int, __locale_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(4))); # 244 "/usr/include/stdlib.h" 3 extern "C" unsigned long strtoul_l(const char *__restrict__, char **__restrict__, int, __locale_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(4))); # 250 "/usr/include/stdlib.h" 3 extern "C" long long strtoll_l(const char *__restrict__, char **__restrict__, int, __locale_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(4))); # 256 "/usr/include/stdlib.h" 3 extern "C" unsigned long long strtoull_l(const char *__restrict__, char **__restrict__, int, __locale_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(4))); # 261 "/usr/include/stdlib.h" 3 extern "C" double strtod_l(const char *__restrict__, char **__restrict__, __locale_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(3))); # 265 "/usr/include/stdlib.h" 3 extern "C" float strtof_l(const char *__restrict__, char **__restrict__, __locale_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(3))); # 269 "/usr/include/stdlib.h" 3 extern "C" long double strtold_l(const char *__restrict__, char **__restrict__, __locale_t) throw() __attribute__((nonnull(1))) __attribute__((nonnull(3))); # 311 "/usr/include/stdlib.h" 3 extern "C" char *l64a(long) throw(); # 314 "/usr/include/stdlib.h" 3 extern "C" long a64l(const char *) throw() __attribute__((__pure__)) __attribute__((nonnull(1))); # 34 "/usr/include/sys/types.h" 3 extern "C" { typedef __u_char u_char; } # 35 "/usr/include/sys/types.h" 3 extern "C" { typedef __u_short u_short; } # 36 "/usr/include/sys/types.h" 3 extern "C" { typedef __u_int u_int; } # 37 "/usr/include/sys/types.h" 3 extern "C" { typedef __u_long u_long; } # 38 "/usr/include/sys/types.h" 3 extern "C" { typedef __quad_t quad_t; } # 39 "/usr/include/sys/types.h" 3 extern "C" { typedef __u_quad_t u_quad_t; } # 40 "/usr/include/sys/types.h" 3 extern "C" { typedef __fsid_t fsid_t; } # 45 "/usr/include/sys/types.h" 3 extern "C" { typedef __loff_t loff_t; } # 49 "/usr/include/sys/types.h" 3 extern "C" { typedef __ino_t ino_t; } # 56 "/usr/include/sys/types.h" 3 extern "C" { typedef __ino64_t ino64_t; } # 61 "/usr/include/sys/types.h" 3 extern "C" { typedef __dev_t dev_t; } # 66 "/usr/include/sys/types.h" 3 extern "C" { typedef __gid_t gid_t; } # 71 "/usr/include/sys/types.h" 3 extern "C" { typedef __mode_t mode_t; } # 76 "/usr/include/sys/types.h" 3 extern "C" { typedef __nlink_t nlink_t; } # 81 "/usr/include/sys/types.h" 3 extern "C" { typedef __uid_t uid_t; } # 87 "/usr/include/sys/types.h" 3 extern "C" { typedef __off_t off_t; } # 94 "/usr/include/sys/types.h" 3 extern "C" { typedef __off64_t off64_t; } # 105 "/usr/include/sys/types.h" 3 extern "C" { typedef __id_t id_t; } # 110 "/usr/include/sys/types.h" 3 extern "C" { typedef __ssize_t ssize_t; } # 116 "/usr/include/sys/types.h" 3 extern "C" { typedef __daddr_t daddr_t; } # 117 "/usr/include/sys/types.h" 3 extern "C" { typedef __caddr_t caddr_t; } # 123 "/usr/include/sys/types.h" 3 extern "C" { typedef __key_t key_t; } # 137 "/usr/include/sys/types.h" 3 extern "C" { typedef __useconds_t useconds_t; } # 141 "/usr/include/sys/types.h" 3 extern "C" { typedef __suseconds_t suseconds_t; } # 151 "/usr/include/sys/types.h" 3 extern "C" { typedef unsigned long ulong; } # 152 "/usr/include/sys/types.h" 3 extern "C" { typedef unsigned short ushort; } # 153 "/usr/include/sys/types.h" 3 extern "C" { typedef unsigned uint; } # 195 "/usr/include/sys/types.h" 3 extern "C" { typedef signed char int8_t; } # 196 "/usr/include/sys/types.h" 3 extern "C" { typedef short int16_t; } # 197 "/usr/include/sys/types.h" 3 extern "C" { typedef int int32_t; } # 198 "/usr/include/sys/types.h" 3 extern "C" { typedef long int64_t; } # 201 "/usr/include/sys/types.h" 3 extern "C" { typedef unsigned char u_int8_t; } # 202 "/usr/include/sys/types.h" 3 extern "C" { typedef unsigned short u_int16_t; } # 203 "/usr/include/sys/types.h" 3 extern "C" { typedef unsigned u_int32_t; } # 204 "/usr/include/sys/types.h" 3 extern "C" { typedef unsigned long u_int64_t; } # 206 "/usr/include/sys/types.h" 3 extern "C" { typedef int register_t; } # 24 "/usr/include/bits/sigset.h" 3 extern "C" { typedef int __sig_atomic_t; } # 32 "/usr/include/bits/sigset.h" 3 extern "C" { typedef # 30 "/usr/include/bits/sigset.h" 3 struct { # 31 "/usr/include/bits/sigset.h" 3 unsigned long __val[((1024) / ((8) * sizeof(unsigned long)))]; # 32 "/usr/include/bits/sigset.h" 3 } __sigset_t; } # 38 "/usr/include/sys/select.h" 3 extern "C" { typedef __sigset_t sigset_t; } # 75 "/usr/include/bits/time.h" 3 extern "C" { struct timeval { # 77 "/usr/include/bits/time.h" 3 __time_t tv_sec; # 78 "/usr/include/bits/time.h" 3 __suseconds_t tv_usec; # 79 "/usr/include/bits/time.h" 3 }; } # 55 "/usr/include/sys/select.h" 3 extern "C" { typedef long __fd_mask; } # 78 "/usr/include/sys/select.h" 3 extern "C" { typedef # 68 "/usr/include/sys/select.h" 3 struct { # 72 "/usr/include/sys/select.h" 3 __fd_mask fds_bits[(1024 / (8 * ((int)sizeof(__fd_mask))))]; # 78 "/usr/include/sys/select.h" 3 } fd_set; } # 85 "/usr/include/sys/select.h" 3 extern "C" { typedef __fd_mask fd_mask; } # 109 "/usr/include/sys/select.h" 3 extern "C" int select(int, fd_set *__restrict__, fd_set *__restrict__, fd_set *__restrict__, timeval *__restrict__); # 121 "/usr/include/sys/select.h" 3 extern "C" int pselect(int, fd_set *__restrict__, fd_set *__restrict__, fd_set *__restrict__, const timespec *__restrict__, const __sigset_t *__restrict__); # 31 "/usr/include/sys/sysmacros.h" 3 extern "C" unsigned gnu_dev_major(unsigned long long) throw(); # 34 "/usr/include/sys/sysmacros.h" 3 extern "C" unsigned gnu_dev_minor(unsigned long long) throw(); # 37 "/usr/include/sys/sysmacros.h" 3 extern "C" unsigned long long gnu_dev_makedev(unsigned, unsigned) throw(); # 229 "/usr/include/sys/types.h" 3 extern "C" { typedef __blksize_t blksize_t; } # 236 "/usr/include/sys/types.h" 3 extern "C" { typedef __blkcnt_t blkcnt_t; } # 240 "/usr/include/sys/types.h" 3 extern "C" { typedef __fsblkcnt_t fsblkcnt_t; } # 244 "/usr/include/sys/types.h" 3 extern "C" { typedef __fsfilcnt_t fsfilcnt_t; } # 263 "/usr/include/sys/types.h" 3 extern "C" { typedef __blkcnt64_t blkcnt64_t; } # 264 "/usr/include/sys/types.h" 3 extern "C" { typedef __fsblkcnt64_t fsblkcnt64_t; } # 265 "/usr/include/sys/types.h" 3 extern "C" { typedef __fsfilcnt64_t fsfilcnt64_t; } # 50 "/usr/include/bits/pthreadtypes.h" 3 extern "C" { typedef unsigned long pthread_t; } # 57 "/usr/include/bits/pthreadtypes.h" 3 extern "C" { typedef # 54 "/usr/include/bits/pthreadtypes.h" 3 union { # 55 "/usr/include/bits/pthreadtypes.h" 3 char __size[56]; # 56 "/usr/include/bits/pthreadtypes.h" 3 long __align; # 57 "/usr/include/bits/pthreadtypes.h" 3 } pthread_attr_t; } # 65 "/usr/include/bits/pthreadtypes.h" 3 extern "C" { typedef # 61 "/usr/include/bits/pthreadtypes.h" 3 struct __pthread_internal_list { # 63 "/usr/include/bits/pthreadtypes.h" 3 __pthread_internal_list *__prev; # 64 "/usr/include/bits/pthreadtypes.h" 3 __pthread_internal_list *__next; # 65 "/usr/include/bits/pthreadtypes.h" 3 } __pthread_list_t; } # 104 "/usr/include/bits/pthreadtypes.h" 3 extern "C" { typedef # 77 "/usr/include/bits/pthreadtypes.h" 3 union { # 78 "/usr/include/bits/pthreadtypes.h" 3 struct __pthread_mutex_s { # 80 "/usr/include/bits/pthreadtypes.h" 3 int __lock; # 81 "/usr/include/bits/pthreadtypes.h" 3 unsigned __count; # 82 "/usr/include/bits/pthreadtypes.h" 3 int __owner; # 84 "/usr/include/bits/pthreadtypes.h" 3 unsigned __nusers; # 88 "/usr/include/bits/pthreadtypes.h" 3 int __kind; # 90 "/usr/include/bits/pthreadtypes.h" 3 int __spins; # 91 "/usr/include/bits/pthreadtypes.h" 3 __pthread_list_t __list; # 101 "/usr/include/bits/pthreadtypes.h" 3 } __data; # 102 "/usr/include/bits/pthreadtypes.h" 3 char __size[40]; # 103 "/usr/include/bits/pthreadtypes.h" 3 long __align; # 104 "/usr/include/bits/pthreadtypes.h" 3 } pthread_mutex_t; } # 110 "/usr/include/bits/pthreadtypes.h" 3 extern "C" { typedef # 107 "/usr/include/bits/pthreadtypes.h" 3 union { # 108 "/usr/include/bits/pthreadtypes.h" 3 char __size[4]; # 109 "/usr/include/bits/pthreadtypes.h" 3 int __align; # 110 "/usr/include/bits/pthreadtypes.h" 3 } pthread_mutexattr_t; } # 130 "/usr/include/bits/pthreadtypes.h" 3 extern "C" { typedef # 116 "/usr/include/bits/pthreadtypes.h" 3 union { # 118 "/usr/include/bits/pthreadtypes.h" 3 struct { # 119 "/usr/include/bits/pthreadtypes.h" 3 int __lock; # 120 "/usr/include/bits/pthreadtypes.h" 3 unsigned __futex; # 121 "/usr/include/bits/pthreadtypes.h" 3 __extension__ unsigned long long __total_seq; # 122 "/usr/include/bits/pthreadtypes.h" 3 __extension__ unsigned long long __wakeup_seq; # 123 "/usr/include/bits/pthreadtypes.h" 3 __extension__ unsigned long long __woken_seq; # 124 "/usr/include/bits/pthreadtypes.h" 3 void *__mutex; # 125 "/usr/include/bits/pthreadtypes.h" 3 unsigned __nwaiters; # 126 "/usr/include/bits/pthreadtypes.h" 3 unsigned __broadcast_seq; # 127 "/usr/include/bits/pthreadtypes.h" 3 } __data; # 128 "/usr/include/bits/pthreadtypes.h" 3 char __size[48]; # 129 "/usr/include/bits/pthreadtypes.h" 3 __extension__ long long __align; # 130 "/usr/include/bits/pthreadtypes.h" 3 } pthread_cond_t; } # 136 "/usr/include/bits/pthreadtypes.h" 3 extern "C" { typedef # 133 "/usr/include/bits/pthreadtypes.h" 3 union { # 134 "/usr/include/bits/pthreadtypes.h" 3 char __size[4]; # 135 "/usr/include/bits/pthreadtypes.h" 3 int __align; # 136 "/usr/include/bits/pthreadtypes.h" 3 } pthread_condattr_t; } # 140 "/usr/include/bits/pthreadtypes.h" 3 extern "C" { typedef unsigned pthread_key_t; } # 144 "/usr/include/bits/pthreadtypes.h" 3 extern "C" { typedef int pthread_once_t; } # 189 "/usr/include/bits/pthreadtypes.h" 3 extern "C" { typedef # 151 "/usr/include/bits/pthreadtypes.h" 3 union { # 154 "/usr/include/bits/pthreadtypes.h" 3 struct { # 155 "/usr/include/bits/pthreadtypes.h" 3 int __lock; # 156 "/usr/include/bits/pthreadtypes.h" 3 unsigned __nr_readers; # 157 "/usr/include/bits/pthreadtypes.h" 3 unsigned __readers_wakeup; # 158 "/usr/include/bits/pthreadtypes.h" 3 unsigned __writer_wakeup; # 159 "/usr/include/bits/pthreadtypes.h" 3 unsigned __nr_readers_queued; # 160 "/usr/include/bits/pthreadtypes.h" 3 unsigned __nr_writers_queued; # 161 "/usr/include/bits/pthreadtypes.h" 3 int __writer; # 162 "/usr/include/bits/pthreadtypes.h" 3 int __shared; # 163 "/usr/include/bits/pthreadtypes.h" 3 unsigned long __pad1; # 164 "/usr/include/bits/pthreadtypes.h" 3 unsigned long __pad2; # 167 "/usr/include/bits/pthreadtypes.h" 3 unsigned __flags; # 168 "/usr/include/bits/pthreadtypes.h" 3 } __data; # 187 "/usr/include/bits/pthreadtypes.h" 3 char __size[56]; # 188 "/usr/include/bits/pthreadtypes.h" 3 long __align; # 189 "/usr/include/bits/pthreadtypes.h" 3 } pthread_rwlock_t; } # 195 "/usr/include/bits/pthreadtypes.h" 3 extern "C" { typedef # 192 "/usr/include/bits/pthreadtypes.h" 3 union { # 193 "/usr/include/bits/pthreadtypes.h" 3 char __size[8]; # 194 "/usr/include/bits/pthreadtypes.h" 3 long __align; # 195 "/usr/include/bits/pthreadtypes.h" 3 } pthread_rwlockattr_t; } # 201 "/usr/include/bits/pthreadtypes.h" 3 extern "C" { typedef volatile int pthread_spinlock_t; } # 210 "/usr/include/bits/pthreadtypes.h" 3 extern "C" { typedef # 207 "/usr/include/bits/pthreadtypes.h" 3 union { # 208 "/usr/include/bits/pthreadtypes.h" 3 char __size[32]; # 209 "/usr/include/bits/pthreadtypes.h" 3 long __align; # 210 "/usr/include/bits/pthreadtypes.h" 3 } pthread_barrier_t; } # 216 "/usr/include/bits/pthreadtypes.h" 3 extern "C" { typedef # 213 "/usr/include/bits/pthreadtypes.h" 3 union { # 214 "/usr/include/bits/pthreadtypes.h" 3 char __size[4]; # 215 "/usr/include/bits/pthreadtypes.h" 3 int __align; # 216 "/usr/include/bits/pthreadtypes.h" 3 } pthread_barrierattr_t; } # 327 "/usr/include/stdlib.h" 3 extern "C" long random() throw(); # 330 "/usr/include/stdlib.h" 3 extern "C" void srandom(unsigned) throw(); # 336 "/usr/include/stdlib.h" 3 extern "C" char *initstate(unsigned, char *, size_t) throw() __attribute__((nonnull(2))); # 341 "/usr/include/stdlib.h" 3 extern "C" char *setstate(char *) throw() __attribute__((nonnull(1))); # 349 "/usr/include/stdlib.h" 3 extern "C" { struct random_data { # 351 "/usr/include/stdlib.h" 3 int32_t *fptr; # 352 "/usr/include/stdlib.h" 3 int32_t *rptr; # 353 "/usr/include/stdlib.h" 3 int32_t *state; # 354 "/usr/include/stdlib.h" 3 int rand_type; # 355 "/usr/include/stdlib.h" 3 int rand_deg; # 356 "/usr/include/stdlib.h" 3 int rand_sep; # 357 "/usr/include/stdlib.h" 3 int32_t *end_ptr; # 358 "/usr/include/stdlib.h" 3 }; } # 360 "/usr/include/stdlib.h" 3 extern "C" int random_r(random_data *__restrict__, int32_t *__restrict__) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 363 "/usr/include/stdlib.h" 3 extern "C" int srandom_r(unsigned, random_data *) throw() __attribute__((nonnull(2))); # 366 "/usr/include/stdlib.h" 3 extern "C" int initstate_r(unsigned, char *__restrict__, size_t, random_data *__restrict__) throw() __attribute__((nonnull(2))) __attribute__((nonnull(4))); # 371 "/usr/include/stdlib.h" 3 extern "C" int setstate_r(char *__restrict__, random_data *__restrict__) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 380 "/usr/include/stdlib.h" 3 extern "C" int rand() throw(); # 382 "/usr/include/stdlib.h" 3 extern "C" void srand(unsigned) throw(); # 387 "/usr/include/stdlib.h" 3 extern "C" int rand_r(unsigned *) throw(); # 395 "/usr/include/stdlib.h" 3 extern "C" double drand48() throw(); # 396 "/usr/include/stdlib.h" 3 extern "C" double erand48(unsigned short [3]) throw() __attribute__((nonnull(1))); # 399 "/usr/include/stdlib.h" 3 extern "C" long lrand48() throw(); # 400 "/usr/include/stdlib.h" 3 extern "C" long nrand48(unsigned short [3]) throw() __attribute__((nonnull(1))); # 404 "/usr/include/stdlib.h" 3 extern "C" long mrand48() throw(); # 405 "/usr/include/stdlib.h" 3 extern "C" long jrand48(unsigned short [3]) throw() __attribute__((nonnull(1))); # 409 "/usr/include/stdlib.h" 3 extern "C" void srand48(long) throw(); # 410 "/usr/include/stdlib.h" 3 extern "C" unsigned short *seed48(unsigned short [3]) throw() __attribute__((nonnull(1))); # 412 "/usr/include/stdlib.h" 3 extern "C" void lcong48(unsigned short [7]) throw() __attribute__((nonnull(1))); # 418 "/usr/include/stdlib.h" 3 extern "C" { struct drand48_data { # 420 "/usr/include/stdlib.h" 3 unsigned short __x[3]; # 421 "/usr/include/stdlib.h" 3 unsigned short __old_x[3]; # 422 "/usr/include/stdlib.h" 3 unsigned short __c; # 423 "/usr/include/stdlib.h" 3 unsigned short __init; # 424 "/usr/include/stdlib.h" 3 unsigned long long __a; # 425 "/usr/include/stdlib.h" 3 }; } # 428 "/usr/include/stdlib.h" 3 extern "C" int drand48_r(drand48_data *__restrict__, double *__restrict__) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 430 "/usr/include/stdlib.h" 3 extern "C" int erand48_r(unsigned short [3], drand48_data *__restrict__, double *__restrict__) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 435 "/usr/include/stdlib.h" 3 extern "C" int lrand48_r(drand48_data *__restrict__, long *__restrict__) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 438 "/usr/include/stdlib.h" 3 extern "C" int nrand48_r(unsigned short [3], drand48_data *__restrict__, long *__restrict__) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 444 "/usr/include/stdlib.h" 3 extern "C" int mrand48_r(drand48_data *__restrict__, long *__restrict__) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 447 "/usr/include/stdlib.h" 3 extern "C" int jrand48_r(unsigned short [3], drand48_data *__restrict__, long *__restrict__) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 453 "/usr/include/stdlib.h" 3 extern "C" int srand48_r(long, drand48_data *) throw() __attribute__((nonnull(2))); # 456 "/usr/include/stdlib.h" 3 extern "C" int seed48_r(unsigned short [3], drand48_data *) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 459 "/usr/include/stdlib.h" 3 extern "C" int lcong48_r(unsigned short [7], drand48_data *) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))); # 471 "/usr/include/stdlib.h" 3 extern "C" void *malloc(size_t) throw() __attribute__((__malloc__)); # 473 "/usr/include/stdlib.h" 3 extern "C" void *calloc(size_t, size_t) throw() __attribute__((__malloc__)); # 485 "/usr/include/stdlib.h" 3 extern "C" void *realloc(void *, size_t) throw() __attribute__((__warn_unused_result__)); # 488 "/usr/include/stdlib.h" 3 extern "C" void free(void *) throw(); # 493 "/usr/include/stdlib.h" 3 extern "C" void cfree(void *) throw(); # 33 "/usr/include/alloca.h" 3 extern "C" void *alloca(size_t) throw(); # 503 "/usr/include/stdlib.h" 3 extern "C" void *valloc(size_t) throw() __attribute__((__malloc__)); # 508 "/usr/include/stdlib.h" 3 extern "C" int posix_memalign(void **, size_t, size_t) throw() __attribute__((nonnull(1))); # 514 "/usr/include/stdlib.h" 3 extern "C" void abort() throw() __attribute__((__noreturn__)); # 518 "/usr/include/stdlib.h" 3 extern "C" int atexit(void (*)(void)) throw() __attribute__((nonnull(1))); # 525 "/usr/include/stdlib.h" 3 int at_quick_exit(void (*)(void)) throw() __asm__("at_quick_exit") __attribute__((nonnull(1))); # 536 "/usr/include/stdlib.h" 3 extern "C" int on_exit(void (*)(int, void *), void *) throw() __attribute__((nonnull(1))); # 544 "/usr/include/stdlib.h" 3 extern "C" void exit(int) throw() __attribute__((__noreturn__)); # 552 "/usr/include/stdlib.h" 3 extern "C" void quick_exit(int) throw() __attribute__((__noreturn__)); # 560 "/usr/include/stdlib.h" 3 extern "C" void _Exit(int) throw() __attribute__((__noreturn__)); # 567 "/usr/include/stdlib.h" 3 extern "C" char *getenv(const char *) throw() __attribute__((nonnull(1))); # 572 "/usr/include/stdlib.h" 3 extern "C" char *__secure_getenv(const char *) throw() __attribute__((nonnull(1))); # 579 "/usr/include/stdlib.h" 3 extern "C" int putenv(char *) throw() __attribute__((nonnull(1))); # 585 "/usr/include/stdlib.h" 3 extern "C" int setenv(const char *, const char *, int) throw() __attribute__((nonnull(2))); # 589 "/usr/include/stdlib.h" 3 extern "C" int unsetenv(const char *) throw() __attribute__((nonnull(1))); # 596 "/usr/include/stdlib.h" 3 extern "C" int clearenv() throw(); # 606 "/usr/include/stdlib.h" 3 extern "C" char *mktemp(char *) throw() __attribute__((nonnull(1))); # 620 "/usr/include/stdlib.h" 3 extern "C" int mkstemp(char *) __attribute__((nonnull(1))); # 630 "/usr/include/stdlib.h" 3 extern "C" int mkstemp64(char *) __attribute__((nonnull(1))); # 642 "/usr/include/stdlib.h" 3 extern "C" int mkstemps(char *, int) __attribute__((nonnull(1))); # 652 "/usr/include/stdlib.h" 3 extern "C" int mkstemps64(char *, int) __attribute__((nonnull(1))); # 663 "/usr/include/stdlib.h" 3 extern "C" char *mkdtemp(char *) throw() __attribute__((nonnull(1))); # 674 "/usr/include/stdlib.h" 3 extern "C" int mkostemp(char *, int) __attribute__((nonnull(1))); # 684 "/usr/include/stdlib.h" 3 extern "C" int mkostemp64(char *, int) __attribute__((nonnull(1))); # 694 "/usr/include/stdlib.h" 3 extern "C" int mkostemps(char *, int, int) __attribute__((nonnull(1))); # 706 "/usr/include/stdlib.h" 3 extern "C" int mkostemps64(char *, int, int) __attribute__((nonnull(1))); # 717 "/usr/include/stdlib.h" 3 extern "C" int system(const char *); # 724 "/usr/include/stdlib.h" 3 extern "C" char *canonicalize_file_name(const char *) throw() __attribute__((nonnull(1))); # 734 "/usr/include/stdlib.h" 3 extern "C" char *realpath(const char *__restrict__, char *__restrict__) throw(); # 742 "/usr/include/stdlib.h" 3 extern "C" { typedef int (*__compar_fn_t)(const void *, const void *); } # 745 "/usr/include/stdlib.h" 3 extern "C" { typedef __compar_fn_t comparison_fn_t; } # 749 "/usr/include/stdlib.h" 3 extern "C" { typedef int (*__compar_d_fn_t)(const void *, const void *, void *); } # 755 "/usr/include/stdlib.h" 3 extern "C" void *bsearch(const void *, const void *, size_t, size_t, __compar_fn_t) __attribute__((nonnull(1))) __attribute__((nonnull(2))) __attribute__((nonnull(5))); # 761 "/usr/include/stdlib.h" 3 extern "C" void qsort(void *, size_t, size_t, __compar_fn_t) __attribute__((nonnull(1))) __attribute__((nonnull(4))); # 764 "/usr/include/stdlib.h" 3 extern "C" void qsort_r(void *, size_t, size_t, __compar_d_fn_t, void *) __attribute__((nonnull(1))) __attribute__((nonnull(4))); # 771 "/usr/include/stdlib.h" 3 extern "C" __attribute__((weak)) int abs(int) throw() __attribute__((__const__)); # 772 "/usr/include/stdlib.h" 3 extern "C" __attribute__((weak)) long labs(long) throw() __attribute__((__const__)); # 776 "/usr/include/stdlib.h" 3 extern "C" __attribute__((weak)) long long llabs(long long) throw() __attribute__((__const__)); # 785 "/usr/include/stdlib.h" 3 extern "C" div_t div(int, int) throw() __attribute__((__const__)); # 787 "/usr/include/stdlib.h" 3 extern "C" ldiv_t ldiv(long, long) throw() __attribute__((__const__)); # 793 "/usr/include/stdlib.h" 3 extern "C" lldiv_t lldiv(long long, long long) throw() __attribute__((__const__)); # 808 "/usr/include/stdlib.h" 3 extern "C" char *ecvt(double, int, int *__restrict__, int *__restrict__) throw() __attribute__((nonnull(3))) __attribute__((nonnull(4))); # 814 "/usr/include/stdlib.h" 3 extern "C" char *fcvt(double, int, int *__restrict__, int *__restrict__) throw() __attribute__((nonnull(3))) __attribute__((nonnull(4))); # 820 "/usr/include/stdlib.h" 3 extern "C" char *gcvt(double, int, char *) throw() __attribute__((nonnull(3))); # 826 "/usr/include/stdlib.h" 3 extern "C" char *qecvt(long double, int, int *__restrict__, int *__restrict__) throw() __attribute__((nonnull(3))) __attribute__((nonnull(4))); # 829 "/usr/include/stdlib.h" 3 extern "C" char *qfcvt(long double, int, int *__restrict__, int *__restrict__) throw() __attribute__((nonnull(3))) __attribute__((nonnull(4))); # 832 "/usr/include/stdlib.h" 3 extern "C" char *qgcvt(long double, int, char *) throw() __attribute__((nonnull(3))); # 838 "/usr/include/stdlib.h" 3 extern "C" int ecvt_r(double, int, int *__restrict__, int *__restrict__, char *__restrict__, size_t) throw() __attribute__((nonnull(3))) __attribute__((nonnull(4))) __attribute__((nonnull(5))); # 841 "/usr/include/stdlib.h" 3 extern "C" int fcvt_r(double, int, int *__restrict__, int *__restrict__, char *__restrict__, size_t) throw() __attribute__((nonnull(3))) __attribute__((nonnull(4))) __attribute__((nonnull(5))); # 845 "/usr/include/stdlib.h" 3 extern "C" int qecvt_r(long double, int, int *__restrict__, int *__restrict__, char *__restrict__, size_t) throw() __attribute__((nonnull(3))) __attribute__((nonnull(4))) __attribute__((nonnull(5))); # 849 "/usr/include/stdlib.h" 3 extern "C" int qfcvt_r(long double, int, int *__restrict__, int *__restrict__, char *__restrict__, size_t) throw() __attribute__((nonnull(3))) __attribute__((nonnull(4))) __attribute__((nonnull(5))); # 860 "/usr/include/stdlib.h" 3 extern "C" int mblen(const char *, size_t) throw(); # 863 "/usr/include/stdlib.h" 3 extern "C" int mbtowc(wchar_t *__restrict__, const char *__restrict__, size_t) throw(); # 867 "/usr/include/stdlib.h" 3 extern "C" int wctomb(char *, wchar_t) throw(); # 871 "/usr/include/stdlib.h" 3 extern "C" size_t mbstowcs(wchar_t *__restrict__, const char *__restrict__, size_t) throw(); # 874 "/usr/include/stdlib.h" 3 extern "C" size_t wcstombs(char *__restrict__, const wchar_t *__restrict__, size_t) throw(); # 885 "/usr/include/stdlib.h" 3 extern "C" int rpmatch(const char *) throw() __attribute__((nonnull(1))); # 896 "/usr/include/stdlib.h" 3 extern "C" int getsubopt(char **__restrict__, char *const *__restrict__, char **__restrict__) throw() __attribute__((nonnull(1))) __attribute__((nonnull(2))) __attribute__((nonnull(3))); # 905 "/usr/include/stdlib.h" 3 extern "C" void setkey(const char *) throw() __attribute__((nonnull(1))); # 913 "/usr/include/stdlib.h" 3 extern "C" int posix_openpt(int); # 921 "/usr/include/stdlib.h" 3 extern "C" int grantpt(int) throw(); # 925 "/usr/include/stdlib.h" 3 extern "C" int unlockpt(int) throw(); # 930 "/usr/include/stdlib.h" 3 extern "C" char *ptsname(int) throw(); # 937 "/usr/include/stdlib.h" 3 extern "C" int ptsname_r(int, char *, size_t) throw() __attribute__((nonnull(2))); # 941 "/usr/include/stdlib.h" 3 extern "C" int getpt(); # 948 "/usr/include/stdlib.h" 3 extern "C" int getloadavg(double [], int) throw() __attribute__((nonnull(1))); # 69 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 namespace __gnu_cxx __attribute__((visibility("default"))) { # 71 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Iterator, class _Container> class __normal_iterator; # 74 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 } # 76 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 namespace std __attribute__((visibility("default"))) { # 78 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __true_type { }; # 79 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __false_type { }; # 81 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< bool __T0> # 82 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __truth_type { # 83 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __false_type __type; }; # 86 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __truth_type< true> { # 87 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; }; # 91 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Sp, class _Tp> # 92 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __traitor { # 94 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = (((bool)_Sp::__value) || ((bool)_Tp::__value))}; # 95 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef typename __truth_type< __value> ::__type __type; # 96 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 99 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class , class > # 100 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __are_same { # 102 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value}; # 103 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __false_type __type; # 104 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 106 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Tp> # 107 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __are_same< _Tp, _Tp> { # 109 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 110 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 111 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 114 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Tp> # 115 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __is_void { # 117 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value}; # 118 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __false_type __type; # 119 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 122 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_void< void> { # 124 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 125 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 126 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 131 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Tp> # 132 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __is_integer { # 134 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value}; # 135 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __false_type __type; # 136 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 142 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_integer< bool> { # 144 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 145 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 146 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 149 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_integer< char> { # 151 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 152 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 153 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 156 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_integer< signed char> { # 158 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 159 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 160 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 163 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_integer< unsigned char> { # 165 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 166 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 167 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 171 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_integer< wchar_t> { # 173 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 174 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 175 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 195 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_integer< short> { # 197 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 198 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 199 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 202 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_integer< unsigned short> { # 204 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 205 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 206 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 209 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_integer< int> { # 211 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 212 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 213 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 216 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_integer< unsigned> { # 218 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 219 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 220 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 223 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_integer< long> { # 225 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 226 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 227 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 230 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_integer< unsigned long> { # 232 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 233 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 234 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 237 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_integer< long long> { # 239 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 240 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 241 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 244 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_integer< unsigned long long> { # 246 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 247 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 248 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 253 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Tp> # 254 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __is_floating { # 256 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value}; # 257 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __false_type __type; # 258 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 262 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_floating< float> { # 264 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 265 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 266 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 269 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_floating< double> { # 271 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 272 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 273 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 276 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_floating< long double> { # 278 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 279 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 280 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 285 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Tp> # 286 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __is_pointer { # 288 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value}; # 289 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __false_type __type; # 290 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 292 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Tp> # 293 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __is_pointer< _Tp *> { # 295 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 296 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 297 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 302 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Tp> # 303 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __is_normal_iterator { # 305 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value}; # 306 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __false_type __type; # 307 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 309 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Iterator, class _Container> # 310 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __is_normal_iterator< __gnu_cxx::__normal_iterator< _Iterator, _Container> > { # 313 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 314 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 315 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 320 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Tp> # 321 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __is_arithmetic : public __traitor< __is_integer< _Tp> , __is_floating< _Tp> > { # 323 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 328 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Tp> # 329 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __is_fundamental : public __traitor< __is_void< _Tp> , __is_arithmetic< _Tp> > { # 331 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 336 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Tp> # 337 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __is_scalar : public __traitor< __is_arithmetic< _Tp> , __is_pointer< _Tp> > { # 339 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 344 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Tp> # 345 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __is_char { # 347 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value}; # 348 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __false_type __type; # 349 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 352 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_char< char> { # 354 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 355 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 356 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 360 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_char< wchar_t> { # 362 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 363 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 364 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 367 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Tp> # 368 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __is_byte { # 370 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value}; # 371 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __false_type __type; # 372 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 375 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_byte< char> { # 377 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 378 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 379 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 382 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_byte< signed char> { # 384 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 385 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 386 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 389 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template<> struct __is_byte< unsigned char> { # 391 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value = 1}; # 392 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __true_type __type; # 393 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 398 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 template< class _Tp> # 399 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 struct __is_move_iterator { # 401 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 enum { __value}; # 402 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 typedef __false_type __type; # 403 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 }; # 417 "/usr/include/c++/4.4/bits/cpp_type_traits.h" 3 } # 37 "/usr/include/c++/4.4/ext/type_traits.h" 3 namespace __gnu_cxx __attribute__((visibility("default"))) { # 40 "/usr/include/c++/4.4/ext/type_traits.h" 3 template< bool __T1, class > # 41 "/usr/include/c++/4.4/ext/type_traits.h" 3 struct __enable_if { # 42 "/usr/include/c++/4.4/ext/type_traits.h" 3 }; # 44 "/usr/include/c++/4.4/ext/type_traits.h" 3 template< class _Tp> # 45 "/usr/include/c++/4.4/ext/type_traits.h" 3 struct __enable_if< true, _Tp> { # 46 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef _Tp __type; }; # 50 "/usr/include/c++/4.4/ext/type_traits.h" 3 template< bool _Cond, class _Iftrue, class _Iffalse> # 51 "/usr/include/c++/4.4/ext/type_traits.h" 3 struct __conditional_type { # 52 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef _Iftrue __type; }; # 54 "/usr/include/c++/4.4/ext/type_traits.h" 3 template< class _Iftrue, class _Iffalse> # 55 "/usr/include/c++/4.4/ext/type_traits.h" 3 struct __conditional_type< false, _Iftrue, _Iffalse> { # 56 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef _Iffalse __type; }; # 60 "/usr/include/c++/4.4/ext/type_traits.h" 3 template< class _Tp> # 61 "/usr/include/c++/4.4/ext/type_traits.h" 3 struct __add_unsigned { # 64 "/usr/include/c++/4.4/ext/type_traits.h" 3 private: typedef __enable_if< std::__is_integer< _Tp> ::__value, _Tp> __if_type; # 67 "/usr/include/c++/4.4/ext/type_traits.h" 3 public: typedef typename __enable_if< std::__is_integer< _Tp> ::__value, _Tp> ::__type __type; # 68 "/usr/include/c++/4.4/ext/type_traits.h" 3 }; # 71 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __add_unsigned< char> { # 72 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef unsigned char __type; }; # 75 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __add_unsigned< signed char> { # 76 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef unsigned char __type; }; # 79 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __add_unsigned< short> { # 80 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef unsigned short __type; }; # 83 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __add_unsigned< int> { # 84 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef unsigned __type; }; # 87 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __add_unsigned< long> { # 88 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef unsigned long __type; }; # 91 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __add_unsigned< long long> { # 92 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef unsigned long long __type; }; # 96 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __add_unsigned< bool> ; # 99 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __add_unsigned< wchar_t> ; # 103 "/usr/include/c++/4.4/ext/type_traits.h" 3 template< class _Tp> # 104 "/usr/include/c++/4.4/ext/type_traits.h" 3 struct __remove_unsigned { # 107 "/usr/include/c++/4.4/ext/type_traits.h" 3 private: typedef __enable_if< std::__is_integer< _Tp> ::__value, _Tp> __if_type; # 110 "/usr/include/c++/4.4/ext/type_traits.h" 3 public: typedef typename __enable_if< std::__is_integer< _Tp> ::__value, _Tp> ::__type __type; # 111 "/usr/include/c++/4.4/ext/type_traits.h" 3 }; # 114 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __remove_unsigned< char> { # 115 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef signed char __type; }; # 118 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __remove_unsigned< unsigned char> { # 119 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef signed char __type; }; # 122 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __remove_unsigned< unsigned short> { # 123 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef short __type; }; # 126 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __remove_unsigned< unsigned> { # 127 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef int __type; }; # 130 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __remove_unsigned< unsigned long> { # 131 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef long __type; }; # 134 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __remove_unsigned< unsigned long long> { # 135 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef long long __type; }; # 139 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __remove_unsigned< bool> ; # 142 "/usr/include/c++/4.4/ext/type_traits.h" 3 template<> struct __remove_unsigned< wchar_t> ; # 146 "/usr/include/c++/4.4/ext/type_traits.h" 3 template < typename _Type > inline bool __is_null_pointer ( _Type * __ptr ) { return __ptr == 0; } # 151 "/usr/include/c++/4.4/ext/type_traits.h" 3 template < typename _Type > inline bool __is_null_pointer ( _Type ) { return false; } # 158 "/usr/include/c++/4.4/ext/type_traits.h" 3 template< class _Tp, bool __T2 = std::__is_integer< _Tp> ::__value> # 159 "/usr/include/c++/4.4/ext/type_traits.h" 3 struct __promote { # 160 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef double __type; }; # 162 "/usr/include/c++/4.4/ext/type_traits.h" 3 template< class _Tp> # 163 "/usr/include/c++/4.4/ext/type_traits.h" 3 struct __promote< _Tp, false> { # 164 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef _Tp __type; }; # 166 "/usr/include/c++/4.4/ext/type_traits.h" 3 template< class _Tp, class _Up> # 167 "/usr/include/c++/4.4/ext/type_traits.h" 3 struct __promote_2 { # 170 "/usr/include/c++/4.4/ext/type_traits.h" 3 private: typedef typename __promote< _Tp, std::__is_integer< _Tp> ::__value> ::__type __type1; # 171 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef typename __promote< _Up, std::__is_integer< _Up> ::__value> ::__type __type2; # 174 "/usr/include/c++/4.4/ext/type_traits.h" 3 public: typedef __typeof__(__type1() + __type2()) __type; # 175 "/usr/include/c++/4.4/ext/type_traits.h" 3 }; # 177 "/usr/include/c++/4.4/ext/type_traits.h" 3 template< class _Tp, class _Up, class _Vp> # 178 "/usr/include/c++/4.4/ext/type_traits.h" 3 struct __promote_3 { # 181 "/usr/include/c++/4.4/ext/type_traits.h" 3 private: typedef typename __promote< _Tp, std::__is_integer< _Tp> ::__value> ::__type __type1; # 182 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef typename __promote< _Up, std::__is_integer< _Up> ::__value> ::__type __type2; # 183 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef typename __promote< _Vp, std::__is_integer< _Vp> ::__value> ::__type __type3; # 186 "/usr/include/c++/4.4/ext/type_traits.h" 3 public: typedef __typeof__((__type1() + __type2()) + __type3()) __type; # 187 "/usr/include/c++/4.4/ext/type_traits.h" 3 }; # 189 "/usr/include/c++/4.4/ext/type_traits.h" 3 template< class _Tp, class _Up, class _Vp, class _Wp> # 190 "/usr/include/c++/4.4/ext/type_traits.h" 3 struct __promote_4 { # 193 "/usr/include/c++/4.4/ext/type_traits.h" 3 private: typedef typename __promote< _Tp, std::__is_integer< _Tp> ::__value> ::__type __type1; # 194 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef typename __promote< _Up, std::__is_integer< _Up> ::__value> ::__type __type2; # 195 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef typename __promote< _Vp, std::__is_integer< _Vp> ::__value> ::__type __type3; # 196 "/usr/include/c++/4.4/ext/type_traits.h" 3 typedef typename __promote< _Wp, std::__is_integer< _Wp> ::__value> ::__type __type4; # 199 "/usr/include/c++/4.4/ext/type_traits.h" 3 public: typedef __typeof__(((__type1() + __type2()) + __type3()) + __type4()) __type; # 200 "/usr/include/c++/4.4/ext/type_traits.h" 3 }; # 202 "/usr/include/c++/4.4/ext/type_traits.h" 3 } # 77 "/usr/include/c++/4.4/cmath" 3 namespace std __attribute__((visibility("default"))) { # 81 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > _Tp __cmath_power ( _Tp, unsigned int ); # 84 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline _Tp __pow_helper ( _Tp __x, int __n ) { return __n < 0 ? _Tp ( 1 ) / __cmath_power ( __x, - __n ) : __cmath_power ( __x, __n ); } # 94 "/usr/include/c++/4.4/cmath" 3 inline double abs(double __x) # 95 "/usr/include/c++/4.4/cmath" 3 { return __builtin_fabs(__x); } # 98 "/usr/include/c++/4.4/cmath" 3 inline float abs(float __x) # 99 "/usr/include/c++/4.4/cmath" 3 { return __builtin_fabsf(__x); } # 102 "/usr/include/c++/4.4/cmath" 3 inline long double abs(long double __x) # 103 "/usr/include/c++/4.4/cmath" 3 { return __builtin_fabsl(__x); } # 105 "/usr/include/c++/4.4/cmath" 3 using ::acos; # 108 "/usr/include/c++/4.4/cmath" 3 inline float acos(float __x) # 109 "/usr/include/c++/4.4/cmath" 3 { return __builtin_acosf(__x); } # 112 "/usr/include/c++/4.4/cmath" 3 inline long double acos(long double __x) # 113 "/usr/include/c++/4.4/cmath" 3 { return __builtin_acosl(__x); } # 115 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type acos ( _Tp __x ) { return __builtin_acos ( __x ); } # 121 "/usr/include/c++/4.4/cmath" 3 using ::asin; # 124 "/usr/include/c++/4.4/cmath" 3 inline float asin(float __x) # 125 "/usr/include/c++/4.4/cmath" 3 { return __builtin_asinf(__x); } # 128 "/usr/include/c++/4.4/cmath" 3 inline long double asin(long double __x) # 129 "/usr/include/c++/4.4/cmath" 3 { return __builtin_asinl(__x); } # 131 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type asin ( _Tp __x ) { return __builtin_asin ( __x ); } # 137 "/usr/include/c++/4.4/cmath" 3 using ::atan; # 140 "/usr/include/c++/4.4/cmath" 3 inline float atan(float __x) # 141 "/usr/include/c++/4.4/cmath" 3 { return __builtin_atanf(__x); } # 144 "/usr/include/c++/4.4/cmath" 3 inline long double atan(long double __x) # 145 "/usr/include/c++/4.4/cmath" 3 { return __builtin_atanl(__x); } # 147 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type atan ( _Tp __x ) { return __builtin_atan ( __x ); } # 153 "/usr/include/c++/4.4/cmath" 3 using ::atan2; # 156 "/usr/include/c++/4.4/cmath" 3 inline float atan2(float __y, float __x) # 157 "/usr/include/c++/4.4/cmath" 3 { return __builtin_atan2f(__y, __x); } # 160 "/usr/include/c++/4.4/cmath" 3 inline long double atan2(long double __y, long double __x) # 161 "/usr/include/c++/4.4/cmath" 3 { return __builtin_atan2l(__y, __x); } # 163 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp, typename _Up > inline typename __gnu_cxx :: __promote_2 < typename __gnu_cxx :: __enable_if < __is_arithmetic < _Tp > :: __value && __is_arithmetic < _Up > :: __value, _Tp > :: __type, _Up > :: __type atan2 ( _Tp __y, _Up __x ) { typedef typename __gnu_cxx :: __promote_2 < _Tp, _Up > :: __type __type; return atan2 ( __type ( __y ), __type ( __x ) ); } # 175 "/usr/include/c++/4.4/cmath" 3 using ::ceil; # 178 "/usr/include/c++/4.4/cmath" 3 inline float ceil(float __x) # 179 "/usr/include/c++/4.4/cmath" 3 { return __builtin_ceilf(__x); } # 182 "/usr/include/c++/4.4/cmath" 3 inline long double ceil(long double __x) # 183 "/usr/include/c++/4.4/cmath" 3 { return __builtin_ceill(__x); } # 185 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type ceil ( _Tp __x ) { return __builtin_ceil ( __x ); } # 191 "/usr/include/c++/4.4/cmath" 3 using ::cos; # 194 "/usr/include/c++/4.4/cmath" 3 inline float cos(float __x) # 195 "/usr/include/c++/4.4/cmath" 3 { return __builtin_cosf(__x); } # 198 "/usr/include/c++/4.4/cmath" 3 inline long double cos(long double __x) # 199 "/usr/include/c++/4.4/cmath" 3 { return __builtin_cosl(__x); } # 201 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type cos ( _Tp __x ) { return __builtin_cos ( __x ); } # 207 "/usr/include/c++/4.4/cmath" 3 using ::cosh; # 210 "/usr/include/c++/4.4/cmath" 3 inline float cosh(float __x) # 211 "/usr/include/c++/4.4/cmath" 3 { return __builtin_coshf(__x); } # 214 "/usr/include/c++/4.4/cmath" 3 inline long double cosh(long double __x) # 215 "/usr/include/c++/4.4/cmath" 3 { return __builtin_coshl(__x); } # 217 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type cosh ( _Tp __x ) { return __builtin_cosh ( __x ); } # 223 "/usr/include/c++/4.4/cmath" 3 using ::exp; # 226 "/usr/include/c++/4.4/cmath" 3 inline float exp(float __x) # 227 "/usr/include/c++/4.4/cmath" 3 { return __builtin_expf(__x); } # 230 "/usr/include/c++/4.4/cmath" 3 inline long double exp(long double __x) # 231 "/usr/include/c++/4.4/cmath" 3 { return __builtin_expl(__x); } # 233 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type exp ( _Tp __x ) { return __builtin_exp ( __x ); } # 239 "/usr/include/c++/4.4/cmath" 3 using ::fabs; # 242 "/usr/include/c++/4.4/cmath" 3 inline float fabs(float __x) # 243 "/usr/include/c++/4.4/cmath" 3 { return __builtin_fabsf(__x); } # 246 "/usr/include/c++/4.4/cmath" 3 inline long double fabs(long double __x) # 247 "/usr/include/c++/4.4/cmath" 3 { return __builtin_fabsl(__x); } # 249 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type fabs ( _Tp __x ) { return __builtin_fabs ( __x ); } # 255 "/usr/include/c++/4.4/cmath" 3 using ::floor; # 258 "/usr/include/c++/4.4/cmath" 3 inline float floor(float __x) # 259 "/usr/include/c++/4.4/cmath" 3 { return __builtin_floorf(__x); } # 262 "/usr/include/c++/4.4/cmath" 3 inline long double floor(long double __x) # 263 "/usr/include/c++/4.4/cmath" 3 { return __builtin_floorl(__x); } # 265 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type floor ( _Tp __x ) { return __builtin_floor ( __x ); } # 271 "/usr/include/c++/4.4/cmath" 3 using ::fmod; # 274 "/usr/include/c++/4.4/cmath" 3 inline float fmod(float __x, float __y) # 275 "/usr/include/c++/4.4/cmath" 3 { return __builtin_fmodf(__x, __y); } # 278 "/usr/include/c++/4.4/cmath" 3 inline long double fmod(long double __x, long double __y) # 279 "/usr/include/c++/4.4/cmath" 3 { return __builtin_fmodl(__x, __y); } # 281 "/usr/include/c++/4.4/cmath" 3 using ::frexp; # 284 "/usr/include/c++/4.4/cmath" 3 inline float frexp(float __x, int *__exp) # 285 "/usr/include/c++/4.4/cmath" 3 { return __builtin_frexpf(__x, __exp); } # 288 "/usr/include/c++/4.4/cmath" 3 inline long double frexp(long double __x, int *__exp) # 289 "/usr/include/c++/4.4/cmath" 3 { return __builtin_frexpl(__x, __exp); } # 291 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type frexp ( _Tp __x, int * __exp ) { return __builtin_frexp ( __x, __exp ); } # 297 "/usr/include/c++/4.4/cmath" 3 using ::ldexp; # 300 "/usr/include/c++/4.4/cmath" 3 inline float ldexp(float __x, int __exp) # 301 "/usr/include/c++/4.4/cmath" 3 { return __builtin_ldexpf(__x, __exp); } # 304 "/usr/include/c++/4.4/cmath" 3 inline long double ldexp(long double __x, int __exp) # 305 "/usr/include/c++/4.4/cmath" 3 { return __builtin_ldexpl(__x, __exp); } # 307 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type ldexp ( _Tp __x, int __exp ) { return __builtin_ldexp ( __x, __exp ); } # 313 "/usr/include/c++/4.4/cmath" 3 using ::log; # 316 "/usr/include/c++/4.4/cmath" 3 inline float log(float __x) # 317 "/usr/include/c++/4.4/cmath" 3 { return __builtin_logf(__x); } # 320 "/usr/include/c++/4.4/cmath" 3 inline long double log(long double __x) # 321 "/usr/include/c++/4.4/cmath" 3 { return __builtin_logl(__x); } # 323 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type log ( _Tp __x ) { return __builtin_log ( __x ); } # 329 "/usr/include/c++/4.4/cmath" 3 using ::log10; # 332 "/usr/include/c++/4.4/cmath" 3 inline float log10(float __x) # 333 "/usr/include/c++/4.4/cmath" 3 { return __builtin_log10f(__x); } # 336 "/usr/include/c++/4.4/cmath" 3 inline long double log10(long double __x) # 337 "/usr/include/c++/4.4/cmath" 3 { return __builtin_log10l(__x); } # 339 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type log10 ( _Tp __x ) { return __builtin_log10 ( __x ); } # 345 "/usr/include/c++/4.4/cmath" 3 using ::modf; # 348 "/usr/include/c++/4.4/cmath" 3 inline float modf(float __x, float *__iptr) # 349 "/usr/include/c++/4.4/cmath" 3 { return __builtin_modff(__x, __iptr); } # 352 "/usr/include/c++/4.4/cmath" 3 inline long double modf(long double __x, long double *__iptr) # 353 "/usr/include/c++/4.4/cmath" 3 { return __builtin_modfl(__x, __iptr); } # 355 "/usr/include/c++/4.4/cmath" 3 using ::pow; # 358 "/usr/include/c++/4.4/cmath" 3 inline float pow(float __x, float __y) # 359 "/usr/include/c++/4.4/cmath" 3 { return __builtin_powf(__x, __y); } # 362 "/usr/include/c++/4.4/cmath" 3 inline long double pow(long double __x, long double __y) # 363 "/usr/include/c++/4.4/cmath" 3 { return __builtin_powl(__x, __y); } # 369 "/usr/include/c++/4.4/cmath" 3 inline double pow(double __x, int __i) # 370 "/usr/include/c++/4.4/cmath" 3 { return __builtin_powi(__x, __i); } # 373 "/usr/include/c++/4.4/cmath" 3 inline float pow(float __x, int __n) # 374 "/usr/include/c++/4.4/cmath" 3 { return __builtin_powif(__x, __n); } # 377 "/usr/include/c++/4.4/cmath" 3 inline long double pow(long double __x, int __n) # 378 "/usr/include/c++/4.4/cmath" 3 { return __builtin_powil(__x, __n); } # 381 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp, typename _Up > inline typename __gnu_cxx :: __promote_2 < typename __gnu_cxx :: __enable_if < __is_arithmetic < _Tp > :: __value && __is_arithmetic < _Up > :: __value, _Tp > :: __type, _Up > :: __type pow ( _Tp __x, _Up __y ) { typedef typename __gnu_cxx :: __promote_2 < _Tp, _Up > :: __type __type; return pow ( __type ( __x ), __type ( __y ) ); } # 393 "/usr/include/c++/4.4/cmath" 3 using ::sin; # 396 "/usr/include/c++/4.4/cmath" 3 inline float sin(float __x) # 397 "/usr/include/c++/4.4/cmath" 3 { return __builtin_sinf(__x); } # 400 "/usr/include/c++/4.4/cmath" 3 inline long double sin(long double __x) # 401 "/usr/include/c++/4.4/cmath" 3 { return __builtin_sinl(__x); } # 403 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type sin ( _Tp __x ) { return __builtin_sin ( __x ); } # 409 "/usr/include/c++/4.4/cmath" 3 using ::sinh; # 412 "/usr/include/c++/4.4/cmath" 3 inline float sinh(float __x) # 413 "/usr/include/c++/4.4/cmath" 3 { return __builtin_sinhf(__x); } # 416 "/usr/include/c++/4.4/cmath" 3 inline long double sinh(long double __x) # 417 "/usr/include/c++/4.4/cmath" 3 { return __builtin_sinhl(__x); } # 419 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type sinh ( _Tp __x ) { return __builtin_sinh ( __x ); } # 425 "/usr/include/c++/4.4/cmath" 3 using ::sqrt; # 428 "/usr/include/c++/4.4/cmath" 3 inline float sqrt(float __x) # 429 "/usr/include/c++/4.4/cmath" 3 { return __builtin_sqrtf(__x); } # 432 "/usr/include/c++/4.4/cmath" 3 inline long double sqrt(long double __x) # 433 "/usr/include/c++/4.4/cmath" 3 { return __builtin_sqrtl(__x); } # 435 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type sqrt ( _Tp __x ) { return __builtin_sqrt ( __x ); } # 441 "/usr/include/c++/4.4/cmath" 3 using ::tan; # 444 "/usr/include/c++/4.4/cmath" 3 inline float tan(float __x) # 445 "/usr/include/c++/4.4/cmath" 3 { return __builtin_tanf(__x); } # 448 "/usr/include/c++/4.4/cmath" 3 inline long double tan(long double __x) # 449 "/usr/include/c++/4.4/cmath" 3 { return __builtin_tanl(__x); } # 451 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type tan ( _Tp __x ) { return __builtin_tan ( __x ); } # 457 "/usr/include/c++/4.4/cmath" 3 using ::tanh; # 460 "/usr/include/c++/4.4/cmath" 3 inline float tanh(float __x) # 461 "/usr/include/c++/4.4/cmath" 3 { return __builtin_tanhf(__x); } # 464 "/usr/include/c++/4.4/cmath" 3 inline long double tanh(long double __x) # 465 "/usr/include/c++/4.4/cmath" 3 { return __builtin_tanhl(__x); } # 467 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_integer < _Tp > :: __value, double > :: __type tanh ( _Tp __x ) { return __builtin_tanh ( __x ); } # 473 "/usr/include/c++/4.4/cmath" 3 } # 492 "/usr/include/c++/4.4/cmath" 3 namespace std __attribute__((visibility("default"))) { # 494 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_arithmetic < _Tp > :: __value, int > :: __type fpclassify ( _Tp __f ) { typedef typename __gnu_cxx :: __promote < _Tp > :: __type __type; return __builtin_fpclassify ( FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, __type ( __f ) ); } # 504 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_arithmetic < _Tp > :: __value, int > :: __type isfinite ( _Tp __f ) { typedef typename __gnu_cxx :: __promote < _Tp > :: __type __type; return __builtin_isfinite ( __type ( __f ) ); } # 513 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_arithmetic < _Tp > :: __value, int > :: __type isinf ( _Tp __f ) { typedef typename __gnu_cxx :: __promote < _Tp > :: __type __type; return __builtin_isinf ( __type ( __f ) ); } # 522 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_arithmetic < _Tp > :: __value, int > :: __type isnan ( _Tp __f ) { typedef typename __gnu_cxx :: __promote < _Tp > :: __type __type; return __builtin_isnan ( __type ( __f ) ); } # 531 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_arithmetic < _Tp > :: __value, int > :: __type isnormal ( _Tp __f ) { typedef typename __gnu_cxx :: __promote < _Tp > :: __type __type; return __builtin_isnormal ( __type ( __f ) ); } # 540 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_arithmetic < _Tp > :: __value, int > :: __type signbit ( _Tp __f ) { typedef typename __gnu_cxx :: __promote < _Tp > :: __type __type; return __builtin_signbit ( __type ( __f ) ); } # 549 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_arithmetic < _Tp > :: __value, int > :: __type isgreater ( _Tp __f1, _Tp __f2 ) { typedef typename __gnu_cxx :: __promote < _Tp > :: __type __type; return __builtin_isgreater ( __type ( __f1 ), __type ( __f2 ) ); } # 558 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_arithmetic < _Tp > :: __value, int > :: __type isgreaterequal ( _Tp __f1, _Tp __f2 ) { typedef typename __gnu_cxx :: __promote < _Tp > :: __type __type; return __builtin_isgreaterequal ( __type ( __f1 ), __type ( __f2 ) ); } # 567 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_arithmetic < _Tp > :: __value, int > :: __type isless ( _Tp __f1, _Tp __f2 ) { typedef typename __gnu_cxx :: __promote < _Tp > :: __type __type; return __builtin_isless ( __type ( __f1 ), __type ( __f2 ) ); } # 576 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_arithmetic < _Tp > :: __value, int > :: __type islessequal ( _Tp __f1, _Tp __f2 ) { typedef typename __gnu_cxx :: __promote < _Tp > :: __type __type; return __builtin_islessequal ( __type ( __f1 ), __type ( __f2 ) ); } # 585 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_arithmetic < _Tp > :: __value, int > :: __type islessgreater ( _Tp __f1, _Tp __f2 ) { typedef typename __gnu_cxx :: __promote < _Tp > :: __type __type; return __builtin_islessgreater ( __type ( __f1 ), __type ( __f2 ) ); } # 594 "/usr/include/c++/4.4/cmath" 3 template < typename _Tp > inline typename __gnu_cxx :: __enable_if < __is_arithmetic < _Tp > :: __value, int > :: __type isunordered ( _Tp __f1, _Tp __f2 ) { typedef typename __gnu_cxx :: __promote < _Tp > :: __type __type; return __builtin_isunordered ( __type ( __f1 ), __type ( __f2 ) ); } # 603 "/usr/include/c++/4.4/cmath" 3 } # 35 "/usr/include/c++/4.4/bits/cmath.tcc" 3 namespace std __attribute__((visibility("default"))) { # 37 "/usr/include/c++/4.4/bits/cmath.tcc" 3 template < typename _Tp > inline _Tp __cmath_power ( _Tp __x, unsigned int __n ) { _Tp __y = __n % 2 ? __x : _Tp ( 1 ); while ( __n >>= 1 ) { __x = __x * __x; if ( __n % 2 ) __y = __y * __x; } return __y; } # 53 "/usr/include/c++/4.4/bits/cmath.tcc" 3 } # 49 "/usr/include/c++/4.4/cstddef" 3 namespace std __attribute__((visibility("default"))) { # 51 "/usr/include/c++/4.4/cstddef" 3 using ::ptrdiff_t; # 52 "/usr/include/c++/4.4/cstddef" 3 using ::size_t; # 54 "/usr/include/c++/4.4/cstddef" 3 } # 100 "/usr/include/c++/4.4/cstdlib" 3 namespace std __attribute__((visibility("default"))) { # 102 "/usr/include/c++/4.4/cstdlib" 3 using ::div_t; # 103 "/usr/include/c++/4.4/cstdlib" 3 using ::ldiv_t; # 105 "/usr/include/c++/4.4/cstdlib" 3 using ::abort; # 106 "/usr/include/c++/4.4/cstdlib" 3 using ::abs; # 107 "/usr/include/c++/4.4/cstdlib" 3 using ::atexit; # 108 "/usr/include/c++/4.4/cstdlib" 3 using ::atof; # 109 "/usr/include/c++/4.4/cstdlib" 3 using ::atoi; # 110 "/usr/include/c++/4.4/cstdlib" 3 using ::atol; # 111 "/usr/include/c++/4.4/cstdlib" 3 using ::bsearch; # 112 "/usr/include/c++/4.4/cstdlib" 3 using ::calloc; # 113 "/usr/include/c++/4.4/cstdlib" 3 using ::div; # 114 "/usr/include/c++/4.4/cstdlib" 3 using ::exit; # 115 "/usr/include/c++/4.4/cstdlib" 3 using ::free; # 116 "/usr/include/c++/4.4/cstdlib" 3 using ::getenv; # 117 "/usr/include/c++/4.4/cstdlib" 3 using ::labs; # 118 "/usr/include/c++/4.4/cstdlib" 3 using ::ldiv; # 119 "/usr/include/c++/4.4/cstdlib" 3 using ::malloc; # 121 "/usr/include/c++/4.4/cstdlib" 3 using ::mblen; # 122 "/usr/include/c++/4.4/cstdlib" 3 using ::mbstowcs; # 123 "/usr/include/c++/4.4/cstdlib" 3 using ::mbtowc; # 125 "/usr/include/c++/4.4/cstdlib" 3 using ::qsort; # 126 "/usr/include/c++/4.4/cstdlib" 3 using ::rand; # 127 "/usr/include/c++/4.4/cstdlib" 3 using ::realloc; # 128 "/usr/include/c++/4.4/cstdlib" 3 using ::srand; # 129 "/usr/include/c++/4.4/cstdlib" 3 using ::strtod; # 130 "/usr/include/c++/4.4/cstdlib" 3 using ::strtol; # 131 "/usr/include/c++/4.4/cstdlib" 3 using ::strtoul; # 132 "/usr/include/c++/4.4/cstdlib" 3 using ::system; # 134 "/usr/include/c++/4.4/cstdlib" 3 using ::wcstombs; # 135 "/usr/include/c++/4.4/cstdlib" 3 using ::wctomb; # 139 "/usr/include/c++/4.4/cstdlib" 3 inline long abs(long __i) { return labs(__i); } # 142 "/usr/include/c++/4.4/cstdlib" 3 inline ldiv_t div(long __i, long __j) { return ldiv(__i, __j); } # 144 "/usr/include/c++/4.4/cstdlib" 3 } # 157 "/usr/include/c++/4.4/cstdlib" 3 namespace __gnu_cxx __attribute__((visibility("default"))) { # 160 "/usr/include/c++/4.4/cstdlib" 3 using ::lldiv_t; # 166 "/usr/include/c++/4.4/cstdlib" 3 using ::_Exit; # 170 "/usr/include/c++/4.4/cstdlib" 3 inline long long abs(long long __x) { return (__x >= (0)) ? __x : (-__x); } # 173 "/usr/include/c++/4.4/cstdlib" 3 using ::llabs; # 176 "/usr/include/c++/4.4/cstdlib" 3 inline lldiv_t div(long long __n, long long __d) # 177 "/usr/include/c++/4.4/cstdlib" 3 { lldiv_t __q; (__q.quot) = (__n / __d); (__q.rem) = (__n % __d); return __q; } # 179 "/usr/include/c++/4.4/cstdlib" 3 using ::lldiv; # 190 "/usr/include/c++/4.4/cstdlib" 3 using ::atoll; # 191 "/usr/include/c++/4.4/cstdlib" 3 using ::strtoll; # 192 "/usr/include/c++/4.4/cstdlib" 3 using ::strtoull; # 194 "/usr/include/c++/4.4/cstdlib" 3 using ::strtof; # 195 "/usr/include/c++/4.4/cstdlib" 3 using ::strtold; # 197 "/usr/include/c++/4.4/cstdlib" 3 } # 199 "/usr/include/c++/4.4/cstdlib" 3 namespace std __attribute__((visibility("default"))) { # 202 "/usr/include/c++/4.4/cstdlib" 3 using __gnu_cxx::lldiv_t; # 204 "/usr/include/c++/4.4/cstdlib" 3 using __gnu_cxx::_Exit; # 205 "/usr/include/c++/4.4/cstdlib" 3 using __gnu_cxx::abs; # 207 "/usr/include/c++/4.4/cstdlib" 3 using __gnu_cxx::llabs; # 208 "/usr/include/c++/4.4/cstdlib" 3 using __gnu_cxx::div; # 209 "/usr/include/c++/4.4/cstdlib" 3 using __gnu_cxx::lldiv; # 211 "/usr/include/c++/4.4/cstdlib" 3 using __gnu_cxx::atoll; # 212 "/usr/include/c++/4.4/cstdlib" 3 using __gnu_cxx::strtof; # 213 "/usr/include/c++/4.4/cstdlib" 3 using __gnu_cxx::strtoll; # 214 "/usr/include/c++/4.4/cstdlib" 3 using __gnu_cxx::strtoull; # 215 "/usr/include/c++/4.4/cstdlib" 3 using __gnu_cxx::strtold; # 217 "/usr/include/c++/4.4/cstdlib" 3 } # 497 "/usr/local/cuda/bin/../include/math_functions.h" namespace __gnu_cxx { # 499 "/usr/local/cuda/bin/../include/math_functions.h" extern inline long long abs(long long) __attribute__((visibility("default"))); # 500 "/usr/local/cuda/bin/../include/math_functions.h" } # 502 "/usr/local/cuda/bin/../include/math_functions.h" namespace std { # 504 "/usr/local/cuda/bin/../include/math_functions.h" template< class T> extern inline T __pow_helper(T, int); # 505 "/usr/local/cuda/bin/../include/math_functions.h" template< class T> extern inline T __cmath_power(T, unsigned); # 506 "/usr/local/cuda/bin/../include/math_functions.h" } # 508 "/usr/local/cuda/bin/../include/math_functions.h" using std::abs; # 509 "/usr/local/cuda/bin/../include/math_functions.h" using std::fabs; # 510 "/usr/local/cuda/bin/../include/math_functions.h" using std::ceil; # 511 "/usr/local/cuda/bin/../include/math_functions.h" using std::floor; # 512 "/usr/local/cuda/bin/../include/math_functions.h" using std::sqrt; # 513 "/usr/local/cuda/bin/../include/math_functions.h" using std::pow; # 514 "/usr/local/cuda/bin/../include/math_functions.h" using std::log; # 515 "/usr/local/cuda/bin/../include/math_functions.h" using std::log10; # 516 "/usr/local/cuda/bin/../include/math_functions.h" using std::fmod; # 517 "/usr/local/cuda/bin/../include/math_functions.h" using std::modf; # 518 "/usr/local/cuda/bin/../include/math_functions.h" using std::exp; # 519 "/usr/local/cuda/bin/../include/math_functions.h" using std::frexp; # 520 "/usr/local/cuda/bin/../include/math_functions.h" using std::ldexp; # 521 "/usr/local/cuda/bin/../include/math_functions.h" using std::asin; # 522 "/usr/local/cuda/bin/../include/math_functions.h" using std::sin; # 523 "/usr/local/cuda/bin/../include/math_functions.h" using std::sinh; # 524 "/usr/local/cuda/bin/../include/math_functions.h" using std::acos; # 525 "/usr/local/cuda/bin/../include/math_functions.h" using std::cos; # 526 "/usr/local/cuda/bin/../include/math_functions.h" using std::cosh; # 527 "/usr/local/cuda/bin/../include/math_functions.h" using std::atan; # 528 "/usr/local/cuda/bin/../include/math_functions.h" using std::atan2; # 529 "/usr/local/cuda/bin/../include/math_functions.h" using std::tan; # 530 "/usr/local/cuda/bin/../include/math_functions.h" using std::tanh; # 584 "/usr/local/cuda/bin/../include/math_functions.h" namespace std { # 587 "/usr/local/cuda/bin/../include/math_functions.h" extern inline long abs(long) __attribute__((visibility("default"))); # 588 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float abs(float) __attribute__((visibility("default"))); # 589 "/usr/local/cuda/bin/../include/math_functions.h" extern inline double abs(double) __attribute__((visibility("default"))); # 590 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float fabs(float) __attribute__((visibility("default"))); # 591 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float ceil(float) __attribute__((visibility("default"))); # 592 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float floor(float) __attribute__((visibility("default"))); # 593 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float sqrt(float) __attribute__((visibility("default"))); # 594 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float pow(float, float) __attribute__((visibility("default"))); # 595 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float pow(float, int) __attribute__((visibility("default"))); # 596 "/usr/local/cuda/bin/../include/math_functions.h" extern inline double pow(double, int) __attribute__((visibility("default"))); # 597 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float log(float) __attribute__((visibility("default"))); # 598 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float log10(float) __attribute__((visibility("default"))); # 599 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float fmod(float, float) __attribute__((visibility("default"))); # 600 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float modf(float, float *) __attribute__((visibility("default"))); # 601 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float exp(float) __attribute__((visibility("default"))); # 602 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float frexp(float, int *) __attribute__((visibility("default"))); # 603 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float ldexp(float, int) __attribute__((visibility("default"))); # 604 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float asin(float) __attribute__((visibility("default"))); # 605 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float sin(float) __attribute__((visibility("default"))); # 606 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float sinh(float) __attribute__((visibility("default"))); # 607 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float acos(float) __attribute__((visibility("default"))); # 608 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float cos(float) __attribute__((visibility("default"))); # 609 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float cosh(float) __attribute__((visibility("default"))); # 610 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float atan(float) __attribute__((visibility("default"))); # 611 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float atan2(float, float) __attribute__((visibility("default"))); # 612 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float tan(float) __attribute__((visibility("default"))); # 613 "/usr/local/cuda/bin/../include/math_functions.h" extern inline float tanh(float) __attribute__((visibility("default"))); # 616 "/usr/local/cuda/bin/../include/math_functions.h" } # 619 "/usr/local/cuda/bin/../include/math_functions.h" static inline float logb(float a) # 620 "/usr/local/cuda/bin/../include/math_functions.h" { # 621 "/usr/local/cuda/bin/../include/math_functions.h" return logbf(a); # 622 "/usr/local/cuda/bin/../include/math_functions.h" } # 624 "/usr/local/cuda/bin/../include/math_functions.h" static inline int ilogb(float a) # 625 "/usr/local/cuda/bin/../include/math_functions.h" { # 626 "/usr/local/cuda/bin/../include/math_functions.h" return ilogbf(a); # 627 "/usr/local/cuda/bin/../include/math_functions.h" } # 629 "/usr/local/cuda/bin/../include/math_functions.h" static inline float scalbn(float a, int b) # 630 "/usr/local/cuda/bin/../include/math_functions.h" { # 631 "/usr/local/cuda/bin/../include/math_functions.h" return scalbnf(a, b); # 632 "/usr/local/cuda/bin/../include/math_functions.h" } # 634 "/usr/local/cuda/bin/../include/math_functions.h" static inline float scalbln(float a, long b) # 635 "/usr/local/cuda/bin/../include/math_functions.h" { # 636 "/usr/local/cuda/bin/../include/math_functions.h" return scalblnf(a, b); # 637 "/usr/local/cuda/bin/../include/math_functions.h" } # 639 "/usr/local/cuda/bin/../include/math_functions.h" static inline float exp2(float a) # 640 "/usr/local/cuda/bin/../include/math_functions.h" { # 641 "/usr/local/cuda/bin/../include/math_functions.h" return exp2f(a); # 642 "/usr/local/cuda/bin/../include/math_functions.h" } # 644 "/usr/local/cuda/bin/../include/math_functions.h" static inline float exp10(float a) # 645 "/usr/local/cuda/bin/../include/math_functions.h" { # 646 "/usr/local/cuda/bin/../include/math_functions.h" return exp10f(a); # 647 "/usr/local/cuda/bin/../include/math_functions.h" } # 649 "/usr/local/cuda/bin/../include/math_functions.h" static inline float expm1(float a) # 650 "/usr/local/cuda/bin/../include/math_functions.h" { # 651 "/usr/local/cuda/bin/../include/math_functions.h" return expm1f(a); # 652 "/usr/local/cuda/bin/../include/math_functions.h" } # 654 "/usr/local/cuda/bin/../include/math_functions.h" static inline float log2(float a) # 655 "/usr/local/cuda/bin/../include/math_functions.h" { # 656 "/usr/local/cuda/bin/../include/math_functions.h" return log2f(a); # 657 "/usr/local/cuda/bin/../include/math_functions.h" } # 659 "/usr/local/cuda/bin/../include/math_functions.h" static inline float log1p(float a) # 660 "/usr/local/cuda/bin/../include/math_functions.h" { # 661 "/usr/local/cuda/bin/../include/math_functions.h" return log1pf(a); # 662 "/usr/local/cuda/bin/../include/math_functions.h" } # 664 "/usr/local/cuda/bin/../include/math_functions.h" static inline float rsqrt(float a) # 665 "/usr/local/cuda/bin/../include/math_functions.h" { # 666 "/usr/local/cuda/bin/../include/math_functions.h" return rsqrtf(a); # 667 "/usr/local/cuda/bin/../include/math_functions.h" } # 669 "/usr/local/cuda/bin/../include/math_functions.h" static inline float acosh(float a) # 670 "/usr/local/cuda/bin/../include/math_functions.h" { # 671 "/usr/local/cuda/bin/../include/math_functions.h" return acoshf(a); # 672 "/usr/local/cuda/bin/../include/math_functions.h" } # 674 "/usr/local/cuda/bin/../include/math_functions.h" static inline float asinh(float a) # 675 "/usr/local/cuda/bin/../include/math_functions.h" { # 676 "/usr/local/cuda/bin/../include/math_functions.h" return asinhf(a); # 677 "/usr/local/cuda/bin/../include/math_functions.h" } # 679 "/usr/local/cuda/bin/../include/math_functions.h" static inline float atanh(float a) # 680 "/usr/local/cuda/bin/../include/math_functions.h" { # 681 "/usr/local/cuda/bin/../include/math_functions.h" return atanhf(a); # 682 "/usr/local/cuda/bin/../include/math_functions.h" } # 684 "/usr/local/cuda/bin/../include/math_functions.h" static inline float hypot(float a, float b) # 685 "/usr/local/cuda/bin/../include/math_functions.h" { # 686 "/usr/local/cuda/bin/../include/math_functions.h" return hypotf(a, b); # 687 "/usr/local/cuda/bin/../include/math_functions.h" } # 689 "/usr/local/cuda/bin/../include/math_functions.h" static inline float cbrt(float a) # 690 "/usr/local/cuda/bin/../include/math_functions.h" { # 691 "/usr/local/cuda/bin/../include/math_functions.h" return cbrtf(a); # 692 "/usr/local/cuda/bin/../include/math_functions.h" } # 694 "/usr/local/cuda/bin/../include/math_functions.h" static inline float rcbrt(float a) # 695 "/usr/local/cuda/bin/../include/math_functions.h" { # 696 "/usr/local/cuda/bin/../include/math_functions.h" return rcbrtf(a); # 697 "/usr/local/cuda/bin/../include/math_functions.h" } # 699 "/usr/local/cuda/bin/../include/math_functions.h" static inline float sinpi(float a) # 700 "/usr/local/cuda/bin/../include/math_functions.h" { # 701 "/usr/local/cuda/bin/../include/math_functions.h" return sinpif(a); # 702 "/usr/local/cuda/bin/../include/math_functions.h" } # 704 "/usr/local/cuda/bin/../include/math_functions.h" static inline void sincos(float a, float *sptr, float *cptr) # 705 "/usr/local/cuda/bin/../include/math_functions.h" { # 706 "/usr/local/cuda/bin/../include/math_functions.h" sincosf(a, sptr, cptr); # 707 "/usr/local/cuda/bin/../include/math_functions.h" } # 709 "/usr/local/cuda/bin/../include/math_functions.h" static inline float erf(float a) # 710 "/usr/local/cuda/bin/../include/math_functions.h" { # 711 "/usr/local/cuda/bin/../include/math_functions.h" return erff(a); # 712 "/usr/local/cuda/bin/../include/math_functions.h" } # 714 "/usr/local/cuda/bin/../include/math_functions.h" static inline float erfinv(float a) # 715 "/usr/local/cuda/bin/../include/math_functions.h" { # 716 "/usr/local/cuda/bin/../include/math_functions.h" return erfinvf(a); # 717 "/usr/local/cuda/bin/../include/math_functions.h" } # 719 "/usr/local/cuda/bin/../include/math_functions.h" static inline float erfc(float a) # 720 "/usr/local/cuda/bin/../include/math_functions.h" { # 721 "/usr/local/cuda/bin/../include/math_functions.h" return erfcf(a); # 722 "/usr/local/cuda/bin/../include/math_functions.h" } # 724 "/usr/local/cuda/bin/../include/math_functions.h" static inline float erfcinv(float a) # 725 "/usr/local/cuda/bin/../include/math_functions.h" { # 726 "/usr/local/cuda/bin/../include/math_functions.h" return erfcinvf(a); # 727 "/usr/local/cuda/bin/../include/math_functions.h" } # 729 "/usr/local/cuda/bin/../include/math_functions.h" static inline float lgamma(float a) # 730 "/usr/local/cuda/bin/../include/math_functions.h" { # 731 "/usr/local/cuda/bin/../include/math_functions.h" return lgammaf(a); # 732 "/usr/local/cuda/bin/../include/math_functions.h" } # 734 "/usr/local/cuda/bin/../include/math_functions.h" static inline float tgamma(float a) # 735 "/usr/local/cuda/bin/../include/math_functions.h" { # 736 "/usr/local/cuda/bin/../include/math_functions.h" return tgammaf(a); # 737 "/usr/local/cuda/bin/../include/math_functions.h" } # 739 "/usr/local/cuda/bin/../include/math_functions.h" static inline float copysign(float a, float b) # 740 "/usr/local/cuda/bin/../include/math_functions.h" { # 741 "/usr/local/cuda/bin/../include/math_functions.h" return copysignf(a, b); # 742 "/usr/local/cuda/bin/../include/math_functions.h" } # 744 "/usr/local/cuda/bin/../include/math_functions.h" static inline double copysign(double a, float b) # 745 "/usr/local/cuda/bin/../include/math_functions.h" { # 746 "/usr/local/cuda/bin/../include/math_functions.h" return copysign(a, (double)b); # 747 "/usr/local/cuda/bin/../include/math_functions.h" } # 749 "/usr/local/cuda/bin/../include/math_functions.h" static inline float copysign(float a, double b) # 750 "/usr/local/cuda/bin/../include/math_functions.h" { # 751 "/usr/local/cuda/bin/../include/math_functions.h" return copysignf(a, (float)b); # 752 "/usr/local/cuda/bin/../include/math_functions.h" } # 754 "/usr/local/cuda/bin/../include/math_functions.h" static inline float nextafter(float a, float b) # 755 "/usr/local/cuda/bin/../include/math_functions.h" { # 756 "/usr/local/cuda/bin/../include/math_functions.h" return nextafterf(a, b); # 757 "/usr/local/cuda/bin/../include/math_functions.h" } # 759 "/usr/local/cuda/bin/../include/math_functions.h" static inline float remainder(float a, float b) # 760 "/usr/local/cuda/bin/../include/math_functions.h" { # 761 "/usr/local/cuda/bin/../include/math_functions.h" return remainderf(a, b); # 762 "/usr/local/cuda/bin/../include/math_functions.h" } # 764 "/usr/local/cuda/bin/../include/math_functions.h" static inline float remquo(float a, float b, int *quo) # 765 "/usr/local/cuda/bin/../include/math_functions.h" { # 766 "/usr/local/cuda/bin/../include/math_functions.h" return remquof(a, b, quo); # 767 "/usr/local/cuda/bin/../include/math_functions.h" } # 769 "/usr/local/cuda/bin/../include/math_functions.h" static inline float round(float a) # 770 "/usr/local/cuda/bin/../include/math_functions.h" { # 771 "/usr/local/cuda/bin/../include/math_functions.h" return roundf(a); # 772 "/usr/local/cuda/bin/../include/math_functions.h" } # 774 "/usr/local/cuda/bin/../include/math_functions.h" static inline long lround(float a) # 775 "/usr/local/cuda/bin/../include/math_functions.h" { # 776 "/usr/local/cuda/bin/../include/math_functions.h" return lroundf(a); # 777 "/usr/local/cuda/bin/../include/math_functions.h" } # 779 "/usr/local/cuda/bin/../include/math_functions.h" static inline long long llround(float a) # 780 "/usr/local/cuda/bin/../include/math_functions.h" { # 781 "/usr/local/cuda/bin/../include/math_functions.h" return llroundf(a); # 782 "/usr/local/cuda/bin/../include/math_functions.h" } # 784 "/usr/local/cuda/bin/../include/math_functions.h" static inline float trunc(float a) # 785 "/usr/local/cuda/bin/../include/math_functions.h" { # 786 "/usr/local/cuda/bin/../include/math_functions.h" return truncf(a); # 787 "/usr/local/cuda/bin/../include/math_functions.h" } # 789 "/usr/local/cuda/bin/../include/math_functions.h" static inline float rint(float a) # 790 "/usr/local/cuda/bin/../include/math_functions.h" { # 791 "/usr/local/cuda/bin/../include/math_functions.h" return rintf(a); # 792 "/usr/local/cuda/bin/../include/math_functions.h" } # 794 "/usr/local/cuda/bin/../include/math_functions.h" static inline long lrint(float a) # 795 "/usr/local/cuda/bin/../include/math_functions.h" { # 796 "/usr/local/cuda/bin/../include/math_functions.h" return lrintf(a); # 797 "/usr/local/cuda/bin/../include/math_functions.h" } # 799 "/usr/local/cuda/bin/../include/math_functions.h" static inline long long llrint(float a) # 800 "/usr/local/cuda/bin/../include/math_functions.h" { # 801 "/usr/local/cuda/bin/../include/math_functions.h" return llrintf(a); # 802 "/usr/local/cuda/bin/../include/math_functions.h" } # 804 "/usr/local/cuda/bin/../include/math_functions.h" static inline float nearbyint(float a) # 805 "/usr/local/cuda/bin/../include/math_functions.h" { # 806 "/usr/local/cuda/bin/../include/math_functions.h" return nearbyintf(a); # 807 "/usr/local/cuda/bin/../include/math_functions.h" } # 809 "/usr/local/cuda/bin/../include/math_functions.h" static inline float fdim(float a, float b) # 810 "/usr/local/cuda/bin/../include/math_functions.h" { # 811 "/usr/local/cuda/bin/../include/math_functions.h" return fdimf(a, b); # 812 "/usr/local/cuda/bin/../include/math_functions.h" } # 814 "/usr/local/cuda/bin/../include/math_functions.h" static inline float fma(float a, float b, float c) # 815 "/usr/local/cuda/bin/../include/math_functions.h" { # 816 "/usr/local/cuda/bin/../include/math_functions.h" return fmaf(a, b, c); # 817 "/usr/local/cuda/bin/../include/math_functions.h" } # 819 "/usr/local/cuda/bin/../include/math_functions.h" static inline float fmax(float a, float b) # 820 "/usr/local/cuda/bin/../include/math_functions.h" { # 821 "/usr/local/cuda/bin/../include/math_functions.h" return fmaxf(a, b); # 822 "/usr/local/cuda/bin/../include/math_functions.h" } # 824 "/usr/local/cuda/bin/../include/math_functions.h" static inline float fmin(float a, float b) # 825 "/usr/local/cuda/bin/../include/math_functions.h" { # 826 "/usr/local/cuda/bin/../include/math_functions.h" return fminf(a, b); # 827 "/usr/local/cuda/bin/../include/math_functions.h" } # 829 "/usr/local/cuda/bin/../include/math_functions.h" static inline unsigned min(unsigned a, unsigned b) # 830 "/usr/local/cuda/bin/../include/math_functions.h" { # 831 "/usr/local/cuda/bin/../include/math_functions.h" return umin(a, b); # 832 "/usr/local/cuda/bin/../include/math_functions.h" } # 834 "/usr/local/cuda/bin/../include/math_functions.h" static inline unsigned min(int a, unsigned b) # 835 "/usr/local/cuda/bin/../include/math_functions.h" { # 836 "/usr/local/cuda/bin/../include/math_functions.h" return umin((unsigned)a, b); # 837 "/usr/local/cuda/bin/../include/math_functions.h" } # 839 "/usr/local/cuda/bin/../include/math_functions.h" static inline unsigned min(unsigned a, int b) # 840 "/usr/local/cuda/bin/../include/math_functions.h" { # 841 "/usr/local/cuda/bin/../include/math_functions.h" return umin(a, (unsigned)b); # 842 "/usr/local/cuda/bin/../include/math_functions.h" } # 844 "/usr/local/cuda/bin/../include/math_functions.h" static inline long long min(long long a, long long b) # 845 "/usr/local/cuda/bin/../include/math_functions.h" { # 846 "/usr/local/cuda/bin/../include/math_functions.h" return llmin(a, b); # 847 "/usr/local/cuda/bin/../include/math_functions.h" } # 849 "/usr/local/cuda/bin/../include/math_functions.h" static inline unsigned long long min(unsigned long long a, unsigned long long b) # 850 "/usr/local/cuda/bin/../include/math_functions.h" { # 851 "/usr/local/cuda/bin/../include/math_functions.h" return ullmin(a, b); # 852 "/usr/local/cuda/bin/../include/math_functions.h" } # 854 "/usr/local/cuda/bin/../include/math_functions.h" static inline unsigned long long min(long long a, unsigned long long b) # 855 "/usr/local/cuda/bin/../include/math_functions.h" { # 856 "/usr/local/cuda/bin/../include/math_functions.h" return ullmin((unsigned long long)a, b); # 857 "/usr/local/cuda/bin/../include/math_functions.h" } # 859 "/usr/local/cuda/bin/../include/math_functions.h" static inline unsigned long long min(unsigned long long a, long long b) # 860 "/usr/local/cuda/bin/../include/math_functions.h" { # 861 "/usr/local/cuda/bin/../include/math_functions.h" return ullmin(a, (unsigned long long)b); # 862 "/usr/local/cuda/bin/../include/math_functions.h" } # 864 "/usr/local/cuda/bin/../include/math_functions.h" static inline float min(float a, float b) # 865 "/usr/local/cuda/bin/../include/math_functions.h" { # 866 "/usr/local/cuda/bin/../include/math_functions.h" return fminf(a, b); # 867 "/usr/local/cuda/bin/../include/math_functions.h" } # 869 "/usr/local/cuda/bin/../include/math_functions.h" static inline double min(double a, double b) # 870 "/usr/local/cuda/bin/../include/math_functions.h" { # 871 "/usr/local/cuda/bin/../include/math_functions.h" return fmin(a, b); # 872 "/usr/local/cuda/bin/../include/math_functions.h" } # 874 "/usr/local/cuda/bin/../include/math_functions.h" static inline double min(float a, double b) # 875 "/usr/local/cuda/bin/../include/math_functions.h" { # 876 "/usr/local/cuda/bin/../include/math_functions.h" return fmin((double)a, b); # 877 "/usr/local/cuda/bin/../include/math_functions.h" } # 879 "/usr/local/cuda/bin/../include/math_functions.h" static inline double min(double a, float b) # 880 "/usr/local/cuda/bin/../include/math_functions.h" { # 881 "/usr/local/cuda/bin/../include/math_functions.h" return fmin(a, (double)b); # 882 "/usr/local/cuda/bin/../include/math_functions.h" } # 884 "/usr/local/cuda/bin/../include/math_functions.h" static inline unsigned max(unsigned a, unsigned b) # 885 "/usr/local/cuda/bin/../include/math_functions.h" { # 886 "/usr/local/cuda/bin/../include/math_functions.h" return umax(a, b); # 887 "/usr/local/cuda/bin/../include/math_functions.h" } # 889 "/usr/local/cuda/bin/../include/math_functions.h" static inline unsigned max(int a, unsigned b) # 890 "/usr/local/cuda/bin/../include/math_functions.h" { # 891 "/usr/local/cuda/bin/../include/math_functions.h" return umax((unsigned)a, b); # 892 "/usr/local/cuda/bin/../include/math_functions.h" } # 894 "/usr/local/cuda/bin/../include/math_functions.h" static inline unsigned max(unsigned a, int b) # 895 "/usr/local/cuda/bin/../include/math_functions.h" { # 896 "/usr/local/cuda/bin/../include/math_functions.h" return umax(a, (unsigned)b); # 897 "/usr/local/cuda/bin/../include/math_functions.h" } # 899 "/usr/local/cuda/bin/../include/math_functions.h" static inline long long max(long long a, long long b) # 900 "/usr/local/cuda/bin/../include/math_functions.h" { # 901 "/usr/local/cuda/bin/../include/math_functions.h" return llmax(a, b); # 902 "/usr/local/cuda/bin/../include/math_functions.h" } # 904 "/usr/local/cuda/bin/../include/math_functions.h" static inline unsigned long long max(unsigned long long a, unsigned long long b) # 905 "/usr/local/cuda/bin/../include/math_functions.h" { # 906 "/usr/local/cuda/bin/../include/math_functions.h" return ullmax(a, b); # 907 "/usr/local/cuda/bin/../include/math_functions.h" } # 909 "/usr/local/cuda/bin/../include/math_functions.h" static inline unsigned long long max(long long a, unsigned long long b) # 910 "/usr/local/cuda/bin/../include/math_functions.h" { # 911 "/usr/local/cuda/bin/../include/math_functions.h" return ullmax((unsigned long long)a, b); # 912 "/usr/local/cuda/bin/../include/math_functions.h" } # 914 "/usr/local/cuda/bin/../include/math_functions.h" static inline unsigned long long max(unsigned long long a, long long b) # 915 "/usr/local/cuda/bin/../include/math_functions.h" { # 916 "/usr/local/cuda/bin/../include/math_functions.h" return ullmax(a, (unsigned long long)b); # 917 "/usr/local/cuda/bin/../include/math_functions.h" } # 919 "/usr/local/cuda/bin/../include/math_functions.h" static inline float max(float a, float b) # 920 "/usr/local/cuda/bin/../include/math_functions.h" { # 921 "/usr/local/cuda/bin/../include/math_functions.h" return fmaxf(a, b); # 922 "/usr/local/cuda/bin/../include/math_functions.h" } # 924 "/usr/local/cuda/bin/../include/math_functions.h" static inline double max(double a, double b) # 925 "/usr/local/cuda/bin/../include/math_functions.h" { # 926 "/usr/local/cuda/bin/../include/math_functions.h" return fmax(a, b); # 927 "/usr/local/cuda/bin/../include/math_functions.h" } # 929 "/usr/local/cuda/bin/../include/math_functions.h" static inline double max(float a, double b) # 930 "/usr/local/cuda/bin/../include/math_functions.h" { # 931 "/usr/local/cuda/bin/../include/math_functions.h" return fmax((double)a, b); # 932 "/usr/local/cuda/bin/../include/math_functions.h" } # 934 "/usr/local/cuda/bin/../include/math_functions.h" static inline double max(double a, float b) # 935 "/usr/local/cuda/bin/../include/math_functions.h" { # 936 "/usr/local/cuda/bin/../include/math_functions.h" return fmax(a, (double)b); # 937 "/usr/local/cuda/bin/../include/math_functions.h" } # 60 "/usr/local/cuda/bin/../include/cuda_surface_types.h" template< class T, int dim = 1> # 61 "/usr/local/cuda/bin/../include/cuda_surface_types.h" struct surface : public surfaceReference { # 63 "/usr/local/cuda/bin/../include/cuda_surface_types.h" surface() # 64 "/usr/local/cuda/bin/../include/cuda_surface_types.h" { # 65 "/usr/local/cuda/bin/../include/cuda_surface_types.h" (channelDesc) = cudaCreateChannelDesc< T> (); # 66 "/usr/local/cuda/bin/../include/cuda_surface_types.h" } # 68 "/usr/local/cuda/bin/../include/cuda_surface_types.h" surface(cudaChannelFormatDesc desc) # 69 "/usr/local/cuda/bin/../include/cuda_surface_types.h" { # 70 "/usr/local/cuda/bin/../include/cuda_surface_types.h" (channelDesc) = desc; # 71 "/usr/local/cuda/bin/../include/cuda_surface_types.h" } # 72 "/usr/local/cuda/bin/../include/cuda_surface_types.h" }; # 75 "/usr/local/cuda/bin/../include/cuda_surface_types.h" template< int dim> # 76 "/usr/local/cuda/bin/../include/cuda_surface_types.h" struct surface< void, dim> : public surfaceReference { # 78 "/usr/local/cuda/bin/../include/cuda_surface_types.h" surface() # 79 "/usr/local/cuda/bin/../include/cuda_surface_types.h" { # 80 "/usr/local/cuda/bin/../include/cuda_surface_types.h" (channelDesc) = cudaCreateChannelDesc< void> (); # 81 "/usr/local/cuda/bin/../include/cuda_surface_types.h" } # 82 "/usr/local/cuda/bin/../include/cuda_surface_types.h" }; # 60 "/usr/local/cuda/bin/../include/cuda_texture_types.h" template< class T, int dim = 1, cudaTextureReadMode mode = cudaReadModeElementType> # 61 "/usr/local/cuda/bin/../include/cuda_texture_types.h" struct texture : public textureReference { # 63 "/usr/local/cuda/bin/../include/cuda_texture_types.h" texture(int norm = 0, cudaTextureFilterMode # 64 "/usr/local/cuda/bin/../include/cuda_texture_types.h" fMode = cudaFilterModePoint, cudaTextureAddressMode # 65 "/usr/local/cuda/bin/../include/cuda_texture_types.h" aMode = cudaAddressModeClamp) # 66 "/usr/local/cuda/bin/../include/cuda_texture_types.h" { # 67 "/usr/local/cuda/bin/../include/cuda_texture_types.h" (normalized) = norm; # 68 "/usr/local/cuda/bin/../include/cuda_texture_types.h" (filterMode) = fMode; # 69 "/usr/local/cuda/bin/../include/cuda_texture_types.h" ((addressMode)[0]) = aMode; # 70 "/usr/local/cuda/bin/../include/cuda_texture_types.h" ((addressMode)[1]) = aMode; # 71 "/usr/local/cuda/bin/../include/cuda_texture_types.h" ((addressMode)[2]) = aMode; # 72 "/usr/local/cuda/bin/../include/cuda_texture_types.h" (channelDesc) = cudaCreateChannelDesc< T> (); # 73 "/usr/local/cuda/bin/../include/cuda_texture_types.h" } # 75 "/usr/local/cuda/bin/../include/cuda_texture_types.h" texture(int norm, cudaTextureFilterMode # 76 "/usr/local/cuda/bin/../include/cuda_texture_types.h" fMode, cudaTextureAddressMode # 77 "/usr/local/cuda/bin/../include/cuda_texture_types.h" aMode, cudaChannelFormatDesc # 78 "/usr/local/cuda/bin/../include/cuda_texture_types.h" desc) # 79 "/usr/local/cuda/bin/../include/cuda_texture_types.h" { # 80 "/usr/local/cuda/bin/../include/cuda_texture_types.h" (normalized) = norm; # 81 "/usr/local/cuda/bin/../include/cuda_texture_types.h" (filterMode) = fMode; # 82 "/usr/local/cuda/bin/../include/cuda_texture_types.h" ((addressMode)[0]) = aMode; # 83 "/usr/local/cuda/bin/../include/cuda_texture_types.h" ((addressMode)[1]) = aMode; # 84 "/usr/local/cuda/bin/../include/cuda_texture_types.h" ((addressMode)[2]) = aMode; # 85 "/usr/local/cuda/bin/../include/cuda_texture_types.h" (channelDesc) = desc; # 86 "/usr/local/cuda/bin/../include/cuda_texture_types.h" } # 87 "/usr/local/cuda/bin/../include/cuda_texture_types.h" }; # 324 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline int mulhi(int a, int b) # 325 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 327 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 329 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline unsigned mulhi(unsigned a, unsigned b) # 330 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 332 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 334 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline unsigned mulhi(int a, unsigned b) # 335 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 337 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 339 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline unsigned mulhi(unsigned a, int b) # 340 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 342 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 344 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline long long mul64hi(long long a, long long b) # 345 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 347 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 349 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline unsigned long long mul64hi(unsigned long long a, unsigned long long b) # 350 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 352 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 354 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline unsigned long long mul64hi(long long a, unsigned long long b) # 355 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 357 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 359 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline unsigned long long mul64hi(unsigned long long a, long long b) # 360 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 362 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 364 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline int float_as_int(float a) # 365 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 367 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 369 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline float int_as_float(int a) # 370 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 372 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 374 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline float saturate(float a) # 375 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 377 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 379 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline int mul24(int a, int b) # 380 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 382 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 384 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline unsigned umul24(unsigned a, unsigned b) # 385 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 387 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 389 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline void trap() # 390 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 392 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 394 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline void brkpt(int c) # 395 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 397 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 399 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline void syncthreads() # 400 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 402 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 404 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline void prof_trigger(int e) # 405 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 422 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 424 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline void threadfence(bool global = true) # 425 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 427 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 429 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline int float2int(float a, cudaRoundMode mode = cudaRoundZero) # 430 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 435 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 437 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline unsigned float2uint(float a, cudaRoundMode mode = cudaRoundZero) # 438 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 443 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 445 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline float int2float(int a, cudaRoundMode mode = cudaRoundNearest) # 446 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 451 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 453 "/usr/local/cuda/bin/../include/device_functions.h" __attribute__((unused)) static inline float uint2float(unsigned a, cudaRoundMode mode = cudaRoundNearest) # 454 "/usr/local/cuda/bin/../include/device_functions.h" {int volatile ___ = 1; # 459 "/usr/local/cuda/bin/../include/device_functions.h" exit(___);} # 102 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline int atomicAdd(int *address, int val) # 103 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 105 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 107 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline unsigned atomicAdd(unsigned *address, unsigned val) # 108 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 110 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 112 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline int atomicSub(int *address, int val) # 113 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 115 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 117 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline unsigned atomicSub(unsigned *address, unsigned val) # 118 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 120 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 122 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline int atomicExch(int *address, int val) # 123 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 125 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 127 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline unsigned atomicExch(unsigned *address, unsigned val) # 128 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 130 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 132 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline float atomicExch(float *address, float val) # 133 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 135 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 137 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline int atomicMin(int *address, int val) # 138 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 140 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 142 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline unsigned atomicMin(unsigned *address, unsigned val) # 143 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 145 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 147 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline int atomicMax(int *address, int val) # 148 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 150 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 152 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline unsigned atomicMax(unsigned *address, unsigned val) # 153 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 155 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 157 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline unsigned atomicInc(unsigned *address, unsigned val) # 158 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 160 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 162 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline unsigned atomicDec(unsigned *address, unsigned val) # 163 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 165 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 167 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline int atomicAnd(int *address, int val) # 168 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 170 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 172 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline unsigned atomicAnd(unsigned *address, unsigned val) # 173 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 175 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 177 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline int atomicOr(int *address, int val) # 178 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 180 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 182 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline unsigned atomicOr(unsigned *address, unsigned val) # 183 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 185 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 187 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline int atomicXor(int *address, int val) # 188 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 190 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 192 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline unsigned atomicXor(unsigned *address, unsigned val) # 193 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 195 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 197 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline int atomicCAS(int *address, int compare, int val) # 198 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 200 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 202 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" __attribute__((unused)) static inline unsigned atomicCAS(unsigned *address, unsigned compare, unsigned val) # 203 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" {int volatile ___ = 1; # 205 "/usr/local/cuda/bin/../include/sm_11_atomic_functions.h" exit(___);} # 75 "/usr/local/cuda/bin/../include/sm_12_atomic_functions.h" __attribute__((unused)) static inline unsigned long long atomicAdd(unsigned long long *address, unsigned long long val) # 76 "/usr/local/cuda/bin/../include/sm_12_atomic_functions.h" {int volatile ___ = 1; # 78 "/usr/local/cuda/bin/../include/sm_12_atomic_functions.h" exit(___);} # 80 "/usr/local/cuda/bin/../include/sm_12_atomic_functions.h" __attribute__((unused)) static inline unsigned long long atomicExch(unsigned long long *address, unsigned long long val) # 81 "/usr/local/cuda/bin/../include/sm_12_atomic_functions.h" {int volatile ___ = 1; # 83 "/usr/local/cuda/bin/../include/sm_12_atomic_functions.h" exit(___);} # 85 "/usr/local/cuda/bin/../include/sm_12_atomic_functions.h" __attribute__((unused)) static inline unsigned long long atomicCAS(unsigned long long *address, unsigned long long compare, unsigned long long val) # 86 "/usr/local/cuda/bin/../include/sm_12_atomic_functions.h" {int volatile ___ = 1; # 88 "/usr/local/cuda/bin/../include/sm_12_atomic_functions.h" exit(___);} # 90 "/usr/local/cuda/bin/../include/sm_12_atomic_functions.h" __attribute__((unused)) static inline bool any(bool cond) # 91 "/usr/local/cuda/bin/../include/sm_12_atomic_functions.h" {int volatile ___ = 1; # 93 "/usr/local/cuda/bin/../include/sm_12_atomic_functions.h" exit(___);} # 95 "/usr/local/cuda/bin/../include/sm_12_atomic_functions.h" __attribute__((unused)) static inline bool all(bool cond) # 96 "/usr/local/cuda/bin/../include/sm_12_atomic_functions.h" {int volatile ___ = 1; # 98 "/usr/local/cuda/bin/../include/sm_12_atomic_functions.h" exit(___);} # 170 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" __attribute__((unused)) static inline double fma(double a, double b, double c, cudaRoundMode mode) # 171 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" {int volatile ___ = 1; # 176 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" exit(___);} # 178 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" __attribute__((unused)) static inline double dmul(double a, double b, cudaRoundMode mode = cudaRoundNearest) # 179 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" {int volatile ___ = 1; # 184 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" exit(___);} # 186 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" __attribute__((unused)) static inline double dadd(double a, double b, cudaRoundMode mode = cudaRoundNearest) # 187 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" {int volatile ___ = 1; # 192 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" exit(___);} # 194 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" __attribute__((unused)) static inline int double2int(double a, cudaRoundMode mode = cudaRoundZero) # 195 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" {int volatile ___ = 1; # 200 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" exit(___);} # 202 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" __attribute__((unused)) static inline unsigned double2uint(double a, cudaRoundMode mode = cudaRoundZero) # 203 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" {int volatile ___ = 1; # 208 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" exit(___);} # 210 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" __attribute__((unused)) static inline long long double2ll(double a, cudaRoundMode mode = cudaRoundZero) # 211 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" {int volatile ___ = 1; # 216 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" exit(___);} # 218 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" __attribute__((unused)) static inline unsigned long long double2ull(double a, cudaRoundMode mode = cudaRoundZero) # 219 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" {int volatile ___ = 1; # 224 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" exit(___);} # 226 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" __attribute__((unused)) static inline double ll2double(long long a, cudaRoundMode mode = cudaRoundNearest) # 227 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" {int volatile ___ = 1; # 232 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" exit(___);} # 234 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" __attribute__((unused)) static inline double ull2double(unsigned long long a, cudaRoundMode mode = cudaRoundNearest) # 235 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" {int volatile ___ = 1; # 240 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" exit(___);} # 242 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" __attribute__((unused)) static inline double int2double(int a, cudaRoundMode mode = cudaRoundNearest) # 243 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" {int volatile ___ = 1; # 245 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" exit(___);} # 247 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" __attribute__((unused)) static inline double uint2double(unsigned a, cudaRoundMode mode = cudaRoundNearest) # 248 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" {int volatile ___ = 1; # 250 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" exit(___);} # 252 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" __attribute__((unused)) static inline double float2double(float a, cudaRoundMode mode = cudaRoundNearest) # 253 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" {int volatile ___ = 1; # 255 "/usr/local/cuda/bin/../include/sm_13_double_functions.h" exit(___);} # 66 "/usr/local/cuda/bin/../include/sm_20_atomic_functions.h" __attribute__((unused)) static inline float atomicAdd(float *address, float val) # 67 "/usr/local/cuda/bin/../include/sm_20_atomic_functions.h" {int volatile ___ = 1; # 69 "/usr/local/cuda/bin/../include/sm_20_atomic_functions.h" exit(___);} # 124 "/usr/local/cuda/bin/../include/sm_20_intrinsics.h" __attribute__((unused)) static inline unsigned ballot(bool pred) # 125 "/usr/local/cuda/bin/../include/sm_20_intrinsics.h" {int volatile ___ = 1; # 127 "/usr/local/cuda/bin/../include/sm_20_intrinsics.h" exit(___);} # 129 "/usr/local/cuda/bin/../include/sm_20_intrinsics.h" __attribute__((unused)) static inline int syncthreads_count(bool pred) # 130 "/usr/local/cuda/bin/../include/sm_20_intrinsics.h" {int volatile ___ = 1; # 132 "/usr/local/cuda/bin/../include/sm_20_intrinsics.h" exit(___);} # 134 "/usr/local/cuda/bin/../include/sm_20_intrinsics.h" __attribute__((unused)) static inline bool syncthreads_and(bool pred) # 135 "/usr/local/cuda/bin/../include/sm_20_intrinsics.h" {int volatile ___ = 1; # 137 "/usr/local/cuda/bin/../include/sm_20_intrinsics.h" exit(___);} # 139 "/usr/local/cuda/bin/../include/sm_20_intrinsics.h" __attribute__((unused)) static inline bool syncthreads_or(bool pred) # 140 "/usr/local/cuda/bin/../include/sm_20_intrinsics.h" {int volatile ___ = 1; # 142 "/usr/local/cuda/bin/../include/sm_20_intrinsics.h" exit(___);} # 97 "/usr/local/cuda/bin/../include/surface_functions.h" template< class T> __attribute__((unused)) static inline void # 98 "/usr/local/cuda/bin/../include/surface_functions.h" surf1Dread(T *res, surface< void, 1> surf, int x, int s, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 99 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 106 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 108 "/usr/local/cuda/bin/../include/surface_functions.h" template< class T> __attribute__((unused)) static inline T # 109 "/usr/local/cuda/bin/../include/surface_functions.h" surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 110 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 116 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 118 "/usr/local/cuda/bin/../include/surface_functions.h" template< class T> __attribute__((unused)) static inline void # 119 "/usr/local/cuda/bin/../include/surface_functions.h" surf1Dread(T *res, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 120 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 122 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 125 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline char surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 126 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 128 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 131 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline signed char surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 132 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 134 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 137 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline unsigned char surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 138 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 140 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 143 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline char1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 144 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 146 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 149 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline uchar1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 150 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 152 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 155 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline char2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 156 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 160 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 163 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline uchar2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 164 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 166 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 169 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline char4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 170 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 174 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 177 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline uchar4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 178 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 180 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 183 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline short surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 184 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 186 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 189 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline unsigned short surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 190 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 192 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 195 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline short1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 196 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 198 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 201 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline ushort1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 202 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 204 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 207 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline short2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 208 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 212 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 215 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline ushort2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 216 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 218 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 221 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline short4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 222 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 226 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 229 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline ushort4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 230 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 232 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 235 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline int surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 236 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 238 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 241 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline unsigned surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 242 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 244 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 247 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline int1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 248 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 250 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 253 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline uint1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 254 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 256 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 259 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline int2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 260 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 264 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 267 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline uint2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 268 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 270 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 273 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline int4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 274 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 278 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 281 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline uint4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 282 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 284 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 287 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline long long surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 288 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 290 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 293 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline unsigned long long surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 294 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 296 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 299 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline longlong1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 300 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 302 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 305 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline ulonglong1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 306 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 308 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 311 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline longlong2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 312 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 316 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 319 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline ulonglong2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 320 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 322 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 385 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline float surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 386 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 388 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 391 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline float1 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 392 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 394 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 397 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline float2 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 398 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 402 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 405 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline float4 surf1Dread(surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode) # 406 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 410 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 457 "/usr/local/cuda/bin/../include/surface_functions.h" template< class T> __attribute__((unused)) static inline void # 458 "/usr/local/cuda/bin/../include/surface_functions.h" surf2Dread(T *res, surface< void, 2> surf, int x, int y, int s, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 459 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 466 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 468 "/usr/local/cuda/bin/../include/surface_functions.h" template< class T> __attribute__((unused)) static inline T # 469 "/usr/local/cuda/bin/../include/surface_functions.h" surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 470 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 476 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 478 "/usr/local/cuda/bin/../include/surface_functions.h" template< class T> __attribute__((unused)) static inline void # 479 "/usr/local/cuda/bin/../include/surface_functions.h" surf2Dread(T *res, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 480 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 482 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 485 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline char surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 486 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 488 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 491 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline signed char surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 492 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 494 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 497 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline unsigned char surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 498 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 500 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 503 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline char1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 504 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 506 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 509 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline uchar1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 510 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 512 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 515 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline char2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 516 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 520 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 523 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline uchar2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 524 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 526 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 529 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline char4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 530 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 534 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 537 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline uchar4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 538 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 540 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 543 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline short surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 544 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 546 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 549 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline unsigned short surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 550 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 552 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 555 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline short1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 556 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 558 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 561 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline ushort1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 562 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 564 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 567 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline short2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 568 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 572 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 575 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline ushort2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 576 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 578 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 581 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline short4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 582 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 586 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 589 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline ushort4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 590 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 592 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 595 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline int surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 596 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 598 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 601 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline unsigned surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 602 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 604 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 607 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline int1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 608 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 610 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 613 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline uint1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 614 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 616 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 619 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline int2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 620 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 624 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 627 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline uint2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 628 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 630 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 633 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline int4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 634 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 638 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 641 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline uint4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 642 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 644 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 647 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline long long surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 648 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 650 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 653 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline unsigned long long surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 654 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 656 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 659 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline longlong1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 660 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 662 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 665 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline ulonglong1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 666 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 668 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 671 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline longlong2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 672 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 676 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 679 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline ulonglong2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 680 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 682 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 745 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline float surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 746 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 748 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 751 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline float1 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 752 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 754 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 757 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline float2 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 758 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 762 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 765 "/usr/local/cuda/bin/../include/surface_functions.h" template<> __attribute__((unused)) inline float4 surf2Dread(surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode) # 766 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 770 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 817 "/usr/local/cuda/bin/../include/surface_functions.h" template< class T> __attribute__((unused)) static inline void # 818 "/usr/local/cuda/bin/../include/surface_functions.h" surf1Dwrite(T val, surface< void, 1> surf, int x, int s, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 819 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 837 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 839 "/usr/local/cuda/bin/../include/surface_functions.h" template< class T> __attribute__((unused)) static inline void # 840 "/usr/local/cuda/bin/../include/surface_functions.h" surf1Dwrite(T val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 841 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 843 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 846 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(char val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 847 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 849 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 851 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(signed char val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 852 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 854 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 856 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(unsigned char val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 857 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 859 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 861 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(char1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 862 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 864 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 866 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(uchar1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 867 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 869 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 871 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(char2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 872 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 874 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 876 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(uchar2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 877 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 879 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 881 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(char4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 882 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 884 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 886 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(uchar4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 887 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 889 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 891 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(short val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 892 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 894 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 896 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(unsigned short val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 897 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 899 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 901 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(short1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 902 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 904 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 906 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(ushort1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 907 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 909 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 911 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(short2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 912 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 914 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 916 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(ushort2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 917 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 919 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 921 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(short4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 922 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 924 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 926 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(ushort4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 927 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 929 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 931 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(int val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 932 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 934 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 936 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(unsigned val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 937 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 939 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 941 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(int1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 942 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 944 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 946 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(uint1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 947 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 949 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 951 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(int2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 952 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 954 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 956 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(uint2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 957 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 959 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 961 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(int4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 962 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 964 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 966 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(uint4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 967 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 969 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 971 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(long long val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 972 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 974 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 976 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(unsigned long long val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 977 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 979 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 981 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(longlong1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 982 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 984 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 986 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(ulonglong1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 987 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 989 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 991 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(longlong2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 992 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 994 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 996 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(ulonglong2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 997 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 999 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1045 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(float val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1046 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1048 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1050 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(float1 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1051 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1053 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1055 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(float2 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1056 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1058 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1060 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf1Dwrite(float4 val, surface< void, 1> surf, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1061 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1063 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1110 "/usr/local/cuda/bin/../include/surface_functions.h" template< class T> __attribute__((unused)) static inline void # 1111 "/usr/local/cuda/bin/../include/surface_functions.h" surf2Dwrite(T val, surface< void, 2> surf, int x, int y, int s, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1112 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1130 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1132 "/usr/local/cuda/bin/../include/surface_functions.h" template< class T> __attribute__((unused)) static inline void # 1133 "/usr/local/cuda/bin/../include/surface_functions.h" surf2Dwrite(T val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1134 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1136 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1139 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(char val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1140 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1142 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1144 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(signed char val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1145 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1147 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1149 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(unsigned char val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1150 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1152 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1154 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(char1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1155 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1157 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1159 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(uchar1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1160 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1162 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1164 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(char2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1165 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1167 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1169 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(uchar2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1170 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1172 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1174 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(char4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1175 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1177 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1179 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(uchar4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1180 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1182 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1184 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(short val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1185 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1187 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1189 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(unsigned short val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1190 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1192 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1194 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(short1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1195 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1197 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1199 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(ushort1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1200 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1202 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1204 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(short2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1205 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1207 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1209 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(ushort2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1210 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1212 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1214 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(short4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1215 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1217 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1219 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(ushort4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1220 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1222 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1224 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(int val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1225 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1227 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1229 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(unsigned val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1230 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1232 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1234 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(int1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1235 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1237 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1239 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(uint1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1240 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1242 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1244 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(int2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1245 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1247 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1249 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(uint2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1250 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1252 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1254 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(int4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1255 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1257 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1259 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(uint4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1260 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1262 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1264 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(long long val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1265 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1267 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1269 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(unsigned long long val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1270 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1272 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1274 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(longlong1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1275 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1277 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1279 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(ulonglong1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1280 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1282 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1284 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(longlong2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1285 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1287 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1289 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(ulonglong2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1290 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1292 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1338 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(float val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1339 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1341 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1343 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(float1 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1344 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1346 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1348 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(float2 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1349 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1351 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 1353 "/usr/local/cuda/bin/../include/surface_functions.h" __attribute__((unused)) static inline void surf2Dwrite(float4 val, surface< void, 2> surf, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap) # 1354 "/usr/local/cuda/bin/../include/surface_functions.h" {int volatile ___ = 1; # 1356 "/usr/local/cuda/bin/../include/surface_functions.h" exit(___);} # 61 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" template< class T, cudaTextureReadMode readMode> __attribute__((unused)) extern uint4 __utexfetchi(texture< T, 1, readMode> , int4); # 63 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" template< class T, cudaTextureReadMode readMode> __attribute__((unused)) extern int4 __itexfetchi(texture< T, 1, readMode> , int4); # 65 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" template< class T, cudaTextureReadMode readMode> __attribute__((unused)) extern float4 __ftexfetchi(texture< T, 1, readMode> , int4); # 68 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" template< class T, int dim, cudaTextureReadMode readMode> __attribute__((unused)) extern uint4 __utexfetch(texture< T, dim, readMode> , float4, int = dim); # 70 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" template< class T, int dim, cudaTextureReadMode readMode> __attribute__((unused)) extern int4 __itexfetch(texture< T, dim, readMode> , float4, int = dim); # 72 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" template< class T, int dim, cudaTextureReadMode readMode> __attribute__((unused)) extern float4 __ftexfetch(texture< T, dim, readMode> , float4, int = dim); # 80 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char tex1Dfetch(texture< char, 1, cudaReadModeElementType> t, int x) # 81 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 89 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 91 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline signed char tex1Dfetch(texture< signed char, 1, cudaReadModeElementType> t, int x) # 92 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 96 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 98 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline unsigned char tex1Dfetch(texture< unsigned char, 1, cudaReadModeElementType> t, int x) # 99 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 103 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 105 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char1 tex1Dfetch(texture< char1, 1, cudaReadModeElementType> t, int x) # 106 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 110 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 112 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar1 tex1Dfetch(texture< uchar1, 1, cudaReadModeElementType> t, int x) # 113 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 117 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 119 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char2 tex1Dfetch(texture< char2, 1, cudaReadModeElementType> t, int x) # 120 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 124 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 126 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar2 tex1Dfetch(texture< uchar2, 1, cudaReadModeElementType> t, int x) # 127 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 131 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 133 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char4 tex1Dfetch(texture< char4, 1, cudaReadModeElementType> t, int x) # 134 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 138 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 140 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar4 tex1Dfetch(texture< uchar4, 1, cudaReadModeElementType> t, int x) # 141 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 145 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 153 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short tex1Dfetch(texture< short, 1, cudaReadModeElementType> t, int x) # 154 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 158 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 160 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline unsigned short tex1Dfetch(texture< unsigned short, 1, cudaReadModeElementType> t, int x) # 161 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 165 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 167 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short1 tex1Dfetch(texture< short1, 1, cudaReadModeElementType> t, int x) # 168 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 172 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 174 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort1 tex1Dfetch(texture< ushort1, 1, cudaReadModeElementType> t, int x) # 175 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 179 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 181 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short2 tex1Dfetch(texture< short2, 1, cudaReadModeElementType> t, int x) # 182 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 186 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 188 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort2 tex1Dfetch(texture< ushort2, 1, cudaReadModeElementType> t, int x) # 189 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 193 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 195 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short4 tex1Dfetch(texture< short4, 1, cudaReadModeElementType> t, int x) # 196 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 200 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 202 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort4 tex1Dfetch(texture< ushort4, 1, cudaReadModeElementType> t, int x) # 203 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 207 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 215 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int tex1Dfetch(texture< int, 1, cudaReadModeElementType> t, int x) # 216 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 220 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 222 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline unsigned tex1Dfetch(texture< unsigned, 1, cudaReadModeElementType> t, int x) # 223 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 227 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 229 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int1 tex1Dfetch(texture< int1, 1, cudaReadModeElementType> t, int x) # 230 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 234 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 236 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint1 tex1Dfetch(texture< uint1, 1, cudaReadModeElementType> t, int x) # 237 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 241 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 243 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int2 tex1Dfetch(texture< int2, 1, cudaReadModeElementType> t, int x) # 244 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 248 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 250 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint2 tex1Dfetch(texture< uint2, 1, cudaReadModeElementType> t, int x) # 251 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 255 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 257 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int4 tex1Dfetch(texture< int4, 1, cudaReadModeElementType> t, int x) # 258 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 262 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 264 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint4 tex1Dfetch(texture< uint4, 1, cudaReadModeElementType> t, int x) # 265 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 269 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 343 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex1Dfetch(texture< float, 1, cudaReadModeElementType> t, int x) # 344 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 348 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 350 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex1Dfetch(texture< float1, 1, cudaReadModeElementType> t, int x) # 351 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 355 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 357 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex1Dfetch(texture< float2, 1, cudaReadModeElementType> t, int x) # 358 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 362 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 364 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex1Dfetch(texture< float4, 1, cudaReadModeElementType> t, int x) # 365 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 369 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 377 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex1Dfetch(texture< char, 1, cudaReadModeNormalizedFloat> t, int x) # 378 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 387 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 389 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex1Dfetch(texture< signed char, 1, cudaReadModeNormalizedFloat> t, int x) # 390 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 395 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 397 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex1Dfetch(texture< unsigned char, 1, cudaReadModeNormalizedFloat> t, int x) # 398 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 403 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 405 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex1Dfetch(texture< char1, 1, cudaReadModeNormalizedFloat> t, int x) # 406 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 411 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 413 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex1Dfetch(texture< uchar1, 1, cudaReadModeNormalizedFloat> t, int x) # 414 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 419 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 421 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex1Dfetch(texture< char2, 1, cudaReadModeNormalizedFloat> t, int x) # 422 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 427 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 429 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex1Dfetch(texture< uchar2, 1, cudaReadModeNormalizedFloat> t, int x) # 430 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 435 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 437 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex1Dfetch(texture< char4, 1, cudaReadModeNormalizedFloat> t, int x) # 438 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 443 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 445 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex1Dfetch(texture< uchar4, 1, cudaReadModeNormalizedFloat> t, int x) # 446 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 451 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 459 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex1Dfetch(texture< short, 1, cudaReadModeNormalizedFloat> t, int x) # 460 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 465 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 467 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex1Dfetch(texture< unsigned short, 1, cudaReadModeNormalizedFloat> t, int x) # 468 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 473 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 475 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex1Dfetch(texture< short1, 1, cudaReadModeNormalizedFloat> t, int x) # 476 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 481 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 483 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex1Dfetch(texture< ushort1, 1, cudaReadModeNormalizedFloat> t, int x) # 484 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 489 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 491 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex1Dfetch(texture< short2, 1, cudaReadModeNormalizedFloat> t, int x) # 492 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 497 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 499 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex1Dfetch(texture< ushort2, 1, cudaReadModeNormalizedFloat> t, int x) # 500 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 505 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 507 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex1Dfetch(texture< short4, 1, cudaReadModeNormalizedFloat> t, int x) # 508 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 513 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 515 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex1Dfetch(texture< ushort4, 1, cudaReadModeNormalizedFloat> t, int x) # 516 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 521 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 529 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char tex1D(texture< char, 1, cudaReadModeElementType> t, float x) # 530 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 538 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 540 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline signed char tex1D(texture< signed char, 1, cudaReadModeElementType> t, float x) # 541 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 545 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 547 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline unsigned char tex1D(texture< unsigned char, 1, cudaReadModeElementType> t, float x) # 548 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 552 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 554 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char1 tex1D(texture< char1, 1, cudaReadModeElementType> t, float x) # 555 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 559 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 561 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar1 tex1D(texture< uchar1, 1, cudaReadModeElementType> t, float x) # 562 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 566 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 568 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char2 tex1D(texture< char2, 1, cudaReadModeElementType> t, float x) # 569 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 573 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 575 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar2 tex1D(texture< uchar2, 1, cudaReadModeElementType> t, float x) # 576 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 580 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 582 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char4 tex1D(texture< char4, 1, cudaReadModeElementType> t, float x) # 583 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 587 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 589 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar4 tex1D(texture< uchar4, 1, cudaReadModeElementType> t, float x) # 590 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 594 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 602 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short tex1D(texture< short, 1, cudaReadModeElementType> t, float x) # 603 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 607 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 609 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline unsigned short tex1D(texture< unsigned short, 1, cudaReadModeElementType> t, float x) # 610 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 614 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 616 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short1 tex1D(texture< short1, 1, cudaReadModeElementType> t, float x) # 617 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 621 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 623 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort1 tex1D(texture< ushort1, 1, cudaReadModeElementType> t, float x) # 624 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 628 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 630 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short2 tex1D(texture< short2, 1, cudaReadModeElementType> t, float x) # 631 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 635 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 637 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort2 tex1D(texture< ushort2, 1, cudaReadModeElementType> t, float x) # 638 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 642 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 644 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short4 tex1D(texture< short4, 1, cudaReadModeElementType> t, float x) # 645 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 649 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 651 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort4 tex1D(texture< ushort4, 1, cudaReadModeElementType> t, float x) # 652 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 656 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 664 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int tex1D(texture< int, 1, cudaReadModeElementType> t, float x) # 665 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 669 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 671 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline unsigned tex1D(texture< unsigned, 1, cudaReadModeElementType> t, float x) # 672 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 676 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 678 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int1 tex1D(texture< int1, 1, cudaReadModeElementType> t, float x) # 679 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 683 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 685 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint1 tex1D(texture< uint1, 1, cudaReadModeElementType> t, float x) # 686 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 690 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 692 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int2 tex1D(texture< int2, 1, cudaReadModeElementType> t, float x) # 693 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 697 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 699 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint2 tex1D(texture< uint2, 1, cudaReadModeElementType> t, float x) # 700 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 704 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 706 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int4 tex1D(texture< int4, 1, cudaReadModeElementType> t, float x) # 707 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 711 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 713 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint4 tex1D(texture< uint4, 1, cudaReadModeElementType> t, float x) # 714 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 718 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 798 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex1D(texture< float, 1, cudaReadModeElementType> t, float x) # 799 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 803 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 805 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex1D(texture< float1, 1, cudaReadModeElementType> t, float x) # 806 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 810 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 812 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex1D(texture< float2, 1, cudaReadModeElementType> t, float x) # 813 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 817 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 819 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex1D(texture< float4, 1, cudaReadModeElementType> t, float x) # 820 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 824 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 832 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex1D(texture< char, 1, cudaReadModeNormalizedFloat> t, float x) # 833 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 842 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 844 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex1D(texture< signed char, 1, cudaReadModeNormalizedFloat> t, float x) # 845 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 850 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 852 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex1D(texture< unsigned char, 1, cudaReadModeNormalizedFloat> t, float x) # 853 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 858 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 860 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex1D(texture< char1, 1, cudaReadModeNormalizedFloat> t, float x) # 861 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 866 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 868 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex1D(texture< uchar1, 1, cudaReadModeNormalizedFloat> t, float x) # 869 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 874 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 876 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex1D(texture< char2, 1, cudaReadModeNormalizedFloat> t, float x) # 877 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 882 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 884 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex1D(texture< uchar2, 1, cudaReadModeNormalizedFloat> t, float x) # 885 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 890 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 892 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex1D(texture< char4, 1, cudaReadModeNormalizedFloat> t, float x) # 893 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 898 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 900 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex1D(texture< uchar4, 1, cudaReadModeNormalizedFloat> t, float x) # 901 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 906 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 914 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex1D(texture< short, 1, cudaReadModeNormalizedFloat> t, float x) # 915 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 920 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 922 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex1D(texture< unsigned short, 1, cudaReadModeNormalizedFloat> t, float x) # 923 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 928 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 930 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex1D(texture< short1, 1, cudaReadModeNormalizedFloat> t, float x) # 931 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 936 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 938 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex1D(texture< ushort1, 1, cudaReadModeNormalizedFloat> t, float x) # 939 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 944 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 946 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex1D(texture< short2, 1, cudaReadModeNormalizedFloat> t, float x) # 947 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 952 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 954 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex1D(texture< ushort2, 1, cudaReadModeNormalizedFloat> t, float x) # 955 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 960 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 962 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex1D(texture< short4, 1, cudaReadModeNormalizedFloat> t, float x) # 963 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 968 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 970 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex1D(texture< ushort4, 1, cudaReadModeNormalizedFloat> t, float x) # 971 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 976 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 984 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char tex2D(texture< char, 2, cudaReadModeElementType> t, float x, float y) # 985 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 993 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 995 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline signed char tex2D(texture< signed char, 2, cudaReadModeElementType> t, float x, float y) # 996 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1000 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1002 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline unsigned char tex2D(texture< unsigned char, 2, cudaReadModeElementType> t, float x, float y) # 1003 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1007 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1009 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char1 tex2D(texture< char1, 2, cudaReadModeElementType> t, float x, float y) # 1010 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1014 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1016 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar1 tex2D(texture< uchar1, 2, cudaReadModeElementType> t, float x, float y) # 1017 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1021 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1023 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char2 tex2D(texture< char2, 2, cudaReadModeElementType> t, float x, float y) # 1024 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1028 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1030 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar2 tex2D(texture< uchar2, 2, cudaReadModeElementType> t, float x, float y) # 1031 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1035 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1037 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char4 tex2D(texture< char4, 2, cudaReadModeElementType> t, float x, float y) # 1038 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1042 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1044 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar4 tex2D(texture< uchar4, 2, cudaReadModeElementType> t, float x, float y) # 1045 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1049 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1057 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short tex2D(texture< short, 2, cudaReadModeElementType> t, float x, float y) # 1058 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1062 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1064 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline unsigned short tex2D(texture< unsigned short, 2, cudaReadModeElementType> t, float x, float y) # 1065 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1069 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1071 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short1 tex2D(texture< short1, 2, cudaReadModeElementType> t, float x, float y) # 1072 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1076 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1078 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort1 tex2D(texture< ushort1, 2, cudaReadModeElementType> t, float x, float y) # 1079 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1083 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1085 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short2 tex2D(texture< short2, 2, cudaReadModeElementType> t, float x, float y) # 1086 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1090 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1092 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort2 tex2D(texture< ushort2, 2, cudaReadModeElementType> t, float x, float y) # 1093 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1097 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1099 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short4 tex2D(texture< short4, 2, cudaReadModeElementType> t, float x, float y) # 1100 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1104 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1106 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort4 tex2D(texture< ushort4, 2, cudaReadModeElementType> t, float x, float y) # 1107 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1111 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1119 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int tex2D(texture< int, 2, cudaReadModeElementType> t, float x, float y) # 1120 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1124 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1126 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline unsigned tex2D(texture< unsigned, 2, cudaReadModeElementType> t, float x, float y) # 1127 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1131 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1133 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int1 tex2D(texture< int1, 2, cudaReadModeElementType> t, float x, float y) # 1134 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1138 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1140 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint1 tex2D(texture< uint1, 2, cudaReadModeElementType> t, float x, float y) # 1141 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1145 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1147 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int2 tex2D(texture< int2, 2, cudaReadModeElementType> t, float x, float y) # 1148 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1152 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1154 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint2 tex2D(texture< uint2, 2, cudaReadModeElementType> t, float x, float y) # 1155 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1159 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1161 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int4 tex2D(texture< int4, 2, cudaReadModeElementType> t, float x, float y) # 1162 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1166 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1168 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint4 tex2D(texture< uint4, 2, cudaReadModeElementType> t, float x, float y) # 1169 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1173 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1247 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex2D(texture< float, 2, cudaReadModeElementType> t, float x, float y) # 1248 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1252 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1254 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex2D(texture< float1, 2, cudaReadModeElementType> t, float x, float y) # 1255 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1259 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1261 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex2D(texture< float2, 2, cudaReadModeElementType> t, float x, float y) # 1262 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1266 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1268 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex2D(texture< float4, 2, cudaReadModeElementType> t, float x, float y) # 1269 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1273 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1281 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex2D(texture< char, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1282 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1291 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1293 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex2D(texture< signed char, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1294 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1299 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1301 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex2D(texture< unsigned char, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1302 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1307 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1309 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex2D(texture< char1, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1310 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1315 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1317 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex2D(texture< uchar1, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1318 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1323 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1325 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex2D(texture< char2, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1326 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1331 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1333 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex2D(texture< uchar2, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1334 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1339 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1341 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex2D(texture< char4, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1342 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1347 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1349 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex2D(texture< uchar4, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1350 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1355 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1363 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex2D(texture< short, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1364 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1369 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1371 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex2D(texture< unsigned short, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1372 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1377 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1379 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex2D(texture< short1, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1380 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1385 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1387 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex2D(texture< ushort1, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1388 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1393 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1395 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex2D(texture< short2, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1396 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1401 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1403 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex2D(texture< ushort2, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1404 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1409 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1411 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex2D(texture< short4, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1412 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1417 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1419 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex2D(texture< ushort4, 2, cudaReadModeNormalizedFloat> t, float x, float y) # 1420 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1425 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1433 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char tex3D(texture< char, 3, cudaReadModeElementType> t, float x, float y, float z) # 1434 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1442 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1444 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline signed char tex3D(texture< signed char, 3, cudaReadModeElementType> t, float x, float y, float z) # 1445 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1449 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1451 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline unsigned char tex3D(texture< unsigned char, 3, cudaReadModeElementType> t, float x, float y, float z) # 1452 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1456 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1458 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char1 tex3D(texture< char1, 3, cudaReadModeElementType> t, float x, float y, float z) # 1459 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1463 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1465 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar1 tex3D(texture< uchar1, 3, cudaReadModeElementType> t, float x, float y, float z) # 1466 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1470 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1472 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char2 tex3D(texture< char2, 3, cudaReadModeElementType> t, float x, float y, float z) # 1473 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1477 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1479 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar2 tex3D(texture< uchar2, 3, cudaReadModeElementType> t, float x, float y, float z) # 1480 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1484 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1486 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char4 tex3D(texture< char4, 3, cudaReadModeElementType> t, float x, float y, float z) # 1487 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1491 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1493 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar4 tex3D(texture< uchar4, 3, cudaReadModeElementType> t, float x, float y, float z) # 1494 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1498 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1506 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short tex3D(texture< short, 3, cudaReadModeElementType> t, float x, float y, float z) # 1507 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1511 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1513 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline unsigned short tex3D(texture< unsigned short, 3, cudaReadModeElementType> t, float x, float y, float z) # 1514 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1518 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1520 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short1 tex3D(texture< short1, 3, cudaReadModeElementType> t, float x, float y, float z) # 1521 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1525 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1527 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort1 tex3D(texture< ushort1, 3, cudaReadModeElementType> t, float x, float y, float z) # 1528 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1532 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1534 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short2 tex3D(texture< short2, 3, cudaReadModeElementType> t, float x, float y, float z) # 1535 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1539 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1541 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort2 tex3D(texture< ushort2, 3, cudaReadModeElementType> t, float x, float y, float z) # 1542 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1546 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1548 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short4 tex3D(texture< short4, 3, cudaReadModeElementType> t, float x, float y, float z) # 1549 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1553 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1555 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort4 tex3D(texture< ushort4, 3, cudaReadModeElementType> t, float x, float y, float z) # 1556 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1560 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1568 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int tex3D(texture< int, 3, cudaReadModeElementType> t, float x, float y, float z) # 1569 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1573 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1575 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline unsigned tex3D(texture< unsigned, 3, cudaReadModeElementType> t, float x, float y, float z) # 1576 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1580 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1582 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int1 tex3D(texture< int1, 3, cudaReadModeElementType> t, float x, float y, float z) # 1583 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1587 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1589 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint1 tex3D(texture< uint1, 3, cudaReadModeElementType> t, float x, float y, float z) # 1590 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1594 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1596 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int2 tex3D(texture< int2, 3, cudaReadModeElementType> t, float x, float y, float z) # 1597 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1601 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1603 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint2 tex3D(texture< uint2, 3, cudaReadModeElementType> t, float x, float y, float z) # 1604 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1608 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1610 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int4 tex3D(texture< int4, 3, cudaReadModeElementType> t, float x, float y, float z) # 1611 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1615 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1617 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint4 tex3D(texture< uint4, 3, cudaReadModeElementType> t, float x, float y, float z) # 1618 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1622 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1696 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex3D(texture< float, 3, cudaReadModeElementType> t, float x, float y, float z) # 1697 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1701 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1703 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex3D(texture< float1, 3, cudaReadModeElementType> t, float x, float y, float z) # 1704 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1708 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1710 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex3D(texture< float2, 3, cudaReadModeElementType> t, float x, float y, float z) # 1711 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1715 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1717 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex3D(texture< float4, 3, cudaReadModeElementType> t, float x, float y, float z) # 1718 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1722 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1730 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex3D(texture< char, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1731 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1740 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1742 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex3D(texture< signed char, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1743 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1748 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1750 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex3D(texture< unsigned char, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1751 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1756 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1758 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex3D(texture< char1, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1759 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1764 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1766 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex3D(texture< uchar1, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1767 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1772 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1774 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex3D(texture< char2, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1775 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1780 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1782 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex3D(texture< uchar2, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1783 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1788 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1790 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex3D(texture< char4, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1791 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1796 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1798 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex3D(texture< uchar4, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1799 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1804 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1812 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex3D(texture< short, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1813 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1818 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1820 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float tex3D(texture< unsigned short, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1821 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1826 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1828 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex3D(texture< short1, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1829 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1834 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1836 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float1 tex3D(texture< ushort1, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1837 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1842 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1844 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex3D(texture< short2, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1845 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1850 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1852 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float2 tex3D(texture< ushort2, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1853 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1858 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1860 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex3D(texture< short4, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1861 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1866 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1868 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex3D(texture< ushort4, 3, cudaReadModeNormalizedFloat> t, float x, float y, float z) # 1869 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1874 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1930 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" template< int comp, class T> __attribute__((unused)) extern int4 __itex2Dgather(texture< T, 2, cudaReadModeElementType> , float2, int = comp); # 1932 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" template< int comp, class T> __attribute__((unused)) extern uint4 __utex2Dgather(texture< T, 2, cudaReadModeElementType> , float2, int = comp); # 1934 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" template< int comp, class T> __attribute__((unused)) extern float4 __ftex2Dgather(texture< T, 2, cudaReadModeElementType> , float2, int = comp); # 1954 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char4 tex2Dgather(texture< char, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 1955 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1957 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1959 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char4 tex2Dgather(texture< signed char, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 1960 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1962 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1964 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar4 tex2Dgather(texture< unsigned char, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 1965 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1967 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1969 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char4 tex2Dgather(texture< char1, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 1970 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1972 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1974 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar4 tex2Dgather(texture< uchar1, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 1975 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1977 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1979 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char4 tex2Dgather(texture< char2, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 1980 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1982 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1984 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar4 tex2Dgather(texture< uchar2, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 1985 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1987 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1989 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char4 tex2Dgather(texture< char3, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 1990 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1992 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1994 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar4 tex2Dgather(texture< uchar3, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 1995 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 1997 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 1999 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline char4 tex2Dgather(texture< char4, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2000 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2002 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2004 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uchar4 tex2Dgather(texture< uchar4, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2005 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2007 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2009 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short4 tex2Dgather(texture< short, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2010 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2012 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2014 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort4 tex2Dgather(texture< unsigned short, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2015 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2017 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2019 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short4 tex2Dgather(texture< short1, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2020 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2022 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2024 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort4 tex2Dgather(texture< ushort1, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2025 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2027 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2029 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short4 tex2Dgather(texture< short2, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2030 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2032 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2034 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort4 tex2Dgather(texture< ushort2, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2035 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2037 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2039 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short4 tex2Dgather(texture< short3, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2040 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2042 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2044 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort4 tex2Dgather(texture< ushort3, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2045 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2047 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2049 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline short4 tex2Dgather(texture< short4, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2050 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2052 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2054 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline ushort4 tex2Dgather(texture< ushort4, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2055 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2057 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2059 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int4 tex2Dgather(texture< int, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2060 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2062 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2064 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint4 tex2Dgather(texture< unsigned, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2065 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2067 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2069 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int4 tex2Dgather(texture< int1, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2070 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2072 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2074 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint4 tex2Dgather(texture< uint1, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2075 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2077 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2079 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int4 tex2Dgather(texture< int2, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2080 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2082 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2084 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint4 tex2Dgather(texture< uint2, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2085 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2087 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2089 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int4 tex2Dgather(texture< int3, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2090 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2092 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2094 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint4 tex2Dgather(texture< uint3, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2095 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2097 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2099 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline int4 tex2Dgather(texture< int4, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2100 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2102 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2104 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline uint4 tex2Dgather(texture< uint4, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2105 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2107 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2109 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex2Dgather(texture< float, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2110 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2112 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2114 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex2Dgather(texture< float1, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2115 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2117 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2119 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex2Dgather(texture< float2, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2120 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2122 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2124 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex2Dgather(texture< float3, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2125 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2127 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 2129 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" __attribute__((unused)) static inline float4 tex2Dgather(texture< float4, 2, cudaReadModeElementType> t, float x, float y, int comp = 0) # 2130 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" {int volatile ___ = 1; # 2132 "/usr/local/cuda/bin/../include/texture_fetch_functions.h" exit(___);} # 53 "/usr/local/cuda/bin/../include/device_launch_parameters.h" extern "C" { extern const uint3 threadIdx; } # 55 "/usr/local/cuda/bin/../include/device_launch_parameters.h" extern "C" { extern const uint3 blockIdx; } # 57 "/usr/local/cuda/bin/../include/device_launch_parameters.h" extern "C" { extern const dim3 blockDim; } # 59 "/usr/local/cuda/bin/../include/device_launch_parameters.h" extern "C" { extern const dim3 gridDim; } # 61 "/usr/local/cuda/bin/../include/device_launch_parameters.h" extern "C" { extern const int warpSize; } # 106 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T> inline cudaError_t # 107 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaSetupArgument(T # 108 "/usr/local/cuda/bin/../include/cuda_runtime.h" arg, size_t # 109 "/usr/local/cuda/bin/../include/cuda_runtime.h" offset) # 111 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 112 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaSetupArgument((const void *)(&arg), sizeof(T), offset); # 113 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 145 "/usr/local/cuda/bin/../include/cuda_runtime.h" static inline cudaError_t cudaEventCreate(cudaEvent_t * # 146 "/usr/local/cuda/bin/../include/cuda_runtime.h" event, unsigned # 147 "/usr/local/cuda/bin/../include/cuda_runtime.h" flags) # 149 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 150 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaEventCreateWithFlags(event, 0); # 151 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 208 "/usr/local/cuda/bin/../include/cuda_runtime.h" static inline cudaError_t cudaMallocHost(void ** # 209 "/usr/local/cuda/bin/../include/cuda_runtime.h" ptr, size_t # 210 "/usr/local/cuda/bin/../include/cuda_runtime.h" size, unsigned # 211 "/usr/local/cuda/bin/../include/cuda_runtime.h" flags) # 213 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 214 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaHostAlloc(ptr, size, flags); # 215 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 217 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T> inline cudaError_t # 218 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaHostAlloc(T ** # 219 "/usr/local/cuda/bin/../include/cuda_runtime.h" ptr, size_t # 220 "/usr/local/cuda/bin/../include/cuda_runtime.h" size, unsigned # 221 "/usr/local/cuda/bin/../include/cuda_runtime.h" flags) # 223 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 224 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaHostAlloc((void **)((void *)ptr), size, flags); # 225 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 227 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T> inline cudaError_t # 228 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaHostGetDevicePointer(T ** # 229 "/usr/local/cuda/bin/../include/cuda_runtime.h" pDevice, void * # 230 "/usr/local/cuda/bin/../include/cuda_runtime.h" pHost, unsigned # 231 "/usr/local/cuda/bin/../include/cuda_runtime.h" flags) # 233 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 234 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaHostGetDevicePointer((void **)((void *)pDevice), pHost, flags); # 235 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 237 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T> inline cudaError_t # 238 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaMalloc(T ** # 239 "/usr/local/cuda/bin/../include/cuda_runtime.h" devPtr, size_t # 240 "/usr/local/cuda/bin/../include/cuda_runtime.h" size) # 242 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 243 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaMalloc((void **)((void *)devPtr), size); # 244 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 246 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T> inline cudaError_t # 247 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaMallocHost(T ** # 248 "/usr/local/cuda/bin/../include/cuda_runtime.h" ptr, size_t # 249 "/usr/local/cuda/bin/../include/cuda_runtime.h" size, unsigned # 250 "/usr/local/cuda/bin/../include/cuda_runtime.h" flags = (0)) # 252 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 253 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaMallocHost((void **)((void *)ptr), size, flags); # 254 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 256 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T> inline cudaError_t # 257 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaMallocPitch(T ** # 258 "/usr/local/cuda/bin/../include/cuda_runtime.h" devPtr, size_t * # 259 "/usr/local/cuda/bin/../include/cuda_runtime.h" pitch, size_t # 260 "/usr/local/cuda/bin/../include/cuda_runtime.h" width, size_t # 261 "/usr/local/cuda/bin/../include/cuda_runtime.h" height) # 263 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 264 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaMallocPitch((void **)((void *)devPtr), pitch, width, height); # 265 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 275 "/usr/local/cuda/bin/../include/cuda_runtime.h" static inline cudaError_t cudaMemcpyToSymbol(char * # 276 "/usr/local/cuda/bin/../include/cuda_runtime.h" symbol, const void * # 277 "/usr/local/cuda/bin/../include/cuda_runtime.h" src, size_t # 278 "/usr/local/cuda/bin/../include/cuda_runtime.h" count, size_t # 279 "/usr/local/cuda/bin/../include/cuda_runtime.h" offset = (0), cudaMemcpyKind # 280 "/usr/local/cuda/bin/../include/cuda_runtime.h" kind = cudaMemcpyHostToDevice) # 282 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 283 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaMemcpyToSymbol((const char *)symbol, src, count, offset, kind); # 284 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 286 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T> inline cudaError_t # 287 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaMemcpyToSymbol(const T & # 288 "/usr/local/cuda/bin/../include/cuda_runtime.h" symbol, const void * # 289 "/usr/local/cuda/bin/../include/cuda_runtime.h" src, size_t # 290 "/usr/local/cuda/bin/../include/cuda_runtime.h" count, size_t # 291 "/usr/local/cuda/bin/../include/cuda_runtime.h" offset = (0), cudaMemcpyKind # 292 "/usr/local/cuda/bin/../include/cuda_runtime.h" kind = cudaMemcpyHostToDevice) # 294 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 295 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaMemcpyToSymbol((const char *)(&symbol), src, count, offset, kind); # 296 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 298 "/usr/local/cuda/bin/../include/cuda_runtime.h" static inline cudaError_t cudaMemcpyToSymbolAsync(char * # 299 "/usr/local/cuda/bin/../include/cuda_runtime.h" symbol, const void * # 300 "/usr/local/cuda/bin/../include/cuda_runtime.h" src, size_t # 301 "/usr/local/cuda/bin/../include/cuda_runtime.h" count, size_t # 302 "/usr/local/cuda/bin/../include/cuda_runtime.h" offset = (0), cudaMemcpyKind # 303 "/usr/local/cuda/bin/../include/cuda_runtime.h" kind = cudaMemcpyHostToDevice, cudaStream_t # 304 "/usr/local/cuda/bin/../include/cuda_runtime.h" stream = 0) # 306 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 307 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaMemcpyToSymbolAsync((const char *)symbol, src, count, offset, kind, stream); # 308 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 310 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T> inline cudaError_t # 311 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaMemcpyToSymbolAsync(const T & # 312 "/usr/local/cuda/bin/../include/cuda_runtime.h" symbol, const void * # 313 "/usr/local/cuda/bin/../include/cuda_runtime.h" src, size_t # 314 "/usr/local/cuda/bin/../include/cuda_runtime.h" count, size_t # 315 "/usr/local/cuda/bin/../include/cuda_runtime.h" offset = (0), cudaMemcpyKind # 316 "/usr/local/cuda/bin/../include/cuda_runtime.h" kind = cudaMemcpyHostToDevice, cudaStream_t # 317 "/usr/local/cuda/bin/../include/cuda_runtime.h" stream = 0) # 319 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 320 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaMemcpyToSymbolAsync((const char *)(&symbol), src, count, offset, kind, stream); # 321 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 329 "/usr/local/cuda/bin/../include/cuda_runtime.h" static inline cudaError_t cudaMemcpyFromSymbol(void * # 330 "/usr/local/cuda/bin/../include/cuda_runtime.h" dst, char * # 331 "/usr/local/cuda/bin/../include/cuda_runtime.h" symbol, size_t # 332 "/usr/local/cuda/bin/../include/cuda_runtime.h" count, size_t # 333 "/usr/local/cuda/bin/../include/cuda_runtime.h" offset = (0), cudaMemcpyKind # 334 "/usr/local/cuda/bin/../include/cuda_runtime.h" kind = cudaMemcpyDeviceToHost) # 336 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 337 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaMemcpyFromSymbol(dst, (const char *)symbol, count, offset, kind); # 338 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 340 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T> inline cudaError_t # 341 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaMemcpyFromSymbol(void * # 342 "/usr/local/cuda/bin/../include/cuda_runtime.h" dst, const T & # 343 "/usr/local/cuda/bin/../include/cuda_runtime.h" symbol, size_t # 344 "/usr/local/cuda/bin/../include/cuda_runtime.h" count, size_t # 345 "/usr/local/cuda/bin/../include/cuda_runtime.h" offset = (0), cudaMemcpyKind # 346 "/usr/local/cuda/bin/../include/cuda_runtime.h" kind = cudaMemcpyDeviceToHost) # 348 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 349 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaMemcpyFromSymbol(dst, (const char *)(&symbol), count, offset, kind); # 350 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 352 "/usr/local/cuda/bin/../include/cuda_runtime.h" static inline cudaError_t cudaMemcpyFromSymbolAsync(void * # 353 "/usr/local/cuda/bin/../include/cuda_runtime.h" dst, char * # 354 "/usr/local/cuda/bin/../include/cuda_runtime.h" symbol, size_t # 355 "/usr/local/cuda/bin/../include/cuda_runtime.h" count, size_t # 356 "/usr/local/cuda/bin/../include/cuda_runtime.h" offset = (0), cudaMemcpyKind # 357 "/usr/local/cuda/bin/../include/cuda_runtime.h" kind = cudaMemcpyDeviceToHost, cudaStream_t # 358 "/usr/local/cuda/bin/../include/cuda_runtime.h" stream = 0) # 360 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 361 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaMemcpyFromSymbolAsync(dst, (const char *)symbol, count, offset, kind, stream); # 362 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 364 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T> inline cudaError_t # 365 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaMemcpyFromSymbolAsync(void * # 366 "/usr/local/cuda/bin/../include/cuda_runtime.h" dst, const T & # 367 "/usr/local/cuda/bin/../include/cuda_runtime.h" symbol, size_t # 368 "/usr/local/cuda/bin/../include/cuda_runtime.h" count, size_t # 369 "/usr/local/cuda/bin/../include/cuda_runtime.h" offset = (0), cudaMemcpyKind # 370 "/usr/local/cuda/bin/../include/cuda_runtime.h" kind = cudaMemcpyDeviceToHost, cudaStream_t # 371 "/usr/local/cuda/bin/../include/cuda_runtime.h" stream = 0) # 373 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 374 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaMemcpyFromSymbolAsync(dst, (const char *)(&symbol), count, offset, kind, stream); # 375 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 377 "/usr/local/cuda/bin/../include/cuda_runtime.h" static inline cudaError_t cudaGetSymbolAddress(void ** # 378 "/usr/local/cuda/bin/../include/cuda_runtime.h" devPtr, char * # 379 "/usr/local/cuda/bin/../include/cuda_runtime.h" symbol) # 381 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 382 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaGetSymbolAddress(devPtr, (const char *)symbol); # 383 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 410 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T> inline cudaError_t # 411 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaGetSymbolAddress(void ** # 412 "/usr/local/cuda/bin/../include/cuda_runtime.h" devPtr, const T & # 413 "/usr/local/cuda/bin/../include/cuda_runtime.h" symbol) # 415 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 416 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaGetSymbolAddress(devPtr, (const char *)(&symbol)); # 417 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 425 "/usr/local/cuda/bin/../include/cuda_runtime.h" static inline cudaError_t cudaGetSymbolSize(size_t * # 426 "/usr/local/cuda/bin/../include/cuda_runtime.h" size, char * # 427 "/usr/local/cuda/bin/../include/cuda_runtime.h" symbol) # 429 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 430 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaGetSymbolSize(size, (const char *)symbol); # 431 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 458 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T> inline cudaError_t # 459 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaGetSymbolSize(size_t * # 460 "/usr/local/cuda/bin/../include/cuda_runtime.h" size, const T & # 461 "/usr/local/cuda/bin/../include/cuda_runtime.h" symbol) # 463 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 464 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaGetSymbolSize(size, (const char *)(&symbol)); # 465 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 507 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T, int dim, cudaTextureReadMode readMode> inline cudaError_t # 508 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaBindTexture(size_t * # 509 "/usr/local/cuda/bin/../include/cuda_runtime.h" offset, const texture< T, dim, readMode> & # 510 "/usr/local/cuda/bin/../include/cuda_runtime.h" tex, const void * # 511 "/usr/local/cuda/bin/../include/cuda_runtime.h" devPtr, const cudaChannelFormatDesc & # 512 "/usr/local/cuda/bin/../include/cuda_runtime.h" desc, size_t # 513 "/usr/local/cuda/bin/../include/cuda_runtime.h" size = (((2147483647) * 2U) + 1U)) # 515 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 516 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaBindTexture(offset, &tex, devPtr, &desc, size); # 517 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 552 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T, int dim, cudaTextureReadMode readMode> inline cudaError_t # 553 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaBindTexture(size_t * # 554 "/usr/local/cuda/bin/../include/cuda_runtime.h" offset, const texture< T, dim, readMode> & # 555 "/usr/local/cuda/bin/../include/cuda_runtime.h" tex, const void * # 556 "/usr/local/cuda/bin/../include/cuda_runtime.h" devPtr, size_t # 557 "/usr/local/cuda/bin/../include/cuda_runtime.h" size = (((2147483647) * 2U) + 1U)) # 559 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 560 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaBindTexture(offset, tex, devPtr, (tex.channelDesc), size); # 561 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 608 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T, int dim, cudaTextureReadMode readMode> inline cudaError_t # 609 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaBindTexture2D(size_t * # 610 "/usr/local/cuda/bin/../include/cuda_runtime.h" offset, const texture< T, dim, readMode> & # 611 "/usr/local/cuda/bin/../include/cuda_runtime.h" tex, const void * # 612 "/usr/local/cuda/bin/../include/cuda_runtime.h" devPtr, const cudaChannelFormatDesc & # 613 "/usr/local/cuda/bin/../include/cuda_runtime.h" desc, size_t # 614 "/usr/local/cuda/bin/../include/cuda_runtime.h" width, size_t # 615 "/usr/local/cuda/bin/../include/cuda_runtime.h" height, size_t # 616 "/usr/local/cuda/bin/../include/cuda_runtime.h" pitch) # 618 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 619 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaBindTexture2D(offset, &tex, devPtr, &desc, width, height, pitch); # 620 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 666 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T, int dim, cudaTextureReadMode readMode> inline cudaError_t # 667 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaBindTexture2D(size_t * # 668 "/usr/local/cuda/bin/../include/cuda_runtime.h" offset, const texture< T, dim, readMode> & # 669 "/usr/local/cuda/bin/../include/cuda_runtime.h" tex, const void * # 670 "/usr/local/cuda/bin/../include/cuda_runtime.h" devPtr, size_t # 671 "/usr/local/cuda/bin/../include/cuda_runtime.h" width, size_t # 672 "/usr/local/cuda/bin/../include/cuda_runtime.h" height, size_t # 673 "/usr/local/cuda/bin/../include/cuda_runtime.h" pitch) # 675 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 676 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaBindTexture2D(offset, &tex, devPtr, &(tex.texture< T, dim, readMode> ::channelDesc), width, height, pitch); # 677 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 708 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T, int dim, cudaTextureReadMode readMode> inline cudaError_t # 709 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaBindTextureToArray(const texture< T, dim, readMode> & # 710 "/usr/local/cuda/bin/../include/cuda_runtime.h" tex, const cudaArray * # 711 "/usr/local/cuda/bin/../include/cuda_runtime.h" array, const cudaChannelFormatDesc & # 712 "/usr/local/cuda/bin/../include/cuda_runtime.h" desc) # 714 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 715 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaBindTextureToArray(&tex, array, &desc); # 716 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 746 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T, int dim, cudaTextureReadMode readMode> inline cudaError_t # 747 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaBindTextureToArray(const texture< T, dim, readMode> & # 748 "/usr/local/cuda/bin/../include/cuda_runtime.h" tex, const cudaArray * # 749 "/usr/local/cuda/bin/../include/cuda_runtime.h" array) # 751 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 752 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaChannelFormatDesc desc; # 753 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaError_t err = cudaGetChannelDesc(&desc, array); # 755 "/usr/local/cuda/bin/../include/cuda_runtime.h" return (err == (cudaSuccess)) ? cudaBindTextureToArray(tex, array, desc) : err; # 756 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 785 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T, int dim, cudaTextureReadMode readMode> inline cudaError_t # 786 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaUnbindTexture(const texture< T, dim, readMode> & # 787 "/usr/local/cuda/bin/../include/cuda_runtime.h" tex) # 789 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 790 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaUnbindTexture(&tex); # 791 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 825 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T, int dim, cudaTextureReadMode readMode> inline cudaError_t # 826 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaGetTextureAlignmentOffset(size_t * # 827 "/usr/local/cuda/bin/../include/cuda_runtime.h" offset, const texture< T, dim, readMode> & # 828 "/usr/local/cuda/bin/../include/cuda_runtime.h" tex) # 830 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 831 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaGetTextureAlignmentOffset(offset, &tex); # 832 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 886 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T> inline cudaError_t # 887 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaFuncSetCacheConfig(T * # 888 "/usr/local/cuda/bin/../include/cuda_runtime.h" func, cudaFuncCache # 889 "/usr/local/cuda/bin/../include/cuda_runtime.h" cacheConfig) # 891 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 892 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaFuncSetCacheConfig((const char *)func, cacheConfig); # 893 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 930 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T> inline cudaError_t # 931 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaLaunch(T * # 932 "/usr/local/cuda/bin/../include/cuda_runtime.h" entry) # 934 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 935 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaLaunch((const char *)entry); # 936 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 970 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T> inline cudaError_t # 971 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaFuncGetAttributes(cudaFuncAttributes * # 972 "/usr/local/cuda/bin/../include/cuda_runtime.h" attr, T * # 973 "/usr/local/cuda/bin/../include/cuda_runtime.h" entry) # 975 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 976 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaFuncGetAttributes(attr, (const char *)entry); # 977 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 999 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T, int dim> inline cudaError_t # 1000 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaBindSurfaceToArray(const surface< T, dim> & # 1001 "/usr/local/cuda/bin/../include/cuda_runtime.h" surf, const cudaArray * # 1002 "/usr/local/cuda/bin/../include/cuda_runtime.h" array, const cudaChannelFormatDesc & # 1003 "/usr/local/cuda/bin/../include/cuda_runtime.h" desc) # 1005 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 1006 "/usr/local/cuda/bin/../include/cuda_runtime.h" return cudaBindSurfaceToArray(&surf, array, &desc); # 1007 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 1028 "/usr/local/cuda/bin/../include/cuda_runtime.h" template< class T, int dim> inline cudaError_t # 1029 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaBindSurfaceToArray(const surface< T, dim> & # 1030 "/usr/local/cuda/bin/../include/cuda_runtime.h" surf, const cudaArray * # 1031 "/usr/local/cuda/bin/../include/cuda_runtime.h" array) # 1033 "/usr/local/cuda/bin/../include/cuda_runtime.h" { # 1034 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaChannelFormatDesc desc; # 1035 "/usr/local/cuda/bin/../include/cuda_runtime.h" cudaError_t err = cudaGetChannelDesc(&desc, array); # 1037 "/usr/local/cuda/bin/../include/cuda_runtime.h" return (err == (cudaSuccess)) ? cudaBindSurfaceToArray(surf, array, desc) : err; # 1038 "/usr/local/cuda/bin/../include/cuda_runtime.h" } # 45 "/usr/include/stdio.h" 3 struct _IO_FILE; # 49 "/usr/include/stdio.h" 3 extern "C" { typedef _IO_FILE FILE; } # 65 "/usr/include/stdio.h" 3 extern "C" { typedef _IO_FILE __FILE; } # 95 "/usr/include/wchar.h" 3 extern "C" { typedef # 84 "/usr/include/wchar.h" 3 struct { # 85 "/usr/include/wchar.h" 3 int __count; # 87 "/usr/include/wchar.h" 3 union { # 89 "/usr/include/wchar.h" 3 unsigned __wch; # 93 "/usr/include/wchar.h" 3 char __wchb[4]; # 94 "/usr/include/wchar.h" 3 } __value; # 95 "/usr/include/wchar.h" 3 } __mbstate_t; } # 26 "/usr/include/_G_config.h" 3 extern "C" { typedef # 23 "/usr/include/_G_config.h" 3 struct { # 24 "/usr/include/_G_config.h" 3 __off_t __pos; # 25 "/usr/include/_G_config.h" 3 __mbstate_t __state; # 26 "/usr/include/_G_config.h" 3 } _G_fpos_t; } # 31 "/usr/include/_G_config.h" 3 extern "C" { typedef # 28 "/usr/include/_G_config.h" 3 struct { # 29 "/usr/include/_G_config.h" 3 __off64_t __pos; # 30 "/usr/include/_G_config.h" 3 __mbstate_t __state; # 31 "/usr/include/_G_config.h" 3 } _G_fpos64_t; } # 53 "/usr/include/_G_config.h" 3 extern "C" { typedef short _G_int16_t; } # 54 "/usr/include/_G_config.h" 3 extern "C" { typedef int _G_int32_t; } # 55 "/usr/include/_G_config.h" 3 extern "C" { typedef unsigned short _G_uint16_t; } # 56 "/usr/include/_G_config.h" 3 extern "C" { typedef unsigned _G_uint32_t; } # 40 "/usr/lib/gcc/i686-linux-gnu/4.4.5/include/va.h" 3 extern "C" { typedef __builtin_va_list __gnuc_va_list; } # 170 "/usr/include/libio.h" 3 struct _IO_jump_t; struct _IO_FILE; # 180 "/usr/include/libio.h" 3 extern "C" { typedef void _IO_lock_t; } # 186 "/usr/include/libio.h" 3 extern "C" { struct _IO_marker { # 187 "/usr/include/libio.h" 3 _IO_marker *_next; # 188 "/usr/include/libio.h" 3 _IO_FILE *_sbuf; # 192 "/usr/include/libio.h" 3 int _pos; # 203 "/usr/include/libio.h" 3 }; } # 206 "/usr/include/libio.h" 3 enum __codecvt_result { # 208 "/usr/include/libio.h" 3 __codecvt_ok, # 209 "/usr/include/libio.h" 3 __codecvt_partial, # 210 "/usr/include/libio.h" 3 __codecvt_error, # 211 "/usr/include/libio.h" 3 __codecvt_noconv # 212 "/usr/include/libio.h" 3 }; # 271 "/usr/include/libio.h" 3 extern "C" { struct _IO_FILE { # 272 "/usr/include/libio.h" 3 int _flags; # 277 "/usr/include/libio.h" 3 char *_IO_read_ptr; # 278 "/usr/include/libio.h" 3 char *_IO_read_end; # 279 "/usr/include/libio.h" 3 char *_IO_read_base; # 280 "/usr/include/libio.h" 3 char *_IO_write_base; # 281 "/usr/include/libio.h" 3 char *_IO_write_ptr; # 282 "/usr/include/libio.h" 3 char *_IO_write_end; # 283 "/usr/include/libio.h" 3 char *_IO_buf_base; # 284 "/usr/include/libio.h" 3 char *_IO_buf_end; # 286 "/usr/include/libio.h" 3 char *_IO_save_base; # 287 "/usr/include/libio.h" 3 char *_IO_backup_base; # 288 "/usr/include/libio.h" 3 char *_IO_save_end; # 290 "/usr/include/libio.h" 3 _IO_marker *_markers; # 292 "/usr/include/libio.h" 3 _IO_FILE *_chain; # 294 "/usr/include/libio.h" 3 int _fileno; # 298 "/usr/include/libio.h" 3 int _flags2; # 300 "/usr/include/libio.h" 3 __off_t _old_offset; # 304 "/usr/include/libio.h" 3 unsigned short _cur_column; # 305 "/usr/include/libio.h" 3 signed char _vtable_offset; # 306 "/usr/include/libio.h" 3 char _shortbuf[1]; # 310 "/usr/include/libio.h" 3 _IO_lock_t *_lock; # 319 "/usr/include/libio.h" 3 __off64_t _offset; # 328 "/usr/include/libio.h" 3 void *__pad1; # 329 "/usr/include/libio.h" 3 void *__pad2; # 330 "/usr/include/libio.h" 3 void *__pad3; # 331 "/usr/include/libio.h" 3 void *__pad4; # 332 "/usr/include/libio.h" 3 size_t __pad5; # 334 "/usr/include/libio.h" 3 int _mode; # 336 "/usr/include/libio.h" 3 char _unused2[((((15) * sizeof(int)) - ((4) * sizeof(void *))) - sizeof(size_t))]; # 338 "/usr/include/libio.h" 3 }; } # 344 "/usr/include/libio.h" 3 struct _IO_FILE_plus; # 346 "/usr/include/libio.h" 3 extern "C" { extern _IO_FILE_plus _IO_2_1_stdin_; } # 347 "/usr/include/libio.h" 3 extern "C" { extern _IO_FILE_plus _IO_2_1_stdout_; } # 348 "/usr/include/libio.h" 3 extern "C" { extern _IO_FILE_plus _IO_2_1_stderr_; } # 364 "/usr/include/libio.h" 3 extern "C" { typedef __ssize_t __io_read_fn(void *, char *, size_t); } # 372 "/usr/include/libio.h" 3 extern "C" { typedef __ssize_t __io_write_fn(void *, const char *, size_t); } # 381 "/usr/include/libio.h" 3 extern "C" { typedef int __io_seek_fn(void *, __off64_t *, int); } # 384 "/usr/include/libio.h" 3 extern "C" { typedef int __io_close_fn(void *); } # 389 "/usr/include/libio.h" 3 extern "C" { typedef __io_read_fn cookie_read_function_t; } # 390 "/usr/include/libio.h" 3 extern "C" { typedef __io_write_fn cookie_write_function_t; } # 391 "/usr/include/libio.h" 3 extern "C" { typedef __io_seek_fn cookie_seek_function_t; } # 392 "/usr/include/libio.h" 3 extern "C" { typedef __io_close_fn cookie_close_function_t; } # 401 "/usr/include/libio.h" 3 extern "C" { typedef # 396 "/usr/include/libio.h" 3 struct { # 397 "/usr/include/libio.h" 3 __io_read_fn *read; # 398 "/usr/include/libio.h" 3 __io_write_fn *write; # 399 "/usr/include/libio.h" 3 __io_seek_fn *seek; # 400 "/usr/include/libio.h" 3 __io_close_fn *close; # 401 "/usr/include/libio.h" 3 } _IO_cookie_io_functions_t; } # 402 "/usr/include/libio.h" 3 extern "C" { typedef _IO_cookie_io_functions_t cookie_io_functions_t; } # 404 "/usr/include/libio.h" 3 struct _IO_cookie_file; # 407 "/usr/include/libio.h" 3 extern "C" void _IO_cookie_init(_IO_cookie_file *, int, void *, _IO_cookie_io_functions_t); # 416 "/usr/include/libio.h" 3 extern "C" int __underflow(_IO_FILE *); # 417 "/usr/include/libio.h" 3 extern "C" int __uflow(_IO_FILE *); # 418 "/usr/include/libio.h" 3 extern "C" int __overflow(_IO_FILE *, int); # 460 "/usr/include/libio.h" 3 extern "C" int _IO_getc(_IO_FILE *); # 461 "/usr/include/libio.h" 3 extern "C" int _IO_putc(int, _IO_FILE *); # 462 "/usr/include/libio.h" 3 extern "C" int _IO_feof(_IO_FILE *) throw(); # 463 "/usr/include/libio.h" 3 extern "C" int _IO_ferror(_IO_FILE *) throw(); # 465 "/usr/include/libio.h" 3 extern "C" int _IO_peekc_locked(_IO_FILE *); # 471 "/usr/include/libio.h" 3 extern "C" void _IO_flockfile(_IO_FILE *) throw(); # 472 "/usr/include/libio.h" 3 extern "C" void _IO_funlockfile(_IO_FILE *) throw(); # 473 "/usr/include/libio.h" 3 extern "C" int _IO_ftrylockfile(_IO_FILE *) throw(); # 490 "/usr/include/libio.h" 3 extern "C" int _IO_vfscanf(_IO_FILE *__restrict__, const char *__restrict__, __gnuc_va_list, int *__restrict__); # 492 "/usr/include/libio.h" 3 extern "C" int _IO_vfprintf(_IO_FILE *__restrict__, const char *__restrict__, __gnuc_va_list); # 494 "/usr/include/libio.h" 3 extern "C" __ssize_t _IO_padn(_IO_FILE *, int, __ssize_t); # 495 "/usr/include/libio.h" 3 extern "C" size_t _IO_sgetn(_IO_FILE *, void *, size_t); # 497 "/usr/include/libio.h" 3 extern "C" __off64_t _IO_seekoff(_IO_FILE *, __off64_t, int, int); # 498 "/usr/include/libio.h" 3 extern "C" __off64_t _IO_seekpos(_IO_FILE *, __off64_t, int); # 500 "/usr/include/libio.h" 3 extern "C" void _IO_free_backup_area(_IO_FILE *) throw(); # 80 "/usr/include/stdio.h" 3 extern "C" { typedef __gnuc_va_list va_list; } # 111 "/usr/include/stdio.h" 3 extern "C" { typedef _G_fpos_t fpos_t; } # 117 "/usr/include/stdio.h" 3 extern "C" { typedef _G_fpos64_t fpos64_t; } # 165 "/usr/include/stdio.h" 3 extern "C" { extern _IO_FILE *stdin; } # 166 "/usr/include/stdio.h" 3 extern "C" { extern _IO_FILE *stdout; } # 167 "/usr/include/stdio.h" 3 extern "C" { extern _IO_FILE *stderr; } # 175 "/usr/include/stdio.h" 3 extern "C" int remove(const char *) throw(); # 177 "/usr/include/stdio.h" 3 extern "C" int rename(const char *, const char *) throw(); # 182 "/usr/include/stdio.h" 3 extern "C" int renameat(int, const char *, int, const char *) throw(); # 192 "/usr/include/stdio.h" 3 extern "C" FILE *tmpfile(); # 202 "/usr/include/stdio.h" 3 extern "C" FILE *tmpfile64(); # 206 "/usr/include/stdio.h" 3 extern "C" char *tmpnam(char *) throw(); # 212 "/usr/include/stdio.h" 3 extern "C" char *tmpnam_r(char *) throw(); # 224 "/usr/include/stdio.h" 3 extern "C" char *tempnam(const char *, const char *) throw() __attribute__((__malloc__)); # 234 "/usr/include/stdio.h" 3 extern "C" int fclose(FILE *); # 239 "/usr/include/stdio.h" 3 extern "C" int fflush(FILE *); # 249 "/usr/include/stdio.h" 3 extern "C" int fflush_unlocked(FILE *); # 259 "/usr/include/stdio.h" 3 extern "C" int fcloseall(); # 269 "/usr/include/stdio.h" 3 extern "C" FILE *fopen(const char *__restrict__, const char *__restrict__); # 275 "/usr/include/stdio.h" 3 extern "C" FILE *freopen(const char *__restrict__, const char *__restrict__, FILE *__restrict__); # 294 "/usr/include/stdio.h" 3 extern "C" FILE *fopen64(const char *__restrict__, const char *__restrict__); # 296 "/usr/include/stdio.h" 3 extern "C" FILE *freopen64(const char *__restrict__, const char *__restrict__, FILE *__restrict__); # 303 "/usr/include/stdio.h" 3 extern "C" FILE *fdopen(int, const char *) throw(); # 309 "/usr/include/stdio.h" 3 extern "C" FILE *fopencookie(void *__restrict__, const char *__restrict__, _IO_cookie_io_functions_t) throw(); # 316 "/usr/include/stdio.h" 3 extern "C" FILE *fmemopen(void *, size_t, const char *) throw(); # 322 "/usr/include/stdio.h" 3 extern "C" FILE *open_memstream(char **, size_t *) throw(); # 329 "/usr/include/stdio.h" 3 extern "C" void setbuf(FILE *__restrict__, char *__restrict__) throw(); # 333 "/usr/include/stdio.h" 3 extern "C" int setvbuf(FILE *__restrict__, char *__restrict__, int, size_t) throw(); # 340 "/usr/include/stdio.h" 3 extern "C" void setbuffer(FILE *__restrict__, char *__restrict__, size_t) throw(); # 344 "/usr/include/stdio.h" 3 extern "C" void setlinebuf(FILE *) throw(); # 353 "/usr/include/stdio.h" 3 extern "C" int fprintf(FILE *__restrict__, const char *__restrict__, ...); # 359 "/usr/include/stdio.h" 3 extern "C" int printf(const char *__restrict__, ...); # 361 "/usr/include/stdio.h" 3 extern "C" int sprintf(char *__restrict__, const char *__restrict__, ...) throw(); # 368 "/usr/include/stdio.h" 3 extern "C" int vfprintf(FILE *__restrict__, const char *__restrict__, __gnuc_va_list); # 374 "/usr/include/stdio.h" 3 extern "C" int vprintf(const char *__restrict__, __gnuc_va_list); # 376 "/usr/include/stdio.h" 3 extern "C" int vsprintf(char *__restrict__, const char *__restrict__, __gnuc_va_list) throw(); # 383 "/usr/include/stdio.h" 3 extern "C" int snprintf(char *__restrict__, size_t, const char *__restrict__, ...) throw(); # 387 "/usr/include/stdio.h" 3 extern "C" int vsnprintf(char *__restrict__, size_t, const char *__restrict__, __gnuc_va_list) throw(); # 396 "/usr/include/stdio.h" 3 extern "C" int vasprintf(char **__restrict__, const char *__restrict__, __gnuc_va_list) throw(); # 399 "/usr/include/stdio.h" 3 extern "C" int __asprintf(char **__restrict__, const char *__restrict__, ...) throw(); # 402 "/usr/include/stdio.h" 3 extern "C" int asprintf(char **__restrict__, const char *__restrict__, ...) throw(); # 414 "/usr/include/stdio.h" 3 extern "C" int vdprintf(int, const char *__restrict__, __gnuc_va_list); # 417 "/usr/include/stdio.h" 3 extern "C" int dprintf(int, const char *__restrict__, ...); # 427 "/usr/include/stdio.h" 3 extern "C" int fscanf(FILE *__restrict__, const char *__restrict__, ...); # 433 "/usr/include/stdio.h" 3 extern "C" int scanf(const char *__restrict__, ...); # 435 "/usr/include/stdio.h" 3 extern "C" int sscanf(const char *__restrict__, const char *__restrict__, ...) throw(); # 473 "/usr/include/stdio.h" 3 extern "C" int vfscanf(FILE *__restrict__, const char *__restrict__, __gnuc_va_list); # 481 "/usr/include/stdio.h" 3 extern "C" int vscanf(const char *__restrict__, __gnuc_va_list); # 485 "/usr/include/stdio.h" 3 extern "C" int vsscanf(const char *__restrict__, const char *__restrict__, __gnuc_va_list) throw(); # 533 "/usr/include/stdio.h" 3 extern "C" int fgetc(FILE *); # 534 "/usr/include/stdio.h" 3 extern "C" int getc(FILE *); # 540 "/usr/include/stdio.h" 3 extern "C" int getchar(); # 552 "/usr/include/stdio.h" 3 extern "C" int getc_unlocked(FILE *); # 553 "/usr/include/stdio.h" 3 extern "C" int getchar_unlocked(); # 563 "/usr/include/stdio.h" 3 extern "C" int fgetc_unlocked(FILE *); # 575 "/usr/include/stdio.h" 3 extern "C" int fputc(int, FILE *); # 576 "/usr/include/stdio.h" 3 extern "C" int putc(int, FILE *); # 582 "/usr/include/stdio.h" 3 extern "C" int putchar(int); # 596 "/usr/include/stdio.h" 3 extern "C" int fputc_unlocked(int, FILE *); # 604 "/usr/include/stdio.h" 3 extern "C" int putc_unlocked(int, FILE *); # 605 "/usr/include/stdio.h" 3 extern "C" int putchar_unlocked(int); # 612 "/usr/include/stdio.h" 3 extern "C" int getw(FILE *); # 615 "/usr/include/stdio.h" 3 extern "C" int putw(int, FILE *); # 624 "/usr/include/stdio.h" 3 extern "C" char *fgets(char *__restrict__, int, FILE *__restrict__); # 632 "/usr/include/stdio.h" 3 extern "C" char *gets(char *); # 642 "/usr/include/stdio.h" 3 extern "C" char *fgets_unlocked(char *__restrict__, int, FILE *__restrict__); # 658 "/usr/include/stdio.h" 3 extern "C" __ssize_t __getdelim(char **__restrict__, size_t *__restrict__, int, FILE *__restrict__); # 661 "/usr/include/stdio.h" 3 extern "C" __ssize_t getdelim(char **__restrict__, size_t *__restrict__, int, FILE *__restrict__); # 671 "/usr/include/stdio.h" 3 extern "C" __ssize_t getline(char **__restrict__, size_t *__restrict__, FILE *__restrict__); # 682 "/usr/include/stdio.h" 3 extern "C" int fputs(const char *__restrict__, FILE *__restrict__); # 688 "/usr/include/stdio.h" 3 extern "C" int puts(const char *); # 695 "/usr/include/stdio.h" 3 extern "C" int ungetc(int, FILE *); # 702 "/usr/include/stdio.h" 3 extern "C" size_t fread(void *__restrict__, size_t, size_t, FILE *__restrict__); # 708 "/usr/include/stdio.h" 3 extern "C" size_t fwrite(const void *__restrict__, size_t, size_t, FILE *__restrict__); # 719 "/usr/include/stdio.h" 3 extern "C" int fputs_unlocked(const char *__restrict__, FILE *__restrict__); # 730 "/usr/include/stdio.h" 3 extern "C" size_t fread_unlocked(void *__restrict__, size_t, size_t, FILE *__restrict__); # 732 "/usr/include/stdio.h" 3 extern "C" size_t fwrite_unlocked(const void *__restrict__, size_t, size_t, FILE *__restrict__); # 742 "/usr/include/stdio.h" 3 extern "C" int fseek(FILE *, long, int); # 747 "/usr/include/stdio.h" 3 extern "C" long ftell(FILE *); # 752 "/usr/include/stdio.h" 3 extern "C" void rewind(FILE *); # 766 "/usr/include/stdio.h" 3 extern "C" int fseeko(FILE *, __off_t, int); # 771 "/usr/include/stdio.h" 3 extern "C" __off_t ftello(FILE *); # 791 "/usr/include/stdio.h" 3 extern "C" int fgetpos(FILE *__restrict__, fpos_t *__restrict__); # 796 "/usr/include/stdio.h" 3 extern "C" int fsetpos(FILE *, const fpos_t *); # 811 "/usr/include/stdio.h" 3 extern "C" int fseeko64(FILE *, __off64_t, int); # 812 "/usr/include/stdio.h" 3 extern "C" __off64_t ftello64(FILE *); # 813 "/usr/include/stdio.h" 3 extern "C" int fgetpos64(FILE *__restrict__, fpos64_t *__restrict__); # 814 "/usr/include/stdio.h" 3 extern "C" int fsetpos64(FILE *, const fpos64_t *); # 819 "/usr/include/stdio.h" 3 extern "C" void clearerr(FILE *) throw(); # 821 "/usr/include/stdio.h" 3 extern "C" int feof(FILE *) throw(); # 823 "/usr/include/stdio.h" 3 extern "C" int ferror(FILE *) throw(); # 828 "/usr/include/stdio.h" 3 extern "C" void clearerr_unlocked(FILE *) throw(); # 829 "/usr/include/stdio.h" 3 extern "C" int feof_unlocked(FILE *) throw(); # 830 "/usr/include/stdio.h" 3 extern "C" int ferror_unlocked(FILE *) throw(); # 839 "/usr/include/stdio.h" 3 extern "C" void perror(const char *); # 27 "/usr/include/bits/sys_errlist.h" 3 extern "C" { extern int sys_nerr; } # 28 "/usr/include/bits/sys_errlist.h" 3 extern "C" { extern const char *const sys_errlist[]; } # 31 "/usr/include/bits/sys_errlist.h" 3 extern "C" { extern int _sys_nerr; } # 32 "/usr/include/bits/sys_errlist.h" 3 extern "C" { extern const char *const _sys_errlist[]; } # 851 "/usr/include/stdio.h" 3 extern "C" int fileno(FILE *) throw(); # 856 "/usr/include/stdio.h" 3 extern "C" int fileno_unlocked(FILE *) throw(); # 866 "/usr/include/stdio.h" 3 extern "C" FILE *popen(const char *, const char *); # 872 "/usr/include/stdio.h" 3 extern "C" int pclose(FILE *); # 878 "/usr/include/stdio.h" 3 extern "C" char *ctermid(char *) throw(); # 884 "/usr/include/stdio.h" 3 extern "C" char *cuserid(char *); # 889 "/usr/include/stdio.h" 3 struct obstack; # 892 "/usr/include/stdio.h" 3 extern "C" int obstack_printf(obstack *__restrict__, const char *__restrict__, ...) throw(); # 895 "/usr/include/stdio.h" 3 extern "C" int obstack_vprintf(obstack *__restrict__, const char *__restrict__, __gnuc_va_list) throw(); # 906 "/usr/include/stdio.h" 3 extern "C" void flockfile(FILE *) throw(); # 910 "/usr/include/stdio.h" 3 extern "C" int ftrylockfile(FILE *) throw(); # 913 "/usr/include/stdio.h" 3 extern "C" void funlockfile(FILE *) throw(); # 49 "sdk/cutil_math.h" extern "C" { typedef unsigned uint; } # 50 "sdk/cutil_math.h" extern "C" { typedef unsigned short ushort; } # 85 "sdk/cutil_math.h" inline float lerp(float a, float b, float t) # 86 "sdk/cutil_math.h" { # 87 "sdk/cutil_math.h" return a + (t * (b - a)); # 88 "sdk/cutil_math.h" } # 91 "sdk/cutil_math.h" inline float clamp(float f, float a, float b) # 92 "sdk/cutil_math.h" { # 93 "sdk/cutil_math.h" return fmaxf(a, fminf(f, b)); # 94 "sdk/cutil_math.h" } # 100 "sdk/cutil_math.h" inline int2 operator-(int2 &a) # 101 "sdk/cutil_math.h" { # 102 "sdk/cutil_math.h" return make_int2(-(a.x), -(a.y)); # 103 "sdk/cutil_math.h" } # 106 "sdk/cutil_math.h" inline int2 operator+(int2 a, int2 b) # 107 "sdk/cutil_math.h" { # 108 "sdk/cutil_math.h" return make_int2((a.x) + (b.x), (a.y) + (b.y)); # 109 "sdk/cutil_math.h" } # 110 "sdk/cutil_math.h" inline void operator+=(int2 &a, int2 b) # 111 "sdk/cutil_math.h" { # 112 "sdk/cutil_math.h" (a.x) += (b.x); (a.y) += (b.y); # 113 "sdk/cutil_math.h" } # 116 "sdk/cutil_math.h" inline int2 operator-(int2 a, int2 b) # 117 "sdk/cutil_math.h" { # 118 "sdk/cutil_math.h" return make_int2((a.x) - (b.x), (a.y) - (b.y)); # 119 "sdk/cutil_math.h" } # 120 "sdk/cutil_math.h" inline void operator-=(int2 &a, int2 b) # 121 "sdk/cutil_math.h" { # 122 "sdk/cutil_math.h" (a.x) -= (b.x); (a.y) -= (b.y); # 123 "sdk/cutil_math.h" } # 126 "sdk/cutil_math.h" inline int2 operator*(int2 a, int2 b) # 127 "sdk/cutil_math.h" { # 128 "sdk/cutil_math.h" return make_int2((a.x) * (b.x), (a.y) * (b.y)); # 129 "sdk/cutil_math.h" } # 130 "sdk/cutil_math.h" inline int2 operator*(int2 a, int s) # 131 "sdk/cutil_math.h" { # 132 "sdk/cutil_math.h" return make_int2((a.x) * s, (a.y) * s); # 133 "sdk/cutil_math.h" } # 134 "sdk/cutil_math.h" inline int2 operator*(int s, int2 a) # 135 "sdk/cutil_math.h" { # 136 "sdk/cutil_math.h" return make_int2((a.x) * s, (a.y) * s); # 137 "sdk/cutil_math.h" } # 138 "sdk/cutil_math.h" inline void operator*=(int2 &a, int s) # 139 "sdk/cutil_math.h" { # 140 "sdk/cutil_math.h" (a.x) *= s; (a.y) *= s; # 141 "sdk/cutil_math.h" } # 147 "sdk/cutil_math.h" inline float2 make_float2(float s) # 148 "sdk/cutil_math.h" { # 149 "sdk/cutil_math.h" return make_float2(s, s); # 150 "sdk/cutil_math.h" } # 151 "sdk/cutil_math.h" inline float2 make_float2(int2 a) # 152 "sdk/cutil_math.h" { # 153 "sdk/cutil_math.h" return make_float2((float)(a.x), (float)(a.y)); # 154 "sdk/cutil_math.h" } # 157 "sdk/cutil_math.h" inline float2 operator-(float2 &a) # 158 "sdk/cutil_math.h" { # 159 "sdk/cutil_math.h" return make_float2(-(a.x), -(a.y)); # 160 "sdk/cutil_math.h" } # 163 "sdk/cutil_math.h" inline float2 operator+(float2 a, float2 b) # 164 "sdk/cutil_math.h" { # 165 "sdk/cutil_math.h" return make_float2((a.x) + (b.x), (a.y) + (b.y)); # 166 "sdk/cutil_math.h" } # 167 "sdk/cutil_math.h" inline void operator+=(float2 &a, float2 b) # 168 "sdk/cutil_math.h" { # 169 "sdk/cutil_math.h" (a.x) += (b.x); (a.y) += (b.y); # 170 "sdk/cutil_math.h" } # 173 "sdk/cutil_math.h" inline float2 operator-(float2 a, float2 b) # 174 "sdk/cutil_math.h" { # 175 "sdk/cutil_math.h" return make_float2((a.x) - (b.x), (a.y) - (b.y)); # 176 "sdk/cutil_math.h" } # 177 "sdk/cutil_math.h" inline void operator-=(float2 &a, float2 b) # 178 "sdk/cutil_math.h" { # 179 "sdk/cutil_math.h" (a.x) -= (b.x); (a.y) -= (b.y); # 180 "sdk/cutil_math.h" } # 183 "sdk/cutil_math.h" inline float2 operator*(float2 a, float2 b) # 184 "sdk/cutil_math.h" { # 185 "sdk/cutil_math.h" return make_float2((a.x) * (b.x), (a.y) * (b.y)); # 186 "sdk/cutil_math.h" } # 187 "sdk/cutil_math.h" inline float2 operator*(float2 a, float s) # 188 "sdk/cutil_math.h" { # 189 "sdk/cutil_math.h" return make_float2((a.x) * s, (a.y) * s); # 190 "sdk/cutil_math.h" } # 191 "sdk/cutil_math.h" inline float2 operator*(float s, float2 a) # 192 "sdk/cutil_math.h" { # 193 "sdk/cutil_math.h" return make_float2((a.x) * s, (a.y) * s); # 194 "sdk/cutil_math.h" } # 195 "sdk/cutil_math.h" inline void operator*=(float2 &a, float s) # 196 "sdk/cutil_math.h" { # 197 "sdk/cutil_math.h" (a.x) *= s; (a.y) *= s; # 198 "sdk/cutil_math.h" } # 201 "sdk/cutil_math.h" inline float2 operator/(float2 a, float2 b) # 202 "sdk/cutil_math.h" { # 203 "sdk/cutil_math.h" return make_float2((a.x) / (b.x), (a.y) / (b.y)); # 204 "sdk/cutil_math.h" } # 205 "sdk/cutil_math.h" inline float2 operator/(float2 a, float s) # 206 "sdk/cutil_math.h" { # 207 "sdk/cutil_math.h" float inv = ((1.0F) / s); # 208 "sdk/cutil_math.h" return (a * inv); # 209 "sdk/cutil_math.h" } # 210 "sdk/cutil_math.h" inline float2 operator/(float s, float2 a) # 211 "sdk/cutil_math.h" { # 212 "sdk/cutil_math.h" float inv = ((1.0F) / s); # 213 "sdk/cutil_math.h" return (a * inv); # 214 "sdk/cutil_math.h" } # 215 "sdk/cutil_math.h" inline void operator/=(float2 &a, float s) # 216 "sdk/cutil_math.h" { # 217 "sdk/cutil_math.h" float inv = ((1.0F) / s); # 218 "sdk/cutil_math.h" ((a) *= inv); # 219 "sdk/cutil_math.h" } # 222 "sdk/cutil_math.h" inline float2 lerp(float2 a, float2 b, float t) # 223 "sdk/cutil_math.h" { # 224 "sdk/cutil_math.h" return (a + ((t * ((b - a))))); # 225 "sdk/cutil_math.h" } # 228 "sdk/cutil_math.h" inline float2 clamp(float2 v, float a, float b) # 229 "sdk/cutil_math.h" { # 230 "sdk/cutil_math.h" return make_float2(clamp(v.x, a, b), clamp(v.y, a, b)); # 231 "sdk/cutil_math.h" } # 233 "sdk/cutil_math.h" inline float2 clamp(float2 v, float2 a, float2 b) # 234 "sdk/cutil_math.h" { # 235 "sdk/cutil_math.h" return make_float2(clamp(v.x, a.x, b.x), clamp(v.y, a.y, b.y)); # 236 "sdk/cutil_math.h" } # 239 "sdk/cutil_math.h" inline float dot(float2 a, float2 b) # 240 "sdk/cutil_math.h" { # 241 "sdk/cutil_math.h" return ((a.x) * (b.x)) + ((a.y) * (b.y)); # 242 "sdk/cutil_math.h" } # 245 "sdk/cutil_math.h" inline float length(float2 v) # 246 "sdk/cutil_math.h" { # 247 "sdk/cutil_math.h" return sqrtf(dot(v, v)); # 248 "sdk/cutil_math.h" } # 251 "sdk/cutil_math.h" inline float2 normalize(float2 v) # 252 "sdk/cutil_math.h" { # 253 "sdk/cutil_math.h" float invLen = rsqrtf(dot(v, v)); # 254 "sdk/cutil_math.h" return (v * invLen); # 255 "sdk/cutil_math.h" } # 258 "sdk/cutil_math.h" inline float2 floor(const float2 v) # 259 "sdk/cutil_math.h" { # 260 "sdk/cutil_math.h" return make_float2(floor(v.x), floor(v.y)); # 261 "sdk/cutil_math.h" } # 264 "sdk/cutil_math.h" inline float2 reflect(float2 i, float2 n) # 265 "sdk/cutil_math.h" { # 266 "sdk/cutil_math.h" return (i - ((((((2.0F)) * n)) * (dot(n, i))))); # 267 "sdk/cutil_math.h" } # 270 "sdk/cutil_math.h" inline float2 fabs(float2 v) # 271 "sdk/cutil_math.h" { # 272 "sdk/cutil_math.h" return make_float2(fabs(v.x), fabs(v.y)); # 273 "sdk/cutil_math.h" } # 279 "sdk/cutil_math.h" inline float3 make_float3(float s) # 280 "sdk/cutil_math.h" { # 281 "sdk/cutil_math.h" return make_float3(s, s, s); # 282 "sdk/cutil_math.h" } # 283 "sdk/cutil_math.h" inline float3 make_float3(float2 a) # 284 "sdk/cutil_math.h" { # 285 "sdk/cutil_math.h" return make_float3(a.x, a.y, (0.0F)); # 286 "sdk/cutil_math.h" } # 287 "sdk/cutil_math.h" inline float3 make_float3(float2 a, float s) # 288 "sdk/cutil_math.h" { # 289 "sdk/cutil_math.h" return make_float3(a.x, a.y, s); # 290 "sdk/cutil_math.h" } # 291 "sdk/cutil_math.h" inline float3 make_float3(float4 a) # 292 "sdk/cutil_math.h" { # 293 "sdk/cutil_math.h" return make_float3(a.x, a.y, a.z); # 294 "sdk/cutil_math.h" } # 295 "sdk/cutil_math.h" inline float3 make_float3(int3 a) # 296 "sdk/cutil_math.h" { # 297 "sdk/cutil_math.h" return make_float3((float)(a.x), (float)(a.y), (float)(a.z)); # 298 "sdk/cutil_math.h" } # 301 "sdk/cutil_math.h" inline float3 operator-(float3 &a) # 302 "sdk/cutil_math.h" { # 303 "sdk/cutil_math.h" return make_float3(-(a.x), -(a.y), -(a.z)); # 304 "sdk/cutil_math.h" } # 307 "sdk/cutil_math.h" static inline float3 fminf(float3 a, float3 b) # 308 "sdk/cutil_math.h" { # 309 "sdk/cutil_math.h" return make_float3(fminf(a.x, b.x), fminf(a.y, b.y), fminf(a.z, b.z)); # 310 "sdk/cutil_math.h" } # 313 "sdk/cutil_math.h" static inline float3 fmaxf(float3 a, float3 b) # 314 "sdk/cutil_math.h" { # 315 "sdk/cutil_math.h" return make_float3(fmaxf(a.x, b.x), fmaxf(a.y, b.y), fmaxf(a.z, b.z)); # 316 "sdk/cutil_math.h" } # 319 "sdk/cutil_math.h" inline float3 operator+(float3 a, float3 b) # 320 "sdk/cutil_math.h" { # 321 "sdk/cutil_math.h" return make_float3((a.x) + (b.x), (a.y) + (b.y), (a.z) + (b.z)); # 322 "sdk/cutil_math.h" } # 323 "sdk/cutil_math.h" inline float3 operator+(float3 a, float b) # 324 "sdk/cutil_math.h" { # 325 "sdk/cutil_math.h" return make_float3((a.x) + b, (a.y) + b, (a.z) + b); # 326 "sdk/cutil_math.h" } # 327 "sdk/cutil_math.h" inline void operator+=(float3 &a, float3 b) # 328 "sdk/cutil_math.h" { # 329 "sdk/cutil_math.h" (a.x) += (b.x); (a.y) += (b.y); (a.z) += (b.z); # 330 "sdk/cutil_math.h" } # 333 "sdk/cutil_math.h" inline float3 operator-(float3 a, float3 b) # 334 "sdk/cutil_math.h" { # 335 "sdk/cutil_math.h" return make_float3((a.x) - (b.x), (a.y) - (b.y), (a.z) - (b.z)); # 336 "sdk/cutil_math.h" } # 337 "sdk/cutil_math.h" inline float3 operator-(float3 a, float b) # 338 "sdk/cutil_math.h" { # 339 "sdk/cutil_math.h" return make_float3((a.x) - b, (a.y) - b, (a.z) - b); # 340 "sdk/cutil_math.h" } # 341 "sdk/cutil_math.h" inline void operator-=(float3 &a, float3 b) # 342 "sdk/cutil_math.h" { # 343 "sdk/cutil_math.h" (a.x) -= (b.x); (a.y) -= (b.y); (a.z) -= (b.z); # 344 "sdk/cutil_math.h" } # 347 "sdk/cutil_math.h" inline float3 operator*(float3 a, float3 b) # 348 "sdk/cutil_math.h" { # 349 "sdk/cutil_math.h" return make_float3((a.x) * (b.x), (a.y) * (b.y), (a.z) * (b.z)); # 350 "sdk/cutil_math.h" } # 351 "sdk/cutil_math.h" inline float3 operator*(float3 a, float s) # 352 "sdk/cutil_math.h" { # 353 "sdk/cutil_math.h" return make_float3((a.x) * s, (a.y) * s, (a.z) * s); # 354 "sdk/cutil_math.h" } # 355 "sdk/cutil_math.h" inline float3 operator*(float s, float3 a) # 356 "sdk/cutil_math.h" { # 357 "sdk/cutil_math.h" return make_float3((a.x) * s, (a.y) * s, (a.z) * s); # 358 "sdk/cutil_math.h" } # 359 "sdk/cutil_math.h" inline void operator*=(float3 &a, float s) # 360 "sdk/cutil_math.h" { # 361 "sdk/cutil_math.h" (a.x) *= s; (a.y) *= s; (a.z) *= s; # 362 "sdk/cutil_math.h" } # 365 "sdk/cutil_math.h" inline float3 operator/(float3 a, float3 b) # 366 "sdk/cutil_math.h" { # 367 "sdk/cutil_math.h" return make_float3((a.x) / (b.x), (a.y) / (b.y), (a.z) / (b.z)); # 368 "sdk/cutil_math.h" } # 369 "sdk/cutil_math.h" inline float3 operator/(float3 a, float s) # 370 "sdk/cutil_math.h" { # 371 "sdk/cutil_math.h" float inv = ((1.0F) / s); # 372 "sdk/cutil_math.h" return (a * inv); # 373 "sdk/cutil_math.h" } # 374 "sdk/cutil_math.h" inline float3 operator/(float s, float3 a) # 375 "sdk/cutil_math.h" { # 376 "sdk/cutil_math.h" float inv = ((1.0F) / s); # 377 "sdk/cutil_math.h" return (a * inv); # 378 "sdk/cutil_math.h" } # 379 "sdk/cutil_math.h" inline void operator/=(float3 &a, float s) # 380 "sdk/cutil_math.h" { # 381 "sdk/cutil_math.h" float inv = ((1.0F) / s); # 382 "sdk/cutil_math.h" ((a) *= inv); # 383 "sdk/cutil_math.h" } # 386 "sdk/cutil_math.h" inline float3 lerp(float3 a, float3 b, float t) # 387 "sdk/cutil_math.h" { # 388 "sdk/cutil_math.h" return (a + ((t * ((b - a))))); # 389 "sdk/cutil_math.h" } # 392 "sdk/cutil_math.h" inline float3 clamp(float3 v, float a, float b) # 393 "sdk/cutil_math.h" { # 394 "sdk/cutil_math.h" return make_float3(clamp(v.x, a, b), clamp(v.y, a, b), clamp(v.z, a, b)); # 395 "sdk/cutil_math.h" } # 397 "sdk/cutil_math.h" inline float3 clamp(float3 v, float3 a, float3 b) # 398 "sdk/cutil_math.h" { # 399 "sdk/cutil_math.h" return make_float3(clamp(v.x, a.x, b.x), clamp(v.y, a.y, b.y), clamp(v.z, a.z, b.z)); # 400 "sdk/cutil_math.h" } # 403 "sdk/cutil_math.h" inline float dot(float3 a, float3 b) # 404 "sdk/cutil_math.h" { # 405 "sdk/cutil_math.h" return (((a.x) * (b.x)) + ((a.y) * (b.y))) + ((a.z) * (b.z)); # 406 "sdk/cutil_math.h" } # 409 "sdk/cutil_math.h" inline float3 cross(float3 a, float3 b) # 410 "sdk/cutil_math.h" { # 411 "sdk/cutil_math.h" return make_float3(((a.y) * (b.z)) - ((a.z) * (b.y)), ((a.z) * (b.x)) - ((a.x) * (b.z)), ((a.x) * (b.y)) - ((a.y) * (b.x))); # 412 "sdk/cutil_math.h" } # 415 "sdk/cutil_math.h" inline float length(float3 v) # 416 "sdk/cutil_math.h" { # 417 "sdk/cutil_math.h" return sqrtf(dot(v, v)); # 418 "sdk/cutil_math.h" } # 421 "sdk/cutil_math.h" inline float3 normalize(float3 v) # 422 "sdk/cutil_math.h" { # 423 "sdk/cutil_math.h" float invLen = rsqrtf(dot(v, v)); # 424 "sdk/cutil_math.h" return (v * invLen); # 425 "sdk/cutil_math.h" } # 428 "sdk/cutil_math.h" inline float3 floor(const float3 v) # 429 "sdk/cutil_math.h" { # 430 "sdk/cutil_math.h" return make_float3(floor(v.x), floor(v.y), floor(v.z)); # 431 "sdk/cutil_math.h" } # 434 "sdk/cutil_math.h" inline float3 reflect(float3 i, float3 n) # 435 "sdk/cutil_math.h" { # 436 "sdk/cutil_math.h" return (i - ((((((2.0F)) * n)) * (dot(n, i))))); # 437 "sdk/cutil_math.h" } # 440 "sdk/cutil_math.h" inline float3 fabs(float3 v) # 441 "sdk/cutil_math.h" { # 442 "sdk/cutil_math.h" return make_float3(fabs(v.x), fabs(v.y), fabs(v.z)); # 443 "sdk/cutil_math.h" } # 449 "sdk/cutil_math.h" inline float4 make_float4(float s) # 450 "sdk/cutil_math.h" { # 451 "sdk/cutil_math.h" return make_float4(s, s, s, s); # 452 "sdk/cutil_math.h" } # 453 "sdk/cutil_math.h" inline float4 make_float4(float3 a) # 454 "sdk/cutil_math.h" { # 455 "sdk/cutil_math.h" return make_float4(a.x, a.y, a.z, (0.0F)); # 456 "sdk/cutil_math.h" } # 457 "sdk/cutil_math.h" inline float4 make_float4(float3 a, float w) # 458 "sdk/cutil_math.h" { # 459 "sdk/cutil_math.h" return make_float4(a.x, a.y, a.z, w); # 460 "sdk/cutil_math.h" } # 461 "sdk/cutil_math.h" inline float4 make_float4(int4 a) # 462 "sdk/cutil_math.h" { # 463 "sdk/cutil_math.h" return make_float4((float)(a.x), (float)(a.y), (float)(a.z), (float)(a.w)); # 464 "sdk/cutil_math.h" } # 467 "sdk/cutil_math.h" inline float4 operator-(float4 &a) # 468 "sdk/cutil_math.h" { # 469 "sdk/cutil_math.h" return make_float4(-(a.x), -(a.y), -(a.z), -(a.w)); # 470 "sdk/cutil_math.h" } # 473 "sdk/cutil_math.h" static inline float4 fminf(float4 a, float4 b) # 474 "sdk/cutil_math.h" { # 475 "sdk/cutil_math.h" return make_float4(fminf(a.x, b.x), fminf(a.y, b.y), fminf(a.z, b.z), fminf(a.w, b.w)); # 476 "sdk/cutil_math.h" } # 479 "sdk/cutil_math.h" static inline float4 fmaxf(float4 a, float4 b) # 480 "sdk/cutil_math.h" { # 481 "sdk/cutil_math.h" return make_float4(fmaxf(a.x, b.x), fmaxf(a.y, b.y), fmaxf(a.z, b.z), fmaxf(a.w, b.w)); # 482 "sdk/cutil_math.h" } # 485 "sdk/cutil_math.h" inline float4 operator+(float4 a, float4 b) # 486 "sdk/cutil_math.h" { # 487 "sdk/cutil_math.h" return make_float4((a.x) + (b.x), (a.y) + (b.y), (a.z) + (b.z), (a.w) + (b.w)); # 488 "sdk/cutil_math.h" } # 489 "sdk/cutil_math.h" inline void operator+=(float4 &a, float4 b) # 490 "sdk/cutil_math.h" { # 491 "sdk/cutil_math.h" (a.x) += (b.x); (a.y) += (b.y); (a.z) += (b.z); (a.w) += (b.w); # 492 "sdk/cutil_math.h" } # 495 "sdk/cutil_math.h" inline float4 operator-(float4 a, float4 b) # 496 "sdk/cutil_math.h" { # 497 "sdk/cutil_math.h" return make_float4((a.x) - (b.x), (a.y) - (b.y), (a.z) - (b.z), (a.w) - (b.w)); # 498 "sdk/cutil_math.h" } # 499 "sdk/cutil_math.h" inline void operator-=(float4 &a, float4 b) # 500 "sdk/cutil_math.h" { # 501 "sdk/cutil_math.h" (a.x) -= (b.x); (a.y) -= (b.y); (a.z) -= (b.z); (a.w) -= (b.w); # 502 "sdk/cutil_math.h" } # 505 "sdk/cutil_math.h" inline float4 operator*(float4 a, float s) # 506 "sdk/cutil_math.h" { # 507 "sdk/cutil_math.h" return make_float4((a.x) * s, (a.y) * s, (a.z) * s, (a.w) * s); # 508 "sdk/cutil_math.h" } # 509 "sdk/cutil_math.h" inline float4 operator*(float s, float4 a) # 510 "sdk/cutil_math.h" { # 511 "sdk/cutil_math.h" return make_float4((a.x) * s, (a.y) * s, (a.z) * s, (a.w) * s); # 512 "sdk/cutil_math.h" } # 513 "sdk/cutil_math.h" inline void operator*=(float4 &a, float s) # 514 "sdk/cutil_math.h" { # 515 "sdk/cutil_math.h" (a.x) *= s; (a.y) *= s; (a.z) *= s; (a.w) *= s; # 516 "sdk/cutil_math.h" } # 519 "sdk/cutil_math.h" inline float4 operator/(float4 a, float4 b) # 520 "sdk/cutil_math.h" { # 521 "sdk/cutil_math.h" return make_float4((a.x) / (b.x), (a.y) / (b.y), (a.z) / (b.z), (a.w) / (b.w)); # 522 "sdk/cutil_math.h" } # 523 "sdk/cutil_math.h" inline float4 operator/(float4 a, float s) # 524 "sdk/cutil_math.h" { # 525 "sdk/cutil_math.h" float inv = ((1.0F) / s); # 526 "sdk/cutil_math.h" return (a * inv); # 527 "sdk/cutil_math.h" } # 528 "sdk/cutil_math.h" inline float4 operator/(float s, float4 a) # 529 "sdk/cutil_math.h" { # 530 "sdk/cutil_math.h" float inv = ((1.0F) / s); # 531 "sdk/cutil_math.h" return (a * inv); # 532 "sdk/cutil_math.h" } # 533 "sdk/cutil_math.h" inline void operator/=(float4 &a, float s) # 534 "sdk/cutil_math.h" { # 535 "sdk/cutil_math.h" float inv = ((1.0F) / s); # 536 "sdk/cutil_math.h" ((a) *= inv); # 537 "sdk/cutil_math.h" } # 540 "sdk/cutil_math.h" inline float4 lerp(float4 a, float4 b, float t) # 541 "sdk/cutil_math.h" { # 542 "sdk/cutil_math.h" return (a + ((t * ((b - a))))); # 543 "sdk/cutil_math.h" } # 546 "sdk/cutil_math.h" inline float4 clamp(float4 v, float a, float b) # 547 "sdk/cutil_math.h" { # 548 "sdk/cutil_math.h" return make_float4(clamp(v.x, a, b), clamp(v.y, a, b), clamp(v.z, a, b), clamp(v.w, a, b)); # 549 "sdk/cutil_math.h" } # 551 "sdk/cutil_math.h" inline float4 clamp(float4 v, float4 a, float4 b) # 552 "sdk/cutil_math.h" { # 553 "sdk/cutil_math.h" return make_float4(clamp(v.x, a.x, b.x), clamp(v.y, a.y, b.y), clamp(v.z, a.z, b.z), clamp(v.w, a.w, b.w)); # 554 "sdk/cutil_math.h" } # 557 "sdk/cutil_math.h" inline float dot(float4 a, float4 b) # 558 "sdk/cutil_math.h" { # 559 "sdk/cutil_math.h" return ((((a.x) * (b.x)) + ((a.y) * (b.y))) + ((a.z) * (b.z))) + ((a.w) * (b.w)); # 560 "sdk/cutil_math.h" } # 563 "sdk/cutil_math.h" inline float length(float4 r) # 564 "sdk/cutil_math.h" { # 565 "sdk/cutil_math.h" return sqrtf(dot(r, r)); # 566 "sdk/cutil_math.h" } # 569 "sdk/cutil_math.h" inline float4 normalize(float4 v) # 570 "sdk/cutil_math.h" { # 571 "sdk/cutil_math.h" float invLen = rsqrtf(dot(v, v)); # 572 "sdk/cutil_math.h" return (v * invLen); # 573 "sdk/cutil_math.h" } # 576 "sdk/cutil_math.h" inline float4 floor(const float4 v) # 577 "sdk/cutil_math.h" { # 578 "sdk/cutil_math.h" return make_float4(floor(v.x), floor(v.y), floor(v.z), floor(v.w)); # 579 "sdk/cutil_math.h" } # 582 "sdk/cutil_math.h" inline float4 fabs(float4 v) # 583 "sdk/cutil_math.h" { # 584 "sdk/cutil_math.h" return make_float4(fabs(v.x), fabs(v.y), fabs(v.z), fabs(v.w)); # 585 "sdk/cutil_math.h" } # 591 "sdk/cutil_math.h" inline int3 make_int3(int s) # 592 "sdk/cutil_math.h" { # 593 "sdk/cutil_math.h" return make_int3(s, s, s); # 594 "sdk/cutil_math.h" } # 595 "sdk/cutil_math.h" inline int3 make_int3(float3 a) # 596 "sdk/cutil_math.h" { # 597 "sdk/cutil_math.h" return make_int3((int)(a.x), (int)(a.y), (int)(a.z)); # 598 "sdk/cutil_math.h" } # 601 "sdk/cutil_math.h" inline int3 operator-(int3 &a) # 602 "sdk/cutil_math.h" { # 603 "sdk/cutil_math.h" return make_int3(-(a.x), -(a.y), -(a.z)); # 604 "sdk/cutil_math.h" } # 607 "sdk/cutil_math.h" inline int3 min(int3 a, int3 b) # 608 "sdk/cutil_math.h" { # 609 "sdk/cutil_math.h" return make_int3(min(a.x, b.x), min(a.y, b.y), min(a.z, b.z)); # 610 "sdk/cutil_math.h" } # 613 "sdk/cutil_math.h" inline int3 max(int3 a, int3 b) # 614 "sdk/cutil_math.h" { # 615 "sdk/cutil_math.h" return make_int3(max(a.x, b.x), max(a.y, b.y), max(a.z, b.z)); # 616 "sdk/cutil_math.h" } # 619 "sdk/cutil_math.h" inline int3 operator+(int3 a, int3 b) # 620 "sdk/cutil_math.h" { # 621 "sdk/cutil_math.h" return make_int3((a.x) + (b.x), (a.y) + (b.y), (a.z) + (b.z)); # 622 "sdk/cutil_math.h" } # 623 "sdk/cutil_math.h" inline void operator+=(int3 &a, int3 b) # 624 "sdk/cutil_math.h" { # 625 "sdk/cutil_math.h" (a.x) += (b.x); (a.y) += (b.y); (a.z) += (b.z); # 626 "sdk/cutil_math.h" } # 629 "sdk/cutil_math.h" inline int3 operator-(int3 a, int3 b) # 630 "sdk/cutil_math.h" { # 631 "sdk/cutil_math.h" return make_int3((a.x) - (b.x), (a.y) - (b.y), (a.z) - (b.z)); # 632 "sdk/cutil_math.h" } # 634 "sdk/cutil_math.h" inline void operator-=(int3 &a, int3 b) # 635 "sdk/cutil_math.h" { # 636 "sdk/cutil_math.h" (a.x) -= (b.x); (a.y) -= (b.y); (a.z) -= (b.z); # 637 "sdk/cutil_math.h" } # 640 "sdk/cutil_math.h" inline int3 operator*(int3 a, int3 b) # 641 "sdk/cutil_math.h" { # 642 "sdk/cutil_math.h" return make_int3((a.x) * (b.x), (a.y) * (b.y), (a.z) * (b.z)); # 643 "sdk/cutil_math.h" } # 644 "sdk/cutil_math.h" inline int3 operator*(int3 a, int s) # 645 "sdk/cutil_math.h" { # 646 "sdk/cutil_math.h" return make_int3((a.x) * s, (a.y) * s, (a.z) * s); # 647 "sdk/cutil_math.h" } # 648 "sdk/cutil_math.h" inline int3 operator*(int s, int3 a) # 649 "sdk/cutil_math.h" { # 650 "sdk/cutil_math.h" return make_int3((a.x) * s, (a.y) * s, (a.z) * s); # 651 "sdk/cutil_math.h" } # 652 "sdk/cutil_math.h" inline void operator*=(int3 &a, int s) # 653 "sdk/cutil_math.h" { # 654 "sdk/cutil_math.h" (a.x) *= s; (a.y) *= s; (a.z) *= s; # 655 "sdk/cutil_math.h" } # 658 "sdk/cutil_math.h" inline int3 operator/(int3 a, int3 b) # 659 "sdk/cutil_math.h" { # 660 "sdk/cutil_math.h" return make_int3((a.x) / (b.x), (a.y) / (b.y), (a.z) / (b.z)); # 661 "sdk/cutil_math.h" } # 662 "sdk/cutil_math.h" inline int3 operator/(int3 a, int s) # 663 "sdk/cutil_math.h" { # 664 "sdk/cutil_math.h" return make_int3((a.x) / s, (a.y) / s, (a.z) / s); # 665 "sdk/cutil_math.h" } # 666 "sdk/cutil_math.h" inline int3 operator/(int s, int3 a) # 667 "sdk/cutil_math.h" { # 668 "sdk/cutil_math.h" return make_int3((a.x) / s, (a.y) / s, (a.z) / s); # 669 "sdk/cutil_math.h" } # 670 "sdk/cutil_math.h" inline void operator/=(int3 &a, int s) # 671 "sdk/cutil_math.h" { # 672 "sdk/cutil_math.h" (a.x) /= s; (a.y) /= s; (a.z) /= s; # 673 "sdk/cutil_math.h" } # 676 "sdk/cutil_math.h" inline int clamp(int f, int a, int b) # 677 "sdk/cutil_math.h" { # 678 "sdk/cutil_math.h" return max(a, min(f, b)); # 679 "sdk/cutil_math.h" } # 681 "sdk/cutil_math.h" inline int3 clamp(int3 v, int a, int b) # 682 "sdk/cutil_math.h" { # 683 "sdk/cutil_math.h" return make_int3(clamp(v.x, a, b), clamp(v.y, a, b), clamp(v.z, a, b)); # 684 "sdk/cutil_math.h" } # 686 "sdk/cutil_math.h" inline int3 clamp(int3 v, int3 a, int3 b) # 687 "sdk/cutil_math.h" { # 688 "sdk/cutil_math.h" return make_int3(clamp(v.x, a.x, b.x), clamp(v.y, a.y, b.y), clamp(v.z, a.z, b.z)); # 689 "sdk/cutil_math.h" } # 696 "sdk/cutil_math.h" inline uint3 make_uint3(uint s) # 697 "sdk/cutil_math.h" { # 698 "sdk/cutil_math.h" return make_uint3(s, s, s); # 699 "sdk/cutil_math.h" } # 700 "sdk/cutil_math.h" inline uint3 make_uint3(float3 a) # 701 "sdk/cutil_math.h" { # 702 "sdk/cutil_math.h" return make_uint3((uint)(a.x), (uint)(a.y), (uint)(a.z)); # 703 "sdk/cutil_math.h" } # 706 "sdk/cutil_math.h" inline uint3 min(uint3 a, uint3 b) # 707 "sdk/cutil_math.h" { # 708 "sdk/cutil_math.h" return make_uint3(min(a.x, b.x), min(a.y, b.y), min(a.z, b.z)); # 709 "sdk/cutil_math.h" } # 712 "sdk/cutil_math.h" inline uint3 max(uint3 a, uint3 b) # 713 "sdk/cutil_math.h" { # 714 "sdk/cutil_math.h" return make_uint3(max(a.x, b.x), max(a.y, b.y), max(a.z, b.z)); # 715 "sdk/cutil_math.h" } # 718 "sdk/cutil_math.h" inline uint3 operator+(uint3 a, uint3 b) # 719 "sdk/cutil_math.h" { # 720 "sdk/cutil_math.h" return make_uint3((a.x) + (b.x), (a.y) + (b.y), (a.z) + (b.z)); # 721 "sdk/cutil_math.h" } # 722 "sdk/cutil_math.h" inline void operator+=(uint3 &a, uint3 b) # 723 "sdk/cutil_math.h" { # 724 "sdk/cutil_math.h" (a.x) += (b.x); (a.y) += (b.y); (a.z) += (b.z); # 725 "sdk/cutil_math.h" } # 728 "sdk/cutil_math.h" inline uint3 operator-(uint3 a, uint3 b) # 729 "sdk/cutil_math.h" { # 730 "sdk/cutil_math.h" return make_uint3((a.x) - (b.x), (a.y) - (b.y), (a.z) - (b.z)); # 731 "sdk/cutil_math.h" } # 733 "sdk/cutil_math.h" inline void operator-=(uint3 &a, uint3 b) # 734 "sdk/cutil_math.h" { # 735 "sdk/cutil_math.h" (a.x) -= (b.x); (a.y) -= (b.y); (a.z) -= (b.z); # 736 "sdk/cutil_math.h" } # 739 "sdk/cutil_math.h" inline uint3 operator*(uint3 a, uint3 b) # 740 "sdk/cutil_math.h" { # 741 "sdk/cutil_math.h" return make_uint3((a.x) * (b.x), (a.y) * (b.y), (a.z) * (b.z)); # 742 "sdk/cutil_math.h" } # 743 "sdk/cutil_math.h" inline uint3 operator*(uint3 a, uint s) # 744 "sdk/cutil_math.h" { # 745 "sdk/cutil_math.h" return make_uint3((a.x) * s, (a.y) * s, (a.z) * s); # 746 "sdk/cutil_math.h" } # 747 "sdk/cutil_math.h" inline uint3 operator*(uint s, uint3 a) # 748 "sdk/cutil_math.h" { # 749 "sdk/cutil_math.h" return make_uint3((a.x) * s, (a.y) * s, (a.z) * s); # 750 "sdk/cutil_math.h" } # 751 "sdk/cutil_math.h" inline void operator*=(uint3 &a, uint s) # 752 "sdk/cutil_math.h" { # 753 "sdk/cutil_math.h" (a.x) *= s; (a.y) *= s; (a.z) *= s; # 754 "sdk/cutil_math.h" } # 757 "sdk/cutil_math.h" inline uint3 operator/(uint3 a, uint3 b) # 758 "sdk/cutil_math.h" { # 759 "sdk/cutil_math.h" return make_uint3((a.x) / (b.x), (a.y) / (b.y), (a.z) / (b.z)); # 760 "sdk/cutil_math.h" } # 761 "sdk/cutil_math.h" inline uint3 operator/(uint3 a, uint s) # 762 "sdk/cutil_math.h" { # 763 "sdk/cutil_math.h" return make_uint3((a.x) / s, (a.y) / s, (a.z) / s); # 764 "sdk/cutil_math.h" } # 765 "sdk/cutil_math.h" inline uint3 operator/(uint s, uint3 a) # 766 "sdk/cutil_math.h" { # 767 "sdk/cutil_math.h" return make_uint3((a.x) / s, (a.y) / s, (a.z) / s); # 768 "sdk/cutil_math.h" } # 769 "sdk/cutil_math.h" inline void operator/=(uint3 &a, uint s) # 770 "sdk/cutil_math.h" { # 771 "sdk/cutil_math.h" (a.x) /= s; (a.y) /= s; (a.z) /= s; # 772 "sdk/cutil_math.h" } # 775 "sdk/cutil_math.h" inline uint clamp(uint f, uint a, uint b) # 776 "sdk/cutil_math.h" { # 777 "sdk/cutil_math.h" return max(a, min(f, b)); # 778 "sdk/cutil_math.h" } # 780 "sdk/cutil_math.h" inline uint3 clamp(uint3 v, uint a, uint b) # 781 "sdk/cutil_math.h" { # 782 "sdk/cutil_math.h" return make_uint3(clamp(v.x, a, b), clamp(v.y, a, b), clamp(v.z, a, b)); # 783 "sdk/cutil_math.h" } # 785 "sdk/cutil_math.h" inline uint3 clamp(uint3 v, uint3 a, uint3 b) # 786 "sdk/cutil_math.h" { # 787 "sdk/cutil_math.h" return make_uint3(clamp(v.x, a.x, b.x), clamp(v.y, a.y, b.y), clamp(v.z, a.z, b.z)); # 788 "sdk/cutil_math.h" } # 18 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" extern "C" { typedef unsigned uint; } # 20 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" struct SimParams { # 21 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" float4 colliderPos; # 22 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" float colliderRadius; # 24 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" float3 gravity; # 25 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" float globalDamping; # 26 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" float particleRadius; # 28 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" uint3 gridSize; # 29 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" uint numCells; # 30 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" float3 worldOrigin; # 31 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" float3 cellSize; # 33 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" uint numBodies; # 34 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" uint maxParticlesPerCell; # 36 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" float spring; # 37 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" float damping; # 38 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" float shear; # 39 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" float attraction; # 40 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" float boundaryDamping; # 41 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cuh" }; # 45 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" static texture< float4, 1, cudaReadModeElementType> oldPosTex; # 46 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" static texture< float4, 1, cudaReadModeElementType> oldVelTex; # 48 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" static texture< uint2, 1, cudaReadModeElementType> particleHashTex; # 49 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" static texture< unsigned, 1, cudaReadModeElementType> cellStartTex; # 51 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" static texture< unsigned, 1, cudaReadModeElementType> gridCountersTex; # 52 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" static texture< unsigned, 1, cudaReadModeElementType> gridCellsTex; # 55 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" static SimParams params; # 59 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" void integrate(float4 *newPos, float4 *newVel, float4 * # 60 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" oldPos, float4 *oldVel, float # 61 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" deltaTime) ; # 90 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" __attribute__((unused)) int3 calcGridPos(float4 p) # 91 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" {int volatile ___ = 1; # 97 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" exit(___);} # 100 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" __attribute__((unused)) uint calcGridHash(int3 gridPos) # 101 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" {int volatile ___ = 1; # 106 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" exit(___);} # 109 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" __attribute__((unused)) void addParticleToCell(int3 gridPos, uint # 110 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" index, uint * # 111 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" gridCounters, uint * # 112 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" gridCells) # 113 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" {int volatile ___ = 1; # 127 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" exit(___);} # 132 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" void updateGridD(float4 *pos, uint * # 133 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" gridCounters, uint * # 134 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" gridCells) ; # 147 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" void calcHashD(float4 *pos, uint2 * # 148 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" particleHash) ; # 164 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" void reorderDataAndFindCellStartD(uint2 *particleHash, float4 * # 165 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" oldPos, float4 * # 166 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" oldVel, float4 * # 167 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" sortedPos, float4 * # 168 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" sortedVel, uint * # 169 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" cellStart) ; # 205 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" __attribute__((unused)) float3 collideSpheres(float4 posA, float4 posB, float4 # 206 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" velA, float4 velB, float # 207 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" radiusA, float radiusB, float # 208 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" attraction) # 209 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" {int volatile ___ = 1; # 243 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" exit(___);} # 249 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" __attribute__((unused)) float3 collideCell(int3 gridPos, uint # 250 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" index, float4 # 251 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" pos, float4 # 252 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" vel, float4 * # 253 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" oldPos, float4 * # 254 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" oldVel, uint * # 255 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" gridCounters, uint * # 256 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" gridCells) # 257 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" {int volatile ___ = 1; # 286 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" exit(___);} # 291 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" __attribute__((unused)) float3 collideCell2(int3 gridPos, uint # 292 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" index, float4 # 293 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" pos, float4 # 294 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" vel, float4 * # 295 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" oldPos, float4 * # 296 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" oldVel, uint2 * # 297 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" particleHash, uint * # 298 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" cellStart) # 299 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" {int volatile ___ = 1; # 332 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" exit(___);} # 336 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" void collideD(float4 *newPos, float4 *newVel, float4 * # 337 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" oldPos, float4 *oldVel, uint2 * # 339 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" particleHash, uint * # 340 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" cellStart) ; # 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.stub.c" # 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.stub.c" 1 # 1 "/usr/local/cuda/bin/../include/crt/host_runtime.h" 1 # 91 "/usr/local/cuda/bin/../include/crt/host_runtime.h" extern "C" { extern void** __cudaRegisterFatBinary( void *fatCubin ); extern void __cudaUnregisterFatBinary( void **fatCubinHandle ); extern void __cudaRegisterVar( void **fatCubinHandle, char *hostVar, char *deviceAddress, const char *deviceName, int ext, int size, int constant, int global ); extern void __cudaRegisterTexture( void **fatCubinHandle, const struct textureReference *hostVar, const void **deviceAddress, const char *deviceName, int dim, int norm, int ext ); extern void __cudaRegisterSurface( void **fatCubinHandle, const struct surfaceReference *hostVar, const void **deviceAddress, const char *deviceName, int dim, int ext ); extern void __cudaRegisterFunction( void **fatCubinHandle, const char *hostFun, char *deviceFun, const char *deviceName, int thread_limit, uint3 *tid, uint3 *bid, dim3 *bDim, dim3 *gDim, int *wSize ); extern int atexit(void(*)(void)) throw(); } static void **__cudaFatCubinHandle; static void __cudaUnregisterBinaryUtil(void) { __cudaUnregisterFatBinary(__cudaFatCubinHandle); } # 1 "/usr/local/cuda/bin/../include/common_functions.h" 1 # 90 "/usr/local/cuda/bin/../include/common_functions.h" # 1 "/usr/local/cuda/bin/../include/math_functions.h" 1 3 # 948 "/usr/local/cuda/bin/../include/math_functions.h" 3 # 1 "/usr/local/cuda/bin/../include/math_constants.h" 1 3 # 949 "/usr/local/cuda/bin/../include/math_functions.h" 2 3 # 2973 "/usr/local/cuda/bin/../include/math_functions.h" 3 # 1 "/usr/local/cuda/bin/../include/crt/func_macro.h" 1 3 # 2974 "/usr/local/cuda/bin/../include/math_functions.h" 2 3 # 4683 "/usr/local/cuda/bin/../include/math_functions.h" 3 extern __attribute__((__weak__)) double rsqrt(double a); double rsqrt(double a) { return 1.0 / sqrt(a); } extern __attribute__((__weak__)) double rcbrt(double a); double rcbrt(double a) { double s, t; if (__isnan(a)) { return a + a; } if (a == 0.0 || __isinf(a)) { return 1.0 / a; } s = fabs(a); t = exp2(-3.3333333333333333e-1 * log2(s)); t = ((t*t) * (-s*t) + 1.0) * (3.3333333333333333e-1*t) + t; if (__signbit(a)) { t = -t; } return t; } extern __attribute__((__weak__)) double sinpi(double a); double sinpi(double a) { int n; if (__isnan(a)) { return a + a; } if (a == 0.0 || __isinf(a)) { return sin (a); } if (a == floor(a)) { return ((a / 1.0e308) / 1.0e308) / 1.0e308; } a = remquo (a, 0.5, &n); a = a * 3.1415926535897931e+0; if (n & 1) { a = cos (a); } else { a = sin (a); } if (n & 2) { a = -a; } return a; } extern __attribute__((__weak__)) double erfinv(double a); double erfinv(double a) { double p, q, t, fa; volatile union { double d; unsigned long long int l; } cvt; fa = fabs(a); if (fa >= 1.0) { cvt.l = 0xfff8000000000000ull; t = cvt.d; if (fa == 1.0) { t = a * exp(1000.0); } } else if (fa >= 0.9375) { t = log1p(-fa); t = 1.0 / sqrt(-t); p = 2.7834010353747001060e-3; p = p * t + 8.6030097526280260580e-1; p = p * t + 2.1371214997265515515e+0; p = p * t + 3.1598519601132090206e+0; p = p * t + 3.5780402569085996758e+0; p = p * t + 1.5335297523989890804e+0; p = p * t + 3.4839207139657522572e-1; p = p * t + 5.3644861147153648366e-2; p = p * t + 4.3836709877126095665e-3; p = p * t + 1.3858518113496718808e-4; p = p * t + 1.1738352509991666680e-6; q = t + 2.2859981272422905412e+0; q = q * t + 4.3859045256449554654e+0; q = q * t + 4.6632960348736635331e+0; q = q * t + 3.9846608184671757296e+0; q = q * t + 1.6068377709719017609e+0; q = q * t + 3.5609087305900265560e-1; q = q * t + 5.3963550303200816744e-2; q = q * t + 4.3873424022706935023e-3; q = q * t + 1.3858762165532246059e-4; q = q * t + 1.1738313872397777529e-6; t = p / (q * t); if (a < 0.0) t = -t; } else if (fa >= 0.75) { t = a * a - .87890625; p = .21489185007307062000e+0; p = p * t - .64200071507209448655e+1; p = p * t + .29631331505876308123e+2; p = p * t - .47644367129787181803e+2; p = p * t + .34810057749357500873e+2; p = p * t - .12954198980646771502e+2; p = p * t + .25349389220714893917e+1; p = p * t - .24758242362823355486e+0; p = p * t + .94897362808681080020e-2; q = t - .12831383833953226499e+2; q = q * t + .41409991778428888716e+2; q = q * t - .53715373448862143349e+2; q = q * t + .33880176779595142685e+2; q = q * t - .11315360624238054876e+2; q = q * t + .20369295047216351160e+1; q = q * t - .18611650627372178511e+0; q = q * t + .67544512778850945940e-2; p = p / q; t = a * p; } else { t = a * a - .5625; p = - .23886240104308755900e+2; p = p * t + .45560204272689128170e+3; p = p * t - .22977467176607144887e+4; p = p * t + .46631433533434331287e+4; p = p * t - .43799652308386926161e+4; p = p * t + .19007153590528134753e+4; p = p * t - .30786872642313695280e+3; q = t - .83288327901936570000e+2; q = q * t + .92741319160935318800e+3; q = q * t - .35088976383877264098e+4; q = q * t + .59039348134843665626e+4; q = q * t - .48481635430048872102e+4; q = q * t + .18997769186453057810e+4; q = q * t - .28386514725366621129e+3; p = p / q; t = a * p; } return t; } extern __attribute__((__weak__)) double erfcinv(double a); double erfcinv(double a) { double t; volatile union { double d; unsigned long long int l; } cvt; if (__isnan(a)) { return a + a; } if (a <= 0.0) { cvt.l = 0xfff8000000000000ull; t = cvt.d; if (a == 0.0) { t = (1.0 - a) * exp(1000.0); } } else if (a >= 0.0625) { t = erfinv (1.0 - a); } else if (a >= 1e-100) { double p, q; t = log(a); t = 1.0 / sqrt(-t); p = 2.7834010353747001060e-3; p = p * t + 8.6030097526280260580e-1; p = p * t + 2.1371214997265515515e+0; p = p * t + 3.1598519601132090206e+0; p = p * t + 3.5780402569085996758e+0; p = p * t + 1.5335297523989890804e+0; p = p * t + 3.4839207139657522572e-1; p = p * t + 5.3644861147153648366e-2; p = p * t + 4.3836709877126095665e-3; p = p * t + 1.3858518113496718808e-4; p = p * t + 1.1738352509991666680e-6; q = t + 2.2859981272422905412e+0; q = q * t + 4.3859045256449554654e+0; q = q * t + 4.6632960348736635331e+0; q = q * t + 3.9846608184671757296e+0; q = q * t + 1.6068377709719017609e+0; q = q * t + 3.5609087305900265560e-1; q = q * t + 5.3963550303200816744e-2; q = q * t + 4.3873424022706935023e-3; q = q * t + 1.3858762165532246059e-4; q = q * t + 1.1738313872397777529e-6; t = p / (q * t); } else { double p, q; t = log(a); t = 1.0 / sqrt(-t); p = 6.9952990607058154858e-1; p = p * t + 1.9507620287580568829e+0; p = p * t + 8.2810030904462690216e-1; p = p * t + 1.1279046353630280005e-1; p = p * t + 6.0537914739162189689e-3; p = p * t + 1.3714329569665128933e-4; p = p * t + 1.2964481560643197452e-6; p = p * t + 4.6156006321345332510e-9; p = p * t + 4.5344689563209398450e-12; q = t + 1.5771922386662040546e+0; q = q * t + 2.1238242087454993542e+0; q = q * t + 8.4001814918178042919e-1; q = q * t + 1.1311889334355782065e-1; q = q * t + 6.0574830550097140404e-3; q = q * t + 1.3715891988350205065e-4; q = q * t + 1.2964671850944981713e-6; q = q * t + 4.6156017600933592558e-9; q = q * t + 4.5344687377088206783e-12; t = p / (q * t); } return t; } extern __attribute__((__weak__)) float rsqrtf(float a); float rsqrtf(float a) { return (float)rsqrt((double)a); } extern __attribute__((__weak__)) float rcbrtf(float a); float rcbrtf(float a) { return (float)rcbrt((double)a); } extern __attribute__((__weak__)) float sinpif(float a); float sinpif(float a) { return (float)sinpi((double)a); } extern __attribute__((__weak__)) float erfinvf(float a); float erfinvf(float a) { return (float)erfinv((double)a); } extern __attribute__((__weak__)) float erfcinvf(float a); float erfcinvf(float a) { return (float)erfcinv((double)a); } extern __attribute__((__weak__)) int min(int a, int b); int min(int a, int b) { return a < b ? a : b; } extern __attribute__((__weak__)) unsigned int umin(unsigned int a, unsigned int b); unsigned int umin(unsigned int a, unsigned int b) { return a < b ? a : b; } extern __attribute__((__weak__)) long long int llmin(long long int a, long long int b); long long int llmin(long long int a, long long int b) { return a < b ? a : b; } extern __attribute__((__weak__)) unsigned long long int ullmin(unsigned long long int a, unsigned long long int b); unsigned long long int ullmin(unsigned long long int a, unsigned long long int b) { return a < b ? a : b; } extern __attribute__((__weak__)) int max(int a, int b); int max(int a, int b) { return a > b ? a : b; } extern __attribute__((__weak__)) unsigned int umax(unsigned int a, unsigned int b); unsigned int umax(unsigned int a, unsigned int b) { return a > b ? a : b; } extern __attribute__((__weak__)) long long int llmax(long long int a, long long int b); long long int llmax(long long int a, long long int b) { return a > b ? a : b; } extern __attribute__((__weak__)) unsigned long long int ullmax(unsigned long long int a, unsigned long long int b); unsigned long long int ullmax(unsigned long long int a, unsigned long long int b) { return a > b ? a : b; } # 5006 "/usr/local/cuda/bin/../include/math_functions.h" 3 # 1 "/usr/local/cuda/bin/../include/math_functions_dbl_ptx3.h" 1 3 # 5007 "/usr/local/cuda/bin/../include/math_functions.h" 2 3 # 91 "/usr/local/cuda/bin/../include/common_functions.h" 2 # 164 "/usr/local/cuda/bin/../include/crt/host_runtime.h" 2 #pragma pack() # 2 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.stub.c" 2 # 1 "/tmp/tmpxft_00000aee_00000000-3_particles_kernel.fatbin.c" 1 # 1 "/usr/local/cuda/bin/../include/__cudaFatFormat.h" 1 # 83 "/usr/local/cuda/bin/../include/__cudaFatFormat.h" extern "C" { # 97 "/usr/local/cuda/bin/../include/__cudaFatFormat.h" typedef struct { char* gpuProfileName; char* cubin; } __cudaFatCubinEntry; # 113 "/usr/local/cuda/bin/../include/__cudaFatFormat.h" typedef struct { char* gpuProfileName; char* ptx; } __cudaFatPtxEntry; # 125 "/usr/local/cuda/bin/../include/__cudaFatFormat.h" typedef struct __cudaFatDebugEntryRec { char* gpuProfileName; char* debug; struct __cudaFatDebugEntryRec *next; unsigned int size; } __cudaFatDebugEntry; typedef struct __cudaFatElfEntryRec { char* gpuProfileName; char* elf; struct __cudaFatElfEntryRec *next; unsigned int size; } __cudaFatElfEntry; typedef enum { __cudaFatDontSearchFlag = (1 << 0), __cudaFatDontCacheFlag = (1 << 1), __cudaFatSassDebugFlag = (1 << 2) } __cudaFatCudaBinaryFlag; # 152 "/usr/local/cuda/bin/../include/__cudaFatFormat.h" typedef struct { char* name; } __cudaFatSymbol; # 166 "/usr/local/cuda/bin/../include/__cudaFatFormat.h" typedef struct __cudaFatCudaBinaryRec { unsigned long magic; unsigned long version; unsigned long gpuInfoVersion; char* key; char* ident; char* usageMode; __cudaFatPtxEntry *ptx; __cudaFatCubinEntry *cubin; __cudaFatDebugEntry *debug; void* debugInfo; unsigned int flags; __cudaFatSymbol *exported; __cudaFatSymbol *imported; struct __cudaFatCudaBinaryRec *dependends; unsigned int characteristic; __cudaFatElfEntry *elf; } __cudaFatCudaBinary; # 203 "/usr/local/cuda/bin/../include/__cudaFatFormat.h" typedef enum { __cudaFatAvoidPTX, __cudaFatPreferBestCode, __cudaFatForcePTX } __cudaFatCompilationPolicy; # 227 "/usr/local/cuda/bin/../include/__cudaFatFormat.h" void fatGetCubinForGpuWithPolicy( __cudaFatCudaBinary *binary, __cudaFatCompilationPolicy policy, char* gpuName, char* *cubin, char* *dbgInfoFile ); # 240 "/usr/local/cuda/bin/../include/__cudaFatFormat.h" unsigned char fatCheckJitForGpuWithPolicy( __cudaFatCudaBinary *binary, __cudaFatCompilationPolicy policy, char* gpuName, char* *ptx ); # 250 "/usr/local/cuda/bin/../include/__cudaFatFormat.h" void fatFreeCubin( char* cubin, char* dbgInfoFile ); void __cudaFatFreePTX( char* ptx ); } # 2 "/tmp/tmpxft_00000aee_00000000-3_particles_kernel.fatbin.c" 2 asm( ".section .rodata\n" ".align 32\n" "__deviceText_$sm_21$:\n" ".quad 0x33010102464c457f,0x0000000000000004,0x0000000100be0002,0x0000000000000000\n" ".quad 0x0000000000002f20,0x0000000000000040,0x0038004000140115,0x0001001700400008\n" ".quad 0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0000000300000001,0x0000000000000000,0x0000000000000000,0x0000000000000600\n" ".quad 0x0000000000000384,0x0000000000000000,0x0000000000000004,0x0000000000000000\n" ".quad 0x000000030000000b,0x0000000000000000,0x0000000000000000,0x0000000000000984\n" ".quad 0x0000000000000155,0x0000000000000000,0x0000000000000001,0x0000000000000000\n" ".quad 0x0000000200000013,0x0000000000000000,0x0000000000000000,0x0000000000000ad9\n" ".quad 0x00000000000003c0,0x0000001900000002,0x0000000000000001,0x0000000000000018\n" ".quad 0x00000001000001af,0x0000000000000006,0x0000000000000000,0x0000000000000e99\n" ".quad 0x00000000000001a8,0x0f00000f00000003,0x0000000000000004,0x0000000000000000\n" ".quad 0x000000010000031f,0x0000000000000002,0x0000000000000000,0x0000000000001041\n" ".quad 0x0000000000000044,0x0000000400000000,0x0000000000000004,0x0000000000000000\n" ".quad 0x00000001000001d4,0x0000000000000002,0x0000000000000000,0x0000000000001085\n" ".quad 0x0000000000000084,0x0000000400000000,0x0000000000000001,0x0000000000000000\n" ".quad 0x0000000100000166,0x0000000000000006,0x0000000000000000,0x0000000000001109\n" ".quad 0x0000000000000550,0x1400000d00000003,0x0000000000000004,0x0000000000000000\n" ".quad 0x00000001000001fc,0x0000000000000002,0x0000000000000000,0x0000000000001659\n" ".quad 0x0000000000000038,0x0000000700000000,0x0000000000000004,0x0000000000000000\n" ".quad 0x0000000100000189,0x0000000000000002,0x0000000000000000,0x0000000000001691\n" ".quad 0x000000000000005c,0x0000000700000000,0x0000000000000001,0x0000000000000000\n" ".quad 0x000000010000011f,0x0000000000000006,0x0000000000000000,0x00000000000016ed\n" ".quad 0x0000000000000518,0x1400000b00000003,0x0000000000000004,0x0000000000000000\n" ".quad 0x000000010000034c,0x0000000000000002,0x0000000000000000,0x0000000000001c05\n" ".quad 0x0000000000000030,0x0000000a00000000,0x0000000000000004,0x0000000000000000\n" ".quad 0x0000000100000141,0x0000000000000002,0x0000000000000000,0x0000000000001c35\n" ".quad 0x0000000000000048,0x0000000a00000000,0x0000000000000001,0x0000000000000000\n" ".quad 0x000000010000009a,0x0000000000100006,0x0000000000000000,0x0000000000001c7d\n" ".quad 0x0000000000000138,0x0e00000900000003,0x0000000000000004,0x0000000000000000\n" ".quad 0x00000001000002d6,0x0000000000000002,0x0000000000000000,0x0000000000001db5\n" ".quad 0x0000000000000050,0x0000000d00000000,0x0000000000000004,0x0000000000000000\n" ".quad 0x00000001000000db,0x0000000000000002,0x0000000000000000,0x0000000000001e05\n" ".quad 0x00000000000000b0,0x0000000d00000000,0x0000000000000001,0x0000000000000000\n" ".quad 0x0000000800000290,0x0000000000000003,0x0000000000000000,0x0000000000001eb5\n" ".quad 0x0000000000000404,0x0000000d00000000,0x0000000000000004,0x0000000000000000\n" ".quad 0x0000000100000036,0x0000000000000006,0x0000000000000000,0x0000000000001eb5\n" ".quad 0x0000000000000d68,0x3a00000600000003,0x0000000000000004,0x0000000000000000\n" ".quad 0x000000010000025c,0x0000000000000002,0x0000000000000000,0x0000000000002c1d\n" ".quad 0x0000000000000050,0x0000001100000000,0x0000000000000004,0x0000000000000000\n" ".quad 0x0000000100000227,0x0000000000000002,0x0000000000000000,0x0000000000002c6d\n" ".quad 0x0000000000000010,0x0000001100000000,0x0000000000000004,0x0000000000000000\n" ".quad 0x0000000100000062,0x0000000000000002,0x0000000000000000,0x0000000000002c7d\n" ".quad 0x00000000000000c8,0x0000001100000000,0x0000000000000001,0x0000000000000000\n" ".quad 0x0000000100000376,0x0000000000000002,0x0000000000000000,0x0000000000002d45\n" ".quad 0x0000000000000070,0x0000000000000000,0x0000000000000004,0x0000000000000000\n" ".quad 0x0000000100000091,0x0000000000000002,0x0000000000000000,0x0000000000002db5\n" ".quad 0x0000000000000168,0x0000000000000000,0x0000000000000001,0x0000000000000000\n" ".quad 0x7472747368732e00,0x747274732e006261,0x746d79732e006261,0x672e766e2e006261\n" ".quad 0x6e692e6c61626f6c,0x672e766e2e007469,0x742e006c61626f6c,0x63385a5f2e747865\n" ".quad 0x50446564696c6c6f,0x533474616f6c6636,0x5f30535f30535f30,0x5032746e69753550\n" ".quad 0x6e692e766e2e006a,0x6f63385a5f2e6f66,0x3650446564696c6c,0x30533474616f6c66\n" ".quad 0x505f30535f30535f,0x6a5032746e697535,0x666e692e766e2e00,0x2e747865742e006f\n" ".quad 0x726f657238325a5f,0x4161746144726564,0x6543646e6946646e,0x4474726174536c6c\n" ".quad 0x5032746e69753550,0x533474616f6c6636,0x5f32535f32535f32,0x692e766e2e006a50\n" ".quad 0x38325a5f2e6f666e,0x44726564726f6572,0x6946646e41617461,0x74536c6c6543646e\n" ".quad 0x6975355044747261,0x6f6c66365032746e,0x32535f3253347461,0x2e006a505f32535f\n" ".quad 0x395a5f2e74786574,0x68736148636c6163,0x74616f6c66365044,0x32746e6975355034\n" ".quad 0x666e692e766e2e00,0x6c6163395a5f2e6f,0x3650446873614863,0x35503474616f6c66\n" ".quad 0x742e0032746e6975,0x31315a5f2e747865,0x7247657461647075,0x6f6c663650446469\n" ".quad 0x5f31536a50347461,0x666e692e766e2e00,0x707531315a5f2e6f,0x6469724765746164\n" ".quad 0x74616f6c66365044,0x2e005f31536a5034,0x395a5f2e74786574,0x7461726765746e69\n" ".quad 0x74616f6c66365065,0x535f30535f305334,0x2e766e2e00665f30,0x395a5f2e6f666e69\n" ".quad 0x7461726765746e69,0x74616f6c66365065,0x535f30535f305334,0x2e766e2e00665f30\n" ".quad 0x746e6174736e6f63,0x707531315a5f2e30,0x6469724765746164,0x74616f6c66365044\n" ".quad 0x2e005f31536a5034,0x74736e6f632e766e,0x5a5f2e3631746e61,0x6564696c6c6f6338\n" ".quad 0x74616f6c66365044,0x535f30535f305334,0x746e697535505f30,0x2e766e2e006a5032\n" ".quad 0x746e6174736e6f63,0x6c6f63385a5f2e30,0x663650446564696c,0x5f30533474616f6c\n" ".quad 0x35505f30535f3053,0x006a5032746e6975,0x726168732e766e2e,0x7238325a5f2e6465\n" ".quad 0x6144726564726f65,0x6e6946646e416174,0x6174536c6c654364,0x6e69753550447472\n" ".quad 0x616f6c6636503274,0x5f32535f32533474,0x6e2e006a505f3253,0x6174736e6f632e76\n" ".quad 0x38325a5f2e30746e,0x44726564726f6572,0x6946646e41617461,0x74536c6c6543646e\n" ".quad 0x6975355044747261,0x6f6c66365032746e,0x32535f3253347461,0x2e006a505f32535f\n" ".quad 0x74736e6f632e766e,0x395a5f2e30746e61,0x7461726765746e69,0x74616f6c66365065\n" ".quad 0x535f30535f305334,0x2e766e2e00665f30,0x746e6174736e6f63,0x6c6163395a5f2e30\n" ".quad 0x3650446873614863,0x35503474616f6c66,0x6e2e0032746e6975,0x6174736e6f632e76\n" ".quad 0x385a5f000032746e,0x446564696c6c6f63,0x3474616f6c663650,0x30535f30535f3053\n" ".quad 0x32746e697535505f,0x6475635f5f006a50,0x645f30326d735f61,0x33665f6e725f7669\n" ".quad 0x616475635f5f0032,0x63725f30326d735f,0x3233665f6e725f70,0x5f616475635f5f00\n" ".quad 0x7271735f30326d73,0x3233665f6e725f74,0x6f657238325a5f00,0x6174614472656472\n" ".quad 0x43646e6946646e41,0x74726174536c6c65,0x32746e6975355044,0x3474616f6c663650\n" ".quad 0x32535f32535f3253,0x63395a5f006a505f,0x4468736148636c61,0x3474616f6c663650\n" ".quad 0x0032746e69753550,0x6164707531315a5f,0x5044646972476574,0x503474616f6c6636\n" ".quad 0x395a5f005f31536a,0x7461726765746e69,0x74616f6c66365065,0x535f30535f305334\n" ".quad 0x50646c6f00665f30,0x6c6f00786554736f,0x007865546c655664,0x6e756f4364697267\n" ".quad 0x0078655473726574,0x6c6c654364697267,0x7261700078655473,0x736148656c636974\n" ".quad 0x6c65630078655468,0x655474726174536c,0x736d617261700078,0x0000000000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x0100030000000000,0x0000000000000000\n" ".quad 0x0000000000000000,0x0200030000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0300030000000000,0x0000000000000000,0x0000000000000000,0x0000030000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x0000030000000000,0x0000000000000000\n" ".quad 0x0000000000000000,0x1100030000000000,0x0000000000000000,0x00000000000d6800\n" ".quad 0x1400030000000000,0x0000000000000000,0x0000000000000000,0x1600030000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x0d00030000000000,0x0000000000000000\n" ".quad 0x0000000000013800,0x0f00030000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0a00030000000000,0x0000000000000000,0x0000000000051800,0x0c00030000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x0700030000000000,0x0000000000000000\n" ".quad 0x0000000000055000,0x0900030000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0400030000000000,0x0000000000000000,0x000000000001a800,0x0600030000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x0800030000000000,0x0000000000000000\n" ".quad 0x0000000000000000,0x1300030000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x1200030000000000,0x0000000000000000,0x0000000000000000,0x1000030000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x0e00030000000000,0x0000000000000000\n" ".quad 0x0000000000000000,0x0500030000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0b00030000000000,0x0000000000000000,0x0000000000000000,0x1500030000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x1110120000000100,0x0000000000000000\n" ".quad 0x000000000006d000,0x1100120000002700,0x000000000001e000,0x0000000000037000\n" ".quad 0x1100120000003e00,0x00000000000a4000,0x0000000000023000,0x1100120000005500\n" ".quad 0x00000000000c7000,0x000000000000f800,0x0d10120000006d00,0x0000000000000000\n" ".quad 0x0000000000013800,0x0a1012000000a800,0x0000000000000000,0x000000000001a800\n" ".quad 0x071012000000c400,0x0000000000000000,0x000000000001e000,0x041012000000e100\n" ".quad 0x0000000000000000,0x000000000001a800,0x00001a0000010000,0x0000000000000000\n" ".quad 0x0000000000000000,0x00001a0000010a00,0x0000000000000000,0x0000000000000000\n" ".quad 0x00001a0000011400,0x0000000000000000,0x0000000000000000,0x00001a0000012400\n" ".quad 0x0000000000000000,0x0000000000000000,0x00001a0000013100,0x0000000000000000\n" ".quad 0x0000000000000000,0x00001a0000014100,0x0000000000000000,0x0000000000000000\n" ".quad 0x1500110000014e00,0x0000000000000000,0x0000000000007000,0x00440400005de400\n" ".quad 0x00000094001c0428,0x00400020009de42c,0x0000008400dc0428,0x00c06000001c232c\n" ".quad 0x00c06000209c2370,0x06000008001ca370,0x00400100039de420,0x00c00010001e0328\n" ".quad 0x014000e0009c0360,0x004000f3f0dc4348,0x014000c0031c0348,0x00000000211cc548\n" ".quad 0x004000d3f35c4384,0x01400080009c0348,0x00000000c21cc548,0x00480090031de484\n" ".quad 0x00cfe000c35e0028,0x08480050e0dc0050,0x0a480060e15c0030,0x0c480070e19c0030\n" ".quad 0x00480080311c0030,0x00480080515c0058,0x00480080619c0058,0x10400100421c0058\n" ".quad 0x12400100525c0030,0x14400100629c0030,0x8e000020d1dc0030,0x0048009000dde420\n" ".quad 0x8e000024d5dc0028,0x8e000028d9dc0020,0x000000340201e420,0x00efe000339c0028\n" ".quad 0x000000340249e450,0x000000340291e428,0x004801a041000028,0x00400093f0dc4358\n" ".quad 0x0e000020e3dc0048,0x0e000024e7dc0022,0x0e000028e1dc0022,0x014000a0031c0322\n" ".quad 0x000000380205e448,0x004801a051480028,0x004801a061900058,0x00000038024de458\n" ".quad 0x000000380281e428,0x004000b3f35c4328,0x004801a041040048,0x004801a0514c0058\n" ".quad 0x004801a061800058,0x00000000221cc558,0x00000000c11cc594,0x00000000001de794\n" ".quad 0x0000000000000080,0x0000000000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x140c040000000000,0x0000080000000000,0x0000180000001000,0x080a040000002000\n" ".quad 0x2400200000001600,0x0c17040024190300,0x200004ffffffff00,0x0c17040011f00000\n" ".quad 0x180003ffffffff00,0x0c17040021f00000,0x100002ffffffff00,0x0c17040021f00000\n" ".quad 0x080001ffffffff00,0x0c17040021f00000,0x000000ffffffff00,0x080d040021f00000\n" ".quad 0x0000010002001800,0x00440400005de400,0x00000094001c0428,0x00400020009de42c\n" ".quad 0x0000008400dc0428,0x00c06000001c232c,0x00c06000209c2370,0x00400080011de470\n" ".quad 0x06000008009ca328,0x09c00040219c0320,0x00480130015de420,0x00400093f1dc4328\n" ".quad 0x00000000641cc548,0x00480101211d0084,0x000005c001000750,0x004800c000dde450\n" ".quad 0x02000011201c8428,0x00fffffc30dc0310,0x06000001201c8448,0x004800b0011de414\n" ".quad 0x0e00000c001c0328,0x00c0600040dc2308,0x00c06000001c2370,0x004800a0011de470\n" ".quad 0x0000000c001ca328,0x00c0600040dc2350,0x00c06000001c2370,0x00480120015de470\n" ".quad 0x0000000c00dca328,0x004800f1111d0050,0x000003c001000750,0x004800b0015de450\n" ".quad 0x02000011201c8428,0x00fffffc511c0310,0x06000001201c8448,0x004800a0015de414\n" ".quad 0x0e000010001c0328,0x00c06000519c2308,0x00c06000001c2370,0x00480110015de470\n" ".quad 0x0600001800dca328,0x004800e1011d0020,0x0000024001000750,0x02000011201c8450\n" ".quad 0xfffffffc019de210,0x06000001201c841b,0x004800a0611c0314,0x0e000010001c0348\n" ".quad 0x0000001001dde208,0x00000000301c0318,0x0f8000a0011c0348,0x0000000400dde220\n" ".quad 0x004000b3f15c4318,0x7e18000040dc0548,0x00480150611c0354,0x0e00001030dc0348\n" ".quad 0x06480150001c0308,0x0f8000c0011c0320,0x004000d3f15c4320,0x00000000409c8548\n" ".quad 0x00000000001de794,0x00c00004401c0380,0x00c00004519c0360,0x00c00060001c0360\n" ".quad 0x00c00060619c0358,0x00fffffc001c0358,0x00fffffc619c0348,0x0ec003f401dc0348\n" ".quad 0x20c003f461dc031a,0x000005200021e71a,0x8edfe00041dc8040,0x8000001121dc4429\n" ".quad 0x000000600021e710,0x8edfe00051dc8040,0x80000015221c4429,0x000000400001e710\n" ".quad 0x00000014411c2040,0x00000b80001de750,0x00c00004425c0340,0x00c00004529c0360\n" ".quad 0x0e0000fc93dc0360,0x0e0000fca5dc0319,0x0e00000811dc0419,0x000000800001e70c\n" ".quad 0x0edfe00077dc0040,0x0edfe00081dc0029,0x00000080002de729,0x000000600021e740\n" ".quad 0xff000000001de240,0x00000014011c001b,0x000009e0001de7c8,0x0e00004401dc0440\n" ".quad 0x000000600021e70c,0x00000010501c8340,0x00000000011c0268,0x00000940001de73a\n" ".quad 0x0e00004831dc0440,0x000000800021e70c,0x00000010501c8340,0x00000000001c0268\n" ".quad 0xfe000000011c423a,0x00000880001de739,0x0e0000fc01dc2340,0x0e0000fc63dc231b\n" ".quad 0xffffff0001e1e21b,0x7ed7e0004120001b,0x000000fc01c1e430,0x000000800005e728\n" ".quad 0x7ed7e000515c0040,0x00c0010071dc0330,0x00000020001de748,0x000000fc01dde440\n" ".quad 0x00fffe08621c0328,0x00000014825ee348,0x00fffe08021c0341,0x00000010915c0048\n" ".quad 0x00000010811ee3c8,0x00000018001d0341,0x7e000014421c0048,0x08000020929e0030\n" ".quad 0x10000014a21c0030,0x08000020925e0030,0x10000014911c0030,0x00c00004429c0330\n" ".quad 0x00c00060a29c0360,0x00000028001c0358,0x00000000719c0348,0x00fffffc601c0348\n" ".quad 0x0ec003f401dc0348,0x000000600001e71a,0x00000028601d0340,0x00000010011ee348\n" ".quad 0x000004a0001de740,0x8ec003f861dc2340,0x000000600001e719,0x00000000401c0240\n" ".quad 0xfe000000011c423a,0x00000400001de739,0x0e0000fc61dc2340,0x000003c00001e71a\n" ".quad 0x0effffa061dc2340,0x000000400001e71b,0x00000000411c0240,0x00000340001de73a\n" ".quad 0x10000014929c0040,0x9000001491dc0031,0x90000014901c0030,0x00000019221f8431\n" ".quad 0x8e00001ca15c001c,0x01fffffc01dc021e,0x0e0000fc81dc2338,0x00000000401c0219\n" ".quad 0x00000019221f843a,0x00000015211f841c,0x0200000071dc421c,0x000000a00081e738\n" ".quad 0x00c0008061600340,0x0000001471600348,0x0ac00007f1600360,0x0000002071e00331\n" ".quad 0x0000001441204358,0x00c00078715c0368,0x00c0007c519c0360,0x00c00004715c0358\n" ".quad 0x00000018411c4368,0x00000010511c0368,0x00c00004715c0368,0x8e0000fc41dc0358\n" ".quad 0x00c000045140031a,0x00000014011c4348,0x00000000001de768,0x0000000000000090\n" ".quad 0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x000000000c0c0400,0x0000100000000800\n" ".quad 0x00001100080a0400,0x1819030018002000,0xffffff000c170400,0x21f00000100002ff\n" ".quad 0xffffff000c170400,0x21f00000080001ff,0xffffff000c170400,0x21f00000000000ff\n" ".quad 0x0e00a800080d0400,0x005de40000000c00,0x001c042800440400,0x009de42c00000094\n" ".quad 0x00dc042800400020,0x001c232c00000084,0x209c237000c06000,0x011de47000c06000\n" ".quad 0x00dca32800400080,0x319c032006000008,0x015de42009c00040,0xf1dc432800480130\n" ".quad 0x641cc54800400093,0x211d008400000000,0x0100075000480101,0x009de450000004e0\n" ".quad 0x201c8428004800c0,0x209c031002000011,0x201c844800fffffc,0x011de41406000001\n" ".quad 0x001c0328004800b0,0x409c23080e000008,0x001c237000c06000,0x011de47000c06000\n" ".quad 0x001ca328004800a0,0x409c235000000008,0x001c237000c06000,0x015de47000c06000\n" ".quad 0x009ca32800480120,0x111d005000000008,0x01000750004800f1,0x015de450000002e0\n" ".quad 0x201c8428004800b0,0x511c031002000011,0x201c844800fffffc,0x015de41406000001\n" ".quad 0x001c0328004800a0,0x519c23080e000010,0x001c237000c06000,0x015de47000c06000\n" ".quad 0x009ca32800480110,0x011d002004000018,0x01000750004800e1,0x201c845000000160\n" ".quad 0x015de41002000011,0x011de428004000a0,0x201c8428004800a0,0x411c031406000001\n" ".quad 0x001c034800fffffc,0x311c03080e000010,0x209c03200bc00020,0xf15c434800000000\n" ".quad 0x409ca548004000b3,0x001de79400000000,0x401c038000000000,0x519c036000c00004\n" ".quad 0x001c036000c00004,0x619c035800c00060,0x001c035800c00060,0x01dc034800fffffc\n" ".quad 0x619c031a0ec003f4,0x61dc034800fffffc,0x0021e71a20c003f4,0x41dc804000000520\n" ".quad 0x21dc44298edfe000,0x0021e71080000011,0x51dc804000000060,0x221c44298edfe000\n" ".quad 0x0001e71080000015,0x411c204000000040,0x001de75000000014,0x425c034000000b80\n" ".quad 0x529c036000c00004,0x93dc036000c00004,0xa5dc03190e0000fc,0x11dc04190e0000fc\n" ".quad 0x0001e70c0e000008,0x77dc004000000080,0x81dc00290edfe000,0x002de7290edfe000\n" ".quad 0x0021e74000000080,0x001de24000000060,0x011c001bff000000,0x001de7c800000014\n" ".quad 0x01dc0440000009e0,0x0021e70c0e000044,0x501c834000000060,0x011c026800000010\n" ".quad 0x001de73a00000000,0x31dc044000000940,0x0021e70c0e000048,0x501c834000000080\n" ".quad 0x001c026800000010,0x011c423a00000000,0x001de739fe000000,0x01dc234000000880\n" ".quad 0x63dc231b0e0000fc,0x01e1e21b0e0000fc,0x4120001bffffff00,0x01c1e4307ed7e000\n" ".quad 0x0005e728000000fc,0x515c004000000080,0x71dc03307ed7e000,0x001de74800c00100\n" ".quad 0x01dde44000000020,0x621c0328000000fc,0x825ee34800fffe08,0x021c034100000014\n" ".quad 0x915c004800fffe08,0x811ee3c800000010,0x001d034100000010,0x421c004800000018\n" ".quad 0x929e00307e000014,0xa21c003008000020,0x925e003010000014,0x911c003008000020\n" ".quad 0x429c033010000014,0xa29c036000c00004,0x001c035800c00060,0x719c034800000028\n" ".quad 0x601c034800000000,0x01dc034800fffffc,0x0001e71a0ec003f4,0x601d034000000060\n" ".quad 0x011ee34800000028,0x001de74000000010,0x61dc2340000004a0,0x0001e7198ec003f8\n" ".quad 0x401c024000000060,0x011c423a00000000,0x001de739fe000000,0x61dc234000000400\n" ".quad 0x0001e71a0e0000fc,0x61dc2340000003c0,0x0001e71b0effffa0,0x411c024000000040\n" ".quad 0x001de73a00000000,0x929c004000000340,0x91dc003110000014,0x901c003090000014\n" ".quad 0x221f843190000014,0xa15c001c00000019,0x01dc021e8e00001c,0x81dc233801fffffc\n" ".quad 0x401c02190e0000fc,0x221f843a00000000,0x211f841c00000019,0x71dc421c00000015\n" ".quad 0x0081e73802000000,0x61600340000000a0,0x7160034800c00080,0xf160036000000014\n" ".quad 0x71e003310ac00007,0x4120435800000020,0x715c036800000014,0x519c036000c00078\n" ".quad 0x715c035800c0007c,0x411c436800c00004,0x511c036800000018,0x715c036800000010\n" ".quad 0x41dc035800c00004,0x5140031a8e0000fc,0x011c434800c00004,0x001de76800000014\n" ".quad 0x0000009000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x080c040000000000,0x0000080000000000\n" ".quad 0x00001700080a0400,0x1019030010002000,0xffffff000c170400,0x21f00000080001ff\n" ".quad 0xffffff000c170400,0x21f00000000000ff,0x0e00a800080d0400,0x005de40000000c00\n" ".quad 0x001c042800440400,0x009de42c00000094,0x011c042800400020,0x001c232c00000084\n" ".quad 0x209c237000c06000,0x00dde47000c06000,0x001ca32800400080,0x41dc032008000008\n" ".quad 0x021c03190e0000fc,0xf25c432007c00020,0x01dc234800400093,0x411e031a000000fc\n" ".quad 0x809ca56000c00008,0x8180a58400000000,0x409c8587ffffffe0,0xf18085c900000010\n" ".quad 0xffdc04c900000003,0x01dc2350ee0000ff,0x000007190e0000fc,0x0001e76000000100\n" ".quad 0x411c854000000060,0x41dc03c100000000,0x0001f4190e000008,0x011de44000000000\n" ".quad 0x211c032800400120,0xf15c432009c00010,0x401c954800400133,0x311c869400000000\n" ".quad 0x321d069003c000fc,0xffdc049003c101fc,0x031de250ee0000ff,0x009c031800000040\n" ".quad 0xf0dc4320198000e0,0x031c0348004000f3,0xf35c432019800100,0x211cc54800400113\n" ".quad 0xc21cc59400000000,0x001de79400000000,0x0000008000000000,0x0000000000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x180c040000000000,0x0000080000000000,0x0000180000001000,0x0000280000002000\n" ".quad 0x0000220008020400,0x0802040000000100,0x0000000000002100,0x00001500080a0400\n" ".quad 0x3019030030002000,0xffffff000c170400,0x21f00000280005ff,0xffffff000c170400\n" ".quad 0x21f00000200004ff,0xffffff000c170400,0x21f00000180003ff,0xffffff000c170400\n" ".quad 0x21f00000100002ff,0xffffff000c170400,0x21f00000080001ff,0xffffff000c170400\n" ".quad 0x21f00000000000ff,0x03002400080d0400,0x005de40000000200,0x001c042800440400\n" ".quad 0x009de42c00000094,0x00dc042800400020,0x001c232c00000084,0x209c237000c06000\n" ".quad 0x0c9ca37000c06000,0x015de42006000008,0x251c862800480110,0x241d069001c000ff\n" ".quad 0x411d009003c101ff,0x01000750004800e1,0x201c8450000019c0,0x015de41002000011\n" ".quad 0x511d002800480120,0x209c8450004800f1,0x0100071406000001,0x201c845000001920\n" ".quad 0x015de41002000011,0x611d002800480130,0x20dc845000480101,0x0100071406000001\n" ".quad 0x201c845000001880,0x25dc031002000011,0x26dc034800fffffc,0x071de24800c00008\n" ".quad 0x075de41bfffffffc,0x079de428000000fc,0x07dde428000000fc,0x209c8428000000fc\n" ".quad 0x0b1de21406000001,0x0000071bfffffffc,0x0b5de46000000f60,0x001de4280000005c\n" ".quad 0xd1dc234000000000,0x000007188e0000fe,0x0001e76000000e00,0x001de44000000240\n" ".quad 0x001c0328004800a0,0xd1dc034800fffffc,0x0001e71a0e000002,0x311c0340000001c0\n" ".quad 0x41dc2348000000b0,0x0001e7188e0000fc,0x015de44000000160,0x515c0328004800b0\n" ".quad 0x41dc034800fffffc,0x0001e71a0e000014,0x219c0340000000e0,0x61dc234800000070\n" ".quad 0x0001e7188e0000fc,0x01dde44000000080,0x71dc0328004800c0,0x61dc034800fffffc\n" ".quad 0x0001e7198e00001c,0x0b9de44000000060,0x0bdde428000000fc,0x0c1df428000000fc\n" ".quad 0x619c0328000000fc,0x021de4080e00001c,0x81dc2328004800b0,0x619c237000c06000\n" ".quad 0x021de47000c06000,0x619ca328004800a0,0x41dc03500000001c,0x815c23080e000014\n" ".quad 0x611c237000c06000,0x719c237000c06000,0x411ca37000c06000,0xd1dc035000000014\n" ".quad 0x601ca3080e000002,0x0cdc032008000014,0x3d1d06480000001c,0x41dc0390004202ff\n" ".quad 0x0001e71a8effffff,0x0b9de44000000060,0x0bdde428000000fc,0x0c1df428000000fc\n" ".quad 0xf1dc0328000000fc,0x0001e7190e480153,0x0c5de44000000800,0x00000728000000d0\n" ".quad 0x0b9de46800000820,0x0bdde428000000fc,0x0c1de428000000fc,0x101d0628000000fc\n" ".quad 0x31dc0390004303ff,0x0001e71a8e000003,0x11dc03a800000000,0x000007190e0000cb\n" ".quad 0x0001f46000000620,0x111c864000000000,0x161d069001c000ff,0x5d5d009001c101ff\n" ".quad 0x4d9d005000000054,0x011de45000000050,0x501c002800480090,0x6e5d0058000000d7\n" ".quad 0x4ddc005000000058,0x601c005000480090,0x911c0030000000db,0x01000730000000e7\n" ".quad 0x71dc005000002500,0x000007220e000013,0x0e1de46000000400,0x0021e72800000010\n" ".quad 0x861d004000000360,0x965d005000000041,0xa69d005000000045,0x0100075000000049\n" ".quad 0x501c005000001b40,0x615c005800000013,0x721d005800000013,0x919c0050000000e3\n" ".quad 0x911c005800000001,0x829c005800000013,0x51dc005800480171,0x92dc00300c000060\n" ".quad 0x819c005800480171,0x425c005800480160,0xa1dc00300e000068,0x521e005800480171\n" ".quad 0x029e003014000018,0x515e003016000018,0x001e003030000024,0x419e003032000024\n" ".quad 0x425e00300e000018,0x511c003034000024,0x015c003010480180,0x919c003014480180\n" ".quad 0x601c00300c480180,0x511c003008480193,0x915c10300a480193,0x015de4300c480193\n" ".quad 0x011de428000000fc,0x001df428000000fc,0x0c1c0028000000fc,0x4bdc0050000000c0\n" ".quad 0x5b9c1050000000bc,0x1c5c0350000000b8,0x401c034800c00007,0x11dc034800480153\n" ".quad 0x0021e71a8e000003,0x001de7a800000000,0x0b9de44003fff8a0,0x0bdde428000000fc\n" ".quad 0x0c1df428000000fc,0x001df428000000fc,0xdb5c034000000000,0x07dc004800c00006\n" ".quad 0xd1dc23500000007f,0xf79c001a8e00006e,0xe75c00500000007a,0x0001e75000000076\n" ".quad 0xcb1c134003fff100,0xc1dc234800c00006,0x0001e71a8ec0000a,0xc71c034003fff040\n" ".quad 0xc1dc234800c00005,0x0001e71a8ec00009,0x509e004003ffefc0,0x40de005000480011\n" ".quad 0x011de45000480001,0x201c002800480040,0x651e005800000008,0x301c005000480021\n" ".quad 0x455c00300000000c,0x411c005000480090,0x0100073000000051,0x51dc005000001ca0\n" ".quad 0x000007220e000011,0x059de460000003a0,0x0021e72800000010,0x0100074000000300\n" ".quad 0x201c005000001340,0x519d005800000010,0x309c005000000059,0x015c005800000010\n" ".quad 0x40dc005800000044,0x619c005800000011,0x211f005800480160,0x01dc00300a000040\n" ".quad 0x215c005800000018,0x321c005800000018,0x311e005800000018,0x119c003008000048\n" ".quad 0x015c00300e480171,0x221c00300a480171,0x209c003010480171,0x01dc003020000010\n" ".quad 0x30dc003022000010,0x201c003024000010,0x709c00300a480180,0x30dc00300c480180\n" ".quad 0x201d043010480180,0x209d041000000001,0x20dd141000000009,0x00dde4100000000d\n" ".quad 0x009de428000000fc,0x001df428000000fc,0x011de428000000fc,0x001c002800400100\n" ".quad 0x219c03500000007c,0x209c002009c00023,0xf1dc435000000078,0x109c004800400113\n" ".quad 0x611ca55000000009,0x011de48400000000,0x519c0328004000a0,0x011c002009c00040\n" ".quad 0xf1dc435000000001,0x301c0048004000b3,0x611c855000000074,0x201c009400000000\n" ".quad 0x609c855000000001,0x601c859400000010,0x64dc859400000020,0x001de79400000030\n" ".quad 0x401c038000000000,0x519c036000c00004,0x001c036000c00004,0x619c035800c00060\n" ".quad 0x01dc035800c00060,0x621c034800fffffc,0x71dc034800fffffc,0x81dc031a0ec003f4\n" ".quad 0x0021e71a20c003f4,0x41dc804000000520,0x201c44298edfe000,0x0021e71080000011\n" ".quad 0x51dc804000000060,0x219c44298edfe000,0x0001e71080000015,0x411c204000000040\n" ".quad 0x001de75000000014,0x425c034000000b80,0x529c036000c00004,0x93dc036000c00004\n" ".quad 0xa5dc03190e0000fc,0x11dc04190e0000fc,0x0001e70c0e000008,0x07dc004000000080\n" ".quad 0x61dc00290edfe000,0x002de7290edfe000,0x0021e74000000080,0x001de24000000060\n" ".quad 0x011c001bff000000,0x001de7c800000014,0x01dc0440000009e0,0x0021e70c0e000044\n" ".quad 0x501c834000000060,0x011c026800000010,0x001de73a00000000,0x31dc044000000940\n" ".quad 0x0021e70c0e000048,0x501c834000000080,0x001c026800000010,0x011c423a00000000\n" ".quad 0x001de739fe000000,0x71dc234000000880,0x83dc231b0e0000fc,0x0021e21b0e0000fc\n" ".quad 0x4120001bffffff00,0x0001e4307ed7e000,0x0005e728000000fc,0x515c004000000080\n" ".quad 0x001c03307ed7e000,0x001de74800c00100,0x001de44000000020,0x819c0328000000fc\n" ".quad 0x619ee34800fffe08,0x715c034100000014,0x625c004800fffe08,0x511ee3c800000010\n" ".quad 0x415c004100000010,0x71dd03307e000024,0x629e004800000020,0xa15c003008000014\n" ".quad 0x619e00300a000024,0x611c003008000014,0x429c03300a000024,0xa29c036000c00004\n" ".quad 0x71dc035800c00060,0x01dc034800000028,0x701c03480000001c,0x01dc034800fffffc\n" ".quad 0x0001e71a0ec003f4,0x701d034000000060,0x011ee34800000028,0x001de74000000010\n" ".quad 0x71dc2340000004a0,0x0001e7198ec003f8,0x401c024000000060,0x011c423a00000000\n" ".quad 0x001de739fe000000,0x71dc234000000400,0x0001e71a0e0000fc,0x71dc2340000003c0\n" ".quad 0x0001e71b0effffa0,0x411c024000000040,0x001de73a00000000,0x629c004000000340\n" ".quad 0x621c00310a000024,0x601c00308a000024,0x225f84318a000024,0xa15c001c0000001d\n" ".quad 0x019c021e8e000020,0x91dc233801fffffc,0x401c02190e0000fc,0x221f843a00000000\n" ".quad 0x211f841c0000001d,0x625c421c00000015,0x0081e73802000000,0x71600340000000a0\n" ".quad 0x9160034800c00080,0xf160036000000014,0x926003310ac00007,0x4120435800000020\n" ".quad 0x915c036800000014,0x519c036000c00078,0x915c035800c0007c,0x411c436800c00004\n" ".quad 0x511c036800000018,0x915c036800000010,0x41dc035800c00004,0x5140031a8e0000fc\n" ".quad 0x011c434800c00004,0x001de76800000014,0x401c039000000000,0x001c036000c00004\n" ".quad 0x015c035800c00060,0x215c044800c0000c,0x51dc031c00000014,0x0001e7198ec0000c\n" ".quad 0x401c004000000080,0x411c00c800000010,0x011e003000800014,0x001de73000000010\n" ".quad 0x01dc034000000760,0x0001e71a8e0000fc,0x401c024000000300,0x015c033801fffffc\n" ".quad 0x515e037800000000,0x519c034800c0007c,0x61dc034800ffffdc,0x0001e7198ec00004\n" ".quad 0x411c004000000040,0x001de7c800000010,0x519c034000000620,0x411c024800ffffe0\n" ".quad 0x001c033a00000000,0x001c026000000018,0x001c423801fffffc,0x019c0038fe000000\n" ".quad 0x001c00c800000010,0x601e00300c800014,0x001c02300c000000,0x019c033801fffffc\n" ".quad 0x515d03110e0000fc,0x515c034800000018,0x515c034800c003d0,0x411c436000c0005c\n" ".quad 0x011c436800000014,0x001de76800000010,0x015c034000000420,0x51dc034800fffc0c\n" ".quad 0x0001e71a0ec00004,0x419c0240000003a0,0x61dc423801fffffc,0x02dde238fe000000\n" ".quad 0x721c00180000000c,0xb2dc03c800000010,0x71dc006000000014,0x411c023010800014\n" ".quad 0x825e003a00000000,0x929c02309000001c,0x821e003801fffffc,0xa29c42311000001c\n" ".quad 0xb1dc033802000000,0x91dc006800000028,0x71dc032e8e000020,0xf21c045800000014\n" ".quad 0x515c032010c00007,0x725c036800000028,0x815c436800c00008,0x91dc036800000014\n" ".quad 0x021c031a8e0000fc,0x51dc034800fffc10,0x701c031aa00000fc,0xa15c036800c00004\n" ".quad 0x01dc235800000020,0x5140031a800000fc,0x501c034800c00004,0x001c036000c00004\n" ".quad 0x011c43310c000014,0x001de76800000010,0x411c004000000020,0x001de7c800000010\n" ".quad 0x401c029000000000,0x01dc030bcc000000,0x0001e7198e400024,0x401c024000000220\n" ".quad 0x01dc2339fffffffc,0x0021e71a8e0000fc,0x41dc004000000300,0x0021e7288e0000fc\n" ".quad 0x011de24000000040,0x001de719fffffffc,0x41dc804000000280,0x201c44298edfe000\n" ".quad 0x0001e71080000011,0x411c204000000040,0x001de75000cfe000,0x01dc0040000001e0\n" ".quad 0x0001e7290edfe000,0x411c0040000001a0,0x71dc04307ed7e000,0x001de70c0e00001c\n" ".quad 0xf1dc044000000020,0x401c000c0e00001c,0x015c40c800000014,0x001c405800000010\n" ".quad 0x519e005800cfc000,0x515c003000800034,0x019c00300a000018,0x501e003000000018\n" ".quad 0x011c003008000014,0x410040300a000018,0x001de75800cbe000,0x0000009000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0000000000000000,0x0000010000000000,0x7fffffbf80000000,0x180c043f00000072\n" ".quad 0x0000080000000000,0x0000180000001000,0x0000280000002000,0x0000220008020400\n" ".quad 0x0802040000000100,0x0000030000002500,0x0000260008020400,0x0802040000000200\n" ".quad 0x0000000000002100,0x00001300080a0400,0x3019030030002000,0xffffff000c170400\n" ".quad 0x21f00000280005ff,0xffffff000c170400,0x21f00000200004ff,0xffffff000c170400\n" ".quad 0x21f00000180003ff,0xffffff000c170400,0x21f00000100002ff,0xffffff000c170400\n" ".quad 0x21f00000080001ff,0xffffff000c170400,0x21f00000000000ff,0x2601c800080d0400\n" ".quad 0x0000000000002000,0x0000000000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0000000000000000,0x0000000000000000,0x1007040000000000,0xffffff0000002600\n" ".quad 0xffffffffffffffff,0x00002500100704ff,0xffffffffffffff00,0x100704ffffffffff\n" ".quad 0xffffff0000002400,0xffffffffffffffff,0x00002300100704ff,0xffffffffffffff00\n" ".quad 0x100704ffffffffff,0xffffff0000002200,0xffffffffffffffff,0x00002100100704ff\n" ".quad 0xffffffffffffff00,0x081204ffffffffff,0x0000000000002000,0x0000200008110400\n" ".quad 0x0812040000000000,0x0000000000001a00,0x00001a0008110400,0x0812040000000000\n" ".quad 0x0000000000001f00,0x00001f0008110400,0x0812040000000000,0x0000000000001a00\n" ".quad 0x00001a0008110400,0x0812040000000000,0x0000000000001e00,0x00001e0008110400\n" ".quad 0x0812040000000000,0x0000000000001d00,0x00001d0008110400,0x0812040000000000\n" ".quad 0x0000000000001c00,0x00001c0008110400,0x0812040000000000,0x0000000000001b00\n" ".quad 0x00001b0008110400,0x0812040000000000,0x0000000000001a00,0x00001a0008110400\n" ".quad 0x0812040000000000,0x0000000000001900,0x0000190008110400,0x0000000000000000\n" ".quad 0x0000000500000006,0x0000000000002f20,0x0000000000000000,0x0000000000000000\n" ".quad 0x00000000000001c0,0x00000000000001c0,0x0000000000000004,0x0000200560000000\n" ".quad 0x0000000000000e99,0x0000000000000000,0x0000000000000000,0x0000000000000270\n" ".quad 0x0000000000000270,0x0000000000000004,0x00001f0560000000,0x0000000000001109\n" ".quad 0x0000000000000000,0x0000000000000000,0x00000000000005e4,0x00000000000005e4\n" ".quad 0x0000000000000004,0x00001e0560000000,0x00000000000016ed,0x0000000000000000\n" ".quad 0x0000000000000000,0x0000000000000590,0x0000000000000590,0x0000000000000004\n" ".quad 0x00001d0560000000,0x0000000000001c7d,0x0000000000000000,0x0000000000000000\n" ".quad 0x0000000000000238,0x0000000000000238,0x0000000000000004,0x00001d0660000000\n" ".quad 0x0000000000001eb5,0x0000000000000000,0x0000000000000000,0x0000000000000000\n" ".quad 0x0000000000000404,0x0000000000000004,0x0000190560000000,0x0000000000001eb5\n" ".quad 0x0000000000000000,0x0000000000000000,0x0000000000000e90,0x0000000000000e90\n" ".quad 0x0000000000000004,0x0000000500000001,0x0000000000002d45,0x0000000000000000\n" ".quad 0x0000000000000000,0x0000000000000070,0x0000000000000070,0x0000000000000004\n" ".quad 0x0000000000000000\n" ".text"); extern "C" { extern const unsigned long long __deviceText_$sm_21$[1565]; } asm( ".section .rodata\n" ".align 32\n" "__deviceText_$compute_20$:\n" ".quad 0x6f69737265762e09,0x2e090a322e32206e,0x7320746567726174,0x2f2f090a30325f6d\n" ".quad 0x656c69706d6f6320,0x2f20687469772064,0x61636f6c2f727375,0x6f2f616475632f6c\n" ".quad 0x696c2f34366e6570,0x2f090a65622f2f62,0x6e65706f766e202f,0x6220322e33206363\n" ".quad 0x206e6f20746c6975,0x2d39302d30313032,0x69762e090a0a3930,0x662e20656c626973\n" ".quad 0x61702e2820636e75,0x696c612e206d6172,0x38622e2034206e67,0x72616475635f5f20\n" ".quad 0x31315a5f5f667465,0x64697247636c6163,0x616f6c6636736f50,0x20295d32315b3474\n" ".quad 0x636c616331315a5f,0x36736f5064697247,0x28203474616f6c66,0x2e206d617261702e\n" ".quad 0x3631206e67696c61,0x635f5f2038622e20,0x666d726170616475,0x616331315a5f5f31\n" ".quad 0x6f5064697247636c,0x3474616f6c663673,0x090a0a295d36315b,0x656c62697369762e\n" ".quad 0x2820636e75662e20,0x2e206d617261702e,0x75635f5f20323375,0x5f5f667465726164\n" ".quad 0x47636c616332315a,0x3468736148646972,0x5a5f202933746e69,0x7247636c61633231\n" ".quad 0x6934687361486469,0x61702e282033746e,0x696c612e206d6172,0x38622e2034206e67\n" ".quad 0x70616475635f5f20,0x5a5f5f31666d7261,0x7247636c61633231,0x6934687361486469\n" ".quad 0x295d32315b33746e,0x697369762e090a0a,0x6e75662e20656c62,0x646137315a5f2063\n" ".quad 0x6c63697472615064,0x346c6c65436f5465,0x536a506a33746e69,0x7261702e28205f30\n" ".quad 0x67696c612e206d61,0x2038622e2034206e,0x6170616475635f5f,0x315a5f5f31666d72\n" ".quad 0x7472615064646137,0x65436f54656c6369,0x6a33746e69346c6c,0x32315b5f30536a50\n" ".quad 0x617261702e202c5d,0x5f203233752e206d,0x726170616475635f,0x37315a5f5f32666d\n" ".quad 0x6974726150646461,0x6c65436f54656c63,0x506a33746e69346c,0x702e202c5f30536a\n" ".quad 0x36752e206d617261,0x616475635f5f2034,0x5f5f33666d726170,0x615064646137315a\n" ".quad 0x6f54656c63697472,0x746e69346c6c6543,0x2c5f30536a506a33,0x206d617261702e20\n" ".quad 0x635f5f203436752e,0x666d726170616475,0x646137315a5f5f34,0x6c63697472615064\n" ".quad 0x346c6c65436f5465,0x536a506a33746e69,0x762e090a0a295f30,0x2e20656c62697369\n" ".quad 0x702e2820636e7566,0x6c612e206d617261,0x622e2034206e6769,0x616475635f5f2038\n" ".quad 0x315a5f5f66746572,0x6564696c6c6f6334,0x3673657265687053,0x5f533474616f6c66\n" ".quad 0x5b6666665f535f53,0x315a5f20295d3231,0x6564696c6c6f6334,0x3673657265687053\n" ".quad 0x5f533474616f6c66,0x206666665f535f53,0x206d617261702e28,0x31206e67696c612e\n" ".quad 0x5f5f2038622e2036,0x6d72617061647563,0x6334315a5f5f3166,0x70536564696c6c6f\n" ".quad 0x6c66367365726568,0x5f535f533474616f,0x36315b6666665f53,0x617261702e202c5d\n" ".quad 0x6e67696c612e206d,0x2038622e20363120,0x6170616475635f5f,0x315a5f5f32666d72\n" ".quad 0x6564696c6c6f6334,0x3673657265687053,0x5f533474616f6c66,0x5b6666665f535f53\n" ".quad 0x61702e202c5d3631,0x696c612e206d6172,0x622e203631206e67,0x616475635f5f2038\n" ".quad 0x5f5f33666d726170,0x696c6c6f6334315a,0x6572656870536564,0x3474616f6c663673\n" ".quad 0x66665f535f535f53,0x2e202c5d36315b66,0x612e206d61726170,0x203631206e67696c\n" ".quad 0x75635f5f2038622e,0x34666d7261706164,0x6c6f6334315a5f5f,0x656870536564696c\n" ".quad 0x616f6c6636736572,0x5f535f535f533474,0x2c5d36315b666666,0x206d617261702e20\n" ".quad 0x635f5f203233662e,0x666d726170616475,0x6f6334315a5f5f35,0x6870536564696c6c\n" ".quad 0x6f6c663673657265,0x535f535f53347461,0x702e202c6666665f,0x33662e206d617261\n" ".quad 0x616475635f5f2032,0x5f5f36666d726170,0x696c6c6f6334315a,0x6572656870536564\n" ".quad 0x3474616f6c663673,0x66665f535f535f53,0x617261702e202c66,0x5f203233662e206d\n" ".quad 0x726170616475635f,0x34315a5f5f37666d,0x536564696c6c6f63,0x6636736572656870\n" ".quad 0x535f533474616f6c,0x0a296666665f535f,0x62697369762e090a,0x636e75662e20656c\n" ".quad 0x6d617261702e2820,0x206e67696c612e20,0x5f5f2038622e2034,0x6674657261647563\n" ".quad 0x6c6f6331315a5f5f,0x6c6c65436564696c,0x66366a33746e6934,0x5f30533474616f6c\n" ".quad 0x505f31535f305350,0x5d32315b5f32536a,0x6f6331315a5f2029,0x6c65436564696c6c\n" ".quad 0x366a33746e69346c,0x30533474616f6c66,0x5f31535f3053505f,0x2e28205f32536a50\n" ".quad 0x612e206d61726170,0x2e2034206e67696c,0x6475635f5f203862,0x5f31666d72617061\n" ".quad 0x6c6c6f6331315a5f,0x346c6c6543656469,0x6c66366a33746e69,0x505f30533474616f\n" ".quad 0x6a505f31535f3053,0x2c5d32315b5f3253,0x206d617261702e20,0x635f5f203233752e\n" ".quad 0x666d726170616475,0x6f6331315a5f5f32,0x6c65436564696c6c,0x366a33746e69346c\n" ".quad 0x30533474616f6c66,0x5f31535f3053505f,0x2e202c5f32536a50,0x612e206d61726170\n" ".quad 0x203631206e67696c,0x75635f5f2038622e,0x33666d7261706164,0x6c6f6331315a5f5f\n" ".quad 0x6c6c65436564696c,0x66366a33746e6934,0x5f30533474616f6c,0x505f31535f305350\n" ".quad 0x5d36315b5f32536a,0x6d617261702e202c,0x206e67696c612e20,0x5f2038622e203631\n" ".quad 0x726170616475635f,0x31315a5f5f34666d,0x436564696c6c6f63,0x33746e69346c6c65\n" ".quad 0x3474616f6c66366a,0x535f3053505f3053,0x5b5f32536a505f31,0x61702e202c5d3631\n" ".quad 0x3436752e206d6172,0x70616475635f5f20,0x5a5f5f35666d7261,0x64696c6c6f633131\n" ".quad 0x6e69346c6c654365,0x616f6c66366a3374,0x3053505f30533474,0x32536a505f31535f\n" ".quad 0x617261702e202c5f,0x5f203436752e206d,0x726170616475635f,0x31315a5f5f36666d\n" ".quad 0x436564696c6c6f63,0x33746e69346c6c65,0x3474616f6c66366a,0x535f3053505f3053\n" ".quad 0x2c5f32536a505f31,0x206d617261702e20,0x635f5f203436752e,0x666d726170616475\n" ".quad 0x6f6331315a5f5f37,0x6c65436564696c6c,0x366a33746e69346c,0x30533474616f6c66\n" ".quad 0x5f31535f3053505f,0x2e202c5f32536a50,0x752e206d61726170,0x6475635f5f203436\n" ".quad 0x5f38666d72617061,0x6c6c6f6331315a5f,0x346c6c6543656469,0x6c66366a33746e69\n" ".quad 0x505f30533474616f,0x6a505f31535f3053,0x2e090a0a295f3253,0x20656c6269736976\n" ".quad 0x2e2820636e75662e,0x612e206d61726170,0x2e2034206e67696c,0x6475635f5f203862\n" ".quad 0x5a5f5f6674657261,0x64696c6c6f633231,0x6934326c6c654365,0x6f6c66366a33746e\n" ".quad 0x53505f3053347461,0x7535505f31535f30,0x315b6a5032746e69,0x32315a5f20295d32\n" ".quad 0x436564696c6c6f63,0x746e6934326c6c65,0x74616f6c66366a33,0x5f3053505f305334\n" ".quad 0x6e697535505f3153,0x702e28206a503274,0x6c612e206d617261,0x622e2034206e6769\n" ".quad 0x616475635f5f2038,0x5f5f31666d726170,0x696c6c6f6332315a,0x34326c6c65436564\n" ".quad 0x6c66366a33746e69,0x505f30533474616f,0x35505f31535f3053,0x5b6a5032746e6975\n" ".quad 0x61702e202c5d3231,0x3233752e206d6172,0x70616475635f5f20,0x5a5f5f32666d7261\n" ".quad 0x64696c6c6f633231,0x6934326c6c654365,0x6f6c66366a33746e,0x53505f3053347461\n" ".quad 0x7535505f31535f30,0x202c6a5032746e69,0x2e206d617261702e,0x3631206e67696c61\n" ".quad 0x635f5f2038622e20,0x666d726170616475,0x6f6332315a5f5f33,0x6c65436564696c6c\n" ".quad 0x6a33746e6934326c,0x533474616f6c6636,0x31535f3053505f30,0x32746e697535505f\n" ".quad 0x202c5d36315b6a50,0x2e206d617261702e,0x3631206e67696c61,0x635f5f2038622e20\n" ".quad 0x666d726170616475,0x6f6332315a5f5f34,0x6c65436564696c6c,0x6a33746e6934326c\n" ".quad 0x533474616f6c6636,0x31535f3053505f30,0x32746e697535505f,0x202c5d36315b6a50\n" ".quad 0x2e206d617261702e,0x75635f5f20343675,0x35666d7261706164,0x6c6f6332315a5f5f\n" ".quad 0x6c6c65436564696c,0x366a33746e693432,0x30533474616f6c66,0x5f31535f3053505f\n" ".quad 0x5032746e69753550,0x617261702e202c6a,0x5f203436752e206d,0x726170616475635f\n" ".quad 0x32315a5f5f36666d,0x436564696c6c6f63,0x746e6934326c6c65,0x74616f6c66366a33\n" ".quad 0x5f3053505f305334,0x6e697535505f3153,0x702e202c6a503274,0x36752e206d617261\n" ".quad 0x616475635f5f2034,0x5f5f37666d726170,0x696c6c6f6332315a,0x34326c6c65436564\n" ".quad 0x6c66366a33746e69,0x505f30533474616f,0x35505f31535f3053,0x2c6a5032746e6975\n" ".quad 0x206d617261702e20,0x635f5f203436752e,0x666d726170616475,0x6f6332315a5f5f38\n" ".quad 0x6c65436564696c6c,0x6a33746e6934326c,0x533474616f6c6636,0x31535f3053505f30\n" ".quad 0x32746e697535505f,0x2f2f090a0a296a50,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d\n" ".quad 0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d\n" ".quad 0x2d2d2d2d2d2d2d2d,0x202f2f090a2d2d2d,0x6e696c69706d6f43,0x742f706d742f2067\n" ".quad 0x30305f746678706d,0x305f656561303030,0x2d30303030303030,0x6369747261705f37\n" ".quad 0x6e72656b5f73656c,0x2e337070632e6c65,0x2f706d742f282069,0x75332e2349426363\n" ".quad 0x2f090a296f484136,0x2d2d2d2d2d2d2d2f,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d\n" ".quad 0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d\n" ".quad 0x2f090a0a2d2d2d2d,0x2d2d2d2d2d2d2d2f,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d\n" ".quad 0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d\n" ".quad 0x2f2f090a2d2d2d2d,0x736e6f6974704f20,0x2d2d2d2f2f090a3a,0x2d2d2d2d2d2d2d2d\n" ".quad 0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d\n" ".quad 0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x615420202f2f090a,0x7874703a74656772\n" ".quad 0x6d733a415349202c,0x646e45202c30325f,0x7474696c3a6e6169,0x6e696f50202c656c\n" ".quad 0x657a695320726574,0x202f2f090a34363a,0x704f2809334f2d20,0x6974617a696d6974\n" ".quad 0x6c6576656c206e6f,0x2d20202f2f090a29,0x7562654428093067,0x296c6576656c2067\n" ".quad 0x6d2d20202f2f090a,0x726f706552280932,0x6f73697664612074,0x2f090a2973656972\n" ".quad 0x2d2d2d2d2d2d2d2f,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d\n" ".quad 0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2d2d2d2d2d2d2d2d,0x2e090a0a2d2d2d2d\n" ".quad 0x22093109656c6966,0x646e616d6d6f633c,0x0a223e656e696c2d,0x3209656c69662e09\n" ".quad 0x742f706d742f2209,0x30305f746678706d,0x305f656561303030,0x2d30303030303030\n" ".quad 0x6369747261705f36,0x6e72656b5f73656c,0x66616475632e6c65,0x0a227570672e3265\n" ".quad 0x3309656c69662e09,0x2f656d6f682f2209,0x632f6c616d726f6e,0x2f74756f6b636568\n" ".quad 0x6f6c65636f757067,0x2d73747365742f74,0x2f312e322d787470,0x2f322e3261647563\n" ".quad 0x61702f7374736574,0x2f73656c63697472,0x656c636974726170,0x6c656e72656b5f73\n" ".quad 0x2e090a226875632e,0x22093409656c6966,0x62696c2f7273752f,0x3836692f6363672f\n" ".quad 0x2d78756e696c2d36,0x2e342e342f756e67,0x64756c636e692f35,0x6665646474732f65\n" ".quad 0x69662e090a22682e,0x752f22093509656c,0x6c61636f6c2f7273,0x69622f616475632f\n" ".quad 0x636e692f2e2e2f6e,0x7472632f6564756c,0x5f6563697665642f,0x2e656d69746e7572\n" ".quad 0x6c69662e090a2268,0x73752f2209360965,0x2f6c61636f6c2f72,0x6e69622f61647563\n" ".quad 0x6c636e692f2e2e2f,0x74736f682f656475,0x73656e696665645f,0x69662e090a22682e\n" ".quad 0x752f22093709656c,0x6c61636f6c2f7273,0x69622f616475632f,0x636e692f2e2e2f6e\n" ".quad 0x6975622f6564756c,0x7079745f6e69746c,0x2e090a22682e7365,0x22093809656c6966\n" ".quad 0x636f6c2f7273752f,0x2f616475632f6c61,0x692f2e2e2f6e6962,0x642f6564756c636e\n" ".quad 0x79745f6563697665,0x090a22682e736570,0x093909656c69662e,0x6f6c2f7273752f22\n" ".quad 0x616475632f6c6163,0x2f2e2e2f6e69622f,0x2f6564756c636e69,0x745f726576697264\n" ".quad 0x0a22682e73657079,0x3109656c69662e09,0x2f7273752f220930,0x75632f6c61636f6c\n" ".quad 0x2e2f6e69622f6164,0x64756c636e692f2e,0x6361667275732f65,0x2e73657079745f65\n" ".quad 0x6c69662e090a2268,0x752f220931310965,0x6c61636f6c2f7273,0x69622f616475632f\n" ".quad 0x636e692f2e2e2f6e,0x7865742f6564756c,0x7079745f65727574,0x2e090a22682e7365\n" ".quad 0x09323109656c6966,0x6f6c2f7273752f22,0x616475632f6c6163,0x2f2e2e2f6e69622f\n" ".quad 0x2f6564756c636e69,0x745f726f74636576,0x0a22682e73657079,0x3109656c69662e09\n" ".quad 0x2f7273752f220933,0x75632f6c61636f6c,0x2e2f6e69622f6164,0x64756c636e692f2e\n" ".quad 0x6563697665642f65,0x5f68636e75616c5f,0x6574656d61726170,0x2e090a22682e7372\n" ".quad 0x09343109656c6966,0x6f6c2f7273752f22,0x616475632f6c6163,0x2f2e2e2f6e69622f\n" ".quad 0x2f6564756c636e69,0x726f74732f747263,0x73616c635f656761,0x662e090a22682e73\n" ".quad 0x2209353109656c69,0x636e692f7273752f,0x7469622f6564756c,0x2e73657079742f73\n" ".quad 0x6c69662e090a2268,0x752f220936310965,0x756c636e692f7273,0x2e656d69742f6564\n" ".quad 0x6c69662e090a2268,0x682f220937310965,0x6d726f6e2f656d6f,0x6b636568632f6c61\n" ".quad 0x6f7570672f74756f,0x65742f746f6c6563,0x2d7874702d737473,0x616475632f312e32\n" ".quad 0x747365742f322e32,0x6369747261702f73,0x747261702f73656c,0x656b5f73656c6369\n" ".quad 0x2275632e6c656e72,0x09656c69662e090a,0x7273752f22093831,0x632f6c61636f6c2f\n" ".quad 0x2f6e69622f616475,0x756c636e692f2e2e,0x6f6d6d6f632f6564,0x6974636e75665f6e\n" ".quad 0x090a22682e736e6f,0x393109656c69662e,0x6c2f7273752f2209,0x6475632f6c61636f\n" ".quad 0x2e2e2f6e69622f61,0x6564756c636e692f,0x75665f6874616d2f,0x2e736e6f6974636e\n" ".quad 0x6c69662e090a2268,0x752f220930320965,0x6c61636f6c2f7273,0x69622f616475632f\n" ".quad 0x636e692f2e2e2f6e,0x74616d2f6564756c,0x6174736e6f635f68,0x090a22682e73746e\n" ".quad 0x313209656c69662e,0x6c2f7273752f2209,0x6475632f6c61636f,0x2e2e2f6e69622f61\n" ".quad 0x6564756c636e692f,0x5f6563697665642f,0x6e6f6974636e7566,0x662e090a22682e73\n" ".quad 0x2209323209656c69,0x636f6c2f7273752f,0x2f616475632f6c61,0x692f2e2e2f6e6962\n" ".quad 0x732f6564756c636e,0x6f74615f31315f6d,0x636e75665f63696d,0x22682e736e6f6974\n" ".quad 0x09656c69662e090a,0x7273752f22093332,0x632f6c61636f6c2f,0x2f6e69622f616475\n" ".quad 0x756c636e692f2e2e,0x32315f6d732f6564,0x5f63696d6f74615f,0x6e6f6974636e7566\n" ".quad 0x662e090a22682e73,0x2209343209656c69,0x636f6c2f7273752f,0x2f616475632f6c61\n" ".quad 0x692f2e2e2f6e6962,0x732f6564756c636e,0x756f645f33315f6d,0x636e75665f656c62\n" ".quad 0x22682e736e6f6974,0x09656c69662e090a,0x7273752f22093532,0x632f6c61636f6c2f\n" ".quad 0x2f6e69622f616475,0x756c636e692f2e2e,0x30325f6d732f6564,0x5f63696d6f74615f\n" ".quad 0x6e6f6974636e7566,0x662e090a22682e73,0x2209363209656c69,0x636f6c2f7273752f\n" ".quad 0x2f616475632f6c61,0x692f2e2e2f6e6962,0x732f6564756c636e,0x746e695f30325f6d\n" ".quad 0x2e736369736e6972,0x6c69662e090a2268,0x752f220937320965,0x6c61636f6c2f7273\n" ".quad 0x69622f616475632f,0x636e692f2e2e2f6e,0x7275732f6564756c,0x6e75665f65636166\n" ".quad 0x682e736e6f697463,0x656c69662e090a22,0x73752f2209383209,0x2f6c61636f6c2f72\n" ".quad 0x6e69622f61647563,0x6c636e692f2e2e2f,0x747865742f656475,0x637465665f657275\n" ".quad 0x6974636e75665f68,0x090a22682e736e6f,0x393209656c69662e,0x6c2f7273752f2209\n" ".quad 0x6475632f6c61636f,0x2e2e2f6e69622f61,0x6564756c636e692f,0x75665f6874616d2f\n" ".quad 0x5f736e6f6974636e,0x337874705f6c6264,0x632e090a0a22682e,0x6c612e2074736e6f\n" ".quad 0x2e203631206e6769,0x6d61726170203862,0x0a3b5d3231315b73,0x62697369762e090a\n" ".quad 0x636e75662e20656c,0x6d617261702e2820,0x206e67696c612e20,0x5f5f2038622e2034\n" ".quad 0x6674657261647563,0x6c616331315a5f5f,0x736f506469724763,0x5b3474616f6c6636\n" ".quad 0x315a5f20295d3231,0x697247636c616331,0x6f6c6636736f5064,0x61702e2820347461\n" ".quad 0x696c612e206d6172,0x622e203631206e67,0x616475635f5f2038,0x5f5f31666d726170\n" ".quad 0x47636c616331315a,0x6636736f50646972,0x36315b3474616f6c,0x2e090a7b090a295d\n" ".quad 0x3233752e20676572,0x0a3b3e373c722520,0x662e206765722e09,0x33323c6625203233\n" ".quad 0x636f6c2e090a3b3e,0x3009313909373109,0x67656257444c240a,0x6331315a5f5f6e69\n" ".quad 0x5064697247636c61,0x74616f6c6636736f,0x702e646c090a3a34,0x3233662e6d617261\n" ".quad 0x5b202c3166250920,0x6170616475635f5f,0x315a5f5f31666d72,0x697247636c616331\n" ".quad 0x6f6c6636736f5064,0x0a3b5d302b347461,0x3233662e766f6d09,0x25202c3266250920\n" ".quad 0x2e646c090a3b3166,0x33662e6d61726170,0x202c336625092032,0x70616475635f5f5b\n" ".quad 0x5a5f5f31666d7261,0x7247636c61633131,0x6c6636736f506469,0x3b5d342b3474616f\n" ".quad 0x33662e766f6d090a,0x202c346625092032,0x646c090a3b336625,0x662e6d617261702e\n" ".quad 0x2c35662509203233,0x616475635f5f5b20,0x5f5f31666d726170,0x47636c616331315a\n" ".quad 0x6636736f50646972,0x5d382b3474616f6c,0x662e766f6d090a3b,0x2c36662509203233\n" ".quad 0x2e090a3b35662520,0x3909373109636f6c,0x2e646c090a300934,0x33662e74736e6f63\n" ".quad 0x202c376625092032,0x2b736d617261705b,0x7573090a3b5d3036,0x2509203233662e62\n" ".quad 0x2c346625202c3866,0x6c090a3b37662520,0x2e74736e6f632e64,0x3966250920323366\n" ".quad 0x6d617261705b202c,0x090a3b5d32372b73,0x662e6e722e766964,0x3031662509203233\n" ".quad 0x25202c386625202c,0x747663090a3b3966,0x3233662e696d722e,0x662509203233662e\n" ".quad 0x30316625202c3131,0x722e747663090a3b,0x662e3233732e697a,0x2c31722509203233\n" ".quad 0x090a3b3131662520,0x09373109636f6c2e,0x646c090a30093539,0x662e74736e6f632e\n" ".quad 0x3231662509203233,0x6d617261705b202c,0x090a3b5d34362b73,0x203233662e627573\n" ".quad 0x25202c3331662509,0x32316625202c3666,0x6f632e646c090a3b,0x203233662e74736e\n" ".quad 0x5b202c3431662509,0x372b736d61726170,0x766964090a3b5d36,0x203233662e6e722e\n" ".quad 0x25202c3531662509,0x316625202c333166,0x2e747663090a3b34,0x2e3233662e696d72\n" ".quad 0x3166250920323366,0x3b35316625202c36,0x7a722e747663090a,0x33662e3233732e69\n" ".quad 0x202c327225092032,0x2e090a3b36316625,0x3909373109636f6c,0x2e646c090a300936\n" ".quad 0x33662e74736e6f63,0x2c37316625092032,0x736d617261705b20,0x73090a3b5d36352b\n" ".quad 0x09203233662e6275,0x6625202c38316625,0x3b37316625202c32,0x6e6f632e646c090a\n" ".quad 0x09203233662e7473,0x705b202c39316625,0x38362b736d617261,0x2e766964090a3b5d\n" ".quad 0x09203233662e6e72,0x6625202c30326625,0x39316625202c3831,0x722e747663090a3b\n" ".quad 0x662e3233662e696d,0x3132662509203233,0x0a3b30326625202c,0x697a722e74766309\n" ".quad 0x3233662e3233732e,0x25202c3372250920,0x7473090a3b313266,0x732e6d617261702e\n" ".quad 0x635f5f5b09203233,0x5f66746572616475,0x636c616331315a5f,0x36736f5064697247\n" ".quad 0x302b3474616f6c66,0x0a3b337225202c5d,0x3233732e766f6d09,0x25202c3472250920\n" ".quad 0x2e7473090a3b3172,0x33732e6d61726170,0x75635f5f5b092032,0x5f5f667465726164\n" ".quad 0x47636c616331315a,0x6636736f50646972,0x5d342b3474616f6c,0x090a3b347225202c\n" ".quad 0x203233732e766f6d,0x7225202c35722509,0x702e7473090a3b32,0x3233732e6d617261\n" ".quad 0x6475635f5f5b0920,0x5a5f5f6674657261,0x7247636c61633131,0x6c6636736f506469\n" ".quad 0x2c5d382b3474616f,0x72090a3b35722520,0x57444c240a3b7465,0x31315a5f5f646e65\n" ".quad 0x64697247636c6163,0x616f6c6636736f50,0x2f207d090a3a3474,0x616331315a5f202f\n" ".quad 0x6f5064697247636c,0x3474616f6c663673,0x697369762e090a0a,0x6e75662e20656c62\n" ".quad 0x617261702e282063,0x5f203233752e206d,0x746572616475635f,0x616332315a5f5f66\n" ".quad 0x614864697247636c,0x2933746e69346873,0x6c616332315a5f20,0x7361486469724763\n" ".quad 0x282033746e693468,0x2e206d617261702e,0x2034206e67696c61,0x75635f5f2038622e\n" ".quad 0x31666d7261706164,0x6c616332315a5f5f,0x7361486469724763,0x315b33746e693468\n" ".quad 0x090a7b090a295d32,0x33752e206765722e,0x3e32323c72252032,0x09636f6c2e090a3b\n" ".quad 0x3009313031093731,0x67656257444c240a,0x6332315a5f5f6e69,0x4864697247636c61\n" ".quad 0x33746e6934687361,0x61702e646c090a3a,0x203233752e6d6172,0x5f5b202c31722509\n" ".quad 0x726170616475635f,0x32315a5f5f31666d,0x64697247636c6163,0x746e693468736148\n" ".quad 0x6d090a3b5d302b33,0x09203233732e766f,0x317225202c327225,0x61702e646c090a3b\n" ".quad 0x203233752e6d6172,0x5f5b202c33722509,0x726170616475635f,0x32315a5f5f31666d\n" ".quad 0x64697247636c6163,0x746e693468736148,0x6d090a3b5d342b33,0x09203233732e766f\n" ".quad 0x337225202c347225,0x61702e646c090a3b,0x203233752e6d6172,0x5f5b202c35722509\n" ".quad 0x726170616475635f,0x32315a5f5f31666d,0x64697247636c6163,0x746e693468736148\n" ".quad 0x6d090a3b5d382b33,0x09203233732e766f,0x357225202c367225,0x09636f6c2e090a3b\n" ".quad 0x3009353031093731,0x6e6f632e646c090a,0x09203233752e7473,0x61705b202c377225\n" ".quad 0x5d34342b736d6172,0x6f632e646c090a3b,0x203233752e74736e,0x705b202c38722509\n" ".quad 0x30342b736d617261,0x632e646c090a3b5d,0x3233752e74736e6f,0x5b202c3972250920\n" ".quad 0x342b736d61726170,0x627573090a3b5d38,0x722509203233752e,0x2c397225202c3031\n" ".quad 0x6e696d090a3b3120,0x722509203233752e,0x2c367225202c3131,0x090a3b3031722520\n" ".quad 0x6f6c2e34326c756d,0x722509203233732e,0x31317225202c3231,0x090a3b377225202c\n" ".quad 0x6f6c2e34326c756d,0x722509203233732e,0x32317225202c3331,0x090a3b387225202c\n" ".quad 0x203233752e627573,0x25202c3431722509,0x090a3b31202c3772,0x203233752e6e696d\n" ".quad 0x25202c3531722509,0x34317225202c3472,0x34326c756d090a3b,0x203233732e6f6c2e\n" ".quad 0x25202c3631722509,0x387225202c353172,0x732e646461090a3b,0x3731722509203233\n" ".quad 0x202c33317225202c,0x73090a3b36317225,0x09203233752e6275,0x7225202c38317225\n" ".quad 0x6d090a3b31202c38,0x09203233752e6e69,0x7225202c39317225,0x3b38317225202c32\n" ".quad 0x33732e646461090a,0x2c30327225092032,0x25202c3731722520,0x7473090a3b393172\n" ".quad 0x752e6d617261702e,0x635f5f5b09203233,0x5f66746572616475,0x636c616332315a5f\n" ".quad 0x6873614864697247,0x202c5d33746e6934,0x72090a3b30327225,0x57444c240a3b7465\n" ".quad 0x32315a5f5f646e65,0x64697247636c6163,0x746e693468736148,0x2f2f207d090a3a33\n" ".quad 0x6c616332315a5f20,0x7361486469724763,0x0a0a33746e693468,0x6c62697369762e09\n" ".quad 0x20636e75662e2065,0x5064646137315a5f,0x54656c6369747261,0x6e69346c6c65436f\n" ".quad 0x5f30536a506a3374,0x6d617261702e2820,0x206e67696c612e20,0x5f5f2038622e2034\n" ".quad 0x6d72617061647563,0x6137315a5f5f3166,0x6369747261506464,0x6c6c65436f54656c\n" ".quad 0x6a506a33746e6934,0x2c5d32315b5f3053,0x206d617261702e20,0x635f5f203233752e\n" ".quad 0x666d726170616475,0x646137315a5f5f32,0x6c63697472615064,0x346c6c65436f5465\n" ".quad 0x536a506a33746e69,0x7261702e202c5f30,0x203436752e206d61,0x6170616475635f5f\n" ".quad 0x315a5f5f33666d72,0x7472615064646137,0x65436f54656c6369,0x6a33746e69346c6c\n" ".quad 0x2e202c5f30536a50,0x752e206d61726170,0x6475635f5f203436,0x5f34666d72617061\n" ".quad 0x5064646137315a5f,0x54656c6369747261,0x6e69346c6c65436f,0x5f30536a506a3374\n" ".quad 0x722e090a7b090a29,0x203233752e206765,0x0a3b3e34333c7225,0x752e206765722e09\n" ".quad 0x313c647225203436,0x6f6c2e090a3b3e30,0x3331310937310963,0x6257444c240a3009\n" ".quad 0x315a5f5f6e696765,0x7472615064646137,0x65436f54656c6369,0x6a33746e69346c6c\n" ".quad 0x090a3a5f30536a50,0x6d617261702e646c,0x722509203233752e,0x75635f5f5b202c31\n" ".quad 0x31666d7261706164,0x64646137315a5f5f,0x656c636974726150,0x69346c6c65436f54\n" ".quad 0x30536a506a33746e,0x6d090a3b5d302b5f,0x09203233732e766f,0x317225202c327225\n" ".quad 0x61702e646c090a3b,0x203233752e6d6172,0x5f5b202c33722509,0x726170616475635f\n" ".quad 0x37315a5f5f31666d,0x6974726150646461,0x6c65436f54656c63,0x506a33746e69346c\n" ".quad 0x3b5d342b5f30536a,0x33732e766f6d090a,0x202c347225092032,0x646c090a3b337225\n" ".quad 0x752e6d617261702e,0x2c35722509203233,0x616475635f5f5b20,0x5f5f31666d726170\n" ".quad 0x615064646137315a,0x6f54656c63697472,0x746e69346c6c6543,0x2b5f30536a506a33\n" ".quad 0x766f6d090a3b5d38,0x722509203233732e,0x0a3b357225202c36,0x617261702e646c09\n" ".quad 0x2509203233752e6d,0x635f5f5b202c3772,0x666d726170616475,0x646137315a5f5f32\n" ".quad 0x6c63697472615064,0x346c6c65436f5465,0x536a506a33746e69,0x6f6d090a3b5d5f30\n" ".quad 0x2509203233732e76,0x3b377225202c3872,0x7261702e646c090a,0x09203436752e6d61\n" ".quad 0x5f5b202c31647225,0x726170616475635f,0x37315a5f5f33666d,0x6974726150646461\n" ".quad 0x6c65436f54656c63,0x506a33746e69346c,0x090a3b5d5f30536a,0x203436732e766f6d\n" ".quad 0x25202c3264722509,0x646c090a3b316472,0x752e6d617261702e,0x3364722509203436\n" ".quad 0x6475635f5f5b202c,0x5f34666d72617061,0x5064646137315a5f,0x54656c6369747261\n" ".quad 0x6e69346c6c65436f,0x5f30536a506a3374,0x2e766f6d090a3b5d,0x6472250920343673\n" ".quad 0x3b33647225202c34,0x3109636f6c2e090a,0x0a30093132310937,0x736e6f632e646c09\n" ".quad 0x2509203233752e74,0x7261705b202c3972,0x3b5d34342b736d61,0x33752e627573090a\n" ".quad 0x2c30317225092032,0x3b31202c39722520,0x6e6f632e646c090a,0x09203233752e7473\n" ".quad 0x705b202c31317225,0x38342b736d617261,0x2e627573090a3b5d,0x3172250920323375\n" ".quad 0x2c31317225202c32,0x2e646c090a3b3120,0x33752e74736e6f63,0x2c33317225092032\n" ".quad 0x736d617261705b20,0x73090a3b5d30342b,0x09203233752e6275,0x7225202c34317225\n" ".quad 0x090a3b31202c3331,0x203233752e6e696d,0x25202c3531722509,0x30317225202c3472\n" ".quad 0x752e6e696d090a3b,0x3631722509203233,0x25202c367225202c,0x696d090a3b323172\n" ".quad 0x2509203233752e6e,0x327225202c373172,0x0a3b34317225202c,0x6c2e34326c756d09\n" ".quad 0x2509203233732e6f,0x317225202c383172,0x3b33317225202c35,0x2e34326c756d090a\n" ".quad 0x09203233732e6f6c,0x7225202c39317225,0x3b397225202c3631,0x2e34326c756d090a\n" ".quad 0x09203233732e6f6c,0x7225202c30327225,0x33317225202c3931,0x732e646461090a3b\n" ".quad 0x3132722509203233,0x202c38317225202c,0x61090a3b30327225,0x09203233732e6464\n" ".quad 0x7225202c32327225,0x37317225202c3132,0x6c2e6c756d090a3b,0x2509203233752e6f\n" ".quad 0x327225202c333272,0x63090a3b34202c32,0x752e3436752e7476,0x3564722509203233\n" ".quad 0x0a3b33327225202c,0x3436752e64646109,0x202c366472250920,0x7225202c35647225\n" ".quad 0x766f6d090a3b3264,0x722509203233752e,0x090a3b31202c3432,0x6464612e6d6f7461\n" ".quad 0x722509203233752e,0x6472255b202c3532,0x34327225202c5d36,0x732e766f6d090a3b\n" ".quad 0x3632722509203233,0x0a3b35327225202c,0x373109636f6c2e09,0x090a300936323109\n" ".quad 0x74736e6f632e646c,0x722509203233752e,0x7261705b202c3732,0x3b5d34382b736d61\n" ".quad 0x33752e627573090a,0x2c38327225092032,0x31202c3732722520,0x752e6e696d090a3b\n" ".quad 0x3932722509203233,0x202c36327225202c,0x6d090a3b38327225,0x33752e6f6c2e6c75\n" ".quad 0x2c30337225092032,0x25202c3232722520,0x6461090a3b373272,0x2509203233752e64\n" ".quad 0x327225202c313372,0x3b30337225202c39,0x6f6c2e6c756d090a,0x722509203233752e\n" ".quad 0x31337225202c3233,0x7663090a3b34202c,0x33752e3436752e74,0x2c37647225092032\n" ".quad 0x090a3b3233722520,0x203436752e646461,0x25202c3864722509,0x647225202c376472\n" ".quad 0x752e7473090a3b34,0x6472255b09203233,0x7225202c5d302b38,0x636f6c2e090a3b38\n" ".quad 0x0937323109373109,0x0a3b746572090a30,0x5f646e6557444c24,0x5064646137315a5f\n" ".quad 0x54656c6369747261,0x6e69346c6c65436f,0x5f30536a506a3374,0x202f2f207d090a3a\n" ".quad 0x5064646137315a5f,0x54656c6369747261,0x6e69346c6c65436f,0x5f30536a506a3374\n" ".quad 0x697369762e090a0a,0x6e75662e20656c62,0x617261702e282063,0x6e67696c612e206d\n" ".quad 0x5f2038622e203420,0x746572616475635f,0x6f6334315a5f5f66,0x6870536564696c6c\n" ".quad 0x6f6c663673657265,0x535f535f53347461,0x5d32315b6666665f,0x6f6334315a5f2029\n" ".quad 0x6870536564696c6c,0x6f6c663673657265,0x535f535f53347461,0x702e28206666665f\n" ".quad 0x6c612e206d617261,0x2e203631206e6769,0x6475635f5f203862,0x5f31666d72617061\n" ".quad 0x6c6c6f6334315a5f,0x7265687053656469,0x74616f6c66367365,0x665f535f535f5334\n" ".quad 0x202c5d36315b6666,0x2e206d617261702e,0x3631206e67696c61,0x635f5f2038622e20\n" ".quad 0x666d726170616475,0x6f6334315a5f5f32,0x6870536564696c6c,0x6f6c663673657265\n" ".quad 0x535f535f53347461,0x5d36315b6666665f,0x6d617261702e202c,0x206e67696c612e20\n" ".quad 0x5f2038622e203631,0x726170616475635f,0x34315a5f5f33666d,0x536564696c6c6f63\n" ".quad 0x6636736572656870,0x535f533474616f6c,0x315b6666665f535f,0x7261702e202c5d36\n" ".quad 0x67696c612e206d61,0x38622e203631206e,0x70616475635f5f20,0x5a5f5f34666d7261\n" ".quad 0x64696c6c6f633431,0x7365726568705365,0x533474616f6c6636,0x6666665f535f535f\n" ".quad 0x702e202c5d36315b,0x33662e206d617261,0x616475635f5f2032,0x5f5f35666d726170\n" ".quad 0x696c6c6f6334315a,0x6572656870536564,0x3474616f6c663673,0x66665f535f535f53\n" ".quad 0x617261702e202c66,0x5f203233662e206d,0x726170616475635f,0x34315a5f5f36666d\n" ".quad 0x536564696c6c6f63,0x6636736572656870,0x535f533474616f6c,0x202c6666665f535f\n" ".quad 0x2e206d617261702e,0x75635f5f20323366,0x37666d7261706164,0x6c6f6334315a5f5f\n" ".quad 0x656870536564696c,0x616f6c6636736572,0x5f535f535f533474,0x0a7b090a29666666\n" ".quad 0x662e206765722e09,0x39373c6625203233,0x6765722e090a3b3e,0x2520646572702e20\n" ".quad 0x2e090a3b3e333c70,0x3209373109636f6c,0x444c240a30093930,0x5f5f6e6967656257\n" ".quad 0x696c6c6f6334315a,0x6572656870536564,0x3474616f6c663673,0x66665f535f535f53\n" ".quad 0x702e646c090a3a66,0x3233662e6d617261,0x5b202c3166250920,0x6170616475635f5f\n" ".quad 0x315a5f5f31666d72,0x6564696c6c6f6334,0x3673657265687053,0x5f533474616f6c66\n" ".quad 0x2b6666665f535f53,0x766f6d090a3b5d30,0x662509203233662e,0x0a3b316625202c32\n" ".quad 0x617261702e646c09,0x2509203233662e6d,0x635f5f5b202c3366,0x666d726170616475\n" ".quad 0x6f6334315a5f5f31,0x6870536564696c6c,0x6f6c663673657265,0x535f535f53347461\n" ".quad 0x3b5d342b6666665f,0x33662e766f6d090a,0x202c346625092032,0x646c090a3b336625\n" ".quad 0x662e6d617261702e,0x2c35662509203233,0x616475635f5f5b20,0x5f5f31666d726170\n" ".quad 0x696c6c6f6334315a,0x6572656870536564,0x3474616f6c663673,0x66665f535f535f53\n" ".quad 0x6d090a3b5d382b66,0x09203233662e766f,0x356625202c366625,0x61702e646c090a3b\n" ".quad 0x203233662e6d6172,0x5f5b202c37662509,0x726170616475635f,0x34315a5f5f32666d\n" ".quad 0x536564696c6c6f63,0x6636736572656870,0x535f533474616f6c,0x302b6666665f535f\n" ".quad 0x2e766f6d090a3b5d,0x3866250920323366,0x090a3b376625202c,0x6d617261702e646c\n" ".quad 0x662509203233662e,0x75635f5f5b202c39,0x32666d7261706164,0x6c6f6334315a5f5f\n" ".quad 0x656870536564696c,0x616f6c6636736572,0x5f535f535f533474,0x0a3b5d342b666666\n" ".quad 0x3233662e766f6d09,0x202c303166250920,0x646c090a3b396625,0x662e6d617261702e\n" ".quad 0x3131662509203233,0x6475635f5f5b202c,0x5f32666d72617061,0x6c6c6f6334315a5f\n" ".quad 0x7265687053656469,0x74616f6c66367365,0x665f535f535f5334,0x090a3b5d382b6666\n" ".quad 0x203233662e766f6d,0x25202c3231662509,0x646c090a3b313166,0x662e6d617261702e\n" ".quad 0x3331662509203233,0x6475635f5f5b202c,0x5f33666d72617061,0x6c6c6f6334315a5f\n" ".quad 0x7265687053656469,0x74616f6c66367365,0x665f535f535f5334,0x090a3b5d302b6666\n" ".quad 0x203233662e766f6d,0x25202c3431662509,0x646c090a3b333166,0x662e6d617261702e\n" ".quad 0x3531662509203233,0x6475635f5f5b202c,0x5f33666d72617061,0x6c6c6f6334315a5f\n" ".quad 0x7265687053656469,0x74616f6c66367365,0x665f535f535f5334,0x090a3b5d342b6666\n" ".quad 0x203233662e766f6d,0x25202c3631662509,0x646c090a3b353166,0x662e6d617261702e\n" ".quad 0x3731662509203233,0x6475635f5f5b202c,0x5f33666d72617061,0x6c6c6f6334315a5f\n" ".quad 0x7265687053656469,0x74616f6c66367365,0x665f535f535f5334,0x090a3b5d382b6666\n" ".quad 0x203233662e766f6d,0x25202c3831662509,0x646c090a3b373166,0x662e6d617261702e\n" ".quad 0x3931662509203233,0x6475635f5f5b202c,0x5f34666d72617061,0x6c6c6f6334315a5f\n" ".quad 0x7265687053656469,0x74616f6c66367365,0x665f535f535f5334,0x090a3b5d302b6666\n" ".quad 0x203233662e766f6d,0x25202c3032662509,0x646c090a3b393166,0x662e6d617261702e\n" ".quad 0x3132662509203233,0x6475635f5f5b202c,0x5f34666d72617061,0x6c6c6f6334315a5f\n" ".quad 0x7265687053656469,0x74616f6c66367365,0x665f535f535f5334,0x090a3b5d342b6666\n" ".quad 0x203233662e766f6d,0x25202c3232662509,0x646c090a3b313266,0x662e6d617261702e\n" ".quad 0x3332662509203233,0x6475635f5f5b202c,0x5f34666d72617061,0x6c6c6f6334315a5f\n" ".quad 0x7265687053656469,0x74616f6c66367365,0x665f535f535f5334,0x090a3b5d382b6666\n" ".quad 0x203233662e766f6d,0x25202c3432662509,0x646c090a3b333266,0x662e6d617261702e\n" ".quad 0x3532662509203233,0x6475635f5f5b202c,0x5f35666d72617061,0x6c6c6f6334315a5f\n" ".quad 0x7265687053656469,0x74616f6c66367365,0x665f535f535f5334,0x6f6d090a3b5d6666\n" ".quad 0x2509203233662e76,0x326625202c363266,0x702e646c090a3b35,0x3233662e6d617261\n" ".quad 0x202c373266250920,0x70616475635f5f5b,0x5a5f5f36666d7261,0x64696c6c6f633431\n" ".quad 0x7365726568705365,0x533474616f6c6636,0x6666665f535f535f,0x2e766f6d090a3b5d\n" ".quad 0x3266250920323366,0x3b37326625202c38,0x7261702e646c090a,0x09203233662e6d61\n" ".quad 0x5f5b202c39326625,0x726170616475635f,0x34315a5f5f37666d,0x536564696c6c6f63\n" ".quad 0x6636736572656870,0x535f533474616f6c,0x3b5d6666665f535f,0x33662e766f6d090a\n" ".quad 0x2c30336625092032,0x090a3b3932662520,0x203233662e646461,0x25202c3133662509\n" ".quad 0x326625202c363266,0x2e627573090a3b38,0x3366250920323366,0x2c30316625202c32\n" ".quad 0x73090a3b34662520,0x09203233662e6275,0x6625202c33336625,0x0a3b326625202c38\n" ".quad 0x3233662e62757309,0x202c343366250920,0x6625202c32316625,0x2e6c756d090a3b36\n" ".quad 0x3366250920323366,0x2c32336625202c35,0x090a3b3233662520,0x662e6e722e616d66\n" ".quad 0x3633662509203233,0x202c33336625202c,0x6625202c33336625,0x616d66090a3b3533\n" ".quad 0x203233662e6e722e,0x25202c3733662509,0x336625202c343366,0x3b36336625202c34\n" ".quad 0x722e74727173090a,0x2509203233662e6e,0x336625202c383366,0x70746573090a3b37\n" ".quad 0x203233662e74672e,0x6625202c31702509,0x38336625202c3133,0x3170252140090a3b\n" ".quad 0x4c24092061726220,0x323832315f335f74,0x09636f6c2e090a3b,0x3009303332093731\n" ".quad 0x33662e627573090a,0x2c39336625092032,0x25202c3032662520,0x7573090a3b343166\n" ".quad 0x2509203233662e62,0x326625202c303466,0x3b36316625202c32,0x33662e627573090a\n" ".quad 0x2c31346625092032,0x25202c3432662520,0x6372090a3b383166,0x3233662e6e722e70\n" ".quad 0x202c323466250920,0x6d090a3b38336625,0x09203233662e6c75,0x6625202c33346625\n" ".quad 0x32346625202c3233,0x662e6c756d090a3b,0x3434662509203233,0x202c33336625202c\n" ".quad 0x6d090a3b32346625,0x09203233662e6c75,0x6625202c35346625,0x32346625202c3433\n" ".quad 0x662e6c756d090a3b,0x3634662509203233,0x202c30346625202c,0x66090a3b33346625\n" ".quad 0x33662e6e722e616d,0x2c37346625092032,0x25202c3434662520,0x346625202c393366\n" ".quad 0x2e616d66090a3b36,0x09203233662e6e72,0x6625202c38346625,0x31346625202c3534\n" ".quad 0x0a3b37346625202c,0x3233662e6c756d09,0x202c393466250920,0x6625202c34346625\n" ".quad 0x627573090a3b3834,0x662509203233662e,0x39336625202c3035,0x0a3b39346625202c\n" ".quad 0x3233662e6c756d09,0x202c313566250920,0x6625202c33346625,0x627573090a3b3834\n" ".quad 0x662509203233662e,0x30346625202c3235,0x0a3b31356625202c,0x3233662e6c756d09\n" ".quad 0x202c333566250920,0x6625202c35346625,0x627573090a3b3834,0x662509203233662e\n" ".quad 0x31346625202c3435,0x0a3b33356625202c,0x373109636f6c2e09,0x090a300939333209\n" ".quad 0x203233662e627573,0x25202c3535662509,0x336625202c313366,0x632e646c090a3b38\n" ".quad 0x3233662e74736e6f,0x202c363566250920,0x2b736d617261705b,0x756d090a3b5d3838\n" ".quad 0x2509203233662e6c,0x356625202c373566,0x3b35356625202c36,0x6e6f632e646c090a\n" ".quad 0x09203233662e7473,0x705b202c38356625,0x32392b736d617261,0x632e646c090a3b5d\n" ".quad 0x3233662e74736e6f,0x202c393566250920,0x2b736d617261705b,0x756d090a3b5d3639\n" ".quad 0x2509203233662e6c,0x346625202c303666,0x3b37356625202c34,0x33662e6c756d090a\n" ".quad 0x2c31366625092032,0x25202c3933662520,0x7573090a3b383566,0x2509203233662e62\n" ".quad 0x366625202c323666,0x3b30366625202c31,0x6e722e616d66090a,0x662509203233662e\n" ".quad 0x30356625202c3336,0x202c39356625202c,0x66090a3b32366625,0x33662e6e722e616d\n" ".quad 0x2c34366625092032,0x25202c3033662520,0x366625202c333366,0x2e6c756d090a3b33\n" ".quad 0x3666250920323366,0x2c33346625202c35,0x090a3b3735662520,0x203233662e6c756d\n" ".quad 0x25202c3636662509,0x356625202c303466,0x2e627573090a3b38,0x3666250920323366\n" ".quad 0x2c36366625202c37,0x090a3b3536662520,0x662e6e722e616d66,0x3836662509203233\n" ".quad 0x202c32356625202c,0x6625202c39356625,0x616d66090a3b3736,0x203233662e6e722e\n" ".quad 0x25202c3936662509,0x336625202c303366,0x3b38366625202c32,0x33662e6c756d090a\n" ".quad 0x2c30376625092032,0x25202c3534662520,0x756d090a3b373566,0x2509203233662e6c\n" ".quad 0x346625202c313766,0x3b38356625202c31,0x33662e627573090a,0x2c32376625092032\n" ".quad 0x25202c3137662520,0x6d66090a3b303766,0x3233662e6e722e61,0x202c333766250920\n" ".quad 0x6625202c34356625,0x32376625202c3935,0x722e616d66090a3b,0x2509203233662e6e\n" ".quad 0x336625202c343766,0x2c34336625202c30,0x090a3b3337662520,0x20696e752e617262\n" ".quad 0x315f335f744c2409,0x744c240a3b363230,0x3a323832315f335f,0x33662e766f6d090a\n" ".quad 0x2c34376625092032,0x3030303030663020,0x202020203b303030,0x6d090a30202f2f09\n" ".quad 0x09203233662e766f,0x6630202c39366625,0x3030303030303030,0x2f2f09202020203b\n" ".quad 0x2e766f6d090a3020,0x3666250920323366,0x3030306630202c34,0x20203b3030303030\n" ".quad 0x0a30202f2f092020,0x30315f335f744c24,0x6f6c2e090a3a3632,0x3234320937310963\n" ".quad 0x2e766f6d090a3009,0x3766250920323366,0x3b34366625202c35,0x7261702e7473090a\n" ".quad 0x09203233662e6d61,0x72616475635f5f5b,0x34315a5f5f667465,0x536564696c6c6f63\n" ".quad 0x6636736572656870,0x535f533474616f6c,0x302b6666665f535f,0x3b35376625202c5d\n" ".quad 0x33662e766f6d090a,0x2c36376625092032,0x090a3b3936662520,0x6d617261702e7473\n" ".quad 0x5f5b09203233662e,0x746572616475635f,0x6f6334315a5f5f66,0x6870536564696c6c\n" ".quad 0x6f6c663673657265,0x535f535f53347461,0x2c5d342b6666665f,0x090a3b3637662520\n" ".quad 0x203233662e766f6d,0x25202c3737662509,0x7473090a3b343766,0x662e6d617261702e\n" ".quad 0x635f5f5b09203233,0x5f66746572616475,0x6c6c6f6334315a5f,0x7265687053656469\n" ".quad 0x74616f6c66367365,0x665f535f535f5334,0x25202c5d382b6666,0x6572090a3b373766\n" ".quad 0x6557444c240a3b74,0x6334315a5f5f646e,0x70536564696c6c6f,0x6c66367365726568\n" ".quad 0x5f535f533474616f,0x090a3a6666665f53,0x315a5f202f2f207d,0x6564696c6c6f6334\n" ".quad 0x3673657265687053,0x5f533474616f6c66,0x0a6666665f535f53,0x6c61626f6c672e09\n" ".quad 0x6665727865742e20,0x54736f50646c6f20,0x6c672e090a3b7865,0x65742e206c61626f\n" ".quad 0x646c6f2066657278,0x0a3b7865546c6556,0x6c61626f6c672e09,0x6665727865742e20\n" ".quad 0x756f436469726720,0x786554737265746e,0x626f6c672e090a3b,0x727865742e206c61\n" ".quad 0x4364697267206665,0x3b786554736c6c65,0x697369762e090a0a,0x6e75662e20656c62\n" ".quad 0x617261702e282063,0x6e67696c612e206d,0x5f2038622e203420,0x746572616475635f\n" ".quad 0x6f6331315a5f5f66,0x6c65436564696c6c,0x366a33746e69346c,0x30533474616f6c66\n" ".quad 0x5f31535f3053505f,0x32315b5f32536a50,0x6331315a5f20295d,0x65436564696c6c6f\n" ".quad 0x6a33746e69346c6c,0x533474616f6c6636,0x31535f3053505f30,0x28205f32536a505f\n" ".quad 0x2e206d617261702e,0x2034206e67696c61,0x75635f5f2038622e,0x31666d7261706164\n" ".quad 0x6c6f6331315a5f5f,0x6c6c65436564696c,0x66366a33746e6934,0x5f30533474616f6c\n" ".quad 0x505f31535f305350,0x5d32315b5f32536a,0x6d617261702e202c,0x5f5f203233752e20\n" ".quad 0x6d72617061647563,0x6331315a5f5f3266,0x65436564696c6c6f,0x6a33746e69346c6c\n" ".quad 0x533474616f6c6636,0x31535f3053505f30,0x202c5f32536a505f,0x2e206d617261702e\n" ".quad 0x3631206e67696c61,0x635f5f2038622e20,0x666d726170616475,0x6f6331315a5f5f33\n" ".quad 0x6c65436564696c6c,0x366a33746e69346c,0x30533474616f6c66,0x5f31535f3053505f\n" ".quad 0x36315b5f32536a50,0x617261702e202c5d,0x6e67696c612e206d,0x2038622e20363120\n" ".quad 0x6170616475635f5f,0x315a5f5f34666d72,0x6564696c6c6f6331,0x746e69346c6c6543\n" ".quad 0x74616f6c66366a33,0x5f3053505f305334,0x5f32536a505f3153,0x702e202c5d36315b\n" ".quad 0x36752e206d617261,0x616475635f5f2034,0x5f5f35666d726170,0x696c6c6f6331315a\n" ".quad 0x69346c6c65436564,0x6f6c66366a33746e,0x53505f3053347461,0x536a505f31535f30\n" ".quad 0x7261702e202c5f32,0x203436752e206d61,0x6170616475635f5f,0x315a5f5f36666d72\n" ".quad 0x6564696c6c6f6331,0x746e69346c6c6543,0x74616f6c66366a33,0x5f3053505f305334\n" ".quad 0x5f32536a505f3153,0x6d617261702e202c,0x5f5f203436752e20,0x6d72617061647563\n" ".quad 0x6331315a5f5f3766,0x65436564696c6c6f,0x6a33746e69346c6c,0x533474616f6c6636\n" ".quad 0x31535f3053505f30,0x202c5f32536a505f,0x2e206d617261702e,0x75635f5f20343675\n" ".quad 0x38666d7261706164,0x6c6f6331315a5f5f,0x6c6c65436564696c,0x66366a33746e6934\n" ".quad 0x5f30533474616f6c,0x505f31535f305350,0x7b090a295f32536a,0x2e206765722e090a\n" ".quad 0x373c722520323375,0x65722e090a3b3e34,0x25203233662e2067,0x090a3b3e33383c66\n" ".quad 0x72702e206765722e,0x32313c7025206465,0x636f6c2e090a3b3e,0x0937353209373109\n" ".quad 0x656257444c240a30,0x31315a5f5f6e6967,0x436564696c6c6f63,0x33746e69346c6c65\n" ".quad 0x3474616f6c66366a,0x535f3053505f3053,0x3a5f32536a505f31,0x7261702e646c090a\n" ".quad 0x09203233752e6d61,0x5f5f5b202c317225,0x6d72617061647563,0x6331315a5f5f3166\n" ".quad 0x65436564696c6c6f,0x6a33746e69346c6c,0x533474616f6c6636,0x31535f3053505f30\n" ".quad 0x302b5f32536a505f,0x2e766f6d090a3b5d,0x3272250920323373,0x090a3b317225202c\n" ".quad 0x6d617261702e646c,0x722509203233752e,0x75635f5f5b202c33,0x31666d7261706164\n" ".quad 0x6c6f6331315a5f5f,0x6c6c65436564696c,0x66366a33746e6934,0x5f30533474616f6c\n" ".quad 0x505f31535f305350,0x3b5d342b5f32536a,0x33732e766f6d090a,0x202c347225092032\n" ".quad 0x646c090a3b337225,0x752e6d617261702e,0x2c35722509203233,0x616475635f5f5b20\n" ".quad 0x5f5f31666d726170,0x696c6c6f6331315a,0x69346c6c65436564,0x6f6c66366a33746e\n" ".quad 0x53505f3053347461,0x536a505f31535f30,0x090a3b5d382b5f32,0x203233732e766f6d\n" ".quad 0x7225202c36722509,0x702e646c090a3b35,0x3233752e6d617261,0x5b202c3772250920\n" ".quad 0x6170616475635f5f,0x315a5f5f32666d72,0x6564696c6c6f6331,0x746e69346c6c6543\n" ".quad 0x74616f6c66366a33,0x5f3053505f305334,0x5f32536a505f3153,0x2e766f6d090a3b5d\n" ".quad 0x3872250920323373,0x090a3b377225202c,0x6d617261702e646c,0x662509203233662e\n" ".quad 0x75635f5f5b202c31,0x33666d7261706164,0x6c6f6331315a5f5f,0x6c6c65436564696c\n" ".quad 0x66366a33746e6934,0x5f30533474616f6c,0x505f31535f305350,0x3b5d302b5f32536a\n" ".quad 0x33662e766f6d090a,0x202c326625092032,0x646c090a3b316625,0x662e6d617261702e\n" ".quad 0x2c33662509203233,0x616475635f5f5b20,0x5f5f33666d726170,0x696c6c6f6331315a\n" ".quad 0x69346c6c65436564,0x6f6c66366a33746e,0x53505f3053347461,0x536a505f31535f30\n" ".quad 0x090a3b5d342b5f32,0x203233662e766f6d,0x6625202c34662509,0x702e646c090a3b33\n" ".quad 0x3233662e6d617261,0x5b202c3566250920,0x6170616475635f5f,0x315a5f5f33666d72\n" ".quad 0x6564696c6c6f6331,0x746e69346c6c6543,0x74616f6c66366a33,0x5f3053505f305334\n" ".quad 0x5f32536a505f3153,0x6f6d090a3b5d382b,0x2509203233662e76,0x3b356625202c3666\n" ".quad 0x7261702e646c090a,0x09203233662e6d61,0x5f5f5b202c376625,0x6d72617061647563\n" ".quad 0x6331315a5f5f3466,0x65436564696c6c6f,0x6a33746e69346c6c,0x533474616f6c6636\n" ".quad 0x31535f3053505f30,0x302b5f32536a505f,0x2e766f6d090a3b5d,0x3866250920323366\n" ".quad 0x090a3b376625202c,0x6d617261702e646c,0x662509203233662e,0x75635f5f5b202c39\n" ".quad 0x34666d7261706164,0x6c6f6331315a5f5f,0x6c6c65436564696c,0x66366a33746e6934\n" ".quad 0x5f30533474616f6c,0x505f31535f305350,0x3b5d342b5f32536a,0x33662e766f6d090a\n" ".quad 0x2c30316625092032,0x6c090a3b39662520,0x2e6d617261702e64,0x3166250920323366\n" ".quad 0x75635f5f5b202c31,0x34666d7261706164,0x6c6f6331315a5f5f,0x6c6c65436564696c\n" ".quad 0x66366a33746e6934,0x5f30533474616f6c,0x505f31535f305350,0x3b5d382b5f32536a\n" ".quad 0x33662e766f6d090a,0x2c32316625092032,0x090a3b3131662520,0x203233752e766f6d\n" ".quad 0x3b30202c39722509,0x6c2e70746573090a,0x2509203233732e74,0x2c327225202c3170\n" ".quad 0x40090a3b39722520,0x2061726220317025,0x395f345f744c2409,0x646c090a3b383132\n" ".quad 0x752e74736e6f632e,0x3031722509203233,0x6d617261705b202c,0x090a3b5d30342b73\n" ".quad 0x203233752e627573,0x25202c3131722509,0x0a3b31202c303172,0x74672e7074657309\n" ".quad 0x702509203233752e,0x202c327225202c32,0x40090a3b31317225,0x2061726220327025\n" ".quad 0x395f345f744c2409,0x6f6d090a3b383132,0x2509203233752e76,0x0a3b30202c323172\n" ".quad 0x746c2e7074657309,0x702509203233732e,0x202c347225202c33,0x40090a3b32317225\n" ".quad 0x2061726220337025,0x395f345f744c2409,0x646c090a3b383132,0x752e74736e6f632e\n" ".quad 0x3331722509203233,0x6d617261705b202c,0x090a3b5d34342b73,0x203233752e627573\n" ".quad 0x25202c3431722509,0x0a3b31202c333172,0x74672e7074657309,0x702509203233752e\n" ".quad 0x202c347225202c34,0x40090a3b34317225,0x2061726220347025,0x395f345f744c2409\n" ".quad 0x6f6d090a3b383132,0x2509203233752e76,0x0a3b30202c353172,0x746c2e7074657309\n" ".quad 0x702509203233732e,0x202c367225202c35,0x40090a3b35317225,0x2061726220357025\n" ".quad 0x395f345f744c2409,0x646c090a3b383132,0x752e74736e6f632e,0x3631722509203233\n" ".quad 0x6d617261705b202c,0x090a3b5d38342b73,0x203233752e627573,0x25202c3731722509\n" ".quad 0x0a3b31202c363172,0x656c2e7074657309,0x702509203233752e,0x202c367225202c36\n" ".quad 0x40090a3b37317225,0x2061726220367025,0x38345f345f4c2409,0x5f744c240a3b3636\n" ".quad 0x0a3a383132395f34,0x3231355f345f4c24,0x636f6c2e090a3a32,0x0933363209373109\n" ".quad 0x662e766f6d090a30,0x3331662509203233,0x303030306630202c,0x2020203b30303030\n" ".quad 0x090a30202f2f0920,0x203233662e766f6d,0x30202c3431662509,0x3030303030303066\n" ".quad 0x2f09202020203b30,0x766f6d090a30202f,0x662509203233662e,0x30306630202c3531\n" ".quad 0x203b303030303030,0x30202f2f09202020,0x6e752e617262090a,0x3242424c24092069\n" ".quad 0x6f6331315a5f5f38,0x6c65436564696c6c,0x366a33746e69346c,0x30533474616f6c66\n" ".quad 0x5f31535f3053505f,0x240a3b5f32536a50,0x363638345f345f4c,0x09636f6c2e090a3a\n" ".quad 0x3009363632093731,0x33752e6e696d090a,0x2c38317225092032,0x7225202c34722520\n" ".quad 0x6e696d090a3b3431,0x722509203233752e,0x2c367225202c3931,0x090a3b3731722520\n" ".quad 0x6f6c2e34326c756d,0x722509203233732e,0x38317225202c3032,0x0a3b30317225202c\n" ".quad 0x6c2e34326c756d09,0x2509203233732e6f,0x317225202c313272,0x3b33317225202c39\n" ".quad 0x2e34326c756d090a,0x09203233732e6f6c,0x7225202c32327225,0x30317225202c3132\n" ".quad 0x732e646461090a3b,0x3332722509203233,0x202c30327225202c,0x6d090a3b32327225\n" ".quad 0x09203233752e6e69,0x7225202c34327225,0x3b31317225202c32,0x33732e646461090a\n" ".quad 0x2c35327225092032,0x25202c3332722520,0x6f6d090a3b343272,0x2509203233752e76\n" ".quad 0x327225202c363272,0x2e766f6d090a3b35,0x3272250920323373,0x6d090a3b30202c37\n" ".quad 0x09203233752e766f,0x7225202c38327225,0x766f6d090a3b3732,0x722509203233732e\n" ".quad 0x090a3b30202c3932,0x203233752e766f6d,0x25202c3033722509,0x6f6d090a3b393272\n" ".quad 0x2509203233732e76,0x0a3b30202c313372,0x3233752e766f6d09,0x202c323372250920\n" ".quad 0x74090a3b31337225,0x34762e64312e7865,0x3233732e3233752e,0x252c333372257b20\n" ".quad 0x353372252c343372,0x5b2c7d363372252c,0x6e756f4364697267,0x2c78655473726574\n" ".quad 0x72252c363272257b,0x2c303372252c3832,0x0a3b5d7d32337225,0x373109636f6c2e09\n" ".quad 0x090a300939363209,0x203233732e766f6d,0x25202c3733722509,0x646c090a3b333372\n" ".quad 0x752e74736e6f632e,0x3833722509203233,0x6d617261705b202c,0x090a3b5d34382b73\n" ".quad 0x203233752e627573,0x25202c3933722509,0x0a3b31202c383372,0x3233752e6e696d09\n" ".quad 0x202c303472250920,0x7225202c39337225,0x766f6d090a3b3733,0x722509203233752e\n" ".quad 0x090a3b30202c3134,0x2e71652e70746573,0x3770250920323375,0x202c30347225202c\n" ".quad 0x40090a3b31347225,0x2061726220377025,0x395f345f744c2409,0x6f6d090a3b303337\n" ".quad 0x2509203233732e76,0x347225202c323472,0x2e6c756d090a3b30,0x09203233752e6f6c\n" ".quad 0x7225202c33347225,0x38337225202c3532,0x732e766f6d090a3b,0x3434722509203233\n" ".quad 0x0a3b33347225202c,0x3233752e64646109,0x202c353472250920,0x7225202c30347225\n" ".quad 0x766f6d090a3b3334,0x662509203233662e,0x30306630202c3631,0x203b303030303030\n" ".quad 0x30202f2f09202020,0x33662e766f6d090a,0x2c37316625092032,0x3030303030663020\n" ".quad 0x202020203b303030,0x6d090a30202f2f09,0x09203233662e766f,0x6630202c38316625\n" ".quad 0x3030303030303030,0x2f2f09202020203b,0x2e766f6d090a3020,0x3472250920323373\n" ".quad 0x3b32347225202c36,0x365f345f744c240a,0x2f2f200a3a343139,0x4c203e706f6f6c3c\n" ".quad 0x79646f6220706f6f,0x363220656e696c20,0x697473656e202c39,0x687470656420676e\n" ".quad 0x747365202c31203a,0x6920646574616d69,0x6e6f697461726574,0x6f6e6b6e75203a73\n" ".quad 0x2e766f6d090a6e77,0x3472250920323375,0x3b34347225202c37,0x33732e766f6d090a\n" ".quad 0x2c38347225092032,0x766f6d090a3b3020,0x722509203233752e,0x38347225202c3934\n" ".quad 0x732e766f6d090a3b,0x3035722509203233,0x6f6d090a3b30202c,0x2509203233752e76\n" ".quad 0x357225202c313572,0x2e766f6d090a3b30,0x3572250920323373,0x6d090a3b30202c32\n" ".quad 0x09203233752e766f,0x7225202c33357225,0x786574090a3b3235,0x752e34762e64312e\n" ".quad 0x7b203233732e3233,0x3572252c34357225,0x252c363572252c35,0x72675b2c7d373572\n" ".quad 0x54736c6c65436469,0x373472257b2c7865,0x72252c393472252c,0x7d333572252c3135\n" ".quad 0x6c3c2f2f200a3b5d,0x726150203e706f6f,0x6f6f6c20666f2074,0x6c2079646f622070\n" ".quad 0x2c39363220656e69,0x616c206461656820,0x4c242064656c6562,0x343139365f345f74\n" ".quad 0x3109636f6c2e090a,0x0a30093337320937,0x3233732e766f6d09,0x202c383572250920\n" ".quad 0x73090a3b34357225,0x752e71652e707465,0x2c38702509203233,0x7225202c38722520\n" ".quad 0x702540090a3b3835,0x2409206172622038,0x3731375f345f744c,0x6c3c2f2f200a3b30\n" ".quad 0x726150203e706f6f,0x6f6f6c20666f2074,0x6c2079646f622070,0x2c39363220656e69\n" ".quad 0x616c206461656820,0x4c242064656c6562,0x343139365f345f74,0x33752e766f6d090a\n" ".quad 0x2c39357225092032,0x090a3b3835722520,0x203233732e766f6d,0x30202c3036722509\n" ".quad 0x752e766f6d090a3b,0x3136722509203233,0x0a3b30367225202c,0x3233732e766f6d09\n" ".quad 0x202c323672250920,0x2e766f6d090a3b30,0x3672250920323375,0x3b32367225202c33\n" ".quad 0x33732e766f6d090a,0x2c34367225092032,0x766f6d090a3b3020,0x722509203233752e\n" ".quad 0x34367225202c3536,0x312e786574090a3b,0x3233662e34762e64,0x66257b203233732e\n" ".quad 0x2c303266252c3931,0x3266252c31326625,0x50646c6f5b2c7d32,0x257b2c786554736f\n" ".quad 0x313672252c393572,0x72252c333672252c,0x2f200a3b5d7d3536,0x203e706f6f6c3c2f\n" ".quad 0x20666f2074726150,0x646f6220706f6f6c,0x3220656e696c2079,0x64616568202c3936\n" ".quad 0x64656c6562616c20,0x365f345f744c2420,0x6f6c2e090a343139,0x3637320937310963\n" ".quad 0x2e766f6d090a3009,0x3266250920323366,0x3b39316625202c33,0x33662e766f6d090a\n" ".quad 0x2c34326625092032,0x090a3b3032662520,0x203233662e766f6d,0x25202c3532662509\n" ".quad 0x6f6d090a3b313266,0x2509203233752e76,0x357225202c363672,0x2e766f6d090a3b38\n" ".quad 0x3672250920323373,0x6d090a3b30202c37,0x09203233752e766f,0x7225202c38367225\n" ".quad 0x766f6d090a3b3736,0x722509203233732e,0x090a3b30202c3936,0x203233752e766f6d\n" ".quad 0x25202c3037722509,0x6f6d090a3b393672,0x2509203233732e76,0x0a3b30202c313772\n" ".quad 0x3233752e766f6d09,0x202c323772250920,0x74090a3b31377225,0x34762e64312e7865\n" ".quad 0x3233732e3233662e,0x252c363266257b20,0x383266252c373266,0x5b2c7d393266252c\n" ".quad 0x65546c6556646c6f,0x2c363672257b2c78,0x3772252c38367225,0x5d7d323772252c30\n" ".quad 0x6f6c3c2f2f200a3b,0x74726150203e706f,0x706f6f6c20666f20,0x696c2079646f6220\n" ".quad 0x202c39363220656e,0x62616c2064616568,0x744c242064656c65,0x0a343139365f345f\n" ".quad 0x373109636f6c2e09,0x090a300937373209,0x203233662e766f6d,0x25202c3033662509\n" ".quad 0x6f6d090a3b363266,0x2509203233662e76,0x326625202c313366,0x2e766f6d090a3b37\n" ".quad 0x3366250920323366,0x3b38326625202c32,0x3109636f6c2e090a,0x0a30093038320937\n" ".quad 0x3233662e62757309,0x202c333366250920,0x6625202c34326625,0x2e627573090a3b34\n" ".quad 0x3366250920323366,0x2c33326625202c34,0x73090a3b32662520,0x09203233662e6275\n" ".quad 0x6625202c35336625,0x3b366625202c3532,0x6e6f632e646c090a,0x09203233662e7473\n" ".quad 0x705b202c36336625,0x36332b736d617261,0x2e646461090a3b5d,0x3366250920323366\n" ".quad 0x2c36336625202c37,0x090a3b3633662520,0x203233662e6c756d,0x25202c3833662509\n" ".quad 0x336625202c333366,0x2e616d66090a3b33,0x09203233662e6e72,0x6625202c39336625\n" ".quad 0x34336625202c3433,0x0a3b38336625202c,0x2e6e722e616d6609,0x3466250920323366\n" ".quad 0x2c35336625202c30,0x25202c3533662520,0x7173090a3b393366,0x33662e6e722e7472\n" ".quad 0x2c31346625092032,0x090a3b3034662520,0x2e74672e70746573,0x3970250920323366\n" ".quad 0x202c37336625202c,0x40090a3b31346625,0x6172622039702521,0x5f345f744c240920\n" ".quad 0x2f200a3b38333937,0x203e706f6f6c3c2f,0x20666f2074726150,0x646f6220706f6f6c\n" ".quad 0x3220656e696c2079,0x64616568202c3936,0x64656c6562616c20,0x365f345f744c2420\n" ".quad 0x6f6c2e090a343139,0x3033320937310963,0x2e627573090a3009,0x3466250920323366\n" ".quad 0x2c30336625202c32,0x73090a3b38662520,0x09203233662e6275,0x6625202c33346625\n" ".quad 0x30316625202c3133,0x662e627573090a3b,0x3434662509203233,0x202c32336625202c\n" ".quad 0x72090a3b32316625,0x33662e6e722e7063,0x2c35346625092032,0x090a3b3134662520\n" ".quad 0x203233662e6c756d,0x25202c3634662509,0x346625202c333366,0x2e6c756d090a3b35\n" ".quad 0x3466250920323366,0x2c34336625202c37,0x090a3b3534662520,0x203233662e6c756d\n" ".quad 0x25202c3834662509,0x346625202c353366,0x2e6c756d090a3b35,0x3466250920323366\n" ".quad 0x2c33346625202c39,0x090a3b3634662520,0x662e6e722e616d66,0x3035662509203233\n" ".quad 0x202c37346625202c,0x6625202c32346625,0x616d66090a3b3934,0x203233662e6e722e\n" ".quad 0x25202c3135662509,0x346625202c383466,0x3b30356625202c34,0x33662e6c756d090a\n" ".quad 0x2c32356625092032,0x25202c3734662520,0x7573090a3b313566,0x2509203233662e62\n" ".quad 0x346625202c333566,0x3b32356625202c32,0x33662e6c756d090a,0x2c34356625092032\n" ".quad 0x25202c3634662520,0x7573090a3b313566,0x2509203233662e62,0x346625202c353566\n" ".quad 0x3b34356625202c33,0x33662e6c756d090a,0x2c36356625092032,0x25202c3834662520\n" ".quad 0x7573090a3b313566,0x2509203233662e62,0x346625202c373566,0x3b36356625202c34\n" ".quad 0x3109636f6c2e090a,0x0a30093933320937,0x3233662e62757309,0x202c383566250920\n" ".quad 0x6625202c37336625,0x2e646c090a3b3134,0x33662e74736e6f63,0x2c39356625092032\n" ".quad 0x736d617261705b20,0x6d090a3b5d38382b,0x09203233662e6c75,0x6625202c30366625\n" ".quad 0x38356625202c3935,0x6f632e646c090a3b,0x203233662e74736e,0x5b202c3136662509\n" ".quad 0x312b736d61726170,0x646c090a3b5d3030,0x662e74736e6f632e,0x3236662509203233\n" ".quad 0x6d617261705b202c,0x090a3b5d32392b73,0x74736e6f632e646c,0x662509203233662e\n" ".quad 0x7261705b202c3336,0x3b5d36392b736d61,0x33662e6c756d090a,0x2c34366625092032\n" ".quad 0x25202c3734662520,0x756d090a3b303666,0x2509203233662e6c,0x346625202c353666\n" ".quad 0x3b32366625202c32,0x33662e627573090a,0x2c36366625092032,0x25202c3536662520\n" ".quad 0x6d66090a3b343666,0x3233662e6e722e61,0x202c373666250920,0x6625202c33356625\n" ".quad 0x36366625202c3336,0x722e616d66090a3b,0x2509203233662e6e,0x336625202c383666\n" ".quad 0x2c31366625202c34,0x090a3b3736662520,0x203233662e6c756d,0x25202c3936662509\n" ".quad 0x366625202c363466,0x2e6c756d090a3b30,0x3766250920323366,0x2c33346625202c30\n" ".quad 0x090a3b3236662520,0x203233662e627573,0x25202c3137662509,0x366625202c303766\n" ".quad 0x2e616d66090a3b39,0x09203233662e6e72,0x6625202c32376625,0x33366625202c3535\n" ".quad 0x0a3b31376625202c,0x2e6e722e616d6609,0x3766250920323366,0x2c33336625202c33\n" ".quad 0x25202c3136662520,0x756d090a3b323766,0x2509203233662e6c,0x346625202c343766\n" ".quad 0x3b30366625202c38,0x33662e6c756d090a,0x2c35376625092032,0x25202c3434662520\n" ".quad 0x7573090a3b323666,0x2509203233662e62,0x376625202c363766,0x3b34376625202c35\n" ".quad 0x6e722e616d66090a,0x662509203233662e,0x37356625202c3737,0x202c33366625202c\n" ".quad 0x66090a3b36376625,0x33662e6e722e616d,0x2c38376625092032,0x25202c3533662520\n" ".quad 0x376625202c313666,0x2e617262090a3b37,0x744c240920696e75,0x3b323836375f345f\n" ".quad 0x375f345f744c240a,0x2f2f200a3a383339,0x50203e706f6f6c3c,0x6c20666f20747261\n" ".quad 0x79646f6220706f6f,0x363220656e696c20,0x2064616568202c39,0x2064656c6562616c\n" ".quad 0x39365f345f744c24,0x2e766f6d090a3431,0x3766250920323366,0x3030306630202c38\n" ".quad 0x20203b3030303030,0x0a30202f2f092020,0x3233662e766f6d09,0x202c333766250920\n" ".quad 0x3030303030306630,0x09202020203b3030,0x6f6d090a30202f2f,0x2509203233662e76\n" ".quad 0x306630202c383666,0x3b30303030303030,0x202f2f0920202020,0x5f345f744c240a30\n" ".quad 0x2f200a3a32383637,0x203e706f6f6c3c2f,0x20666f2074726150,0x646f6220706f6f6c\n" ".quad 0x3220656e696c2079,0x64616568202c3936,0x64656c6562616c20,0x365f345f744c2420\n" ".quad 0x6f6c2e090a343139,0x3138320937310963,0x2e646461090a3009,0x3166250920323366\n" ".quad 0x2c38366625202c38,0x090a3b3831662520,0x203233662e646461,0x25202c3731662509\n" ".quad 0x316625202c333766,0x2e646461090a3b37,0x3166250920323366,0x2c38376625202c36\n" ".quad 0x240a3b3631662520,0x3731375f345f744c,0x6c3c2f2f200a3a30,0x726150203e706f6f\n" ".quad 0x6f6f6c20666f2074,0x6c2079646f622070,0x2c39363220656e69,0x616c206461656820\n" ".quad 0x4c242064656c6562,0x343139365f345f74,0x33752e646461090a,0x2c34347225092032\n" ".quad 0x31202c3434722520,0x2e70746573090a3b,0x09203233752e656e,0x7225202c30317025\n" ".quad 0x35347225202c3434,0x3031702540090a3b,0x4c24092061726220,0x343139365f345f74\n" ".quad 0x752e617262090a3b,0x5f744c240920696e,0x0a3b323034365f34,0x37395f345f744c24\n" ".quad 0x766f6d090a3a3033,0x662509203233662e,0x30306630202c3631,0x203b303030303030\n" ".quad 0x30202f2f09202020,0x33662e766f6d090a,0x2c37316625092032,0x3030303030663020\n" ".quad 0x202020203b303030,0x6d090a30202f2f09,0x09203233662e766f,0x6630202c38316625\n" ".quad 0x3030303030303030,0x2f2f09202020203b,0x345f744c240a3020,0x090a3a323034365f\n" ".quad 0x09373109636f6c2e,0x6d090a3009353832,0x09203233662e766f,0x6625202c33316625\n" ".quad 0x766f6d090a3b3831,0x662509203233662e,0x37316625202c3431,0x662e766f6d090a3b\n" ".quad 0x3531662509203233,0x0a3b36316625202c,0x5f5f383242424c24,0x696c6c6f6331315a\n" ".quad 0x69346c6c65436564,0x6f6c66366a33746e,0x53505f3053347461,0x536a505f31535f30\n" ".quad 0x766f6d090a3a5f32,0x662509203233662e,0x33316625202c3937,0x61702e7473090a3b\n" ".quad 0x203233662e6d6172,0x616475635f5f5b09,0x315a5f5f66746572,0x6564696c6c6f6331\n" ".quad 0x746e69346c6c6543,0x74616f6c66366a33,0x5f3053505f305334,0x5f32536a505f3153\n" ".quad 0x376625202c5d302b,0x2e766f6d090a3b39,0x3866250920323366,0x3b34316625202c30\n" ".quad 0x7261702e7473090a,0x09203233662e6d61,0x72616475635f5f5b,0x31315a5f5f667465\n" ".quad 0x436564696c6c6f63,0x33746e69346c6c65,0x3474616f6c66366a,0x535f3053505f3053\n" ".quad 0x2b5f32536a505f31,0x30386625202c5d34,0x662e766f6d090a3b,0x3138662509203233\n" ".quad 0x0a3b35316625202c,0x617261702e747309,0x5b09203233662e6d,0x6572616475635f5f\n" ".quad 0x6331315a5f5f6674,0x65436564696c6c6f,0x6a33746e69346c6c,0x533474616f6c6636\n" ".quad 0x31535f3053505f30,0x382b5f32536a505f,0x3b31386625202c5d,0x240a3b746572090a\n" ".quad 0x5f5f646e6557444c,0x696c6c6f6331315a,0x69346c6c65436564,0x6f6c66366a33746e\n" ".quad 0x53505f3053347461,0x536a505f31535f30,0x2f207d090a3a5f32,0x6f6331315a5f202f\n" ".quad 0x6c65436564696c6c,0x366a33746e69346c,0x30533474616f6c66,0x5f31535f3053505f\n" ".quad 0x2e090a5f32536a50,0x2e206c61626f6c67,0x7020666572786574,0x48656c6369747261\n" ".quad 0x0a3b786554687361,0x6c61626f6c672e09,0x6665727865742e20,0x6174536c6c656320\n" ".quad 0x0a0a3b7865547472,0x6c62697369762e09,0x20636e75662e2065,0x206d617261702e28\n" ".quad 0x34206e67696c612e,0x635f5f2038622e20,0x5f66746572616475,0x6c6c6f6332315a5f\n" ".quad 0x326c6c6543656469,0x66366a33746e6934,0x5f30533474616f6c,0x505f31535f305350\n" ".quad 0x6a5032746e697535,0x5a5f20295d32315b,0x64696c6c6f633231,0x6934326c6c654365\n" ".quad 0x6f6c66366a33746e,0x53505f3053347461,0x7535505f31535f30,0x28206a5032746e69\n" ".quad 0x2e206d617261702e,0x2034206e67696c61,0x75635f5f2038622e,0x31666d7261706164\n" ".quad 0x6c6f6332315a5f5f,0x6c6c65436564696c,0x366a33746e693432,0x30533474616f6c66\n" ".quad 0x5f31535f3053505f,0x5032746e69753550,0x2e202c5d32315b6a,0x752e206d61726170\n" ".quad 0x6475635f5f203233,0x5f32666d72617061,0x6c6c6f6332315a5f,0x326c6c6543656469\n" ".quad 0x66366a33746e6934,0x5f30533474616f6c,0x505f31535f305350,0x6a5032746e697535\n" ".quad 0x6d617261702e202c,0x206e67696c612e20,0x5f2038622e203631,0x726170616475635f\n" ".quad 0x32315a5f5f33666d,0x436564696c6c6f63,0x746e6934326c6c65,0x74616f6c66366a33\n" ".quad 0x5f3053505f305334,0x6e697535505f3153,0x5d36315b6a503274,0x6d617261702e202c\n" ".quad 0x206e67696c612e20,0x5f2038622e203631,0x726170616475635f,0x32315a5f5f34666d\n" ".quad 0x436564696c6c6f63,0x746e6934326c6c65,0x74616f6c66366a33,0x5f3053505f305334\n" ".quad 0x6e697535505f3153,0x5d36315b6a503274,0x6d617261702e202c,0x5f5f203436752e20\n" ".quad 0x6d72617061647563,0x6332315a5f5f3566,0x65436564696c6c6f,0x33746e6934326c6c\n" ".quad 0x3474616f6c66366a,0x535f3053505f3053,0x746e697535505f31,0x61702e202c6a5032\n" ".quad 0x3436752e206d6172,0x70616475635f5f20,0x5a5f5f36666d7261,0x64696c6c6f633231\n" ".quad 0x6934326c6c654365,0x6f6c66366a33746e,0x53505f3053347461,0x7535505f31535f30\n" ".quad 0x202c6a5032746e69,0x2e206d617261702e,0x75635f5f20343675,0x37666d7261706164\n" ".quad 0x6c6f6332315a5f5f,0x6c6c65436564696c,0x366a33746e693432,0x30533474616f6c66\n" ".quad 0x5f31535f3053505f,0x5032746e69753550,0x617261702e202c6a,0x5f203436752e206d\n" ".quad 0x726170616475635f,0x32315a5f5f38666d,0x436564696c6c6f63,0x746e6934326c6c65\n" ".quad 0x74616f6c66366a33,0x5f3053505f305334,0x6e697535505f3153,0x7b090a296a503274\n" ".quad 0x2e206765722e090a,0x373c722520323375,0x65722e090a3b3e32,0x25203233662e2067\n" ".quad 0x090a3b3e33383c66,0x72702e206765722e,0x34313c7025206465,0x636f6c2e090a3b3e\n" ".quad 0x0939393209373109,0x656257444c240a30,0x32315a5f5f6e6967,0x436564696c6c6f63\n" ".quad 0x746e6934326c6c65,0x74616f6c66366a33,0x5f3053505f305334,0x6e697535505f3153\n" ".quad 0x6c090a3a6a503274,0x2e6d617261702e64,0x3172250920323375,0x6475635f5f5b202c\n" ".quad 0x5f31666d72617061,0x6c6c6f6332315a5f,0x326c6c6543656469,0x66366a33746e6934\n" ".quad 0x5f30533474616f6c,0x505f31535f305350,0x6a5032746e697535,0x6f6d090a3b5d302b\n" ".quad 0x2509203233732e76,0x3b317225202c3272,0x7261702e646c090a,0x09203233752e6d61\n" ".quad 0x5f5f5b202c337225,0x6d72617061647563,0x6332315a5f5f3166,0x65436564696c6c6f\n" ".quad 0x33746e6934326c6c,0x3474616f6c66366a,0x535f3053505f3053,0x746e697535505f31\n" ".quad 0x0a3b5d342b6a5032,0x3233732e766f6d09,0x25202c3472250920,0x2e646c090a3b3372\n" ".quad 0x33752e6d61726170,0x202c357225092032,0x70616475635f5f5b,0x5a5f5f31666d7261\n" ".quad 0x64696c6c6f633231,0x6934326c6c654365,0x6f6c66366a33746e,0x53505f3053347461\n" ".quad 0x7535505f31535f30,0x382b6a5032746e69,0x2e766f6d090a3b5d,0x3672250920323373\n" ".quad 0x090a3b357225202c,0x6d617261702e646c,0x722509203233752e,0x75635f5f5b202c37\n" ".quad 0x32666d7261706164,0x6c6f6332315a5f5f,0x6c6c65436564696c,0x366a33746e693432\n" ".quad 0x30533474616f6c66,0x5f31535f3053505f,0x5032746e69753550,0x766f6d090a3b5d6a\n" ".quad 0x722509203233732e,0x0a3b377225202c38,0x617261702e646c09,0x2509203233662e6d\n" ".quad 0x635f5f5b202c3166,0x666d726170616475,0x6f6332315a5f5f33,0x6c65436564696c6c\n" ".quad 0x6a33746e6934326c,0x533474616f6c6636,0x31535f3053505f30,0x32746e697535505f\n" ".quad 0x090a3b5d302b6a50,0x203233662e766f6d,0x6625202c32662509,0x702e646c090a3b31\n" ".quad 0x3233662e6d617261,0x5b202c3366250920,0x6170616475635f5f,0x315a5f5f33666d72\n" ".quad 0x6564696c6c6f6332,0x6e6934326c6c6543,0x616f6c66366a3374,0x3053505f30533474\n" ".quad 0x697535505f31535f,0x5d342b6a5032746e,0x662e766f6d090a3b,0x2c34662509203233\n" ".quad 0x6c090a3b33662520,0x2e6d617261702e64,0x3566250920323366,0x6475635f5f5b202c\n" ".quad 0x5f33666d72617061,0x6c6c6f6332315a5f,0x326c6c6543656469,0x66366a33746e6934\n" ".quad 0x5f30533474616f6c,0x505f31535f305350,0x6a5032746e697535,0x6f6d090a3b5d382b\n" ".quad 0x2509203233662e76,0x3b356625202c3666,0x7261702e646c090a,0x09203233662e6d61\n" ".quad 0x5f5f5b202c376625,0x6d72617061647563,0x6332315a5f5f3466,0x65436564696c6c6f\n" ".quad 0x33746e6934326c6c,0x3474616f6c66366a,0x535f3053505f3053,0x746e697535505f31\n" ".quad 0x0a3b5d302b6a5032,0x3233662e766f6d09,0x25202c3866250920,0x2e646c090a3b3766\n" ".quad 0x33662e6d61726170,0x202c396625092032,0x70616475635f5f5b,0x5a5f5f34666d7261\n" ".quad 0x64696c6c6f633231,0x6934326c6c654365,0x6f6c66366a33746e,0x53505f3053347461\n" ".quad 0x7535505f31535f30,0x342b6a5032746e69,0x2e766f6d090a3b5d,0x3166250920323366\n" ".quad 0x0a3b396625202c30,0x617261702e646c09,0x2509203233662e6d,0x5f5f5b202c313166\n" ".quad 0x6d72617061647563,0x6332315a5f5f3466,0x65436564696c6c6f,0x33746e6934326c6c\n" ".quad 0x3474616f6c66366a,0x535f3053505f3053,0x746e697535505f31,0x0a3b5d382b6a5032\n" ".quad 0x3233662e766f6d09,0x202c323166250920,0x6d090a3b31316625,0x09203233752e766f\n" ".quad 0x0a3b30202c397225,0x746c2e7074657309,0x702509203233732e,0x202c327225202c31\n" ".quad 0x2540090a3b397225,0x0920617262203170,0x31315f355f744c24,0x646c090a3b303130\n" ".quad 0x752e74736e6f632e,0x3031722509203233,0x6d617261705b202c,0x090a3b5d30342b73\n" ".quad 0x203233752e627573,0x25202c3131722509,0x0a3b31202c303172,0x74672e7074657309\n" ".quad 0x702509203233752e,0x202c327225202c32,0x40090a3b31317225,0x2061726220327025\n" ".quad 0x315f355f744c2409,0x6d090a3b30313031,0x09203233752e766f,0x3b30202c32317225\n" ".quad 0x6c2e70746573090a,0x2509203233732e74,0x2c347225202c3370,0x090a3b3231722520\n" ".quad 0x6172622033702540,0x5f355f744c240920,0x090a3b3031303131,0x74736e6f632e646c\n" ".quad 0x722509203233752e,0x7261705b202c3331,0x3b5d34342b736d61,0x33752e627573090a\n" ".quad 0x2c34317225092032,0x31202c3331722520,0x2e70746573090a3b,0x09203233752e7467\n" ".quad 0x347225202c347025,0x0a3b34317225202c,0x7262203470254009,0x355f744c24092061\n" ".quad 0x0a3b30313031315f,0x3233752e766f6d09,0x202c353172250920,0x70746573090a3b30\n" ".quad 0x203233732e746c2e,0x7225202c35702509,0x3b35317225202c36,0x622035702540090a\n" ".quad 0x5f744c2409206172,0x3b30313031315f35,0x6e6f632e646c090a,0x09203233752e7473\n" ".quad 0x705b202c36317225,0x38342b736d617261,0x2e627573090a3b5d,0x3172250920323375\n" ".quad 0x2c36317225202c37,0x746573090a3b3120,0x3233752e656c2e70,0x25202c3670250920\n" ".quad 0x37317225202c3672,0x2036702540090a3b,0x5f4c240920617262,0x0a3b363431365f35\n" ".quad 0x31315f355f744c24,0x5f4c240a3a303130,0x0a3a323034365f35,0x373109636f6c2e09\n" ".quad 0x090a300935303309,0x203233662e766f6d,0x30202c3331662509,0x3030303030303066\n" ".quad 0x2f09202020203b30,0x766f6d090a30202f,0x662509203233662e,0x30306630202c3431\n" ".quad 0x203b303030303030,0x30202f2f09202020,0x33662e766f6d090a,0x2c35316625092032\n" ".quad 0x3030303030663020,0x202020203b303030,0x62090a30202f2f09,0x0920696e752e6172\n" ".quad 0x5f5f313342424c24,0x696c6c6f6332315a,0x34326c6c65436564,0x6c66366a33746e69\n" ".quad 0x505f30533474616f,0x35505f31535f3053,0x3b6a5032746e6975,0x31365f355f4c240a\n" ".quad 0x6f6c2e090a3a3634,0x3830330937310963,0x2e6e696d090a3009,0x3172250920323375\n" ".quad 0x202c347225202c38,0x6d090a3b34317225,0x09203233752e6e69,0x7225202c39317225\n" ".quad 0x3b37317225202c36,0x2e34326c756d090a,0x09203233732e6f6c,0x7225202c30327225\n" ".quad 0x30317225202c3831,0x34326c756d090a3b,0x203233732e6f6c2e,0x25202c3132722509\n" ".quad 0x317225202c393172,0x326c756d090a3b33,0x3233732e6f6c2e34,0x202c323272250920\n" ".quad 0x7225202c31327225,0x646461090a3b3031,0x722509203233732e,0x30327225202c3332\n" ".quad 0x0a3b32327225202c,0x3233752e6e696d09,0x202c343272250920,0x317225202c327225\n" ".quad 0x2e646461090a3b31,0x3272250920323373,0x2c33327225202c35,0x090a3b3432722520\n" ".quad 0x203233752e766f6d,0x25202c3632722509,0x6f6d090a3b353272,0x2509203233732e76\n" ".quad 0x0a3b30202c373272,0x3233752e766f6d09,0x202c383272250920,0x6d090a3b37327225\n" ".quad 0x09203233732e766f,0x3b30202c39327225,0x33752e766f6d090a,0x2c30337225092032\n" ".quad 0x090a3b3932722520,0x203233732e766f6d,0x30202c3133722509,0x752e766f6d090a3b\n" ".quad 0x3233722509203233,0x0a3b31337225202c,0x2e64312e78657409,0x732e3233752e3476\n" ".quad 0x333372257b203233,0x72252c343372252c,0x7d363372252c3533,0x74536c6c65635b2c\n" ".quad 0x7b2c786554747261,0x3272252c36327225,0x252c303372252c38,0x090a3b5d7d323372\n" ".quad 0x09373109636f6c2e,0x6d090a3009313133,0x09203233732e766f,0x7225202c37337225\n" ".quad 0x766f6d090a3b3333,0x722509203233752e,0x0a3b312d202c3833,0x656e2e7074657309\n" ".quad 0x702509203233752e,0x2c37337225202c37,0x090a3b3833722520,0x6172622037702540\n" ".quad 0x5f355f744c240920,0x2e090a3b32383637,0x3309373109636f6c,0x6f6d090a30093331\n" ".quad 0x2509203233662e76,0x306630202c333166,0x3b30303030303030,0x202f2f0920202020\n" ".quad 0x662e766f6d090a30,0x3431662509203233,0x303030306630202c,0x2020203b30303030\n" ".quad 0x090a30202f2f0920,0x203233662e766f6d,0x30202c3531662509,0x3030303030303066\n" ".quad 0x2f09202020203b30,0x617262090a30202f,0x4c240920696e752e,0x315a5f5f31334242\n" ".quad 0x6564696c6c6f6332,0x6e6934326c6c6543,0x616f6c66366a3374,0x3053505f30533474\n" ".quad 0x697535505f31535f,0x240a3b6a5032746e,0x3836375f355f744c,0x632e646c090a3a32\n" ".quad 0x3233752e74736e6f,0x202c393372250920,0x2b736d617261705b,0x6f6d090a3b5d3438\n" ".quad 0x2509203233752e76,0x0a3b30202c303472,0x71652e7074657309,0x702509203233752e\n" ".quad 0x2c39337225202c38,0x090a3b3034722520,0x6172622038702540,0x5f355f744c240920\n" ".quad 0x090a3b3232353131,0x203233732e766f6d,0x25202c3134722509,0x6f6d090a3b393372\n" ".quad 0x2509203233732e76,0x337225202c323472,0x2e766f6d090a3b37,0x3166250920323366\n" ".quad 0x3030306630202c36,0x20203b3030303030,0x0a30202f2f092020,0x3233662e766f6d09\n" ".quad 0x202c373166250920,0x3030303030306630,0x09202020203b3030,0x6f6d090a30202f2f\n" ".quad 0x2509203233662e76,0x306630202c383166,0x3b30303030303030,0x202f2f0920202020\n" ".quad 0x732e766f6d090a30,0x3334722509203233,0x0a3b31347225202c,0x37385f355f744c24\n" ".quad 0x3c2f2f200a3a3630,0x6f4c203e706f6f6c,0x2079646f6220706f,0x33313320656e696c\n" ".quad 0x6e697473656e202c,0x3a68747065642067,0x69747365202c3120,0x746920646574616d\n" ".quad 0x736e6f6974617265,0x776f6e6b6e75203a,0x752e766f6d090a6e,0x3434722509203233\n" ".quad 0x0a3b32347225202c,0x3233732e766f6d09,0x202c353472250920,0x2e766f6d090a3b30\n" ".quad 0x3472250920323375,0x3b35347225202c36,0x33732e766f6d090a,0x2c37347225092032\n" ".quad 0x766f6d090a3b3020,0x722509203233752e,0x37347225202c3834,0x732e766f6d090a3b\n" ".quad 0x3934722509203233,0x6f6d090a3b30202c,0x2509203233752e76,0x347225202c303572\n" ".quad 0x2e786574090a3b39,0x33752e34762e6431,0x257b203233732e32,0x323572252c313572\n" ".quad 0x72252c333572252c,0x7261705b2c7d3435,0x736148656c636974,0x72257b2c78655468\n" ".quad 0x2c363472252c3434,0x3572252c38347225,0x2f2f200a3b5d7d30,0x50203e706f6f6c3c\n" ".quad 0x6c20666f20747261,0x79646f6220706f6f,0x313320656e696c20,0x2064616568202c33\n" ".quad 0x2064656c6562616c,0x37385f355f744c24,0x636f6c2e090a3630,0x0938313309373109\n" ".quad 0x732e766f6d090a30,0x3535722509203233,0x0a3b31357225202c,0x373109636f6c2e09\n" ".quad 0x090a300939313309,0x2e656e2e70746573,0x3970250920323375,0x202c35327225202c\n" ".quad 0x40090a3b35357225,0x2061726220397025,0x385f355f744c2409,0x2f2f200a3b343931\n" ".quad 0x50203e706f6f6c3c,0x6c20666f20747261,0x79646f6220706f6f,0x313320656e696c20\n" ".quad 0x2064616568202c33,0x2064656c6562616c,0x37385f355f744c24,0x70746573090a3630\n" ".quad 0x203233752e71652e,0x25202c3031702509,0x387225202c323472,0x3031702540090a3b\n" ".quad 0x4c24092061726220,0x323639385f355f74,0x6f6c3c2f2f200a3b,0x74726150203e706f\n" ".quad 0x706f6f6c20666f20,0x696c2079646f6220,0x202c33313320656e,0x62616c2064616568\n" ".quad 0x744c242064656c65,0x0a363037385f355f,0x3233752e766f6d09,0x202c363572250920\n" ".quad 0x6d090a3b32347225,0x09203233732e766f,0x3b30202c37357225,0x33752e766f6d090a\n" ".quad 0x2c38357225092032,0x090a3b3735722520,0x203233732e766f6d,0x30202c3935722509\n" ".quad 0x752e766f6d090a3b,0x3036722509203233,0x0a3b39357225202c,0x3233732e766f6d09\n" ".quad 0x202c313672250920,0x2e766f6d090a3b30,0x3672250920323375,0x3b31367225202c32\n" ".quad 0x64312e786574090a,0x2e3233662e34762e,0x3166257b20323373,0x252c303266252c39\n" ".quad 0x323266252c313266,0x6f50646c6f5b2c7d,0x72257b2c78655473,0x2c383572252c3635\n" ".quad 0x3672252c30367225,0x2f2f200a3b5d7d32,0x50203e706f6f6c3c,0x6c20666f20747261\n" ".quad 0x79646f6220706f6f,0x313320656e696c20,0x2064616568202c33,0x2064656c6562616c\n" ".quad 0x37385f355f744c24,0x636f6c2e090a3630,0x0932323309373109,0x662e766f6d090a30\n" ".quad 0x3332662509203233,0x0a3b39316625202c,0x3233662e766f6d09,0x202c343266250920\n" ".quad 0x6d090a3b30326625,0x09203233662e766f,0x6625202c35326625,0x766f6d090a3b3132\n" ".quad 0x722509203233752e,0x32347225202c3336,0x732e766f6d090a3b,0x3436722509203233\n" ".quad 0x6f6d090a3b30202c,0x2509203233752e76,0x367225202c353672,0x2e766f6d090a3b34\n" ".quad 0x3672250920323373,0x6d090a3b30202c36,0x09203233752e766f,0x7225202c37367225\n" ".quad 0x766f6d090a3b3636,0x722509203233732e,0x090a3b30202c3836,0x203233752e766f6d\n" ".quad 0x25202c3936722509,0x6574090a3b383672,0x2e34762e64312e78,0x203233732e323366\n" ".quad 0x66252c363266257b,0x2c383266252c3732,0x6f5b2c7d39326625,0x7865546c6556646c\n" ".quad 0x252c333672257b2c,0x373672252c353672,0x3b5d7d393672252c,0x6f6f6c3c2f2f200a\n" ".quad 0x2074726150203e70,0x20706f6f6c20666f,0x6e696c2079646f62,0x68202c3331332065\n" ".quad 0x6562616c20646165,0x5f744c242064656c,0x090a363037385f35,0x09373109636f6c2e\n" ".quad 0x6d090a3009333233,0x09203233662e766f,0x6625202c30336625,0x766f6d090a3b3632\n" ".quad 0x662509203233662e,0x37326625202c3133,0x662e766f6d090a3b,0x3233662509203233\n" ".quad 0x0a3b38326625202c,0x373109636f6c2e09,0x090a300936323309,0x203233662e627573\n" ".quad 0x25202c3333662509,0x346625202c343266,0x662e627573090a3b,0x3433662509203233\n" ".quad 0x202c33326625202c,0x7573090a3b326625,0x2509203233662e62,0x326625202c353366\n" ".quad 0x0a3b366625202c35,0x736e6f632e646c09,0x2509203233662e74,0x61705b202c363366\n" ".quad 0x5d36332b736d6172,0x662e646461090a3b,0x3733662509203233,0x202c36336625202c\n" ".quad 0x6d090a3b36336625,0x09203233662e6c75,0x6625202c38336625,0x33336625202c3333\n" ".quad 0x722e616d66090a3b,0x2509203233662e6e,0x336625202c393366,0x2c34336625202c34\n" ".quad 0x090a3b3833662520,0x662e6e722e616d66,0x3034662509203233,0x202c35336625202c\n" ".quad 0x6625202c35336625,0x727173090a3b3933,0x3233662e6e722e74,0x202c313466250920\n" ".quad 0x73090a3b30346625,0x662e74672e707465,0x3131702509203233,0x202c37336625202c\n" ".quad 0x40090a3b31346625,0x7262203131702521,0x355f744c24092061,0x200a3b303337395f\n" ".quad 0x3e706f6f6c3c2f2f,0x666f207472615020,0x6f6220706f6f6c20,0x20656e696c207964\n" ".quad 0x616568202c333133,0x656c6562616c2064,0x5f355f744c242064,0x6c2e090a36303738\n" ".quad 0x333209373109636f,0x627573090a300930,0x662509203233662e,0x30336625202c3234\n" ".quad 0x090a3b386625202c,0x203233662e627573,0x25202c3334662509,0x316625202c313366\n" ".quad 0x2e627573090a3b30,0x3466250920323366,0x2c32336625202c34,0x090a3b3231662520\n" ".quad 0x662e6e722e706372,0x3534662509203233,0x0a3b31346625202c,0x3233662e6c756d09\n" ".quad 0x202c363466250920,0x6625202c33336625,0x6c756d090a3b3534,0x662509203233662e\n" ".quad 0x34336625202c3734,0x0a3b35346625202c,0x3233662e6c756d09,0x202c383466250920\n" ".quad 0x6625202c35336625,0x6c756d090a3b3534,0x662509203233662e,0x33346625202c3934\n" ".quad 0x0a3b36346625202c,0x2e6e722e616d6609,0x3566250920323366,0x2c37346625202c30\n" ".quad 0x25202c3234662520,0x6d66090a3b393466,0x3233662e6e722e61,0x202c313566250920\n" ".quad 0x6625202c38346625,0x30356625202c3434,0x662e6c756d090a3b,0x3235662509203233\n" ".quad 0x202c37346625202c,0x73090a3b31356625,0x09203233662e6275,0x6625202c33356625\n" ".quad 0x32356625202c3234,0x662e6c756d090a3b,0x3435662509203233,0x202c36346625202c\n" ".quad 0x73090a3b31356625,0x09203233662e6275,0x6625202c35356625,0x34356625202c3334\n" ".quad 0x662e6c756d090a3b,0x3635662509203233,0x202c38346625202c,0x73090a3b31356625\n" ".quad 0x09203233662e6275,0x6625202c37356625,0x36356625202c3434,0x09636f6c2e090a3b\n" ".quad 0x3009393332093731,0x33662e627573090a,0x2c38356625092032,0x25202c3733662520\n" ".quad 0x646c090a3b313466,0x662e74736e6f632e,0x3935662509203233,0x6d617261705b202c\n" ".quad 0x090a3b5d38382b73,0x203233662e6c756d,0x25202c3036662509,0x356625202c393566\n" ".quad 0x632e646c090a3b38,0x3233662e74736e6f,0x202c313666250920,0x2b736d617261705b\n" ".quad 0x6c090a3b5d303031,0x2e74736e6f632e64,0x3666250920323366,0x617261705b202c32\n" ".quad 0x0a3b5d32392b736d,0x736e6f632e646c09,0x2509203233662e74,0x61705b202c333666\n" ".quad 0x5d36392b736d6172,0x662e6c756d090a3b,0x3436662509203233,0x202c37346625202c\n" ".quad 0x6d090a3b30366625,0x09203233662e6c75,0x6625202c35366625,0x32366625202c3234\n" ".quad 0x662e627573090a3b,0x3636662509203233,0x202c35366625202c,0x66090a3b34366625\n" ".quad 0x33662e6e722e616d,0x2c37366625092032,0x25202c3335662520,0x366625202c333666\n" ".quad 0x2e616d66090a3b36,0x09203233662e6e72,0x6625202c38366625,0x31366625202c3433\n" ".quad 0x0a3b37366625202c,0x3233662e6c756d09,0x202c393666250920,0x6625202c36346625\n" ".quad 0x6c756d090a3b3036,0x662509203233662e,0x33346625202c3037,0x0a3b32366625202c\n" ".quad 0x3233662e62757309,0x202c313766250920,0x6625202c30376625,0x616d66090a3b3936\n" ".quad 0x203233662e6e722e,0x25202c3237662509,0x366625202c353566,0x3b31376625202c33\n" ".quad 0x6e722e616d66090a,0x662509203233662e,0x33336625202c3337,0x202c31366625202c\n" ".quad 0x6d090a3b32376625,0x09203233662e6c75,0x6625202c34376625,0x30366625202c3834\n" ".quad 0x662e6c756d090a3b,0x3537662509203233,0x202c34346625202c,0x73090a3b32366625\n" ".quad 0x09203233662e6275,0x6625202c36376625,0x34376625202c3537,0x722e616d66090a3b\n" ".quad 0x2509203233662e6e,0x356625202c373766,0x2c33366625202c37,0x090a3b3637662520\n" ".quad 0x662e6e722e616d66,0x3837662509203233,0x202c35336625202c,0x6625202c31366625\n" ".quad 0x617262090a3b3737,0x4c240920696e752e,0x343734395f355f74,0x5f355f744c240a3b\n" ".quad 0x2f200a3a30333739,0x203e706f6f6c3c2f,0x20666f2074726150,0x646f6220706f6f6c\n" ".quad 0x3320656e696c2079,0x64616568202c3331,0x64656c6562616c20,0x385f355f744c2420\n" ".quad 0x766f6d090a363037,0x662509203233662e,0x30306630202c3837,0x203b303030303030\n" ".quad 0x30202f2f09202020,0x33662e766f6d090a,0x2c33376625092032,0x3030303030663020\n" ".quad 0x202020203b303030,0x6d090a30202f2f09,0x09203233662e766f,0x6630202c38366625\n" ".quad 0x3030303030303030,0x2f2f09202020203b,0x355f744c240a3020,0x200a3a343734395f\n" ".quad 0x3e706f6f6c3c2f2f,0x666f207472615020,0x6f6220706f6f6c20,0x20656e696c207964\n" ".quad 0x616568202c333133,0x656c6562616c2064,0x5f355f744c242064,0x6c2e090a36303738\n" ".quad 0x323309373109636f,0x646461090a300937,0x662509203233662e,0x38366625202c3831\n" ".quad 0x0a3b38316625202c,0x3233662e64646109,0x202c373166250920,0x6625202c33376625\n" ".quad 0x646461090a3b3731,0x662509203233662e,0x38376625202c3631,0x0a3b36316625202c\n" ".quad 0x39385f355f744c24,0x3c2f2f200a3a3236,0x6150203e706f6f6c,0x6f6c20666f207472\n" ".quad 0x2079646f6220706f,0x33313320656e696c,0x6c2064616568202c,0x242064656c656261\n" ".quad 0x3037385f355f744c,0x09636f6c2e090a36,0x3009363133093731,0x33752e646461090a\n" ".quad 0x2c32347225092032,0x31202c3234722520,0x752e646461090a3b,0x3037722509203233\n" ".quad 0x202c37337225202c,0x73090a3b39337225,0x752e656e2e707465,0x3231702509203233\n" ".quad 0x202c32347225202c,0x40090a3b30377225,0x6172622032317025,0x5f355f744c240920\n" ".quad 0x62090a3b36303738,0x0920696e752e6172,0x31385f355f744c24,0x5f744c240a3b3439\n" ".quad 0x3a32323531315f35,0x33662e766f6d090a,0x2c36316625092032,0x3030303030663020\n" ".quad 0x202020203b303030,0x6d090a30202f2f09,0x09203233662e766f,0x6630202c37316625\n" ".quad 0x3030303030303030,0x2f2f09202020203b,0x2e766f6d090a3020,0x3166250920323366\n" ".quad 0x3030306630202c38,0x20203b3030303030,0x0a30202f2f092020,0x31385f355f744c24\n" ".quad 0x5f744c240a3a3439,0x090a3a3835325f35,0x09373109636f6c2e,0x6d090a3009313333\n" ".quad 0x09203233662e766f,0x6625202c33316625,0x766f6d090a3b3831,0x662509203233662e\n" ".quad 0x37316625202c3431,0x662e766f6d090a3b,0x3531662509203233,0x0a3b36316625202c\n" ".quad 0x5f5f313342424c24,0x696c6c6f6332315a,0x34326c6c65436564,0x6c66366a33746e69\n" ".quad 0x505f30533474616f,0x35505f31535f3053,0x3a6a5032746e6975,0x33662e766f6d090a\n" ".quad 0x2c39376625092032,0x090a3b3331662520,0x6d617261702e7473,0x5f5b09203233662e\n" ".quad 0x746572616475635f,0x6f6332315a5f5f66,0x6c65436564696c6c,0x6a33746e6934326c\n" ".quad 0x533474616f6c6636,0x31535f3053505f30,0x32746e697535505f,0x25202c5d302b6a50\n" ".quad 0x6f6d090a3b393766,0x2509203233662e76,0x316625202c303866,0x702e7473090a3b34\n" ".quad 0x3233662e6d617261,0x6475635f5f5b0920,0x5a5f5f6674657261,0x64696c6c6f633231\n" ".quad 0x6934326c6c654365,0x6f6c66366a33746e,0x53505f3053347461,0x7535505f31535f30\n" ".quad 0x342b6a5032746e69,0x3b30386625202c5d,0x33662e766f6d090a,0x2c31386625092032\n" ".quad 0x090a3b3531662520,0x6d617261702e7473,0x5f5b09203233662e,0x746572616475635f\n" ".quad 0x6f6332315a5f5f66,0x6c65436564696c6c,0x6a33746e6934326c,0x533474616f6c6636\n" ".quad 0x31535f3053505f30,0x32746e697535505f,0x25202c5d382b6a50,0x6572090a3b313866\n" ".quad 0x6557444c240a3b74,0x6332315a5f5f646e,0x65436564696c6c6f,0x33746e6934326c6c\n" ".quad 0x3474616f6c66366a,0x535f3053505f3053,0x746e697535505f31,0x207d090a3a6a5032\n" ".quad 0x6332315a5f202f2f,0x65436564696c6c6f,0x33746e6934326c6c,0x3474616f6c66366a\n" ".quad 0x535f3053505f3053,0x746e697535505f31,0x652e090a0a6a5032,0x395a5f207972746e\n" ".quad 0x7461726765746e69,0x74616f6c66365065,0x535f30535f305334,0x09090a2820665f30\n" ".quad 0x2e206d617261702e,0x75635f5f20343675,0x5f5f6d7261706164,0x726765746e69395a\n" ".quad 0x6f6c663650657461,0x30535f3053347461,0x656e5f665f30535f,0x09090a2c736f5077\n" ".quad 0x2e206d617261702e,0x75635f5f20343675,0x5f5f6d7261706164,0x726765746e69395a\n" ".quad 0x6f6c663650657461,0x30535f3053347461,0x656e5f665f30535f,0x09090a2c6c655677\n" ".quad 0x2e206d617261702e,0x75635f5f20343675,0x5f5f6d7261706164,0x726765746e69395a\n" ".quad 0x6f6c663650657461,0x30535f3053347461,0x6c6f5f665f30535f,0x09090a2c736f5064\n" ".quad 0x2e206d617261702e,0x75635f5f20343675,0x5f5f6d7261706164,0x726765746e69395a\n" ".quad 0x6f6c663650657461,0x30535f3053347461,0x6c6f5f665f30535f,0x09090a2c6c655664\n" ".quad 0x2e206d617261702e,0x75635f5f20323366,0x5f5f6d7261706164,0x726765746e69395a\n" ".quad 0x6f6c663650657461,0x30535f3053347461,0x65645f665f30535f,0x29656d695461746c\n" ".quad 0x65722e090a7b090a,0x25203233752e2067,0x2e090a3b3e383c72,0x3436752e20676572\n" ".quad 0x3e31313c64722520,0x206765722e090a3b,0x3c6625203233662e,0x722e090a3b3e3734\n" ".quad 0x646572702e206765,0x0a3b3e383c702520,0x373109636f6c2e09,0x4c240a3009313609\n" ".quad 0x5f6e696765625744,0x6765746e69395a5f,0x6c66365065746172,0x535f30533474616f\n" ".quad 0x0a3a665f30535f30,0x373109636f6c2e09,0x63090a3009353609,0x752e3233732e7476\n" ".quad 0x2c31722509203233,0x2e64696174632520,0x2e747663090a3b78,0x203233752e323373\n" ".quad 0x6e25202c32722509,0x090a3b782e646974,0x6f6c2e34326c756d,0x722509203233732e\n" ".quad 0x202c317225202c33,0x6f6d090a3b327225,0x2509203233752e76,0x64697425202c3472\n" ".quad 0x646461090a3b782e,0x722509203233752e,0x202c337225202c35,0x756d090a3b347225\n" ".quad 0x3233752e6f6c2e6c,0x25202c3672250920,0x0a3b3631202c3572,0x3436752e74766309\n" ".quad 0x722509203233752e,0x3b367225202c3164,0x7261702e646c090a,0x09203436752e6d61\n" ".quad 0x5f5b202c32647225,0x726170616475635f,0x746e69395a5f5f6d,0x3650657461726765\n" ".quad 0x30533474616f6c66,0x665f30535f30535f,0x5d736f50646c6f5f,0x752e646461090a3b\n" ".quad 0x3364722509203436,0x202c32647225202c,0x6c090a3b31647225,0x6c61626f6c672e64\n" ".quad 0x203233662e34762e,0x66252c3166257b09,0x66252c3366252c32,0x6472255b202c7d34\n" ".quad 0x2e090a3b5d302b33,0x3609373109636f6c,0x2e646c090a300936,0x36752e6d61726170\n" ".quad 0x2c34647225092034,0x616475635f5f5b20,0x395a5f5f6d726170,0x7461726765746e69\n" ".quad 0x74616f6c66365065,0x535f30535f305334,0x56646c6f5f665f30,0x6461090a3b5d6c65\n" ".quad 0x2509203436752e64,0x647225202c356472,0x3b31647225202c34,0x6f6c672e646c090a\n" ".quad 0x662e34762e6c6162,0x3566257b09203233,0x3766252c3666252c,0x5b202c7d3866252c\n" ".quad 0x3b5d302b35647225,0x3109636f6c2e090a,0x090a300931370937,0x6d617261702e646c\n" ".quad 0x662509203233662e,0x75635f5f5b202c39,0x5f5f6d7261706164,0x726765746e69395a\n" ".quad 0x6f6c663650657461,0x30535f3053347461,0x65645f665f30535f,0x5d656d695461746c\n" ".quad 0x6f632e646c090a3b,0x203233662e74736e,0x5b202c3031662509,0x322b736d61726170\n" ".quad 0x6c756d090a3b5d30,0x662509203233662e,0x30316625202c3131,0x090a3b396625202c\n" ".quad 0x203233662e646461,0x25202c3231662509,0x356625202c313166,0x6f632e646c090a3b\n" ".quad 0x203233662e74736e,0x5b202c3331662509,0x332b736d61726170,0x6c756d090a3b5d32\n" ".quad 0x662509203233662e,0x32316625202c3431,0x0a3b33316625202c,0x3233662e766f6d09\n" ".quad 0x202c353166250920,0x6c090a3b34316625,0x2e74736e6f632e64,0x3166250920323366\n" ".quad 0x617261705b202c36,0x0a3b5d34322b736d,0x3233662e6c756d09,0x202c373166250920\n" ".quad 0x6625202c36316625,0x2e646461090a3b39,0x3166250920323366,0x2c37316625202c38\n" ".quad 0x6d090a3b36662520,0x09203233662e6c75,0x6625202c39316625,0x33316625202c3831\n" ".quad 0x662e766f6d090a3b,0x3032662509203233,0x0a3b39316625202c,0x736e6f632e646c09\n" ".quad 0x2509203233662e74,0x61705b202c313266,0x5d38322b736d6172,0x662e6c756d090a3b\n" ".quad 0x3232662509203233,0x202c31326625202c,0x6461090a3b396625,0x2509203233662e64\n" ".quad 0x326625202c333266,0x0a3b376625202c32,0x3233662e6c756d09,0x202c343266250920\n" ".quad 0x6625202c33326625,0x766f6d090a3b3331,0x662509203233662e,0x34326625202c3532\n" ".quad 0x09636f6c2e090a3b,0x0a30093437093731,0x3233662e6c756d09,0x202c363266250920\n" ".quad 0x6625202c34316625,0x2e646461090a3b39,0x3266250920323366,0x2c36326625202c37\n" ".quad 0x6d090a3b31662520,0x09203233662e766f,0x6625202c38326625,0x6c756d090a3b3732\n" ".quad 0x662509203233662e,0x39316625202c3932,0x090a3b396625202c,0x203233662e646461\n" ".quad 0x25202c3033662509,0x326625202c393266,0x662e766f6d090a3b,0x3133662509203233\n" ".quad 0x0a3b30336625202c,0x3233662e6c756d09,0x202c323366250920,0x6625202c34326625\n" ".quad 0x2e646461090a3b39,0x3366250920323366,0x2c32336625202c33,0x6d090a3b33662520\n" ".quad 0x09203233662e766f,0x6625202c34336625,0x2e646c090a3b3333,0x33662e74736e6f63\n" ".quad 0x2c35336625092032,0x736d617261705b20,0x6d090a3b5d36332b,0x09203233662e766f\n" ".quad 0x6630202c36336625,0x3030303030386633,0x2f2f09202020203b,0x2e627573090a3120\n" ".quad 0x3366250920323366,0x2c36336625202c37,0x090a3b3533662520,0x2e746c2e70746573\n" ".quad 0x3170250920323366,0x202c37336625202c,0x40090a3b37326625,0x6172622031702521\n" ".quad 0x5f365f744c240920,0x2e090a3b36363834,0x3709373109636f6c,0x766f6d090a300937\n" ".quad 0x662509203233662e,0x37336625202c3832,0x6f632e646c090a3b,0x203233662e74736e\n" ".quad 0x5b202c3833662509,0x312b736d61726170,0x756d090a3b5d3430,0x2509203233662e6c\n" ".quad 0x336625202c353166,0x3b34316625202c38,0x345f365f744c240a,0x6f6d090a3a363638\n" ".quad 0x2509203233662e76,0x626630202c393366,0x3b30303030303866,0x202f2f0920202020\n" ".quad 0x2e646461090a312d,0x3466250920323366,0x2c35336625202c30,0x090a3b3933662520\n" ".quad 0x2e74672e70746573,0x3270250920323366,0x202c30346625202c,0x40090a3b38326625\n" ".quad 0x6172622032702521,0x5f365f744c240920,0x2e090a3b38373335,0x3709373109636f6c\n" ".quad 0x766f6d090a300938,0x662509203233662e,0x30346625202c3832,0x6f632e646c090a3b\n" ".quad 0x203233662e74736e,0x5b202c3134662509,0x312b736d61726170,0x756d090a3b5d3430\n" ".quad 0x2509203233662e6c,0x346625202c353166,0x3b35316625202c31,0x355f365f744c240a\n" ".quad 0x6573090a3a383733,0x33662e746c2e7074,0x202c337025092032,0x6625202c37336625\n" ".quad 0x252140090a3b3033,0x0920617262203370,0x38355f365f744c24,0x6f6c2e090a3b3039\n" ".quad 0x0939370937310963,0x662e766f6d090a30,0x3133662509203233,0x0a3b37336625202c\n" ".quad 0x736e6f632e646c09,0x2509203233662e74,0x61705b202c323466,0x3430312b736d6172\n" ".quad 0x2e6c756d090a3b5d,0x3266250920323366,0x2c32346625202c30,0x240a3b3931662520\n" ".quad 0x3938355f365f744c,0x70746573090a3a30,0x203233662e74672e,0x6625202c34702509\n" ".quad 0x31336625202c3034,0x3470252140090a3b,0x4c24092061726220,0x323034365f365f74\n" ".quad 0x09636f6c2e090a3b,0x0a30093038093731,0x3233662e766f6d09,0x202c313366250920\n" ".quad 0x6c090a3b30346625,0x2e74736e6f632e64,0x3466250920323366,0x617261705b202c33\n" ".quad 0x3b5d3430312b736d,0x33662e6c756d090a,0x2c30326625092032,0x25202c3334662520\n" ".quad 0x744c240a3b303266,0x3a323034365f365f,0x6c2e70746573090a,0x2509203233662e74\n" ".quad 0x37336625202c3570,0x0a3b33336625202c,0x6220357025214009,0x5f744c2409206172\n" ".quad 0x0a3b343139365f36,0x373109636f6c2e09,0x6d090a3009313809,0x09203233662e766f\n" ".quad 0x6625202c34336625,0x2e646c090a3b3733,0x33662e74736e6f63,0x2c34346625092032\n" ".quad 0x736d617261705b20,0x090a3b5d3430312b,0x203233662e6c756d,0x25202c3532662509\n" ".quad 0x326625202c343466,0x365f744c240a3b34,0x090a3a343139365f,0x2e74672e70746573\n" ".quad 0x3670250920323366,0x202c30346625202c,0x40090a3b34336625,0x6172622036702521\n" ".quad 0x5f365f744c240920,0x2e090a3b36323437,0x3809373109636f6c,0x766f6d090a300932\n" ".quad 0x662509203233662e,0x30346625202c3433,0x6f632e646c090a3b,0x203233662e74736e\n" ".quad 0x5b202c3534662509,0x312b736d61726170,0x756d090a3b5d3430,0x2509203233662e6c\n" ".quad 0x346625202c353266,0x3b35326625202c35,0x375f365f744c240a,0x6c2e090a3a363234\n" ".quad 0x353809373109636f,0x702e646c090a3009,0x3436752e6d617261,0x202c366472250920\n" ".quad 0x70616475635f5f5b,0x69395a5f5f6d7261,0x657461726765746e,0x3474616f6c663650\n" ".quad 0x30535f30535f3053,0x6f5077656e5f665f,0x646461090a3b5d73,0x722509203436752e\n" ".quad 0x36647225202c3764,0x0a3b31647225202c,0x626f6c672e747309,0x33662e34762e6c61\n" ".quad 0x376472255b092032,0x66257b202c5d302b,0x2c313366252c3832,0x3466252c34336625\n" ".quad 0x636f6c2e090a3b7d,0x3009363809373109,0x7261702e646c090a,0x09203436752e6d61\n" ".quad 0x5f5b202c38647225,0x726170616475635f,0x746e69395a5f5f6d,0x3650657461726765\n" ".quad 0x30533474616f6c66,0x665f30535f30535f,0x5d6c655677656e5f,0x752e646461090a3b\n" ".quad 0x3964722509203436,0x202c38647225202c,0x73090a3b31647225,0x6c61626f6c672e74\n" ".quad 0x203233662e34762e,0x302b396472255b09,0x353166257b202c5d,0x66252c303266252c\n" ".quad 0x3b7d3866252c3532,0x3109636f6c2e090a,0x090a300937380937,0x4c240a3b74697865\n" ".quad 0x5a5f5f646e655744,0x61726765746e6939,0x616f6c6636506574,0x5f30535f30533474\n" ".quad 0x7d090a3a665f3053,0x69395a5f202f2f20,0x657461726765746e,0x3474616f6c663650\n" ".quad 0x30535f30535f3053,0x6e652e090a0a665f,0x31315a5f20797274,0x7247657461647075\n" ".quad 0x6f6c663650446469,0x5f31536a50347461,0x61702e09090a2820,0x3436752e206d6172\n" ".quad 0x70616475635f5f20,0x31315a5f5f6d7261,0x7247657461647075,0x6f6c663650446469\n" ".quad 0x5f31536a50347461,0x09090a2c736f705f,0x2e206d617261702e,0x75635f5f20343675\n" ".quad 0x5f5f6d7261706164,0x746164707531315a,0x3650446469724765,0x6a503474616f6c66\n" ".quad 0x646972675f5f3153,0x737265746e756f43,0x7261702e09090a2c,0x203436752e206d61\n" ".quad 0x6170616475635f5f,0x7531315a5f5f6d72,0x6972476574616470,0x616f6c6636504464\n" ".quad 0x5f5f31536a503474,0x6c6c654364697267,0x2e090a7b090a2973,0x3233752e20676572\n" ".quad 0x3b3e35333c722520,0x2e206765722e090a,0x3c64722520343675,0x722e090a3b3e3131\n" ".quad 0x203233662e206765,0x0a3b3e30323c6625,0x373109636f6c2e09,0x240a300934333109\n" ".quad 0x6e6967656257444c,0x64707531315a5f5f,0x4464697247657461,0x3474616f6c663650\n" ".quad 0x090a3a5f31536a50,0x09373109636f6c2e,0x63090a3009373331,0x752e3233732e7476\n" ".quad 0x2c31722509203233,0x2e64696174632520,0x2e747663090a3b78,0x203233752e323373\n" ".quad 0x6e25202c32722509,0x090a3b782e646974,0x6f6c2e34326c756d,0x722509203233732e\n" ".quad 0x202c317225202c33,0x6f6d090a3b327225,0x2509203233752e76,0x64697425202c3472\n" ".quad 0x646461090a3b782e,0x722509203233752e,0x202c337225202c35,0x756d090a3b347225\n" ".quad 0x3233752e6f6c2e6c,0x25202c3672250920,0x0a3b3631202c3572,0x3436752e74766309\n" ".quad 0x722509203233752e,0x3b367225202c3164,0x7261702e646c090a,0x09203436752e6d61\n" ".quad 0x5f5b202c32647225,0x726170616475635f,0x707531315a5f5f6d,0x6469724765746164\n" ".quad 0x74616f6c66365044,0x705f5f31536a5034,0x6461090a3b5d736f,0x2509203436752e64\n" ".quad 0x647225202c336472,0x3b32647225202c31,0x6f6c672e646c090a,0x662e34762e6c6162\n" ".quad 0x3166257b09203233,0x3366252c3266252c,0x72255b202c7d5f2c,0x090a3b5d302b3364\n" ".quad 0x09373109636f6c2e,0x6c090a3009353031,0x2e74736e6f632e64,0x3772250920323375\n" ".quad 0x6d617261705b202c,0x090a3b5d34342b73,0x74736e6f632e646c,0x722509203233752e\n" ".quad 0x617261705b202c38,0x0a3b5d30342b736d,0x736e6f632e646c09,0x2509203233662e74\n" ".quad 0x7261705b202c3466,0x3b5d34362b736d61,0x33662e627573090a,0x202c356625092032\n" ".quad 0x346625202c336625,0x6f632e646c090a3b,0x203233662e74736e,0x705b202c36662509\n" ".quad 0x36372b736d617261,0x2e766964090a3b5d,0x09203233662e6e72,0x356625202c376625\n" ".quad 0x090a3b366625202c,0x2e696d722e747663,0x203233662e323366,0x6625202c38662509\n" ".quad 0x2e747663090a3b37,0x2e3233732e697a72,0x3972250920323366,0x090a3b386625202c\n" ".quad 0x74736e6f632e646c,0x722509203233752e,0x7261705b202c3031,0x3b5d38342b736d61\n" ".quad 0x33752e627573090a,0x2c31317225092032,0x31202c3031722520,0x752e6e696d090a3b\n" ".quad 0x3231722509203233,0x25202c397225202c,0x756d090a3b313172,0x732e6f6c2e34326c\n" ".quad 0x3331722509203233,0x202c32317225202c,0x756d090a3b377225,0x732e6f6c2e34326c\n" ".quad 0x3431722509203233,0x202c33317225202c,0x646c090a3b387225,0x662e74736e6f632e\n" ".quad 0x2c39662509203233,0x736d617261705b20,0x73090a3b5d30362b,0x09203233662e6275\n" ".quad 0x6625202c30316625,0x0a3b396625202c32,0x736e6f632e646c09,0x2509203233662e74\n" ".quad 0x61705b202c313166,0x5d32372b736d6172,0x722e766964090a3b,0x2509203233662e6e\n" ".quad 0x316625202c323166,0x3b31316625202c30,0x6d722e747663090a,0x33662e3233662e69\n" ".quad 0x2c33316625092032,0x090a3b3231662520,0x2e697a722e747663,0x203233662e323373\n" ".quad 0x25202c3531722509,0x7573090a3b333166,0x2509203233752e62,0x377225202c363172\n" ".quad 0x696d090a3b31202c,0x2509203233752e6e,0x317225202c373172,0x3b36317225202c35\n" ".quad 0x2e34326c756d090a,0x09203233732e6f6c,0x7225202c38317225,0x3b387225202c3731\n" ".quad 0x33732e646461090a,0x2c39317225092032,0x25202c3431722520,0x646c090a3b383172\n" ".quad 0x662e74736e6f632e,0x3431662509203233,0x6d617261705b202c,0x090a3b5d36352b73\n" ".quad 0x203233662e627573,0x25202c3531662509,0x34316625202c3166,0x6f632e646c090a3b\n" ".quad 0x203233662e74736e,0x5b202c3631662509,0x362b736d61726170,0x766964090a3b5d38\n" ".quad 0x203233662e6e722e,0x25202c3731662509,0x316625202c353166,0x2e747663090a3b36\n" ".quad 0x2e3233662e696d72,0x3166250920323366,0x3b37316625202c38,0x7a722e747663090a\n" ".quad 0x33662e3233732e69,0x2c30327225092032,0x090a3b3831662520,0x203233752e627573\n" ".quad 0x25202c3132722509,0x090a3b31202c3872,0x203233752e6e696d,0x25202c3232722509\n" ".quad 0x327225202c303272,0x2e646461090a3b31,0x3272250920323373,0x2c39317225202c33\n" ".quad 0x090a3b3232722520,0x09373109636f6c2e,0x6d090a3009313231,0x33752e6f6c2e6c75\n" ".quad 0x2c34327225092032,0x34202c3332722520,0x752e747663090a3b,0x09203233752e3436\n" ".quad 0x7225202c34647225,0x2e646c090a3b3432,0x36752e6d61726170,0x2c35647225092034\n" ".quad 0x616475635f5f5b20,0x315a5f5f6d726170,0x4765746164707531,0x6c66365044646972\n" ".quad 0x31536a503474616f,0x6f43646972675f5f,0x3b5d737265746e75,0x36752e646461090a\n" ".quad 0x2c36647225092034,0x25202c3464722520,0x6f6d090a3b356472,0x2509203233752e76\n" ".quad 0x0a3b31202c353272,0x6c672e6d6f746109,0x6464612e6c61626f,0x722509203233752e\n" ".quad 0x6472255b202c3632,0x35327225202c5d36,0x732e766f6d090a3b,0x3732722509203233\n" ".quad 0x0a3b36327225202c,0x373109636f6c2e09,0x090a300936323109,0x74736e6f632e646c\n" ".quad 0x722509203233752e,0x7261705b202c3832,0x3b5d34382b736d61,0x33752e627573090a\n" ".quad 0x2c39327225092032,0x31202c3832722520,0x752e6e696d090a3b,0x3033722509203233\n" ".quad 0x202c37327225202c,0x6d090a3b39327225,0x33752e6f6c2e6c75,0x2c31337225092032\n" ".quad 0x25202c3332722520,0x6461090a3b383272,0x2509203233752e64,0x337225202c323372\n" ".quad 0x3b31337225202c30,0x6f6c2e6c756d090a,0x722509203233752e,0x32337225202c3333\n" ".quad 0x7663090a3b34202c,0x33752e3436752e74,0x2c37647225092032,0x090a3b3333722520\n" ".quad 0x6d617261702e646c,0x722509203436752e,0x635f5f5b202c3864,0x5f6d726170616475\n" ".quad 0x6164707531315a5f,0x5044646972476574,0x503474616f6c6636,0x6972675f5f31536a\n" ".quad 0x3b5d736c6c654364,0x36752e646461090a,0x2c39647225092034,0x25202c3764722520\n" ".quad 0x7473090a3b386472,0x2e6c61626f6c672e,0x72255b0920323375,0x25202c5d302b3964\n" ".quad 0x6f6c2e090a3b3572,0x3334310937310963,0x74697865090a3009,0x6e6557444c240a3b\n" ".quad 0x707531315a5f5f64,0x6469724765746164,0x74616f6c66365044,0x0a3a5f31536a5034\n" ".quad 0x5a5f202f2f207d09,0x6574616470753131,0x6636504464697247,0x536a503474616f6c\n" ".quad 0x6e652e090a0a5f31,0x63395a5f20797274,0x4468736148636c61,0x3474616f6c663650\n" ".quad 0x2032746e69753550,0x7261702e09090a28,0x203436752e206d61,0x6170616475635f5f\n" ".quad 0x6163395a5f5f6d72,0x504468736148636c,0x503474616f6c6636,0x705f32746e697535\n" ".quad 0x702e09090a2c736f,0x36752e206d617261,0x616475635f5f2034,0x395a5f5f6d726170\n" ".quad 0x68736148636c6163,0x74616f6c66365044,0x32746e6975355034,0x6c6369747261705f\n" ".quad 0x090a296873614865,0x206765722e090a7b,0x3c7225203233752e,0x722e090a3b3e3632\n" ".quad 0x203436752e206765,0x0a3b3e383c647225,0x662e206765722e09,0x30323c6625203233\n" ".quad 0x636f6c2e090a3b3e,0x0938343109373109,0x656257444c240a30,0x63395a5f5f6e6967\n" ".quad 0x4468736148636c61,0x3474616f6c663650,0x3a32746e69753550,0x3109636f6c2e090a\n" ".quad 0x0a30093135310937,0x3233732e74766309,0x722509203233752e,0x6961746325202c31\n" ".quad 0x7663090a3b782e64,0x33752e3233732e74,0x202c327225092032,0x3b782e6469746e25\n" ".quad 0x2e34326c756d090a,0x09203233732e6f6c,0x317225202c337225,0x090a3b327225202c\n" ".quad 0x203233752e766f6d,0x7425202c34722509,0x61090a3b782e6469,0x09203233752e6464\n" ".quad 0x337225202c357225,0x090a3b347225202c,0x752e6f6c2e6c756d,0x2c36722509203233\n" ".quad 0x3631202c35722520,0x752e747663090a3b,0x09203233752e3436,0x7225202c31647225\n" ".quad 0x702e646c090a3b36,0x3436752e6d617261,0x202c326472250920,0x70616475635f5f5b\n" ".quad 0x63395a5f5f6d7261,0x4468736148636c61,0x3474616f6c663650,0x5f32746e69753550\n" ".quad 0x61090a3b5d736f70,0x09203436752e6464,0x7225202c33647225,0x32647225202c3164\n" ".quad 0x6c672e646c090a3b,0x2e34762e6c61626f,0x66257b0920323366,0x66252c3266252c31\n" ".quad 0x255b202c7d5f2c33,0x0a3b5d302b336472,0x373109636f6c2e09,0x090a300935303109\n" ".quad 0x74736e6f632e646c,0x722509203233752e,0x617261705b202c37,0x0a3b5d34342b736d\n" ".quad 0x736e6f632e646c09,0x2509203233752e74,0x7261705b202c3872,0x3b5d30342b736d61\n" ".quad 0x6e6f632e646c090a,0x09203233662e7473,0x61705b202c346625,0x5d34362b736d6172\n" ".quad 0x662e627573090a3b,0x2c35662509203233,0x6625202c33662520,0x632e646c090a3b34\n" ".quad 0x3233662e74736e6f,0x5b202c3666250920,0x372b736d61726170,0x766964090a3b5d36\n" ".quad 0x203233662e6e722e,0x6625202c37662509,0x0a3b366625202c35,0x696d722e74766309\n" ".quad 0x3233662e3233662e,0x25202c3866250920,0x747663090a3b3766,0x3233732e697a722e\n" ".quad 0x722509203233662e,0x0a3b386625202c39,0x736e6f632e646c09,0x2509203233752e74\n" ".quad 0x61705b202c303172,0x5d38342b736d6172,0x752e627573090a3b,0x3131722509203233\n" ".quad 0x202c30317225202c,0x2e6e696d090a3b31,0x3172250920323375,0x202c397225202c32\n" ".quad 0x6d090a3b31317225,0x2e6f6c2e34326c75,0x3172250920323373,0x2c32317225202c33\n" ".quad 0x6d090a3b37722520,0x2e6f6c2e34326c75,0x3172250920323373,0x2c33317225202c34\n" ".quad 0x6c090a3b38722520,0x2e74736e6f632e64,0x3966250920323366,0x6d617261705b202c\n" ".quad 0x090a3b5d30362b73,0x203233662e627573,0x25202c3031662509,0x3b396625202c3266\n" ".quad 0x6e6f632e646c090a,0x09203233662e7473,0x705b202c31316625,0x32372b736d617261\n" ".quad 0x2e766964090a3b5d,0x09203233662e6e72,0x6625202c32316625,0x31316625202c3031\n" ".quad 0x722e747663090a3b,0x662e3233662e696d,0x3331662509203233,0x0a3b32316625202c\n" ".quad 0x697a722e74766309,0x3233662e3233732e,0x202c353172250920,0x73090a3b33316625\n" ".quad 0x09203233752e6275,0x7225202c36317225,0x6d090a3b31202c37,0x09203233752e6e69\n" ".quad 0x7225202c37317225,0x36317225202c3531,0x34326c756d090a3b,0x203233732e6f6c2e\n" ".quad 0x25202c3831722509,0x387225202c373172,0x732e646461090a3b,0x3931722509203233\n" ".quad 0x202c34317225202c,0x6c090a3b38317225,0x2e74736e6f632e64,0x3166250920323366\n" ".quad 0x617261705b202c34,0x0a3b5d36352b736d,0x3233662e62757309,0x202c353166250920\n" ".quad 0x316625202c316625,0x632e646c090a3b34,0x3233662e74736e6f,0x202c363166250920\n" ".quad 0x2b736d617261705b,0x6964090a3b5d3836,0x3233662e6e722e76,0x202c373166250920\n" ".quad 0x6625202c35316625,0x747663090a3b3631,0x3233662e696d722e,0x662509203233662e\n" ".quad 0x37316625202c3831,0x722e747663090a3b,0x662e3233732e697a,0x3032722509203233\n" ".quad 0x0a3b38316625202c,0x3233752e62757309,0x202c313272250920,0x0a3b31202c387225\n" ".quad 0x3233752e6e696d09,0x202c323272250920,0x7225202c30327225,0x646461090a3b3132\n" ".quad 0x722509203233732e,0x39317225202c3332,0x0a3b32327225202c,0x373109636f6c2e09\n" ".quad 0x090a300938353109,0x752e6f6c2e6c756d,0x3432722509203233,0x38202c357225202c\n" ".quad 0x752e747663090a3b,0x09203233752e3436,0x7225202c34647225,0x2e646c090a3b3432\n" ".quad 0x36752e6d61726170,0x2c35647225092034,0x616475635f5f5b20,0x395a5f5f6d726170\n" ".quad 0x68736148636c6163,0x74616f6c66365044,0x32746e6975355034,0x6c6369747261705f\n" ".quad 0x0a3b5d6873614865,0x3436752e64646109,0x202c366472250920,0x7225202c34647225\n" ".quad 0x2e7473090a3b3564,0x762e6c61626f6c67,0x5b09203233752e32,0x2c5d302b36647225\n" ".quad 0x252c333272257b20,0x6c2e090a3b7d3572,0x353109373109636f,0x697865090a300939\n" ".quad 0x6557444c240a3b74,0x6163395a5f5f646e,0x504468736148636c,0x503474616f6c6636\n" ".quad 0x0a3a32746e697535,0x5a5f202f2f207d09,0x736148636c616339,0x616f6c6636504468\n" ".quad 0x746e697535503474,0x746e652e090a0a32,0x7238325a5f207972,0x6144726564726f65\n" ".quad 0x6e6946646e416174,0x6174536c6c654364,0x6e69753550447472,0x616f6c6636503274\n" ".quad 0x5f32535f32533474,0x0a28206a505f3253,0x6d617261702e0909,0x5f5f203436752e20\n" ".quad 0x6d72617061647563,0x6f657238325a5f5f,0x6174614472656472,0x43646e6946646e41\n" ".quad 0x74726174536c6c65,0x32746e6975355044,0x3474616f6c663650,0x32535f32535f3253\n" ".quad 0x747261705f6a505f,0x68736148656c6369,0x7261702e09090a2c,0x203436752e206d61\n" ".quad 0x6170616475635f5f,0x7238325a5f5f6d72,0x6144726564726f65,0x6e6946646e416174\n" ".quad 0x6174536c6c654364,0x6e69753550447472,0x616f6c6636503274,0x5f32535f32533474\n" ".quad 0x6c6f5f6a505f3253,0x09090a2c736f5064,0x2e206d617261702e,0x75635f5f20343675\n" ".quad 0x5f5f6d7261706164,0x64726f657238325a,0x6e41617461447265,0x6c6543646e694664\n" ".quad 0x504474726174536c,0x365032746e697535,0x32533474616f6c66,0x505f32535f32535f\n" ".quad 0x6c6556646c6f5f6a,0x7261702e09090a2c,0x203436752e206d61,0x6170616475635f5f\n" ".quad 0x7238325a5f5f6d72,0x6144726564726f65,0x6e6946646e416174,0x6174536c6c654364\n" ".quad 0x6e69753550447472,0x616f6c6636503274,0x5f32535f32533474,0x6f735f6a505f3253\n" ".quad 0x2c736f5064657472,0x617261702e09090a,0x5f203436752e206d,0x726170616475635f\n" ".quad 0x657238325a5f5f6d,0x746144726564726f,0x646e6946646e4161,0x726174536c6c6543\n" ".quad 0x746e697535504474,0x74616f6c66365032,0x535f32535f325334,0x726f735f6a505f32\n" ".quad 0x0a2c6c6556646574,0x6d617261702e0909,0x5f5f203436752e20,0x6d72617061647563\n" ".quad 0x6f657238325a5f5f,0x6174614472656472,0x43646e6946646e41,0x74726174536c6c65\n" ".quad 0x32746e6975355044,0x3474616f6c663650,0x32535f32535f3253,0x6c6c65635f6a505f\n" ".quad 0x090a297472617453,0x206765722e090a7b,0x3c7225203233752e,0x722e090a3b3e3134\n" ".quad 0x203436752e206765,0x3b3e37313c647225,0x2e206765722e090a,0x313c662520323366\n" ".quad 0x65722e090a3b3e38,0x20646572702e2067,0x090a3b3e353c7025,0x206465726168732e\n" ".quad 0x34206e67696c612e,0x635f5f2038622e20,0x75635f5f5f616475,0x6c61636f6c5f6164\n" ".quad 0x3039325f7261765f,0x6f6e5f31335f3239,0x5f74736e6f635f6e,0x6148646572616873\n" ".quad 0x30315b3034326873,0x2f2f090a3b5d3832,0x5f616475635f5f20,0x61765f6c61636f6c\n" ".quad 0x5f37393039325f72,0x635f6e6f6e5f3831,0x6572705f74736e6f,0x203d206174614476\n" ".quad 0x636f6c2e090a3631,0x0939363109373109,0x656257444c240a30,0x38325a5f5f6e6967\n" ".quad 0x44726564726f6572,0x6946646e41617461,0x74536c6c6543646e,0x6975355044747261\n" ".quad 0x6f6c66365032746e,0x32535f3253347461,0x0a3a6a505f32535f,0x373109636f6c2e09\n" ".quad 0x090a300933373109,0x2e3233732e747663,0x3172250920323375,0x646961746325202c\n" ".quad 0x747663090a3b782e,0x3233752e3233732e,0x25202c3272250920,0x0a3b782e6469746e\n" ".quad 0x6c2e34326c756d09,0x2509203233732e6f,0x2c317225202c3372,0x6d090a3b32722520\n" ".quad 0x09203233752e766f,0x697425202c347225,0x6461090a3b782e64,0x2509203233752e64\n" ".quad 0x2c337225202c3572,0x6d090a3b34722520,0x33752e6f6c2e6c75,0x202c367225092032\n" ".quad 0x0a3b38202c357225,0x3436752e74766309,0x722509203233752e,0x3b367225202c3164\n" ".quad 0x7261702e646c090a,0x09203436752e6d61,0x5f5b202c32647225,0x726170616475635f\n" ".quad 0x657238325a5f5f6d,0x746144726564726f,0x646e6946646e4161,0x726174536c6c6543\n" ".quad 0x746e697535504474,0x74616f6c66365032,0x535f32535f325334,0x7261705f6a505f32\n" ".quad 0x736148656c636974,0x646461090a3b5d68,0x722509203436752e,0x31647225202c3364\n" ".quad 0x0a3b32647225202c,0x626f6c672e646c09,0x33752e32762e6c61,0x2c3772257b092032\n" ".quad 0x255b202c7d387225,0x0a3b5d302b336472,0x373109636f6c2e09,0x090a300939373109\n" ".quad 0x203436752e766f6d,0x5f202c3464722509,0x5f5f5f616475635f,0x636f6c5f61647563\n" ".quad 0x325f7261765f6c61,0x5f31335f32393039,0x736e6f635f6e6f6e,0x6465726168735f74\n" ".quad 0x3b30343268736148,0x36752e747663090a,0x2509203233752e34,0x347225202c356472\n" ".quad 0x772e6c756d090a3b,0x203233752e656469,0x25202c3664722509,0x090a3b34202c3472\n" ".quad 0x203436752e646461,0x25202c3764722509,0x647225202c346472,0x732e7473090a3b36\n" ".quad 0x33752e6465726168,0x376472255b092032,0x377225202c5d342b,0x732e766f6d090a3b\n" ".quad 0x2c39722509203233,0x746573090a3b3020,0x2e3233752e74672e,0x3172250920323373\n" ".quad 0x202c357225202c30,0x656e090a3b397225,0x2509203233732e67,0x317225202c313172\n" ".quad 0x2e766f6d090a3b30,0x3172250920323375,0x73090a3b30202c32,0x33752e71652e7465\n" ".quad 0x2509203233752e32,0x347225202c333172,0x0a3b32317225202c,0x3233732e67656e09\n" ".quad 0x202c343172250920,0x61090a3b33317225,0x09203233622e646e,0x7225202c35317225\n" ".quad 0x34317225202c3131,0x752e766f6d090a3b,0x3631722509203233,0x6573090a3b30202c\n" ".quad 0x33732e71652e7074,0x202c317025092032,0x7225202c35317225,0x702540090a3b3631\n" ".quad 0x2409206172622031,0x3138325f395f744c,0x672e646c090a3b38,0x32762e6c61626f6c\n" ".quad 0x257b09203233752e,0x383172252c373172,0x336472255b202c7d,0x2e090a3b5d382d2b\n" ".quad 0x3109373109636f6c,0x6f6d090a30093338,0x2509203233732e76,0x317225202c393172\n" ".quad 0x2e766f6d090a3b37,0x3272250920323373,0x3b38317225202c30,0x3109636f6c2e090a\n" ".quad 0x0a30093438310937,0x3233732e766f6d09,0x202c313272250920,0x73090a3b39317225\n" ".quad 0x6465726168732e74,0x5f5b09203233752e,0x5f5f5f616475635f,0x636f6c5f61647563\n" ".quad 0x325f7261765f6c61,0x5f31335f32393039,0x736e6f635f6e6f6e,0x6465726168735f74\n" ".quad 0x2b30343268736148,0x31327225202c5d30,0x5f395f744c240a3b,0x2e090a3a38313832\n" ".quad 0x3109373109636f6c,0x6162090a30093738,0x0920636e79732e72,0x2e766f6d090a3b30\n" ".quad 0x3272250920323375,0x73090a3b30202c32,0x732e71652e707465,0x2c32702509203233\n" ".quad 0x7225202c35722520,0x702540090a3b3232,0x2409206172622032,0x323635325f395f4c\n" ".quad 0x68732e646c090a3b,0x3233752e64657261,0x202c333272250920,0x5d302b376472255b\n" ".quad 0x2e70746573090a3b,0x09203233752e7165,0x327225202c337025,0x0a3b377225202c33\n" ".quad 0x7262203370254009,0x5f395f4c24092061,0x4c240a3b36303332,0x3a323635325f395f\n" ".quad 0x3109636f6c2e090a,0x0a30093039310937,0x2e6f6c2e6c756d09,0x3272250920323375\n" ".quad 0x202c377225202c34,0x2e747663090a3b34,0x203233752e343675,0x25202c3864722509\n" ".quad 0x646c090a3b343272,0x752e6d617261702e,0x3964722509203436,0x6475635f5f5b202c\n" ".quad 0x5a5f5f6d72617061,0x6564726f65723832,0x646e416174614472,0x6c6c6543646e6946\n" ".quad 0x3550447472617453,0x66365032746e6975,0x5f32533474616f6c,0x6a505f32535f3253\n" ".quad 0x6174536c6c65635f,0x6461090a3b5d7472,0x2509203436752e64,0x7225202c30316472\n" ".quad 0x39647225202c3864,0x6c672e7473090a3b,0x3233752e6c61626f,0x30316472255b0920\n" ".quad 0x357225202c5d302b,0x325f395f4c240a3b,0x6f6d090a3a363033,0x2509203233752e76\n" ".quad 0x387225202c353272,0x732e766f6d090a3b,0x3632722509203233,0x6f6d090a3b30202c\n" ".quad 0x2509203233752e76,0x327225202c373272,0x2e766f6d090a3b36,0x3272250920323373\n" ".quad 0x6d090a3b30202c38,0x09203233752e766f,0x7225202c39327225,0x766f6d090a3b3832\n" ".quad 0x722509203233732e,0x090a3b30202c3033,0x203233752e766f6d,0x25202c3133722509\n" ".quad 0x6574090a3b303372,0x2e34762e64312e78,0x203233732e323366,0x3266252c3166257b\n" ".quad 0x3466252c3366252c,0x6f50646c6f5b2c7d,0x72257b2c78655473,0x2c373272252c3532\n" ".quad 0x3372252c39327225,0x6c2e090a3b5d7d31,0x393109373109636f,0x766f6d090a300934\n" ".quad 0x662509203233662e,0x0a3b316625202c35,0x3233662e766f6d09,0x25202c3666250920\n" ".quad 0x766f6d090a3b3266,0x662509203233662e,0x0a3b336625202c37,0x3233662e766f6d09\n" ".quad 0x25202c3866250920,0x766f6d090a3b3466,0x722509203233752e,0x3b387225202c3233\n" ".quad 0x33732e766f6d090a,0x2c33337225092032,0x766f6d090a3b3020,0x722509203233752e\n" ".quad 0x33337225202c3433,0x732e766f6d090a3b,0x3533722509203233,0x6f6d090a3b30202c\n" ".quad 0x2509203233752e76,0x337225202c363372,0x2e766f6d090a3b35,0x3372250920323373\n" ".quad 0x6d090a3b30202c37,0x09203233752e766f,0x7225202c38337225,0x786574090a3b3733\n" ".quad 0x662e34762e64312e,0x7b203233732e3233,0x303166252c396625,0x66252c313166252c\n" ".quad 0x646c6f5b2c7d3231,0x7b2c7865546c6556,0x3372252c32337225,0x252c363372252c34\n" ".quad 0x090a3b5d7d383372,0x09373109636f6c2e,0x6d090a3009353931,0x09203233662e766f\n" ".quad 0x6625202c33316625,0x2e766f6d090a3b39,0x3166250920323366,0x3b30316625202c34\n" ".quad 0x33662e766f6d090a,0x2c35316625092032,0x090a3b3131662520,0x203233662e766f6d\n" ".quad 0x25202c3631662509,0x6c2e090a3b323166,0x393109373109636f,0x726162090a300937\n" ".quad 0x300920636e79732e,0x09636f6c2e090a3b,0x3009393931093731,0x6f6c2e6c756d090a\n" ".quad 0x722509203233752e,0x2c357225202c3933,0x7663090a3b363120,0x33752e3436752e74\n" ".quad 0x3131647225092032,0x0a3b39337225202c,0x617261702e646c09,0x2509203436752e6d\n" ".quad 0x5f5b202c32316472,0x726170616475635f,0x657238325a5f5f6d,0x746144726564726f\n" ".quad 0x646e6946646e4161,0x726174536c6c6543,0x746e697535504474,0x74616f6c66365032\n" ".quad 0x535f32535f325334,0x726f735f6a505f32,0x3b5d736f50646574,0x36752e646461090a\n" ".quad 0x3331647225092034,0x2c3231647225202c,0x0a3b313164722520,0x626f6c672e747309\n" ".quad 0x33662e34762e6c61,0x316472255b092032,0x257b202c5d302b33,0x252c3666252c3566\n" ".quad 0x3b7d3866252c3766,0x3109636f6c2e090a,0x0a30093030320937,0x617261702e646c09\n" ".quad 0x2509203436752e6d,0x5f5b202c34316472,0x726170616475635f,0x657238325a5f5f6d\n" ".quad 0x746144726564726f,0x646e6946646e4161,0x726174536c6c6543,0x746e697535504474\n" ".quad 0x74616f6c66365032,0x535f32535f325334,0x726f735f6a505f32,0x3b5d6c6556646574\n" ".quad 0x36752e646461090a,0x3531647225092034,0x2c3431647225202c,0x0a3b313164722520\n" ".quad 0x626f6c672e747309,0x33662e34762e6c61,0x316472255b092032,0x257b202c5d302b35\n" ".quad 0x343166252c333166,0x66252c353166252c,0x6c2e090a3b7d3631,0x303209373109636f\n" ".quad 0x697865090a300932,0x6557444c240a3b74,0x7238325a5f5f646e,0x6144726564726f65\n" ".quad 0x6e6946646e416174,0x6174536c6c654364,0x6e69753550447472,0x616f6c6636503274\n" ".quad 0x5f32535f32533474,0x090a3a6a505f3253,0x325a5f202f2f207d,0x726564726f657238\n" ".quad 0x46646e4161746144,0x536c6c6543646e69,0x7535504474726174,0x6c66365032746e69\n" ".quad 0x535f32533474616f,0x0a6a505f32535f32,0x7972746e652e090a,0x6c6c6f63385a5f20\n" ".quad 0x6c66365044656469,0x535f30533474616f,0x7535505f30535f30,0x28206a5032746e69\n" ".quad 0x617261702e09090a,0x5f203436752e206d,0x726170616475635f,0x6c6f63385a5f5f6d\n" ".quad 0x663650446564696c,0x5f30533474616f6c,0x35505f30535f3053,0x5f6a5032746e6975\n" ".quad 0x0a2c736f5077656e,0x6d617261702e0909,0x5f5f203436752e20,0x6d72617061647563\n" ".quad 0x6c6c6f63385a5f5f,0x6c66365044656469,0x535f30533474616f,0x7535505f30535f30\n" ".quad 0x6e5f6a5032746e69,0x090a2c6c65567765,0x206d617261702e09,0x635f5f203436752e\n" ".quad 0x5f6d726170616475,0x696c6c6f63385a5f,0x6f6c663650446564,0x30535f3053347461\n" ".quad 0x697535505f30535f,0x6c6f5f6a5032746e,0x09090a2c736f5064,0x2e206d617261702e\n" ".quad 0x75635f5f20343675,0x5f5f6d7261706164,0x64696c6c6f63385a,0x616f6c6636504465\n" ".quad 0x5f30535f30533474,0x6e697535505f3053,0x646c6f5f6a503274,0x2e09090a2c6c6556\n" ".quad 0x752e206d61726170,0x6475635f5f203436,0x5a5f5f6d72617061,0x6564696c6c6f6338\n" ".quad 0x74616f6c66365044,0x535f30535f305334,0x746e697535505f30,0x747261705f6a5032\n" ".quad 0x68736148656c6369,0x7261702e09090a2c,0x203436752e206d61,0x6170616475635f5f\n" ".quad 0x6f63385a5f5f6d72,0x3650446564696c6c,0x30533474616f6c66,0x505f30535f30535f\n" ".quad 0x6a5032746e697535,0x6174536c6c65635f,0x090a7b090a297472,0x33752e206765722e\n" ".quad 0x3830313c72252032,0x6765722e090a3b3e,0x7225203436752e20,0x090a3b3e34313c64\n" ".quad 0x33662e206765722e,0x3934313c66252032,0x6765722e090a3b3e,0x2520646572702e20\n" ".quad 0x090a3b3e38313c70,0x6475635f5f202f2f,0x5f6c61636f6c5f61,0x393239325f726176\n" ".quad 0x6e6f6e5f30325f30,0x735f74736e6f635f,0x746144646574726f,0x090a3631203d2061\n" ".quad 0x09373109636f6c2e,0x4c240a3009303433,0x5f6e696765625744,0x696c6c6f63385a5f\n" ".quad 0x6f6c663650446564,0x30535f3053347461,0x697535505f30535f,0x090a3a6a5032746e\n" ".quad 0x2e3233732e747663,0x3172250920323375,0x646961746325202c,0x747663090a3b782e\n" ".quad 0x3233752e3233732e,0x25202c3272250920,0x0a3b782e6469746e,0x6c2e34326c756d09\n" ".quad 0x2509203233732e6f,0x2c317225202c3372,0x6d090a3b32722520,0x09203233752e766f\n" ".quad 0x697425202c347225,0x6461090a3b782e64,0x2509203233752e64,0x2c337225202c3572\n" ".quad 0x6d090a3b34722520,0x09203233752e766f,0x357225202c367225,0x732e766f6d090a3b\n" ".quad 0x2c37722509203233,0x766f6d090a3b3020,0x722509203233752e,0x0a3b377225202c38\n" ".quad 0x3233732e766f6d09,0x30202c3972250920,0x752e766f6d090a3b,0x3031722509203233\n" ".quad 0x090a3b397225202c,0x203233732e766f6d,0x30202c3131722509,0x752e766f6d090a3b\n" ".quad 0x3231722509203233,0x0a3b31317225202c,0x2e64312e78657409,0x732e3233662e3476\n" ".quad 0x2c3166257b203233,0x2c3366252c326625,0x6c6f5b2c7d346625,0x2c786554736f5064\n" ".quad 0x3872252c3672257b,0x72252c303172252c,0x2e090a3b5d7d3231,0x3309373109636f6c\n" ".quad 0x6f6d090a30093035,0x2509203233662e76,0x3b316625202c3566,0x33662e766f6d090a\n" ".quad 0x202c366625092032,0x6f6d090a3b326625,0x2509203233662e76,0x3b336625202c3766\n" ".quad 0x33752e766f6d090a,0x2c33317225092032,0x6d090a3b35722520,0x09203233732e766f\n" ".quad 0x3b30202c34317225,0x33752e766f6d090a,0x2c35317225092032,0x090a3b3431722520\n" ".quad 0x203233732e766f6d,0x30202c3631722509,0x752e766f6d090a3b,0x3731722509203233\n" ".quad 0x0a3b36317225202c,0x3233732e766f6d09,0x202c383172250920,0x2e766f6d090a3b30\n" ".quad 0x3172250920323375,0x3b38317225202c39,0x64312e786574090a,0x2e3233662e34762e\n" ".quad 0x3866257b20323373,0x3166252c3966252c,0x2c7d313166252c30,0x546c6556646c6f5b\n" ".quad 0x333172257b2c7865,0x72252c353172252c,0x7d393172252c3731,0x636f6c2e090a3b5d\n" ".quad 0x0931353309373109,0x662e766f6d090a30,0x3231662509203233,0x090a3b386625202c\n" ".quad 0x203233662e766f6d,0x25202c3331662509,0x766f6d090a3b3966,0x662509203233662e\n" ".quad 0x30316625202c3431,0x662e766f6d090a3b,0x3531662509203233,0x0a3b31316625202c\n" ".quad 0x373109636f6c2e09,0x090a300934353309,0x74736e6f632e646c,0x662509203233662e\n" ".quad 0x7261705b202c3631,0x3b5d36352b736d61,0x33662e627573090a,0x2c37316625092032\n" ".quad 0x6625202c35662520,0x2e646c090a3b3631,0x33662e74736e6f63,0x2c38316625092032\n" ".quad 0x736d617261705b20,0x64090a3b5d38362b,0x33662e6e722e7669,0x2c39316625092032\n" ".quad 0x25202c3731662520,0x7663090a3b383166,0x33662e696d722e74,0x2509203233662e32\n" ".quad 0x316625202c303266,0x2e747663090a3b39,0x2e3233732e697a72,0x3272250920323366\n" ".quad 0x3b30326625202c30,0x6e6f632e646c090a,0x09203233662e7473,0x705b202c31326625\n" ".quad 0x30362b736d617261,0x2e627573090a3b5d,0x3266250920323366,0x202c366625202c32\n" ".quad 0x6c090a3b31326625,0x2e74736e6f632e64,0x3266250920323366,0x617261705b202c33\n" ".quad 0x0a3b5d32372b736d,0x2e6e722e76696409,0x3266250920323366,0x2c32326625202c34\n" ".quad 0x090a3b3332662520,0x2e696d722e747663,0x203233662e323366,0x25202c3532662509\n" ".quad 0x7663090a3b343266,0x33732e697a722e74,0x2509203233662e32,0x326625202c313272\n" ".quad 0x632e646c090a3b35,0x3233662e74736e6f,0x202c363266250920,0x2b736d617261705b\n" ".quad 0x7573090a3b5d3436,0x2509203233662e62,0x376625202c373266,0x0a3b36326625202c\n" ".quad 0x736e6f632e646c09,0x2509203233662e74,0x61705b202c383266,0x5d36372b736d6172\n" ".quad 0x722e766964090a3b,0x2509203233662e6e,0x326625202c393266,0x3b38326625202c37\n" ".quad 0x6d722e747663090a,0x33662e3233662e69,0x2c30336625092032,0x090a3b3932662520\n" ".quad 0x2e697a722e747663,0x203233662e323373,0x25202c3232722509,0x7573090a3b303366\n" ".quad 0x2509203233732e62,0x327225202c333272,0x61090a3b31202c30,0x09203233732e6464\n" ".quad 0x7225202c34327225,0x090a3b32202c3032,0x74736e6f632e646c,0x662509203233662e\n" ".quad 0x7261705b202c3133,0x3b5d36332b736d61,0x33732e766f6d090a,0x2c35327225092032\n" ".quad 0x6f6d090a3b312d20,0x2509203233662e76,0x306630202c323366,0x3b30303030303030\n" ".quad 0x202f2f0920202020,0x662e766f6d090a30,0x3333662509203233,0x303030306630202c\n" ".quad 0x2020203b30303030,0x090a30202f2f0920,0x203233662e766f6d,0x30202c3433662509\n" ".quad 0x3030303030303066,0x2f09202020203b30,0x5f744c240a30202f,0x36343532315f3031\n" ".quad 0x6f6c3c2f2f200a3a,0x706f6f4c203e706f,0x696c2079646f6220,0x202c34353320656e\n" ".quad 0x20676e697473656e,0x31203a6874706564,0x746172657469202c,0x0a33203a736e6f69\n" ".quad 0x3233732e766f6d09,0x202c363272250920,0x5f744c240a3b312d,0x34313333315f3031\n" ".quad 0x6f6c3c2f2f200a3a,0x706f6f4c203e706f,0x696c2079646f6220,0x202c34353320656e\n" ".quad 0x20676e697473656e,0x32203a6874706564,0x746172657469202c,0x0a33203a736e6f69\n" ".quad 0x3233732e766f6d09,0x202c373272250920,0x4c240a3b33327225,0x3034315f30315f74\n" ".quad 0x3c2f2f200a3a3238,0x6f4c203e706f6f6c,0x2079646f6220706f,0x34353320656e696c\n" ".quad 0x6e697473656e202c,0x3a68747065642067,0x72657469202c3320,0x203a736e6f697461\n" ".quad 0x09636f6c2e090a33,0x3009303033093731,0x33752e766f6d090a,0x2c38327225092032\n" ".quad 0x746573090a3b3020,0x3233732e746c2e70,0x25202c3170250920,0x327225202c373272\n" ".quad 0x31702540090a3b38,0x4c24092061726220,0x3938315f30315f74,0x3c2f2f200a3b3634\n" ".quad 0x6150203e706f6f6c,0x6f6c20666f207472,0x2079646f6220706f,0x34353320656e696c\n" ".quad 0x6c2064616568202c,0x242064656c656261,0x34315f30315f744c,0x2e646c090a323830\n" ".quad 0x33752e74736e6f63,0x2c39327225092032,0x736d617261705b20,0x73090a3b5d30342b\n" ".quad 0x09203233752e6275,0x7225202c30337225,0x090a3b31202c3932,0x2e74672e70746573\n" ".quad 0x3270250920323375,0x202c37327225202c,0x40090a3b30337225,0x2061726220327025\n" ".quad 0x5f30315f744c2409,0x200a3b3634393831,0x3e706f6f6c3c2f2f,0x666f207472615020\n" ".quad 0x6f6220706f6f6c20,0x20656e696c207964,0x616568202c343533,0x656c6562616c2064\n" ".quad 0x30315f744c242064,0x090a32383034315f,0x203233732e646461,0x25202c3133722509\n" ".quad 0x327225202c313272,0x2e766f6d090a3b36,0x3372250920323375,0x73090a3b30202c32\n" ".quad 0x732e746c2e707465,0x2c33702509203233,0x25202c3133722520,0x2540090a3b323372\n" ".quad 0x0920617262203370,0x315f30315f744c24,0x2f200a3b36343938,0x203e706f6f6c3c2f\n" ".quad 0x20666f2074726150,0x646f6220706f6f6c,0x3320656e696c2079,0x64616568202c3435\n" ".quad 0x64656c6562616c20,0x5f30315f744c2420,0x6c090a3238303431,0x2e74736e6f632e64\n" ".quad 0x3372250920323375,0x617261705b202c33,0x0a3b5d34342b736d,0x3233752e62757309\n" ".quad 0x202c343372250920,0x3b31202c33337225,0x672e70746573090a,0x2509203233752e74\n" ".quad 0x31337225202c3470,0x0a3b34337225202c,0x7262203470254009,0x315f744c24092061\n" ".quad 0x3b36343938315f30,0x6f6f6c3c2f2f200a,0x2074726150203e70,0x20706f6f6c20666f\n" ".quad 0x6e696c2079646f62,0x68202c3435332065,0x6562616c20646165,0x5f744c242064656c\n" ".quad 0x32383034315f3031,0x33732e646461090a,0x2c35337225092032,0x25202c3232722520\n" ".quad 0x6f6d090a3b353272,0x2509203233752e76,0x0a3b30202c363372,0x746c2e7074657309\n" ".quad 0x702509203233732e,0x2c35337225202c35,0x090a3b3633722520,0x6172622035702540\n" ".quad 0x30315f744c240920,0x0a3b36343938315f,0x706f6f6c3c2f2f20,0x6f2074726150203e\n" ".quad 0x6220706f6f6c2066,0x656e696c2079646f,0x6568202c34353320,0x6c6562616c206461\n" ".quad 0x315f744c24206465,0x0a32383034315f30,0x736e6f632e646c09,0x2509203233752e74\n" ".quad 0x61705b202c373372,0x5d38342b736d6172,0x752e627573090a3b,0x3833722509203233\n" ".quad 0x202c37337225202c,0x70746573090a3b31,0x203233752e656c2e,0x7225202c36702509\n" ".quad 0x38337225202c3533,0x2036702540090a3b,0x5f4c240920617262,0x38393430315f3031\n" ".quad 0x30315f744c240a3b,0x0a3a36343938315f,0x30315f30315f4c24,0x2f2f200a3a343537\n" ".quad 0x50203e706f6f6c3c,0x6c20666f20747261,0x79646f6220706f6f,0x353320656e696c20\n" ".quad 0x2064616568202c34,0x2064656c6562616c,0x315f30315f744c24,0x6f6d090a32383034\n" ".quad 0x2509203233662e76,0x306630202c353366,0x3b30303030303030,0x202f2f0920202020\n" ".quad 0x662e766f6d090a30,0x3633662509203233,0x303030306630202c,0x2020203b30303030\n" ".quad 0x090a30202f2f0920,0x203233662e766f6d,0x30202c3733662509,0x3030303030303066\n" ".quad 0x2f09202020203b30,0x617262090a30202f,0x4c240920696e752e,0x5f5f69646e655744\n" ".quad 0x47636c616332315a,0x3468736148646972,0x3738315f33746e69,0x315f4c240a3b315f\n" ".quad 0x3a38393430315f30,0x6f6f6c3c2f2f200a,0x2074726150203e70,0x20706f6f6c20666f\n" ".quad 0x6e696c2079646f62,0x68202c3435332065,0x6562616c20646165,0x5f744c242064656c\n" ".quad 0x32383034315f3031,0x3109636f6c2e090a,0x0a30093530310937,0x3233752e6e696d09\n" ".quad 0x202c393372250920,0x7225202c35337225,0x6c756d090a3b3833,0x33732e6f6c2e3432\n" ".quad 0x2c30347225092032,0x25202c3933722520,0x756d090a3b333372,0x732e6f6c2e34326c\n" ".quad 0x3134722509203233,0x202c30347225202c,0x6d090a3b39327225,0x09203233752e6e69\n" ".quad 0x7225202c32347225,0x34337225202c3133,0x34326c756d090a3b,0x203233732e6f6c2e\n" ".quad 0x25202c3334722509,0x327225202c323472,0x2e646461090a3b39,0x3472250920323373\n" ".quad 0x2c31347225202c34,0x090a3b3334722520,0x203233752e6e696d,0x25202c3534722509\n" ".quad 0x337225202c373272,0x2e646461090a3b30,0x3472250920323373,0x2c34347225202c36\n" ".quad 0x090a3b3534722520,0x09373109636f6c2e,0x6d090a3009383033,0x09203233752e766f\n" ".quad 0x7225202c37347225,0x766f6d090a3b3634,0x722509203233732e,0x090a3b30202c3834\n" ".quad 0x203233752e766f6d,0x25202c3934722509,0x6f6d090a3b383472,0x2509203233732e76\n" ".quad 0x0a3b30202c303572,0x3233752e766f6d09,0x202c313572250920,0x6d090a3b30357225\n" ".quad 0x09203233732e766f,0x3b30202c32357225,0x33752e766f6d090a,0x2c33357225092032\n" ".quad 0x090a3b3235722520,0x762e64312e786574,0x33732e3233752e34,0x2c343572257b2032\n" ".quad 0x3572252c35357225,0x2c7d373572252c36,0x6174536c6c65635b,0x257b2c7865547472\n" ".quad 0x393472252c373472,0x72252c313572252c,0x2f200a3b5d7d3335,0x203e706f6f6c3c2f\n" ".quad 0x20666f2074726150,0x646f6220706f6f6c,0x3320656e696c2079,0x64616568202c3435\n" ".quad 0x64656c6562616c20,0x5f30315f744c2420,0x2e090a3238303431,0x3309373109636f6c\n" ".quad 0x6f6d090a30093131,0x2509203233732e76,0x357225202c383572,0x2e766f6d090a3b34\n" ".quad 0x3572250920323375,0x090a3b312d202c39,0x2e656e2e70746573,0x3770250920323375\n" ".quad 0x202c38357225202c,0x40090a3b39357225,0x2061726220377025,0x5f30315f744c2409\n" ".quad 0x200a3b3833333431,0x3e706f6f6c3c2f2f,0x666f207472615020,0x6f6220706f6f6c20\n" ".quad 0x20656e696c207964,0x616568202c343533,0x656c6562616c2064,0x30315f744c242064\n" ".quad 0x090a32383034315f,0x203233662e766f6d,0x30202c3533662509,0x3030303030303066\n" ".quad 0x2f09202020203b30,0x766f6d090a30202f,0x662509203233662e,0x30306630202c3633\n" ".quad 0x203b303030303030,0x30202f2f09202020,0x33662e766f6d090a,0x2c37336625092032\n" ".quad 0x3030303030663020,0x202020203b303030,0x62090a30202f2f09,0x0920696e752e6172\n" ".quad 0x69646e6557444c24,0x6c616332315a5f5f,0x7361486469724763,0x315f33746e693468\n" ".quad 0x4c240a3b315f3738,0x3334315f30315f74,0x3c2f2f200a3a3833,0x6150203e706f6f6c\n" ".quad 0x6f6c20666f207472,0x2079646f6220706f,0x34353320656e696c,0x6c2064616568202c\n" ".quad 0x242064656c656261,0x34315f30315f744c,0x2e646c090a323830,0x33752e74736e6f63\n" ".quad 0x2c30367225092032,0x736d617261705b20,0x6d090a3b5d34382b,0x09203233752e766f\n" ".quad 0x3b30202c31367225,0x652e70746573090a,0x2509203233752e71,0x30367225202c3870\n" ".quad 0x0a3b31367225202c,0x7262203870254009,0x315f744c24092061,0x3b38353439315f30\n" ".quad 0x6f6f6c3c2f2f200a,0x2074726150203e70,0x20706f6f6c20666f,0x6e696c2079646f62\n" ".quad 0x68202c3435332065,0x6562616c20646165,0x5f744c242064656c,0x32383034315f3031\n" ".quad 0x33732e766f6d090a,0x2c32367225092032,0x090a3b3036722520,0x203233732e766f6d\n" ".quad 0x25202c3336722509,0x6f6d090a3b383572,0x2509203233662e76,0x306630202c383366\n" ".quad 0x3b30303030303030,0x202f2f0920202020,0x662e766f6d090a30,0x3933662509203233\n" ".quad 0x303030306630202c,0x2020203b30303030,0x090a30202f2f0920,0x203233662e766f6d\n" ".quad 0x30202c3034662509,0x3030303030303066,0x2f09202020203b30,0x3c2f2f200a30202f\n" ".quad 0x6150203e706f6f6c,0x6f6c20666f207472,0x2079646f6220706f,0x34353320656e696c\n" ".quad 0x6c2064616568202c,0x242064656c656261,0x34315f30315f744c,0x766f6d090a323830\n" ".quad 0x722509203233732e,0x32367225202c3436,0x30315f744c240a3b,0x0a3a32363335315f\n" ".quad 0x706f6f6c3c2f2f20,0x6220706f6f4c203e,0x656e696c2079646f,0x656e202c31313320\n" ".quad 0x656420676e697473,0x202c34203a687470,0x6574616d69747365,0x7461726574692064\n" ".quad 0x6e75203a736e6f69,0x6d090a6e776f6e6b,0x09203233752e766f,0x7225202c35367225\n" ".quad 0x766f6d090a3b3336,0x722509203233732e,0x090a3b30202c3636,0x203233752e766f6d\n" ".quad 0x25202c3736722509,0x6f6d090a3b363672,0x2509203233732e76,0x0a3b30202c383672\n" ".quad 0x3233752e766f6d09,0x202c393672250920,0x6d090a3b38367225,0x09203233732e766f\n" ".quad 0x3b30202c30377225,0x33752e766f6d090a,0x2c31377225092032,0x090a3b3037722520\n" ".quad 0x762e64312e786574,0x33732e3233752e34,0x2c323772257b2032,0x3772252c33377225\n" ".quad 0x2c7d353772252c34,0x6c6369747261705b,0x7865546873614865,0x252c353672257b2c\n" ".quad 0x393672252c373672,0x3b5d7d313772252c,0x6f6f6c3c2f2f200a,0x2074726150203e70\n" ".quad 0x20706f6f6c20666f,0x6e696c2079646f62,0x68202c3131332065,0x6562616c20646165\n" ".quad 0x5f744c242064656c,0x32363335315f3031,0x3109636f6c2e090a,0x0a30093831330937\n" ".quad 0x3233732e766f6d09,0x202c363772250920,0x2e090a3b32377225,0x3309373109636f6c\n" ".quad 0x6573090a30093931,0x33752e656e2e7074,0x202c397025092032,0x7225202c36347225\n" ".quad 0x702540090a3b3637,0x2409206172622039,0x34315f30315f744c,0x2f2f200a3b303538\n" ".quad 0x50203e706f6f6c3c,0x6c20666f20747261,0x79646f6220706f6f,0x313320656e696c20\n" ".quad 0x2064616568202c31,0x2064656c6562616c,0x315f30315f744c24,0x6573090a32363335\n" ".quad 0x33752e71652e7074,0x2c30317025092032,0x25202c3336722520,0x702540090a3b3572\n" ".quad 0x0920617262203031,0x315f30315f744c24,0x2f200a3b38313635,0x203e706f6f6c3c2f\n" ".quad 0x20666f2074726150,0x646f6220706f6f6c,0x3320656e696c2079,0x64616568202c3131\n" ".quad 0x64656c6562616c20,0x5f30315f744c2420,0x6d090a3236333531,0x09203233752e766f\n" ".quad 0x7225202c37377225,0x766f6d090a3b3336,0x722509203233732e,0x090a3b30202c3837\n" ".quad 0x203233752e766f6d,0x25202c3937722509,0x6f6d090a3b383772,0x2509203233732e76\n" ".quad 0x0a3b30202c303872,0x3233752e766f6d09,0x202c313872250920,0x6d090a3b30387225\n" ".quad 0x09203233732e766f,0x3b30202c32387225,0x33752e766f6d090a,0x2c33387225092032\n" ".quad 0x090a3b3238722520,0x762e64312e786574,0x33732e3233662e34,0x2c313466257b2032\n" ".quad 0x3466252c32346625,0x2c7d343466252c33,0x54736f50646c6f5b,0x373772257b2c7865\n" ".quad 0x72252c393772252c,0x7d333872252c3138,0x6c3c2f2f200a3b5d,0x726150203e706f6f\n" ".quad 0x6f6f6c20666f2074,0x6c2079646f622070,0x2c31313320656e69,0x616c206461656820\n" ".quad 0x4c242064656c6562,0x3335315f30315f74,0x636f6c2e090a3236,0x0932323309373109\n" ".quad 0x662e766f6d090a30,0x3534662509203233,0x0a3b31346625202c,0x3233662e766f6d09\n" ".quad 0x202c363466250920,0x6d090a3b32346625,0x09203233662e766f,0x6625202c37346625\n" ".quad 0x766f6d090a3b3334,0x722509203233752e,0x33367225202c3438,0x732e766f6d090a3b\n" ".quad 0x3538722509203233,0x6f6d090a3b30202c,0x2509203233752e76,0x387225202c363872\n" ".quad 0x2e766f6d090a3b35,0x3872250920323373,0x6d090a3b30202c37,0x09203233752e766f\n" ".quad 0x7225202c38387225,0x766f6d090a3b3738,0x722509203233732e,0x090a3b30202c3938\n" ".quad 0x203233752e766f6d,0x25202c3039722509,0x6574090a3b393872,0x2e34762e64312e78\n" ".quad 0x203233732e323366,0x66252c383466257b,0x2c303566252c3934,0x6f5b2c7d31356625\n" ".quad 0x7865546c6556646c,0x252c343872257b2c,0x383872252c363872,0x3b5d7d303972252c\n" ".quad 0x6f6f6c3c2f2f200a,0x2074726150203e70,0x20706f6f6c20666f,0x6e696c2079646f62\n" ".quad 0x68202c3131332065,0x6562616c20646165,0x5f744c242064656c,0x32363335315f3031\n" ".quad 0x3109636f6c2e090a,0x0a30093332330937,0x3233662e766f6d09,0x202c323566250920\n" ".quad 0x6d090a3b38346625,0x09203233662e766f,0x6625202c33356625,0x766f6d090a3b3934\n" ".quad 0x662509203233662e,0x30356625202c3435,0x09636f6c2e090a3b,0x3009363233093731\n" ".quad 0x33662e627573090a,0x2c35356625092032,0x25202c3634662520,0x627573090a3b3666\n" ".quad 0x662509203233662e,0x35346625202c3635,0x090a3b356625202c,0x203233662e627573\n" ".quad 0x25202c3735662509,0x376625202c373466,0x662e646461090a3b,0x3835662509203233\n" ".quad 0x202c31336625202c,0x6d090a3b31336625,0x09203233662e6c75,0x6625202c39356625\n" ".quad 0x35356625202c3535,0x722e616d66090a3b,0x2509203233662e6e,0x356625202c303666\n" ".quad 0x2c36356625202c36,0x090a3b3935662520,0x662e6e722e616d66,0x3136662509203233\n" ".quad 0x202c37356625202c,0x6625202c37356625,0x727173090a3b3036,0x3233662e6e722e74\n" ".quad 0x202c323666250920,0x73090a3b31366625,0x662e74672e707465,0x3131702509203233\n" ".quad 0x202c38356625202c,0x40090a3b32366625,0x7262203131702521,0x315f744c24092061\n" ".quad 0x3b36383336315f30,0x6f6f6c3c2f2f200a,0x2074726150203e70,0x20706f6f6c20666f\n" ".quad 0x6e696c2079646f62,0x68202c3131332065,0x6562616c20646165,0x5f744c242064656c\n" ".quad 0x32363335315f3031,0x3109636f6c2e090a,0x0a30093033320937,0x3233662e62757309\n" ".quad 0x202c333666250920,0x6625202c32356625,0x627573090a3b3231,0x662509203233662e\n" ".quad 0x33356625202c3436,0x0a3b33316625202c,0x3233662e62757309,0x202c353666250920\n" ".quad 0x6625202c34356625,0x706372090a3b3431,0x203233662e6e722e,0x25202c3636662509\n" ".quad 0x756d090a3b323666,0x2509203233662e6c,0x356625202c373666,0x3b36366625202c35\n" ".quad 0x33662e6c756d090a,0x2c38366625092032,0x25202c3635662520,0x756d090a3b363666\n" ".quad 0x2509203233662e6c,0x356625202c393666,0x3b36366625202c37,0x33662e6c756d090a\n" ".quad 0x2c30376625092032,0x25202c3436662520,0x6d66090a3b373666,0x3233662e6e722e61\n" ".quad 0x202c313766250920,0x6625202c38366625,0x30376625202c3336,0x722e616d66090a3b\n" ".quad 0x2509203233662e6e,0x366625202c323766,0x2c35366625202c39,0x090a3b3137662520\n" ".quad 0x203233662e6c756d,0x25202c3337662509,0x376625202c383666,0x2e627573090a3b32\n" ".quad 0x3766250920323366,0x2c33366625202c34,0x090a3b3337662520,0x203233662e6c756d\n" ".quad 0x25202c3537662509,0x376625202c373666,0x2e627573090a3b32,0x3766250920323366\n" ".quad 0x2c34366625202c36,0x090a3b3537662520,0x203233662e6c756d,0x25202c3737662509\n" ".quad 0x376625202c393666,0x2e627573090a3b32,0x3766250920323366,0x2c35366625202c38\n" ".quad 0x090a3b3737662520,0x09373109636f6c2e,0x73090a3009393332,0x09203233662e6275\n" ".quad 0x6625202c39376625,0x32366625202c3835,0x6f632e646c090a3b,0x203233662e74736e\n" ".quad 0x5b202c3038662509,0x382b736d61726170,0x6c756d090a3b5d38,0x662509203233662e\n" ".quad 0x30386625202c3138,0x0a3b39376625202c,0x736e6f632e646c09,0x2509203233662e74\n" ".quad 0x61705b202c323866,0x3030312b736d6172,0x632e646c090a3b5d,0x3233662e74736e6f\n" ".quad 0x202c333866250920,0x2b736d617261705b,0x646c090a3b5d3639,0x662e74736e6f632e\n" ".quad 0x3438662509203233,0x6d617261705b202c,0x090a3b5d32392b73,0x203233662e6c756d\n" ".quad 0x25202c3538662509,0x386625202c383666,0x2e6c756d090a3b31,0x3866250920323366\n" ".quad 0x2c33366625202c36,0x090a3b3438662520,0x203233662e627573,0x25202c3738662509\n" ".quad 0x386625202c363866,0x2e616d66090a3b35,0x09203233662e6e72,0x6625202c38386625\n" ".quad 0x33386625202c3437,0x0a3b37386625202c,0x2e6e722e616d6609,0x3866250920323366\n" ".quad 0x2c36356625202c39,0x25202c3238662520,0x756d090a3b383866,0x2509203233662e6c\n" ".quad 0x366625202c303966,0x3b31386625202c37,0x33662e6c756d090a,0x2c31396625092032\n" ".quad 0x25202c3436662520,0x7573090a3b343866,0x2509203233662e62,0x396625202c323966\n" ".quad 0x3b30396625202c31,0x6e722e616d66090a,0x662509203233662e,0x36376625202c3339\n" ".quad 0x202c33386625202c,0x66090a3b32396625,0x33662e6e722e616d,0x2c34396625092032\n" ".quad 0x25202c3535662520,0x396625202c323866,0x2e6c756d090a3b33,0x3966250920323366\n" ".quad 0x2c39366625202c35,0x090a3b3138662520,0x203233662e6c756d,0x25202c3639662509\n" ".quad 0x386625202c353666,0x2e627573090a3b34,0x3966250920323366,0x2c36396625202c37\n" ".quad 0x090a3b3539662520,0x662e6e722e616d66,0x3839662509203233,0x202c38376625202c\n" ".quad 0x6625202c33386625,0x616d66090a3b3739,0x203233662e6e722e,0x25202c3939662509\n" ".quad 0x386625202c373566,0x3b38396625202c32,0x6e752e617262090a,0x315f744c24092069\n" ".quad 0x3b30333136315f30,0x5f30315f744c240a,0x200a3a3638333631,0x3e706f6f6c3c2f2f\n" ".quad 0x666f207472615020,0x6f6220706f6f6c20,0x20656e696c207964,0x616568202c313133\n" ".quad 0x656c6562616c2064,0x30315f744c242064,0x090a32363335315f,0x203233662e766f6d\n" ".quad 0x30202c3939662509,0x3030303030303066,0x2f09202020203b30,0x766f6d090a30202f\n" ".quad 0x662509203233662e,0x30306630202c3439,0x203b303030303030,0x30202f2f09202020\n" ".quad 0x33662e766f6d090a,0x2c39386625092032,0x3030303030663020,0x202020203b303030\n" ".quad 0x4c240a30202f2f09,0x3136315f30315f74,0x3c2f2f200a3a3033,0x6150203e706f6f6c\n" ".quad 0x6f6c20666f207472,0x2079646f6220706f,0x31313320656e696c,0x6c2064616568202c\n" ".quad 0x242064656c656261,0x35315f30315f744c,0x6f6c2e090a323633,0x3732330937310963\n" ".quad 0x2e646461090a3009,0x3466250920323366,0x2c39386625202c30,0x090a3b3034662520\n" ".quad 0x203233662e646461,0x25202c3933662509,0x336625202c343966,0x2e646461090a3b39\n" ".quad 0x3366250920323366,0x2c39396625202c38,0x240a3b3833662520,0x35315f30315f744c\n" ".quad 0x2f2f200a3a383136,0x50203e706f6f6c3c,0x6c20666f20747261,0x79646f6220706f6f\n" ".quad 0x313320656e696c20,0x2064616568202c31,0x2064656c6562616c,0x315f30315f744c24\n" ".quad 0x6c2e090a32363335,0x313309373109636f,0x646461090a300936,0x722509203233752e\n" ".quad 0x33367225202c3336,0x6461090a3b31202c,0x2509203233752e64,0x357225202c313972\n" ".quad 0x3b30367225202c38,0x6e2e70746573090a,0x2509203233752e65,0x367225202c323170\n" ".quad 0x3b31397225202c33,0x203231702540090a,0x744c240920617262,0x363335315f30315f\n" ".quad 0x6c3c2f2f200a3b32,0x726150203e706f6f,0x6f6f6c20666f2074,0x6c2079646f622070\n" ".quad 0x2c34353320656e69,0x616c206461656820,0x4c242064656c6562,0x3034315f30315f74\n" ".quad 0x2e617262090a3238,0x744c240920696e75,0x353834315f30315f,0x315f744c240a3b30\n" ".quad 0x3a38353439315f30,0x6f6f6c3c2f2f200a,0x2074726150203e70,0x20706f6f6c20666f\n" ".quad 0x6e696c2079646f62,0x68202c3435332065,0x6562616c20646165,0x5f744c242064656c\n" ".quad 0x32383034315f3031,0x33662e766f6d090a,0x2c38336625092032,0x3030303030663020\n" ".quad 0x202020203b303030,0x6d090a30202f2f09,0x09203233662e766f,0x6630202c39336625\n" ".quad 0x3030303030303030,0x2f2f09202020203b,0x2e766f6d090a3020,0x3466250920323366\n" ".quad 0x3030306630202c30,0x20203b3030303030,0x0a30202f2f092020,0x315f30315f744c24\n" ".quad 0x4c240a3a30353834,0x3431355f30315f74,0x6f6c3c2f2f200a3a,0x74726150203e706f\n" ".quad 0x706f6f6c20666f20,0x696c2079646f6220,0x202c34353320656e,0x62616c2064616568\n" ".quad 0x744c242064656c65,0x383034315f30315f,0x09636f6c2e090a32,0x3009313333093731\n" ".quad 0x33662e766f6d090a,0x2c37336625092032,0x090a3b3034662520,0x203233662e766f6d\n" ".quad 0x25202c3633662509,0x6f6d090a3b393366,0x2509203233662e76,0x336625202c353366\n" ".quad 0x6557444c240a3b38,0x32315a5f5f69646e,0x64697247636c6163,0x746e693468736148\n" ".quad 0x3a315f3738315f33,0x6f6f6c3c2f2f200a,0x2074726150203e70,0x20706f6f6c20666f\n" ".quad 0x6e696c2079646f62,0x68202c3435332065,0x6562616c20646165,0x5f744c242064656c\n" ".quad 0x32383034315f3031,0x3109636f6c2e090a,0x0a30093336330937,0x3233662e64646109\n" ".quad 0x202c343366250920,0x6625202c37336625,0x646461090a3b3433,0x662509203233662e\n" ".quad 0x36336625202c3333,0x0a3b33336625202c,0x3233662e64646109,0x202c323366250920\n" ".quad 0x6625202c35336625,0x646461090a3b3233,0x722509203233732e,0x37327225202c3732\n" ".quad 0x6573090a3b31202c,0x33732e656e2e7074,0x2c33317025092032,0x25202c3732722520\n" ".quad 0x2540090a3b343272,0x2061726220333170,0x5f30315f744c2409,0x200a3b3238303431\n" ".quad 0x3e706f6f6c3c2f2f,0x666f207472615020,0x6f6220706f6f6c20,0x20656e696c207964\n" ".quad 0x616568202c343533,0x656c6562616c2064,0x30315f744c242064,0x090a34313333315f\n" ".quad 0x203233732e646461,0x25202c3632722509,0x0a3b31202c363272,0x3233752e766f6d09\n" ".quad 0x202c323972250920,0x70746573090a3b32,0x203233732e656e2e,0x25202c3431702509\n" ".quad 0x397225202c363272,0x31702540090a3b32,0x2409206172622034,0x33315f30315f744c\n" ".quad 0x2f2f200a3b343133,0x50203e706f6f6c3c,0x6c20666f20747261,0x79646f6220706f6f\n" ".quad 0x353320656e696c20,0x2064616568202c34,0x2064656c6562616c,0x315f30315f744c24\n" ".quad 0x6461090a36343532,0x2509203233732e64,0x327225202c353272,0x6d090a3b31202c35\n" ".quad 0x09203233752e766f,0x3b32202c33397225,0x6e2e70746573090a,0x2509203233732e65\n" ".quad 0x327225202c353170,0x3b33397225202c35,0x203531702540090a,0x744c240920617262\n" ".quad 0x343532315f30315f,0x636f6c2e090a3b36,0x0931373309373109,0x6f632e646c090a30\n" ".quad 0x203233662e74736e,0x202c303031662509,0x2b736d617261705b,0x6461090a3b5d3631\n" ".quad 0x2509203233662e64,0x6625202c31303166,0x336625202c303031,0x632e646c090a3b31\n" ".quad 0x3233662e74736e6f,0x2c32303166250920,0x736d617261705b20,0x7573090a3b5d342b\n" ".quad 0x2509203233662e62,0x6625202c33303166,0x366625202c323031,0x6f632e646c090a3b\n" ".quad 0x203233662e74736e,0x202c343031662509,0x2b736d617261705b,0x627573090a3b5d30\n" ".quad 0x662509203233662e,0x316625202c353031,0x3b356625202c3430,0x6e6f632e646c090a\n" ".quad 0x09203233662e7473,0x5b202c3630316625,0x382b736d61726170,0x2e627573090a3b5d\n" ".quad 0x3166250920323366,0x30316625202c3730,0x0a3b376625202c36,0x3233662e6c756d09\n" ".quad 0x2c38303166250920,0x202c333031662520,0x090a3b3330316625,0x662e6e722e616d66\n" ".quad 0x3031662509203233,0x3530316625202c39,0x2c3530316625202c,0x0a3b383031662520\n" ".quad 0x2e6e722e616d6609,0x3166250920323366,0x30316625202c3031,0x3730316625202c37\n" ".quad 0x3b3930316625202c,0x722e74727173090a,0x2509203233662e6e,0x6625202c31313166\n" ".quad 0x6573090a3b303131,0x33662e74672e7074,0x2c36317025092032,0x202c313031662520\n" ".quad 0x090a3b3131316625,0x6220363170252140,0x5f744c2409206172,0x32323937315f3031\n" ".quad 0x09636f6c2e090a3b,0x3009303332093731,0x33662e67656e090a,0x3231316625092032\n" ".quad 0x0a3b32316625202c,0x3233662e67656e09,0x2c33313166250920,0x090a3b3431662520\n" ".quad 0x662e6e722e706372,0x3131662509203233,0x3131316625202c34,0x662e6c756d090a3b\n" ".quad 0x3131662509203233,0x3330316625202c35,0x3b3431316625202c,0x33662e6c756d090a\n" ".quad 0x3631316625092032,0x2c3530316625202c,0x0a3b343131662520,0x3233662e6c756d09\n" ".quad 0x2c37313166250920,0x202c373031662520,0x090a3b3431316625,0x203233662e6c756d\n" ".quad 0x202c383131662509,0x25202c3531316625,0x656e090a3b333166,0x2509203233662e67\n" ".quad 0x6625202c39313166,0x6d66090a3b383131,0x3233662e6e722e61,0x2c30323166250920\n" ".quad 0x202c363131662520,0x25202c3231316625,0x66090a3b39313166,0x33662e6e722e616d\n" ".quad 0x3132316625092032,0x2c3731316625202c,0x202c333131662520,0x090a3b3032316625\n" ".quad 0x203233662e6c756d,0x202c323231662509,0x25202c3631316625,0x6d090a3b31323166\n" ".quad 0x09203233662e6c75,0x25202c3332316625,0x6625202c35313166,0x756d090a3b313231\n" ".quad 0x2509203233662e6c,0x6625202c34323166,0x316625202c373131,0x6f6c2e090a3b3132\n" ".quad 0x3733320937310963,0x2e627573090a3009,0x3166250920323366,0x30316625202c3532\n" ".quad 0x3131316625202c31,0x6f632e646c090a3b,0x203233662e74736e,0x202c363231662509\n" ".quad 0x2b736d617261705b,0x756d090a3b5d3838,0x2509203233662e6c,0x6625202c37323166\n" ".quad 0x316625202c363231,0x2e646c090a3b3532,0x33662e74736e6f63,0x3832316625092032\n" ".quad 0x6d617261705b202c,0x090a3b5d36392b73,0x74736e6f632e646c,0x662509203233662e\n" ".quad 0x61705b202c393231,0x5d32392b736d6172,0x662e6c756d090a3b,0x3331662509203233\n" ".quad 0x3631316625202c30,0x3b3732316625202c,0x6e722e616d66090a,0x662509203233662e\n" ".quad 0x316625202c313331,0x3932316625202c32,0x3b3033316625202c,0x33662e646461090a\n" ".quad 0x3233316625092032,0x202c32316625202c,0x090a3b3232316625,0x662e6e722e616d66\n" ".quad 0x3331662509203233,0x3832316625202c33,0x2c3233316625202c,0x0a3b313331662520\n" ".quad 0x3233662e67656e09,0x2c34333166250920,0x0a3b333331662520,0x3233662e6c756d09\n" ".quad 0x2c35333166250920,0x202c353131662520,0x090a3b3732316625,0x662e6e722e616d66\n" ".quad 0x3331662509203233,0x2c33316625202c36,0x202c393231662520,0x090a3b3533316625\n" ".quad 0x203233662e646461,0x202c373331662509,0x25202c3332316625,0x6d66090a3b333166\n" ".quad 0x3233662e6e722e61,0x2c38333166250920,0x202c383231662520,0x25202c3733316625\n" ".quad 0x6e090a3b36333166,0x09203233662e6765,0x25202c3933316625,0x6d090a3b38333166\n" ".quad 0x09203233662e6c75,0x25202c3034316625,0x6625202c37313166,0x6d66090a3b373231\n" ".quad 0x3233662e6e722e61,0x2c31343166250920,0x25202c3431662520,0x6625202c39323166\n" ".quad 0x6461090a3b303431,0x2509203233662e64,0x6625202c32343166,0x316625202c343231\n" ".quad 0x2e616d66090a3b34,0x09203233662e6e72,0x25202c3334316625,0x6625202c38323166\n" ".quad 0x316625202c323431,0x67656e090a3b3134,0x662509203233662e,0x316625202c343431\n" ".quad 0x617262090a3b3334,0x4c240920696e752e,0x3637315f30315f74,0x5f744c240a3b3636\n" ".quad 0x32323937315f3031,0x662e766f6d090a3a,0x3431662509203233,0x3030306630202c34\n" ".quad 0x20203b3030303030,0x090a30202f2f0920,0x203233662e766f6d,0x202c393331662509\n" ".quad 0x3030303030306630,0x2f092020203b3030,0x766f6d090a30202f,0x662509203233662e\n" ".quad 0x306630202c343331,0x3b30303030303030,0x30202f2f09202020,0x5f30315f744c240a\n" ".quad 0x090a3a3636363731,0x09373109636f6c2e,0x61090a3009323733,0x09203233662e6464\n" ".quad 0x6625202c34336625,0x336625202c343331,0x2e646461090a3b34,0x3366250920323366\n" ".quad 0x3933316625202c33,0x0a3b33336625202c,0x3233662e64646109,0x202c323366250920\n" ".quad 0x25202c3434316625,0x6c2e090a3b323366,0x373309373109636f,0x6c756d090a300936\n" ".quad 0x203233752e6f6c2e,0x25202c3439722509,0x090a3b38202c3572,0x2e3436752e747663\n" ".quad 0x6472250920323375,0x3b34397225202c31,0x7261702e646c090a,0x09203436752e6d61\n" ".quad 0x5f5b202c32647225,0x726170616475635f,0x6c6f63385a5f5f6d,0x663650446564696c\n" ".quad 0x5f30533474616f6c,0x35505f30535f3053,0x5f6a5032746e6975,0x656c636974726170\n" ".quad 0x090a3b5d68736148,0x203436752e646461,0x25202c3364722509,0x647225202c316472\n" ".quad 0x672e646c090a3b32,0x32762e6c61626f6c,0x257b09203233752e,0x363972252c353972\n" ".quad 0x336472255b202c7d,0x6f6d090a3b5d302b,0x2509203233732e76,0x397225202c373972\n" ".quad 0x2e766f6d090a3b35,0x3972250920323373,0x3b36397225202c38,0x3109636f6c2e090a\n" ".quad 0x0a30093737330937,0x617261702e646c09,0x2509203436752e6d,0x5f5f5b202c346472\n" ".quad 0x6d72617061647563,0x6c6c6f63385a5f5f,0x6c66365044656469,0x535f30533474616f\n" ".quad 0x7535505f30535f30,0x6e5f6a5032746e69,0x0a3b5d6c65567765,0x3233662e64646109\n" ".quad 0x2c35343166250920,0x25202c3231662520,0x6f6d090a3b343366,0x2509203233732e76\n" ".quad 0x397225202c393972,0x2e6c756d090a3b38,0x09203233752e6f6c,0x25202c3030317225\n" ".quad 0x3b3631202c393972,0x36752e747663090a,0x2509203233752e34,0x317225202c356472\n" ".quad 0x646461090a3b3030,0x722509203436752e,0x35647225202c3664,0x0a3b34647225202c\n" ".quad 0x626f6c672e747309,0x09203233662e6c61,0x5d302b366472255b,0x3b3534316625202c\n" ".quad 0x33662e646461090a,0x3634316625092032,0x202c33316625202c,0x6d090a3b33336625\n" ".quad 0x09203233732e766f,0x25202c3130317225,0x756d090a3b383972,0x3233752e6f6c2e6c\n" ".quad 0x2c32303172250920,0x202c313031722520,0x747663090a3b3631,0x3233752e3436752e\n" ".quad 0x202c376472250920,0x090a3b3230317225,0x203436752e646461,0x25202c3864722509\n" ".quad 0x647225202c376472,0x672e7473090a3b34,0x33662e6c61626f6c,0x386472255b092032\n" ".quad 0x316625202c5d342b,0x646461090a3b3634,0x662509203233662e,0x316625202c373431\n" ".quad 0x3b32336625202c34,0x33732e766f6d090a,0x3330317225092032,0x0a3b38397225202c\n" ".quad 0x2e6f6c2e6c756d09,0x3172250920323375,0x30317225202c3430,0x090a3b3631202c33\n" ".quad 0x2e3436752e747663,0x6472250920323375,0x3430317225202c39,0x752e646461090a3b\n" ".quad 0x3164722509203436,0x2c39647225202c30,0x090a3b3464722520,0x61626f6c672e7473\n" ".quad 0x5b09203233662e6c,0x5d382b3031647225,0x3b3734316625202c,0x33732e766f6d090a\n" ".quad 0x3530317225092032,0x0a3b38397225202c,0x2e6f6c2e6c756d09,0x3172250920323375\n" ".quad 0x30317225202c3630,0x090a3b3631202c35,0x2e3436752e747663,0x6472250920323375\n" ".quad 0x30317225202c3131,0x2e646461090a3b36,0x6472250920343675,0x31647225202c3231\n" ".quad 0x3b34647225202c31,0x6f6c672e7473090a,0x203233662e6c6162,0x2b32316472255b09\n" ".quad 0x316625202c5d3231,0x636f6c2e090a3b35,0x0931383309373109,0x3b74697865090a30\n" ".quad 0x646e6557444c240a,0x6c6c6f63385a5f5f,0x6c66365044656469,0x535f30533474616f\n" ".quad 0x7535505f30535f30,0x0a3a6a5032746e69,0x5a5f202f2f207d09,0x6564696c6c6f6338\n" ".quad 0x74616f6c66365044,0x535f30535f305334,0x746e697535505f30,0x0000000a0a6a5032\n" ".text"); extern "C" { extern const unsigned long long __deviceText_$compute_20$[6708]; } static __cudaFatPtxEntry __ptxEntries [] = {{(char*)"compute_20",(char*)__deviceText_$compute_20$},{0,0}}; static __cudaFatCubinEntry __cubinEntries[] = {{0,0}}; static __cudaFatDebugEntry __debugEntries0 = {0, 0, 0, 0} ; static __cudaFatElfEntry __elfEntries0 = {0, 0, 0, 0} ; static __cudaFatElfEntry __elfEntries1 = {(char*)"sm_21", (char*)__deviceText_$sm_21$, &__elfEntries0, (unsigned int)sizeof(__deviceText_$sm_21$)}; static __cudaFatCudaBinary __fatDeviceText __attribute__ ((section (".nvFatBinSegment")))= {0x1ee55a01,0x00000004,0xa14f518d,(char*)"b94070212e540715",(char*)"/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu",(char*)" ",__ptxEntries,__cubinEntries,&__debugEntries0,0,0,0,0,0,0x62916fad,&__elfEntries1}; # 3 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.stub.c" 2 struct __T20 {float4 *__par0;float4 *__par1;float4 *__par2;float4 *__par3;float __par4;int __dummy_field;}; struct __T21 {float4 *__par0;uint *__par1;uint *__par2;int __dummy_field;}; struct __T22 {float4 *__par0;uint2 *__par1;int __dummy_field;}; struct __T23 {uint2 *__par0;float4 *__par1;float4 *__par2;float4 *__par3;float4 *__par4;uint *__par5;int __dummy_field;}; struct __T24 {float4 *__par0;float4 *__par1;float4 *__par2;float4 *__par3;uint2 *__par4;uint *__par5;int __dummy_field;}; extern void __device_stub__Z9integrateP6float4S0_S0_S0_f(float4 *, float4 *, float4 *, float4 *, float); extern void __device_stub__Z11updateGridDP6float4PjS1_(float4 *, uint *, uint *); extern void __device_stub__Z9calcHashDP6float4P5uint2(float4 *, uint2 *); extern void __device_stub__Z28reorderDataAndFindCellStartDP5uint2P6float4S2_S2_S2_Pj(uint2 *, float4 *, float4 *, float4 *, float4 *, uint *); extern void __device_stub__Z8collideDP6float4S0_S0_S0_P5uint2Pj(float4 *, float4 *, float4 *, float4 *, uint2 *, uint *); static void __sti____cudaRegisterAll_51_tmpxft_00000aee_00000000_4_particles_kernel_cpp1_ii_dee98040(void) __attribute__((__constructor__)); void __device_stub__Z9integrateP6float4S0_S0_S0_f(float4 *__par0, float4 *__par1, float4 *__par2, float4 *__par3, float __par4){ struct __T20 *__T25 = 0; if (cudaSetupArgument((void*)(char*)&__par0, sizeof(__par0), (size_t)&__T25->__par0) != cudaSuccess) return;if (cudaSetupArgument((void*)(char*)&__par1, sizeof(__par1), (size_t)&__T25->__par1) != cudaSuccess) return;if (cudaSetupArgument((void*)(char*)&__par2, sizeof(__par2), (size_t)&__T25->__par2) != cudaSuccess) return;if (cudaSetupArgument((void*)(char*)&__par3, sizeof(__par3), (size_t)&__T25->__par3) != cudaSuccess) return;if (cudaSetupArgument((void*)(char*)&__par4, sizeof(__par4), (size_t)&__T25->__par4) != cudaSuccess) return;{ volatile static char *__f; __f = ((char *)((void ( *)(float4 *, float4 *, float4 *, float4 *, float))integrate)); (void)cudaLaunch(((char *)((void ( *)(float4 *, float4 *, float4 *, float4 *, float))integrate))); };} void integrate( float4 *__cuda_0,float4 *__cuda_1,float4 *__cuda_2,float4 *__cuda_3,float __cuda_4) # 62 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" {__device_stub__Z9integrateP6float4S0_S0_S0_f( __cuda_0,__cuda_1,__cuda_2,__cuda_3,__cuda_4); # 87 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" } # 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.stub.c" void __device_stub__Z11updateGridDP6float4PjS1_( float4 *__par0, uint *__par1, uint *__par2) { struct __T21 *__T219 = 0; if (cudaSetupArgument((void*)(char*)&__par0, sizeof(__par0), (size_t)&__T219->__par0) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par1, sizeof(__par1), (size_t)&__T219->__par1) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par2, sizeof(__par2), (size_t)&__T219->__par2) != cudaSuccess) return; { volatile static char *__f; __f = ((char *)((void ( *)(float4 *, uint *, uint *))updateGridD)); (void)cudaLaunch(((char *)((void ( *)(float4 *, uint *, uint *))updateGridD))); }; } void updateGridD( float4 *__cuda_0,uint *__cuda_1,uint *__cuda_2) # 135 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" {__device_stub__Z11updateGridDP6float4PjS1_( __cuda_0,__cuda_1,__cuda_2); # 143 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" } # 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.stub.c" void __device_stub__Z9calcHashDP6float4P5uint2( float4 *__par0, uint2 *__par1) { struct __T22 *__T220 = 0; if (cudaSetupArgument((void*)(char*)&__par0, sizeof(__par0), (size_t)&__T220->__par0) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par1, sizeof(__par1), (size_t)&__T220->__par1) != cudaSuccess) return; { volatile static char *__f; __f = ((char *)((void ( *)(float4 *, uint2 *))calcHashD)); (void)cudaLaunch(((char *)((void ( *)(float4 *, uint2 *))calcHashD))); }; } void calcHashD( float4 *__cuda_0,uint2 *__cuda_1) # 149 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" {__device_stub__Z9calcHashDP6float4P5uint2( __cuda_0,__cuda_1); # 159 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" } # 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.stub.c" void __device_stub__Z28reorderDataAndFindCellStartDP5uint2P6float4S2_S2_S2_Pj( uint2 *__par0, float4 *__par1, float4 *__par2, float4 *__par3, float4 *__par4, uint *__par5) { struct __T23 *__T221 = 0; if (cudaSetupArgument((void*)(char*)&__par0, sizeof(__par0), (size_t)&__T221->__par0) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par1, sizeof(__par1), (size_t)&__T221->__par1) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par2, sizeof(__par2), (size_t)&__T221->__par2) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par3, sizeof(__par3), (size_t)&__T221->__par3) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par4, sizeof(__par4), (size_t)&__T221->__par4) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par5, sizeof(__par5), (size_t)&__T221->__par5) != cudaSuccess) return; { volatile static char *__f; __f = ((char *)((void ( *)(uint2 *, float4 *, float4 *, float4 *, float4 *, uint *))reorderDataAndFindCellStartD)); (void)cudaLaunch(((char *)((void ( *)(uint2 *, float4 *, float4 *, float4 *, float4 *, uint *))reorderDataAndFindCellStartD))); }; } void reorderDataAndFindCellStartD( uint2 *__cuda_0,float4 *__cuda_1,float4 *__cuda_2,float4 *__cuda_3,float4 *__cuda_4,uint *__cuda_5) # 170 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" {__device_stub__Z28reorderDataAndFindCellStartDP5uint2P6float4S2_S2_S2_Pj( __cuda_0,__cuda_1,__cuda_2,__cuda_3,__cuda_4,__cuda_5); # 202 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" } # 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.stub.c" void __device_stub__Z8collideDP6float4S0_S0_S0_P5uint2Pj( float4 *__par0, float4 *__par1, float4 *__par2, float4 *__par3, uint2 *__par4, uint *__par5) { struct __T24 *__T2134 = 0; if (cudaSetupArgument((void*)(char*)&__par0, sizeof(__par0), (size_t)&__T2134->__par0) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par1, sizeof(__par1), (size_t)&__T2134->__par1) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par2, sizeof(__par2), (size_t)&__T2134->__par2) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par3, sizeof(__par3), (size_t)&__T2134->__par3) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par4, sizeof(__par4), (size_t)&__T2134->__par4) != cudaSuccess) return; if (cudaSetupArgument((void*)(char*)&__par5, sizeof(__par5), (size_t)&__T2134->__par5) != cudaSuccess) return; { volatile static char *__f; __f = ((char *)((void ( *)(float4 *, float4 *, float4 *, float4 *, uint2 *, uint *))collideD)); (void)cudaLaunch(((char *)((void ( *)(float4 *, float4 *, float4 *, float4 *, uint2 *, uint *))collideD))); }; } void collideD( float4 *__cuda_0,float4 *__cuda_1,float4 *__cuda_2,float4 *__cuda_3,uint2 *__cuda_4,uint *__cuda_5) # 346 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" {__device_stub__Z8collideDP6float4S0_S0_S0_P5uint2Pj( __cuda_0,__cuda_1,__cuda_2,__cuda_3,__cuda_4,__cuda_5); # 381 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" } # 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.stub.c" static void __sti____cudaRegisterAll_51_tmpxft_00000aee_00000000_4_particles_kernel_cpp1_ii_dee98040(void) { __cudaFatCubinHandle = __cudaRegisterFatBinary((void*)&__fatDeviceText); atexit(__cudaUnregisterBinaryUtil); __cudaRegisterFunction(__cudaFatCubinHandle, (const char*)((void ( *)(float4 *, float4 *, float4 *, float4 *, uint2 *, uint *))collideD), (char*)"_Z8collideDP6float4S0_S0_S0_P5uint2Pj", "_Z8collideDP6float4S0_S0_S0_P5uint2Pj", -1, (uint3*)0, (uint3*)0, (dim3*)0, (dim3*)0, (int*)0); __cudaRegisterFunction(__cudaFatCubinHandle, (const char*)((void ( *)(uint2 *, float4 *, float4 *, float4 *, float4 *, uint *))reorderDataAndFindCellStartD), (char*)"_Z28reorderDataAndFindCellStartDP5uint2P6float4S2_S2_S2_Pj", "_Z28reorderDataAndFindCellStartDP5uint2P6float4S2_S2_S2_Pj", -1, (uint3*)0, (uint3*)0, (dim3*)0, (dim3*)0, (int*)0); __cudaRegisterFunction(__cudaFatCubinHandle, (const char*)((void ( *)(float4 *, uint2 *))calcHashD), (char*)"_Z9calcHashDP6float4P5uint2", "_Z9calcHashDP6float4P5uint2", -1, (uint3*)0, (uint3*)0, (dim3*)0, (dim3*)0, (int*)0); __cudaRegisterFunction(__cudaFatCubinHandle, (const char*)((void ( *)(float4 *, uint *, uint *))updateGridD), (char*)"_Z11updateGridDP6float4PjS1_", "_Z11updateGridDP6float4PjS1_", -1, (uint3*)0, (uint3*)0, (dim3*)0, (dim3*)0, (int*)0); __cudaRegisterFunction(__cudaFatCubinHandle, (const char*)((void ( *)(float4 *, float4 *, float4 *, float4 *, float))integrate), (char*)"_Z9integrateP6float4S0_S0_S0_f", "_Z9integrateP6float4S0_S0_S0_f", -1, (uint3*)0, (uint3*)0, (dim3*)0, (dim3*)0, (int*)0); __cudaRegisterTexture(__cudaFatCubinHandle, (const struct textureReference*)&oldPosTex, (const void**)"oldPosTex", "oldPosTex", 1, 0, 0); __cudaRegisterTexture(__cudaFatCubinHandle, (const struct textureReference*)&oldVelTex, (const void**)"oldVelTex", "oldVelTex", 1, 0, 0); __cudaRegisterTexture(__cudaFatCubinHandle, (const struct textureReference*)&particleHashTex, (const void**)"particleHashTex", "particleHashTex", 1, 0, 0); __cudaRegisterTexture(__cudaFatCubinHandle, (const struct textureReference*)&cellStartTex, (const void**)"cellStartTex", "cellStartTex", 1, 0, 0); __cudaRegisterTexture(__cudaFatCubinHandle, (const struct textureReference*)&gridCountersTex, (const void**)"gridCountersTex", "gridCountersTex", 1, 0, 0); __cudaRegisterTexture(__cudaFatCubinHandle, (const struct textureReference*)&gridCellsTex, (const void**)"gridCellsTex", "gridCellsTex", 1, 0, 0); __cudaRegisterVar(__cudaFatCubinHandle, (char*)&params, (char*)"params", "params", 0, 112, 1, 0); } # 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.stub.c" 2
50.453836
2,550
0.765421
florianjacob
3f5cae2fd4ca43da1172cb616025c807b219acab
4,206
cpp
C++
test/converter.cpp
ufcg-lsd/fast-sebal
93cccb498edf4e25e2b4570c652d61338e66ef60
[ "MIT" ]
2
2019-02-26T23:05:42.000Z
2019-04-15T23:59:35.000Z
test/converter.cpp
ufcg-lsd/fast-sebal
93cccb498edf4e25e2b4570c652d61338e66ef60
[ "MIT" ]
null
null
null
test/converter.cpp
ufcg-lsd/fast-sebal
93cccb498edf4e25e2b4570c652d61338e66ef60
[ "MIT" ]
1
2019-07-03T20:37:08.000Z
2019-07-03T20:37:08.000Z
#include "tiffio.h" #include <string> #include <math.h> #include <iostream> #include <string.h> #include <stdlib.h> using namespace std; const double EPS = 1e-7; const double NaN = -sqrt(-1.0); struct PixelReader{ uint16 sampleFormat; uint8 byteSize; tdata_t buffer; PixelReader(); PixelReader(uint16 _sampleFormat, uint8 _byteSize,tdata_t _buffer); double read_pixel(uint32 column); }; PixelReader::PixelReader() { sampleFormat = 0; byteSize = 0; buffer = NULL; }; PixelReader::PixelReader(uint16 _sampleFormat, uint8 _byteSize, tdata_t _buffer){ sampleFormat = _sampleFormat; byteSize = _byteSize; buffer = _buffer; }; double PixelReader::read_pixel(uint32 column){ double ret = 0; switch(sampleFormat){ case 1: { uint64 value = 0; memcpy(&value, buffer + (column * byteSize), byteSize); ret = value; } break; case 2: { int64 value = 0; memcpy(&value, buffer + (column * byteSize), byteSize); ret = value; } break; case 3: switch(byteSize){ case 4: { float value = 0; memcpy(&value, buffer + (column * byteSize), byteSize); ret = value; } break; case 8: { double value = 0; memcpy(&value, buffer + (column * byteSize), byteSize); ret = value; } break; case 16: { long double value = 0; memcpy(&value, buffer + (column * byteSize), byteSize); ret = value; } break; default: cerr << "Unsupported operation!" << endl; exit(2); } break; default: cerr << "Unsupported operation!" << endl; exit(2); } return ret; }; void setup(TIFF* new_tif, TIFF* base_tif){ uint32 image_width, image_length; TIFFGetField(base_tif, TIFFTAG_IMAGEWIDTH, &image_width); TIFFGetField(base_tif, TIFFTAG_IMAGELENGTH, &image_length); TIFFSetField(new_tif, TIFFTAG_IMAGEWIDTH , image_width); TIFFSetField(new_tif, TIFFTAG_IMAGELENGTH , image_length); TIFFSetField(new_tif, TIFFTAG_BITSPERSAMPLE , 64); TIFFSetField(new_tif, TIFFTAG_SAMPLEFORMAT , 3); TIFFSetField(new_tif, TIFFTAG_COMPRESSION , 1); TIFFSetField(new_tif, TIFFTAG_PHOTOMETRIC , 1); TIFFSetField(new_tif, TIFFTAG_SAMPLESPERPIXEL, 1); TIFFSetField(new_tif, TIFFTAG_ROWSPERSTRIP , 1); TIFFSetField(new_tif, TIFFTAG_RESOLUTIONUNIT , 1); TIFFSetField(new_tif, TIFFTAG_XRESOLUTION , 1); TIFFSetField(new_tif, TIFFTAG_YRESOLUTION , 1); TIFFSetField(new_tif, TIFFTAG_PLANARCONFIG , PLANARCONFIG_CONTIG); }; void converter_tif(string base_tif_path, string output_tif_path, double mask = 0.0){ uint32 height_band, width_band; uint16 sample_band; TIFF *base = TIFFOpen(base_tif_path.c_str(), "rm"); TIFFGetField(base, TIFFTAG_IMAGEWIDTH, &width_band); TIFFGetField(base, TIFFTAG_IMAGELENGTH, &height_band); TIFFGetField(base, TIFFTAG_SAMPLEFORMAT, &sample_band); TIFF *output = TIFFOpen(output_tif_path.c_str(), "w8m"); setup(output, base); PixelReader pixel_read_band; tdata_t line_band; double output_line_band[width_band]; unsigned short byte_size_band = TIFFScanlineSize(base) / width_band; line_band = _TIFFmalloc(TIFFScanlineSize(base)); pixel_read_band = PixelReader(sample_band, byte_size_band, line_band); for(int line = 0; line < height_band; line ++){ if(TIFFReadScanline(base, line_band, line) < 0){ cerr << "Read problem" << endl; exit(3); } for(int col = 0; col < width_band; col ++){ output_line_band[col] = pixel_read_band.read_pixel(col); if(fabs(output_line_band[col] - mask) < EPS) output_line_band[col] = NaN; } if (TIFFWriteScanline(output, output_line_band, line) < 0){ cerr << "Write problem!" << endl; exit(4); } } TIFFClose(base); TIFFClose(output); }; int main(int argc, char *argv[]){ string base_tif_path = argv[1]; string output_tif_path = argv[2]; double mask = 0.0; if(argc == 4) mask = atof(argv[3]); converter_tif(base_tif_path, output_tif_path, mask); return 0; }
25.962963
84
0.647884
ufcg-lsd
3f5e9a4900290ee4e8b60bdad290a2043aed155f
2,361
cc
C++
newnnfw/runtimes/pure_arm_compute/src/internal/op/Lstm.cc
kosslab-kr/Tizen-NN-Framework
132fc98ed57e4b19ad1f4cb258ad79fa9df1db7a
[ "Apache-2.0" ]
8
2018-09-10T01:32:26.000Z
2020-05-13T06:05:40.000Z
newnnfw/runtimes/pure_arm_compute/src/internal/op/Lstm.cc
kosslab-kr/Tizen-NN-Framework
132fc98ed57e4b19ad1f4cb258ad79fa9df1db7a
[ "Apache-2.0" ]
28
2018-09-10T05:01:09.000Z
2021-03-04T10:07:12.000Z
newnnfw/runtimes/pure_arm_compute/src/internal/op/Lstm.cc
kosslab-kr/Tizen-NN-Framework
132fc98ed57e4b19ad1f4cb258ad79fa9df1db7a
[ "Apache-2.0" ]
4
2018-09-13T04:16:08.000Z
2018-12-03T07:34:44.000Z
/* * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "internal/op/Lstm.h" #include "internal/op/NodeVisitor.h" #include <cassert> namespace internal { namespace tflite { namespace op { namespace LSTM { void Node::accept(NodeVisitor &&v) const { v.visit(*this); } } // namespace LSTM } // namespace op } // namespace tflite } // namespace internal namespace internal { namespace tflite { namespace op { namespace LSTM { Param::Param(uint32_t inputCount, const uint32_t *inputs, uint32_t outputCount, const uint32_t *outputs) { assert(inputCount == 23 && outputCount == 4); scratch_buffer_index = outputs[0]; output_state_out_index = outputs[1]; cell_state_out_index = outputs[2]; output_index = outputs[3]; input_index = inputs[0]; input_to_input_weights_index = inputs[1]; input_to_forget_weights_index = inputs[2]; input_to_cell_weights_index = inputs[3]; input_to_output_weights_index = inputs[4]; recurrent_to_input_weights_index = inputs[5]; recurrent_to_forget_weights_index = inputs[6]; recurrent_to_cell_weights_index = inputs[7]; recurrent_to_output_weights_index = inputs[8]; cell_to_input_weights_index = inputs[9]; cell_to_forget_weights_index = inputs[10]; cell_to_output_weights_index = inputs[11]; input_gate_bias_index = inputs[12]; forget_gate_bias_index = inputs[13]; cell_bias_index = inputs[14]; output_gate_bias_index = inputs[15]; projection_weights_index = inputs[16]; projection_bias_index = inputs[17]; output_state_in_index = inputs[18]; cell_state_in_index = inputs[19]; activation_index = inputs[20]; cell_threshold_index = inputs[21]; projection_threshold_index = inputs[22]; } } // namespace LSTM } // namespace op } // namespace tflite } // namespace internal
27.453488
79
0.745023
kosslab-kr
3f5ffcc2526668fb182c0708fd54026e5d49ecbe
601
cpp
C++
source/002/main.cpp
TheBuzzSaw/ProjectEuler
0aa472dc7dac3a710b6a99538b2cbaf8b6463abc
[ "Unlicense" ]
1
2015-03-12T19:56:28.000Z
2015-03-12T19:56:28.000Z
source/002/main.cpp
TheBuzzSaw/ProjectEuler
0aa472dc7dac3a710b6a99538b2cbaf8b6463abc
[ "Unlicense" ]
null
null
null
source/002/main.cpp
TheBuzzSaw/ProjectEuler
0aa472dc7dac3a710b6a99538b2cbaf8b6463abc
[ "Unlicense" ]
null
null
null
#include <iostream> #include <cstdint> using namespace std; int64_t GetTotal(int64_t limit) { int64_t total = 0; int64_t a = 0; int64_t b = 1; while (1) { int64_t c = a + b; a = b; b = c; if (a < limit) { bool isOdd = a & 1; if (!isOdd) total += a; } else { break; } } return total; } int main(int argc, char** argv) { cout << GetTotal(4000000) << endl; return 0; }
15.815789
39
0.379368
TheBuzzSaw
3f636d376f42b8052c54f6ec2693c10eae419d96
397
cpp
C++
02_Array_Representation/05_static_allocation_of_array_in_stack.cpp
krishna6431/Data-Structure-Algorithms-Implementation-Using_CPP
0eedb6fb8a395ff050ae37dc4b8c6470f5b47579
[ "Apache-2.0" ]
2
2020-07-01T17:10:20.000Z
2021-08-02T22:46:32.000Z
02_Array_Representation/05_static_allocation_of_array_in_stack.cpp
krishna6431/Data-Structure-Algorithms-Implementation-Using_CPP
0eedb6fb8a395ff050ae37dc4b8c6470f5b47579
[ "Apache-2.0" ]
null
null
null
02_Array_Representation/05_static_allocation_of_array_in_stack.cpp
krishna6431/Data-Structure-Algorithms-Implementation-Using_CPP
0eedb6fb8a395ff050ae37dc4b8c6470f5b47579
[ "Apache-2.0" ]
null
null
null
//Data Structure Course //All Codes Are Written by Krishna //Arrays Representation #include <iostream> using namespace std; int main(){ // this declaration allocates memory in stack at runtime //this is static allocation -->size can't be changed int arr[5]={1,2,3,4,5}; for(int i=0;i<5;i++){ cout << arr[i] << " "; } cout << endl; //use for new line return 0; }
23.352941
59
0.627204
krishna6431
3f64d96d92dbee74a82072fece7976cbab845862
1,918
cpp
C++
NumberTheory/SieveOfEratosthenes/SieveOfEratosthenes.cpp
CStanKonrad/Algorithms
494d86bc2a9248d71a0f9008d8d678386f9ca906
[ "MIT" ]
null
null
null
NumberTheory/SieveOfEratosthenes/SieveOfEratosthenes.cpp
CStanKonrad/Algorithms
494d86bc2a9248d71a0f9008d8d678386f9ca906
[ "MIT" ]
null
null
null
NumberTheory/SieveOfEratosthenes/SieveOfEratosthenes.cpp
CStanKonrad/Algorithms
494d86bc2a9248d71a0f9008d8d678386f9ca906
[ "MIT" ]
null
null
null
/* The MIT License (MIT) Copyright (c) 2015 CStanKonrad Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <cstdio> #include <cmath> #define MAX_VAL 10000000 int sieveOfEratosthenesSmallestDivisor[MAX_VAL + 7]; void sieveOfEratosthenes(int _end) //[2;_end] { sieveOfEratosthenesSmallestDivisor[1] = 1; int sqrtVal = ceil(sqrt(_end)); for (int i = 2, j; i <= sqrtVal; i++) { if (sieveOfEratosthenesSmallestDivisor[i] != 0) continue; for (j = i*i; j <= _end; j += i) { if (sieveOfEratosthenesSmallestDivisor[j] == 0) sieveOfEratosthenesSmallestDivisor[j] = i; } } } void printPrimes(int _end) { for (int i = 2; i <= _end; i++) { if (sieveOfEratosthenesSmallestDivisor[i] == 0) printf("%d ", i); } } int n; int main() { scanf("%d", &n); sieveOfEratosthenes(n); printPrimes(n); return 0; }
28.626866
78
0.699166
CStanKonrad
3f6c3c7559ba6469ada0e4b4f53c5a81b7468759
502
cpp
C++
android-31/java/nio/file/spi/FileTypeDetector.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-31/java/nio/file/spi/FileTypeDetector.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-29/java/nio/file/spi/FileTypeDetector.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#include "../../../../JString.hpp" #include "../../../lang/Void.hpp" #include "./FileTypeDetector.hpp" namespace java::nio::file::spi { // Fields // QJniObject forward FileTypeDetector::FileTypeDetector(QJniObject obj) : JObject(obj) {} // Constructors // Methods JString FileTypeDetector::probeContentType(JObject arg0) const { return callObjectMethod( "probeContentType", "(Ljava/nio/file/Path;)Ljava/lang/String;", arg0.object() ); } } // namespace java::nio::file::spi
20.08
69
0.673307
YJBeetle
3f6cda39762e458a5bcdeb657ec68154cc34986f
711
cpp
C++
CodeChef DSA Learning/Week 3/SAVKONO.cpp
mishrraG/100DaysOfCode
3358af290d4f05889917808d68b95f37bd76e698
[ "MIT" ]
13
2020-08-10T14:06:37.000Z
2020-09-24T14:21:33.000Z
CodeChef DSA Learning/Week 3/SAVKONO.cpp
mishrraG/DaysOfCP
3358af290d4f05889917808d68b95f37bd76e698
[ "MIT" ]
null
null
null
CodeChef DSA Learning/Week 3/SAVKONO.cpp
mishrraG/DaysOfCP
3358af290d4f05889917808d68b95f37bd76e698
[ "MIT" ]
1
2020-05-31T21:09:14.000Z
2020-05-31T21:09:14.000Z
//https://www.codechef.com/LRNDSA03/problems/SAVKONO/ #include<bits/stdc++.h> #define endl '\n' using namespace std; int main() { ios :: sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); int t; cin>>t; while(t--) { int n,z; cin>>n>>z; priority_queue<int> pq; int a; for(int i=0;i<n;i++) { cin>>a; pq.push(a); } int ans=0; while(!pq.empty() && z>0) { a=pq.top(); pq.pop(); z=z-a; a=a/2; if(a>0) pq.push(a); ans++; } if(z>0) cout<<"Evacuate\n"; else cout<<ans<<endl; } }
19.75
53
0.416315
mishrraG
3f6dd90e97d5cd9ef3561414867783ac0dba0d01
1,390
cpp
C++
SPOJ/BUBBLESORT.cpp
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-01-30T13:21:30.000Z
2018-01-30T13:21:30.000Z
SPOJ/BUBBLESORT.cpp
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
null
null
null
SPOJ/BUBBLESORT.cpp
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-08-29T13:26:50.000Z
2018-08-29T13:26:50.000Z
/** * > Author: TISparta * > Date: 12-09-18 * > Tags: BIT * > Difficulty: 4 / 10 */ #include <bits/stdc++.h> #define all(X) begin(X), end(X) using namespace std; const int MAX_N = 1e4 + 10, MOD = 1e7 + 7; struct BIT { int* ft; int sz = 0; BIT (int n): sz(n) { ft = new int[n]; fill(ft, ft + n, 0); } ~BIT () { delete[] ft; } int get (int pos) { int ret = 0; while (pos) { ret += ft[pos]; pos = pos bitand (pos - 1); } return ret; } void update (int pos, const int inc) { while (pos < sz) { ft[pos] += inc; pos = (pos bitor (pos - 1)) + 1; } } int getRightSum (int a) { return get(sz - 1) - get(a - 1); } }; int n, arr[MAX_N + 10]; int solve () { BIT* ft = new BIT(n + 10); int ans = 0; for (int i = 0; i < n; i++) { ans = (ans + ft -> getRightSum(arr[i] + 1)) % MOD; ft -> update(arr[i], 1); } delete ft; return ans % MOD; } void compress () { vector <int> x(arr, arr + n); sort(all(x)); x.erase(unique(all(x)), end(x)); for (int i = 0; i < n; i++) arr[i] = lower_bound(all(x), arr[i]) - begin(x) + 1; } void read () { scanf("%d", &n); for (int i = 0; i < n; i++) scanf("%d", arr + i); } int main () { int tc; scanf("%d", &tc); for (int t = 1; t <= tc; t++) { read(); compress(); printf("Case %d: %d\n", t, solve()); } return (0); }
17.375
82
0.471942
TISparta
3f6f256d35e014129e936c3a0b52efde966d66c6
1,143
cpp
C++
vmca/test/testCAKeyCreate.cpp
wfu8/lightwave
cf6a7417cd9807bfcf9bcd99c43c5b2eecf2d298
[ "Apache-2.0" ]
357
2015-04-20T00:16:30.000Z
2022-03-17T05:34:09.000Z
vmca/test/testCAKeyCreate.cpp
wfu8/lightwave
cf6a7417cd9807bfcf9bcd99c43c5b2eecf2d298
[ "Apache-2.0" ]
38
2015-11-19T05:20:53.000Z
2022-03-31T07:21:59.000Z
vmca/test/testCAKeyCreate.cpp
wfu8/lightwave
cf6a7417cd9807bfcf9bcd99c43c5b2eecf2d298
[ "Apache-2.0" ]
135
2015-04-21T15:23:21.000Z
2022-03-30T11:46:36.000Z
/* * Copyright © 2012-2016 VMware, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an “AS IS” BASIS, without * warranties or conditions of any kind, EITHER EXPRESS OR IMPLIED. See the * License for the specific language governing permissions and limitations * under the License. */ #include <iostream> #include <string> #include <cstdlib> #include <fstream> typedef long DWORD; typedef void VOID; #include <pkcs_types.h> #include <pkcs_csr.h> using namespace std; int main(int argc, char **argv) { std::string rootDir("/home/anue/vmca-final/vmca/obj/test/"); std:string delCmd("rm -rf "); delCmd.append(rootDir); delCmd.append("*.pem"); std::string CertName("testRootCA"); system(delCmd.c_str()); //VMCACreateCAKeys((char*)rootDir.c_str(),(char*)CertName.c_str(),"",1024); }
30.891892
79
0.711286
wfu8
3f721e60daf2971fe1db76fd33201e5466de0196
28,428
cpp
C++
src/cli.cpp
moralismercatus/kmap
6887780c2fbe795f07a81808ef31f11dad4f5043
[ "MIT" ]
1
2021-06-28T00:31:08.000Z
2021-06-28T00:31:08.000Z
src/cli.cpp
moralismercatus/kmap
6887780c2fbe795f07a81808ef31f11dad4f5043
[ "MIT" ]
null
null
null
src/cli.cpp
moralismercatus/kmap
6887780c2fbe795f07a81808ef31f11dad4f5043
[ "MIT" ]
null
null
null
/****************************************************************************** * Author(s): Christopher J. Havlicek * * See LICENSE and CONTACTS. ******************************************************************************/ #include "cli.hpp" #include "canvas.hpp" #include "cli/parser.hpp" #include "cmd/command.hpp" #include "cmd/parser.hpp" #include "cmd/select_node.hpp" #include "contract.hpp" #include "io.hpp" #include "js_iface.hpp" #include "kmap.hpp" #include <boost/algorithm/string/case_conv.hpp> #include <boost/sml.hpp> #include <emscripten.h> #include <emscripten/val.h> #include <range/v3/action/sort.hpp> #include <range/v3/algorithm/count_if.hpp> #include <range/v3/algorithm/find_if.hpp> #include <range/v3/range/conversion.hpp> #include <range/v3/view/drop.hpp> #include <range/v3/view/filter.hpp> #include <range/v3/view/indices.hpp> #include <range/v3/view/intersperse.hpp> #include <range/v3/view/join.hpp> #include <range/v3/view/map.hpp> #include <range/v3/view/remove.hpp> #include <range/v3/view/split.hpp> #include <range/v3/view/take.hpp> #include <range/v3/view/transform.hpp> #include <cctype> #include <map> using namespace ranges; using namespace std::string_literals; namespace kmap { Cli::Cli( Kmap& kmap ) : kmap_{ kmap } { } auto Cli::parse_raw( std::string const& input ) -> Result< std::string > { auto rv = KMAP_MAKE_RESULT( std::string ); if( auto const cbar = parser::cli::parse_command_bar( input ) ; cbar ) { // TODO: more complex CLI options probably warrant a "self propelled" state machine, but with just one opt sel and cmd, probably not worth it now. // Actually, the driving events could be the "chain" of commands.c. auto const sel = parser::cli::fetch_selection_string( *cbar ); auto const cmd = parser::cli::fetch_command_string( *cbar ); if( sel && !cmd ) { rv = cmd::select_node( kmap_, *sel ); } else if( sel && cmd ) { auto const selected = kmap_.selected_node(); if( rv = cmd::select_node( kmap_, *sel ) ; rv ) { rv = execute( cmd->first, cmd->second ); } // Return to original. if( kmap_.exists( selected ) ) // Corner case in which the command deletes the original node! TODO: Make test case for this. { KMAP_TRY( kmap_.select_node( selected ) ); } } else if( cmd ) { rv = execute( cmd->first, cmd->second ); } } else { rv = KMAP_MAKE_ERROR_MSG( error_code::common::uncategorized, "Syntax error" ); } if( rv ) { // Note: no longer need to notify of success, as this should be done automatically. // Only failure to find command or execute body should be reported. // A failure to execute the command is already handled. notify_success( rv.value() ); } else { #if KMAP_DEBUG io::print( stderr, "parse_raw() command failed: {}\n", to_string( rv.error() ) ); #endif // KMAP_DEBUG BC_ASSERT( rv.has_error() ); BC_ASSERT( !rv.error().stack.empty() ); io::print( "{}\n", to_string( rv.error() ) ); notify_failure( rv.error().stack.front().message ); } if( is_focused() ) { kmap_.network().focus(); } return rv; } auto Cli::register_command( PreregisteredCommand const& prereg ) -> void { prereg_cmds_.emplace_back( prereg ); } auto Cli::register_argument( PreregisteredArgument const& arg ) -> void { prereg_args_.emplace_back( arg ); } auto Cli::execute( std::string const& cmd_str , std::string const& arg ) -> Result< std::string > { auto rv = KMAP_MAKE_RESULT( std::string ); io::print( "execute.arg: {}\n", arg ); // This block temporary until old-style cmds are transitioned to new. if( auto const resolved_cmd = fetch_general_command_guard_resolved( cmd_str ) ; resolved_cmd ) { rv = KMAP_TRY( cmd::execute_command( kmap_, resolved_cmd.value(), arg ) ); return rv; } auto const cmd = fetch_command( cmd_str ); auto const args = arg | views::split( ' ' ) | to< StringVec >(); if( !cmd ) { rv = KMAP_MAKE_ERROR_MSG( error_code::common::uncategorized, "unrecognized command" ); } else { auto const min_size = [ & ] { return count_if( cmd->args , []( auto const& e ) { return !e->is_optional(); } ); }(); auto const max_size = [ & ] { if( cmd->args.size() == 1 && dynamic_cast< TitleArg* >( &( *cmd->args[ 0 ] ) ) != nullptr ) // TODO: Find a better way. Hack to allow TitleArg accept an arbitrary number of arguments. { return std::numeric_limits< decltype( cmd->args.size() ) >::max(); } else { return cmd->args.size(); } }(); if( args.size() < min_size || args.size() > max_size ) { rv = KMAP_MAKE_ERROR_MSG( error_code::common::uncategorized , fmt::format( "expected between [{},{}] arguments, got {}" , min_size , max_size , args.size() ) ); } else { auto const malformed = [ & ]() -> Optional< uint32_t > { for( auto i : views::indices( min( args.size() , cmd->args.size() ) ) ) { if( auto const rv = cmd->args[ i ] ->is_fmt_malformed( args[ i ] ) ; rv ) { return rv; } } return nullopt; }(); if( malformed ) { rv = KMAP_MAKE_ERROR_MSG( error_code::common::uncategorized , fmt::format( "malformation at position: {}" , *malformed ) ); } else { rv = cmd->dispatch( args ); } } } return rv; } auto Cli::register_command( CliCommand const& cmd ) -> void { valid_cmds_.insert( { cmd.command, cmd } ); } [[ deprecated( "used in old cmd style" ) ]] auto Cli::fetch_command( std::string const& cmd ) const -> Optional< CliCommand > { auto rv = Optional< CliCommand >{}; auto const it = valid_cmds_.find( cmd ); if( it != valid_cmds_.end() ) { rv = it->second; } return rv; } // TODO: Probably belongs in command.cpp auto Cli::fetch_general_command( Heading const& path ) const -> Optional< Uuid > { auto rv = Optional< Uuid >{}; if( auto const desc = kmap_.fetch_descendant( fmt::format( "{}.{}" , "/meta.setting.command" , path ) ) ; desc ) { rv = desc.value(); } return rv; } auto Cli::resolve_contextual_guard( Uuid const& cmd ) const -> Result< Uuid > { auto rv = KMAP_MAKE_RESULT( Uuid ); if( cmd::is_general_command( kmap_, cmd ) ) { for( auto const guard : kmap_.fetch_children_ordered( cmd ) ) { if( cmd::evaluate_guard( kmap_, guard, { "" } ) ) // Note: arg is omitted b/c this is the environmental guard, not argument guard. { rv = guard; break; } } } else { rv = KMAP_MAKE_ERROR( error_code::command::not_general_command ); } return rv; } // TODO: It'd be nice if this was easily composable: fetch_command | resolve_guard, rather than verbosely named. auto Cli::fetch_general_command_guard_resolved( Heading const& path ) const -> Optional< Uuid > { auto rv = Optional< Uuid >{}; io::print( "fetching: {}\n", path ); if( auto const guarded = fetch_general_command( path ) ; guarded ) { io::print( "found: {}\n", path ); if( auto const resolved = resolve_contextual_guard( guarded.value() ) ) { io::print( "resolved: {}\n", path ); rv = resolved.value(); } else { io::print( "ctx guard failed: \n", to_string( resolved.error() ) ); } } return rv; } auto Cli::complete( std::string const& input ) -> void { using boost::to_lower_copy; hide_popup(); // Clear previous popup. if( auto const cbar = parser::cli::parse_command_bar( to_lower_copy( input ) ) ; cbar ) { // TODO: more complex CLI options probably warrant a "self propelled" state machine, but with just one opt sel and cmd, probably not worth it now. // Actually, the driving events could be the "chain" of commands.c. auto const sel = parser::cli::fetch_selection_string( *cbar ); auto const cmd = parser::cli::fetch_command_string( *cbar ); if( sel && !cmd ) { auto const completed_set = complete_selection( kmap_ , kmap_.root_node_id() , kmap_.selected_node() , *sel ); if( completed_set ) { auto const completed = completed_set.value() | views::transform( &CompletionNode::path ) | to< StringSet >(); if( completed.size() == 1 ) { auto const out = fmt::format( ":@{}" , *completed.begin() ); write( out ); } else { auto const completed_vec = completed | to< StringVec >(); auto const out = fmt::format( ":@{}" , longest_common_prefix( completed_vec ) ); // TODO: Before showing popup, eliminate common headings to shorten the hints to just the important parts. show_popup( completed_vec ); write( out ); } } } else if( sel && cmd ) { auto const ccmd = complete_command( cmd->first , cmd->second | views::split( ' ' ) | to< StringVec >() ); auto const out = fmt::format( ":@{} :{}" , *sel , ccmd ); write( out ); } else if( cmd ) { auto const ccmd = complete_command( cmd->first , cmd->second | views::split( ' ' ) | to< StringVec >() ); auto const out = fmt::format( ":{}" , ccmd ); write( out ); } } return; } /// An empty result means no completion found. // TODO: This could be a free function. auto Cli::complete_arg( Argument const& arg , std::string const& input ) -> StringVec { auto rv = StringVec{}; BC_CONTRACT() BC_POST([ & ] { for( auto const& e : rv ) { BC_ASSERT( e.size() >= input.size() ); } }) ; rv = arg.complete( input ); return rv; } auto Cli::complete_command( std::string const& input ) const -> StringVec { auto rv = StringVec{}; BC_CONTRACT() BC_POST([ & ] { // BC_ASSERT( rv.size() >= input.size() ); }) ; auto const cmds_root = kmap_.fetch_descendant( "/meta.setting.command" ); auto const ctx_filter = views::filter( [ & ]( auto const& e ) { auto const resolved = resolve_contextual_guard( e.target ); if( !resolved ) { io::print( "unresolved: {}\n", resolved.error().ec.message() ); } if( resolved ) { return true; } else if( resolved.error().ec == error_code::command::not_general_command ) { return true; } else { return false; } } ); auto const completion_map = complete_path_reducing( kmap_ , cmds_root.value() , cmds_root.value() , input ); if( completion_map ) { auto const possible_completions = completion_map.value() | ctx_filter | views::transform( &CompletionNode::path ) | to< StringVec >(); rv = possible_completions; } return rv; } auto Cli::complete_command( std::string const& scmd , StringVec const& args ) -> std::string { auto rv = fmt::format( "{} {}" , scmd , flatten( args ) ); if( !args.empty() ) { if( auto const cmd = fetch_general_command_guard_resolved( scmd ) ; cmd ) { if( auto const params = cmd::fetch_params_ordered( kmap_, cmd.value() ) ; params && params.value().size() >= args.size() ) { auto const tcarg = args.back(); auto const completer = kmap_.node_view( params.value()[ args.size() - 1 ] )[ "/completion" ]; auto const possible_completions = cmd::evaluate_completer( kmap_ , completer , tcarg ); if( possible_completions ) { if( possible_completions.value().size() == 1 ) { hide_popup(); rv = fmt::format( "{} {}" , scmd , possible_completions.value()[ 0 ] ); } else { show_popup( possible_completions.value() ); rv = fmt::format( "{} {}" , scmd , longest_common_prefix( possible_completions.value() ) ); } } else { show_popup( possible_completions.error().ec.message() ); } } } } else { auto const completions = complete_command( scmd ); if( completions.empty() ) { rv = scmd; } if( completions.size() == 1 ) { hide_popup(); rv = completions[ 0 ]; } else { show_popup( completions ); rv = longest_common_prefix( completions ); } } return rv; } auto Cli::write( std::string const& out ) -> void { using emscripten::val; BC_CONTRACT() BC_PRE([ & ] { BC_ASSERT( !val::global( to_string( kmap_.canvas().cli_pane() ).c_str() ).isUndefined() ); }) ; val::global( to_string( kmap_.canvas().cli_pane() ).c_str() ).set( "value", out ); } auto Cli::read() -> std::string { using emscripten::val; using std::string; BC_CONTRACT() BC_PRE([ & ] { BC_ASSERT( !val::global( to_string( kmap_.canvas().cli_pane() ).c_str() ).isUndefined() ); }) ; auto const elem = val::global( to_string( kmap_.canvas().cli_pane() ).c_str() )[ "value" ]; assert( elem.as< bool >() ); return elem.as< string >(); } auto Cli::focus() -> void { using emscripten::val; BC_CONTRACT() BC_PRE([ & ] { BC_ASSERT( js::fetch_element_by_id< val >( to_string( kmap_.canvas().cli_pane() ) ).has_value() ); }) ; auto elem = js::fetch_element_by_id< val >( to_string( kmap_.canvas().cli_pane() ) ); BC_ASSERT( elem ); elem.value().call< val >( "focus" ); update_pane(); } auto Cli::is_focused() -> bool { using emscripten::val; BC_CONTRACT() BC_PRE([ & ] { BC_ASSERT( !val::global( to_string( kmap_.canvas().cli_pane() ).c_str() ).isUndefined() ); }) ; auto const elem = val::global( to_string( kmap_.canvas().cli_pane() ).c_str() ); auto const doc = val::global( "document" ); return elem == doc[ "activeElement" ]; } auto Cli::clear_input() -> void { using emscripten::val; BC_CONTRACT() BC_PRE([ & ] { BC_ASSERT( !val::global( to_string( kmap_.canvas().cli_pane() ).c_str() ).isUndefined() ); }) ; auto elem = val::global( to_string( kmap_.canvas().cli_pane() ).c_str() ); elem.set( "value", "" ); hide_popup(); } auto Cli::valid_commands() -> std::vector< CliCommand > { return valid_cmds_ | views::values | to_vector; } auto Cli::enable_write() -> void { using emscripten::val; BC_CONTRACT() BC_PRE([ & ] { BC_ASSERT( !val::global( to_string( kmap_.canvas().cli_pane() ).c_str() ).isUndefined() ); }) ; auto elem = val::global( to_string( kmap_.canvas().cli_pane() ).c_str() ); elem.set( "readOnly", false ); } auto Cli::disable_write() -> void { using emscripten::val; BC_CONTRACT() BC_PRE([ & ] { BC_ASSERT( !val::global( to_string( kmap_.canvas().cli_pane() ).c_str() ).isUndefined() ); }) ; auto elem = val::global( to_string( kmap_.canvas().cli_pane() ).c_str() ); elem.set( "readOnly", true ); } auto Cli::set_color( Color const& c ) -> void { using emscripten::val; BC_CONTRACT() BC_PRE([ & ] { BC_ASSERT( !val::global( to_string( kmap_.canvas().cli_pane() ).c_str() ).isUndefined() ); }) ; auto elem = val::global( to_string( kmap_.canvas().cli_pane() ).c_str() ); elem.set( "style" , fmt::format( "background-color: {}" , to_string( c ) ) ); } auto Cli::show_popup( std::string const& text ) -> void { using emscripten::val; BC_CONTRACT() BC_PRE([ & ] { BC_ASSERT( !val::global( "cli_popup" ).isUndefined() ); }) ; auto elem = val::global( "cli_popup" ); elem.set( "innerHTML", text ); // TODO: how to call elem.classList.call< val >( "add", "show" )? KMAP_LOG_LINE(); EM_ASM( { let popup = document.getElementById( "cli_popup" ); popup.classList .add( "show" ); } , text.c_str() ); // TODO: Is this line dead code? KMAP_LOG_LINE(); } auto Cli::show_popup( StringVec const& lines ) -> void { auto formatted = lines | views::intersperse( std::string{ "<br>" } ) | to_vector; show_popup( formatted | views::join | to< std::string >() ); } auto Cli::hide_popup() -> void { // TODO: how to call elem.classList.call< val >( "remove", "show" )? KMAP_LOG_LINE(); EM_ASM( { let popup = document.getElementById( "cli_popup" ); popup.classList .remove( "show" ); } ); KMAP_LOG_LINE(); } /// Assumes any completion/abortion of input will unfocus CLI. auto Cli::get_input() -> std::string { BC_CONTRACT() BC_PRE([ & ] { BC_ASSERT( is_focused() ); }) ; assert( false ); // while( is_focused() ) // This just deadlocks the program... doesn't work // at all... need to simple remove this routine. // { // } return read(); } auto Cli::execute_command( Uuid const& id , std::string const& code ) -> bool { using emscripten::val; BC_CONTRACT() BC_PRE([ & ] { BC_ASSERT( !val::global( "append_script" ).isUndefined() ); }) ; auto const sid = to_string( id ); auto const cid = sid | views::remove( '-' ) | to< std::string >(); auto const fn = fmt::format( "cmd_{}" , cid ); // TODO: The registration "append_script call" should happen at the callback of writes to body (or leaving body editor). // This function should merely translate the id to a cmd_* function and call it. auto append_script = val::global( "append_script" ); append_script( fn , code ); fmt::print( "Command {} updated\n", fn ); return true; } auto register_command( Kmap& kmap , CliCommand const& cmd ) -> bool { auto rv = bool{}; #if 0 auto const path = fmt::format( "/setting.command.{}" , cmd.command ); if( auto const cmd_root = kmap.fetch_or_create_leaf( path ) ; cmd_root ) { if( auto const args_root = kmap.fetch_or_create_leaf( *cmd_root , "argument" ) ; args_root ) { for( auto const& arg : cmd.args ) { kmap.create_alias( arg , root ); } return true; } } if( !rv ) { kmap.delete_node( path ); } #endif // 0 return rv; } auto Cli::notify_success( std::string const& message ) -> void { BC_CONTRACT() BC_PRE([ & ] { }) ; clear_input(); write( fmt::format( "[success] {}" , message ) ); disable_write(); set_color( Color::green ); update_pane(); } auto Cli::notify_failure( std::string const& message ) -> void { BC_CONTRACT() BC_PRE([ & ] { }) ; clear_input(); write( fmt::format( "[failure] {}" , message ) ); disable_write(); set_color( Color::red ); update_pane(); } auto Cli::create_argument( PreregisteredArgument const& arg ) -> Result< Uuid > { auto rv = KMAP_MAKE_RESULT( Uuid ); auto const arg_root = kmap_.fetch_or_create_descendant( kmap_.root_node_id() , "/meta.setting.argument" ); // TODO: Should this be setting.command.argument instead? auto const arg_root_path = kmap_.absolute_path_flat( arg_root.value() ); if( auto const existing = kmap_.fetch_descendant( io::format( "{}.{}", arg_root_path, arg.path ) ) ; existing ) { KMAP_TRY( kmap_.delete_node( existing.value() ) ); } auto const arglin = KMAP_TRY( kmap_.create_descendants( arg_root.value() , io::format( "/{}", arg.path ) ) ); auto const arg_node = arglin.back(); auto const nodes = kmap_.create_children( arg_node , "description" , "guard" , "completion" ); kmap_.update_body( nodes[ 0 ], arg.description ); kmap_.update_body( nodes[ 1 ], arg.guard ); kmap_.update_body( nodes[ 2 ], arg.completion ); rv = arg_node; return rv; } // TODO: This belongs in command.cpp, doesn't it? auto Cli::create_command( PreregisteredCommand const& prereg ) -> Result< Uuid > { auto rv = KMAP_MAKE_RESULT( Uuid ); auto const cmd_root = KMAP_TRY( kmap_.fetch_or_create_descendant( kmap_.root_node_id() , "/meta.setting.command" ) ); auto const path_from_root = fmt::format( "/{}.{}" , prereg.path , prereg.guard.heading ); if( auto const existing = kmap_.fetch_descendant( cmd_root, prereg.path ) ; existing ) { KMAP_TRY( kmap_.delete_node( existing.value() ) ); } auto const cmdlin = KMAP_TRY( kmap_.create_descendants( cmd_root, path_from_root ) ); auto const cmd = cmdlin.back(); auto const children = kmap_.create_children( cmd , "description" , "argument" , "action" ); auto const nodes = kmap_.node_view( cmd ); kmap_.update_body( cmd, prereg.guard.code ); kmap_.update_body( nodes[ "/description" ], prereg.description ); for( auto const& arg : prereg.arguments ) { auto const arg_src = KMAP_TRY( kmap_.fetch_descendant( fmt::format( "/meta.setting.argument.{}" , arg.argument_alias ) ) ); auto const arg_dst = KMAP_TRY( kmap_.create_child( nodes[ "/argument" ], arg.heading ) ); kmap_.update_body( arg_dst, arg.description ); KMAP_TRY( kmap_.create_alias( arg_src, arg_dst ) ); } kmap_.update_body( nodes[ "/action" ], prereg.action ); rv = cmd; return rv; } auto Cli::on_key_down( int const key , bool const is_ctrl , bool const is_shift , std::string const& text ) -> Result< void > { auto rv = KMAP_MAKE_RESULT( void ); KMAP_LOG_LINE(); io::print( "checking key: {}\n", key ); switch( key ) { case 9/*tab*/: { KMAP_LOG_LINE(); complete( text ); KMAP_LOG_LINE(); break; } case 13/*enter*/: { parse_raw( read() ); break; } case 27/*escape*/: { if( is_ctrl && 67 == key ) // ctrl+c { auto& nw = kmap_.network(); clear_input(); nw.focus(); } break; } case 67/*c*/: { if( is_ctrl ) { auto& nw = kmap_.network(); clear_input(); nw.focus(); } break; } } rv = outcome::success(); return rv; } auto Cli::reset_preregistered_arguments() -> Result< void > { auto rv = KMAP_MAKE_RESULT( void ); for( auto const& prereg : prereg_args_ ) { KMAP_TRY( create_argument( prereg ) ); } rv = outcome::success(); return rv; } auto Cli::reset_preregistered_commands() -> Result< void > { auto rv = KMAP_MAKE_RESULT( void ); for( auto const& prereg : prereg_cmds_ ) { KMAP_TRY( create_command( prereg ) ); } rv = outcome::success(); return rv; } auto Cli::reset_all_preregistered() -> Result< void > { auto rv = KMAP_MAKE_RESULT( void ); // Note: Must be applied the order below, as commands depends upon arguments. KMAP_TRY( reset_preregistered_arguments() ); KMAP_TRY( reset_preregistered_commands() ); rv = outcome::success(); return rv; } auto Cli::update_pane() -> void { kmap_.canvas().update_pane( kmap_.canvas().cli_pane() ); // TODO: Find out why focusing requires a repositioning of the CLI element. That is, why to calls to this are necessary to maintain dimensions. } /* :<cmd> args ... /<regex> @<path> @<path> :<cmd> @<path> /opts/regex Start -> Search [ push_rest ] Start -> Command [ push_cmd ] Start -> Select [ push_rest ] Command -> Args Args -> Arg Arg Args -> Arg Select -> Command Select -> Search */ } // namespace kmap
26.894986
204
0.486949
moralismercatus
3f7674bcde69f0c529c272c57ab40dd1eaa949fb
1,809
cpp
C++
devices/CAN/src/BitStream.cpp
gboyraz/macchina.io
3e26fea95e87512459693831242b297f0780cc21
[ "Apache-2.0" ]
2
2020-11-23T23:37:00.000Z
2020-12-22T04:02:41.000Z
devices/CAN/src/BitStream.cpp
bas524/cmake.macchina.io
22a21d78f8075fd145b788b41a23603591e91c9f
[ "Apache-2.0" ]
null
null
null
devices/CAN/src/BitStream.cpp
bas524/cmake.macchina.io
22a21d78f8075fd145b788b41a23603591e91c9f
[ "Apache-2.0" ]
1
2020-11-23T23:37:09.000Z
2020-11-23T23:37:09.000Z
// // BitStream.cpp // // Copyright (c) 2018, Applied Informatics Software Engineering GmbH. // All rights reserved. // // SPDX-License-Identifier: Apache-2.0 // #include "IoT/CAN/BitStream.h" #include "Poco/SharedPtr.h" namespace IoT { namespace CAN { BigEndianBitStream::BigEndianBitStream(const char* buffer, std::size_t offset, std::size_t length): _buffer(buffer), _byteOffset(offset/8), _bitOffset(offset%8), _length(length) { } BigEndianBitStream::~BigEndianBitStream() { } Poco::UInt32 BigEndianBitStream::readUnsigned(std::size_t length) { poco_assert (length <= _length); Poco::UInt32 value(0); while (length-- > 0) { value <<= 1; value |= readBit(); } return value; } Poco::Int32 BigEndianBitStream::readSigned(std::size_t length) { poco_assert (length <= _length); Poco::Int32 value(readBit() ? 0xFFFFFFFF : 0); // sign-extend while (--length > 0) { value <<= 1; value |= readBit(); } return value; } LittleEndianBitStream::LittleEndianBitStream(const char* buffer, std::size_t offset, std::size_t length): _buffer(buffer), _byteOffset(offset/8), _bitOffset(offset%8), _length(length) { } LittleEndianBitStream::~LittleEndianBitStream() { } Poco::UInt32 LittleEndianBitStream::readUnsigned(std::size_t length) { poco_assert (length <= _length); int offset = 0; Poco::UInt32 value(0); while (length-- > 0) { value |= static_cast<Poco::UInt32>(readBit()) << offset++; } return value; } Poco::Int32 LittleEndianBitStream::readSigned(std::size_t length) { poco_assert (length <= _length); int offset = 0; Poco::Int32 value(0); while (length-- > 1) { value |= static_cast<Poco::UInt32>(readBit()) << offset++; } value |= static_cast<Poco::UInt32>(readBit() ? 0xFFFFFFFF : 0) << offset; return value; } } } // namespace IoT::CAN
17.066038
105
0.688226
gboyraz
3f78f3c890e565b748fab6b1d3228b5acb243153
6,730
hpp
C++
include/interfaces/Ports/Speaker.hpp
CapRat/APAL
a08f4bc6ee6299e8e370ef99750262ad23c87d58
[ "MIT" ]
2
2020-09-21T12:30:05.000Z
2020-10-14T19:43:51.000Z
include/interfaces/Ports/Speaker.hpp
CapRat/APAL
a08f4bc6ee6299e8e370ef99750262ad23c87d58
[ "MIT" ]
null
null
null
include/interfaces/Ports/Speaker.hpp
CapRat/APAL
a08f4bc6ee6299e8e370ef99750262ad23c87d58
[ "MIT" ]
null
null
null
#ifndef SPEAKER_HPP #define SPEAKER_HPP #include <cstdint> #include <type_traits> #define SPOS_TO_SCONF(SpeakerConfigurationtype) \ static_cast<std::underlying_type<SpeakerConfiguration>::type>( \ SpeakerConfigurationtype) namespace APAL { enum class SpeakerConfiguration : uint64_t; /** * @brief Enum, which represents different Positions of speakers. * Channellayout is closed to WAV specification */ enum class SpeakerPosition : uint64_t { Undefined = 0, FrontLeft = 1 << 0, FrontRight = 1 << 1, FrontCenter = 1 << 2, LowFrequency = 1 << 3, RearLeft = 1 << 4, RearRight = 1 << 5, FrontLeftOfCenter = 1 << 6, FrontRightOfCenter = 1 << 7, RearCenter = 1 << 8, SideLeft = 1 << 9, SideRight = 1 << 10, TopCenter = 1 << 11, FrontLeftHeight = 1 << 12, FrontCenterHeight = 1 << 13, FrontRightHeight = 1 << 14, RearLeftHeight = 1 << 15, RearCenterHeight = 1 << 16, RearRightHeight = 1 << 17, Subbass = 1 << 18 }; // constexpr std::underlying_type<SpeakerConfiguration>::type operator // &(SpeakerPosition lhs) { return // static_cast<std::underlying_type<SpeakerPosition>::type> (lhs); } constexpr std::underlying_type<SpeakerConfiguration>::type operator|(std::underlying_type<SpeakerConfiguration>::type lhs, SpeakerPosition rhs) { return static_cast<std::underlying_type<SpeakerConfiguration>::type>( static_cast<std::underlying_type<SpeakerConfiguration>::type>(lhs) | static_cast<std::underlying_type<SpeakerPosition>::type>(rhs)); } constexpr std::underlying_type<SpeakerConfiguration>::type operator|(SpeakerConfiguration lhs, SpeakerPosition rhs) { return static_cast<std::underlying_type<SpeakerConfiguration>::type>( static_cast<std::underlying_type<SpeakerConfiguration>::type>(lhs) | static_cast<std::underlying_type<SpeakerPosition>::type>(rhs)); } constexpr std::underlying_type<SpeakerConfiguration>::type operator|(SpeakerPosition lhs, SpeakerPosition rhs) { return static_cast<std::underlying_type<SpeakerConfiguration>::type>( static_cast<std::underlying_type<SpeakerPosition>::type>(lhs) | static_cast<std::underlying_type<SpeakerPosition>::type>(rhs)); } enum class SpeakerConfiguration : uint64_t { Undefined = SPOS_TO_SCONF(SpeakerPosition::Undefined), Mono = SPOS_TO_SCONF(SpeakerPosition::FrontCenter), // Mono sound MonoLegacy = SPOS_TO_SCONF( SpeakerPosition::FrontLeft), // Mono implementations for old speakers. Stereo2_0 = SpeakerPosition::FrontLeft | SpeakerPosition::FrontRight, Stereo2_1 = Stereo2_0 | SpeakerPosition::LowFrequency, Stereo3_0 = Stereo2_0 | SpeakerPosition::FrontCenter, Stereo3_1 = Stereo3_0 | SpeakerPosition::LowFrequency, Surround3_0 = Stereo2_0 | SpeakerPosition::RearCenter, Surround4_0 = Surround3_0 | SpeakerPosition::FrontCenter, Surround4_1 = Surround4_0 | SpeakerPosition::LowFrequency, Surround5_0Front = Stereo2_0 | SpeakerPosition::FrontCenter | SpeakerPosition::RearLeft | SpeakerPosition::RearRight, Surround5_1Front = Surround5_0Front | SpeakerPosition::LowFrequency, Surround5_0Side = Stereo2_0 | SpeakerPosition::FrontCenter | SpeakerPosition::SideLeft | SpeakerPosition::SideRight, Surround5_1Side = Surround5_0Side | SpeakerPosition::LowFrequency, Atmos5_1_4 = Stereo2_0 | SpeakerPosition::FrontCenter | SpeakerPosition::FrontLeftHeight | SpeakerPosition::FrontRightHeight | SpeakerPosition::LowFrequency, Surround6_0Back = Stereo2_0 | SpeakerPosition::FrontCenter | SpeakerPosition::RearLeft | SpeakerPosition::RearRight | SpeakerPosition::RearCenter, Surround6_1Back = Surround6_0Back | SpeakerPosition::LowFrequency, Surround6_0Front = Stereo2_0 | SpeakerPosition::FrontCenter | SpeakerPosition::RearLeft | SpeakerPosition::FrontLeftOfCenter | SpeakerPosition::FrontRightOfCenter, Surround6_1Front = Surround6_0Front | SpeakerPosition::LowFrequency, Surround6_0Side = Stereo2_0 | SpeakerPosition::FrontCenter | SpeakerPosition::RearLeft | SpeakerPosition::SideLeft | SpeakerPosition::SideRight, Surround6_1Side = Surround6_0Side | SpeakerPosition::LowFrequency, Wide7_1 = Stereo2_0 | SpeakerPosition::FrontCenter | SpeakerPosition::FrontLeftOfCenter | SpeakerPosition::FrontRightOfCenter | SpeakerPosition::RearLeft | SpeakerPosition::RearRight | SpeakerPosition::LowFrequency, /**SURROUND ALIASSE */ Surround5_0 = Surround5_0Side, Surround5_1 = Surround5_1Side, }; /** * @brief Gets the SpeakerPosition from given index. Stereo for example will * return with index 0 SpeakerPosition::Left and with index 1 * SpeakerPosition::Right. The Templateparameter is the SpeakerConfiguration to * analyze * @param index Index of the SpeakerPosition to get. * @return single Bitmask with only 1 bit set. This can be represented as * SpeakerPosition. */ template<SpeakerConfiguration c> constexpr SpeakerPosition getSpeakerPositionAt(size_t index) { size_t indexCounter = 0; for (size_t i = 0; i < sizeof(c); i++) { if (static_cast<uint64_t>(c) & ((uint64_t)1 << i)) { // check if bit is set in pos if (indexCounter == index) return static_cast<SpeakerPosition>(1 << i); indexCounter++; } } return SpeakerPosition::Undefined; } /** * @brief Gets the SpeakerPosition of the given index as Stringrepresentation. * Not fully implemented yet. There are also some template overlaods for * somekind of SpeakerConfiguration, so Mono would always return an empty * String. * @param index of the Speaker in the configuration. Mapped through * getSpeakerPositionAt(). * @return String representation of an SpeakerPosition, like FC(for FrontCenter) * or FLH (for FrontLeftHeight). */ template<SpeakerConfiguration c> constexpr const char* getSpeakerSuffix(size_t index) { switch (getSpeakerPositionAt<c>(index)) { case SpeakerPosition::FrontCenter: return "FC"; case SpeakerPosition::FrontLeft: return "FL"; case SpeakerPosition::FrontRight: return "FR"; case SpeakerPosition::FrontLeftHeight: return "FLH"; case SpeakerPosition::FrontRightHeight: return "FRH"; case SpeakerPosition::FrontLeftOfCenter: return "FLC"; case SpeakerPosition::FrontRightOfCenter: return "FRC"; default: return ""; } } template<> constexpr const char* getSpeakerSuffix<SpeakerConfiguration::Mono>(size_t) { return ""; } template<> constexpr const char* getSpeakerSuffix<SpeakerConfiguration::MonoLegacy>(size_t) { return ""; } } #endif //! SPEAKER_HPP
37.388889
80
0.725706
CapRat
3f7d37865dde391837cc865c6dbedde503994248
588
cpp
C++
Trees/Symmetric Binary Tree.cpp
shawamar/InterviewBit
6a800a35e8f9bc0a66d7f94c1dca25bca3abff6f
[ "MIT" ]
null
null
null
Trees/Symmetric Binary Tree.cpp
shawamar/InterviewBit
6a800a35e8f9bc0a66d7f94c1dca25bca3abff6f
[ "MIT" ]
null
null
null
Trees/Symmetric Binary Tree.cpp
shawamar/InterviewBit
6a800a35e8f9bc0a66d7f94c1dca25bca3abff6f
[ "MIT" ]
null
null
null
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ int isSymmetricHelper(TreeNode* root1, TreeNode* root2) { if (!root1 || !root2) return root1 == root2; if (root1->val != root2->val) return 0; return isSymmetricHelper(root1->left, root2->right) && isSymmetricHelper(root1->right, root2->left); } int Solution::isSymmetric(TreeNode* A) { return A == NULL || isSymmetricHelper(A->left, A->right); }
26.727273
61
0.591837
shawamar
3f7fdb578a675a9de0bc90dc5fca5d099f3bf68f
341
cc
C++
src/code_writen_when_learning/initialize_class_member_without_braces.cc
NobodyXu/snippet
8f0308e48dab1d166dc9e5ff43b00db2d35b616b
[ "MIT" ]
1
2019-04-02T04:38:15.000Z
2019-04-02T04:38:15.000Z
src/code_writen_when_learning/initialize_class_member_without_braces.cc
NobodyXu/snippet
8f0308e48dab1d166dc9e5ff43b00db2d35b616b
[ "MIT" ]
null
null
null
src/code_writen_when_learning/initialize_class_member_without_braces.cc
NobodyXu/snippet
8f0308e48dab1d166dc9e5ff43b00db2d35b616b
[ "MIT" ]
null
null
null
#include <iostream> struct A { int a; int b; }; struct B { A a; A b; }; std::ostream& operator << (std::ostream &os, const A &a) { return os << a.a << " " << a.b; } std::ostream& operator << (std::ostream &os, const B &b) { return os << b.a << " " << b.b; } int main() { B b{11, 23}; std::cout << b << std::endl; }
21.3125
93
0.489736
NobodyXu
3f82792b1223b7f2a148e80ccd19412e1980f73d
15,901
cpp
C++
Nemo/BezierCurve.cpp
cyj0912/Nemo
cd242e9d17863b461ccfd768122572d979c330e3
[ "BSD-2-Clause" ]
null
null
null
Nemo/BezierCurve.cpp
cyj0912/Nemo
cd242e9d17863b461ccfd768122572d979c330e3
[ "BSD-2-Clause" ]
null
null
null
Nemo/BezierCurve.cpp
cyj0912/Nemo
cd242e9d17863b461ccfd768122572d979c330e3
[ "BSD-2-Clause" ]
null
null
null
#include "BezierCurve.h" #include "Mesh.h" #include "imgui/imgui.h" namespace tc { //Some math functions Vector3 QuadraticBezierInterp(const Vector3& a, const Vector3& b, const Vector3& c, float t) { Vector3 d = a + t * (b - a); Vector3 e = b + t * (c - b); return d + t * (e - d); } /* * Not as efficient Vector3 CubicBezierInterp(const Vector3& a, const Vector3& b, const Vector3& c, const Vector3& d, float t) { Vector3 e = a + t * (b - a); Vector3 f = b + t * (c - b); Vector3 g = c + t * (d - c); return QuadraticBezierInterp(e, f, g, t); } */ Vector3 CubicBezierInterp(const Vector3& a, const Vector3& b, const Vector3& c, const Vector3& d, float t) { return -a * (-1 + t) * (-1 + t) * (-1 + t) + t * (3 * b * (-1 + t) * (-1 + t) + t * (3 * c - 3 * c * t + d * t)); } Vector3 CubicBezierPrime(const Vector3& a, const Vector3& b, const Vector3& c, const Vector3& d, float t) { return -3 * (a * (-1 + t) * (-1 + t) + t * (-2 * c + 3 * c * t - d * t) + b * (-1 + 4 * t - 3 * t * t)); } Vector3 CubicBezierDoublePrime(const Vector3& a, const Vector3& b, const Vector3& c, const Vector3& d, float t) { return 6 * (a + c - a * t - 3 * c * t + d * t + b * (-2 + 3 * t)); } //Begin FBezierCurveControlPointPrimitive FBezierCurveControlPointPrimitive::FBezierCurveControlPointPrimitive() : bLockTangent(true) { static int displacement = 0; FrontPoint.SetPosition(Vector3(1.0f, 1.0f + displacement, 0.0f)); MiddlePoint.SetPosition(Vector3(0.0f, 0.0f + displacement, 0.0f)); BackPoint.SetPosition(Vector3(-1.0f, -1.0f + displacement, 0.0f)); displacement++; displacement %= 5; IntersectionTester.Owner = this; FrontPoint.AddPropertyChangeListener(this); BackPoint.AddPropertyChangeListener(this); MiddlePoint.AddPropertyChangeListener(this); PrevMiddlePointPosition = MiddlePoint.GetPosition(); } const char* FBezierCurveControlPointPrimitive::GetTypeNameInString() const { static const char* name = "FBezierCurveControlPointPrimitive"; return name; } size_t FBezierCurveControlPointPrimitive::CountSubEntities() const { return 3; } FBaseEntity* FBezierCurveControlPointPrimitive::GetSubEntity(size_t index) { assert(index < 3); switch(index) { case 0: return &BackPoint; case 1: return &MiddlePoint; case 2: return &FrontPoint; default: break; } return nullptr; } void FBezierCurveControlPointPrimitive::RenderInit(FViewPort* rw) { FrontPoint.RenderInit(rw); MiddlePoint.RenderInit(rw); BackPoint.RenderInit(rw); } void FBezierCurveControlPointPrimitive::Render() { FrontPoint.Render(); MiddlePoint.Render(); BackPoint.Render(); GEditorMaster->GetPrimitiveRenderer()->DrawLine(BackPoint.GetPosition(), MiddlePoint.GetPosition(), 1.0f, Color(0.259, 0.431, 0.957)); GEditorMaster->GetPrimitiveRenderer()->DrawLine(MiddlePoint.GetPosition(), FrontPoint.GetPosition(), 1.0f, Color(0.467, 0.953, 1)); } void FBezierCurveControlPointPrimitive::RenderDestroy() { FrontPoint.RenderDestroy(); MiddlePoint.RenderDestroy(); BackPoint.RenderDestroy(); } Vector3 FBezierCurveControlPointPrimitive::InterpolatePosition(const FBezierCurveControlPointPrimitive& rhs, float t) const { const auto& p0 = MiddlePoint.GetPosition(); const auto& p1 = FrontPoint.GetPosition(); const auto& p2 = rhs.BackPoint.GetPosition(); const auto& p3 = rhs.MiddlePoint.GetPosition(); return CubicBezierInterp(p0, p1, p2, p3, t); } float FBezierCurveControlPointPrimitive::GetDistance(const FBezierCurveControlPointPrimitive& rhs) const { return (rhs.BackPoint.GetPosition() - FrontPoint.GetPosition()).Length() + (rhs.MiddlePoint.GetPosition() - rhs.BackPoint.GetPosition()).Length() + (FrontPoint.GetPosition() - MiddlePoint.GetPosition()).Length(); } void FBezierCurveControlPointPrimitive::ImGuiUpdate(FInteractionSystem* interactionSystem) { ImGui::Checkbox("Lock Tangent", &bLockTangent); if (ImGui::Button("Connect Control Points")) { int i = 0; auto& selection = interactionSystem->GetSelectedEntities(); auto getNextControlPoint = [&i, selection]() { FBezierCurveControlPointPrimitive* rhs = nullptr; while (!rhs && i < selection.size()) rhs = dynamic_cast<FBezierCurveControlPointPrimitive*>(selection[i++]); return rhs; }; int num = 0; auto* curve = new FBezierSpline(); auto* prev = getNextControlPoint(); curve->AddControlPoint(prev); FBezierCurveControlPointPrimitive* next = nullptr; while ((next = getNextControlPoint()) != nullptr) { curve->AddControlPoint(next); num++; } if (num == 0) delete curve; else GEditorMaster->RegisterEntity(curve); } if (ImGui::Button("Flip")) { Vector3 temp = FrontPoint.GetPosition(); FrontPoint.SetPosition(BackPoint.GetPosition()); BackPoint.SetPosition(temp); } } void FBezierCurveControlPointPrimitive::OnPropertyChanged(IPropertyOwner* who, int which) { static bool inProgress = false; if (!bLockTangent) return; if (inProgress) return; inProgress = true; if (who == &FrontPoint) { FPointPrimitive& curr = FrontPoint; FPointPrimitive& other = BackPoint; auto d = curr.GetPosition() - MiddlePoint.GetPosition(); d.Normalize(); float len = (MiddlePoint.GetPosition() - other.GetPosition()).Length(); other.SetPosition(MiddlePoint.GetPosition() - d * len); } else if (who == &BackPoint) { FPointPrimitive& curr = BackPoint; FPointPrimitive& other = FrontPoint; auto d = curr.GetPosition() - MiddlePoint.GetPosition(); d.Normalize(); float len = (MiddlePoint.GetPosition() - other.GetPosition()).Length(); other.SetPosition(MiddlePoint.GetPosition() - d * len); } else if (who == &MiddlePoint) { auto dPos = MiddlePoint.GetPosition() - PrevMiddlePointPosition; FrontPoint.SetPosition(FrontPoint.GetPosition() + dPos); BackPoint.SetPosition(BackPoint.GetPosition() + dPos); PrevMiddlePointPosition = MiddlePoint.GetPosition(); } inProgress = false; } float FBezierCurveControlPointPrimitive::IntersectionTester::RayHitDistance(const Ray& ray) { static const float DISTANCE_THRESHOLD = 0.1f; auto testSeg = [=](const Vector3& middle, const Vector3& front) { const Vector3& origin = middle; const Vector3& target = front; Vector3 dir = target - origin; Ray rayAlongSeg = Ray(origin, dir); Vector3 closestPoint = rayAlongSeg.ClosestPoint(ray); float distance = ray.Distance(closestPoint); if (distance > DISTANCE_THRESHOLD) return M_INFINITY; Vector3 pointOffset = closestPoint - origin; if (pointOffset.DotProduct(dir) < 0) return M_INFINITY; if (pointOffset.LengthSquared() > dir.LengthSquared()) return M_INFINITY; //Calculate distance from origin Vector3 offset = closestPoint - ray.Origin; float offsetOnRay = offset.DotProduct(ray.Direction); return offsetOnRay; }; return Min(testSeg(Owner->MiddlePoint.GetPosition(), Owner->FrontPoint.GetPosition()), testSeg(Owner->MiddlePoint.GetPosition(), Owner->BackPoint.GetPosition())); } FBezierSpline::FBezierSpline() : ViewPort(nullptr), bSweep(false), SweepMesh(nullptr), bShowTan(false), bShowInward(false), bShowNormal(false), bShowBiNormal(false), bAutoNumSegment(true), NumSegments(4) { IntersectionTester.Owner = this; } const char* FBezierSpline::GetTypeNameInString() const { static const char* name = "FBezierSpline"; return name; } void FBezierSpline::RenderBezierSegment(FBezierCurveControlPointPrimitive* cp0, FBezierCurveControlPointPrimitive* cp1) { float dist = cp0->GetDistance(*cp1); int numLineSegments = bAutoNumSegment ? (int)(dist * 2.0f) : NumSegments; float tStep = 1.0f / (float)numLineSegments; for (int i = 0; i < numLineSegments; i++) { const auto& p0 = cp0->GetMiddlePoint().GetPosition(); const auto& p1 = cp0->GetFrontPoint().GetPosition(); const auto& p2 = cp1->GetBackPoint().GetPosition(); const auto& p3 = cp1->GetMiddlePoint().GetPosition(); auto lineFrom = CubicBezierInterp(p0, p1, p2, p3, tStep * (float)i); auto lineTo = CubicBezierInterp(p0, p1, p2, p3, tStep * (float)(i + 1)); GEditorMaster->GetPrimitiveRenderer()->DrawLine(lineFrom, lineTo, 1.0f, Color::MAGENTA); auto tangentDir = CubicBezierPrime(p0, p1, p2, p3, tStep * (float)i); if (bShowTan) { auto tangentTo = lineFrom + tangentDir.Normalized() * 0.5f; GEditorMaster->GetPrimitiveRenderer()->DrawLine(lineFrom, tangentTo, 1.0f, Color::BLUE); } auto inwardDir = CubicBezierDoublePrime(p0, p1, p2, p3, tStep * (float)i); if (bShowInward) { auto inwardTo = lineFrom + inwardDir.Normalized() * 0.5f; GEditorMaster->GetPrimitiveRenderer()->DrawLine(lineFrom, inwardTo, 1.0f, Color::GRAY); } auto biNormal = tangentDir.CrossProduct(inwardDir); if (bShowBiNormal) { auto biNormalTo = lineFrom + biNormal.Normalized() * 0.5f; GEditorMaster->GetPrimitiveRenderer()->DrawLine(lineFrom, biNormalTo, 1.0f, Color::RED); } if (bShowNormal) { auto normalDir = tangentDir.CrossProduct(biNormal); auto normalTo = lineFrom + normalDir.Normalized() * 0.5f; GEditorMaster->GetPrimitiveRenderer()->DrawLine(lineFrom, normalTo, 1.0f, Color::GREEN); } } } void FBezierSpline::GenerateSweepMesh(FBezierCurveControlPointPrimitive* cp0, FBezierCurveControlPointPrimitive* cp1) { //Assume SweepMesh is nullptr LOGDEBUG("Generating new mesh for curve\n"); float dist = cp0->GetDistance(*cp1); int numLineSegments = bAutoNumSegment ? (int)(dist * 2.0f) : NumSegments; float tStep = 1.0f / (float)numLineSegments; for (int i = 0; i < numLineSegments; i++) { const auto& p0 = cp0->GetMiddlePoint().GetPosition(); const auto& p1 = cp0->GetFrontPoint().GetPosition(); const auto& p2 = cp1->GetBackPoint().GetPosition(); const auto& p3 = cp1->GetMiddlePoint().GetPosition(); auto lineFrom = CubicBezierInterp(p0, p1, p2, p3, tStep * (float)i); auto lineTo = CubicBezierInterp(p0, p1, p2, p3, tStep * (float)(i + 1)); auto tangentDir = CubicBezierPrime(p0, p1, p2, p3, tStep * (float)i); auto inwardDir = CubicBezierDoublePrime(p0, p1, p2, p3, tStep * (float)i); auto biNormal = tangentDir.CrossProduct(inwardDir); auto normalDir = tangentDir.CrossProduct(biNormal); auto tangentDir2 = CubicBezierPrime(p0, p1, p2, p3, tStep * (float)(i+1)); auto inwardDir2 = CubicBezierDoublePrime(p0, p1, p2, p3, tStep * (float)(i+1)); auto biNormal2 = tangentDir2.CrossProduct(inwardDir2); auto normalDir2 = tangentDir2.CrossProduct(biNormal2); Quaternion localRotation = Quaternion(biNormal.Normalized(), normalDir.Normalized(), tangentDir.Normalized()); Matrix3x4 matToParent = Matrix3x4(lineFrom, localRotation, Vector3::ONE); Quaternion localRotation2 = Quaternion(biNormal2.Normalized(), normalDir2.Normalized(), tangentDir2.Normalized()); Matrix3x4 matToParent2 = Matrix3x4(lineTo, localRotation2, Vector3::ONE); SweepMesh->AddTriangle(matToParent2 * Vector3(-1, 0, 0), matToParent * Vector3(1, 0, 0), matToParent * Vector3(-1, 0, 0)); SweepMesh->AddTriangle(matToParent2 * Vector3(1, 0, 0), matToParent * Vector3(1, 0, 0), matToParent2 * Vector3(-1, 0, 0)); //SweepMesh->AddTriangle(matToParent * Vector3(0,0,-0.4), matToParent * Vector3(0, 0.4, 0), matToParent * Vector3(0, 0, 0.4)); //SweepMesh->AddTriangle(matToParent * Vector3(0, 0, 0.4), matToParent * Vector3(0,-0.4,0), matToParent * Vector3(0, 0, -0.4)); } GEditorMaster->RegisterEntity(SweepMesh, true); } void FBezierSpline::GenerateSweepFrames() { SweepFrames.Empty(); //Generate the initial frame { const auto& p0 = ControlPoints[0]->GetMiddlePoint().GetPosition(); const auto& p1 = ControlPoints[0]->GetFrontPoint().GetPosition(); const auto& p2 = ControlPoints[1]->GetBackPoint().GetPosition(); const auto& p3 = ControlPoints[1]->GetMiddlePoint().GetPosition(); auto r_t = CubicBezierInterp(p0, p1, p2, p3, 0.0f); auto vT = CubicBezierPrime(p0, p1, p2, p3, 0.0f); auto vNx = CubicBezierDoublePrime(p0, p1, p2, p3, 0.0f); auto vB = vT.CrossProduct(vNx); auto vN = vB.CrossProduct(vT); Quaternion rotation = Quaternion(vN, vB, vT); SweepFrames.Push({ControlPoints[0], ControlPoints[1], Matrix3x4(r_t, rotation, Vector3::ONE), 0.0f}); } size_t cpPairs = ControlPoints.size() - 1; for (auto i = 0; i < cpPairs; i++) { } } void FBezierSpline::Render() { size_t nSegments = ControlPoints.size() - 1; for (auto i = 0; i < nSegments; i++) { RenderBezierSegment(ControlPoints[i], ControlPoints[i + 1]); } if (bSweep && !SweepMesh) { SweepMesh = new FStaticMesh(); for (auto i = 0; i < nSegments; i++) { GenerateSweepMesh(ControlPoints[i], ControlPoints[i + 1]); } } else if (!bSweep && SweepMesh) { //Unchecked Sweep, delete Mesh delete SweepMesh; SweepMesh = nullptr; LOGDEBUG("Removed mesh for curve\n"); } } void FBezierSpline::ImGuiUpdate(FInteractionSystem* interactionSystem) { ImGui::Checkbox("Auto-Segmentation", &bAutoNumSegment); if (!bAutoNumSegment) { ImGui::DragInt("Segments", &NumSegments, 0.1f, 1, 128); } ImGui::Checkbox("Sweep", &bSweep); ImGui::Checkbox("Show Tangent", &bShowTan); ImGui::Checkbox("Show Inward", &bShowInward); ImGui::Checkbox("Show Normal", &bShowNormal); ImGui::Checkbox("Show BiNormal", &bShowBiNormal); ImGui::Text("Number of Control Points: %ld", ControlPoints.size()); } FBezierSpline::~FBezierSpline() { delete SweepMesh; } float FBezierSpline::IntersectionTester::RayHitDistance(const Ray& ray) { auto testSeg = [=](const Vector3& middle, const Vector3& front, const Ray& ray) { static const float DISTANCE_THRESHOLD = 0.2f; const Vector3& origin = middle; const Vector3& target = front; Vector3 dir = target - origin; Ray rayAlongSeg = Ray(origin, dir); Vector3 closestPoint = rayAlongSeg.ClosestPoint(ray); float distance = ray.Distance(closestPoint); if (distance > DISTANCE_THRESHOLD) return M_INFINITY; Vector3 pointOffset = closestPoint - origin; if (pointOffset.DotProduct(dir) < 0) return M_INFINITY; if (pointOffset.LengthSquared() > dir.LengthSquared()) return M_INFINITY; //Calculate distance from origin Vector3 offset = closestPoint - ray.Origin; float offsetOnRay = offset.DotProduct(ray.Direction); return offsetOnRay; }; float minDist = M_INFINITY; size_t nSegments = Owner->ControlPoints.size() - 1; for (auto i = 0; i < nSegments; i++) { minDist = Min(testSeg(Owner->ControlPoints[i]->GetMiddlePoint().GetPosition(), Owner->ControlPoints[i + 1]->GetMiddlePoint().GetPosition(), ray), minDist); } return minDist; } } /* namespace tc */
35.813063
138
0.646249
cyj0912
3f8343fea02eb14031fe6190420e776b2d952d68
5,188
cpp
C++
lld/stm32f4x/i2c/hw_i2c_data.cpp
brandonbraun653/Thor_STM32
2aaba95728936b2d5784e99b96c208a94e3cb8df
[ "MIT" ]
null
null
null
lld/stm32f4x/i2c/hw_i2c_data.cpp
brandonbraun653/Thor_STM32
2aaba95728936b2d5784e99b96c208a94e3cb8df
[ "MIT" ]
null
null
null
lld/stm32f4x/i2c/hw_i2c_data.cpp
brandonbraun653/Thor_STM32
2aaba95728936b2d5784e99b96c208a94e3cb8df
[ "MIT" ]
null
null
null
/****************************************************************************** * File Name: * hw_i2c_data.cpp * * Description: * Provides implementation details for private I2C data * * 2021 | Brandon Braun | brandonbraun653@gmail.com *****************************************************************************/ /*----------------------------------------------------------------------------- Includes -----------------------------------------------------------------------------*/ #include <Chimera/i2c> #include <Thor/cfg> #include <Thor/lld/interface/inc/dma> #include <Thor/lld/interface/inc/i2c> #include <limits> #if defined( TARGET_STM32F4 ) && defined( THOR_LLD_I2C ) namespace Thor::LLD::I2C { /*--------------------------------------------------------------------------- Peripheral Memory Maps ---------------------------------------------------------------------------*/ #if defined( STM32_I2C1_PERIPH_AVAILABLE ) RegisterMap *I2C1_PERIPH = reinterpret_cast<RegisterMap *>( I2C1_BASE_ADDR ); #endif #if defined( STM32_I2C2_PERIPH_AVAILABLE ) RegisterMap *I2C2_PERIPH = reinterpret_cast<RegisterMap *>( I2C2_BASE_ADDR ); #endif #if defined( STM32_I2C3_PERIPH_AVAILABLE ) RegisterMap *I2C3_PERIPH = reinterpret_cast<RegisterMap *>( I2C3_BASE_ADDR ); #endif /*--------------------------------------------------------------------------- Configuration Maps ---------------------------------------------------------------------------*/ namespace ConfigMap { /* clang-format off */ } /* clang-format on */ /*--------------------------------------------------------------------------- Peripheral Resources ---------------------------------------------------------------------------*/ namespace Resource { /* clang-format off */ LLD_CONST Thor::LLD::DMA::Source DMASignals[ NUM_I2C_PERIPHS ][ DMA_SIG_PER_PERIPH ] = { #if defined( STM32_I2C1_PERIPH_AVAILABLE ) { Thor::LLD::DMA::Source::I2C1_TX, Thor::LLD::DMA::Source::I2C1_RX }, #endif #if defined( STM32_I2C2_PERIPH_AVAILABLE ) { Thor::LLD::DMA::Source::I2C2_TX, Thor::LLD::DMA::Source::I2C2_RX }, #endif #if defined( STM32_I2C3_PERIPH_AVAILABLE ) { Thor::LLD::DMA::Source::I2C3_TX, Thor::LLD::DMA::Source::I2C3_RX }, #endif }; static_assert( static_cast<size_t>( DMADirection::TX ) == 0 ); LLD_CONST IRQn_Type IRQSignals[ NUM_I2C_PERIPHS ][ ISR_VEC_PER_PERIPH ] = { #if defined( STM32_I2C1_PERIPH_AVAILABLE ) { I2C1_EV_IRQn, I2C1_ER_IRQn }, #endif #if defined( STM32_I2C2_PERIPH_AVAILABLE ) { I2C2_EV_IRQn, I2C2_ER_IRQn }, #endif #if defined( STM32_I2C3_PERIPH_AVAILABLE ) { I2C3_EV_IRQn, I2C3_ER_IRQn }, #endif }; static_assert( static_cast<size_t>( IRQHandlerIndex::EVENT ) == 0 ); } /* clang-format on */ /*--------------------------------------------------------------------------- Static Data ---------------------------------------------------------------------------*/ static Driver s_i2c_drivers[ NUM_I2C_PERIPHS ]; /*--------------------------------------------------------------------------- Public Functions ---------------------------------------------------------------------------*/ Chimera::Status_t initialize() { if ( attachDriverInstances( s_i2c_drivers, ARRAY_COUNT( s_i2c_drivers ) ) ) { return Chimera::Status::OK; } else { return Chimera::Status::FAIL; } } bool isChannelSupported( const Chimera::I2C::Channel channel ) { if ( channel < Chimera::I2C::Channel::NUM_OPTIONS ) { return ( getResourceIndex( channel ) != INVALID_RESOURCE_INDEX ); } else { return false; } } Driver_rPtr getDriver( const Chimera::I2C::Channel channel ) { if ( isChannelSupported( channel ) ) { return &s_i2c_drivers[ getResourceIndex( channel ) ]; } return nullptr; } } // namespace Thor::LLD::I2C #endif /* TARGET_STM32F4 && THOR_LLD_I2C */ /*----------------------------------------------------------------------------- IRQ Handlers -----------------------------------------------------------------------------*/ #if defined( STM32_I2C1_PERIPH_AVAILABLE ) void I2C1_EV_IRQHandler() { using namespace Thor::LLD::I2C; s_i2c_drivers[ I2C1_RESOURCE_INDEX ].IRQEventHandler(); } void I2C1_ER_IRQHandler() { using namespace Thor::LLD::I2C; s_i2c_drivers[ I2C1_RESOURCE_INDEX ].IRQErrorHandler(); } #endif /* STM32_I2C1_PERIPH_AVAILABLE */ #if defined( STM32_I2C2_PERIPH_AVAILABLE ) void I2C2_EV_IRQHandler() { using namespace Thor::LLD::I2C; s_i2c_drivers[ I2C2_RESOURCE_INDEX ].IRQEventHandler(); } void I2C2_ER_IRQHandler() { using namespace Thor::LLD::I2C; s_i2c_drivers[ I2C2_RESOURCE_INDEX ].IRQErrorHandler(); } #endif /* STM32_I2C2_PERIPH_AVAILABLE */ #if defined( STM32_I2C3_PERIPH_AVAILABLE ) void I2C3_EV_IRQHandler() { using namespace Thor::LLD::I2C; s_i2c_drivers[ I2C3_RESOURCE_INDEX ].IRQEventHandler(); } void I2C3_ER_IRQHandler() { using namespace Thor::LLD::I2C; s_i2c_drivers[ I2C3_RESOURCE_INDEX ].IRQErrorHandler(); } #endif /* STM32_I2C3_PERIPH_AVAILABLE */
30.339181
92
0.526793
brandonbraun653
3f8510ca5983362ea4d1ba60f0c3d454cc84565c
121
cpp
C++
src/main.cpp
Panky-codes/cpp-template
1f653e38220899a58fea8878751481ebbc152e7b
[ "Unlicense" ]
null
null
null
src/main.cpp
Panky-codes/cpp-template
1f653e38220899a58fea8878751481ebbc152e7b
[ "Unlicense" ]
null
null
null
src/main.cpp
Panky-codes/cpp-template
1f653e38220899a58fea8878751481ebbc152e7b
[ "Unlicense" ]
null
null
null
// Own header #include "lib.h" // System header // Third-party header int main() { print_hello(); return 0; }
10.083333
21
0.603306
Panky-codes
3f8747a8d82d660ab7d68048322a39936eaf96d6
754
cpp
C++
2020_November/23.cpp
zzz0906/LeetCode
cd0b4a4fd03d0dff585c9ef349984eba1922ece0
[ "MIT" ]
17
2018-08-23T08:53:56.000Z
2021-04-17T00:06:13.000Z
2020_November/23.cpp
zzz0906/LeetCode
cd0b4a4fd03d0dff585c9ef349984eba1922ece0
[ "MIT" ]
null
null
null
2020_November/23.cpp
zzz0906/LeetCode
cd0b4a4fd03d0dff585c9ef349984eba1922ece0
[ "MIT" ]
null
null
null
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right) {} * }; */ class Solution { public: int ans; int dfs(TreeNode* current,int index){ if (index % 2 == 1) ans += current->val; if (current->left != NULL) dfs(current->left,index+1); if (current->right != NULL) dfs(current->right,index+1); } int rob(TreeNode* root) { ans = 0; dfs(root,1); int res = ans; dfs(root,0); if () } };
27.925926
93
0.539788
zzz0906
3f87c88a5a7434042a471a353f24d0a68e3b2aa9
356
cpp
C++
Arrays 101/duplicateZeros.cpp
AasthaVarma/LeetCode
d654aadb4c32e8ae90d7d9418c5d1fe3bd23ae2b
[ "MIT" ]
null
null
null
Arrays 101/duplicateZeros.cpp
AasthaVarma/LeetCode
d654aadb4c32e8ae90d7d9418c5d1fe3bd23ae2b
[ "MIT" ]
null
null
null
Arrays 101/duplicateZeros.cpp
AasthaVarma/LeetCode
d654aadb4c32e8ae90d7d9418c5d1fe3bd23ae2b
[ "MIT" ]
null
null
null
class Solution { public: void duplicateZeros(vector<int>& arr) { int n=arr.size(), new_n = n; for(int i=0; i<n; i++){ if(arr[i] == 0){ for(int j=n-1; j>i+1; j--) arr[j] = arr[j-1]; i++; if(i<n) arr[i] = 0; } } } };
22.25
43
0.325843
AasthaVarma
3f8ad4673e756de979bb13b5ff4dcd0707f06adb
716
cpp
C++
compiler-rt/test/asan/TestCases/Linux/auto_memory_profile_test.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
compiler-rt/test/asan/TestCases/Linux/auto_memory_profile_test.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
compiler-rt/test/asan/TestCases/Linux/auto_memory_profile_test.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
// Tests heap_profile=1. // Printing memory profiling only works in the configuration where we can // detect leaks. // REQUIRES: leak-detection // // RUN: %clangxx_asan %s -o %t // RUN: %env_asan_opts=heap_profile=1 %run %t 2>&1 | FileCheck %s #include <sanitizer/common_interface_defs.h> #include <stdio.h> #include <string.h> #include <unistd.h> char *sink[1000]; int main() { for (int i = 0; i < 3; i++) { const size_t kSize = 13000000; char *x = new char[kSize]; memset(x, 0, kSize); sink[i] = x; sleep(1); } } // CHECK: HEAP PROFILE at RSS // CHECK: 13000000 byte(s) // CHECK: HEAP PROFILE at RSS // CHECK: 26000000 byte(s) // CHECK: HEAP PROFILE at RSS // CHECK: 39000000 byte(s)
21.69697
73
0.649441
medismailben
3f8c08598f0deefc9c0030666c464412943a0811
782
cpp
C++
classwithdefulcons.cpp
maansisrivastava/Practice-code-C-
23f8c3798c15725bf14bb1215c01e7ad857a11b6
[ "MIT" ]
null
null
null
classwithdefulcons.cpp
maansisrivastava/Practice-code-C-
23f8c3798c15725bf14bb1215c01e7ad857a11b6
[ "MIT" ]
null
null
null
classwithdefulcons.cpp
maansisrivastava/Practice-code-C-
23f8c3798c15725bf14bb1215c01e7ad857a11b6
[ "MIT" ]
null
null
null
#include<iostream> #include<conio.h> using namespace std; class b1 { public: b1() { cout << "no argument const of the base class b1 is executed " << endl; } ~b1() { cout << "des des b1 " << endl; } }; class b2 { public: b2() { cout << "no argument const of the derived class b2 is executed" << endl; } ~ b2() { cout << "des des b2" << endl; } }; class d: public b2,public b1 { public: d() { cout << "no argument const of the derived class d is executed" << endl; } ~d() { cout << "des dest d" << endl; } }; main() { d d1 ; getch(); }
15.038462
82
0.410486
maansisrivastava
3f8c6f862cf5a0c1149e5e1d9884da022f82b347
5,449
cpp
C++
piquassoboost/sampling/source/BruteForceLoopHafnian.cpp
Budapest-Quantum-Computing-Group/piquassoboost
fd384be8f59cfd20d62654cf86c89f69d3cf8b8c
[ "Apache-2.0" ]
4
2021-11-29T13:28:19.000Z
2021-12-21T22:57:09.000Z
piquassoboost/sampling/source/BruteForceLoopHafnian.cpp
Budapest-Quantum-Computing-Group/piquassoboost
fd384be8f59cfd20d62654cf86c89f69d3cf8b8c
[ "Apache-2.0" ]
11
2021-09-24T18:02:26.000Z
2022-01-27T18:51:47.000Z
piquassoboost/sampling/source/BruteForceLoopHafnian.cpp
Budapest-Quantum-Computing-Group/piquassoboost
fd384be8f59cfd20d62654cf86c89f69d3cf8b8c
[ "Apache-2.0" ]
1
2021-11-13T10:06:52.000Z
2021-11-13T10:06:52.000Z
/** * Copyright 2021 Budapest Quantum Computing Group * * 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 <iostream> #include "BruteForceLoopHafnian.h" #include "BruteForceHafnian.h" #include <math.h> namespace pic { /** @brief Constructor of the class. @param mtx_in The covariance matrix of the Gaussian state. @return Returns with the instance of the class. */ BruteForceLoopHafnian::BruteForceLoopHafnian( matrix &mtx_in ) { mtx = mtx_in; dim = mtx.rows; dim_over_2 = dim/2; } /** @brief Default destructor of the class. */ BruteForceLoopHafnian::~BruteForceLoopHafnian() { } /** @brief Call to calculate the hafnian of a complex matrix @return Returns with the calculated hafnian */ Complex16 BruteForceLoopHafnian::calculate() { if ( mtx.rows != mtx.cols) { std::cout << "The input matrix should be square shaped, bu matrix with " << mtx.rows << " rows and with " << mtx.cols << " columns was given" << std::endl; std::cout << "Returning zero" << std::endl; return Complex16(0,0); } if (mtx.rows == 0) { // the hafnian of an empty matrix is 1 by definition return Complex16(1,0); } else if (mtx.rows % 2 != 0) { // the hafnian of odd shaped matrix is 0 by definition return Complex16(0.0, 0.0); } // calculate contribution without loops BruteForceHafnian hafnian_calculator = BruteForceHafnian( mtx ); Complex16&& hafnian = hafnian_calculator.calculate(); // iterate over number of loops for (size_t num_of_loops = 2; num_of_loops<=dim; num_of_loops= num_of_loops+2) { // create initial logical loop indices to start task iterations PicVector<char> loop_logicals(dim,0); for (size_t idx=0; idx<num_of_loops; idx++) { loop_logicals[idx] = 1; } // spawning tasks over different loop configurations SpawnTask(loop_logicals, std::move(num_of_loops), std::move(num_of_loops), hafnian); } return hafnian; } /** @brief Call to update the memory address of the matrix mtx @param mtx_in The new covariance matrix */ void BruteForceLoopHafnian::Update_mtx( matrix &mtx_in) { mtx = mtx_in; } Complex16 BruteForceLoopHafnian::PartialHafnianForGivenLoopIndices( const PicVector<char> &loop_logicals, const size_t num_of_loops) { // create the submatrix for the hafnian calculator and calculate the contribution of the loops matrix submatrix(dim-num_of_loops, dim-num_of_loops); Complex16 loop_contribution(1.0, 0.0); size_t row_idx = 0; for (size_t idx=0; idx<loop_logicals.size(); idx++) { if (loop_logicals[idx]) { loop_contribution = loop_contribution * mtx[idx*mtx.stride + idx]; } else { size_t col_idx = 0; for (size_t jdx=0; jdx<loop_logicals.size(); jdx++) { if (!loop_logicals[jdx]) { submatrix[row_idx*submatrix.stride + col_idx] = mtx[idx*mtx.stride + jdx]; col_idx++; } } row_idx++; } } if (num_of_loops==dim) { return loop_contribution; } // calculate the hafnian of the remaining part and multiply it with the loop contribution BruteForceHafnian hafnian_calculator = BruteForceHafnian( submatrix ); return loop_contribution*hafnian_calculator.calculate(); } void BruteForceLoopHafnian::SpawnTask( PicVector<char>& loop_logicals, size_t&& loop_to_move, const size_t num_of_loops, Complex16& hafnian) { // calculate the partial hafnian using the given loop indices hafnian = hafnian + PartialHafnianForGivenLoopIndices( loop_logicals, num_of_loops ); // spawning new iterations with modified loop indices // determine the row index to be moved size_t loop_to_move_index = 0; size_t current_loop = 0; for (size_t idx=0; idx<dim; idx++) { if (loop_logicals[idx]) { current_loop++; } if (current_loop == loop_to_move) { loop_to_move_index = idx; break; } } // moving the selected row to valid positions for (size_t idx=loop_to_move_index+1; idx<dim; idx++) { // check whether idx is occupied by another row or not if ( loop_logicals[idx] ) { break; } // check whether there will be enough available columns greater than the row indices // create new row logical indices PicVector<char> loop_logicals_new = loop_logicals; loop_logicals_new[loop_to_move_index] = 0; loop_logicals_new[idx] = 1; // spawn new tasks to iterate over valid row index combinations if (loop_to_move>0) { // the very firs row index must always be 0 SpawnTask(loop_logicals_new, loop_to_move-1, num_of_loops, hafnian); } } return; } } // PIC
24.434978
163
0.655717
Budapest-Quantum-Computing-Group
3f8dc2527a51245fb3628cd18ee6c287b45393f6
7,629
cpp
C++
src/consumer/ProcessQueue.cpp
ifplusor/rocketmq-client-cpp
fd301f4b064d5035fc72261023a396e2c9126c53
[ "Apache-2.0" ]
5
2019-04-24T13:37:05.000Z
2021-01-29T16:37:55.000Z
src/consumer/ProcessQueue.cpp
ifplusor/rocketmq-client-cpp
fd301f4b064d5035fc72261023a396e2c9126c53
[ "Apache-2.0" ]
null
null
null
src/consumer/ProcessQueue.cpp
ifplusor/rocketmq-client-cpp
fd301f4b064d5035fc72261023a396e2c9126c53
[ "Apache-2.0" ]
1
2021-02-03T03:11:03.000Z
2021-02-03T03:11:03.000Z
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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 "ProcessQueue.h" #include "Logging.h" #include "MessageQueue.hpp" #include "UtilAll.h" #include "protocol/body/ProcessQueueInfo.hpp" namespace { const uint64_t kRebalanceLockMaxLiveTime = 30000; // ms const uint64_t kPullMaxIdleTime = 120000; // ms } // namespace namespace rocketmq { ProcessQueue::ProcessQueue(const MessageQueue& message_queue) : message_queue_(message_queue), last_pull_timestamp_(UtilAll::currentTimeMillis()), last_consume_timestamp_(UtilAll::currentTimeMillis()), last_lock_timestamp_(UtilAll::currentTimeMillis()) {} ProcessQueue::~ProcessQueue() { message_cache_.clear(); consuming_message_cache_.clear(); } bool ProcessQueue::PutMessages(const std::vector<MessageExtPtr>& messages) { std::lock_guard<std::mutex> lock(message_cache_mutex_); bool is_empty = message_cache_.empty(); for (const auto& message : messages) { int64_t offset = message->queue_offset(); message_cache_[offset] = message; if (offset > queue_offset_max_) { queue_offset_max_ = offset; } } LOG_DEBUG_NEW("ProcessQueue: putMessages queue_offset_max:{}", queue_offset_max_); return is_empty; } std::vector<MessageExtPtr> ProcessQueue::TakeMessages(int batch_size, bool need_commit, int64_t offset_limit, int64_t& next_offset, bool& remained) { std::vector<MessageExtPtr> messages; std::lock_guard<std::mutex> lock(message_cache_mutex_); for (auto it = message_cache_.begin(); it != message_cache_.end() && batch_size--;) { if (it->first >= offset_limit) { break; } messages.push_back(it->second); if (need_commit) { consuming_message_cache_[it->first] = it->second; } it = message_cache_.erase(it); } if (!message_cache_.empty()) { auto it = message_cache_.begin(); next_offset = it->first; remained = true; } else { next_offset = queue_offset_max_ + 1; remained = false; } return messages; } void ProcessQueue::MakeMessagesToCosumeAgain(std::vector<MessageExtPtr>& messages) { std::lock_guard<std::mutex> lock(message_cache_mutex_); for (const auto& message : messages) { message_cache_[message->queue_offset()] = message; consuming_message_cache_.erase(message->queue_offset()); } } int64_t ProcessQueue::Commit() { const auto now = UtilAll::currentTimeMillis(); std::lock_guard<std::mutex> lock(message_cache_mutex_); last_consume_timestamp_ = now; if (!consuming_message_cache_.empty()) { int64_t offset = (--consuming_message_cache_.end())->first; consuming_message_cache_.clear(); return offset + 1; } else { return -1; } } int64_t ProcessQueue::Commit(const std::vector<MessageExtPtr>& message) { const auto now = UtilAll::currentTimeMillis(); std::lock_guard<std::mutex> lock(message_cache_mutex_); last_consume_timestamp_ = now; if (!consuming_message_cache_.empty()) { for (auto& message : message) { LOG_DEBUG_NEW("remove these msg from consuming_message_cache, its offset:{}", message->queue_offset()); consuming_message_cache_.erase(message->queue_offset()); } int64_t result = -1; if (!consuming_message_cache_.empty()) { const auto& it = consuming_message_cache_.begin(); result = it->first; } else if (!message_cache_.empty()) { const auto& it = message_cache_.begin(); result = it->first; } else { result = queue_offset_max_ + 1; } LOG_DEBUG_NEW("offset result is:{}, queue_offset_max is:{}, msgs size:{}", result, queue_offset_max_, message.size()); return result; } return -1; } int64_t ProcessQueue::RemoveMessages(const std::vector<MessageExtPtr>& messages) { const auto now = UtilAll::currentTimeMillis(); std::lock_guard<std::mutex> lock(message_cache_mutex_); last_consume_timestamp_ = now; if (!message_cache_.empty()) { for (const auto& message : messages) { LOG_DEBUG_NEW("remove these msg from msg_tree_map, its offset:{}", message->queue_offset()); message_cache_.erase(message->queue_offset()); } int64_t result = -1; if (!message_cache_.empty()) { auto it = message_cache_.begin(); result = it->first; } else { result = queue_offset_max_ + 1; } LOG_DEBUG_NEW("offset result is:{}, queue_offset_max is:{}, msgs size:{}", result, queue_offset_max_, messages.size()); return result; } return -1; } void ProcessQueue::ClearAllMessages() { std::lock_guard<std::mutex> lock(message_cache_mutex_); if (dropped()) { LOG_DEBUG_NEW("clear msg_tree_map as PullRequest had been dropped."); message_cache_.clear(); consuming_message_cache_.clear(); queue_offset_max_ = 0; } } int ProcessQueue::GetCachedMessagesCount() { std::lock_guard<std::mutex> lock(message_cache_mutex_); return static_cast<int>(message_cache_.size() + consuming_message_cache_.size()); } int64_t ProcessQueue::GetCachedMinOffset() { std::lock_guard<std::mutex> lock(message_cache_mutex_); if (message_cache_.empty() && consuming_message_cache_.empty()) { return 0; } else if (!consuming_message_cache_.empty()) { return consuming_message_cache_.begin()->first; } else { return message_cache_.begin()->first; } } int64_t ProcessQueue::GetCachedMaxOffset() { std::lock_guard<std::mutex> lock(message_cache_mutex_); return queue_offset_max_; } bool ProcessQueue::IsLockExpired() const { return (UtilAll::currentTimeMillis() - last_lock_timestamp_) > kRebalanceLockMaxLiveTime; } bool ProcessQueue::IsPullExpired() const { return (UtilAll::currentTimeMillis() - last_pull_timestamp_) > kPullMaxIdleTime; } void ProcessQueue::FillProcessQueueInfo(ProcessQueueInfo& info) { std::lock_guard<std::mutex> lock(message_cache_mutex_); if (!message_cache_.empty()) { info.cached_message_min_offset = message_cache_.begin()->first; info.cached_message_max_offset = queue_offset_max_; info.cached_message_count = message_cache_.size(); } if (!consuming_message_cache_.empty()) { info.transaction_message_min_offset = consuming_message_cache_.begin()->first; info.transaction_message_max_offset = (--consuming_message_cache_.end())->first; info.transaction_message_count = consuming_message_cache_.size(); } info.locked = locked_.load(); info.try_unlock_times = try_unlock_times_.load(); info.last_lock_timestamp = last_lock_timestamp_; info.droped = dropped_.load(); info.last_pull_timestamp = last_pull_timestamp_; info.last_consume_timestamp = last_consume_timestamp_; } } // namespace rocketmq
31.7875
109
0.696553
ifplusor
3f90fe382a520bdce9686648556e4220f52032d6
2,987
hpp
C++
include/clotho/data_spaces/free_space/free_space_task_population_space_columnar.hpp
putnampp/clotho
6dbfd82ef37b4265381cd78888cd6da8c61c68c2
[ "ECL-2.0", "Apache-2.0" ]
3
2015-06-16T21:27:57.000Z
2022-01-25T23:26:54.000Z
include/clotho/data_spaces/free_space/free_space_task_population_space_columnar.hpp
putnampp/clotho
6dbfd82ef37b4265381cd78888cd6da8c61c68c2
[ "ECL-2.0", "Apache-2.0" ]
3
2015-06-16T21:12:42.000Z
2015-06-23T12:41:00.000Z
include/clotho/data_spaces/free_space/free_space_task_population_space_columnar.hpp
putnampp/clotho
6dbfd82ef37b4265381cd78888cd6da8c61c68c2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
// Copyright 2015 Patrick Putnam // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef CLOTHO_FREE_SPACE_TASK_POPULATION_SPACE_COLUMNAR_HPP_ #define CLOTHO_FREE_SPACE_TASK_POPULATION_SPACE_COLUMNAR_HPP_ #include "clotho/data_spaces/task/task.hpp" #include "clotho/data_spaces/free_space/free_space_task.hpp" #include "clotho/data_spaces/population_space/population_space_columnar.hpp" namespace clotho { namespace genetics { template < class BlockType, class WeightType > class free_space_task < population_space_columnar< BlockType, WeightType > > : public task { public: typedef free_space_task< population_space_columnar< BlockType, WeightType > > self_type; typedef population_space_columnar< BlockType, WeightType > space_type; typedef typename space_type::block_type block_type; typedef typename space_type::row_pointer row_pointer; typedef typename space_type::bit_helper_type bit_helper_type; free_space_task( space_type * ss, block_type * fixed_dest, block_type * var_dest, unsigned int block_start, unsigned int block_end ) : m_space(ss) , m_destF( fixed_dest + block_start ) , m_destF_end( fixed_dest + block_end ) , m_destV( var_dest + block_start ) , m_start( block_start ) , m_end( block_end ) {} free_space_task( const self_type & other ) : m_space( other.m_space ) , m_destF( other.m_destF ) , m_destF_end( other.m_destF_end ) , m_destV( other.m_destV ) , m_start( other.m_start ) , m_end( other.m_end ) {} void operator()() { unsigned int i = m_start; while( i < m_end ) { block_type fx = bit_helper_type::ALL_SET; block_type var = bit_helper_type::ALL_UNSET; row_pointer first = m_space->begin_block_row( i ), last = m_space->end_block_row(i); while( first != last ) { fx &= *first; var |= *first; ++first; } m_destF[ i ] = fx; m_destV[ i ] = var; ++i; } } virtual ~free_space_task() {} protected: space_type * m_space; block_type * m_destF, * m_destF_end, * m_destV; unsigned int m_start, m_end; }; } // namespace genetics } // namespace clotho #endif // CLOTHO_FREE_SPACE_TASK_POPULATION_SPACE_COLUMNAR_HPP_
32.824176
138
0.656177
putnampp
3f926f90fc9a3b71fa318e9581299478387de530
10,714
cpp
C++
src/percept/mesh/geometry/kernel/GeometryKernelPGEOM.cpp
jrood-nrel/percept
363cdd0050443760d54162f140b2fb54ed9decf0
[ "BSD-2-Clause" ]
3
2017-08-08T21:06:02.000Z
2020-01-08T13:23:36.000Z
src/percept/mesh/geometry/kernel/GeometryKernelPGEOM.cpp
jrood-nrel/percept
363cdd0050443760d54162f140b2fb54ed9decf0
[ "BSD-2-Clause" ]
2
2016-12-17T00:18:56.000Z
2019-08-09T15:29:25.000Z
src/percept/mesh/geometry/kernel/GeometryKernelPGEOM.cpp
jrood-nrel/percept
363cdd0050443760d54162f140b2fb54ed9decf0
[ "BSD-2-Clause" ]
2
2017-11-30T07:02:41.000Z
2019-08-05T17:07:04.000Z
/* * GeometryKernelPGEOM.cpp * * Created on: Jun 16, 2016 * Author: madbrew */ #if HAVE_CUBIT // entire file #include <iostream> #include <typeinfo> #include <stdexcept> #include "GeometryKernelPGEOM.hpp" #include <string> #include <stk_mesh/base/SkinMesh.hpp> #include <stk_mesh/base/Types.hpp> #include <stk_mesh/base/SkinBoundary.hpp> #include <cubit/pgeom/PGeom.hpp> #include <cubit/pgeom/PGeomAssoc.hpp> #ifdef HAVE_ACIS #include <cubit_acis/pgeom/PGeomACIS.hpp> #endif #include <cubit/util/CubitVector.hpp> #include <stk_mesh/base/BulkData.hpp> #include <stk_mesh/base/MetaData.hpp> namespace percept { bool validate_node_ownership (const stk::mesh::BulkData *mesh, const std::vector<int> &nodeIDsToCheck) { stk::mesh::Selector localOrShared(mesh->mesh_meta_data().locally_owned_part()); localOrShared |=mesh->mesh_meta_data().globally_shared_part(); for(unsigned i=0;i<nodeIDsToCheck.size(); i++) { stk::mesh::Entity nodeToCheck = mesh->get_entity(stk::topology::NODE_RANK, (stk::mesh::EntityId) nodeIDsToCheck[i]); if (nodeToCheck==stk::mesh::Entity::InvalidEntity){ return false; //First validate that you can find the entity at all on the current process } stk::mesh::Bucket &node_bucket = mesh->bucket(nodeToCheck); if (!localOrShared(node_bucket)) return false; //then check to see if you can find it in the local or shared parts } return true; //if all the nodes pass validation, return true } bool validate_element_ownership (const stk::mesh::BulkData *mesh, const int &elementIDToCheck) { stk::mesh::Selector localOrShared(mesh->mesh_meta_data().locally_owned_part()); localOrShared |=mesh->mesh_meta_data().globally_shared_part(); stk::mesh::Entity elemToCheck = mesh->get_entity(stk::topology::ELEMENT_RANK, (stk::mesh::EntityId) elementIDToCheck); if (elemToCheck==stk::mesh::Entity::InvalidEntity){ return false; } stk::mesh::Bucket &elem_bucket = mesh->bucket(elemToCheck); if (!localOrShared(elem_bucket)) return false; return true; } bool get_node_from_id(const stk::mesh::BulkData *mesh, int node_id, stk::mesh::Entity &node) { node = mesh->get_entity(stk::topology::NODE_RANK, (stk::mesh::EntityId) node_id); return (node == stk::mesh::Entity::InvalidEntity) ? false : true; } bool get_beam_from_ids(const stk::mesh::BulkData *mesh, std::vector<int> edge_node_ids, stk::mesh::Entity &beam) { std::vector<stk::mesh::Entity> edgeNodes(edge_node_ids.size()); for (unsigned i = 0; i < edge_node_ids.size(); i++) { get_node_from_id(mesh, edge_node_ids[i], edgeNodes[i]); } unsigned numElements = mesh->num_elements(edgeNodes[0]); const stk::mesh::Entity * elements = mesh->begin_elements(edgeNodes[0]); for(unsigned e = 0; e < numElements; ++e) { //iterate over the elements in this mesh only stk::mesh::Entity beamToInspect = elements[e]; stk::mesh::Bucket & node_bucket = mesh->bucket(beamToInspect); if (node_bucket.topology()!=stk::topology::BEAM_2) //if the current element isn't a beam, move to the next element continue; // QUESTION: is there a more efficient means of checking an element's topology than returning an entire bucket? const MyPairIterRelation beam_nodes(*mesh, beamToInspect, stk::topology::NODE_RANK); bool found = true; for (unsigned jj = 0; jj < beam_nodes.size(); jj++) { //simply check if the nodes match. This check doesn't take permutations into account, only whether you can find all the nodes in if (beam_nodes[jj].entity() != edgeNodes[0] // a given entity && beam_nodes[jj].entity() != edgeNodes[1]) { found = false; //if you can't match the nodes, move to the next element break; } } if (found) { beam = beamToInspect; return true; } } beam = stk::mesh::Entity::InvalidEntity; return false; } bool get_shell_from_ids(const stk::mesh::BulkData *mesh, std::vector<int> face_node_ids, stk::mesh::Entity &shell) { std::vector<stk::mesh::Entity> faceNodes(face_node_ids.size()); for (unsigned i = 0; i < face_node_ids.size(); i++) { get_node_from_id(mesh, face_node_ids[i], faceNodes[i]); } unsigned numElements1 = mesh->num_elements(faceNodes[0]); const stk::mesh::Entity * elements_1 = mesh->begin_elements(faceNodes[0]); for(unsigned e = 0; e < numElements1; ++e) { //loop over elements stk::mesh::Entity element = elements_1[e]; stk::mesh::Bucket & node_bucket = mesh->bucket(element); if (node_bucket.topology()!=stk::topology::SHELL_QUAD_4 && node_bucket.topology()!=stk::topology::SHELL_TRI_3) continue; //if the current element isn't a shell, go to the next element // QUESTION: is there a more efficient means of checking an element's topology than returning an entire bucket? const MyPairIterRelation face_nodes(*mesh, element, stk::topology::NODE_RANK); bool found = true; for (unsigned jj = 0; jj < face_nodes.size(); jj++) { //simply check if the nodes match. This check doesn't take permutations into account, only whether you can find all the nodes in // a given entity for (unsigned kk = 0; kk < face_nodes.size(); kk++) { if (face_nodes[jj].entity() != faceNodes[kk]) { found = false; } if (!found) break; } } if (found) { shell = element; return true; } } shell = stk::mesh::Entity::InvalidEntity; return false; } bool get_hex_from_id(const stk::mesh::BulkData *mesh, int hex_id, stk::mesh::Entity &hex) { hex = mesh->get_entity(stk::topology::ELEM_RANK, (stk::mesh::EntityId) hex_id); return (hex == stk::mesh::Entity::InvalidEntity) ? false : true; } bool get_hexes_from_node_ids(const stk::mesh::BulkData *mesh, std::vector<stk::mesh::Entity> &elemsReturned, const std::vector<stk::mesh::Entity> &nodesToSearch) { stk::mesh::Selector localAndShared(mesh->mesh_meta_data().locally_owned_part()); localAndShared |= mesh->mesh_meta_data().globally_shared_part(); for(unsigned i=0;i<nodesToSearch.size();i++) { stk::mesh::Entity node = nodesToSearch[i]; stk::mesh::Bucket &node_bucket = mesh->bucket(node); if (!localAndShared(node_bucket)) continue; unsigned numElements = mesh->num_elements(node); const stk::mesh::Entity * elements = mesh->begin_elements(node); for (unsigned e=0;e<numElements;++e) { stk::mesh::Entity element = elements[e]; stk::mesh::Bucket &node_bucket2 = mesh->bucket(element); if (node_bucket2.topology()==stk::topology::SHELL_QUAD_4 || node_bucket2.topology() == stk::topology::SHELL_TRI_3) continue; if (elemsReturned.size()==0) elemsReturned.push_back(element); else { bool isIn = false; for (unsigned ee=0;ee<elemsReturned.size();ee++) { if( mesh->identifier(element) == mesh->identifier(elemsReturned[ee]) ) isIn=true; } if (!isIn) elemsReturned.push_back(element); //only if you cannot find the element, add it to the elemntsreturned } } } if (elemsReturned.size()>0) return true; return false; } GeometryKernelPGEOM::GeometryKernelPGEOM() { #ifdef HAVE_ACIS m_pg = new PGeomACIS; #else m_pg = new PGeom; #endif } GeometryKernelPGEOM::~GeometryKernelPGEOM(){delete m_pg;} bool GeometryKernelPGEOM::read_file(const std::string& file_name, std::vector<GeometryHandle>& geometry_entities) { bool file_imported = false; if (file_name.find(".sat") != std::string::npos) { #if HAVE_ACIS m_pg->initialize(ACIS_GEOMETRY_ENGINE); file_imported = m_pg->import_acis_file(file_name.c_str()); #endif } else if (file_name.find(".3dm") != std::string::npos) { m_pg->initialize(OPENNURBS_GEOMETRY_ENGINE); file_imported = m_pg->import_open_nurbs_file(file_name.c_str()); } if (file_imported) { const std::string surfa = "geom_surface_tri_"; const std::string surfb = "geom_surface_quad_"; const std::string curv = "geom_curve_"; std::string attribute; int id; std::vector<int> allSurfs; m_pg->get_surfaces(allSurfs); for (unsigned i = 0; i < allSurfs.size(); i++) { id=allSurfs[i]; attribute = "#" + surfa + std::to_string(id) + " " + surfb + std::to_string(id); geometry_entities.push_back(GeometryHandle(id, SURFACE, attribute)); } std::vector<int> allCurves; m_pg->get_curves(allCurves); for (unsigned i = 0; i < allCurves.size(); i++) { id=allCurves[i]; attribute = curv + std::to_string(id); geometry_entities.push_back(GeometryHandle(id, CURVE, attribute)); } if (allSurfs.size() == 0 && allCurves.size() == 0) { throw std::runtime_error("Your geometry file had no curves or surfaces. Unusable by GeometryKernelPGEOM"); return false; } return true; } throw std::runtime_error("NO such file exists"); return false; } void GeometryKernelPGEOM::snap_to(KernelPoint& point, GeometryHandle geom, /* will snap a given point to a given piece of geometry*/ double *converged_tolerance, double *uvw_computed, double *uvw_hint, void *extra_hint) { //TODO: ADD AN OPTION FOR 2-D if (is_curve(geom)) { CubitVector old_locations(point[0],point[1],point[2]); CubitVector new_locations = m_pg->get_curv_closest_point(geom.m_id, old_locations); point[0] = new_locations.x(); point[1] = new_locations.y(); point[2] = new_locations.z(); } else if (is_surface(geom)) { CubitVector old_locations(point[0], point[1], point[2]); CubitVector new_locations = m_pg->get_surf_closest_point(geom.m_id, old_locations); point[0] = new_locations.x(); point[1] = new_locations.y(); point[2] = new_locations.z(); } } void GeometryKernelPGEOM::normal_at(KernelPoint& point, GeometryHandle geom, std::vector<double>& normal, void *extra_hint) { // TODO implement this! } } #endif // HAVE_CUBIT
35.127869
188
0.63375
jrood-nrel
3f9526e7302c1dd474f23fb672e41410dab74860
2,846
hpp
C++
pianotrain/musicxml/xmlparse.hpp
chkven7/pianotrain
46273e5533238c039205d41cdcfd26a51a4781fe
[ "MIT" ]
18
2015-01-18T22:34:22.000Z
2020-09-06T20:30:30.000Z
pianotrain/musicxml/xmlparse.hpp
chkven7/pianotrain
46273e5533238c039205d41cdcfd26a51a4781fe
[ "MIT" ]
2
2015-08-04T00:07:46.000Z
2017-05-10T15:53:51.000Z
pianotrain/musicxml/xmlparse.hpp
chkven7/pianotrain
46273e5533238c039205d41cdcfd26a51a4781fe
[ "MIT" ]
10
2015-01-18T23:46:10.000Z
2019-08-25T12:10:04.000Z
/* A Bison parser, made by GNU Bison 2.3. */ /* Skeleton interface for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { XMLDECL = 258, VERSION = 259, ENCODING = 260, STANDALONE = 261, YES = 262, NO = 263, ENDXMLDECL = 264, DOCTYPE = 265, PUBLIC = 266, SYSTEM = 267, COMMENT = 268, PI = 269, NAME = 270, DATA = 271, QUOTEDSTR = 272, SPACE = 273, LT = 274, GT = 275, ENDXMLS = 276, ENDXMLE = 277, EQ = 278 }; #endif /* Tokens. */ #define XMLDECL 258 #define VERSION 259 #define ENCODING 260 #define STANDALONE 261 #define YES 262 #define NO 263 #define ENDXMLDECL 264 #define DOCTYPE 265 #define PUBLIC 266 #define SYSTEM 267 #define COMMENT 268 #define PI 269 #define NAME 270 #define DATA 271 #define QUOTEDSTR 272 #define SPACE 273 #define LT 274 #define GT 275 #define ENDXMLS 276 #define ENDXMLE 277 #define EQ 278 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef int YYSTYPE; # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_TRIVIAL 1 #endif extern YYSTYPE libmxmllval;
28.46
75
0.709065
chkven7
3f963b81443742866684c0ce7886b02d8410952d
2,801
hh
C++
src/support/ply/ply.hh
jhidding/regt
f946a252df9e847a7d0bcc7b0ed5c6f1bfdbdcb5
[ "Apache-2.0" ]
null
null
null
src/support/ply/ply.hh
jhidding/regt
f946a252df9e847a7d0bcc7b0ed5c6f1bfdbdcb5
[ "Apache-2.0" ]
null
null
null
src/support/ply/ply.hh
jhidding/regt
f946a252df9e847a7d0bcc7b0ed5c6f1bfdbdcb5
[ "Apache-2.0" ]
null
null
null
#pragma once #include <string> #include <iostream> #include <fstream> #include <utility> #include <memory> #include <vector> #include <typeinfo> #include <stdexcept> #include <algorithm> #include "base.hh" #include "header.hh" #include "io.hh" #include "record-print.hh" namespace PLY { /*! PLY data class * * Used for reading and writing PLY files. This class stores both * the header of the PLY and a dictionary of binary data blobs. * Each binary blob corresponds to an `element' in the PLY file. * An element contains one or more `properties'. These properties * are represented as fields in a RecordArray. The RecordArray can * be iterated over, yielding any compatible type of tuple or array. */ class PLY { Header header_; std::map<std::string, RecordArray> data_; public: /*! constructor, create empty PLY data. */ PLY(Format format = BINARY); /*! constructor, reads data from a file. */ PLY(std::string const &file_name); void save(std::string const &filename) const; /*! get the format (ascii or binary) of the PLY. */ Format const &format() const { return header_.format; } /*! set the format (ascii or binary) of the PLY. */ void format(Format fmt) { header_.format = fmt; } /*! look at the header of the PLY. */ Header const &header() const { return header_; } /*! retrieve element data. */ RecordArray const &operator[](std::string const &key) const { return data_.at(key); } /*! add an element to the header, and create a new RecordArray. */ template <typename ...Args> PLY &add_element(std::string const &name, Args &&...properties) { header_.add_element(name, std::forward<Args>(properties)...); data_.emplace(name, RecordArray(header_.back().spec)); return *this; } /*! add data to the most recent element. */ template <typename ...Args> void put_data(Args &&...args) { data_[header_.back().name].push_back(std::forward<Args>(args)...); ++header_.back().size; } /*! add a line of comment to the header. */ PLY &comment(std::string const &msg) { header_.comments.push_back(msg); return *this; } bool check() const { return std::all_of(data_.begin(), data_.end(), [] (auto const &x) { return x.second.sizes_match(); }); } }; }
31.829545
82
0.542663
jhidding
3f976fb58cfef1228b445a37c8bd3509bc5ffc07
844
hh
C++
src/Splitting.hh
aalto-speech/morphological-classes
a7dcdb0703b33765ed43a9a56a3ca453dc5ed5e3
[ "BSD-2-Clause" ]
null
null
null
src/Splitting.hh
aalto-speech/morphological-classes
a7dcdb0703b33765ed43a9a56a3ca453dc5ed5e3
[ "BSD-2-Clause" ]
null
null
null
src/Splitting.hh
aalto-speech/morphological-classes
a7dcdb0703b33765ed43a9a56a3ca453dc5ed5e3
[ "BSD-2-Clause" ]
null
null
null
#ifndef SPLITTING #define SPLITTING #include <map> #include <set> #include <string> #include <vector> #include "Exchanging.hh" class Splitting : public Exchanging { public: Splitting(); Splitting(int num_classes, const std::map<std::string, int>& word_classes, std::string corpus_fname = ""); ~Splitting() { }; void freq_split(const std::set<int>& words, std::set<int>& class1_words, std::set<int>& class2_words, std::vector<int>& ordered_words) const; int do_split(int class_idx, const std::set<int>& class1_words, const std::set<int>& class2_words); int iterate_exchange_local(int class1_idx, int class2_idx, std::vector<int>& ordered_words, int num_iterations = 5); }; #endif /* SPLITTING */
25.575758
59
0.611374
aalto-speech
3f9cfc3e367a49775875a41d2f31b3848c2eebbd
2,634
cpp
C++
Shortest Path Algorithms/Shortest Path - DAG/ShortestPath_DAG.cpp
rudrajit1729/Algorithms-MIT
8d1082a350ee7aafd7aebf1aff85e6830be978f2
[ "MIT" ]
2
2020-07-23T02:38:31.000Z
2021-08-28T10:06:01.000Z
Shortest Path Algorithms/Shortest Path - DAG/ShortestPath_DAG.cpp
rudrajit1729/Algorithms-MIT
8d1082a350ee7aafd7aebf1aff85e6830be978f2
[ "MIT" ]
null
null
null
Shortest Path Algorithms/Shortest Path - DAG/ShortestPath_DAG.cpp
rudrajit1729/Algorithms-MIT
8d1082a350ee7aafd7aebf1aff85e6830be978f2
[ "MIT" ]
1
2020-08-14T10:31:23.000Z
2020-08-14T10:31:23.000Z
// Shortest path in DAG(Direct Acyclic Graph) // Author - rudrajit1729 // Approach - Topologically sort the graph -> Once sorted start from // the required vertex and go right relaxing the edges // Finally you get to the shortest path for every node reachable from that node #include<bits/stdc++.h> #define INF 99999999 using namespace std; // Class representing graph as adjacency list class Graph { list<pair<int, int>> *graph; int V; // Number of vertices public: Graph(int V); void addEdge(int u, int v, int w); void DFS_Visit(int s, bool *visited, stack<int> &Stack); void shortestPath(int s); }; Graph::Graph(int V) { this->V = V; graph = new list<pair<int, int>> [V]; } void Graph::addEdge(int u, int v, int w) // Adds an edge to the graph { pair<int, int> node (v, w); graph[u].push_back(node); } void Graph::DFS_Visit(int s, bool *visited, stack<int> &Stack) // DFS for a node { visited[s] = true; list<pair<int, int>> ::iterator it; for(it = graph[s].begin(); it != graph[s].end(); ++it) { pair<int, int> node = *it; int v = node.first; if(!visited[v]) { DFS_Visit(v, visited, Stack); } } Stack.push(s); } void Graph::shortestPath(int s) // Shortest path to nodes from a given node { bool *visited = new bool[V]; stack<int> Stack; // Stack for storing order for(int i = 0; i < V; ++i) visited[i] = false; for (int v = 0; v < V; v++) { if(!visited[v]) DFS_Visit(v, visited, Stack); } // Now stack has the topological sorted order int dist[V]; for(int i = 0; i< V ; i++) dist[i] = INF; // Other distances INF dist[s] = 0;// Distance to source 0 while(!Stack.empty()) { int u = Stack.top(); Stack.pop(); // Relax the vertices - Update distances of all adjacent vertices list<pair<int, int>> ::iterator it; for(it = graph[u].begin(); it != graph[u].end(); ++it) { pair<int, int> node = *it; int v = node.first, w = node.second; if(dist[v] > dist[u] + w) dist[v] = dist[u] + w; } } // Print the calculated shortest path for(int v = 0; v < V; v++) { if (dist[v] == INF) cout<<"INF\t"; else cout<<dist[v]<<"\t"; } cout<<endl; } int main() { Graph g(6); g.addEdge(0, 1, 5); g.addEdge(0, 2, 3); g.addEdge(1, 3, 6); g.addEdge(1, 2, 2); g.addEdge(2, 4, 4); g.addEdge(2, 5, 2); g.addEdge(2, 3, 7); g.addEdge(3, 4, -1); g.addEdge(4, 5, -2); int s = 1; cout << "Following are shortest distances from source " << s <<"\n"; g.shortestPath(s); return 0; }
23.945455
81
0.574791
rudrajit1729
3f9e336e1c4e0e221dd5c07c496684a1fd712252
1,792
cpp
C++
Restaurant/Rest/Order.cpp
abdallaMahmoud99/DS_Project_CMP_1ST_YEAR
ddc05e51e985f7c569b4a20eb7faa30a81613f65
[ "MIT" ]
null
null
null
Restaurant/Rest/Order.cpp
abdallaMahmoud99/DS_Project_CMP_1ST_YEAR
ddc05e51e985f7c569b4a20eb7faa30a81613f65
[ "MIT" ]
null
null
null
Restaurant/Rest/Order.cpp
abdallaMahmoud99/DS_Project_CMP_1ST_YEAR
ddc05e51e985f7c569b4a20eb7faa30a81613f65
[ "MIT" ]
null
null
null
#include "Order.h" void Order::setID(int i) { ID = i; } Order::Order(int id, ORD_TYPE r_Type, REGION r_region,int distance ,double money ,int Arr_time ) { ID = (id>0&&id<1000)?id:0; //1<ID<999 type = r_Type; Region = r_region; totalMoney = money; ArrTime = Arr_time; Distance = distance; // added by abdalla mahmoud very important if (r_Type == 2) //added by abdalla mahmoud { this->calcPriority(); } else Priorty = 0;// it doesn't matter but I should give the variable a value } Order::Order() { } Order::~Order() { } int Order::GetID() { return ID; } int Order::GetType() const { return type; } REGION Order::GetRegion() const { return Region; } void Order::SetDistance(int d) { Distance = d>0?d:0; } int Order::GetDistance() const { return Distance; // Distance not have a vlaue } void Order::Set_Type(ORD_TYPE Type ) { this->type = Type; } void Order::setMoney(double m) { totalMoney = m; } double Order::getMoney() const { return totalMoney; } void Order::calcPriority() { Priorty = totalMoney / Distance * ArrTime; } int Order::getArrivalTime() const { return this->ArrTime; } bool Order::operator<(Order & ord)const { return this->Priorty<ord.Priorty; } bool Order::operator>(Order & ord)const { return this->Priorty >ord.Priorty; } bool Order::operator==(Order & ord)const { return (this->ID == ord.ID); } int Order::Get_finish_time() { return FinishTime; } int Order::Get_Arrival_time() const { return ArrTime; } int Order::Get_Wating_time() const { return WaitingTime; } int Order::Get_servicing_time() const { return ServTime; } void Order::set_finish_time(int FT ) { FinishTime = FT; } void Order::set_Waiting_time(int WT) { WaitingTime = WT; } void Order::set_sercive_time(int ST) { ServTime = ST; }
13.080292
99
0.674665
abdallaMahmoud99
3fa3415b1a8d397b182438b1d1c77b9e7284dad7
6,972
hpp
C++
Drivers/Ximc/Interfaces/libmcdriver_ximc_types.hpp
alexanderoster/AutodeskMachineControlFramework
17aec986c2cb3c9ea46bbe583bdc0e766e6f980b
[ "BSD-3-Clause" ]
15
2020-11-10T17:22:39.000Z
2021-12-16T14:45:11.000Z
Drivers/Ximc/Interfaces/libmcdriver_ximc_types.hpp
alexanderoster/AutodeskMachineControlFramework
17aec986c2cb3c9ea46bbe583bdc0e766e6f980b
[ "BSD-3-Clause" ]
5
2021-08-30T06:58:52.000Z
2022-03-09T15:25:49.000Z
Drivers/Ximc/Interfaces/libmcdriver_ximc_types.hpp
alexanderoster/AutodeskMachineControlFramework
17aec986c2cb3c9ea46bbe583bdc0e766e6f980b
[ "BSD-3-Clause" ]
20
2020-08-06T15:53:34.000Z
2022-02-09T13:49:59.000Z
/*++ 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. This file has been generated by the Automatic Component Toolkit (ACT) version 1.7.0-develop. Abstract: This is an autogenerated C++-Header file with basic types in order to allow an easy use of MC Driver Ximc 2.0 Interface version: 1.0.0 */ #ifndef __LIBMCDRIVER_XIMC_TYPES_HEADER_CPP #define __LIBMCDRIVER_XIMC_TYPES_HEADER_CPP /************************************************************************************************************************* Scalar types definition **************************************************************************************************************************/ #ifdef LIBMCDRIVER_XIMC_USELEGACYINTEGERTYPES typedef unsigned char LibMCDriver_Ximc_uint8; typedef unsigned short LibMCDriver_Ximc_uint16 ; typedef unsigned int LibMCDriver_Ximc_uint32; typedef unsigned long long LibMCDriver_Ximc_uint64; typedef char LibMCDriver_Ximc_int8; typedef short LibMCDriver_Ximc_int16; typedef int LibMCDriver_Ximc_int32; typedef long long LibMCDriver_Ximc_int64; #else // LIBMCDRIVER_XIMC_USELEGACYINTEGERTYPES #include <stdint.h> typedef uint8_t LibMCDriver_Ximc_uint8; typedef uint16_t LibMCDriver_Ximc_uint16; typedef uint32_t LibMCDriver_Ximc_uint32; typedef uint64_t LibMCDriver_Ximc_uint64; typedef int8_t LibMCDriver_Ximc_int8; typedef int16_t LibMCDriver_Ximc_int16; typedef int32_t LibMCDriver_Ximc_int32; typedef int64_t LibMCDriver_Ximc_int64 ; #endif // LIBMCDRIVER_XIMC_USELEGACYINTEGERTYPES typedef float LibMCDriver_Ximc_single; typedef double LibMCDriver_Ximc_double; /************************************************************************************************************************* General type definitions **************************************************************************************************************************/ typedef LibMCDriver_Ximc_int32 LibMCDriver_XimcResult; typedef void * LibMCDriver_XimcHandle; typedef void * LibMCDriver_Ximc_pvoid; /************************************************************************************************************************* Version for LibMCDriver_Ximc **************************************************************************************************************************/ #define LIBMCDRIVER_XIMC_VERSION_MAJOR 1 #define LIBMCDRIVER_XIMC_VERSION_MINOR 0 #define LIBMCDRIVER_XIMC_VERSION_MICRO 0 #define LIBMCDRIVER_XIMC_VERSION_PRERELEASEINFO "" #define LIBMCDRIVER_XIMC_VERSION_BUILDINFO "" /************************************************************************************************************************* Error constants for LibMCDriver_Ximc **************************************************************************************************************************/ #define LIBMCDRIVER_XIMC_SUCCESS 0 #define LIBMCDRIVER_XIMC_ERROR_NOTIMPLEMENTED 1 #define LIBMCDRIVER_XIMC_ERROR_INVALIDPARAM 2 #define LIBMCDRIVER_XIMC_ERROR_INVALIDCAST 3 #define LIBMCDRIVER_XIMC_ERROR_BUFFERTOOSMALL 4 #define LIBMCDRIVER_XIMC_ERROR_GENERICEXCEPTION 5 #define LIBMCDRIVER_XIMC_ERROR_COULDNOTLOADLIBRARY 6 #define LIBMCDRIVER_XIMC_ERROR_COULDNOTFINDLIBRARYEXPORT 7 #define LIBMCDRIVER_XIMC_ERROR_INCOMPATIBLEBINARYVERSION 8 #define LIBMCDRIVER_XIMC_ERROR_INVALIDSTATENAME 9 #define LIBMCDRIVER_XIMC_ERROR_DRIVERERROR 1000 #define LIBMCDRIVER_XIMC_ERROR_NOTCONNECTED 1001 /************************************************************************************************************************* Error strings for LibMCDriver_Ximc **************************************************************************************************************************/ inline const char * LIBMCDRIVER_XIMC_GETERRORSTRING (LibMCDriver_XimcResult nErrorCode) { switch (nErrorCode) { case LIBMCDRIVER_XIMC_SUCCESS: return "no error"; case LIBMCDRIVER_XIMC_ERROR_NOTIMPLEMENTED: return "functionality not implemented"; case LIBMCDRIVER_XIMC_ERROR_INVALIDPARAM: return "an invalid parameter was passed"; case LIBMCDRIVER_XIMC_ERROR_INVALIDCAST: return "a type cast failed"; case LIBMCDRIVER_XIMC_ERROR_BUFFERTOOSMALL: return "a provided buffer is too small"; case LIBMCDRIVER_XIMC_ERROR_GENERICEXCEPTION: return "a generic exception occurred"; case LIBMCDRIVER_XIMC_ERROR_COULDNOTLOADLIBRARY: return "the library could not be loaded"; case LIBMCDRIVER_XIMC_ERROR_COULDNOTFINDLIBRARYEXPORT: return "a required exported symbol could not be found in the library"; case LIBMCDRIVER_XIMC_ERROR_INCOMPATIBLEBINARYVERSION: return "the version of the binary interface does not match the bindings interface"; case LIBMCDRIVER_XIMC_ERROR_INVALIDSTATENAME: return "invalid state name"; case LIBMCDRIVER_XIMC_ERROR_DRIVERERROR: return "a driver error occured"; case LIBMCDRIVER_XIMC_ERROR_NOTCONNECTED: return "ximc board is not connected"; default: return "unknown error"; } } /************************************************************************************************************************* Declaration of handle classes **************************************************************************************************************************/ typedef LibMCDriver_XimcHandle LibMCDriver_Ximc_Base; typedef LibMCDriver_XimcHandle LibMCDriver_Ximc_Driver; typedef LibMCDriver_XimcHandle LibMCDriver_Ximc_Driver_Ximc; namespace LibMCDriver_Ximc { } // namespace LibMCDriver_Ximc; // define legacy C-names for enums, structs and function types #endif // __LIBMCDRIVER_XIMC_TYPES_HEADER_CPP
47.108108
142
0.658061
alexanderoster
3fa5417ba40b719e7a5853c8ca93837e3b3956c4
380
hpp
C++
src/Piece/inc/mocks/PieceFactory.hpp
bandienkhamgalan/chess-engine
1a3f365b615cbafd1b68dfc3a2681f904b9d85e6
[ "Apache-2.0" ]
1
2017-03-21T07:57:01.000Z
2017-03-21T07:57:01.000Z
src/Piece/inc/mocks/PieceFactory.hpp
bandienkhamgalan/chess-engine
1a3f365b615cbafd1b68dfc3a2681f904b9d85e6
[ "Apache-2.0" ]
null
null
null
src/Piece/inc/mocks/PieceFactory.hpp
bandienkhamgalan/chess-engine
1a3f365b615cbafd1b68dfc3a2681f904b9d85e6
[ "Apache-2.0" ]
null
null
null
#pragma once #include "gmock/gmock.h" #include "IPieceFactory.hpp" #include "IObservableBoard.hpp" namespace Chess { class IObservableBoard; class Location; class IPlayer; namespace Mocks { class PieceFactory : public IPieceFactory { public: MOCK_METHOD3(makePiece, std::unique_ptr<IPiece>(std::weak_ptr<IObservableBoard>, const IPlayer&, const IPiece::Type&)); }; } }
19
121
0.755263
bandienkhamgalan
3fa87c29828d906eb44c19d01a0e53499f2959cf
10,258
cpp
C++
src/plugProjectNishimuraU/FixKabutoMgr.cpp
projectPiki/pikmin2
a431d992acde856d092889a515ecca0e07a3ea7c
[ "Unlicense" ]
33
2021-12-08T11:10:59.000Z
2022-03-26T19:59:37.000Z
src/plugProjectNishimuraU/FixKabutoMgr.cpp
projectPiki/pikmin2
a431d992acde856d092889a515ecca0e07a3ea7c
[ "Unlicense" ]
6
2021-12-22T17:54:31.000Z
2022-01-07T21:43:18.000Z
src/plugProjectNishimuraU/FixKabutoMgr.cpp
projectPiki/pikmin2
a431d992acde856d092889a515ecca0e07a3ea7c
[ "Unlicense" ]
2
2022-01-04T06:00:49.000Z
2022-01-26T07:27:28.000Z
#include "types.h" /* Generated from dpostproc .section .rodata # 0x804732E0 - 0x8049E220 .global lbl_8048D8F8 lbl_8048D8F8: .asciz "/enemy/data/Kabuto/babykabuto_green_s3tc.bti" .skip 3 .global lbl_8048D928 lbl_8048D928: .4byte 0x8CC592E8 .4byte 0x834A8375 .4byte 0x8367837D .4byte 0x836C815B .4byte 0x83578383 .4byte 0x00000000 .global lbl_8048D940 lbl_8048D940: .asciz "FixKabutoMgr.cpp" .skip 3 .global lbl_8048D954 lbl_8048D954: .asciz "P2Assert" .skip 3 .section .data, "wa" # 0x8049E220 - 0x804EFC20 .global __vt__Q34Game9FixKabuto3Mgr __vt__Q34Game9FixKabuto3Mgr: .4byte 0 .4byte 0 .4byte doAnimation__Q24Game12EnemyMgrBaseFv .4byte doEntry__Q24Game12EnemyMgrBaseFv .4byte doSetView__Q24Game12EnemyMgrBaseFi .4byte doViewCalc__Q24Game12EnemyMgrBaseFv .4byte doSimulation__Q24Game12EnemyMgrBaseFf .4byte doDirectDraw__Q24Game12EnemyMgrBaseFR8Graphics .4byte doSimpleDraw__16GenericObjectMgrFP8Viewport .4byte loadResources__16GenericObjectMgrFv .4byte resetMgr__16GenericObjectMgrFv .4byte pausable__16GenericObjectMgrFv .4byte frozenable__16GenericObjectMgrFv .4byte getMatrixLoadType__16GenericObjectMgrFv .4byte 0 .4byte 0 .4byte "@4@__dt__Q34Game9FixKabuto3MgrFv" .4byte getChildCount__5CNodeFv .4byte "@4@getObject__Q24Game12EnemyMgrBaseFPv" .4byte "@4@getNext__Q24Game12EnemyMgrBaseFPv" .4byte "@4@getStart__Q24Game12EnemyMgrBaseFv" .4byte "@4@getEnd__Q24Game12EnemyMgrBaseFv" .4byte __dt__Q34Game9FixKabuto3MgrFv .4byte getObject__Q24Game12EnemyMgrBaseFPv .4byte getNext__Q24Game12EnemyMgrBaseFPv .4byte getStart__Q24Game12EnemyMgrBaseFv .4byte getEnd__Q24Game12EnemyMgrBaseFv .4byte alloc__Q24Game12EnemyMgrBaseFv .4byte birth__Q24Game12EnemyMgrBaseFRQ24Game13EnemyBirthArg .4byte getJ3DModelData__Q24Game12EnemyMgrBaseCFv .4byte getGenerator__Q24Game12EnemyMgrBaseCFv .4byte killAll__Q24Game12EnemyMgrBaseFPQ24Game15CreatureKillArg .4byte setupSoundViewerAndBas__Q24Game12EnemyMgrBaseFv .4byte setDebugParm__Q24Game12EnemyMgrBaseFUl .4byte resetDebugParm__Q24Game12EnemyMgrBaseFUl .4byte getMaxObjects__Q24Game12EnemyMgrBaseCFv .4byte startMovie__Q24Game12EnemyMgrBaseFv .4byte endMovie__Q24Game12EnemyMgrBaseFv .4byte get__Q24Game12EnemyMgrBaseFPv .4byte isAlwaysMovieActor__Q24Game12EnemyMgrBaseFv .4byte createObj__Q34Game9FixKabuto3MgrFi .4byte getEnemy__Q34Game9FixKabuto3MgrFi .4byte doAlloc__Q34Game9FixKabuto3MgrFv .4byte getEnemyTypeID__Q34Game9FixKabuto3MgrFv .4byte createModel__Q34Game6Kabuto3MgrFv .4byte initParms__Q24Game12EnemyMgrBaseFv .4byte loadResource__Q24Game12EnemyMgrBaseFv .4byte initObjects__Q24Game12EnemyMgrBaseFv .4byte initStoneSetting__Q24Game12EnemyMgrBaseFv .4byte loadModelData__Q24Game12EnemyMgrBaseFP10JKRArchive .4byte loadModelData__Q34Game6Kabuto3MgrFv .4byte loadAnimData__Q34Game6Kabuto3MgrFv .4byte loadTexData__Q34Game9FixKabuto3MgrFv .4byte doLoadBmd__Q34Game6Kabuto3MgrFPv .4byte doLoadBdl__Q24Game12EnemyMgrBaseFPv .4byte initGenerator__Q24Game12EnemyMgrBaseFv .4byte getChangeTexture__Q34Game9FixKabuto3MgrFv .4byte 0 .section .sdata, "wa" # 0x80514680 - 0x80514D80 .global "cKabutoChangeTexName__Q34Game9FixKabuto26@unnamed@FixKabutoMgr_cpp@" "cKabutoChangeTexName__Q34Game9FixKabuto26@unnamed@FixKabutoMgr_cpp@": .4byte lbl_8048D8F8 */ namespace Game { /* * --INFO-- * Address: 80300394 * Size: 000050 */ FixKabuto::Mgr::Mgr(int, unsigned char) { /* stwu r1, -0x10(r1) mflr r0 stw r0, 0x14(r1) stw r31, 0xc(r1) mr r31, r3 bl __ct__Q34Game6Kabuto3MgrFiUc lis r3, __vt__Q34Game9FixKabuto3Mgr@ha lis r4, lbl_8048D928@ha addi r5, r3, __vt__Q34Game9FixKabuto3Mgr@l mr r3, r31 stw r5, 0(r31) addi r5, r5, 0x38 addi r0, r4, lbl_8048D928@l stw r5, 4(r31) stw r0, 0x18(r31) lwz r31, 0xc(r1) lwz r0, 0x14(r1) mtlr r0 addi r1, r1, 0x10 blr */ } /* * --INFO-- * Address: 803003E4 * Size: 000048 */ void FixKabuto::Mgr::doAlloc() { /* stwu r1, -0x10(r1) mflr r0 stw r0, 0x14(r1) stw r31, 0xc(r1) mr r31, r3 li r3, 0x808 bl __nw__FUl or. r4, r3, r3 beq lbl_80300410 bl __ct__Q34Game6Kabuto5ParmsFv mr r4, r3 lbl_80300410: mr r3, r31 bl init__Q24Game12EnemyMgrBaseFPQ24Game14EnemyParmsBase lwz r0, 0x14(r1) lwz r31, 0xc(r1) mtlr r0 addi r1, r1, 0x10 blr */ } /* * --INFO-- * Address: 8030042C * Size: 000060 */ void FixKabuto::Mgr::createObj(int) { /* stwu r1, -0x10(r1) mflr r0 stw r0, 0x14(r1) stw r31, 0xc(r1) mr r31, r4 stw r30, 8(r1) mr r30, r3 mulli r3, r31, 0x2fc addi r3, r3, 0x10 bl __nwa__FUl lis r4, __ct__Q34Game9FixKabuto3ObjFv@ha lis r5, __dt__Q34Game9FixKabuto3ObjFv@ha addi r4, r4, __ct__Q34Game9FixKabuto3ObjFv@l mr r7, r31 addi r5, r5, __dt__Q34Game9FixKabuto3ObjFv@l li r6, 0x2fc bl __construct_new_array stw r3, 0x48(r30) lwz r0, 0x14(r1) lwz r31, 0xc(r1) lwz r30, 8(r1) mtlr r0 addi r1, r1, 0x10 blr */ } /* * --INFO-- * Address: 8030048C * Size: 0000F0 */ FixKabuto::Obj::~Obj() { /* stwu r1, -0x10(r1) mflr r0 stw r0, 0x14(r1) stw r31, 0xc(r1) mr r31, r4 stw r30, 8(r1) or. r30, r3, r3 beq lbl_80300560 lis r3, __vt__Q34Game9FixKabuto3Obj@ha addi r0, r30, 0x2ec addi r4, r3, __vt__Q34Game9FixKabuto3Obj@l stw r4, 0(r30) addi r3, r4, 0x1b0 addi r4, r4, 0x31c stw r3, 0x178(r30) lwz r3, 0x17c(r30) stw r4, 0(r3) lwz r3, 0x17c(r30) subf r0, r3, r0 stw r0, 0xc(r3) beq lbl_80300550 lis r3, __vt__Q34Game6Kabuto3Obj@ha addi r0, r30, 0x2e4 addi r4, r3, __vt__Q34Game6Kabuto3Obj@l stw r4, 0(r30) addi r3, r4, 0x1b0 addi r4, r4, 0x31c stw r3, 0x178(r30) lwz r3, 0x17c(r30) stw r4, 0(r3) lwz r3, 0x17c(r30) subf r0, r3, r0 stw r0, 0xc(r3) beq lbl_80300550 lis r3, __vt__Q24Game9EnemyBase@ha addi r0, r30, 0x2bc addi r4, r3, __vt__Q24Game9EnemyBase@l addi r3, r30, 0x290 stw r4, 0(r30) addi r5, r4, 0x1b0 addi r6, r4, 0x2f8 li r4, -1 stw r5, 0x178(r30) lwz r5, 0x17c(r30) stw r6, 0(r5) lwz r5, 0x17c(r30) subf r0, r5, r0 stw r0, 0xc(r5) bl __dt__5CNodeFv lbl_80300550: extsh. r0, r31 ble lbl_80300560 mr r3, r30 bl __dl__FPv lbl_80300560: lwz r0, 0x14(r1) mr r3, r30 lwz r31, 0xc(r1) lwz r30, 8(r1) mtlr r0 addi r1, r1, 0x10 blr */ } /* * --INFO-- * Address: 8030057C * Size: 000010 */ void FixKabuto::Mgr::getEnemy(int) { /* mulli r0, r4, 0x2fc lwz r3, 0x48(r3) add r3, r3, r0 blr */ } /* * --INFO-- * Address: 8030058C * Size: 000080 */ void FixKabuto::Mgr::loadTexData() { /* stwu r1, -0x40(r1) mflr r0 stw r0, 0x44(r1) li r0, 0 stw r31, 0x3c(r1) mr r31, r3 stw r0, 0x44(r3) addi r3, r1, 8 lwz r4, "cKabutoChangeTexName__Q34Game9FixKabuto26@unnamed@FixKabutoMgr_cpp@"@sda21(r13) bl __ct__Q212LoadResource3ArgFPCc lwz r3, gLoadResourceMgr@sda21(r13) addi r4, r1, 8 bl load__Q212LoadResource3MgrFRQ212LoadResource3Arg cmplwi r3, 0 beq lbl_803005D0 lwz r0, 0x30(r3) stw r0, 0x44(r31) lbl_803005D0: lwz r0, 0x44(r31) cmplwi r0, 0 bne lbl_803005F8 lis r3, lbl_8048D940@ha lis r5, lbl_8048D954@ha addi r3, r3, lbl_8048D940@l li r4, 0x52 addi r5, r5, lbl_8048D954@l crclr 6 bl panic_f__12JUTExceptionFPCciPCce lbl_803005F8: lwz r0, 0x44(r1) lwz r31, 0x3c(r1) mtlr r0 addi r1, r1, 0x40 blr */ } /* * --INFO-- * Address: 8030060C * Size: 0000C8 */ FixKabuto::Mgr::~Mgr() { /* stwu r1, -0x10(r1) mflr r0 stw r0, 0x14(r1) stw r31, 0xc(r1) mr r31, r4 stw r30, 8(r1) or. r30, r3, r3 beq lbl_803006B8 lis r3, __vt__Q34Game9FixKabuto3Mgr@ha addi r3, r3, __vt__Q34Game9FixKabuto3Mgr@l stw r3, 0(r30) addi r0, r3, 0x38 stw r0, 4(r30) beq lbl_803006A8 lis r3, __vt__Q34Game6Kabuto3Mgr@ha addi r3, r3, __vt__Q34Game6Kabuto3Mgr@l stw r3, 0(r30) addi r0, r3, 0x38 stw r0, 4(r30) beq lbl_803006A8 lis r3, __vt__Q24Game12EnemyMgrBase@ha addi r3, r3, __vt__Q24Game12EnemyMgrBase@l stw r3, 0(r30) addi r0, r3, 0x38 stw r0, 4(r30) beq lbl_803006A8 lis r3, __vt__Q24Game13IEnemyMgrBase@ha addic. r0, r30, 4 addi r3, r3, __vt__Q24Game13IEnemyMgrBase@l stw r3, 0(r30) addi r0, r3, 0x38 stw r0, 4(r30) beq lbl_803006A8 lis r4, __vt__16GenericContainer@ha addi r3, r30, 4 addi r0, r4, __vt__16GenericContainer@l li r4, 0 stw r0, 4(r30) bl __dt__5CNodeFv lbl_803006A8: extsh. r0, r31 ble lbl_803006B8 mr r3, r30 bl __dl__FPv lbl_803006B8: lwz r0, 0x14(r1) mr r3, r30 lwz r31, 0xc(r1) lwz r30, 8(r1) mtlr r0 addi r1, r1, 0x10 blr */ } /* * --INFO-- * Address: 803006D4 * Size: 000008 */ u32 FixKabuto::Mgr::getEnemyTypeID() { return 0x60; } /* * --INFO-- * Address: 803006DC * Size: 000008 */ void FixKabuto::Mgr::getChangeTexture() { /* lwz r3, 0x44(r3) blr */ } /* * --INFO-- * Address: 803006E4 * Size: 000008 */ FixKabuto::Mgr::@4 @~Mgr() { /* addi r3, r3, -4 b __dt__Q34Game9FixKabuto3MgrFv */ } } // namespace Game
23.74537
80
0.637161
projectPiki
3fa98f9554e7bd2a980e2ba4543a423b7f37f355
1,149
cc
C++
src/Geometry/GeomThirdRankTensor.cc
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
1
2020-10-21T01:56:55.000Z
2020-10-21T01:56:55.000Z
src/Geometry/GeomThirdRankTensor.cc
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
src/Geometry/GeomThirdRankTensor.cc
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
//---------------------------------Spheral++----------------------------------// // GeomThirdRankTensor -- Geometric Tensor (rank 3) Class. // // This is a very simple, limited functionality rank 3 tensor. Assumes // the thing is dimensioned nDim x nDim x nDim. // // Created by JMO, Thu Jul 17 17:05:58 PDT 2008 //----------------------------------------------------------------------------// #include "GeomThirdRankTensor.hh" namespace Spheral { //------------------------------------------------------------------------------ // Set the static variables. //------------------------------------------------------------------------------ template<> const unsigned GeomThirdRankTensor<1>::numElements = 1; template<> const GeomThirdRankTensor<1> GeomThirdRankTensor<1>::zero = GeomThirdRankTensor<1>(0.0); template<> const unsigned GeomThirdRankTensor<2>::numElements = 8; template<> const GeomThirdRankTensor<2> GeomThirdRankTensor<2>::zero = GeomThirdRankTensor<2>(0.0); template<> const unsigned GeomThirdRankTensor<3>::numElements = 27; template<> const GeomThirdRankTensor<3> GeomThirdRankTensor<3>::zero = GeomThirdRankTensor<3>(0.0); }
44.192308
99
0.553525
markguozhiming
3fab520ca550085fb47fb19f596048dd1a7c3b9e
6,121
cpp
C++
src/mongo/crypto/sha_block_tom.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/mongo/crypto/sha_block_tom.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/mongo/crypto/sha_block_tom.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
/** * Copyright (C) 2018-present MongoDB, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the Server Side Public License, version 1, * as published by MongoDB, Inc. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * Server Side Public License for more details. * * You should have received a copy of the Server Side Public License * along with this program. If not, see * <http://www.mongodb.com/licensing/server-side-public-license>. * * As a special exception, the copyright holders give permission to link the * code of portions of this program with the OpenSSL library under certain * conditions as described in each individual source file and distribute * linked combinations including the program with the OpenSSL library. You * must comply with the Server Side Public License in all respects for * all of the code used other than as permitted herein. If you modify file(s) * with this exception, you may extend this exception to your version of the * file(s), but you are not obligated to do so. If you do not wish to do so, * delete this exception statement from your version. If you delete this * exception statement from all source files in the program, then also delete * it in the license file. */ #include "mongo/platform/basic.h" #include "mongo/crypto/sha1_block.h" #include "mongo/crypto/sha256_block.h" #include "mongo/crypto/sha512_block.h" #include "mongo/config.h" #include "mongo/util/assert_util.h" #ifdef MONGO_CONFIG_SSL #error This file should not be included if compiling with SSL support #endif #include "tomcrypt.h" namespace mongo { namespace { /** * Computes a SHA hash of 'input'. */ template <typename HashType, int (*Init)(hash_state*), int (*Process)(hash_state*, const unsigned char*, unsigned long), int (*Done)(hash_state*, unsigned char*)> void computeHashImpl(std::initializer_list<ConstDataRange> input, HashType* const output) { hash_state hashState; fassert(40381, Init(&hashState) == CRYPT_OK && std::all_of(begin(input), end(input), [&](const auto& i) { return Process(&hashState, reinterpret_cast<const unsigned char*>(i.data()), i.length()) == CRYPT_OK; }) && Done(&hashState, output->data()) == CRYPT_OK); } /* * Computes a HMAC SHA'd keyed hash of 'input' using the key 'key', writes output into 'output'. */ template <typename HashType> void computeHmacImpl(const ltc_hash_descriptor* desc, const uint8_t* key, size_t keyLen, std::initializer_list<ConstDataRange> input, HashType* const output) { invariant(key); invariant( std::all_of(begin(input), end(input), [&](const auto& i) { return i.data() != nullptr; })); static const struct Magic { Magic(const ltc_hash_descriptor* desc) { register_hash(desc); hashId = find_hash(desc->name); } int hashId; } magic(desc); Hmac_state hmacState; unsigned long shaHashLen = sizeof(HashType); fassert(40382, hmac_init(&hmacState, magic.hashId, key, keyLen) == CRYPT_OK && std::all_of(begin(input), end(input), [&](const auto& i) { return hmac_process( &hmacState, reinterpret_cast<const unsigned char*>(i.data()), i.length()) == CRYPT_OK; }) && hmac_done(&hmacState, output->data(), &shaHashLen) == CRYPT_OK); } } // namespace void SHA1BlockTraits::computeHash(std::initializer_list<ConstDataRange> input, HashType* const output) { computeHashImpl<SHA1BlockTraits::HashType, sha1_init, sha1_process, sha1_done>(input, output); } void SHA256BlockTraits::computeHash(std::initializer_list<ConstDataRange> input, HashType* const output) { computeHashImpl<SHA256BlockTraits::HashType, sha256_init, sha256_process, sha256_done>(input, output); } void SHA512BlockTraits::computeHash(std::initializer_list<ConstDataRange> input, HashType* const output) { computeHashImpl<SHA512BlockTraits::HashType, sha512_init, sha512_process, sha512_done>(input, output); } void SHA1BlockTraits::computeHmac(const uint8_t* key, size_t keyLen, std::initializer_list<ConstDataRange> input, HashType* const output) { return computeHmacImpl<HashType>(&sha1_desc, key, keyLen, input, output); } void SHA256BlockTraits::computeHmac(const uint8_t* key, size_t keyLen, std::initializer_list<ConstDataRange> input, HashType* const output) { return computeHmacImpl<HashType>(&sha256_desc, key, keyLen, input, output); } void SHA512BlockTraits::computeHmac(const uint8_t* key, size_t keyLen, std::initializer_list<ConstDataRange> input, HashType* const output) { return computeHmacImpl<HashType>(&sha512_desc, key, keyLen, input, output); } } // namespace mongo
41.080537
99
0.578664
benety
3fabcecf6d8e0fff725ee5269db5c4b49c3245c8
2,547
cpp
C++
Sources/x10/xla_tensor/ops/rrelu_with_noise_backward.cpp
vguerra/swift-apis
215c1380874c55d2f12ae81ce78968f9e25ed723
[ "Apache-2.0" ]
null
null
null
Sources/x10/xla_tensor/ops/rrelu_with_noise_backward.cpp
vguerra/swift-apis
215c1380874c55d2f12ae81ce78968f9e25ed723
[ "Apache-2.0" ]
null
null
null
Sources/x10/xla_tensor/ops/rrelu_with_noise_backward.cpp
vguerra/swift-apis
215c1380874c55d2f12ae81ce78968f9e25ed723
[ "Apache-2.0" ]
1
2020-06-04T23:23:46.000Z
2020-06-04T23:23:46.000Z
// Copyright 2020 TensorFlow 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 "tensorflow/compiler/tf2xla/xla_tensor/ops/rrelu_with_noise_backward.h" #include "tensorflow/compiler/xla/xla_client/util.h" #include "tensorflow/compiler/tf2xla/xla_tensor/elementwise.h" #include "tensorflow/compiler/tf2xla/xla_tensor/lowering_context.h" #include "tensorflow/compiler/tf2xla/xla_tensor/ops/scalar.h" namespace swift_xla { namespace ir { namespace ops { RreluWithNoiseBackward::RreluWithNoiseBackward(const Value& grad_output, const Value& input, const Value& noise, at::Scalar lower, at::Scalar upper, bool training) : Node(ir::OpKind(at::aten::rrelu_with_noise_backward), {grad_output, input, noise}, input.shape(), /*num_outputs=*/1, xla::util::MHash(ScalarHash(lower), ScalarHash(upper), training)), lower_(std::move(lower)), upper_(std::move(upper)), training_(training) {} NodePtr RreluWithNoiseBackward::Clone(OpList operands) const { return MakeNode<RreluWithNoiseBackward>(operands.at(0), operands.at(1), operands.at(2), lower_, upper_, training_); } XlaOpVector RreluWithNoiseBackward::Lower(LoweringContext* loctx) const { xla::XlaOp grad_output = loctx->GetOutputOp(operand(0)); xla::XlaOp input = loctx->GetOutputOp(operand(1)); xla::XlaOp noise = loctx->GetOutputOp(operand(2)); return ReturnOp( BuildRreluBackward(grad_output, input, noise, lower_, upper_, training_), loctx); } std::string RreluWithNoiseBackward::ToString() const { std::stringstream ss; ss << Node::ToString() << ", lower=" << lower_ << ", upper=" << upper_ << ", training=" << training_; return ss.str(); } } // namespace ops } // namespace ir } // namespace swift_xla
39.796875
80
0.648606
vguerra
3faf670b3c11dcadd2dc9e387c40d91672adb38d
206
cpp
C++
DS and Algo/12. tree/9. Print Pre-Order.cpp
tausiq2003/C-with-DS
3ec324b180456116b03aec58f2a85025180af9aa
[ "Apache-2.0" ]
7
2020-10-01T13:31:02.000Z
2021-11-06T16:22:31.000Z
DS and Algo/12. tree/9. Print Pre-Order.cpp
tausiq2003/C-with-DS
3ec324b180456116b03aec58f2a85025180af9aa
[ "Apache-2.0" ]
9
2020-10-01T10:35:59.000Z
2021-10-03T15:00:18.000Z
DS and Algo/12. tree/9. Print Pre-Order.cpp
tausiq2003/C-with-DS
3ec324b180456116b03aec58f2a85025180af9aa
[ "Apache-2.0" ]
44
2020-10-01T08:49:30.000Z
2021-10-31T18:19:48.000Z
void PrintPreOrder(TreeNode<int>* root){ if(root==NULL){ return; } cout<<root->data<<" "; for(int i=0;i<root->children.size();i++){ PrintPreOrder(root->children[i]); } }
20.6
45
0.543689
tausiq2003
3fafb58dd9c06ef46fd2b9ee903c2304c48429af
8,845
cpp
C++
main/WindowClass.cpp
satadriver/LiunuxOS_C_t
38e0e6086cda728008d35f101107d9c591ff38bc
[ "Apache-2.0" ]
null
null
null
main/WindowClass.cpp
satadriver/LiunuxOS_C_t
38e0e6086cda728008d35f101107d9c591ff38bc
[ "Apache-2.0" ]
null
null
null
main/WindowClass.cpp
satadriver/LiunuxOS_C_t
38e0e6086cda728008d35f101107d9c591ff38bc
[ "Apache-2.0" ]
null
null
null
#pragma once #include "windowclass.h" #include "video.h" #include "Utils.h" #include "screenUtils.h" #include "mouse.h" #include "keyboard.h" #include "task.h" #include "file.h" #include "gdi.h" #include "Pe.h" #include "gdi/jpeg.h" #include "keyboard.h" #include "mouse.h" #include "window.h" int __kShowWindow(unsigned int retaddr, int tid, char * filename, char * funcname,DWORD runparam) { char szout[1024]; __printf(szout, "__kShowWindow task tid:%x,filename:%s,funcname:%s,param:%x\n", tid, filename,funcname,runparam); __drawGraphChars((unsigned char*)szout, 0); int retvalue = 0; LPTASKCMDPARAMS taskcmd = (LPTASKCMDPARAMS)runparam; int cmd = taskcmd->cmd; __printf(szout, "cmd:%d,addr:%x,filesize:%d,filename:%s\n", taskcmd->cmd, taskcmd->addr, taskcmd->filesize, taskcmd->filename); __drawGraphChars((unsigned char*)szout, 0); WINDOWCLASS window; __memset((char*)&window, 0, sizeof(WINDOWCLASS)); __strcpy(window.caption, filename); initFullWindow(&window, funcname, tid); if (cmd == SHOW_WINDOW_BMP || cmd == SHOW_WINDOW_TXT || cmd == SHOW_WINDOW_JPEG) { int filesize = 0; char * filebuf = 0; if (taskcmd->addr == 0 || taskcmd->filesize == 0) { filesize = readFileTo(taskcmd->filename); if (filesize <= 0) { __printf(szout, "__kFullWindowPic read file:%s error\n", filename); __drawGraphChars((unsigned char*)szout, 0); __restoreWindow(&window); return -1; } filebuf = (char*)FILE_BUFFER_ADDRESS; } else { filebuf = (char*)taskcmd->addr; filesize = taskcmd->filesize; } if (cmd == SHOW_WINDOW_BMP) { retvalue = showBmp(filename, (unsigned char *)filebuf, filesize, window.showX, window.showY); if (retvalue <= 0) { __printf(szout, "__kFullWindowPic showBmp:%s error\n", filename); __drawGraphChars((unsigned char*)szout, 0); //__restoreWindow(&window); //return -1; } } else if (cmd == SHOW_WINDOW_TXT) { unsigned char * data = (unsigned char*)filebuf; *(data + filesize) = 0; DWORD cappos = __getpos(window.showX, window.showY); int showend = __drawGraphChar((unsigned char*)data, DEFAULT_FONT_COLOR, (unsigned int)cappos,window.color); //int showend = __drawGraphCharPos((unsigned char*)data, DEFAULT_FONT_COLOR, (unsigned int)cappos); } else if (cmd == SHOW_WINDOW_JPEG) { char * bmpdata = (char*)FILE_BUFFER_ADDRESS + FILE_BUFFER_SIZE - 0x1000000; int bmpsize = 0x1000000; retvalue = LoadJpegFile(filebuf, filesize, bmpdata, &bmpsize); if (retvalue) { retvalue = showBmp(filename, (unsigned char *)bmpdata, bmpsize, window.showX, window.showY); } else { __drawGraphChars((unsigned char*)"decode jpeg error\r\n", 0); } } }else if (cmd == SHOW_TEST_WINDOW) { gKbdTest = window.id; gMouseTest = window.id; } while (1) { //unsigned int ck = __getchar(window.id); unsigned int ck = __kGetKbd(window.id); unsigned int asc = ck & 0xff; if (asc == 0x1b) { if (cmd == SHOW_TEST_WINDOW) { gKbdTest = FALSE; gMouseTest = FALSE; } __restoreWindow(&window); return 0; // __terminatePid(pid); // __sleep(-1); } MOUSEINFO mouseinfo; __memset((char*)&mouseinfo, 0, sizeof(MOUSEINFO)); retvalue = getmouse(&mouseinfo,window.id); if (mouseinfo.status & 1) //left click { if (mouseinfo.x >= window.shutdownx && mouseinfo.x <= window.shutdownx + window.capHeight) { if (mouseinfo.y >= window.shutdowny && mouseinfo.y <= window.shutdowny + window.capHeight) { __restoreWindow(&window); return 0; //__terminatePid(pid); //__sleep(-1); } } } __sleep(0); } return 0; } void initTaskbarWindow(WINDOWCLASS * window, char * filename, int tid) { __memset((char*)window, 0, sizeof(WINDOWCLASS)); window->capColor = 0; window->capHeight = 0; window->color = TASKBARCOLOR; window->frameSize = 0; window->frameColor = 0; __strcpy(window->caption, filename); window->pos.x = FULLWINDOW_TOP; window->pos.y = gWindowHeight; window->width = gVideoWidth + window->frameSize; window->height = gVideoHeight - gWindowHeight; window->zoomin = 1; window->tid = tid; LPPROCESS_INFO p = (LPPROCESS_INFO)CURRENT_TASK_TSS_BASE; window->pid = p->pid; window->left = window->pos.x + (window->frameSize >> 1); window->top = window->pos.y + (window->frameSize >> 1) + window->capHeight; window->right = gVideoWidth - (window->frameSize >> 1) - 1; window->bottom = gVideoHeight - (window->frameSize >> 1) - 1; window->showX = window->pos.x + (window->frameSize >> 1); window->showY = window->pos.y + (window->frameSize >> 1) + window->capHeight; __drawBackGroundWindow(window, FALSE); window->prev = 0; window->next = 0; } void initDesktopWindow(WINDOWCLASS * window, char * name, int tid) { __memset((char*)window, 0, sizeof(WINDOWCLASS)); window->capColor = 0; window->capHeight = 0; window->color = BACKGROUND_COLOR; window->frameSize = 0; window->frameColor = 0; __strcpy(window->caption, name); __strcpy(window->winname, name); window->backGround = 0; window->pos.x = FULLWINDOW_TOP; window->pos.y = FULLWINDOW_LEFT; window->width = gVideoWidth + window->frameSize; window->height = gWindowHeight + window->frameSize + window->capHeight; window->zoomin = 1; window->tid = tid; LPPROCESS_INFO p = (LPPROCESS_INFO)CURRENT_TASK_TSS_BASE; window->pid = p->pid; window->left = (window->frameSize >> 1)+ window->pos.x; window->top = (window->frameSize >> 1) + window->capHeight + window->pos.y; window->right = window->left + window->width - 1; window->bottom = window->top + window->height - 1; window->showX = window->left; window->showY = window->top; window->id = addWindow(FALSE, (DWORD*)&window->showX, (DWORD*)&window->showY, ~window->color,window->winname); __drawBackGroundWindow(window, FALSE); __initMouse(gVideoWidth, gVideoHeight); window->prev = 0; window->next = 0; } void initFullWindow(WINDOWCLASS * window,char * functionname,int tid) { window->capColor = 0x00ffff; window->capHeight = GRAPHCHAR_HEIGHT * 2; window->color = CONSOLE_FONT_COLOR; window->frameSize = GRAPHCHAR_WIDTH; window->frameColor = FOLDERFONTBGCOLOR; __strcpy(window->caption, functionname); __strcpy(window->winname, functionname); window->pos.x = FULLWINDOW_TOP; window->pos.y = FULLWINDOW_LEFT; window->width = gVideoWidth - window->frameSize; window->height = gWindowHeight - window->frameSize - window->capHeight; window->zoomin = 1; window->tid = tid; LPPROCESS_INFO p = (LPPROCESS_INFO)CURRENT_TASK_TSS_BASE; window->pid = p->pid; window->left = window->frameSize >> 1; window->top = (window->frameSize >> 1) + window->capHeight; window->right = gVideoWidth - (window->frameSize>>1) - 1; window->bottom = gWindowHeight - (window->frameSize >> 1) - 1; window->showX = window->pos.x + (window->frameSize >> 1); window->showY = window->pos.y + (window->frameSize >> 1) + window->capHeight; window->prev = 0; window->next = 0; __drawWindow(window,TRUE); } void initConsoleWindow(WINDOWCLASS * window, char * filename, int tid) { window->capColor = 0x00ffff; window->capHeight = GRAPHCHAR_HEIGHT * 2; window->color = DEFAULT_FONT_COLOR; window->frameSize = GRAPHCHAR_WIDTH; window->frameColor = FOLDERFONTBGCOLOR; __strcpy(window->caption, filename); __strcpy(window->winname, "__Console"); window->width = gVideoWidth / 2; window->height = gVideoHeight / 2; window->pos.x = gVideoWidth / 4; window->pos.y = gVideoHeight / 4; window->left = window->pos.x + window->frameSize; window->top = window->pos.y + (window->frameSize >> 1) + window->capHeight; window->right = window->pos.x + window->frameSize + window->width - 1; window->bottom = window->pos.y + (window->frameSize >> 1) + +window->capHeight + window->height - 1; window->zoomin = 1; window->tid = tid; LPPROCESS_INFO p = (LPPROCESS_INFO)CURRENT_TASK_TSS_BASE; window->pid = p->pid; window->showX = window->pos.x + (window->frameSize >> 1); window->showY = window->pos.y + (window->frameSize >> 1) + window->capHeight; window->prev = 0; window->next = 0; __drawWindow(window, TRUE); } void initBigClickItem(FILEMAP *clickitem, char * name, int tid, int id,int x, int y) { __memset((char*)clickitem, 0, sizeof(FILEMAP)); clickitem->tid = tid; clickitem->id = id; LPPROCESS_INFO p = (LPPROCESS_INFO)CURRENT_TASK_TSS_BASE; clickitem->pid = p->pid; clickitem->color = FOLDERCOLOR; clickitem->width = gBigFolderWidth; clickitem->height = gBigFolderHeight; clickitem->pos.x = x; clickitem->pos.y = y; clickitem->namecolor = FOLDERFONTCOLOR; clickitem->zoomin = 1; __strcpy(clickitem->name, name); clickitem->frameColor = FOLDERFONTBGCOLOR; clickitem->frameSize = GRAPHCHAR_WIDTH; clickitem->namebgcolor = DEFAULT_FONT_COLOR; int ret = __drawFileMap(clickitem); }
26.482036
115
0.684681
satadriver
3fb1211cad9952498e5faace1af64c062a7e20db
2,966
cpp
C++
service/type-analysis/LocalTypeAnalyzer.cpp
penguin-wwy/redex
31baadec7ccddcadb5ddaf4947a63112f2eadc04
[ "MIT" ]
null
null
null
service/type-analysis/LocalTypeAnalyzer.cpp
penguin-wwy/redex
31baadec7ccddcadb5ddaf4947a63112f2eadc04
[ "MIT" ]
null
null
null
service/type-analysis/LocalTypeAnalyzer.cpp
penguin-wwy/redex
31baadec7ccddcadb5ddaf4947a63112f2eadc04
[ "MIT" ]
null
null
null
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "LocalTypeAnalyzer.h" #include <ostream> #include <sstream> namespace type_analyzer { namespace local { void set_dex_type(DexTypeEnvironment* state, reg_t reg, const boost::optional<const DexType*>& dex_type_opt) { const DexTypeDomain dex_type = dex_type_opt ? DexTypeDomain(*dex_type_opt) : DexTypeDomain::top(); state->set(reg, dex_type); } boost::optional<const DexType*> get_dex_type(DexTypeEnvironment* state, reg_t reg) { return state->get(reg).get_dex_type(); } void traceEnvironment(DexTypeEnvironment* env) { std::ostringstream out; out << *env; TRACE(TYPE, 9, "%s", out.str().c_str()); } void LocalTypeAnalyzer::analyze_instruction(const IRInstruction* insn, DexTypeEnvironment* env) const { TRACE(TYPE, 5, "Analyzing instruction: %s", SHOW(insn)); m_insn_analyzer(insn, env); if (traceEnabled(TYPE, 9)) { traceEnvironment(env); } } bool InstructionTypeAnalyzer::analyze_move(const IRInstruction* insn, DexTypeEnvironment* env) { if (insn->opcode() != OPCODE_MOVE_OBJECT) { return false; } const auto& dex_type_opt = get_dex_type(env, insn->src(0)); set_dex_type(env, insn->dest(), dex_type_opt); return true; } bool InstructionTypeAnalyzer::analyze_move_result(const IRInstruction* insn, DexTypeEnvironment* env) { if (insn->opcode() != OPCODE_MOVE_RESULT_OBJECT && insn->opcode() != IOPCODE_MOVE_RESULT_PSEUDO_OBJECT) { return false; } set_dex_type(env, insn->dest(), get_dex_type(env, RESULT_REGISTER)); return true; } bool InstructionTypeAnalyzer::analyze_move_exception(const IRInstruction* insn, DexTypeEnvironment* env) { // We don't know where to grab the type of the just-caught exception. // Simply set to j.l.Throwable here. set_dex_type(env, insn->dest(), type::java_lang_Throwable()); return true; } bool InstructionTypeAnalyzer::analyze_new_instance(const IRInstruction* insn, DexTypeEnvironment* env) { set_dex_type(env, RESULT_REGISTER, insn->get_type()); return true; } bool InstructionTypeAnalyzer::analyze_new_array(const IRInstruction* insn, DexTypeEnvironment* env) { set_dex_type(env, RESULT_REGISTER, insn->get_type()); return true; } bool InstructionTypeAnalyzer::analyze_filled_new_array( const IRInstruction* insn, DexTypeEnvironment* env) { set_dex_type(env, RESULT_REGISTER, insn->get_type()); return true; } } // namespace local } // namespace type_analyzer
31.553191
79
0.649359
penguin-wwy
3fb275b1fdbbbd1fe2e2f585202016030e9a499d
97
cpp
C++
ModelViewer/Scene/GraphNode.cpp
seanisom/glTF-DXViewer
f1e7d88581e3598e397e563f529e7ee2bb4befd6
[ "MIT" ]
64
2018-05-25T06:18:42.000Z
2019-04-15T17:27:38.000Z
ModelViewer/Scene/GraphNode.cpp
seanisom/glTF-DXViewer
f1e7d88581e3598e397e563f529e7ee2bb4befd6
[ "MIT" ]
4
2018-05-26T10:53:33.000Z
2018-10-20T20:46:41.000Z
ModelViewer/Scene/GraphNode.cpp
seanisom/glTF-DXViewer
f1e7d88581e3598e397e563f529e7ee2bb4befd6
[ "MIT" ]
13
2019-09-19T00:50:07.000Z
2022-03-22T13:39:52.000Z
#include "pch.h" #include "GraphNode.h" GraphNode::GraphNode() { } GraphNode::~GraphNode() { }
8.818182
23
0.659794
seanisom
3fb74b04398c86a82ee87fd73e7978448181f8f1
4,496
cpp
C++
loadNVML.cpp
nvpro-samples/nvml_enterprise_gpu_check
84d2e25b0d59a3b7527e4134dca0e7963bff73ce
[ "Apache-2.0" ]
3
2020-12-22T16:28:42.000Z
2021-05-07T03:09:35.000Z
loadNVML.cpp
nvpro-samples/nvml_enterprise_gpu_check
84d2e25b0d59a3b7527e4134dca0e7963bff73ce
[ "Apache-2.0" ]
null
null
null
loadNVML.cpp
nvpro-samples/nvml_enterprise_gpu_check
84d2e25b0d59a3b7527e4134dca0e7963bff73ce
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * SPDX-FileCopyrightText: Copyright (c) 2020-2021 NVIDIA CORPORATION * SPDX-License-Identifier: Apache-2.0 */ #include "loadNVML.h" // Include files for loading the DLL on Windows: #ifdef _WIN32 #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif // #ifndef WIN32_LEAN_AND_MEAN #include <Windows.h> #include <cfgmgr32.h> // For getting driver information in the registry #include <delayimp.h> #include <string> // Attempt to load all imports; use SEH to catch errors // (see https://github.com/MicrosoftDocs/cpp-docs/issues/1003) bool TryLoadAllImports() { __try { if(FAILED(__HrLoadAllImportsForDll("nvml.dll"))) { return false; } } __except(EXCEPTION_EXECUTE_HANDLER) { return false; } return true; } #endif // #ifdef _WIN32 bool LoadNVMLImports() { #ifdef _WIN32 // Path to directory where nvml.dll would be if contained in DriverStore. std::string driverStoreNVMLPath = ""; // Look for the OpenGL driver, which exists next to nvml.dll. static const char* deviceInstanceIdentifiersGUID = "{4d36e968-e325-11ce-bfc1-08002be10318}"; const ULONG flags = CM_GETIDLIST_FILTER_CLASS | CM_GETIDLIST_FILTER_PRESENT; ULONG deviceListSize = 0; // Determine the size of the device instance ID buffer if(CM_Get_Device_ID_List_SizeA(&deviceListSize, deviceInstanceIdentifiersGUID, flags) != CR_SUCCESS) { return false; } // Get the list of device names, which is a sequence of zero-terminated // strings with an extra final null character. char* deviceNames = new char[deviceListSize]; if(CM_Get_Device_ID_ListA(deviceInstanceIdentifiersGUID, deviceNames, deviceListSize, flags) != CR_SUCCESS) { delete[] deviceNames; return false; } // Iterate over device names; continue to the next device if we encounter errors. for(char* deviceName = deviceNames; *deviceName; deviceName += strlen(deviceName) + 1) { // Get the device instance handle given the device name. DEVINST devID = 0; if(CM_Locate_DevNodeA(&devID, deviceName, CM_LOCATE_DEVNODE_NORMAL) != CR_SUCCESS) { continue; } // Open this device's configuration information registry key. HKEY regKey = 0; if(CM_Open_DevNode_Key(devID, KEY_QUERY_VALUE, 0, RegDisposition_OpenExisting, &regKey, CM_REGISTRY_SOFTWARE) != CR_SUCCESS) { continue; } // Query the length and then the value of the "OpenGLDriverName" key. const char* valueName = "OpenGLDriverName"; DWORD valueSize = 0; if(RegQueryValueExA(regKey, valueName, NULL, NULL, NULL, &valueSize) != ERROR_SUCCESS) { RegCloseKey(regKey); continue; } char* regValue = new char[valueSize]; if(RegQueryValueExA(regKey, valueName, NULL, NULL, reinterpret_cast<LPBYTE>(regValue), &valueSize) != ERROR_SUCCESS) { delete[] regValue; RegCloseKey(regKey); continue; } // regValue now contains the path to the OpenGL driver DLL! // Let's get its folder. char* lastBackslashPos = strrchr(regValue, '\\'); const bool willSetPath = (lastBackslashPos != nullptr); if(willSetPath) { driverStoreNVMLPath = std::string(regValue, lastBackslashPos); } delete[] regValue; RegCloseKey(regKey); if(willSetPath) { break; } } delete[] deviceNames; // Add driverStoreNVMLPath as the first search path if non-empty. if(driverStoreNVMLPath.size() > 0) { BOOL directorySet = SetDllDirectoryA(driverStoreNVMLPath.c_str()); if(directorySet == FALSE) { return false; // SetDllDirectoryA failed } } bool succeeded = TryLoadAllImports(); SetDllDirectoryA(""); // Restore search paths return succeeded; #else // For non-Windows systems: return true; #endif // #ifdef _WIN32 }
29.578947
128
0.694617
nvpro-samples
3fbc2c1511a22a9326d773d89fa0210f8eb87c5e
3,315
cpp
C++
GameEngine/src/GameEngine/Debug/Instrumentor.cpp
Mevelec/GameEngine
70195139dcf74170ed34282ce1918160364a441f
[ "Apache-2.0" ]
null
null
null
GameEngine/src/GameEngine/Debug/Instrumentor.cpp
Mevelec/GameEngine
70195139dcf74170ed34282ce1918160364a441f
[ "Apache-2.0" ]
null
null
null
GameEngine/src/GameEngine/Debug/Instrumentor.cpp
Mevelec/GameEngine
70195139dcf74170ed34282ce1918160364a441f
[ "Apache-2.0" ]
null
null
null
#include "hzpch.h" #include "GameEngine/Debug/Instrumentor.h" namespace GameEngine { Instrumentor::Instrumentor() : currentSession(nullptr) { } void Instrumentor::beginSession(const std::string& name, const std::string& filepath) { std::lock_guard lock(this->mutex); if (this->currentSession) { // If there is already a current session, then close it before beginning new one. // Subsequent profiling output meant for the original session will end up in the // newly opened session instead. That's better than having badly formatted // profiling output. if (Log::GetCoreLogger()) { // Edge case: BeginSession() might be before Log::Init() GE_CORE_ERROR("Instrumentor::BeginSession('{0}') when session '{1}' already open.", name, this->currentSession->name); } this->internalEndSession(); } this->outputStream.open(filepath); if (this->outputStream.is_open()) { this->currentSession = new InstrumentationSession({ name }); this->writeHeader(); } else { if (Log::GetCoreLogger()) { // Edge case: BeginSession() might be before Log::Init() GE_CORE_ERROR("Instrumentor could not open results file '{0}'.", filepath); } } } void Instrumentor::endSession() { std::lock_guard lock(this->mutex); this->internalEndSession(); } void Instrumentor::writeProfile(const ProfileResult& result) { std::stringstream json; std::string name = result.name; std::replace(name.begin(), name.end(), '"', '\''); json << std::setprecision(3) << std::fixed; json << ",{"; json << "\"cat\":\"function\","; json << "\"dur\":" << (result.elapsedTime.count()) << ','; json << "\"name\":\"" << name << "\","; json << "\"ph\":\"X\","; json << "\"pid\":0,"; json << "\"tid\":" << result.threadID << ","; json << "\"ts\":" << result.start.count(); json << "}"; std::lock_guard lock(this->mutex); if (this->currentSession) { this->outputStream << json.str(); this->outputStream.flush(); } } void Instrumentor::writeHeader() { this->outputStream << "{\"otherData\": {},\"traceEvents\":[{}"; this->outputStream.flush(); } void Instrumentor::writeFooter() { this->outputStream << "]}"; this->outputStream.flush(); } // Note: you must already own lock on mutex before // calling InternalEndSession() void Instrumentor::internalEndSession() { if (this->currentSession) { this->writeFooter(); this->outputStream.close(); delete this->currentSession; this->currentSession = nullptr; } } } namespace GameEngine { InstrumentationTimer::InstrumentationTimer(const char* name) : name(name), stopped(false) { this->startTimepoint = std::chrono::steady_clock::now(); } InstrumentationTimer::~InstrumentationTimer() { if (!this->stopped) this->stop(); } void InstrumentationTimer::stop() { auto endTimepoint = std::chrono::steady_clock::now(); auto highResStart = FloatingPointMicroseconds{ this->startTimepoint.time_since_epoch() }; auto elapsedTime = std::chrono::time_point_cast<std::chrono::microseconds>(endTimepoint).time_since_epoch() - std::chrono::time_point_cast<std::chrono::microseconds>(this->startTimepoint).time_since_epoch(); Instrumentor::Get().writeProfile({ this->name, highResStart, elapsedTime, std::this_thread::get_id() }); this->stopped = true; } }
29.078947
209
0.66727
Mevelec
3fbd2291205d3aa177eb124262ae47140c8c5de5
2,917
cc
C++
components/content_capture/android/test_support/content_capture_test_support_android.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
components/content_capture/android/test_support/content_capture_test_support_android.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
86
2015-10-21T13:02:42.000Z
2022-03-14T07:50:50.000Z
components/content_capture/android/test_support/content_capture_test_support_android.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright 2021 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 "components/content_capture/android/test_support/jni_headers/ContentCaptureTestSupport_jni.h" #include "base/android/jni_string.h" #include "base/json/json_reader.h" #include "base/notreached.h" #include "base/values.h" #include "components/content_capture/browser/content_capture_receiver.h" #include "components/content_capture/browser/onscreen_content_provider.h" #include "content/public/browser/web_contents.h" #include "third_party/blink/public/mojom/favicon/favicon_url.mojom.h" #include "ui/gfx/geometry/size.h" namespace content_capture { namespace { blink::mojom::FaviconIconType ToType(std::string type) { if (type == "favicon") return blink::mojom::FaviconIconType::kFavicon; else if (type == "touch icon") return blink::mojom::FaviconIconType::kTouchIcon; else if (type == "touch precomposed icon") return blink::mojom::FaviconIconType::kTouchPrecomposedIcon; NOTREACHED(); return blink::mojom::FaviconIconType::kInvalid; } } // namespace static void JNI_ContentCaptureTestSupport_DisableGetFaviconFromWebContents( JNIEnv* env) { ContentCaptureReceiver::DisableGetFaviconFromWebContentsForTesting(); } static void JNI_ContentCaptureTestSupport_SimulateDidUpdateFaviconURL( JNIEnv* env, const base::android::JavaParamRef<jobject>& jwebContents, const base::android::JavaParamRef<jstring>& jfaviconJson) { content::WebContents* web_contents = content::WebContents::FromJavaWebContents(jwebContents); CHECK(web_contents); OnscreenContentProvider* provider = OnscreenContentProvider::FromWebContents(web_contents); CHECK(provider); std::string json = base::android::ConvertJavaStringToUTF8(env, jfaviconJson); absl::optional<base::Value> root = base::JSONReader::Read(json); CHECK(root); CHECK(root->is_list()); std::vector<blink::mojom::FaviconURLPtr> favicon_urls; for (const base::Value& icon : root->GetList()) { std::vector<gfx::Size> sizes; // The sizes is optional. if (auto* icon_sizes = icon.FindKey("sizes")) { for (const base::Value& size : icon_sizes->GetList()) { CHECK(size.FindKey("width")); CHECK(size.FindKey("height")); sizes.emplace_back(size.FindKey("width")->GetInt(), size.FindKey("height")->GetInt()); } } CHECK(icon.FindKey("url")); CHECK(icon.FindKey("type")); favicon_urls.push_back(blink::mojom::FaviconURL::New( GURL(*icon.FindKey("url")->GetIfString()), ToType(*icon.FindKey("type")->GetIfString()), sizes)); } CHECK(!favicon_urls.empty()); provider->NotifyFaviconURLUpdatedForTesting(web_contents->GetMainFrame(), favicon_urls); } } // namespace content_capture
37.883117
102
0.718204
zealoussnow
3fbd89de088e25b8660b22f80092d7770af13880
2,401
cpp
C++
src/socket.cpp
envelope-project/lauSim
6dc188600823d9c9464df0063a39a1ec3a6e9eda
[ "Apache-2.0" ]
null
null
null
src/socket.cpp
envelope-project/lauSim
6dc188600823d9c9464df0063a39a1ec3a6e9eda
[ "Apache-2.0" ]
null
null
null
src/socket.cpp
envelope-project/lauSim
6dc188600823d9c9464df0063a39a1ec3a6e9eda
[ "Apache-2.0" ]
null
null
null
/* Copyright 2017 Clemens Jonischkeit Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* * @Author: C. Jonischkeit * @Date: 2017-06-30 13:01:40 */ #include <iostream> #include <cstring> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <unistd.h> #include <stdlib.h> #include <netdb.h> #include <csignal> #include "socket.h" using namespace lauSim; bool Socket::set_type(int family, int socktype, int protocol) { if (sd != -1) return false; this->family = family; this->socktype = socktype; this->protocol = protocol; return true; } Socket::Socket(const Socket &sock) : family(sock.family) , socktype(sock.socktype) , protocol(sock.protocol) { if ((sd = dup(sock.sd) < 0)) throw "Unable to dup sd"; } Socket::~Socket() { if (sd > 0) close(sd); } int Socket::connect(char *addr, char *service) { struct addrinfo info, *res = &info; int err; if (sd >= 0) return -1; memset(&info, 0, sizeof(info)); info.ai_family = family; info.ai_socktype = socktype; info.ai_flags = AI_ADDRCONFIG; if (getaddrinfo(addr, service, &info, &res)) { std::cerr << "looking up " << addr << ":" << service << "failed" << std::endl; if (res != &info) freeaddrinfo(res); return -1; } err = sd = socket(res->ai_addr->sa_family, socktype, protocol); if (sd < 0) { std::cerr << "unable to create socket (" << res->ai_addr->sa_family << ":"; std::cerr << socktype << ")" << std::endl; freeaddrinfo(res); sd = -1; return err; } if ((err = ::connect(sd, res->ai_addr, res->ai_addrlen))) { std::cerr << "unable to connect" << std::endl; close(sd); freeaddrinfo(res); sd = -1; return err; } freeaddrinfo(res); return 0; }
24.5
86
0.60683
envelope-project
3fc2a818b30b2a24ade65a8a5e638328ed2fe018
178
hpp
C++
AL/Common/Endians.hpp
LeoTHPS/AbstractionLayer
c2a77cc090214b9455af65aee6b9331bc6a64fd2
[ "MIT" ]
null
null
null
AL/Common/Endians.hpp
LeoTHPS/AbstractionLayer
c2a77cc090214b9455af65aee6b9331bc6a64fd2
[ "MIT" ]
null
null
null
AL/Common/Endians.hpp
LeoTHPS/AbstractionLayer
c2a77cc090214b9455af65aee6b9331bc6a64fd2
[ "MIT" ]
null
null
null
#pragma once #include "AL/Common.hpp" namespace AL { enum class Endians : uint8 { Big, Little, Machine = ((0xFFFFFFFF & 0x00000001) == 0x00000001) ? Little : Big }; }
12.714286
68
0.646067
LeoTHPS
3fc54a6e89098b26a6e9ad85d8492819589a9479
643
hpp
C++
inc/large_object.hpp
danilailie/ConcurrentHashMap
5d532018fa194ddc851b722aeda00d3fd07a2c8c
[ "MIT" ]
null
null
null
inc/large_object.hpp
danilailie/ConcurrentHashMap
5d532018fa194ddc851b722aeda00d3fd07a2c8c
[ "MIT" ]
null
null
null
inc/large_object.hpp
danilailie/ConcurrentHashMap
5d532018fa194ddc851b722aeda00d3fd07a2c8c
[ "MIT" ]
null
null
null
#ifndef _LARGE_OBJECT_HPP_ #define _LARGE_OBJECT_HPP_ #include <mutex> #include <vector> class LargeObject { public: explicit LargeObject (int anIndex) : index (anIndex) { data.resize (10000); } LargeObject (const LargeObject &other) { std::unique_lock<std::mutex> lock (copyMutex); data = other.data; copyCount++; } static uint32_t getCopyCount () { std::unique_lock<std::mutex> lock (copyMutex); return copyCount; } int getIndex () const { return index; } private: std::vector<uint32_t> data; int index; static uint32_t copyCount; static std::mutex copyMutex; }; #endif
14.953488
54
0.66874
danilailie
3fc7dfc519c3f942b965bc75e9f7e3cf6692ba7d
318
cpp
C++
CodeForces/misc/Detective Book.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
CodeForces/misc/Detective Book.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
CodeForces/misc/Detective Book.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
#include<bits/stdc++.h> using namespace std; int main() { long long int t,i,k,c=0; long long int a[100000]; scanf("%lld",&t); for(i=0;i<t;i++) { scanf("%lld",&a[i]); } sort(a,a+t); for(i=0;i<t;i++) { if(a[i]==(i+1)) c++; } printf("%lld\n",c); }
15.142857
28
0.421384
Ashwanigupta9125
3fc95b7cf41b50af275afa63af412d0b907058d6
2,824
cpp
C++
Random/C++/Analyzer.cpp
akimikimikimikimikimikimika/shellCommands
f6970f3827ac7491db9b168c8f7929bfb1440940
[ "MIT" ]
null
null
null
Random/C++/Analyzer.cpp
akimikimikimikimikimikimika/shellCommands
f6970f3827ac7491db9b168c8f7929bfb1440940
[ "MIT" ]
null
null
null
Random/C++/Analyzer.cpp
akimikimikimikimikimikimika/shellCommands
f6970f3827ac7491db9b168c8f7929bfb1440940
[ "MIT" ]
null
null
null
#include <string> #include "Structure.hpp" using namespace std; void help(); void version(); RandType detectRT(string); enum Responder { None, Mode, Seed, Discard, Length, RangeFirst, RangeSecond }; bool argAnalyze(int argc, char *argv[], Customize &c) { if (argc>1) { string firstArg = string(argv[1]); if (firstArg=="help"||firstArg=="-help"||firstArg=="--help") { help(); return false; } if (firstArg=="version"||firstArg=="-version"||firstArg=="--version") { version(); return false; } } Responder r=None; string sFirst=""; string sSecond=""; for (int n=1;n<argc;n++) { string param=string(argv[n]); if (param=="-m"||param=="-mode") r=Mode; else if (param=="-s"||param=="-seed") r=Seed; else if (param=="-d"||param=="-discard") r=Discard; else if (param=="-i"||param=="-int") { c.valueType=Int; r=RangeFirst; } else if (param=="-r"||param=="-real") { c.valueType=Real; r=RangeFirst; } else if (param=="-l"||param=="-length") r=Length; else if (param=="-parallel") c.concurrent=true; else if (param=="-hidden"||param=="-invisible") c.visible=false; else if (r==Mode) { c.mode=detectRT(param); r=None; } else if (r==Seed) { if (param=="none") c.seedType=Nothing; else if (param=="time") c.seedType=Time; else if (param=="device") c.seedType=DevSeed; else { c.seedType=Custom; c.seed=stoull(param); } r=None; } else if (r==Discard) { c.discard=stoull(param); r=None; } else if (r==Length) { c.length=stoull(param); r=None; } else if (r==RangeFirst) { sFirst=param; c.defaultRange=false; r=RangeSecond; } else if (r==RangeSecond) { sSecond=param; r=None; } } if (sFirst!="") { if (c.valueType==Int) { long long int iFirst = stoll(sFirst); long long int iSecond = 0; if (sSecond!="") iSecond = stoll(sSecond); if (iFirst>iSecond) { c.max=(long double)iFirst; c.min=(long double)iSecond; } else { c.max=(long double)iSecond; c.min=(long double)iFirst; } } if (c.valueType==Real) { long double rFirst = stold(sFirst); long double rSecond = 0; if (sSecond!="") rSecond = stold(sSecond); if (rFirst>rSecond) { c.max=rFirst; c.min=rSecond; } else { c.max=rSecond; c.min=rFirst; } } } return true; } RandType detectRT(string s) { if (s=="device") return Device; else if (s=="rand") return Rand; else if (s=="default") return DRE; else if (s=="minstd0") return Minstd0; else if (s=="minstd") return Minstd; else if (s=="knuth") return Knuth; else if (s=="ranlux3") return Ranlux3; else if (s=="ranlux4") return Ranlux4; else if (s=="mt") return MT; else if (s=="mt64") return MT64; else return Device; }
21.393939
73
0.588173
akimikimikimikimikimikimika
3fca0a4e63acb2c0a30a939cc978b933f8ea5e7f
104
cpp
C++
src/utils/utils.cpp
j9263178/Cytnx
cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b
[ "Apache-2.0" ]
11
2020-04-14T15:45:42.000Z
2022-03-31T14:37:03.000Z
src/utils/utils.cpp
j9263178/Cytnx
cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b
[ "Apache-2.0" ]
38
2019-08-02T15:15:51.000Z
2022-03-04T19:07:02.000Z
src/utils/utils.cpp
j9263178/Cytnx
cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b
[ "Apache-2.0" ]
7
2019-07-17T07:50:55.000Z
2021-07-03T06:44:52.000Z
#include "utils/utils.hpp" #include <vector> #include <iostream> #include <string> namespace cytnx{ }
11.555556
26
0.721154
j9263178
3fca46273de867ec233fb3c2f45317f38636cd7f
8,192
cpp
C++
source/io/IO.cpp
will-iam/Variant
5b6732134fd51cf6c2b90b51b7976be0693ba28d
[ "MIT" ]
8
2017-05-04T07:50:02.000Z
2019-05-17T02:27:20.000Z
source/io/IO.cpp
will-iam/Variant
5b6732134fd51cf6c2b90b51b7976be0693ba28d
[ "MIT" ]
null
null
null
source/io/IO.cpp
will-iam/Variant
5b6732134fd51cf6c2b90b51b7976be0693ba28d
[ "MIT" ]
null
null
null
#include "IO.hpp" #include "exception/exception.hpp" #include "number/number.hpp" #include <fstream> #include <iomanip> #include <limits> int IO::loadSDDInfo(std::string directory, Domain& domain) { #ifndef SEQUENTIAL int SDDid; MPI_Comm_rank(MPI_COMM_WORLD, &SDDid); #else int SDDid = 0; #endif std::ostringstream oss; oss << SDDid; std::ifstream ifs(directory + "/sdd" + oss.str() + "/sdd.dat", std::ios::in); std::string tmpStr; std::getline(ifs, tmpStr, ' '); unsigned int BL_X = std::stoi(tmpStr); std::getline(ifs, tmpStr); unsigned int BL_Y = std::stoi(tmpStr); std::getline(ifs, tmpStr, ' '); unsigned int Nx = std::stoi(tmpStr); std::getline(ifs, tmpStr); unsigned int Ny = std::stoi(tmpStr); domain.setSDDInfo(BL_X, BL_Y, Nx, Ny); return 0; } int IO::loadDomainInfo(std::string directory, Domain& domain) { // Read exec options std::ifstream ifs(directory + "/domain.info", std::ios::in); if (!ifs) std::cerr << "Failed to load domain info" << std::endl; std::string tmpStr; // First infos std::getline(ifs, tmpStr, ' '); real lx; stor(tmpStr, lx); std::getline(ifs, tmpStr, ' '); real ly; stor(tmpStr, ly); std::getline(ifs, tmpStr, ' '); unsigned int Nx = std::stoi(tmpStr); std::getline(ifs, tmpStr, ' '); unsigned int Ny = std::stoi(tmpStr); std::getline(ifs, tmpStr, ' '); unsigned int tmpInt = std::stoi(tmpStr); std::getline(ifs, tmpStr, ' '); tmpInt = std::stoi(tmpStr); std::getline(ifs, tmpStr, ' '); unsigned int BClayer = std::stoi(tmpStr); std::cout << "BClayer" << BClayer << std::endl; domain.initRect(lx, ly, Nx, Ny); ifs.close(); return BClayer; } int IO::loadSchemeInfo(std::string directory, Engine& engine) { std::ifstream ifs(directory + "/scheme_info.dat", std::ios::in); std::string tmpStr; std::getline(ifs, tmpStr, ' '); real T; stor(tmpStr, T); std::getline(ifs, tmpStr, ' '); real CFL; stor(tmpStr, CFL); std::getline(ifs, tmpStr); real gamma; stor(tmpStr, gamma); ifs.close(); engine.setOptions(T, CFL, gamma); return 0; } int IO::loadExecOptions(std::string directory, Domain& domain) { std::ifstream ifs(directory + "/exec_options.dat", std::ios::in); if (!ifs) { std::cerr << "Could not load execution options" << std::endl; return 1; } std::string tmpStr; std::getline(ifs, tmpStr, ' '); unsigned int nSDD = std::stoi(tmpStr); std::getline(ifs, tmpStr, ' '); unsigned int nSDD_X = std::stoi(tmpStr); std::getline(ifs, tmpStr, ' '); unsigned int nSDD_Y = std::stoi(tmpStr); std::getline(ifs, tmpStr, ' '); unsigned int nSDS = std::stoi(tmpStr); std::getline(ifs, tmpStr, ' '); std::string SDSgeom = tmpStr; std::getline(ifs, tmpStr, ' '); unsigned int nThreads = std::stoi(tmpStr); std::getline(ifs, tmpStr, ' '); unsigned int nCommonSDS = std::stoi(tmpStr); ifs.close(); domain.setOptions(nSDD, nSDD_X, nSDD_Y, nSDS, SDSgeom, nThreads, nCommonSDS); return 0; } int IO::loadQuantity(std::string directory, std::string quantityName, Domain& domain) { SDDistributed& sdd = domain.getSDD(); domain.addQuantity(quantityName); std::ostringstream oss; oss << sdd.getId(); std::ifstream ifs(directory + "/sdd" + oss.str() + "/" + quantityName + ".dat", std::ios::in); // If the file does not exist, SDD quantity will be initialized to 0. if (!ifs.is_open()) return 0; std::string tmpStr; for (unsigned int i = 0; i < sdd.getSizeX(); ++i) { for (unsigned int j = 0; j < sdd.getSizeY(); ++j) { std::getline(ifs, tmpStr, ' '); int coordX = std::stoi(tmpStr); std::getline(ifs, tmpStr, ' '); int coordY = std::stoi(tmpStr); std::getline(ifs, tmpStr); real value; stor(tmpStr, value); sdd.setValue(quantityName, coordX, coordY, value); } } ifs.close(); return 0; } int IO::loadBoundaryConditions(std::string directory, Domain& domain) { SDDistributed& sdd = domain.getSDD(); std::ostringstream oss; oss << sdd.getId(); std::ifstream ifs(directory + "/sdd" + oss.str() + "/bc.dat"); if (!ifs) std::cerr << "Failed to open boundary conditions file" << std::endl; std::string tmpStr; // Reading unique id <-> coords correspondence while (std::getline(ifs, tmpStr)) { std::istringstream iss(tmpStr); unsigned int uid; iss >> uid; int iCoord; iss >> iCoord; int jCoord; iss >> jCoord; char BCtype; iss >> BCtype; int qty_number; iss >> qty_number; std::map<std::string, real> qtyValue; if (qty_number > 0) { assert(BCtype == 'D' || BCtype == 'N' || BCtype == 'T'); for (int i = 0; i < qty_number; ++i) { std::string name; iss >> name; // Read thrue string for quad. std::string value_as_string; iss >> value_as_string; real value; stor(value_as_string, value); qtyValue[name] = value; } } domain.addBoundaryCoords(std::pair<int, int>(iCoord, jCoord), BCtype, qtyValue); } ifs.close(); return 0; } int IO::writeQuantity(std::string directory, std::string quantityName, const Domain& domain) { const SDDistributed& sdd = domain.getSDDconst(); std::ostringstream oss; oss << directory << "/sdd" << sdd.getId() << "/" << quantityName << ".dat"; std::ofstream ofs(oss.str(), std::ios::out); if (!ofs) { std::cerr << "Failed to open file: " << oss.str() << std::endl; return 1; } ofs << std::setprecision(Number::max_digits10); for (unsigned int i = 0; i < sdd.getSizeX(); ++i) { for (unsigned int j = 0; j < sdd.getSizeY(); ++j) { ofs << i << " " << j << " " << sdd.getValue(quantityName, i, j) << std::endl; } } ofs.close(); return 0; } int IO::writePerfResults(std::string directory, const std::map<std::string, int>& results) { std::ofstream ofs(directory + "/perfs.dat"); for (auto const& r: results) ofs << r.first << " " << r.second << std::endl; ofs.close(); return 0; } int IO::writeSDDPerfResults(std::string directory, const Domain& domain, const std::map<std::string, int>& results) { const SDDistributed& sdd = domain.getSDDconst(); std::ostringstream oss; oss << sdd.getId(); std::ofstream ofs(directory + "/sdd" + oss.str() + "/perfs.dat", std::ios::out); for (auto const& r: results) ofs << r.first << " " << r.second << std::endl; ofs.close(); return 0; } int IO::writeSDDTime(std::string directory, const Domain& domain, const std::string& timerName, const std::deque<unsigned long int>& timeDeque) { const SDDistributed& sdd = domain.getSDDconst(); std::ostringstream oss; oss << sdd.getId(); std::ofstream ofs(directory + "/sdd" + oss.str() + "/timer-" + timerName + ".dat", std::ios::out); for (auto const& r: timeDeque) ofs << r << std::endl; ofs.close(); return 0; } int IO::writeVariantInfo(std::string directory, const Domain& domain) { const SDDistributed& sdd = domain.getSDDconst(); std::ostringstream oss; oss << sdd.getId(); std::ofstream ofs(directory + "/sdd" + oss.str() + "/" + "variant_info.dat", std::ios::out); ofs << domain.getSizeX() << " " << domain.getSizeY() << std::endl; ofs << domain.getNumberSDD() << " " << domain.getNumberSDD_X() << " " << domain.getNumberSDD_Y() << std::endl; ofs << domain.getNumberNeighbourSDDs() << " " << domain.getNumberPhysicalCells() << " " << domain.getNumberOverlapCells() << " " << domain.getNumberBoundaryCells() << std::endl; ofs << domain.getNumberSDS() << " " << domain.getSDSGeometry() << " " << domain.getNumberThreads() << " " << domain.getNumberCommonSDS() << std::endl; ofs << "free_stack" << " " << "SoA" << std::endl; ofs.close(); return 0; }
31.267176
181
0.585083
will-iam
3fcaab27705037b4dd1f57f02e5cc14c4444cbdd
1,208
hpp
C++
src/Graphics/Transform.hpp
D3r3k23/DrkCraft
5eaae66f558ce84f18de702b4227ca8d2cfe534f
[ "MIT" ]
1
2022-02-10T04:41:57.000Z
2022-02-10T04:41:57.000Z
src/Graphics/Transform.hpp
D3r3k23/DrkCraft
5eaae66f558ce84f18de702b4227ca8d2cfe534f
[ "MIT" ]
null
null
null
src/Graphics/Transform.hpp
D3r3k23/DrkCraft
5eaae66f558ce84f18de702b4227ca8d2cfe534f
[ "MIT" ]
null
null
null
#ifndef DRK_GRAPHICS_TRANSFORM_HPP #define DRK_GRAPHICS_TRANSFORM_HPP #include "lib/glm/mat4.hpp" #include "lib/glm/vec3.hpp" namespace DrkCraft { class Transform { private: mat4 m_matrix; public: Transform(void); // Identity matrix Transform(const mat4& matrix); Transform(const Transform&) = default; Transform(Transform&&) = default; Transform& operator=(const Transform&) = default; Transform& operator=(Transform&&) = default; static Transform Identity(void); static Transform Translation(float x, float y, float z); static Transform Translation(const vec3& d); static Transform Rotation(float theta, const vec3& axis); static Transform Scale(float s); static Transform Normal(void); Transform& translate(float x, float y, float z); Transform& translate(const vec3& d); Transform& rotate(float theta, const vec3& axis); Transform& scale(float s); operator mat4(void) const; Transform operator*(const Transform& other) const; Transform& operator*=(const Transform& other); }; } #endif // DRK_GRAPHICS_TRANSFORM_HPP
28.093023
65
0.655629
D3r3k23
3fcbdb44c5373b7f0e88d78c419c4d59cd7bcc68
561
cpp
C++
Flick/src/Flick/Renderer/Renderer.cpp
firo1738/FLICK
a6ccb0f23c212d0f1b97f71520beb3a89be57f2d
[ "Apache-2.0" ]
null
null
null
Flick/src/Flick/Renderer/Renderer.cpp
firo1738/FLICK
a6ccb0f23c212d0f1b97f71520beb3a89be57f2d
[ "Apache-2.0" ]
null
null
null
Flick/src/Flick/Renderer/Renderer.cpp
firo1738/FLICK
a6ccb0f23c212d0f1b97f71520beb3a89be57f2d
[ "Apache-2.0" ]
null
null
null
#include "fipch.h" #include "Renderer.h" namespace Flick { Renderer::SceneData* Renderer::s_SceneData = new Renderer::SceneData; void Renderer::BeginScene(OrthographicCamera& camera) { s_SceneData->ViewProjectionMatrix = camera.GetViewProjectionMatrix(); } void Renderer::EndScene() { } void Renderer::Submit(const std::shared_ptr<Shader>& shader, const std::shared_ptr<VertexArray>& va) { shader->Bind(); shader->UploadUniformMat4("u_ViewProjection", s_SceneData->ViewProjectionMatrix); va->Bind(); RenderCommand::DrawIndexed(va); } }
21.576923
101
0.741533
firo1738
3fcc765bf885aa85a1b1310ee0c0c01f12e966d9
10,000
cpp
C++
sources/math/fraction.cpp
bce-toolkit/historical-bce-cpp-1.x-with-shell
11b5bd3782eeded9240ac5181c64baff293c667b
[ "BSD-2-Clause" ]
null
null
null
sources/math/fraction.cpp
bce-toolkit/historical-bce-cpp-1.x-with-shell
11b5bd3782eeded9240ac5181c64baff293c667b
[ "BSD-2-Clause" ]
null
null
null
sources/math/fraction.cpp
bce-toolkit/historical-bce-cpp-1.x-with-shell
11b5bd3782eeded9240ac5181c64baff293c667b
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (C) 2012-2013, The BCE Project authors. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. 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 AUTHOR 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 AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #include <string> #include <common/exception.hpp> #include <math/integer.hpp> #include <math/fraction.hpp> using namespace std; /* * fraction::fraction() * * Constructor. */ fraction::fraction() { numerator.setValue(0); denominator.setValue(1); } /* * fraction::fraction(const fraction &src) * * Copy constructor. */ fraction::fraction(const fraction &src) { numerator = src.numerator; denominator = src.denominator; } /* * fraction::fraction(const integer &numer, const integer &denomin) * * Construct from type 'integer'. */ fraction::fraction(const integer &numer, const integer &denomin) { setValue(numer, denomin); } /* * fraction::fraction(const int &numer, const int &denomin) * * Construct from type 'int'. */ fraction::fraction(const int &numer, const int &denomin) { setValue(numer, denomin); } /* * fraction::~fraction() * * Destructor. */ fraction::~fraction() { /* Dummy destructor */ } /* * string fraction::toString() * * Convert the integer to type 'string'. */ string fraction::toString() { integer tmp; if ((numerator % denominator).isZero() == true) { return((numerator / denominator).toString()); } return(numerator.toString() + FRACTION_SEMICOLON + denominator.toString()); } /* * void fraction::simplify() * * Simplify the fraction and adjust the negative sign of its numerator and denominator. */ void fraction::simplify() { integer g; if (numerator.isZero() == true) { denominator = integer(1); return; } /* Change workspace */ g = gcd(numerator, denominator); numerator /= g; denominator /= g; if (denominator.isNegative() == true) { numerator.opposite(); denominator.absolute(); } } /* * integer fraction::getNumerator() * * Get the numerator part of the fraction. */ integer fraction::getNumerator() { return(numerator); } /* * integer fraction::getDenominator() * * Get the numerator part of the fraction. */ integer fraction::getDenominator() { return(denominator); } /* * void fraction::setValue(const fraction &src) * * Set the fraction value from another fraction. */ void fraction::setValue(const fraction &src) { numerator = src.numerator; denominator = src.denominator; } /* * void fraction::setValue(const integer &numer, const integer &denomin) * * Set the fraction value from type 'integer'. */ void fraction::setValue(const integer &numer, const integer &denomin) { numerator = numer; denominator = denomin; simplify(); } /* * void fraction::setValue(const int &numer, const int &denomin) * * Set the fraction value from type 'int'. */ void fraction::setValue(const int &numer, const int &denomin) { numerator.setValue(numer); denominator.setValue(denomin); simplify(); } /* * fraction fraction::plus(const fraction &na, const fraction &nb) * * Do plus operation `r = @na + @nb`. */ fraction fraction::plus(const fraction &na, const fraction &nb) { integer na_numer(na.numerator), na_denomin(na.denominator), nb_numer(nb.numerator), nb_denomin(nb.denominator); fraction r(na_numer * nb_denomin + na_denomin * nb_numer, na_denomin * nb_denomin); return(r); } /* * fraction fraction::minus(const fraction &na, const fraction &nb) * * Do plus operation `r = @na - @nb`. */ fraction fraction::minus(const fraction &na, const fraction &nb) { integer na_numer(na.numerator), na_denomin(na.denominator), nb_numer(nb.numerator), nb_denomin(nb.denominator); fraction r(na_numer * nb_denomin - na_denomin * nb_numer, na_denomin * nb_denomin); return(r); } /* * fraction fraction::multiply(const fraction &na, const fraction &nb) * * Do plus operation `r = @na * @nb`. */ fraction fraction::multiply(const fraction &na, const fraction &nb) { integer na_numer(na.numerator), na_denomin(na.denominator), nb_numer(nb.numerator), nb_denomin(nb.denominator); fraction r(na_numer * nb_numer, na_denomin * nb_denomin); return(r); } /* * fraction fraction::divide(const fraction &na, const fraction &nb) * * Do plus operation `r = @na / @nb`. */ fraction fraction::divide(const fraction &na, const fraction &nb) { integer na_numer(na.numerator), na_denomin(na.denominator), nb_numer(nb.numerator), nb_denomin(nb.denominator); if (const_cast<integer&>(nb.numerator).isZero() == true) { throw xsvException(ERROR_DIVIDE_ZERO, __FILE__, __LINE__, __FUNCTION__, "Divide by zero."); } return(fraction(na_numer * nb_denomin, na_denomin * nb_numer)); } /* * int fraction::compare(const fraction &na, const fraction &nb) * * Compare two fraction @na and @nb. * * Return values: * -1 => @na < @nb * 0 => @na = @nb * 1 => @na > @nb */ int fraction::compare(const fraction &na, const fraction &nb) { integer na_numer(na.numerator), na_denomin(na.denominator), nb_numer(nb.numerator), nb_denomin(nb.denominator), cmp; cmp = na_denomin * nb_numer - na_numer * nb_denomin; if (cmp.isZero() == true) { return(0); } if (cmp.isNegative() == true) { return(1); } else { return(-1); } } /* * bool fraction::isZero() * * Get whether it is zero. */ bool fraction::isZero() { if (numerator.isZero() == true) { return(true); } else { return(false); } } /* * bool fraction::isNegative() * * Get whether it is negative. */ bool fraction::isNegative() { if (numerator.isNegative() == true) { return(true); } else { return(false); } } /* * fraction& fraction::operator=(const fraction &src) * * Overload operator `[ptr: this] = @src` */ fraction& fraction::operator=(const fraction &src) { if (this == &src) { return(*this); } setValue(src); return(*this); } /* * fraction& fraction::operator==(const fraction &src) * * Overload operator `[ptr: this] == @src` */ bool fraction::operator==(const fraction &src) { if (compare(*this, src) == 0) { return(true); } else { return(false); } } /* * fraction& fraction::operator!=(const fraction &src) * * Overload operator `[ptr: this] != @src` */ bool fraction::operator!=(const fraction &src) { if (compare(*this, src) != 0) { return(true); } else { return(false); } } /* * bool fraction::operator<(const fraction &src) * * Overload operator `[ptr: this] < @src` */ bool fraction::operator<(const fraction &src) { if (compare(*this, src) == -1) { return(true); } else { return(false); } } /* * bool fraction::operator<=(const fraction &src) * * Overload operator `[ptr: this] <= @src` */ bool fraction::operator<=(const fraction &src) { if (compare(*this, src) <= 0) { return(true); } else { return(false); } } /* * bool fraction::operator>(const fraction &src) * * Overload operator `[ptr: this] > @src` */ bool fraction::operator>(const fraction &src) { if (compare(*this, src) == 1) { return(true); } else { return(false); } } /* * bool fraction::operator>=(const fraction &src) * * Overload operator `[ptr: this] >= @src` */ bool fraction::operator>=(const fraction &src) { if (compare(*this, src) >= 0) { return(true); } else { return(false); } } /* * fraction fraction::operator+(const fraction &rval) * * Overload operator `r = [ptr: this] + @rval` */ fraction fraction::operator+(const fraction &rval) { return(plus(*this, rval)); } /* * fraction fraction::operator-(const fraction &rval) * * Overload operator `r = [ptr: this] - @rval` */ fraction fraction::operator-(const fraction &rval) { return(minus(*this, rval)); } /* * fraction fraction::operator*(const fraction &rval) * * Overload operator `r = [ptr: this] * @rval` */ fraction fraction::operator*(const fraction &rval) { return(multiply(*this, rval)); } /* * fraction fraction::operator/(const fraction &rval) * * Overload operator `r = [ptr: this] / @rval` */ fraction fraction::operator/(const fraction &rval) { return(divide(*this, rval)); } /* * fraction& fraction::operator+=(const fraction &rval) * * Overload operator `[ptr: this] += @rval` */ fraction& fraction::operator+=(const fraction &rval) { *this = plus(*this, rval); return(*this); } /* * fraction& fraction::operator-=(const fraction &rval) * * Overload operator `[ptr: this] -= @rval` */ fraction& fraction::operator-=(const fraction &rval) { *this = minus(*this, rval); return(*this); } /* * fraction& fraction::operator*=(const fraction &rval) * * Overload operator `[ptr: this] *= @rval` */ fraction& fraction::operator*=(const fraction &rval) { *this = multiply(*this, rval); return(*this); } /* * fraction& fraction::operator/=(const fraction &rval) * * Overload operator `[ptr: this] /= @rval` */ fraction& fraction::operator/=(const fraction &rval) { *this = divide(*this, rval); return(*this); }
22.624434
117
0.6749
bce-toolkit
3fcdf9d5b15855cd8aa1e303670f5e1e67c00812
11,413
cpp
C++
oculusTest/Main.cpp
Ybalrid/ogre-oculus-opengl
7d23ecfcd24ff6babcd111718047a2b841ff24fb
[ "MIT" ]
2
2016-05-19T15:01:37.000Z
2017-04-18T14:42:27.000Z
oculusTest/Main.cpp
Ybalrid/ogre-oculus-opengl
7d23ecfcd24ff6babcd111718047a2b841ff24fb
[ "MIT" ]
1
2016-04-07T08:59:39.000Z
2016-04-07T08:59:39.000Z
oculusTest/Main.cpp
Ybalrid/ogre-oculus-opengl
7d23ecfcd24ff6babcd111718047a2b841ff24fb
[ "MIT" ]
null
null
null
#ifdef _WIN32 #define mainFunc() int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow) #define WIN32_LEAN_AND_MEAN #include <Windows.h> #include <glew.h> #else #define mainFunc() int main(void) #endif #include <iostream> #include <Ogre.h> #include <RenderSystems/GL/OgreGLTextureManager.h> #include <RenderSystems/GL/OgreGLRenderSystem.h> #include <RenderSystems/GL/OgreGLTexture.h> #include <OVR_CAPI.h> #include <OVR_CAPI_GL.h> #include <Extras/OVR_Math.h> enum eyes{left, right, nbEyes}; mainFunc() { //Create Root object Ogre::Root* root = new Ogre::Root("plugin.cfg", "ogre.cfg"); //opengl root->loadPlugin("RenderSystem_GL");//1 root->setRenderSystem(root->getRenderSystemByName("OpenGL Rendering Subsystem")); //Initialize Root root->initialise(false); //initialize oculus ovrSession session; ovrHmdDesc hmdDesc; ovrGraphicsLuid luid; ovr_Initialize(nullptr);//2 if(ovr_Create(&session, &luid) != ovrSuccess) exit(-1); hmdDesc = ovr_GetHmdDesc(session);//3 Ogre::NameValuePairList misc; misc["top"] = "0"; misc["left"] = "0"; Ogre::ResourceGroupManager::getSingleton().addResourceLocation("media", "FileSystem"); Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups(); //create a window Ogre::RenderWindow* window = root->createRenderWindow("Oculus Test", hmdDesc.Resolution.w/2, hmdDesc.Resolution.h/2, false, &misc); //Create scene manager and cameras Ogre::SceneManager* smgr = root->createSceneManager(Ogre::ST_GENERIC); auto sinbadEntity = smgr->createEntity("Sinbad.mesh"); auto Sinbad = smgr->getRootSceneNode()->createChildSceneNode(); Sinbad->attachObject(sinbadEntity); Sinbad->setPosition(Ogre::Vector3(0,0,-7)); smgr->setAmbientLight(Ogre::ColourValue(1,1,1)); ovr_RecenterTrackingOrigin(session); Ogre::Camera* cams[nbEyes]; cams[left] = smgr->createCamera("leftcam"); cams[right] = smgr->createCamera("rightcam"); float X(16), Y(9); float x(X/2), y(Y/2); Ogre::SceneManager* debugSmgr = root->createSceneManager(Ogre::ST_GENERIC); debugSmgr->setAmbientLight(Ogre::ColourValue::White); Ogre::Camera* debugCam = debugSmgr->createCamera("debugcam"); debugCam->setAutoAspectRatio(true); debugCam->setNearClipDistance(0.001f); Ogre::SceneNode* debugCamNode = debugSmgr->getRootSceneNode()->createChildSceneNode(); debugCamNode->attachObject(debugCam); debugCamNode->setPosition(Ogre::Vector3(0,0,10)); //debugCam->lookAt(Ogre::Vector3(0,0,0)); debugCam->setProjectionType(Ogre::ProjectionType::PT_ORTHOGRAPHIC); debugCam->setOrthoWindow(X,Y); Ogre::MaterialPtr DebugPlaneMaterial = Ogre::MaterialManager::getSingleton().create("debugMat", "General", true); Ogre::TextureUnitState* debugTexturePlane = DebugPlaneMaterial.getPointer()->getTechnique(0)->getPass(0)->createTextureUnitState(); Ogre::ManualObject* debugRenderPlane = debugSmgr->createManualObject("debugplane"); debugRenderPlane->begin("debugMat",Ogre::RenderOperation::OT_TRIANGLE_STRIP); debugRenderPlane->position(-x, y, 0); debugRenderPlane->textureCoord(0, 0); debugRenderPlane->position(-x, -y,0); debugRenderPlane->textureCoord(0, 1); debugRenderPlane->position(x, y, 0); debugRenderPlane->textureCoord(1, 0); debugRenderPlane->position(x, -y, 0); debugRenderPlane->textureCoord(1, 1); debugRenderPlane->end(); debugSmgr->getRootSceneNode()->createChildSceneNode()->attachObject(debugRenderPlane); Ogre::Viewport* debugViewport = window->addViewport(debugCam); debugViewport->setBackgroundColour(Ogre::ColourValue::Green); //init glew if(glewInit() != GLEW_OK) exit(-3); //get texture sizes ovrSizei texSizeL, texSizeR; texSizeL = ovr_GetFovTextureSize(session, ovrEye_Left, hmdDesc.DefaultEyeFov[left], 1); texSizeR = ovr_GetFovTextureSize(session, ovrEye_Right, hmdDesc.DefaultEyeFov[right], 1); //calculate render buffer size ovrSizei bufferSize; bufferSize.w = texSizeL.w + texSizeR.w; bufferSize.h = std::max(texSizeL.h, texSizeR.h); //Set texture parameters ovrTextureSwapChainDesc textureSwapChainDesc = {}; textureSwapChainDesc.Type = ovrTexture_2D; textureSwapChainDesc.ArraySize = 1; textureSwapChainDesc.Format = OVR_FORMAT_R8G8B8A8_UNORM_SRGB; textureSwapChainDesc.Width = bufferSize.w; textureSwapChainDesc.Height = bufferSize.h; textureSwapChainDesc.MipLevels = 1; textureSwapChainDesc.SampleCount = 1; textureSwapChainDesc.StaticImage = ovrFalse; //create render texture set ovrTextureSwapChain textureSwapChain; if(ovr_CreateTextureSwapChainGL(session, &textureSwapChainDesc, &textureSwapChain) != ovrSuccess) exit(-4); //create ogre render texture Ogre::GLTextureManager* textureManager = static_cast<Ogre::GLTextureManager*>(Ogre::GLTextureManager::getSingletonPtr()); Ogre::TexturePtr rtt_texture(textureManager->createManual("RttTex", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::TEX_TYPE_2D, bufferSize.w, bufferSize.h, 0, Ogre::PF_R8G8B8, Ogre::TU_RENDERTARGET)); Ogre::RenderTexture* rttEyes = rtt_texture->getBuffer(0, 0)->getRenderTarget(); Ogre::GLTexture* gltex = static_cast<Ogre::GLTexture*>(Ogre::GLTextureManager::getSingleton().getByName("RttTex").getPointer()); GLuint renderTextureID = gltex->getGLID(); //put camera viewport on the ogre render texture Ogre::Viewport* vpts[nbEyes]; vpts[left]=rttEyes->addViewport(cams[left], 0, 0, 0, 0.5f); vpts[right]=rttEyes->addViewport(cams[right], 1, 0.5f, 0, 0.5f); vpts[left]->setBackgroundColour(Ogre::ColourValue::White); vpts[right]->setBackgroundColour(Ogre::ColourValue::White); //Fill in MirrorTexture parameters ovrMirrorTextureDesc mirrorTextureDesc = {}; mirrorTextureDesc.Width = hmdDesc.Resolution.w; mirrorTextureDesc.Height = hmdDesc.Resolution.h; mirrorTextureDesc.Format = OVR_FORMAT_R8G8B8A8_UNORM_SRGB; ovrMirrorTexture mirrorTexture; if (ovr_CreateMirrorTextureGL(session, &mirrorTextureDesc, &mirrorTexture) != ovrSuccess) exit(-5); Ogre::TexturePtr mirror_texture(textureManager->createManual("MirrorTex", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::TEX_TYPE_2D, hmdDesc.Resolution.w, hmdDesc.Resolution.h, 0, Ogre::PF_R8G8B8, Ogre::TU_RENDERTARGET)); //get GLIDs GLuint ogreMirrorTextureID = static_cast<Ogre::GLTexture*>(Ogre::GLTextureManager::getSingleton().getByName("MirrorTex").getPointer())->getGLID(); GLuint oculusMirrorTextureID ; ovr_GetMirrorTextureBufferGL(session, mirrorTexture, &oculusMirrorTextureID); //Create EyeRenderDesc ovrEyeRenderDesc EyeRenderDesc[nbEyes]; EyeRenderDesc[left] = ovr_GetRenderDesc(session, ovrEye_Left, hmdDesc.DefaultEyeFov[left]); EyeRenderDesc[right] = ovr_GetRenderDesc(session, ovrEye_Right, hmdDesc.DefaultEyeFov[right]); //Get offsets ovrVector3f offset[nbEyes]; offset[left]=EyeRenderDesc[left].HmdToEyeOffset; offset[right]=EyeRenderDesc[right].HmdToEyeOffset; //Compositor layer ovrLayerEyeFov layer; //Create a layer with our single swaptexture on it. Each side is an eye. layer.Header.Type = ovrLayerType_EyeFov; layer.Header.Flags = 0; layer.ColorTexture[left] = textureSwapChain; layer.ColorTexture[right] = textureSwapChain; layer.Fov[left] = EyeRenderDesc[left].Fov; layer.Fov[right] = EyeRenderDesc[right].Fov; //Define the two viewports : ovrRecti leftRect, rightRect; leftRect.Size = bufferSize; //same size than the buffer leftRect.Size.w /= 2; //but half the width rightRect = leftRect; //The two rect are of the same size, but not at the same position ovrVector2i leftPos, rightPos; leftPos.x = 0; //The left one start at the bottom left corner leftPos.y = 0; rightPos = leftPos; rightPos.x = bufferSize.w/2; //But the right start at half the buffer width leftRect.Pos = leftPos; rightRect.Pos = rightPos; //Assign the viewports layer.Viewport[left] = leftRect; layer.Viewport[right] = rightRect; //Get projection matrices for(size_t eyeIndex(0); eyeIndex < ovrEye_Count; eyeIndex++) { //Get the projection matrix ovrMatrix4f proj = ovrMatrix4f_Projection(EyeRenderDesc[eyeIndex].Fov, static_cast<float>(0.01f), 4000, 0); //Convert it to Ogre matrix Ogre::Matrix4 OgreProj; for(size_t x(0); x < 4; x++) for(size_t y(0); y < 4; y++) OgreProj[x][y] = proj.M[x][y]; //Set the matrix cams[eyeIndex]->setCustomProjectionMatrix(true, OgreProj); } ovr_SetInt(session, "PerfHudMode", ovrPerfHud_CompRenderTiming); bool render(true); Ogre::Vector3 cameraPosition; Ogre::Quaternion cameraOrientation; ovrTrackingState ts; OVR::Posef pose; OVR::Quatf oculusOrient; OVR::Vector3f oculusPos; ovrLayerHeader* layers; double currentFrameDisplayTime; GLuint oculusRenderTextureGLID; int currentIndex; debugTexturePlane->setTextureName("MirrorTex"); debugTexturePlane->setTextureFiltering(Ogre::FO_POINT, Ogre::FO_POINT, Ogre::FO_NONE); debugViewport->setAutoUpdated(false); //rgm->initialiseAllResourceGroups(); // smgr->createEntity("Sinbad.mesh"); while(render) { Ogre::WindowEventUtilities::messagePump(); //advance textureset index ovr_GetTextureSwapChainCurrentIndex(session, textureSwapChain, &currentIndex); ovr_GetTextureSwapChainBufferGL(session, textureSwapChain, currentIndex, &oculusRenderTextureGLID); ovr_GetMirrorTextureBufferGL(session, mirrorTexture, &oculusMirrorTextureID); //Get the tracking state ts = ovr_GetTrackingState(session, currentFrameDisplayTime = ovr_GetPredictedDisplayTime(session, 0), ovrTrue); pose = ts.HeadPose.ThePose; ovr_CalcEyePoses(pose, offset, layer.RenderPose); oculusOrient = pose.Rotation; oculusPos = pose.Translation; for(size_t eye(0); eye < nbEyes; eye++) { cams[eye]->setOrientation(cameraOrientation * Ogre::Quaternion(oculusOrient.w, oculusOrient.x, oculusOrient.y, oculusOrient.z)); cams[eye]->setPosition (cameraPosition //the "gameplay" position of player's avatar head + (cams[eye]->getOrientation() * Ogre::Vector3( //realword camera orientation + the EyeRenderDesc[eye].HmdToEyeOffset.x, //view adjust vector. EyeRenderDesc[eye].HmdToEyeOffset.y, //The translations has to occur in function of the current head orientation. EyeRenderDesc[eye].HmdToEyeOffset.z) //That's why just multiply by the quaternion we just calculated. + cameraOrientation * Ogre::Vector3( //cameraOrientation is in fact the direction the avatar is facing expressed as an Ogre::Quaternion oculusPos.x, oculusPos.y, oculusPos.z))); } root->_fireFrameRenderingQueued(); vpts[left]->update(); vpts[right]->update(); //Copy the rendered image to the Oculus Swap Texture glCopyImageSubData(renderTextureID, GL_TEXTURE_2D, 0, 0, 0, 0, oculusRenderTextureGLID, GL_TEXTURE_2D, 0, 0, 0, 0, bufferSize.w,bufferSize.h, 1); layers = &layer.Header; ovr_CommitTextureSwapChain(session, textureSwapChain); ovr_SubmitFrame(session, 0, nullptr, &layers, 1); //Put the mirrored view available for OGRE glCopyImageSubData(oculusMirrorTextureID, GL_TEXTURE_2D, 0, 0, 0, 0, ogreMirrorTextureID, GL_TEXTURE_2D, 0, 0, 0, 0, hmdDesc.Resolution.w, hmdDesc.Resolution.h, 1); debugViewport->update(); window->update(); if(window->isClosed()) render = false; } ovr_SetInt(session, "PerfHudMode", ovrPerfHud_Off); ovr_Shutdown(); DebugPlaneMaterial.getPointer()->getTechnique(0)->getPass(0)->removeAllTextureUnitStates(); delete root; return EXIT_SUCCESS; }
36.935275
147
0.760011
Ybalrid
3fce7a5c2dc9865523e470a252b4f0e16aae49ef
6,813
cpp
C++
samples/transcode/transcode_runner.cpp
YJessicaGao/easydk
e62eecde91886c2679def95edafb48f97650edfa
[ "Apache-2.0" ]
null
null
null
samples/transcode/transcode_runner.cpp
YJessicaGao/easydk
e62eecde91886c2679def95edafb48f97650edfa
[ "Apache-2.0" ]
null
null
null
samples/transcode/transcode_runner.cpp
YJessicaGao/easydk
e62eecde91886c2679def95edafb48f97650edfa
[ "Apache-2.0" ]
null
null
null
/************************************************************************* * Copyright (C) [2021] by Cambricon, Inc. All rights reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. *************************************************************************/ #include "transcode_runner.h" #include <glog/logging.h> #include <algorithm> #include <chrono> #include <memory> #include <string> #include <thread> #include <utility> #include <iostream> #include "easycodec/easy_encode.h" #include "easycodec/vformat.h" #include "resize_yuv.h" #if CV_VERSION_EPOCH == 2 #define OPENCV_MAJOR_VERSION 2 #elif CV_VERSION_MAJOR >= 3 #define OPENCV_MAJOR_VERSION CV_VERSION_MAJOR #endif TranscodeRunner::TranscodeRunner(const VideoDecoder::DecoderType& decode_type, int device_id, const std::string& data_path, const std::string& output_file_name, int dst_width, int dst_height, double dst_frame_rate) : StreamRunner(data_path, decode_type, device_id), dst_frame_rate_(dst_frame_rate), dst_width_(dst_width), dst_height_(dst_height), output_file_name_(output_file_name) { // Create encoder edk::EasyEncode::Attr attr; attr.frame_geometry.w = dst_width_; attr.frame_geometry.h = dst_height_; attr.pixel_format = edk::PixelFmt::NV12; edk::CodecType codec_type = edk::CodecType::H264; std::string file_name = output_file_name; auto dot = file_name.find_last_of("."); if (dot == std::string::npos) { THROW_EXCEPTION(edk::Exception::INVALID_ARG, "[EasyDK Samples] [TranscodeRunner] Unknown file type: " + file_name); } std::transform(file_name.begin(), file_name.end(), file_name.begin(), ::tolower); if (file_name.find("hevc") != std::string::npos || file_name.find("h265") != std::string::npos) { codec_type = edk::CodecType::H265; } file_extension_ = file_name.substr(dot + 1); file_name_ = file_name.substr(0, dot); if (file_extension_ == "jpg" || file_extension_ == "jpeg") { codec_type = edk::CodecType::JPEG; jpeg_encode_ = true; } attr.codec_type = codec_type; edk::MluContext ctx; edk::CoreVersion core_ver = ctx.GetCoreVersion(); if (core_ver == edk::CoreVersion::MLU220 || core_ver == edk::CoreVersion::MLU270) { attr.attr_mlu200.rate_control.frame_rate_den = 10; attr.attr_mlu200.rate_control.frame_rate_num = std::ceil(static_cast<int>(dst_frame_rate_ * attr.attr_mlu200.rate_control.frame_rate_den)); } else if (core_ver == edk::CoreVersion::MLU370) { attr.attr_mlu300.frame_rate_den = 10; attr.attr_mlu300.frame_rate_num = std::ceil(static_cast<int>(dst_frame_rate_ * attr.attr_mlu300.frame_rate_den)); } else { THROW_EXCEPTION(edk::Exception::Code::INIT_FAILED, "[EasyDK Samples] [TranscodeRunner] Unsupported core version"); } attr.eos_callback = std::bind(&TranscodeRunner::EosCallback, this); attr.packet_callback = std::bind(&TranscodeRunner::PacketCallback, this, std::placeholders::_1); encode_ = edk::EasyEncode::New(attr); #ifdef HAVE_CNCV // Create resize yuv resize_.reset(new CncvResizeYuv(device_id)); if (!resize_->Init()) { THROW_EXCEPTION(edk::Exception::Code::INIT_FAILED, "[EasyDK Samples] [TranscodeRunner] Create CNCV resize yuv failed"); } #else // TODO(gaoyujia): cpu resize THROW_EXCEPTION(edk::Exception::Code::INIT_FAILED, "[EasyDK Samples] [TranscodeRunner] Create resize yuv failed, please install CNCV"); #endif Start(); } void TranscodeRunner::PacketCallback(const edk::CnPacket &packet) { if (packet.length == 0 || packet.data == 0) { LOG(WARNING) << "[EasyDK Samples] [TranscodeRunner] Received empty packet."; return; } if (packet.codec_type == edk::CodecType::JPEG) { output_file_name_ = file_name_ + std::to_string(frame_count_) + "." + file_extension_; file_.open(output_file_name_.c_str()); } else if (!file_.is_open()) { file_.open(output_file_name_.c_str()); } if (!file_.is_open()) { LOG(ERROR) << "[EasyDK Samples] [TranscodeRunner] Open output file failed"; } else { file_.write(reinterpret_cast<const char *>(packet.data), packet.length); if (packet.codec_type == edk::CodecType::JPEG) { file_.close(); } } if (packet.slice_type == edk::BitStreamSliceType::FRAME || packet.slice_type == edk::BitStreamSliceType::KEY_FRAME) { frame_count_++; std::cout << "[EasyDK Samples] [TranscodeRunner] encode frame count: " << frame_count_ << ", pts: " << packet.pts << std::endl; } else { std::cout << "[EasyDK Samples] [TranscodeRunner] encode head sps/pps" << std::endl; } encode_->ReleaseBuffer(packet.buf_id); } void TranscodeRunner::EosCallback() { LOG(INFO) << "[EasyDK Samples] [TranscodeRunner] EosCallback ... "; std::lock_guard<std::mutex>lg(encode_eos_mut_); encode_received_eos_ = true; encode_eos_cond_.notify_one(); } TranscodeRunner::~TranscodeRunner() { Stop(); LOG(INFO) << "[EasyDK Samples] [TranscodeRunner] FeedEos"; encode_->FeedEos(); std::unique_lock<std::mutex>lk(encode_eos_mut_); // wait 10s for receive eos. if (false == encode_eos_cond_.wait_for(lk, std::chrono::seconds(10), [this] { return encode_received_eos_.load(); })) { LOG(ERROR) << "[EasyDK Samples] [TranscodeRunner] Wait encoder EOS for 10s timeout"; } } void TranscodeRunner::Process(edk::CnFrame frame) { edk::CnFrame dst_frame; if (!encode_->RequestFrame(&dst_frame)) { THROW_EXCEPTION(edk::Exception::INTERNAL, "[EasyDK Samples] [TranscodeRunner] Request frame from encoder failed"); } #ifdef HAVE_CNCV if (!resize_->Process(frame, &dst_frame)) { THROW_EXCEPTION(edk::Exception::INTERNAL, "[EasyDK Samples] [TranscodeRunner] Resize yuv failed"); } #endif decoder_->ReleaseFrame(std::move(frame)); dst_frame.pts = frame.pts; if (!encode_->FeedData(dst_frame)) { THROW_EXCEPTION(edk::Exception::INTERNAL, "[EasyDK Samples] [TranscodeRunner] Feed data to encoder failed"); } }
40.796407
119
0.68883
YJessicaGao
3fd24f04ce01504b604379bb1e05634bcbd8b6ee
317
hpp
C++
ray.hpp
dodopod/raycast
31d1d508c7a6fd86f184fc43079bfaaf9d5a28c1
[ "MIT" ]
null
null
null
ray.hpp
dodopod/raycast
31d1d508c7a6fd86f184fc43079bfaaf9d5a28c1
[ "MIT" ]
null
null
null
ray.hpp
dodopod/raycast
31d1d508c7a6fd86f184fc43079bfaaf9d5a28c1
[ "MIT" ]
null
null
null
#ifndef RAY_HPP #define RAY_HPP #include "vec2.hpp" class Ray { public: Ray(const Vec2& p, const Vec2& v); Vec2 getOrigin() const; Vec2 getDirection() const; void setOrigin(const Vec2& p); void setDirection(const Vec2& v); private: Vec2 origin; Vec2 direction; }; #endif
13.782609
38
0.630915
dodopod
3fd574ae456d4cc73c61d16eba63c75b22d7091a
773
cc
C++
cc/function_object/function_pointer.cc
tyohei/examples
38652f48aca2b668bcc116ba401795d4be2f8f18
[ "MIT" ]
1
2020-09-14T17:29:02.000Z
2020-09-14T17:29:02.000Z
cc/function_object/function_pointer.cc
tyohei/examples
38652f48aca2b668bcc116ba401795d4be2f8f18
[ "MIT" ]
8
2020-09-05T10:19:39.000Z
2021-05-07T10:04:27.000Z
cc/function_object/function_pointer.cc
tyohei/examples
38652f48aca2b668bcc116ba401795d4be2f8f18
[ "MIT" ]
null
null
null
/******************************** * Function Pointer * * Function pointer is a pointer that points a function. It is useful when * you considering to use C/C++ together. The syntax is like below (only * show a function pointer that takes two arguments). * * ``` * returntype (*name)(argtype, argtype); * ``` * ********************************/ #include <iostream> int f(int a, int b) { return a * b; } int wrapper(int n, int(*func)(int, int)) { return func(n, n); } int main(int argc, char **argv) { int (*f_ptr)(int, int); f_ptr = &f; std::cout << (*f_ptr)(9, 9) << std::endl; std::cout << f_ptr(4, 4) << std::endl; std::cout << wrapper(9, f) << std::endl; std::cout << wrapper(10, f) << std::endl; return 0; }
19.325
77
0.52652
tyohei
3fd6f5e142bce690b9c5fe4c75f474aecdc42137
3,844
cpp
C++
test/src/tc/rd/gtest/src/stc/RDServerIntegrationTest.cpp
jonghenhan/iotivity
7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31
[ "Apache-2.0" ]
301
2015-01-20T16:11:32.000Z
2021-11-25T04:29:36.000Z
test/src/tc/rd/gtest/src/stc/RDServerIntegrationTest.cpp
jonghenhan/iotivity
7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31
[ "Apache-2.0" ]
13
2015-06-04T09:55:15.000Z
2020-09-23T00:38:07.000Z
test/src/tc/rd/gtest/src/stc/RDServerIntegrationTest.cpp
jonghenhan/iotivity
7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31
[ "Apache-2.0" ]
233
2015-01-26T03:41:59.000Z
2022-03-18T23:54:04.000Z
/****************************************************************** * * Copyright 2016 Samsung Electronics All Rights Reserved. * * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ******************************************************************/ #include "RDHelper.h" using namespace OC; using namespace boost; using namespace std; class RDServerIntegrationTest_stc: public ::testing::Test { protected: RDHelper* m_rdHelper; RDServerIntegrationTest_stc() { m_rdHelper = nullptr; } virtual void SetUp() { CommonTestUtil::runCommonTCSetUpPart(); m_rdHelper = RDHelper::getInstance(); } virtual void TearDown() { CommonTestUtil::runCommonTCTearDownPart(); free(m_rdHelper); } }; /** * @since 2016-02-23 * @see OCStackResult OCInit(const char *ipAddr, uint16_t port, OCMode mode) * @objective Test OCRDStart and OCRDStop function positively in a loop * @target OCStackResult OCRDStart(),OCStackResult OCRDStop() * @test_data none * @pre_condition Call OCInit (This function Initializes the OC Stack) * @procedure 1. Then call OCRDStart and check return result * 2. Then Call OCRDStop and check return result * 3. Repeat the scenario 1~3 RD_MAX_LOOP_COUNT_VLCC times * @post_condition none * @expected Initialization will succeed and return OC_STACK_OK */ #if defined(__LINUX__) || defined(__WINDOWS__) TEST_F(RDServerIntegrationTest_stc, StartStopRDServer_VLCC_P) { try { for(int i = 0; i < RD_MAX_LOOP_COUNT_VLCC; i++) { OCStackResult actualResult = m_rdHelper->rdCheckStartServerStatus(RD_START_SERVER_WITH_INIT); CommonUtil::waitInSecond(RD_SLEEPTIME_MIN); ASSERT_EQ(OC_STACK_OK,actualResult)<< "Actual result string : " << CommonUtil::s_OCStackResultString.at(actualResult); OCStackResult actualResultStop = m_rdHelper->rdStopServer(); CommonUtil::waitInSecond(RD_SLEEPTIME_MIN); ASSERT_EQ(OC_STACK_OK,actualResultStop)<< "Actual result string : " << CommonUtil::s_OCStackResultString.at(actualResultStop); } } catch (std::exception &ex) { FAIL() << "Exception occurred : " << ex.what(); } SUCCEED(); } #endif /** * @since 2015-08-26 * @see none * @objective Test OCRDStart function negatively without calling OCInit * @target OCStackResult OCRDStart(); * @test_data none * @pre_condition none * @procedure Call OCRDStart and check return result * @post_condition OCStop * @expected OC_STACK_INVALID_PARAM should return as we did not initialized */ #if defined(__LINUX__) || defined(__WINDOWS__) TEST_F(RDServerIntegrationTest_stc, StartRDServer_DSCC_N) { try { OCStackResult actualResult = m_rdHelper->rdCheckStartServerStatus(RD_START_SERVER_WITHOUT_INIT); CommonUtil::waitInSecond(RD_SLEEPTIME_MIN); ASSERT_EQ(OC_STACK_INVALID_PARAM,actualResult)<< "Actual result string : " << CommonUtil::s_OCStackResultString.at(actualResult); m_rdHelper->rdStopServer(); } catch (std::exception &ex) { FAIL() << "Exception occurred : " << ex.what(); } SUCCEED(); } #endif
32.302521
138
0.653486
jonghenhan
3fda9f7441dbe0444f5ffdf9c2f162f122510cef
474
cpp
C++
Homework_8/Shape_Yiming_Bi.cpp
markblitz/RU_503_HW
a9f3ea53a9d80d2a594768bc5796fed8cb3433b9
[ "MIT" ]
null
null
null
Homework_8/Shape_Yiming_Bi.cpp
markblitz/RU_503_HW
a9f3ea53a9d80d2a594768bc5796fed8cb3433b9
[ "MIT" ]
null
null
null
Homework_8/Shape_Yiming_Bi.cpp
markblitz/RU_503_HW
a9f3ea53a9d80d2a594768bc5796fed8cb3433b9
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; #include "Shape_Yiming_Bi.h" Shape::Shape() { Set_X(0); Set_Y(0); } Shape::~Shape() { // nothing I may do here... } void Shape::Set_X(double input_x) { center_x = input_x; } void Shape::Set_Y(double input_y) { center_y = input_y; } double Shape::Get_X() const { return center_x; } double Shape::Get_Y() const { return center_y; } void Shape::Print_Center() const { cout << "(" << Get_X() << "," << Get_Y() << ")"; }
11.285714
49
0.628692
markblitz
3fdbe4b7078cf0a64dd3d66b879007619a6c7f5f
3,220
cpp
C++
subject/Exam_2_singleton.cpp
IdiotXue/OfferCoding
38d2b1fc2ea3f1d0aff025cb8d038a8696cd567e
[ "MIT" ]
14
2017-12-29T08:18:14.000Z
2020-01-06T16:06:31.000Z
subject/Exam_2_singleton.cpp
IdiotXue/OfferCoding
38d2b1fc2ea3f1d0aff025cb8d038a8696cd567e
[ "MIT" ]
null
null
null
subject/Exam_2_singleton.cpp
IdiotXue/OfferCoding
38d2b1fc2ea3f1d0aff025cb8d038a8696cd567e
[ "MIT" ]
1
2019-12-20T06:07:50.000Z
2019-12-20T06:07:50.000Z
//main.cpp #include <iostream> #include "Singleton.h" int main(int argc, char *argv[]) { std::cout << "main work" << std::endl; auto single = Singleton::GetInstance(); std::cout << single << std::endl; } //Singleton.h #ifndef __SINGLETON_H__ #define __SINGLETON_H__ #include <iostream> #include <memory> //std::shared_ptr #include <mutex> //std::mutex,std::lock_guard #include <pthread.h> //pthread_once /** * 单例模式的注意点: * 1.私有构造函数,确保无法在外部创建实例 * 2.依托智能指针确保程序结束时执行析构函数 * 3.为了确保线程安全,有饿汉、懒汉(DCL有乱序问题)、pthread_once三种实现方法 */ /*--------------------- 1.饿汉式 eager initialize---------------------*/ /** * 饿汉式(线程安全),进入main之前创建Singleton实例; * 智能指针能在程序结束时调用析构函数,执行关闭文件描述 * 符等资源回收操作,普通指针不行。 */ //Singleton.h /* class Singleton { public: static const std::shared_ptr<Singleton> GetInstance() { return sm_pInstance; } ~Singleton() { std::cout << "destruct singleton object" << std::endl; } private: static std::shared_ptr<Singleton> sm_pInstance; Singleton() { std::cout << "construct singleton object" << std::endl; } Singleton(const Singleton &) = delete; Singleton &operator=(const Singleton &) = delete; }; */ //Singleton.cpp //调用std::make_shared<Singleton>()初始化会报错,还没找到原因 // std::shared_ptr<Singleton> Singleton::sm_pInstance(new Singleton()); /*--------------------- 2.懒汉式 ---------------------*/ /** * 懒汉式(线程安全):双重检测锁定(double checked locking) * 需要时创建实例,双重检测避免了创建后每次调用都要加锁,提 * 高了效率 */ //Singleton.h /* class Singleton { public: static const std::shared_ptr<Singleton> GetInstance() { if (!sm_pInstance) //避免创建了实例后,每次调用还要加锁 { std::lock_guard<std::mutex> guard(sm_mutex); if (!sm_pInstance) sm_pInstance.reset(new Singleton()); } return sm_pInstance; } ~Singleton() { std::cout << "destruct singleton object" << std::endl; } private: static std::shared_ptr<Singleton> sm_pInstance; static std::mutex sm_mutex; Singleton() { std::cout << "construct singleton object" << std::endl; } Singleton(const Singleton &) = delete; Singleton &operator=(const Singleton &) = delete; }; */ //Singleton.cpp // std::shared_ptr<Singleton> Singleton::sm_pInstance; // std::mutex Singleton::sm_mutex; /*--------------------- 3.pthread_once ---------------------*/ /** * pthread_once函数能够确保多线程状态下,函数init只执行一次 * 前提:1.所有线程都调用了pthread_once 2.sm_ponce是非本地变量,即全局或静态变量 * 因此这是线程安全的方法 */ //Singleton.h class Singleton { public: static const std::shared_ptr<Singleton> GetInstance() { pthread_once(&sm_ponce, &Singleton::init); //可以确保多线程时init函数只执行一次 return sm_pInstance; } ~Singleton() { std::cout << "destruct singleton object" << std::endl; } private: static std::shared_ptr<Singleton> sm_pInstance; static pthread_once_t sm_ponce; //必须是非本地变量 Singleton() { std::cout << "construct singleton object" << std::endl; } Singleton(const Singleton &) = delete; Singleton &operator=(const Singleton &) = delete; static void init() { sm_pInstance.reset(new Singleton()); } }; //Singleton.cpp // std::shared_ptr<Singleton> Singleton::sm_pInstance; // pthread_once_t Singleton::sm_ponce = PTHREAD_ONCE_INIT; //必须这样初始化 #endif
28.495575
82
0.646894
IdiotXue
3fdf84459ab8fd5bd00c450e6a32393b198e3d92
282
cpp
C++
contest/AtCoder/abc135/C.cpp
not522/Competitive-Programming
be4a7d25caf5acbb70783b12899474a56c34dedb
[ "Unlicense" ]
7
2018-04-14T14:55:51.000Z
2022-01-31T10:49:49.000Z
contest/AtCoder/abc135/C.cpp
not522/Competitive-Programming
be4a7d25caf5acbb70783b12899474a56c34dedb
[ "Unlicense" ]
5
2018-04-14T14:28:49.000Z
2019-05-11T02:22:10.000Z
contest/AtCoder/abc135/C.cpp
not522/Competitive-Programming
be4a7d25caf5acbb70783b12899474a56c34dedb
[ "Unlicense" ]
null
null
null
#include "vector.hpp" int main() { int n(in); Vector<int64_t> a(n + 1, in), b(n, in); int64_t res = 0; for (int i = 0; i < n; ++i) { auto r1 = min(a[i], b[i]); auto r2 = min(a[i + 1], b[i] - r1); res += r1 + r2; a[i + 1] -= r2; } cout << res << endl; }
18.8
41
0.443262
not522