mirror of
https://github.com/ish-app/ish.git
synced 2026-05-28 21:10:35 +00:00
Inline the important contents of twitter links
This commit is contained in:
+2
-1
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user