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
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/mman.h> | |
#include <linux/perf_event.h> | |
#include <sys/syscall.h> | |
#include <poll.h> | |
#include <stdlib.h> | |
#include <string.h> |
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
type BoardBits = u64; | |
const BOARD_SIZE: i64 = 8; | |
const ROW_SIZE: i64 = 4; | |
const ROW_COUNT: i64 = 5; | |
const ORCHARD_COUNT: i64 = 10; | |
const TYPE_COUNT: usize = 4; | |
fn row_bits(row_positions: i64) -> Vec<i64> { | |
let mut ret = Vec::new(); |
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
diff --git a/src/AddressSpace.cc b/src/AddressSpace.cc | |
index 0362a46ff..88690b77b 100644 | |
--- a/src/AddressSpace.cc | |
+++ b/src/AddressSpace.cc | |
@@ -63,7 +63,7 @@ static bool thread_group_in_exec(Task* t) { | |
return false; | |
} | |
for (Task* tt : t->thread_group()->task_set()) { | |
- if (tt == t) { | |
+ if (tt == t || t->already_exited()) { |
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 <fcntl.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/mman.h> | |
#include <sys/user.h> | |
#include <unistd.h> | |
#define MAP_SIZE 20LL*1024*1024*1024*1024 /* 20TB */ | |
#define BUF_PAGE_COUNT 1024*1024 |
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 <cctype> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string> | |
#include <regex> | |
int main() { | |
std::string str("abcdefg"); | |
std::regex pattern(".+"); | |
bool result = std::regex_match(str, pattern); |
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
_ZN7mozilla6detail12ListenerImplINS_14AbstractThreadEZNS_20MediaEventSourceImplILNS_14ListenerPolicyE0EJNS_13TimedMetadataEEE15ConnectInternalIS2_NS_12MediaDecoderEMS8_FvOS5_EEENS_8EnableIfIXsr8TakeArgsIT1_EE5valueENS_18MediaEventListenerEE4TypeEPT_PT0_SD_EUlS9_E_JS5_EE17ApplyWithArgsImplISL_EENSC_IXsr8TakeArgsISH_EE5valueEvE4TypeERKSH_S9_ |
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
WebGL 2 context created. d436e62a-93d9-45f1-815e-b0db284b76a0:163:17 | |
AvailableTextureUnits: 32 d436e62a-93d9-45f1-815e-b0db284b76a0:163:17 | |
Initializing renderer... d436e62a-93d9-45f1-815e-b0db284b76a0:163:17 | |
Resize framebuffer to: 1665 837 estimated expected memory requirements: 148, memory requirements change by 148, unable to detect available memory d436e62a-93d9-45f1-815e-b0db284b76a0:163:17 | |
Use of the orientation sensor is deprecated. enscape.js:1:138976 | |
Texture loading - does not exist: Data/Textures/..\Textures\Horizons\town.png d436e62a-93d9-45f1-815e-b0db284b76a0:163:17 | |
TextureDataManager finished memory upload of updateTextureData: 2 MB in 2 ms. d436e62a-93d9-45f1-815e-b0db284b76a0:163:17 | |
"Data/LightProfiles/66c66e86_XAL-6D_5.ies"(0): Expected CDATA but got EOF. | |
d436e62a-93d9-45f1-815e-b0db284b76a0:163:17 | |
TextureDataManager finished memory upload of updateTextureData: 2 MB in 2 ms. d436e62a-93d9-45f1-815e-b0db284b76a0:163:17 |
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
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */ | |
#define _GNU_SOURCE | |
#include <assert.h> | |
#include <errno.h> | |
#include <linux/perf_event.h> | |
#include <sched.h> | |
#include <signal.h> | |
#include <stddef.h> |
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
#define _GNU_SOURCE 1 | |
#define _POSIX_SOURCE 2 | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <assert.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <sys/fcntl.h> | |
#include <sys/syscall.h> |
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 <unistd.h> | |
#include <sys/wait.h> | |
#include <assert.h> | |
int main(void) { | |
int fds_to_child[2]; | |
int fds_to_parent[2]; | |
int i; | |
char ch = 'x'; | |
int status; |
NewerOlder