Skip to content

Instantly share code, notes, and snippets.

Eric EricWF

Block or report user

Report or block EricWF

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View after.out
32000 : __front_spare() == 384 : __back_spare() == 383 : __capacity() == 32767 : bytes allocated == 32840
31000 : __front_spare() == 884 : __back_spare() == 883 : __capacity() == 32767 : bytes allocated == 32840
30000 : __front_spare() == 1384 : __back_spare() == 1383 : __capacity() == 32767 : bytes allocated == 32840
29000 : __front_spare() == 1884 : __back_spare() == 1883 : __capacity() == 32767 : bytes allocated == 32840
28000 : __front_spare() == 2384 : __back_spare() == 2383 : __capacity() == 32767 : bytes allocated == 32840
27000 : __front_spare() == 2884 : __back_spare() == 2883 : __capacity() == 32767 : bytes allocated == 32840
26000 : __front_spare() == 3384 : __back_spare() == 3383 : __capacity() == 32767 : bytes allocated == 32840
25000 : __front_spare() == 3884 : __back_spare() == 3883 : __capacity() == 32767 : bytes allocated == 32840
24000 : __front_spare() == 288 : __back_spare() == 287 : __capacity() == 24575 : bytes allocated == 24648
23000 : __front_spare() == 788 : __back_spare() == 787 : _
View gist:83b352471c999655859f75f60c9061a8
Passing Tests (481):
libc++ :: std/algorithms/alg.c.library/tested_elsewhere.pass.cpp
libc++ :: std/atomics/atomics.fences/atomic_signal_fence.pass.cpp
libc++ :: std/atomics/atomics.fences/atomic_thread_fence.pass.cpp
libc++ :: std/atomics/atomics.flag/atomic_flag_clear.pass.cpp
libc++ :: std/atomics/atomics.flag/atomic_flag_clear_explicit.pass.cpp
libc++ :: std/atomics/atomics.flag/atomic_flag_test_and_set.pass.cpp
libc++ :: std/atomics/atomics.flag/atomic_flag_test_and_set_explicit.pass.cpp
libc++ :: std/atomics/atomics.flag/clear.pass.cpp
View test.cpp
// RUN: %clang_cc1 -triple x86_64-apple-darwin10.0.0 -fresumable-functions -emit-llvm -o - %s -fexceptions -std=c++17 | FileCheck %s
resumable int foo() {
return 42;
}
void bar() {
resumable auto r = foo();
bool b = r.ready();
int x = r.result();
@EricWF
EricWF / DefaultInitIssue.md
Last active Jul 10, 2018
Fixes for the specification of default-initialization and value-initialization.
View DefaultInitIssue.md

Unify the behavior of value-initialization and default-initialization.

Introduction

Currently default-initialization and value-initialization act bizzarely compared to each other. Specifically default-initialization is required to call trivial constructors when value-initialization is not.

For example:

struct T { int x; };
// default_init is initialized by a call to the trivial default ctor.
@EricWF
EricWF / constinit.md
Last active Aug 17, 2019
A Proposal to add [[constinit]] to C++
View constinit.md
Document Number: P1143r3
Date: 2019-06-18
Project: Programming Language C++, Evolution
Revises: P1143r2
Reply to: eric@efcs.ca

Adding the constinit keyword

View depr.adaptors.cxx11.fail.cpp
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <functional>
View ResumableFunctionNotes.md
  • Can constructors be resumable functions?
  • Can resumable variable declarations be static or thread local?
  • Can resumable variables declarations occur at global scope?
  • Must resumable variable declarations be declared with an auto specifier?
  • Currently, resumable functions must be defined by the end of the TU. I think this may need to be weakened to before they're used.
  • Static functions should also be allowed to be implicitly resumable, like inline functions.
View aeou
Insbruke austria
"land of castles"
Vorarlberg
- Go in july
View benchmark.cpp
#include "benchmark/benchmark.h"
#include "GenerateInput.hpp"
#include "test_iterators.h"
#include <ciso646>
#ifdef _LIBCPP_VERSION
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
#else
#include <filesystem>
namespace fs = std::filesystem;
View CMakeLists.txt
project(test-cmake CXX)
cmake_minimum_required(VERSION 3.9)
#
set(header_in ${CMAKE_CURRENT_BINARY_DIR}/header.in)
file(WRITE ${header_in}
"
#ifndef MY_HEADER
#define MY_HEADER
int my_x = 42;
You can’t perform that action at this time.