This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Implementation of atomicMax function for float | |
| __device__ static float atomicMax(float* address, float val) | |
| { | |
| int* address_as_i = (int*) address; | |
| int old = *address_as_i, assumed; | |
| do { | |
| assumed = old; | |
| old = ::atomicCAS(address_as_i, assumed, | |
| __float_as_int(::fmaxf(val, __int_as_float(assumed)))); | |
| } while (assumed != old); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import pyexr | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| std::vector<QVector3D> vertices; | |
| std::vector<std::array<uint32_t, 3>> indices; | |
| double t = (1.0 + std::sqrt(5.0)) / 2.0; | |
| vertices.emplace_back(-1, t, 0); | |
| vertices.emplace_back( 1, t, 0); | |
| vertices.emplace_back(-1, -t, 0); | |
| vertices.emplace_back( 1, -t, 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://worldoftanks.eu/community/accounts/api/%API_VER%/?source_token=%TOKEN%&search=%NAME%&offset=0&limit=1 | |
| http://worldoftanks.eu/community/accounts/%PLAYER_ID%/api/%API_VER%/?source_token=%TOKEN% | |
| http://worldoftanks.eu/community/clans/api/%API_VER%/?source_token=%TOKEN%&search=%CLAN_NAME%&offset=0&limit=1 | |
| http://worldoftanks.eu/community/clans/%CLAN_ID%/api/%API_VER%/?source_token=%TOKEN% | |
| http://worldoftanks.eu/personal/api/%API_VER%/?source_token=%TOKEN% | |
| login req: getlogin: https://worldoftanks.eu/auth/create/api/1.0/?source_token=%TOKEN% | |
| gettoken: https://worldoftanks.eu/utils/csrf/api/1.0/?source_token=%TOKEN% | |
| api versions: 1.0, 1.1, 1.2, 1.3 |