message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
add gpu_cat_features_storage option | @@ -1541,6 +1541,7 @@ class CatBoostClassifier(CatBoost):
eta=None,
max_bin=None,
scale_pos_weight=None,
+ gpu_cat_features_storage=None,
**kwargs
):
if objective is not None:
@@ -1866,6 +1867,7 @@ class CatBoostRegressor(CatBoost):
objective=None,
eta=None,
max_bin=None,
+ gpu_cat_features_storage=None,
**kwargs
):
if objective is not None:
|
workflow: Back off stale bot a bit
Change the stale bot to 180 days before initial flag. In addition,
avoid issues entirely that have the 'someday' label applied. | @@ -14,10 +14,11 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: 'This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.'
stale-issue-message: 'This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.'
- days-before-stale: 60
+ days-before-stale: 180
days-before-close: 14
stale-issue-label: 'stale'
stale-pr-label: 'stale'
+ exempt-issue-labels: 'someday'
# exempt-pr-labels: 'Blocked,In progress'
# exempt-issue-labels: 'In progress,Enhancement,Feature,Feature Request,RFC,Meta'
operations-per-run: 400
|
doc: add paper itself in bib | address = {New York, NY, USA},
keywords = {benchmark, configuration specification},
}
+
+@article{raab2016elektra,
+ doi = {10.21105/joss.00044},
+ url = {http://dx.doi.org/10.21105/joss.00044},
+ year = {2016},
+ month = {dec},
+ publisher = {The Open Journal},
+ volume = {1},
+ number = {8},
+ author = {Markus Raab},
+ title = {Elektra: universal framework to access configuration parameters},
+ journal = {The Journal of Open Source Software}
+}
|
Add documentation for xkb_capslock/xkb_numlock | @@ -33,6 +33,14 @@ For more information on these xkb configuration options, see
*input* <identifier> xkb\_variant <variant>
Sets the variant of the keyboard like _dvorak_ or _colemak_.
+*input* <identifier> xkb\_capslock enabled|disabled
+ Enables or disables CapsLock on sway startup, the default is disabled.
+ Only meaningful if sway controls the keyboard.
+
+*input* <identifier> xkb\_numlock enabled|disabled
+ Enables or disables NumLock on sway startup, the default is enabled.
+ Only meaningful if sway controls the keyboard.
+
## MAPPING CONFIGURATION
*input* <identifier> map\_to\_output <identifier>
|
sched: fix visual studio Compiler Warning (level 4) C4706
D:\code\incubator-nuttx\sched\environ\env_dup.c(81):
warning C4706: assignment within conditional expression
[D:\code\nuttx\incubator-nuttx\vs20221\sched\sched.vcxproj]
Reference: | @@ -78,7 +78,7 @@ int env_dup(FAR struct task_group_s *group, FAR char * const *envcp)
/* Is there an environment ? */
- if (envcp || (envcp = ptcb->group->tg_envp))
+ if (envcp || (envcp = ptcb->group->tg_envp) != NULL)
{
/* Count the strings */
|
add option in picoquicdemo to enforce 1RTT connections | @@ -101,7 +101,7 @@ static const char* default_server_key_file = "certs/key.pem";
static const int default_server_port = 4443;
static const char* default_server_name = "::";
-static const char* ticket_store_filename = "demo_ticket_store.bin";
+static char* ticket_store_filename = "demo_ticket_store.bin";
static const char* bad_request_message = "<html><head><title>Bad Request</title></head><body>Bad request. Why don't you try \"GET /doc-456789.html\"?</body></html>";
@@ -1326,6 +1326,7 @@ void usage()
fprintf(stderr, " -p port server port (default: %d)\n", default_server_port);
fprintf(stderr, " -n sni sni (default: server name)\n");
fprintf(stderr, " -t file root trust file");
+ fprintf(stderr, " -R enforce 1RTT");
fprintf(stderr, " -1 Once\n");
fprintf(stderr, " -r Do Reset Request\n");
fprintf(stderr, " -s <64b 64b> Reset seed\n");
@@ -1411,7 +1412,7 @@ int main(int argc, char** argv)
/* Get the parameters */
int opt;
- while ((opt = getopt(argc, argv, "c:k:P:C:Q:G:p:v:14rhzi:s:l:m:n:t:q:")) != -1) {
+ while ((opt = getopt(argc, argv, "c:k:P:C:Q:G:p:v:14rhzRi:s:l:m:n:t:q:")) != -1) {
switch (opt) {
case 'c':
server_cert_file = optarg;
@@ -1504,6 +1505,9 @@ int main(int argc, char** argv)
case 'q':
qlog_filename = optarg;
break;
+ case 'R':
+ ticket_store_filename = NULL;
+ break;
case 'h':
usage();
break;
|
OpenCorePkg\Platform\OpenCore: apply fix for issue | @@ -517,7 +517,7 @@ OcLoadUefiSupport (
Status = gBS->AllocatePages (
AllocateAddress,
EfiReservedMemoryType,
- EFI_SIZE_TO_PAGES (Config->Uefi.ReservedMemory.Values[Index]->Size),
+ (UINTN) EFI_SIZE_TO_PAGES (Config->Uefi.ReservedMemory.Values[Index]->Size),
&ReservedAddress
);
}
|
Also remove icons and other resource files (Issue | @@ -617,6 +617,8 @@ _papplPrinterDelete(
{
int i; // Looping var
_pappl_resource_t *r; // Current resource
+ char prefix[1024]; // Prefix for printer resources
+ size_t prefixlen; // Length of prefix
// Let USB/raw printing threads know to exit
@@ -641,10 +643,13 @@ _papplPrinterDelete(
_papplPrinterUnregisterDNSSDNoLock(printer);
// Remove printer-specific resources...
+ snprintf(prefix, sizeof(prefix), "%s/", printer->uriname);
+ prefixlen = strlen(prefix);
+
pthread_rwlock_wrlock(&printer->system->rwlock);
for (r = (_pappl_resource_t *)cupsArrayFirst(printer->system->resources); r; r = (_pappl_resource_t *)cupsArrayNext(printer->system->resources))
{
- if (r->cbdata == printer)
+ if (r->cbdata == printer || !strncmp(r->path, prefix, prefixlen))
cupsArrayRemove(printer->system->resources, r);
}
pthread_rwlock_unlock(&printer->system->rwlock);
|
improve package.tools.gn | @@ -61,7 +61,9 @@ function generate(package, configs, opt)
table.insert(argv, _get_buildir(opt))
for name, value in pairs(_get_configs(package, configs, opt)) do
if type(value) == "string" then
- table.insert(args, name .. '=\"' .. value .. "\"")
+ table.insert(args, name .. "=\"" .. value .. "\"")
+ elseif type(value) == "table" then
+ table.insert(args, name .. "=[\"" .. table.concat(value, "\",\"") .. "\"]")
else
table.insert(args, name .. "=" .. tostring(value))
end
|
controller-vtep: monitor only needed SB tables | @@ -122,7 +122,38 @@ main(int argc, char *argv[])
/* Connect to OVN SB database. */
struct ovsdb_idl_loop ovnsb_idl_loop = OVSDB_IDL_LOOP_INITIALIZER(
- ovsdb_idl_create(ovnsb_remote, &sbrec_idl_class, true, true));
+ ovsdb_idl_create(ovnsb_remote, &sbrec_idl_class, false, true));
+
+ ovsdb_idl_add_table(ovnsb_idl_loop.idl, &sbrec_table_sb_global);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_sb_global_col_options);
+
+ ovsdb_idl_add_table(ovnsb_idl_loop.idl, &sbrec_table_chassis);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_chassis_col_encaps);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_chassis_col_name);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_chassis_col_other_config);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl,
+ &sbrec_chassis_col_vtep_logical_switches);
+
+ ovsdb_idl_add_table(ovnsb_idl_loop.idl, &sbrec_table_encap);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_encap_col_chassis_name);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_encap_col_ip);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_encap_col_options);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_encap_col_type);
+
+ ovsdb_idl_add_table(ovnsb_idl_loop.idl, &sbrec_table_datapath_binding);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl,
+ &sbrec_datapath_binding_col_tunnel_key);
+
+ ovsdb_idl_add_table(ovnsb_idl_loop.idl, &sbrec_table_port_binding);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_port_binding_col_chassis);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_port_binding_col_datapath);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl,
+ &sbrec_port_binding_col_logical_port);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_port_binding_col_mac);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_port_binding_col_options);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_port_binding_col_type);
+ ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_port_binding_col_up);
+
ovsdb_idl_get_initial_snapshot(ovnsb_idl_loop.idl);
char *ovn_version = ovn_get_internal_version();
|
define WEBP_USE_INTRINSICS w/gcc-4.9+
32-bit builds are neutral to slightly faster using ndk r15c on a
N5/S6/CM1 | #include "./dsp.h"
// Right now, some intrinsics functions seem slower, so we disable them
-// everywhere except aarch64 where the inline assembly is incompatible.
-#if defined(__aarch64__)
+// everywhere except newer gcc or aarch64 where the inline assembly is
+// incompatible.
+#if LOCAL_GCC_PREREQ(4,9) || defined(__aarch64__)
#define WEBP_USE_INTRINSICS // use intrinsics when possible
#endif
|
case endtime < starttime fix | @@ -27,13 +27,15 @@ def find_time(starttime, endtime, replay, settings):
starttime *= settings.timeframe
starttime += replay[0][Replays.TIMES]
- # starttime += replay_start
+ starttime = min(starttime, replay[-15][Replays.TIMES])
if endtime != -1:
endtime *= settings.timeframe
# endtime += replay_start
endtime += replay[0][Replays.TIMES]
+ endtime = max(endtime, starttime - 900)
+
startindex = None
if starttime == 0:
@@ -43,7 +45,6 @@ def find_time(starttime, endtime, replay, settings):
if endtime == -1:
endindex = len(replay) - 3
- starttime = min(starttime, replay[-15][Replays.TIMES])
for index, x in enumerate(replay[:-3]):
if x[3] >= starttime and startindex is None:
startindex = index
|
Add more details to comment about EC PARAMETERS parsing | @@ -116,7 +116,11 @@ int s2n_stuffer_private_key_from_pem(struct s2n_stuffer *pem, struct s2n_stuffer
s2n_stuffer_reread(pem);
s2n_stuffer_reread(asn1);
- /* Try EC private key, skipping EC PARAMETERS if it exists. For now, only support standard curves. */
+ /* By default, OpenSSL tools always generate both "EC PARAMETERS" and "EC PRIVATE
+ * KEY" PEM objects in the keyfile. Skip the first "EC PARAMETERS" object so that we're
+ * compatible with OpenSSL's default output, and since "EC PARAMETERS" is
+ * only needed for non-standard curves that aren't currently supported.
+ */
rc = s2n_stuffer_data_from_pem(pem, asn1, S2N_PEM_EC_PARAMETERS);
if (rc < 0) {
s2n_stuffer_reread(pem);
|
examples: ftpc: Fix a compile warning for IPv4 only configuration | @@ -380,7 +380,7 @@ int main(int argc, FAR char *argv[])
if (argc != 2)
{
-#if ADDR_FAMILY == CONFIG_NET_IPv6
+#if ADDR_FAMILY == AF_INET6
printf("Usage:\n");
printf(" %s xx:xx:xx:xx:xx:xx:xx:xx [pp]\n", argv[0]);
printf("Where\n");
|
Configurations/unix-Makefile.tmpl: fix inconsistencies with resource files
.res files weren't treated consistently. They weren't included at all
in the build of a shared library, and were named inconsistently; .res
sometimes, and .res.o otherwise. Now we standardise it to .res.o,
which is the recommended way with GNU tools. | @@ -110,7 +110,7 @@ GENERATED_MANDATORY={- join(" ", @{$unified_info{depends}->{""}} ) -}
GENERATED={- join(" ",
( grep { defined $unified_info{generate}->{$_} }
map { @{$unified_info{sources}->{$_}} }
- grep { /\.o$/ } keys %{$unified_info{sources}} ),
+ grep { /\.(?:o|res)$/ } keys %{$unified_info{sources}} ),
( grep { /\.h$/ } keys %{$unified_info{generate}} )) -}
INSTALL_LIBS={- join(" ", map { lib($_) } @{$unified_info{install}->{libraries}}) -}
@@ -1060,10 +1060,10 @@ EOF
my $linklibs = join("", map { my $f = basename($_);
(my $l = $f) =~ s/^lib//;
" -l$l" } @{$args{deps}});
- my @objs = map { (my $x = $_) =~ s|\.o$|$objext|; $x }
- grep { $_ =~ m|\.o$| }
+ my @objs = map { (my $x = $_) =~ s|\.o$||; "$x$objext" }
+ grep { $_ !~ m/\.(?:def|map)$/ }
@{$args{objs}};
- my @defs = grep { $_ =~ /\.(def|map)$/ } @{$args{objs}};
+ my @defs = grep { $_ =~ /\.(?:def|map)$/ } @{$args{objs}};
my @deps = compute_lib_depends(@{$args{deps}});
die "More than one exported symbol map" if scalar @defs > 1;
my $objs = join(" ", @objs);
@@ -1122,7 +1122,9 @@ EOF
my $linklibs = join("", map { my $f = basename($_);
(my $l = $f) =~ s/^lib//;
" -l$l" } @{$args{deps}});
- my @objs = map { (my $x = $_) =~ s|\.o$|$objext|; $x } @{$args{objs}};
+ my @objs = map { (my $x = $_) =~ s|\.o$||; "$x$objext" }
+ grep { $_ !~ m/\.(?:def|map)$/ }
+ @{$args{objs}};
my @deps = compute_lib_depends(@{$args{deps}});
my $objs = join(" ", @objs);
my $deps = join(" ", @deps);
@@ -1150,7 +1152,7 @@ EOF
my $bin = $args{bin};
my $bind = dirname($bin);
my $binn = basename($bin);
- my $objs = join(" ", map { (my $x = $_) =~ s|\.o$|$objext|; $x }
+ my $objs = join(" ", map { (my $x = $_) =~ s|\.o$||; "$x$objext" }
@{$args{objs}});
my $deps = join(" ",compute_lib_depends(@{$args{deps}}));
my @linkdirs = ();
|
sse2: add NEON implementation of mm_{min,max}_pd
Fixes | @@ -3594,6 +3594,8 @@ simde_mm_min_pd (simde__m128d a, simde__m128d b) {
#if defined(SIMDE_POWER_ALTIVEC_P8_NATIVE)
r_.altivec_f64 = vec_min(a_.altivec_f64, b_.altivec_f64);
+ #elif defined(SIMDE_ARM_NEON_A64V8_NATIVE)
+ r_.neon_f64 = vminq_f64(a_.neon_f64, b_.neon_f64);
#else
SIMDE_VECTORIZE
for (size_t i = 0 ; i < (sizeof(r_.f64) / sizeof(r_.f64[0])) ; i++) {
@@ -3621,8 +3623,13 @@ simde_mm_min_sd (simde__m128d a, simde__m128d b) {
a_ = simde__m128d_to_private(a),
b_ = simde__m128d_to_private(b);
+ #if defined(SIMDE_ARM_NEON_A64V8_NATIVE)
+ float64x2_t temp = vminq_f64(a_.neon_f64, b_.neon_f64);
+ r_.neon_f64 = vsetq_lane_f64(vgetq_lane(a_.neon_f64, 1), temp, 1);
+ #else
r_.f64[0] = (a_.f64[0] < b_.f64[0]) ? a_.f64[0] : b_.f64[0];
r_.f64[1] = a_.f64[1];
+ #endif
return simde__m128d_from_private(r_);
#endif
@@ -3702,6 +3709,8 @@ simde_mm_max_pd (simde__m128d a, simde__m128d b) {
#if defined(SIMDE_POWER_ALTIVEC_P7_NATIVE)
r_.altivec_f64 = vec_max(a_.altivec_f64, b_.altivec_f64);
+ #elif defined(SIMDE_ARM_NEON_A64V8_NATIVE)
+ r_.neon_f64 = vmaxq_f64(a_.neon_f64, b_.neon_f64);
#else
SIMDE_VECTORIZE
for (size_t i = 0 ; i < (sizeof(r_.f64) / sizeof(r_.f64[0])) ; i++) {
@@ -3729,8 +3738,13 @@ simde_mm_max_sd (simde__m128d a, simde__m128d b) {
a_ = simde__m128d_to_private(a),
b_ = simde__m128d_to_private(b);
+ #if defined(SIMDE_ARM_NEON_A64V8_NATIVE)
+ float64x2_t temp = vmaxq_f64(a_.neon_f64, b_.neon_f64);
+ r_.neon_f64 = vsetq_lane_f64(vgetq_lane(a_.neon_f64, 1), temp, 1);
+ #else
r_.f64[0] = (a_.f64[0] > b_.f64[0]) ? a_.f64[0] : b_.f64[0];
r_.f64[1] = a_.f64[1];
+ #endif
return simde__m128d_from_private(r_);
#endif
|
libvfs: vfs_fd: set errno to sensible value for more vfs_fd operations | @@ -113,6 +113,7 @@ int vfsfd_read(int fd, void *buf, size_t len)
case FDTAB_TYPE_STDERR:
case FDTAB_TYPE_AVAILABLE:
default:
+ errno = EBADF;
return -1;
}
@@ -122,10 +123,6 @@ int vfsfd_read(int fd, void *buf, size_t len)
int vfsfd_write(int fd, const void *buf, size_t len)
{
struct fdtab_entry *e = fdtab_get(fd);
- if (e->type == FDTAB_TYPE_AVAILABLE) {
- return -1;
- }
-
size_t retlen = 0;
switch(e->type) {
@@ -152,6 +149,7 @@ int vfsfd_write(int fd, const void *buf, size_t len)
case FDTAB_TYPE_STDIN:
case FDTAB_TYPE_AVAILABLE:
default:
+ errno = EBADF;
return -1;
}
@@ -163,6 +161,7 @@ int vfsfd_close(int fd)
errval_t err;
struct fdtab_entry *e = fdtab_get(fd);
if (e->type == FDTAB_TYPE_AVAILABLE) {
+ errno = EBADF;
return -1;
}
@@ -173,6 +172,7 @@ int vfsfd_close(int fd)
err = vfs_close((vfs_handle_t)e->handle);
if (err_is_fail(err)) {
DEBUG_ERR(err, "error in vfs_close");
+ errno = EINVAL;
return -1;
}
break;
@@ -184,6 +184,7 @@ int vfsfd_close(int fd)
break;
default:
+ errno = EINVAL;
return -1;
} // end switch
@@ -215,6 +216,7 @@ off_t vfsfd_lseek(int fd, off_t offset, int whence)
break;
default:
+ errno = EINVAL;
return -1;
}
@@ -238,6 +240,8 @@ off_t vfsfd_lseek(int fd, off_t offset, int whence)
break;
default:
+ // XXX
+ errno = EBADF;
return -1;
}
}
|
tools/oomkill: Use task_struct->tgid as PID
The OOM target PID should be task_struct->tgid. | @@ -37,12 +37,12 @@ BPF_PERF_OUTPUT(events);
void kprobe__oom_kill_process(struct pt_regs *ctx, struct oom_control *oc, const char *message)
{
- unsigned long totalpages;
struct task_struct *p = oc->chosen;
struct data_t data = {};
u32 pid = bpf_get_current_pid_tgid() >> 32;
+
data.fpid = pid;
- data.tpid = p->pid;
+ data.tpid = p->tgid;
data.pages = oc->totalpages;
bpf_get_current_comm(&data.fcomm, sizeof(data.fcomm));
bpf_probe_read_kernel(&data.tcomm, sizeof(data.tcomm), p->comm);
|
Enable UseColorThreadStack by default | @@ -278,11 +278,11 @@ VOID PhAddDefaultSettings(
PhpAddIntegerSetting(L"UseColorUnknown", L"1");
PhpAddIntegerSetting(L"ColorUnknown", L"8080ff"); // Light Red
- PhpAddIntegerSetting(L"UseColorSystemThreadStack", L"0");
+ PhpAddIntegerSetting(L"UseColorSystemThreadStack", L"1");
PhpAddIntegerSetting(L"ColorSystemThreadStack", L"ffccaa");
- PhpAddIntegerSetting(L"UseColorUserThreadStack", L"0");
+ PhpAddIntegerSetting(L"UseColorUserThreadStack", L"1");
PhpAddIntegerSetting(L"ColorUserThreadStack", L"aaffff");
- PhpAddIntegerSetting(L"UseColorInlineThreadStack", L"0");
+ PhpAddIntegerSetting(L"UseColorInlineThreadStack", L"1");
PhpAddIntegerSetting(L"ColorInlineThreadStack", L"00ffde");
PhpAddIntegerSetting(L"GraphShowText", L"1");
|
fixes a crashing issue in freedata
The freedata function used cached values for sizes of certain arrays found in the parser struct. However, now that the network is mutable, those values can become invalid. Relying instead on the actual array lengths prevents freeing unallocated memory, or ignoring cleanup on newly created elements. | @@ -396,7 +396,7 @@ void freedata(Project *pr)
// Free memory for node data
if (pr->network.Node != NULL)
{
- for (j = 1; j <= pr->parser.MaxNodes; j++)
+ for (j = 1; j <= pr->network.Nnodes; j++)
{
// Free memory used for demands and WQ source data
freedemands(&(pr->network.Node[j]));
@@ -409,7 +409,7 @@ void freedata(Project *pr)
// Free memory for link data
if (pr->network.Link != NULL)
{
- for (j = 1; j <= pr->parser.MaxLinks; j++)
+ for (j = 1; j <= pr->network.Nlinks; j++)
{
freelinkvertices(&pr->network.Link[j]);
free(pr->network.Link[j].Comment);
@@ -426,7 +426,7 @@ void freedata(Project *pr)
// Free memory for time patterns
if (pr->network.Pattern != NULL)
{
- for (j = 0; j <= pr->parser.MaxPats; j++)
+ for (j = 0; j <= pr->network.Npats; j++)
{
free(pr->network.Pattern[j].F);
free(pr->network.Pattern[j].Comment);
@@ -438,7 +438,7 @@ void freedata(Project *pr)
if (pr->network.Curve != NULL)
{
// There is no Curve[0]
- for (j = 1; j <= pr->parser.MaxCurves; j++)
+ for (j = 1; j <= pr->network.Ncurves; j++)
{
free(pr->network.Curve[j].X);
free(pr->network.Curve[j].Y);
|
Makefile.ide: Simplify cmd_json_list and std var format
BRANCH=none
TEST=./util/clangd_config.py bloonchipper
TEST=make -j16 all-ide-compile-cmds | # If env EXTERNAL_TRUNK_PATH is defined, we use this to build the
# absolute path to the ec directory. Otherwise, we just take the abspath of ".".
-ide_ec_path_ext = \
+ide-ec-path-ext = \
$(if $(EXTERNAL_TRUNK_PATH),$(EXTERNAL_TRUNK_PATH)/src/platform/ec)
-ide_ec_path_abs = $(abspath .)
-ide_ec_path = $(or $(ide_ec_path_ext),$(ide_ec_path_abs))
+ide-ec-path-abs = $(abspath .)
+ide-ec-path = $(or $(ide-ec-path-ext),$(ide-ec-path-abs))
# Clang doesn't support these GCC options.
ide-filters = -mno-sched-prolog -fconserve-stack
@@ -82,8 +82,7 @@ $(out)/util/compile_commands.json: $(ide-utils)
ide-comma = ,
ide-space = $() $()
ide-esc-quoted = $(patsubst %,\"%\",$(1))
-ide-comma-sep = $(subst $(ide-space),$(ide-comma)$(ide-space),$(ide-esc-quoted))
-cmd_json_list = $(ide-comma-sep)
+cmd_json_list = $(subst $(ide-space),$(ide-comma)$(ide-space),$(ide-esc-quoted))
# Replace any ".compile_cmd.json" with ".o" and filter out $(ide-filters) words.
# The replace is needed because we are invoking build commands from within our
@@ -108,7 +107,7 @@ cmd_to_compile_cmd_json = \
printf ' %s\n' \
$(call cmd_json_list,$(call cmd_rep_filter,$(3),$(4))) >>$@ ;\
printf ' ],\n' >>$@ ;\
- printf ' "directory": "$(ide_ec_path)",\n' >>$@ ;\
+ printf ' "directory": "$(ide-ec-path)",\n' >>$@ ;\
printf ' "file": "$(5)"\n' >>$@ ;\
printf '}\n' >>$@ ;
|
Update INS status message definition | @@ -147,19 +147,21 @@ definitions:
fields:
- 8-31:
desc: Reserved
- - 6-7:
- desc: INS Error
+ - 5-7:
+ desc: IMU Status
values:
- - 0: No error
- - 1: General error
- - 3-5:
+ - 0: IMU Ready
+ - 1: No raw IMU data
+ - 2: No raw IMU timestamp
+ - 3: Unrecommended raw IMU rate
+ - 3-4:
desc: Initialization Routine Indicator
values:
- 0: None
- - 1: Automatic calibration routine in progress
+ - 1: Initial startup
- 0-2:
- desc: INS status
+ desc: INS Status
values:
- 0: INS ready
- - 1: INS calibration routine in progress
+ - 1: INS initializing
- 2: INS error
|
Cleaning up ocall_buffer allocated in _setup_ecall_context | @@ -1274,18 +1274,16 @@ oe_result_t oe_terminate_enclave(oe_enclave_t* enclave)
* Track failures reported by the platform, but do not exit early */
result = oe_sgx_delete_enclave(enclave);
-#if defined(_WIN32)
-
- /* Release Windows events created during enclave creation */
for (size_t i = 0; i < enclave->num_bindings; i++)
{
oe_thread_binding_t* binding = &enclave->bindings[i];
+#if defined(_WIN32)
+ /* Release Windows events created during enclave creation */
CloseHandle(binding->event.handle);
+#endif
free(binding->ocall_buffer);
}
-#endif
-
/* Free the path name of the enclave image file */
free(enclave->path);
}
|
docs - correct a gpexpand status value | <entry colname="col2">text</entry>
<entry colname="col3"/>
<entry colname="col4">Status of expansion for this table. Valid values are:<p>NOT
- STARTED</p><p>IN PROGRESS</p>FINISHED<p>NO LONGER EXISTS</p></entry>
+ STARTED</p><p>IN PROGRESS</p><p>COMPLETED</p><p>NO LONGER EXISTS</p></entry>
</row>
<row>
<entry colname="col1">
|
Remove more casts. | @@ -42,7 +42,7 @@ void *janet_nanbox_to_pointer(Janet x) {
Janet janet_nanbox_from_pointer(void *p, uint64_t tagmask) {
Janet ret;
- ret.u64 = (int64_t)p;
+ ret.pointer = p;
#if defined (JANET_NANBOX_47) || defined (JANET_32)
#else
ret.u64 &= JANET_NANBOX_POINTERBITS;
@@ -53,7 +53,7 @@ Janet janet_nanbox_from_pointer(void *p, uint64_t tagmask) {
Janet janet_nanbox_from_cpointer(const void *p, uint64_t tagmask) {
Janet ret;
- ret.u64 = (int64_t)p;
+ ret.pointer = (void *)p;
#if defined (JANET_NANBOX_47) || defined (JANET_32)
#else
ret.u64 &= JANET_NANBOX_POINTERBITS;
|
linux/trace: remove incorrect check | @@ -120,7 +120,7 @@ void arch_bfdDemangle(pid_t pid, funcs_t* funcs, size_t funcCnt) {
}
for (size_t i = 0; i < funcCnt; i++) {
- if (funcs[i].func && strncmp(funcs[i].func, "_Z", 2) == 0) {
+ if (strncmp(funcs[i].func, "_Z", 2) == 0) {
char* new_name = bfd_demangle(bfdParams.bfdh, funcs[i].func, 0);
if (new_name) {
snprintf(funcs[i].func, sizeof(funcs[i].func), "%s", new_name);
|
sbgemm: spr: tuning for blocking params | @@ -1771,6 +1771,20 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#endif
#define USE_SGEMM_KERNEL_DIRECT 1
+#undef SBGEMM_DEFAULT_UNROLL_N
+#undef SBGEMM_DEFAULT_UNROLL_M
+#undef SBGEMM_DEFAULT_P
+#undef SBGEMM_DEFAULT_R
+#undef SBGEMM_DEFAULT_Q
+// FIXME: actually UNROLL_M = UNROLL_N = 16
+// If M and N is equal, OpenBLAS will reuse OCOPY as ICOPY.
+// But for AMX, they are not the same, set UNROLL_M = 32 to workaround
+#define SBGEMM_DEFAULT_UNROLL_N 16
+#define SBGEMM_DEFAULT_UNROLL_M 32
+#define SBGEMM_DEFAULT_P 192
+#define SBGEMM_DEFAULT_Q 1024
+#define SBGEMM_DEFAULT_R sbgemm_r
+
#ifdef ARCH_X86
#define SGEMM_DEFAULT_UNROLL_M 4
|
test testplugins patch | CFLAGS = $(TAU_MPI_COMPILE_INCLUDE) $(TAU_INCLUDE) $(TAU_DEFS) $(USER_OPT) $(TAU_INTERNAL_FLAGS) -fPIC
-LDFLAGS = $(TAU_MPI_LIB)
-+LDFLAGS = -L$(TAU_PREFIX_INSTALL_DIR)/lib $(TAU_MPI_LIB)
++LDFLAGS = -LFoo -L$(TAU_PREFIX_INSTALL_DIR)/lib $(TAU_MPI_LIB)
OBJS = libtau_plugin_function_registration_complete.so libtau_plugin_atomic_event_trigger.so libtau_plugin_atomic_event_registration_complete.so libtau_plugin_end_of_execution.so libtau_plugin_interrupt_trigger.so tau_plugin_function_registration_complete.o tau_plugin_atomic_event_trigger.o tau_plugin_atomic_event_registration_complete.o tau_plugin_end_of_execution.o tau_plugin_interrupt_trigger.o
|
Fix ret undefined error in nsh_telnetlogin when CONFIG_NSH_LOGIN_PLATFORM enable | @@ -176,9 +176,6 @@ int nsh_telnetlogin(FAR struct console_stdio_s *pstate)
{
char username[16];
char password[16];
-#ifdef CONFIG_NSH_LOGIN_PASSWD
- int ret;
-#endif
int i;
/* Present the NSH Telnet greeting */
@@ -219,13 +216,9 @@ int nsh_telnetlogin(FAR struct console_stdio_s *pstate)
/* Verify the username and password */
#if defined(CONFIG_NSH_LOGIN_PASSWD)
- ret = passwd_verify(username, password);
- if (PASSWORD_VERIFY_MATCH(ret))
-
+ if (PASSWORD_VERIFY_MATCH(passwd_verify(username, password)))
#elif defined(CONFIG_NSH_LOGIN_PLATFORM)
- ret = platform_user_verify(username, password);
- if (PASSWORD_VERIFY_MATCH(ret))
-
+ if (PASSWORD_VERIFY_MATCH(platform_user_verify(username, password)))
#elif defined(CONFIG_NSH_LOGIN_FIXED)
if (strcmp(password, CONFIG_NSH_LOGIN_PASSWORD) == 0 &&
strcmp(username, CONFIG_NSH_LOGIN_USERNAME) == 0)
|
[util/generic] Doxyfy. | @@ -121,7 +121,8 @@ class TIoSystemError: public TSystemError, public TIoException {
class TFileError: public TIoSystemError {
};
-/* TBadArgumentException should be thrown when an argument supplied to some function (or constructor)
+/**
+ * TBadArgumentException should be thrown when an argument supplied to some function (or constructor)
* is invalid or incorrect.
*
* \note
@@ -132,7 +133,8 @@ class TFileError: public TIoSystemError {
struct TBadArgumentException: public virtual yexception {
};
-/* TBadCastException should be thrown to indicate the failure of some type casting procedure
+/**
+ * TBadCastException should be thrown to indicate the failure of some type casting procedure
* (e.g. reading an integer parameter from string).
*/
struct TBadCastException: public virtual TBadArgumentException {
|
Update Client::Game::UI::Map | @@ -6,7 +6,7 @@ namespace FFXIVClientStructs.FFXIV.Client.Game.UI {
[StructLayout(LayoutKind.Explicit)]
public unsafe partial struct Map {
- [FieldOffset(0x78)] public QuestMarkerArray QuestMarkers;
+ [FieldOffset(0x80)] public QuestMarkerArray QuestMarkers;
[StructLayout(LayoutKind.Sequential, Size = 0x10E0)]
public struct QuestMarkerArray {
|
config: remove unused variable | @@ -327,7 +327,6 @@ void flb_config_exit(struct flb_config *config)
struct mk_list *tmp;
struct mk_list *head;
struct flb_cf *cf;
- struct flb_input_collector *collector;
if (config->log_file) {
flb_free(config->log_file);
|
MSR: Always add plugin itself to required plugins | @@ -21,10 +21,7 @@ function (add_s_test NAME FILE)
endfunction ()
function (add_plugin_shell_test PLUGIN)
- list (FIND REMOVED_PLUGINS ${PLUGIN} INDEX)
- if (${INDEX} EQUAL -1)
- add_s_test (${PLUGIN} "${CMAKE_SOURCE_DIR}/src/plugins/${PLUGIN}/README.md" ${ARGN})
- endif ()
+ add_s_test (${PLUGIN} "${CMAKE_SOURCE_DIR}/src/plugins/${PLUGIN}/README.md" ${ARGN} REQUIRED_PLUGINS ${PLUGIN})
endfunction ()
add_s_test (msr_syntax "${CMAKE_SOURCE_DIR}/tests/shell/shell_recorder/tutorial_wrapper/SyntaxCheck.md" REQUIRED_PLUGINS ini)
|
do not create output file inf no input file(s) selected | @@ -2321,6 +2321,14 @@ if(argc < 2)
return EXIT_SUCCESS;
}
+if(optind == argc)
+ {
+ printf("no input file(s) selected\n");
+ if(fh_pmkideapolhc != NULL) fclose(fh_pmkideapolhc);
+ if(fh_pmkideapoljtr != NULL) fclose(fh_pmkideapoljtr);
+ exit(EXIT_FAILURE);
+ }
+
if(pmkideapolhcoutname != NULL)
{
if((fh_pmkideapolhc = fopen(pmkideapolhcoutname, "a+")) == NULL)
|
bugfix about refreence counter in op_apost. | @@ -2115,7 +2115,7 @@ static inline void op_aref( mrbc_vm *vm, mrbc_value *regs EXT )
mrbc_decref( dst );
- if( src->tt == MRBC_TT_ARRAY ) {
+ if( mrbc_type(*src) == MRBC_TT_ARRAY ) {
// src is Array
*dst = mrbc_array_get(src, c);
mrbc_incref(dst);
@@ -2125,7 +2125,7 @@ static inline void op_aref( mrbc_vm *vm, mrbc_value *regs EXT )
mrbc_incref(src);
*dst = *src;
} else {
- dst->tt = MRBC_TT_NIL;
+ mrbc_set_nil( dst );
}
}
}
@@ -2140,6 +2140,9 @@ static inline void op_aset( mrbc_vm *vm, mrbc_value *regs EXT )
{
FETCH_BBB();
+ assert( mrbc_type(regs[b]) == MRBC_TT_ARRAY );
+
+ mrbc_incref( ®s[b] );
mrbc_array_set(®s[a], c, ®s[b]);
}
@@ -2154,7 +2157,7 @@ static inline void op_apost( mrbc_vm *vm, mrbc_value *regs EXT )
FETCH_BBB();
mrbc_value src = regs[a];
- if( src.tt != MRBC_TT_ARRAY ) {
+ if( mrbc_type(src) != MRBC_TT_ARRAY ) {
src = mrbc_array_new(vm, 1);
src.array->data[0] = regs[a];
src.array->n_stored = 1;
@@ -2162,7 +2165,7 @@ static inline void op_apost( mrbc_vm *vm, mrbc_value *regs EXT )
int pre = b;
int post = c;
- int len = src.array->n_stored;
+ int len = mrbc_array_size(&src);
if( len > pre + post ) {
int ary_size = len - pre - post;
@@ -2174,10 +2177,14 @@ static inline void op_apost( mrbc_vm *vm, mrbc_value *regs EXT )
mrbc_incref( ®s[a].array->data[i] );
}
regs[a].array->n_stored = ary_size;
+
} else {
+ assert(!"Not support this case in op_apost.");
// empty
regs[a] = mrbc_array_new(vm, 0);
}
+
+ mrbc_decref(&src);
}
|
Win32 dxgi cleaning up debugging | #endif
uint32_t get_device_id_dxgi(){
- printf("start get device id\n");
HMODULE libDXGI;
if ((libDXGI = ::GetModuleHandle(KIERO_TEXT("dxgi.dll"))) == NULL){
printf("dxgi not found\n");
@@ -34,7 +33,6 @@ uint32_t get_device_id_dxgi(){
int i;
for (i = 0; SUCCEEDED(dxgi_factory->EnumAdapters(i, &dxgi_adapter)); i++) {
dxgi_adapter->GetDesc(&AdapterDesc);
- printf("%ls\n", AdapterDesc.Description);
if (AdapterDesc.VendorId == 0x10de)
return AdapterDesc.VendorId;
if (AdapterDesc.VendorId == 0x1002)
|
ACPI: adding boot entry fact to the skb | @@ -179,6 +179,16 @@ int init_all_interrupt_sources(void)
gi->BaseAddress, gi->GicvBaseAddress, gi->GichBaseAddress,
gi->ParkedAddress, gi->CpuInterfaceNumber, gi->Uid);
+ if (gi->ParkingVersion) {
+ /* parking */
+ skb_add_fact("boot_driver_entry(%"PRIu64",%s).", gi->ArmMpidr,
+ "armBootParking");
+ } else {
+ /* psci */
+ skb_add_fact("boot_driver_entry(%"PRIu64",%s).", gi->ArmMpidr,
+ "armBootPSCI");
+ }
+
errval_t err = oct_set(HW_PROCESSOR_ARMV8_RECORD_FORMAT,
barrelfish_id,
gi->Flags & ACPI_MADT_ENABLED,
|
error: out of memory to resource error for lua | @@ -147,7 +147,7 @@ int elektraLuaOpen (ckdb::Plugin * handle, ckdb::Key * errorKey)
/* init new lua state */
if ((data->L = lua_newstate (Lua_alloc, NULL)) == NULL)
{
- ELEKTRA_SET_OUT_OF_MEMORY_ERROR (errorKey);
+ ELEKTRA_SET_RESOURCE_ERROR (errorKey, "Unable to create new lua state");
goto error;
}
|
board/agah/usbc_config.h: Format with clang-format
BRANCH=none
TEST=none | #define CONFIG_USB_PD_PORT_MAX_COUNT 2
-enum usbc_port {
- USBC_PORT_C0 = 0,
- USBC_PORT_C2,
- USBC_PORT_COUNT
-};
+enum usbc_port { USBC_PORT_C0 = 0, USBC_PORT_C2, USBC_PORT_COUNT };
struct ps8818_reg_val {
uint8_t reg;
|
Jenkinsfile: build release docu with Debian Sid | @@ -232,10 +232,10 @@ def dockerInit() {
/* Build Elektra's documentation with this image.
* Also contains latex for pdf creation.
*/
- DOCKER_IMAGES.buster_doc = dockerUtils.createDockerImageDesc(
- 'debian-buster-doc', dockerUtils.&idTesting,
- './scripts/docker/debian/buster',
- './scripts/docker/debian/buster/doc.Dockerfile'
+ DOCKER_IMAGES.sid_doc = dockerUtils.createDockerImageDesc(
+ 'debian-sid-doc', dockerUtils.&idTesting,
+ './scripts/docker/debian/sid',
+ './scripts/docker/debian/sid/doc.Dockerfile'
)
/*
@@ -719,7 +719,7 @@ def buildDoc() {
]
return [(stageName): {
stage(stageName) {
- withDockerEnv(DOCKER_IMAGES.buster_doc) {
+ withDockerEnv(DOCKER_IMAGES.sid_doc) {
configureGitUser()
dir('build') {
|
changes: remove duplicate entry | @@ -1566,12 +1566,6 @@ OpenSSL 1.1.1
*Richard Levitte*
- * Added newline escaping functionality to a filename when using openssl dgst.
- This output format is to replicate the output format found in the `*sum`
- checksum programs. This aims to preserve backward compatibility.
-
- *Matt Eaton, Richard Levitte, and Paul Dale*
-
* Print all values for a PKCS#12 attribute with 'openssl pkcs12', not just
the first value.
|
Update esp mbedtls config to not use deterministic ecdsa
Updated for consistency w/ rest of Amazon FreeRTOS mbedTLS ports. | *
* Comment this macro to disable deterministic ECDSA.
*/
-#define MBEDTLS_ECDSA_DETERMINISTIC
+//#define MBEDTLS_ECDSA_DETERMINISTIC
/**
* \def MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
|
Handle 0RTT rejection | @@ -543,6 +543,12 @@ int Client::handshake_completed() {
if (early_data_ &&
SSL_get_early_data_status(ssl_) != SSL_EARLY_DATA_ACCEPTED) {
std::cerr << "Early data was rejected by server" << std::endl;
+
+ if (auto rv = ngtcp2_conn_early_data_rejected(conn_); rv != 0) {
+ std::cerr << "ngtcp2_conn_early_data_rejected: " << ngtcp2_strerror(rv)
+ << std::endl;
+ return -1;
+ }
}
std::cerr << "Negotiated cipher suite is " << SSL_get_cipher_name(ssl_)
|
evp_keymgmt_util_copy: Fix possible leak on copy failure | @@ -455,8 +455,10 @@ int evp_keymgmt_util_copy(EVP_PKEY *to, EVP_PKEY *from, int selection)
* implemented, so just copy and be done
*/
if (!evp_keymgmt_copy(to_keymgmt, to_keydata, from->keydata,
- selection))
+ selection)) {
+ evp_keymgmt_freedata(to_keymgmt, alloc_keydata);
return 0;
+ }
} else if (match_type(to_keymgmt, from->keymgmt)) {
struct evp_keymgmt_util_try_import_data_st import_data;
@@ -466,10 +468,8 @@ int evp_keymgmt_util_copy(EVP_PKEY *to, EVP_PKEY *from, int selection)
if (!evp_keymgmt_util_export(from, selection,
&evp_keymgmt_util_try_import,
- &import_data)) {
- evp_keymgmt_freedata(to_keymgmt, alloc_keydata);
+ &import_data))
return 0;
- }
/*
* In case to_keydata was previously unallocated,
|
DeepScanlineInputFile now uses chunk size test from DeepTiledInputFile | @@ -1961,14 +1961,20 @@ readSampleCountForLineBlock(InputStreamMutex* streamData,
// @TODO refactor the compressor code to ensure full 64-bit support.
//
- int compressorMaxDataSize = std::numeric_limits<int>::max();
- if (sampleCountTableDataSize > uint64_t(compressorMaxDataSize))
+ uint64_t compressorMaxDataSize = static_cast<uint64_t>(std::numeric_limits<int>::max());
+ if (packedDataSize > compressorMaxDataSize ||
+ unpackedDataSize > compressorMaxDataSize ||
+ sampleCountTableDataSize > compressorMaxDataSize)
{
THROW (IEX_NAMESPACE::ArgExc, "This version of the library does not"
<< "support the allocation of data with size > "
<< compressorMaxDataSize
- << " file table size :" << sampleCountTableDataSize << ".\n");
+ << " file table size :" << sampleCountTableDataSize
+ << " file unpacked size :" << unpackedDataSize
+ << " file packed size :" << packedDataSize << ".\n");
}
+
+
streamData->is->read(data->sampleCountTableBuffer, static_cast<int>(sampleCountTableDataSize));
const char* readPtr;
|
board/taeko/battery.c: Format with clang-format
BRANCH=none
TEST=none | @@ -151,7 +151,9 @@ __override bool board_battery_is_initialized(void)
bool batt_initialization_state;
int batt_status;
- batt_initialization_state = (battery_status(&batt_status) ? false :
+ batt_initialization_state =
+ (battery_status(&batt_status) ?
+ false :
!!(batt_status & STATUS_INITIALIZED));
return batt_initialization_state;
}
|
Work CI-CD
Fix nuspec for nanoCLR Win32. | </metadata>
<files>
<file src="..\..\build\bin\Release\nanoFramework.nanoCLR.exe" target="tools" />
- <file src="targets\win32\msvc_redist\vcruntime140.dll" target="tools" />
+ <file src="msvc_redist\vcruntime140.dll" target="tools" />
<file src="..\..\assets\nf-logo.png" target="images" />
<file src="..\..\LICENSE.md" target="" />
|
fix flapping caused by different order float computations | @@ -117,9 +117,9 @@ Y_UNIT_TEST_SUITE(TMultiLogitTests) {
value += val;
}
}
- UNIT_ASSERT_DOUBLES_EQUAL_C(value / totalWeight, funcValueRef / totalWeight, 1e-5, TStringBuilder() << value << " " << funcValueRef);
+ UNIT_ASSERT_DOUBLES_EQUAL_C(value / totalWeight, funcValueRef / totalWeight, 1e-4, TStringBuilder() << value << " " << funcValueRef);
- const double eps = 1e-5;
+ const double eps = 1e-4;
AssertDoubleEqual(derRef, der, eps, "der");
for (ui32 row = 0; row < numClasses - 1; ++row) {
|
component/bt: Fix BTU task watchdog timeout after pair with iphone
Create a new pending queue, then re-submit pending requests in old pending queue,preventing new events being inserted into it.
Closes | @@ -2761,9 +2761,9 @@ void btm_sec_check_pending_reqs (void)
/* Now, re-submit anything in the mux queue */
bq = btm_cb.sec_pending_q;
- if (!btm_cb.sec_pending_q) {
+
btm_cb.sec_pending_q = fixed_queue_new(QUEUE_SIZE_MAX);
- }
+
while ((p_e = (tBTM_SEC_QUEUE_ENTRY *)fixed_queue_try_dequeue(bq)) != NULL) {
/* Check that the ACL is still up before starting security procedures */
@@ -2784,6 +2784,7 @@ void btm_sec_check_pending_reqs (void)
osi_free (p_e);
}
+ fixed_queue_free(bq, NULL);
}
}
#endif ///SMP_INCLUDED == TRUE
|
Remove extra semicolons, fixes build with -Wextra-semi | @@ -884,7 +884,7 @@ Use it as a unique identifier to virtual allocation within the single block.
Use value `VK_NULL_HANDLE` to represent a null/invalid allocation.
*/
-VK_DEFINE_NON_DISPATCHABLE_HANDLE(VmaVirtualAllocation);
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VmaVirtualAllocation)
/** @} */
@@ -3126,7 +3126,7 @@ enum class VmaAllocationRequestType
#ifndef _VMA_FORWARD_DECLARATIONS
// Opaque handle used by allocation algorithms to identify single allocation in any conforming way.
-VK_DEFINE_NON_DISPATCHABLE_HANDLE(VmaAllocHandle);
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VmaAllocHandle)
struct VmaMutexLock;
struct VmaMutexLockRead;
@@ -6781,7 +6781,7 @@ public:
VkDeviceSize GetSumFreeSize() const override { return m_SumFreeSize; }
bool IsEmpty() const override { return (m_Suballocations.size() == 1) && (m_FreeCount == 1); }
void Free(VmaAllocHandle allocHandle) override { FreeSuballocation(FindAtOffset((VkDeviceSize)allocHandle - 1)); }
- VkDeviceSize GetAllocationOffset(VmaAllocHandle allocHandle) const override { return (VkDeviceSize)allocHandle - 1; };
+ VkDeviceSize GetAllocationOffset(VmaAllocHandle allocHandle) const override { return (VkDeviceSize)allocHandle - 1; }
void Init(VkDeviceSize size) override;
bool Validate() const override;
@@ -7618,7 +7618,7 @@ public:
VkDeviceSize GetSumFreeSize() const override { return m_SumFreeSize; }
bool IsEmpty() const override { return GetAllocationCount() == 0; }
- VkDeviceSize GetAllocationOffset(VmaAllocHandle allocHandle) const override { return (VkDeviceSize)allocHandle - 1; };
+ VkDeviceSize GetAllocationOffset(VmaAllocHandle allocHandle) const override { return (VkDeviceSize)allocHandle - 1; }
void Init(VkDeviceSize size) override;
bool Validate() const override;
@@ -9278,7 +9278,7 @@ public:
VkDeviceSize GetSumFreeSize() const override { return m_SumFreeSize + GetUnusableSize(); }
bool IsEmpty() const override { return m_Root->type == Node::TYPE_FREE; }
VkResult CheckCorruption(const void* pBlockData) override { return VK_ERROR_FEATURE_NOT_PRESENT; }
- VkDeviceSize GetAllocationOffset(VmaAllocHandle allocHandle) const override { return (VkDeviceSize)allocHandle - 1; };
+ VkDeviceSize GetAllocationOffset(VmaAllocHandle allocHandle) const override { return (VkDeviceSize)allocHandle - 1; }
void DebugLogAllAllocations() const override { DebugLogAllAllocationNode(m_Root, 0); }
void Init(VkDeviceSize size) override;
@@ -9977,7 +9977,7 @@ public:
size_t GetFreeRegionsCount() const override { return m_BlocksFreeCount + 1; }
VkDeviceSize GetSumFreeSize() const override { return m_BlocksFreeSize + m_NullBlock->size; }
bool IsEmpty() const override { return m_NullBlock->offset == 0; }
- VkDeviceSize GetAllocationOffset(VmaAllocHandle allocHandle) const override { return ((Block*)allocHandle)->offset; };
+ VkDeviceSize GetAllocationOffset(VmaAllocHandle allocHandle) const override { return ((Block*)allocHandle)->offset; }
void Init(VkDeviceSize size) override;
bool Validate() const override;
|
dhcpserver: Minor #idfef fix | #include "dhcpserver/dhcpserver.h"
#include "dhcpserver/dhcpserver_options.h"
-#if ESP_DHCP
+#if ESP_DHCPS
#define BOOTP_BROADCAST 0x8000
@@ -1419,4 +1419,4 @@ err_t dhcps_dns_getserver(dhcps_t *dhcps, ip4_addr_t *dnsserver)
}
return ERR_ARG;
}
-#endif // ESP_DHCP
+#endif // ESP_DHCPS
|
Make some TCODColor constructors constexpr.
Use more strict syntax. | @@ -136,7 +136,7 @@ class TCODLIB_API TCODColor {
public :
uint8_t r,g,b;
- TCODColor() : r(0),g(0),b(0) {}
+ constexpr TCODColor() : r{0}, g{0}, b{0} {}
/**
@PageName color
@FuncTitle Create your own colors
@@ -153,13 +153,13 @@ public :
TCODColor myColor = new TCODColor(321.0f,0.7f,1.0f); //HSV
@LuaEx myColor = tcod.Color(24,24,255)
*/
- TCODColor(uint8_t r_, uint8_t g_, uint8_t b_)
- : r(r_), g(g_), b(b_)
+ constexpr TCODColor(uint8_t r_, uint8_t g_, uint8_t b_)
+ : r{r_}, g{g_}, b{b_}
{}
- TCODColor(int r_, int g_, int b_)
- : r((uint8_t)r_), g((uint8_t)g_), b((uint8_t)b_)
+ constexpr TCODColor(int r_, int g_, int b_)
+ : r{static_cast<uint8_t>(r_)}, g{static_cast<uint8_t>(g_)}, b{static_cast<uint8_t>(b_)}
{}
- TCODColor(const TCOD_color_t &col): r(col.r), g(col.g), b(col.b) {}
+ constexpr TCODColor(const TCOD_color_t &col): r{col.r}, g{col.g}, b{col.b} {} // Notice: not explicit!
TCODColor(float h, float s, float v);
/**
@@ -670,18 +670,18 @@ coef should be between 0.0 and 1.0 but you can as well use other values
*/
template <typename F>
TCODColor(const TCODColor& color, const F& lambda)
- : r(clamp_(lambda(color.r))),
- g(clamp_(lambda(color.g))),
- b(clamp_(lambda(color.b)))
+ : r{clamp_(lambda(color.r))},
+ g{clamp_(lambda(color.g))},
+ b{clamp_(lambda(color.b))}
{}
/**
* Return a color from two colors combined using a lambda.
*/
template <typename F>
TCODColor(const TCODColor& color1, const TCODColor& color2, const F& lambda)
- : r(clamp_(lambda(color1.r, color2.r))),
- g(clamp_(lambda(color1.g, color2.g))),
- b(clamp_(lambda(color1.b, color2.b)))
+ : r{clamp_(lambda(color1.r, color2.r))},
+ g{clamp_(lambda(color1.g, color2.g))},
+ b{clamp_(lambda(color1.b, color2.b))}
{}
/**
* Return a color value clamped between 0 to 255.
|
zephyr/shim/src/console_buffer.c: Format with clang-format
BRANCH=none
TEST=none | @@ -47,11 +47,9 @@ void console_buf_notify_chars(const char *s, size_t len)
if (new_tail == head_idx)
head_idx = next_idx(head_idx);
if (new_tail == previous_snapshot_idx)
- previous_snapshot_idx =
- next_idx(previous_snapshot_idx);
+ previous_snapshot_idx = next_idx(previous_snapshot_idx);
if (new_tail == current_snapshot_idx)
- current_snapshot_idx =
- next_idx(current_snapshot_idx);
+ current_snapshot_idx = next_idx(current_snapshot_idx);
if (new_tail == read_next_idx)
read_next_idx = next_idx(read_next_idx);
|
Sensor API: Support only one event per notifier/notification
earlier this was multiplexin multiple events for a single notification | @@ -982,19 +982,13 @@ err:
}
static int
-sensor_set_notification(struct sensor *sensor)
+sensor_set_notification(struct sensor *sensor, struct sensor_notifier *notifier)
{
- sensor_event_type_t event_type;
- const struct sensor_notifier *notifier;
int rc;
- event_type = 0;
- SLIST_FOREACH(notifier, &sensor->s_notifier_list, sn_next) {
- event_type |= notifier->sn_sensor_event_type;
- }
-
if (sensor->s_funcs->sd_set_notification) {
- rc = sensor->s_funcs->sd_set_notification(sensor, event_type);
+ rc = sensor->s_funcs->sd_set_notification(sensor,
+ notifier->sn_sensor_event_type);
} else {
rc = SYS_ENODEV;
}
@@ -1033,7 +1027,7 @@ sensor_register_notifier(struct sensor *sensor,
SLIST_INSERT_HEAD(&sensor->s_notifier_list, notifier, sn_next);
- rc = sensor_set_notification(sensor);
+ rc = sensor_set_notification(sensor, notifier);
if (rc != 0) {
goto remove;
}
|
crypto/http/http_client.c: Add the check for OPENSSL_strdup
As the potential failure of the OPENSSL_strdup(), it should
be better to check the return value and return error if fails. | @@ -1158,6 +1158,14 @@ BIO *OSSL_HTTP_get(const char *url, const char *proxy, const char *no_proxy,
current_url = redirection_url;
if (*redirection_url == '/') { /* redirection to same server */
path = OPENSSL_strdup(redirection_url);
+ if (path == NULL) {
+ OPENSSL_free(host);
+ OPENSSL_free(port);
+ (void)OSSL_HTTP_close(rctx, 1);
+ BIO_free(resp);
+ OPENSSL_free(current_url);
+ return NULL;
+ }
goto new_rpath;
}
OPENSSL_free(host);
|
Changelist for 4.3.2 | +CARTO Mobile SDK 4.3.2
+-------------------
+
+### Changes/fixes:
+
+* Fixed PersistentCacheTileDataSource not working with large cache files
+* Changed PersistentCacheTileDataSource to be more conservative when estimating cache file size
+
+
CARTO Mobile SDK 4.3.2RC2
-------------------
|
docs: fix headings in get started | # Get Started
-- Skill requirements
+## Skill requirements
- Operating system
You can contribute to Elektra to improve the source code, website, documentation, translation etc.
-- Software requirements
+## Software requirements
We need to install some basic tools to run Elektra: cmake, git and essential build tools (make, gcc, and some standard Unix tools; alternatively [ninja](https://ninja-build.org/) and [clang](https://clang.llvm.org/index.html) are also supported but not described here). Depending on your Linux distribution use the following commands to install these tools:
brew install cmake git
```
-- Installation
+## Installation
If you meet all the software requirements you can get the source code of Elektra by using this command:
kdb run_nokdbtests
```
-- Hello World!
+## Hello World!
Start with your very first Elektra application in C and follow these steps:
[Hello World!](/doc/tutorials/hello-elektra.md)
|
ra: destroy parser on exception | @@ -174,6 +174,7 @@ struct flb_ra_parser *flb_ra_parser_meta_create(char *str, int len)
if (!s) {
flb_errno();
flb_free(s);
+ flb_ra_parser_destroy(rp);
return NULL;
}
|
RPM packaging - make sure developer also installs cups-devel since we need the
CUPS headers. | @@ -19,6 +19,7 @@ Packager: John Doe <[email protected]>
Vendor: Michael R Sweet
BuildRequires: avahi-devel, cups-devel, gnutls-devel, libjpeg-turbo-devel, libpng-devel, libusbx-devel, pam-devel, zlib-devel
+Requires: cups-devel
# Use buildroot so as not to disturb the version already installed
BuildRoot: /var/tmp/%{name}-root
|
Fix out of date comment | @@ -4468,8 +4468,7 @@ BackendInitialize(Port *port)
* BackendRun -- set up the backend's argument list and invoke PostgresMain()
*
* returns:
- * Shouldn't return at all.
- * If PostgresMain() fails, return status.
+ * Doesn't return at all.
*/
static void
BackendRun(Port *port)
|
fixup! linux: run tests also with ASAN and TSAN builds | @@ -60,12 +60,12 @@ jobs:
file: docker/apps/Dockerfile.cloud-server-debug
tag: dbg
args: "CLOUD=1 SECURE=1 CREATE=1 MNT=1 DEBUG=1 OICRES_OBSERVABLE=1 REP_ENCODING_REALLOC=1 OSCORE=0 ASAN=0 TSAN=0"
- - name: cloud-server-discovery-resource-observable-rep-realloc-debug
- file: docker/apps/Dockerfile.cloud-server-debug-asan
+ - name: cloud-server-discovery-resource-observable-rep-realloc-debug-asan
+ file: docker/apps/Dockerfile.cloud-server-debug
tag: dbg
args: "CLOUD=1 SECURE=1 CREATE=1 MNT=1 DEBUG=1 OICRES_OBSERVABLE=1 REP_ENCODING_REALLOC=1 OSCORE=0 ASAN=1 TSAN=0"
- - name: cloud-server-discovery-resource-observable-rep-realloc-debug
- file: docker/apps/Dockerfile.cloud-server-debug-tsan
+ - name: cloud-server-discovery-resource-observable-rep-realloc-debug-tsan
+ file: docker/apps/Dockerfile.cloud-server-debug
tag: dbg
args: "CLOUD=1 SECURE=1 CREATE=1 MNT=1 DEBUG=1 OICRES_OBSERVABLE=1 REP_ENCODING_REALLOC=1 OSCORE=0 ASAN=0 TSAN=1"
|
Work CD-CI
Update triggers definitions. | @@ -4,15 +4,25 @@ trigger:
- master
- develop/*
- release/*
+ - refs/tags/*
paths:
exclude:
+ - /*.md
- .gitignore
- - README.md
- - CHANGELOG.md
- - LICENSE.md
- - CONTRIBUTING.md
- - CODE_OF_CONDUCT.md
+ - appveyor.yml
- cmake-variants.TEMPLATE.json
+ # waiting for feature to become available
+ # tags:
+ # include:
+ # - v/*
+
+pr:
+ branches:
+ include:
+ - master
+ - develop
+ - release/*
+ autoCancel: true
# add nf-tools repo to resources (for Azure Pipelines templates)
resources:
|
Capture the output in --mode=none
When running a benchmark with --mode=none, capture and print the output.
This will allow us to check the output in the test suite. | @@ -73,10 +73,9 @@ benchlib.modes = {}
benchlib.modes.none = {
run = function(bench_cmd)
- -- Output directly to console, don't capture stdout
- local ok, err = util.execute(bench_cmd)
+ local ok, err, res, _ = util.outputs_of_execute(bench_cmd)
assert(ok, err)
- return ""
+ return res
end,
parse = function(_res)
|
Fix return value from `term_to_local_process_id` | @@ -760,7 +760,7 @@ static term nif_erlang_register_2(Context *ctx, int argc, term argv[])
VALIDATE_VALUE(pid_or_port_term, term_is_pid);
int atom_index = term_to_atom_index(reg_name_term);
- int pid = term_to_local_process_id(pid_or_port_term);
+ int32_t pid = term_to_local_process_id(pid_or_port_term);
// TODO: pid must be existing, not already registered.
// TODO: reg_name_term must not be the atom undefined and not already registered.
|
Fix swaybar tray inerited thems not processed | @@ -135,7 +135,7 @@ static int entry_handler(char *group, char *key, char *value,
theme->name = strdup(value);
} else if (strcmp(key, "Comment") == 0) {
theme->comment = strdup(value);
- } else if (strcmp(key, "Inherists") == 0) {
+ } else if (strcmp(key, "Inherits") == 0) {
theme->inherits = strdup(value);
} else if (strcmp(key, "Directories") == 0) {
theme->directories = split_string(value, ",");
|
Fix redisBufferRead documentation
Referred to redisContextReadReply which I cannot find in this codebase
nor the old redis-tools one. Presumably this meant to say
redisGetReplyFromReader which is how redisBufferRead is used in this
file. Could've also meant the interface function redisReaderGetReply. | @@ -777,7 +777,7 @@ int redisEnableKeepAlive(redisContext *c) {
/* Use this function to handle a read event on the descriptor. It will try
* and read some bytes from the socket and feed them to the reply parser.
*
- * After this function is called, you may use redisContextReadReply to
+ * After this function is called, you may use redisGetReplyFromReader to
* see if there is a reply available. */
int redisBufferRead(redisContext *c) {
char buf[1024*16];
|
Completions: Add suggestions for option `null` | @@ -76,6 +76,10 @@ end
# = Options =
# ===========
+function __fish_kdb_subcommand_supports_option_null -d 'Check if the current subcommand supports binary null termination'
+ __fish_kdb_subcommand_includes complete list list-commands ls lsmeta mount
+end
+
function __fish_kdb_subcommand_supports_option_verbose -d 'Check if the current subcommand supports the option verbose'
not __fish_kdb_subcommand_includes export file getmeta global-mount gmount info mount qt-gui remount rm sget shell test vset help qt-gui
end
@@ -98,5 +102,6 @@ complete -c kdb -n '__fish_kdb_needs_namespace' -x -a '(__fish_kdb_print_namespa
# ===========
__fish_kdb_add_option '__fish_kdb_subcommand_supports_common_options' 'help' 'H' 'Show the man page'
+__fish_kdb_add_option '__fish_kdb_subcommand_supports_option_null' 'null' '0' 'Use binary 0 termination.'
__fish_kdb_add_option '__fish_kdb_subcommand_supports_option_verbose' 'verbose' 'v' 'Explain what is happening'
__fish_kdb_add_option '__fish_kdb_subcommand_supports_common_options' 'version' 'V' 'Print version info'
|
Fix Pass:clear(Texture); | @@ -816,12 +816,11 @@ static int l_lovrPassClear(lua_State* L) {
if (texture) {
float value[4];
- luax_readcolor(L, 3, value);
- int index = lua_istable(L, 3) ? 4 : 6;
- uint32_t layer = luax_optu32(L, index++, 1) - 1;
- uint32_t layerCount = luax_optu32(L, index++, ~0u);
- uint32_t level = luax_optu32(L, index++, 1) - 1;
- uint32_t levelCount = luax_optu32(L, index++, ~0u);
+ luax_optcolor(L, 3, value);
+ uint32_t layer = luax_optu32(L, 4, 1) - 1;
+ uint32_t layerCount = luax_optu32(L, 5, ~0u);
+ uint32_t level = luax_optu32(L, 6, 1) - 1;
+ uint32_t levelCount = luax_optu32(L, 7, ~0u);
lovrPassClearTexture(pass, texture, value, layer, layerCount, level, levelCount);
return 0;
}
|
le_tc/kernel: Fix build error in pthread itc
Remove definiton of unused function 'thread_setget' in pthread itc. | @@ -73,16 +73,6 @@ static void *thread_setgetname(void *param)
}
return NULL;
}
-/**
- *@fn :thread_setget
- *@breif :utility function for creating thread
- *@return :void*
- */
-static void *thread_setget(void *param)
-{
- sleep(WAIT_TIME_2);
- return NULL;
-}
/**
* @fn :thread_equal_check
|
added new device TP-LINK TL-WN722N v1 (v2 and v3 are not working) | @@ -72,20 +72,22 @@ Requirements
Supported adapters (strict)
--------------
-* USB ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
+* ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
-* USB ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
+* ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
-* USB ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
+* ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
-* USB ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter
+* ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter
-* USB ID 0bda:8189 Realtek Semiconductor Corp. RTL8187B Wireless 802.11g 54Mbps Network Adapter
+* ID 0bda:8189 Realtek Semiconductor Corp. RTL8187B Wireless 802.11g 54Mbps Network Adapter
-* Bus 005 Device 011: ID 7392:a812 Edimax Technology Co., Ltd (Edimax AC600 USB / Manufacturer: Realtek)
- get driver from here: https://github.com/kimocoder/rtl8812au
+* ID 148f:2573 Ralink Technology, Corp. RT2501/RT2573 Wireless Adapter
+
+* ID 0cf3:9271 Qualcomm Atheros Communications AR9271 802.11n (TP-LINK TL-WN722N v1)
-* Bus 001 Device 002: ID 148f:2573 Ralink Technology, Corp. RT2501/RT2573 Wireless Adapter
+* ID 7392:a812 Edimax Technology Co., Ltd (Edimax AC600 USB / Manufacturer: Realtek)
+ get driver from here: https://github.com/kimocoder/rtl8812au
Useful scripts
|
make note not paper | @@ -39,7 +39,7 @@ install:
script:
- flake8 pyccl
- flake8 --exclude=data benchmarks
-- if [[ $TRAVIS_OS_NAME != 'osx' ]]; then pushd doc/ccl_paper && make && popd; fi
+- if [[ $TRAVIS_OS_NAME != 'osx' ]]; then pushd doc/0000-ccl_note/ && make && popd; fi
- cd $TRAVIS_BUILD_DIR
- "[[ `grep \"$(printf '\t')\" pyccl/*.py` == \"\" ]]"
- mkdir -p build && cd build && cmake -DFORCE_OPENMP=YES -DCMAKE_VERBOSE_MAKEFILE=ON
|
.github/workflows: use make package to replace make binary on ubuntu
CICD
For some components like shim-rune and epm, make package can generate
their configuration files automatically. | @@ -39,12 +39,6 @@ jobs:
echo 'export PKG_CONFIG_PATH=/usr/lib/pkgconfig' >>/etc/profile;
echo 'export GO111MODULE=on' >>/etc/profile"
- - name: Build and install binaries on ubuntu
- run: docker exec $ubuntu bash -c "source /etc/profile;
- cd /root && cp -r inclavare-containers inclavare-containers-$RUNE_VERSION;
- cd inclavare-containers-$RUNE_VERSION;
- make -j${CPU_NUM} && make install -j${CPU_NUM}"
-
- name: Install and configure docker on ubuntu
run: |
docker exec $ubuntu bash -c "apt-get install -y apt-transport-https ca-certificates curl software-properties-common;
@@ -67,6 +61,19 @@ jobs:
docker exec $ubuntu bash -c "service docker start"
+ - name: Make and install packages on ubuntu
+ run:
+ docker exec $ubuntu bash -c "cd /root && source /etc/profile;
+ cp -r inclavare-containers inclavare-containers-$RUNE_VERSION;
+ tar zcf v$RUNE_VERSION.tar.gz inclavare-containers-$RUNE_VERSION;
+ cd /root/inclavare-containers-$RUNE_VERSION;
+ echo "$RUNE_VERSION" > VERSION;
+ find ./ -path "*deb/build.sh" | xargs -I files sed -i '17 d' files;
+ find ./ -path "*deb/build.sh" | xargs -I files sed -i '17icp /root/v*.tar.gz \$DEBBUILD_DIR' files;
+ make package -j${CPU_NUM};
+ dpkg -i rune_$RUNE_VERSION-1_amd64.deb;
+ dpkg -i sgx-tools_$RUNE_VERSION-1_amd64.deb"
+
- name: Build Occlum Application Image on ubuntu
run: |
docker exec $ubuntu bash -c "cat <<- EOF >/root/hello_world.c
|
Fix stunServerPort default value usage
The if-else blocks were wrongly disposed, so when the stunServerPort config wasnt set, but the IP was, a STUN server would not be setup in the NiceAgent interface
Also some identation changes according to the git hook suggestions around the code I changed | @@ -533,12 +533,15 @@ WebRtcEndpointImpl::WebRtcEndpointImpl (const boost::property_tree::ptree &conf,
}
uint stunPort = 0;
+
if (!getConfigValue <uint, WebRtcEndpoint> (&stunPort, "stunServerPort",
DEFAULT_STUN_PORT) ) {
GST_INFO ("STUN port not found in config;"
" using default value: %d", DEFAULT_STUN_PORT);
- } else {
+ }
+
std::string stunAddress;
+
if (!getConfigValue <std::string, WebRtcEndpoint> (&stunAddress,
"stunServerAddress") ) {
GST_INFO ("STUN server not found in config;"
@@ -550,7 +553,6 @@ WebRtcEndpointImpl::WebRtcEndpointImpl (const boost::property_tree::ptree &conf,
g_object_set (G_OBJECT (element), "stun-server-port", stunPort, NULL);
g_object_set (G_OBJECT (element), "stun-server", stunAddress.c_str(), NULL);
}
- }
std::string turnURL;
if (getConfigValue <std::string, WebRtcEndpoint> (&turnURL, "turnURL")) {
|
Fixed the x86emu_fork function | @@ -51,7 +51,7 @@ x86emu_t* x86emu_fork(x86emu_t* e, int forktype)
if(v==EAGAIN || v==ENOMEM) {
--emu->context->forked;
FreeX86Emu(&newemu); // fork failed, free the new emu
- } else if(!v) {
+ } else if(v!=0) {
// execute atforks parent functions
for (int i=0; i<emu->context->atfork_sz; --i)
EmuCall(emu, emu->context->atforks[i].parent);
|
fix i2c flags bug | @@ -83,7 +83,7 @@ rt_size_t rt_i2c_master_send(struct rt_i2c_bus_device *bus,
struct rt_i2c_msg msg;
msg.addr = addr;
- msg.flags = flags & RT_I2C_ADDR_10BIT;
+ msg.flags = flags;
msg.len = count;
msg.buf = (rt_uint8_t *)buf;
@@ -103,8 +103,7 @@ rt_size_t rt_i2c_master_recv(struct rt_i2c_bus_device *bus,
RT_ASSERT(bus != RT_NULL);
msg.addr = addr;
- msg.flags = flags & RT_I2C_ADDR_10BIT;
- msg.flags |= RT_I2C_RD;
+ msg.flags = flags | RT_I2C_RD;
msg.len = count;
msg.buf = buf;
|
Add description of embedding to README.md | @@ -48,6 +48,7 @@ Janet makes a good system scripting language, or a language to embed in other pr
* REPL
* Parsing Expression Grammars built in to the core library
* 300+ functions and macros in the core library
+* Embedding Janet in other programs
* Interactive environment with detailed stack traces
## Documentation
@@ -108,6 +109,18 @@ Options are:
$
```
+## Embedding
+
+The C API for Janet is not yet documented but coming soon.
+
+Janet can be embedded in a host program very easily. There is a make target `make amalg`
+which creates the file `build/janet.c`, which is a single C file that contains all the source
+to Janet. This file, along with `src/include/janet/janet.h` can dragged into any C project
+and compiled into the project. Janet should be compiled with `-std=c99` on most compilers, and
+will need to be linked to the math library, `-lm`, and the dynamic linker, `-ldl`, if one wants
+to be able to load dynamic modules. If there is no need for dynamic modules, add the define
+`-DJANET_NO_DYNAMIC_MODULES` to the compiler options.
+
## Compiling and Running
Janet only uses Make and batch files to compile on Posix and windows
|
elektra: replace code in keyReplacePrefix with respective keyCopy call | @@ -689,18 +689,7 @@ int keyReplacePrefix (Key * key, const Key * oldPrefix, const Key * newPrefix)
if (key->keyUSize == oldPrefix->keyUSize)
{
// key is same as oldPrefix -> just copy name
- // TODO: replace with keyCopy (key, newPrefix, KEY_CP_NAME) once #3606 is merged
- if (!test_bit (key->flags, KEY_FLAG_MMAP_KEY))
- {
- elektraFree (key->key);
- elektraFree (key->ukey);
- }
-
- key->key = elektraMemDup (newPrefix->key, newPrefix->keySize);
- key->keySize = newPrefix->keySize;
-
- key->ukey = elektraMemDup (newPrefix->ukey, newPrefix->keyUSize);
- key->keyUSize = newPrefix->keyUSize;
+ keyCopy (key, newPrefix, KEY_CP_NAME);
return 1;
}
|
NetKVM: Use 'enum class' instead of 'enum' (CA warning 26812)
Update NotifyEvent enum | @@ -116,20 +116,20 @@ public:
}
void NotifyAdapterRemoval()
{
- Notifier(m_Binding, Removal);
+ Notifier(m_Binding, NotifyEvent::Removal);
}
void NotifyAdapterArrival()
{
- Notifier(m_Binding, Arrival, m_Adapter);
+ Notifier(m_Binding, NotifyEvent::Arrival, m_Adapter);
}
void NotifyAdapterDetach()
{
- Notifier(m_Binding, Detach);
+ Notifier(m_Binding, NotifyEvent::Detach);
}
PARANDIS_ADAPTER *m_Adapter;
PVOID m_Binding;
private:
- enum NotifyEvent
+ enum class NotifyEvent
{
Arrival,
Removal,
@@ -1264,13 +1264,13 @@ void CAdapterEntry::Notifier(PVOID Binding, NotifyEvent Event, PARANDIS_ADAPTER
}
switch (Event)
{
- case Arrival:
+ case NotifyEvent::Arrival:
pb->OnAdapterFound(Adapter);
break;
- case Removal:
+ case NotifyEvent::Removal:
pb->OnAdapterHalted();
break;
- case Detach:
+ case NotifyEvent::Detach:
pb->OnAdapterDetach();
break;
default:
|
fix spiffsgen.py wrong path delimiter on windows | @@ -516,7 +516,7 @@ def main():
for root, dirs, files in os.walk(args.base_dir):
for f in files:
full_path = os.path.join(root, f)
- spiffs.create_file("/" + os.path.relpath(full_path, args.base_dir), full_path)
+ spiffs.create_file("/" + os.path.relpath(full_path, args.base_dir).replace("\\", "/"), full_path)
image = spiffs.to_binary()
|
Compact Hashes and separate some locks | @@ -111,6 +111,7 @@ static fio_hash_s channels;
static fio_hash_s clients;
static fio_hash_s engines;
static spn_lock_i lock = SPN_LOCK_INIT;
+static spn_lock_i engn_lock = SPN_LOCK_INIT;
/* *****************************************************************************
Channel and Client Management
@@ -246,13 +247,19 @@ static int pubsub_client_destroy(client_s *client) {
"FATAL ERROR: (pubsub) channel database corruption detected.\n");
exit(-1);
}
- pubsub_on_channel_destroy(ch);
+ if (ch_hashmap->capa > 32 && ch_hashmap->count << 1 <= ch_hashmap->pos) {
+ fio_hash_compact(ch_hashmap);
+ }
+ }
+ if (clients.count << 1 <= clients.pos) {
+ fio_hash_compact(&clients);
}
spn_unlock(&lock);
client_test4free(client);
if (is_ch_any) {
return 0;
}
+ pubsub_on_channel_destroy(ch);
fiobj_free(ch->name);
free(ch);
return 0;
@@ -368,12 +375,14 @@ static void pubsub_on_channel_create(channel_s *ch) {
if (ch->publish2cluster)
PUBSUB_CLUSTER_ENGINE->subscribe(PUBSUB_CLUSTER_ENGINE, ch->name,
ch->use_pattern);
+ spn_lock(&engn_lock);
FIO_HASH_FOR_LOOP(&engines, e_) {
if (!e_ || !e_->obj)
continue;
pubsub_engine_s *e = e_->obj;
e->subscribe(e, ch->name, ch->use_pattern);
}
+ spn_unlock(&engn_lock);
}
/* runs in lock(!) let'm all know */
@@ -381,33 +390,36 @@ static void pubsub_on_channel_destroy(channel_s *ch) {
if (ch->publish2cluster)
PUBSUB_CLUSTER_ENGINE->unsubscribe(PUBSUB_CLUSTER_ENGINE, ch->name,
ch->use_pattern);
+ spn_lock(&engn_lock);
FIO_HASH_FOR_LOOP(&engines, e_) {
if (!e_ || !e_->obj)
continue;
pubsub_engine_s *e = e_->obj;
e->unsubscribe(e, ch->name, ch->use_pattern);
}
+ spn_unlock(&engn_lock);
}
/** Registers an engine, so it's callback can be called. */
void pubsub_engine_register(pubsub_engine_s *engine) {
- spn_lock(&lock);
+ spn_lock(&engn_lock);
fio_hash_insert(
&engines,
(fio_hash_key_s){.hash = (uintptr_t)engine, .obj = FIOBJ_INVALID},
engine);
- spn_unlock(&lock);
+ spn_unlock(&engn_lock);
}
/** Unregisters an engine, so it could be safely destroyed. */
void pubsub_engine_deregister(pubsub_engine_s *engine) {
- spn_lock(&lock);
+ spn_lock(&engn_lock);
if (PUBSUB_DEFAULT_ENGINE == engine)
PUBSUB_DEFAULT_ENGINE = (pubsub_engine_s *)PUBSUB_CLUSTER_ENGINE;
void *old = fio_hash_insert(
&engines,
(fio_hash_key_s){.hash = (uintptr_t)engine, .obj = FIOBJ_INVALID}, NULL);
- spn_unlock(&lock);
+ fio_hash_compact(&engines);
+ spn_unlock(&engn_lock);
if (!old)
fprintf(stderr, "Deregister error, not registered?\n");
}
|
Fix error handling in cache attach
Only close cores in error handling if attach parameter "open_cores" is
set to true. | @@ -340,8 +340,9 @@ static void init_attached_data_structures_recovery(ocf_cache_t cache,
* Used in case of cache initialization errors. *
****************************************************************/
static void _ocf_mngt_close_all_uninitialized_cores(
- ocf_cache_t cache)
+ struct ocf_cache_attach_context *context)
{
+ ocf_cache_t cache = context->cache;
ocf_volume_t volume;
int j, i;
@@ -350,6 +351,7 @@ static void _ocf_mngt_close_all_uninitialized_cores(
continue;
volume = &(cache->core[i].volume);
+ if (context->cfg.open_cores)
ocf_volume_close(volume);
--j;
@@ -480,7 +482,7 @@ static void _ocf_mngt_load_add_cores(ocf_pipeline_t pipeline,
OCF_PL_NEXT_RET(context->pipeline);
err:
- _ocf_mngt_close_all_uninitialized_cores(cache);
+ _ocf_mngt_close_all_uninitialized_cores(context);
OCF_PL_FINISH_RET(pipeline, -OCF_ERR_START_CACHE_FAIL);
}
@@ -1661,7 +1663,7 @@ static void _ocf_mngt_attach_handle_error(
__deinit_promotion_policy(cache);
if (context->flags.cores_opened)
- _ocf_mngt_close_all_uninitialized_cores(cache);
+ _ocf_mngt_close_all_uninitialized_cores(context);
if (context->flags.attached_metadata_inited)
ocf_metadata_deinit_variable_size(cache);
@@ -2369,7 +2371,7 @@ static void _ocf_mngt_activate_handle_error(
__deinit_promotion_policy(cache);
if (context->flags.cores_opened)
- _ocf_mngt_close_all_uninitialized_cores(cache);
+ _ocf_mngt_close_all_uninitialized_cores(context);
if (context->flags.volume_opened)
ocf_volume_close(&cache->device->volume);
|
BugID:17132021:[WhiteScan] [587318] [RETURN_LOCAL] /home/iot/WhiteScan/app/example/hdlcapp/hdlcclient/hdlcclient.c | @@ -367,7 +367,7 @@ static void handle_hdlc(char *pwbuf, int blen, int argc, char **argv)
LOGD(TAG, "Will suspend station");
ycmd = ATYWSSSUSPSTA;
} else if (strcmp(argv[2], "setch") == 0) {
- char chcmd[sizeof(ATYWSSSETCH) + 3] = { 0 };
+ static char chcmd[sizeof(ATYWSSSETCH) + 3] = { 0 };
if (argc != 4) {
LOGE(TAG, "Invalid argument for ywss.");
return;
|
BugID:16760137:example:add mqtt press test case | @@ -16,11 +16,11 @@ CFLAGS := $(filter-out -DCOAP_COMM_ENABLED,$(CFLAGS))
endif
ifneq (,$(filter -DMQTT_COMM_ENABLED,$(CFLAGS)))
-TARGET += mqtt-example mqtt-example-rrpc mqtt-example-multithread
+TARGET += mqtt-example mqtt-example-rrpc mqtt-example-multithread mqtt-example-presstest
SRCS_mqtt-example := app_entry.c mqtt/mqtt_example.c
SRCS_mqtt-example-rrpc := app_entry.c mqtt/mqtt_example_rrpc.c
SRCS_mqtt-example-multithread := app_entry.c mqtt/mqtt_example_multithread.c
-
+SRCS_mqtt-example-presstest := app_entry.c mqtt/mqtt_example_presstest.c
ifneq (,$(filter -DSUPPORT_ITLS,$(CFLAGS)))
LDFLAGS += \
-litls \
|
[numerics] use Cholesky factorization | @@ -236,7 +236,7 @@ void gfc3d_ADMM(GlobalFrictionContactProblem* restrict problem, double* restrict
double* restrict velocity, double* restrict globalVelocity,
int* restrict info, SolverOptions* restrict options)
{
- /* verbose=2; */
+ /* verbose=1; */
/* int and double parameters */
int* iparam = options->iparam;
double* dparam = options->dparam;
@@ -576,7 +576,17 @@ void gfc3d_ADMM(GlobalFrictionContactProblem* restrict problem, double* restrict
/* Linear system solver */
/* cblas_dcopy(n , w_k , 1 , v, 1); */
+ if(with_full_Jacobian)
+ {
NM_gesv_expert(W,v,NM_KEEP_FACTORS);
+ }
+ else
+ {
+ /* NM_gesv_expert(W,v,NM_KEEP_FACTORS); */
+ NSM_linear_solver_params* p = NSM_linearSolverParams(W);
+ p->solver = NSM_CS_CHOLSOL;
+ NM_posv_expert(W,v,NM_KEEP_FACTORS);
+ }
DEBUG_PRINT("v:");
DEBUG_EXPR(NV_display(v,n));
|
Fixed assert since t could be 0 | @@ -864,7 +864,7 @@ SURVIVE_EXPORT const SurvivePose *survive_get_lighthouse_position(const SurviveC
FLT t = (survive_run_time(ctx) - ctx->bsd[bsd_idx].old_pos_time) / t_diff;
if (t > 1)
t = 1;
- assert(t > 0);
+ assert(t >= 0);
if (t >= 0) {
PoseSlerp(&mctx->bsd[bsd_idx].Pose, &ctx->bsd[bsd_idx].old_pos, &ctx->bsd[bsd_idx].true_pos, t);
}
|
test/charge_ramp.c: Format with clang-format
BRANCH=none
TEST=none | @@ -73,8 +73,8 @@ int board_is_vbus_too_low(int port, enum chg_ramp_vbus_state ramp_state)
vbus_low_current_ma;
}
-void board_set_charge_limit(int port, int supplier, int limit_ma,
- int max_ma, int max_mv)
+void board_set_charge_limit(int port, int supplier, int limit_ma, int max_ma,
+ int max_mv)
{
charge_limit_ma = limit_ma;
if (charge_limit_ma > overcurrent_current_ma)
@@ -96,9 +96,8 @@ static void plug_charger_with_ts(int supplier_type, int port, int min_current,
static void plug_charger(int supplier_type, int port, int min_current,
int vbus_low_current, int overcurrent_current)
{
- plug_charger_with_ts(supplier_type, port, min_current,
- vbus_low_current, overcurrent_current,
- get_time());
+ plug_charger_with_ts(supplier_type, port, min_current, vbus_low_current,
+ overcurrent_current, get_time());
}
static void unplug_charger(void)
@@ -442,14 +441,14 @@ static int test_equal_priority_overcurrent(void)
* switches to the other one.
*/
while (1) {
- plug_charger_with_ts(CHARGE_SUPPLIER_TEST4, 0, 500, 3000,
- 2000, oc_time);
+ plug_charger_with_ts(CHARGE_SUPPLIER_TEST4, 0, 500, 3000, 2000,
+ oc_time);
oc_time = get_time();
oc_time.val += 600 * MSEC;
if (wait_stable_no_overcurrent())
break;
- plug_charger_with_ts(CHARGE_SUPPLIER_TEST4, 1, 500, 3000,
- 2000, oc_time);
+ plug_charger_with_ts(CHARGE_SUPPLIER_TEST4, 1, 500, 3000, 2000,
+ oc_time);
oc_time = get_time();
oc_time.val += 600 * MSEC;
if (wait_stable_no_overcurrent())
|
Makefile: libunwind 1.2.1 (Ubuntu 19.10) wants liblzma
We see
ld.lld: error:
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libunwind-ptrace.so:
undefined reference to lzma_stream_buffer_decode
and so forth.
The BUILD_OSSFUZZ_STATIC branch doesn't need changing because
pkgconfig adds the -llzma. | @@ -51,7 +51,7 @@ ifeq ($(OS)$(findstring Microsoft,$(KERNEL)),Linux) # matches Linux but excludes
-lopcodes -lbfd -liberty -lz \
-Wl,-Bdynamic
else
- ARCH_LDFLAGS += -lunwind-ptrace -lunwind-generic -lunwind \
+ ARCH_LDFLAGS += -lunwind-ptrace -lunwind-generic -lunwind -llzma \
-lopcodes -lbfd
endif
ARCH_LDFLAGS += -lrt -ldl -lm
|
I modified build_visit to point to the tagged 2.13 release. | @@ -65,8 +65,8 @@ export SVN_THIRDPARTY_PATH=${SVN_THIRDPARTY_PATH-"trunk/third_party"}
# RC Branch:
###
#export TRUNK_BUILD="no"
-#export SVN_SOURCE_PATH="branches/2.12RC/src"
-#export SVN_THIRDPARTY_PATH="branches/2.12RC/third_party"
+#export SVN_SOURCE_PATH="branches/2.13RC/src"
+#export SVN_THIRDPARTY_PATH="branches/2.13RC/third_party"
###
|
pr_eaa: fix TLS handshake timeout error when running skopeo copy command
Use retry action to pull images multiple times. | @@ -86,8 +86,13 @@ jobs:
mv /root/inclavare-containers/${{ matrix.tag }}/verdict /usr/local/bin/'
- name: install sample image
- run: docker exec $inclavare_test bash -c 'mkdir /root/images && cd /root/images;
+ uses: nick-invision/retry@v2
+ with:
+ timeout_minutes: 120
+ max_attempts: 500
+ command: docker exec $inclavare_test bash -c 'mkdir /root/images && cd /root/images;
skopeo --insecure-policy copy docker://docker.io/library/alpine:latest oci:alpine'
+ on_retry_command: echo '******************[RETRY]******************'
- name: install configuration files
run: |
@@ -135,8 +140,12 @@ jobs:
docker exec $inclavare_test bash -c 'containerd' &
- name: Test generate encrypted container image
- run: |
- docker exec $inclavare_test bash -c 'cd /root/images/ && OCICRYPT_KEYPROVIDER_CONFIG=/etc/containerd/ocicrypt/ocicrypt_keyprovider.conf skopeo copy --insecure-policy --encryption-key provider:eaa:${{ env.UUID }} oci:alpine oci:${{ env.ENCRYPTED_IMAGE }}-${{ matrix.tag }}'
+ uses: nick-invision/retry@v2
+ with:
+ timeout_minutes: 120
+ max_attempts: 500
+ command: docker exec $inclavare_test bash -c 'cd /root/images/ && OCICRYPT_KEYPROVIDER_CONFIG=/etc/containerd/ocicrypt/ocicrypt_keyprovider.conf skopeo copy --insecure-policy --encryption-key provider:eaa:${{ env.UUID }} oci:alpine oci:${{ env.ENCRYPTED_IMAGE }}-${{ matrix.tag }}'
+ on_retry_command: echo '******************[RETRY]******************'
- name: generate policy file
run: |
|
changed execution ID format, cause Azure doesn't like ":" character | @@ -72,7 +72,7 @@ def main():
def generate_execution_id(target):
- return f"{target}:{datetime.now().isoformat()}"
+ return f"{target}_{datetime.now().isoformat()}".replace(":", "_")
if __name__ == '__main__':
|
Aligned PMU function prototypes and definitions for PMU counter overflow and interrupt enable functions.
Fixed spacing issue with some comments. | * @file pmu_armv8.h
* @brief CMSIS PMU API for Armv8.1-M PMU
* @version V1.0.0
- * @date 18. March 2020
+ * @date 24. March 2020
******************************************************************************/
/*
* Copyright (c) 2020 Arm Limited. All rights reserved.
@@ -184,11 +184,11 @@ __STATIC_INLINE void ARM_PMU_CNTR_Disable(uint32_t mask);
__STATIC_INLINE uint32_t ARM_PMU_Get_CCNTR(void);
__STATIC_INLINE uint32_t ARM_PMU_Get_EVCNTR(uint32_t num);
-__STATIC_INLINE uint32_t ARM_PMU_CNTR_Get_OVSSET(uint32_t mask);
-__STATIC_INLINE void ARM_PMU_CNTR_Set_OVSCLR(uint32_t mask);
+__STATIC_INLINE uint32_t ARM_PMU_Get_CNTR_OVS(void);
+__STATIC_INLINE void ARM_PMU_Set_CNTR_OVS(uint32_t mask);
-__STATIC_INLINE void ARM_PMU_Set_INTSET(uint32_t mask);
-__STATIC_INLINE void ARM_PMU_Set_INTCLR(uint32_t mask);
+__STATIC_INLINE void ARM_PMU_Set_CNTR_IRQ_Enable(uint32_t mask);
+__STATIC_INLINE void ARM_PMU_Set_CNTR_IRQ_Disable(uint32_t mask);
__STATIC_INLINE void ARM_PMU_CNTR_Increment(uint32_t mask);
|
Do not show fps_limit if unlimited | @@ -485,9 +485,10 @@ void HudElements::resolution(){
void HudElements::show_fps_limit(){
int fps = 0;
double frame_time = (double)fps_limit_stats.targetFrameTime.count()/1000000;
- if (frame_time > 0.0){
- fps = (1 / frame_time) *1000;
+ if (frame_time == 0.0){
+ return;
}
+ fps = (1 / frame_time) *1000;
ImGui::TableNextRow();
ImGui::PushFont(HUDElements.sw_stats->font1);
ImGui::TextColored(HUDElements.colors.engine, "%s","FPS limit");
|
Docs: Added UIScale in Sample.plist | <key>prev-lang:kbd</key>
<data>cnU6MTk0NTY=</data>
</dict>
+ <key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
+ <dict>
+ <key>UIScale</key>
+ <data>AQ==</data>
+ </dict>
</dict>
<key>Block</key>
<dict>
<array>
<string>boot-args</string>
</array>
+ <key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
+ <array>
+ <string>UIScale</string>
+ </array>
</dict>
</dict>
<key>PlatformInfo</key>
|
hs_recved must be increased by the amount of UDP packet payload | @@ -4695,7 +4695,8 @@ static int conn_recv_handshake_cpkt(ngtcp2_conn *conn, const ngtcp2_path *path,
const uint8_t *pkt, size_t pktlen,
ngtcp2_tstamp ts) {
ngtcp2_ssize nread;
- size_t origlen = pktlen;
+
+ conn->hs_recved += pktlen;
while (pktlen) {
nread = conn_recv_handshake_pkt(conn, path, pkt, pktlen, ts);
@@ -4704,13 +4705,13 @@ static int conn_recv_handshake_cpkt(ngtcp2_conn *conn, const ngtcp2_path *path,
return (int)nread;
}
if (nread == NGTCP2_ERR_DISCARD_PKT) {
- goto fin;
+ break;
}
if (nread != NGTCP2_ERR_CRYPTO && (pkt[0] & NGTCP2_HEADER_FORM_BIT) &&
/* Not a Version Negotiation packet */
pktlen > 4 && ngtcp2_get_uint32(&pkt[1]) > 0 &&
ngtcp2_pkt_get_type_long(pkt[0]) == NGTCP2_PKT_INITIAL) {
- goto fin;
+ break;
}
return (int)nread;
}
@@ -4723,9 +4724,6 @@ static int conn_recv_handshake_cpkt(ngtcp2_conn *conn, const ngtcp2_path *path,
"read packet %td left %zu", nread, pktlen);
}
- conn->hs_recved += origlen;
-
-fin:
switch (conn->state) {
case NGTCP2_CS_CLOSING:
return NGTCP2_ERR_CLOSING;
|
build/configs/esp32_DevKitC: Modify esp32_DevKitC/tc defconfig
Enable kernel testcase: round robin task scheduler test. | @@ -272,7 +272,7 @@ CONFIG_DEV_CONSOLE=y
CONFIG_NFILE_DESCRIPTORS=8
CONFIG_NFILE_STREAMS=8
CONFIG_NAME_MAX=32
-# CONFIG_PRIORITY_INHERITANCE is not set
+CONFIG_PRIORITY_INHERITANCE=y
#
# RTOS hooks
@@ -436,7 +436,7 @@ CONFIG_UART1_2STOP=0
# Wireless Device Options
#
# CONFIG_DRIVERS_WIRELESS is not set
-# CONFIG_KERNEL_TEST_DRV is not set
+CONFIG_KERNEL_TEST_DRV=y
#
# Networking Support
@@ -730,7 +730,7 @@ CONFIG_TC_KERNEL_LIBC_UNISTD=y
CONFIG_TC_KERNEL_LIBC_SYSLOG=y
CONFIG_TC_KERNEL_MQUEUE=y
CONFIG_TC_KERNEL_PTHREAD=y
-# CONFIG_TC_KERNEL_ROUNDROBIN is not set
+CONFIG_TC_KERNEL_ROUNDROBIN=y
CONFIG_TC_KERNEL_SCHED=y
CONFIG_TC_KERNEL_SEMAPHORE=y
CONFIG_TC_KERNEL_SIGNAL=y
|
Added documentation + added void for no parameter methods | @@ -225,12 +225,33 @@ void PAL_setPaletteColorsDMA(u16 index, const Palette* pal);
*/
void PAL_setPaletteDMA(u16 numPal, const u16* pal);
-
-// these functions should be private as they are called by PAL_fadeXXX functions internally
-// but they can be useful sometime for better control on the fading processus
+/**
+ * \brief
+ * Initialize a fading operation that will be manually controlled through #PAL_doFadeStep() calls
+ *
+ * \param fromCol
+ * Start color index for the fade operation (0-63).
+ * \param toCol
+ * End color index for the fade operation (0-63 and >= fromCol).
+ * \param palSrc
+ * Fade departure palette.
+ * \param palDst
+ * Fade arrival palette.
+ * \param numFrame
+ * Duration of palette fading in number of frame.
+ *
+ * \see PAL_doFadeStep(..)
+ */
bool PAL_initFade(u16 fromCol, u16 toCol, const u16* palSrc, const u16* palDst, u16 numFrame);
-bool PAL_doFadeStep();
-
+/**
+ * \brief
+ * Update palette to process one iteration of current fade operation (see #PAL_initFade(..) method)
+ *
+ * \return TRUE when fading operation is not yet complete, FALSE otherwise
+ *
+ * \see PAL_initFade(..)
+ */
+bool PAL_doFadeStep(void);
/**
* \brief
@@ -449,17 +470,17 @@ void PAL_fadeInAll(const u16* pal, u16 numFrame, bool async);
* \brief
* Returns TRUE if currently doing a asynchronous fade operation.
*/
-bool PAL_isDoingFade();
+bool PAL_isDoingFade(void);
/**
* \brief
* Wait for palette fading operation to complete (for asynchrone fading).
*/
-void PAL_waitFadeCompletion();
+void PAL_waitFadeCompletion(void);
/**
* \brief
* Interrupt any asynchronous palette fading effect.
*/
-void PAL_interruptFade();
+void PAL_interruptFade(void);
#endif // _VDP_PAL_H_
|
HTML version should run on 60 FPS only, because some video cards have 100 Hz refresh rate | @@ -2728,7 +2728,7 @@ s32 main(s32 argc, char **argv)
}
else createFileSystem(NULL, onFSInitialized);
- emscripten_set_main_loop(tick, TIC_FRAMERATE == 60 ? 0 : TIC_FRAMERATE, 1);
+ emscripten_set_main_loop(tick, TIC_FRAMERATE, 1);
#else
createFileSystem(argc > 1 && fsExists(argv[1]) ? fsBasename(argv[1]) : NULL, onFSInitialized);
|
Fix license authors | /******************************************************************************/
/**
@file standard_file_template.h
-@author Lawrence, Fazackerley, Douglas, Huang, Klamut, Penson,
-Wallperington, Wardle . All rights reserved.
+@author Lawrence, Fazackerley, Douglas, Huang, Klamut, Penson, Wardle. All rights reserved.
@copyright Copyright 2017
The University of British Columbia,
IonDB Project Contributors (see AUTHORS.md)
|
provisioning/warewulf-ipmi: restore ipmitool included with WW logic | @@ -74,7 +74,7 @@ cd %{_builddir}
%files
%doc AUTHORS ChangeLog INSTALL NEWS README TODO COPYING
-%if ! %{localipmi}
+%if %{localipmi}
%{_libexecdir}/warewulf/ipmitool
%endif
%{perl_vendorlib}/Warewulf/Ipmi.pm
|
CLEANUP: do 10us sleep instead of sched_yield(). | #include <string.h>
#include <time.h>
#include <assert.h>
-#include <sched.h>
#include <inttypes.h>
#include <sys/time.h> /* gettimeofday() */
@@ -5747,11 +5746,11 @@ static void *collection_delete_thread(void *arg)
struct default_engine *engine = arg;
hash_item *it;
coll_meta_info *info;
+ struct timespec sleep_time = {0, 0};
int current_ssl;
uint32_t evict_count;
uint32_t bg_evict_count = 0;
bool bg_evict_start = false;
- struct timespec bg_evict_sleep = {0, 0};
while (engine->initialized) {
it = pop_coll_del_queue();
@@ -5766,7 +5765,8 @@ static void *collection_delete_thread(void *arg)
if (info->ccnt > 0) {
UNLOCK_CACHE();
if (slabs_space_shortage_level() < 10) {
- sched_yield();
+ sleep_time.tv_nsec = 10000; /* 10 us */
+ nanosleep(&sleep_time, NULL);
}
LOCK_CACHE();
}
@@ -5806,8 +5806,8 @@ static void *collection_delete_thread(void *arg)
}
bg_evict_count = 0;
}
- bg_evict_sleep.tv_nsec = 10000000 / current_ssl;
- nanosleep(&bg_evict_sleep, NULL);
+ sleep_time.tv_nsec = 10000000 / current_ssl; /* 10000us / ssl */
+ nanosleep(&sleep_time, NULL);
} else {
if (bg_evict_start == true) {
/*****
|
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.