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
#pragma once | |
#include <cassert> | |
#include <concepts> | |
#include <cstring> | |
#include <functional> | |
#include <memory> | |
#include <new> | |
#include <type_traits> | |
#include <utility> |
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
#pragma once | |
#include <cassert> | |
#include <concepts> | |
#include <memory> | |
#include <type_traits> | |
#include <utility> | |
namespace breaded { |
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
#pragma once | |
#include <algorithm> | |
#include <ranges> | |
#include <functional> | |
#include <iterator> | |
#include <type_traits> | |
namespace BreadSort { | |
namespace detail { |
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
#include "matrix.hpp" | |
#include <immintrin.h> | |
#include <cstring> | |
#include <future> | |
#include <vector> | |
// Anonymous namespace for internal linkage | |
namespace { |
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
//!DESC FSR_EASU | |
//!HOOK MAINPRESUB | |
//!BIND HOOKED | |
//!WIDTH OUTPUT.w | |
//!HEIGHT OUTPUT.h | |
//!COMPUTE 8 8 | |
#extension GL_GOOGLE_include_directive : enable | |
#define SAMPLE_EASU 1 |
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
#include <algorithm> | |
#include <array> | |
#include <bit> | |
#include <chrono> | |
#include <cstdint> | |
#include <cstdlib> | |
#include <cstring> | |
#include <memory> | |
#include <random> | |
#include <string> |
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
//!DESC ScaleForce | |
//!HOOK MAINPRESUB | |
//!BIND HOOKED | |
//!WIDTH OUTPUT.w | |
//!HEIGHT OUTPUT.h | |
//? #version 450 core | |
#ifndef HOOKED_tex | |
// Copy MPV built-ins for IDE | |
#define tex1D texture |
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
#version 330 | |
in vec2 TexCoord; | |
out vec4 FragColor; | |
uniform sampler2D Texture; | |
vec3 dtt = vec3(65536.0,255.0,1.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
class Solution { | |
public: | |
[[gnu::target("avx2")]] int reverse(int x) const { | |
bool negative = x < 0; | |
if (negative) { | |
if (x == std::numeric_limits<int>::min()) | |
return 0; | |
x = -x; | |
} | |
if (x >= 10) { |
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
#include <algorithm> | |
#include <string> | |
class Solution { | |
public: | |
std::string longestPalindrome(const std::string& s) const { | |
std::size_t longest{0}; | |
std::string::const_iterator longest_begin, longest_end; | |
// The search will start at the center of a potential palindrome | |
// and work outward to find the length. |
NewerOlder