This file contains 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 <cstdlib> | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
struct AssignByRef { | |
explicit AssignByRef(std::string s) : s(std::move(s)) {} | |
AssignByRef(const AssignByRef& src) : s(src.s) {} | |
AssignByRef(AssignByRef&& src) : s(std::move(src.s)) {} | |
AssignByRef& operator=(const AssignByRef& src) { // copy assign |
This file contains 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
--- /Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf 2017-01-17 11:01:38.000000000 -0500 | |
+++ /usr/local/etc/avrdude.conf 2016-02-16 16:30:04.000000000 -0500 | |
@@ -828,118 +828,100 @@ | |
usbvendor = "www.fischl.de"; | |
usbproduct = "USBasp"; | |
# following variants are autodetected for id "usbasp" | |
# original usbasp from fischl.de | |
# see above "usbasp" |
This file contains 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
$ nm --extern-only --defined-only build/dynamic_gcc/third_party/IntelRDFPMathLib20U1/libintel_decimal128.so |grep -v mongodb_local |sort -k3 | |
00000000000ca1c0 T bid128_to_binary128_2part | |
00000000003de060 D bid_bid_bid_recip_scale32 | |
00000000003de000 D bid_bid_reciprocals10_32 | |
0000000000014c60 T bid_f128_acos | |
0000000000014cb0 T bid_f128_acosd | |
0000000000014230 T bid_f128_acosh | |
00000000000125e0 T bid_f128_add | |
0000000000014bb0 T bid_f128_asin | |
0000000000014c00 T bid_f128_asind |
This file contains 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 <cstdint> | |
#include <cstdio> | |
#include <cctype> | |
#include <string> | |
struct Utf8Decoder { | |
Utf8Decoder() : state(0), value(0) {} | |
/// \return |
This file contains 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
+/** | |
+ * Test uniformity of nextInt32(max) | |
+ */ | |
+TEST(RandomTest, NextInt32Uniformity) { | |
+ PseudoRandom prng(10); | |
+ /* Break the range into sections. */ | |
+ /* Check that all sections get roughly equal # of hits */ | |
+ constexpr int32_t kMax = (int32_t{3} << 29) - 1; | |
+ constexpr size_t kBuckets = 64; | |
+ constexpr size_t kNIter = 1'000'000; |
This file contains 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 <cstdint> | |
#include <iostream> | |
#include <type_traits> | |
template <typename> const std::string tName{"???"}; | |
template <> const std::string tName<char>{"char"}; | |
template <> const std::string tName<signed char>{"signed char"}; | |
template <> const std::string tName<unsigned char>{"unsigned char"}; | |
template <> const std::string tName<short>{"short"}; | |
template <> const std::string tName<unsigned short>{"unsigned short"}; |
This file contains 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
// AUTO-GENERATED FILE DO NOT EDIT | |
// See src/mongo/db/auth/generate_action_types.py | |
/** | |
* 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, |
This file contains 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
Running build/install/bin/hash_table_bm | |
Run on (40 X 3100 MHz CPU s) | |
CPU Caches: | |
L1 Data 32K (x20) | |
L1 Instruction 32K (x20) | |
L2 Unified 256K (x20) | |
L3 Unified 25600K (x2) | |
Load Average: 1.39, 1.37, 1.61 | |
------------------------------------------------------------------------------------------------------------------------------ | |
Benchmark Time CPU Iterations UserCounters... |
This file contains 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
#!/bin/bash | |
set -e | |
host="${1:-$(<~/.local/etc/evghost)}" | |
vpn_name="${2:-"mongo vpn"}" | |
cat >&2 <<EOF | |
host: [$host] | |
vpn_name: [$vpn_name] |
This file contains 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
[ | |
{ | |
"file": "src/mongo/db/auth/sasl_mechanism_registry.cpp", | |
"line": 192, | |
"data": " LOGV2_ERROR(47429001,", | |
"blame": "b'817a7f19511 (Mark Benvenuto 2020-04-20 14:34:56 -0400 192) LOGV2_ERROR(47429001,\\n'" | |
}, | |
{ | |
"file": "src/mongo/db/catalog/index_catalog_entry_impl.cpp", | |
"line": 356, |
OlderNewer