Vulkan is a low-overhead, cross-platform 3D graphics and compute API.
Vulkan targets high-performance realtime 3D graphics applications such as games and interactive media across multiple platforms providing higher performance and lower CPU usage.
# LVDB - LLOOGG Memory DB | |
# Copyriht (C) 2009 Salvatore Sanfilippo <antirez@gmail.com> | |
# All Rights Reserved | |
# TODO | |
# - cron with cleanup of timedout clients, automatic dump | |
# - the dump should use array startsearch to write it line by line | |
# and may just use gets to read element by element and load the whole state. | |
# - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands. | |
# - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump! |
# Warning: this implementation doesn't check if writes or reads will happen | |
# out of input/output buffer range, so that will generate IndexError exception | |
def LZ4_decompress(source, osize): | |
isize = len(source) | |
src = bytearray(source) | |
dst = bytearray(osize) | |
si = 0 |
// Copyright (c) Microsoft Corporation. | |
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
#ifndef DOUBLE_FROM_CHARS_TEST_CASES_HPP | |
#define DOUBLE_FROM_CHARS_TEST_CASES_HPP | |
#include <charconv> | |
#include <stddef.h> | |
#include <system_error> | |
using namespace std; |
// From: https://github.com/BartMassey/printf-tests/blob/master/drivers/c/testcases.c | |
/* XXX This code generated automatically by gen-testcases.hs | |
from ../../printf-tests.txt . You probably do not want to | |
manually edit this file. */ | |
result |= test(1, "0.33", "%.*f", 2, 0.33333333); | |
result |= test(2, "foo", "%.3s", "foobar"); | |
result |= test(3, " 00004", "%10.5d", 4); | |
result |= test(416, "hi x\\n", "%*sx\\n", -3, "hi"); | |
result |= test(4, " 42", "% d", 42); |