Inline the important contents of twitter links

This commit is contained in:
tbodt
2024-10-19 20:21:17 -07:00
committed by GitHub
parent df68679a63
commit 75f77fe1a6
2 changed files with 11 additions and 2 deletions
+2 -1
View File
@@ -397,7 +397,8 @@ float80 f80_add(float80 a, float80 b) {
sign = 1;
}
// a bizarre special case https://web.archive.org/web/20200517222437/https://twitter.com/tblodt/status/1262145524620234752
// a bizarre special case. from https://twitter.com/tblodt/status/1262145524620234752:
// > why does 1 - 1 = -0 when the x86 rounding mode is set to "round down"? it's just 0 for any other rounding mode
if (signif == 0 && a_signif != 0 && f80_rounding_mode == round_down)
return (float80) {.sign = 1};
+9 -1
View File
@@ -144,7 +144,15 @@ struct tgroup {
struct rlimit_ limits[RLIMIT_NLIMITS_];
// https://twitter.com/tblodt/status/957706819236904960
// From https://twitter.com/tblodt/status/957706819236904960
// > there are two distinct ways for a p̶r̶o̶c̶e̶s̶s̶ thread group to exit:
// >
// > - each thread calls exit
// > wait will return the exit code for the group leader
// >
// > - any thread calls exit_group
// > the SIGNAL_GROUP_EXIT flag will be set and wait will return the status passed to exit_group
//
// TODO locking
bool doing_group_exit;
dword_t group_exit_code;