-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge develop to next/kelvin/410 (#721)
- Loading branch information
Showing
19 changed files
with
393 additions
and
29 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make") | ||
|
||
filegroup( | ||
name = "all", | ||
srcs = glob(["**"]), | ||
) | ||
|
||
configure_make( | ||
name = "libbacktrace", | ||
args = [ | ||
] + select({ | ||
"@platforms//os:macos": ["--jobs=`sysctl -n hw.logicalcpu`"], | ||
"//conditions:default": ["--jobs=`nproc`"], | ||
}), | ||
configure_options = [ | ||
] + select({ | ||
"@//:linux_aarch64": ["--host=aarch64-linux-musl"], | ||
"@//:linux_x86_64": ["--host=x86_64-linux-musl"], | ||
"//conditions:default": [], | ||
}), | ||
copts = ["-O3"], | ||
lib_source = ":all", | ||
out_static_libs = ["libbacktrace.a"], | ||
visibility = ["//visibility:public"], | ||
) |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make") | ||
|
||
filegroup( | ||
name = "all", | ||
srcs = glob(["**"]), | ||
) | ||
|
||
configure_make( | ||
name = "libunwind", | ||
args = select({ | ||
"@platforms//os:macos": ["--jobs=`sysctl -n hw.logicalcpu`"], | ||
"//conditions:default": ["--jobs=`nproc`"], | ||
}), | ||
configure_options = [ | ||
"--enable-debug-frame", | ||
] + select({ | ||
"@//:linux_aarch64": ["--host=aarch64-linux-musl"], | ||
"@//:linux_x86_64": ["--host=x86_64-linux-musl"], | ||
"//conditions:default": [], | ||
}), | ||
copts = ["-O3 -g"], | ||
lib_source = ":all", | ||
out_static_libs = ["libunwind.a"], | ||
visibility = ["//visibility:public"], | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ configure_make( | |
copts = [ | ||
"-Wall", | ||
"-g", | ||
"-O3", | ||
"-O2", | ||
], | ||
deps = [ | ||
"@aes_siv", | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/// @file | ||
|
||
#include "jets/q.h" | ||
#include "jets/w.h" | ||
|
||
#include "noun.h" | ||
|
||
u3_noun | ||
u3qc_aor(u3_noun a, | ||
u3_noun b) | ||
{ | ||
while ( 1 ) { | ||
if ( c3y == u3r_sing(a, b) ) return c3y; | ||
if ( c3n == u3ud(a) ) { | ||
if ( c3y == u3ud(b) ) return c3n; | ||
if ( c3y == u3r_sing(u3h(a), u3h(b)) ) { | ||
a = u3t(a); | ||
b = u3t(b); | ||
} | ||
else { | ||
a = u3h(a); | ||
b = u3h(b); | ||
} | ||
} | ||
else { | ||
if ( c3n == u3ud(b) ) return c3y; | ||
{ | ||
c3_w len_a_w = u3r_met(3, a); | ||
c3_w len_b_w = u3r_met(3, b);; | ||
c3_y *buf_a_y, *buf_b_y; | ||
c3_y cut_a_y, cut_b_y; | ||
if ( c3y == u3a_is_cat(a) ) { | ||
buf_a_y = (c3_y*)&a; | ||
} | ||
else { | ||
u3a_atom* a_u = u3a_to_ptr(a); | ||
buf_a_y = (c3_y*)(a_u->buf_w); | ||
} | ||
if ( c3y == u3a_is_cat(b) ) { | ||
buf_b_y = (c3_y*)&b; | ||
} | ||
else { | ||
u3a_atom* b_u = u3a_to_ptr(b); | ||
buf_b_y = (c3_y*)(b_u->buf_w); | ||
} | ||
c3_w len_min_w = c3_min(len_a_w, len_b_w); | ||
for (c3_w i_w = 0; i_w < len_min_w; i_w++) { | ||
cut_a_y = buf_a_y[i_w]; | ||
cut_b_y = buf_b_y[i_w]; | ||
if ( cut_a_y != cut_b_y ) return __(cut_a_y < cut_b_y); | ||
} | ||
return __(len_a_w < len_b_w); | ||
} | ||
} | ||
} | ||
} | ||
|
||
u3_noun | ||
u3wc_aor(u3_noun cor) | ||
{ | ||
u3_noun a, b; | ||
|
||
if ( c3n == u3r_mean(cor, u3x_sam_2, &a, u3x_sam_3, &b, 0) ) { | ||
return u3m_bail(c3__exit); | ||
} else { | ||
return u3qc_aor(a, b); | ||
} | ||
} | ||
|
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
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
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
Oops, something went wrong.