message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
Add smarter array countof macro for gcc/clang | @@ -111,6 +111,18 @@ Usz usz_clamp(Usz val, Usz min, Usz max) {
return val;
}
+#if defined(__GNUC__) || defined(__clang__)
+#define ORCA_ASSERT_IS_ARRAY(_array) \
+ (sizeof(char[1 - 2 * __builtin_types_compatible_p( \
+ __typeof(_array), __typeof(&(_array)[0]))]) - \
+ 1)
+#define ORCA_ARRAY_COUNTOF(_array) \
+ (sizeof(_array) / sizeof((_array)[0]) + ORCA_ASSERT_IS_ARRAY(_array))
+#else
+// pray
+#define ORCA_ARRAY_COUNTOF(_array) (sizeof(_array) / sizeof(_array[0]))
+#endif
+
#define ORCA_EXPAND_SOLO_OPER_CHARS(_oper_char, _oper_name) \
Orca_oper_char_##_oper_name = _oper_char,
#define ORCA_EXPAND_DUAL_OPER_CHARS(_upper_oper_char, _lower_oper_char, \
@@ -186,9 +198,11 @@ Usz usz_clamp(Usz val, Usz min, Usz max) {
_delta_x, Mark_flag_lock)
#define STORE(_i32_array) \
- oper_bank_store(bank_params, width, y, x, _i32_array, sizeof(_i32_array) / sizeof(I32))
+ oper_bank_store(bank_params, width, y, x, _i32_array, \
+ ORCA_ARRAY_COUNTOF(_i32_array))
#define LOAD(_i32_array) \
- oper_bank_load(bank_params, width, y, x, _i32_array, sizeof(_i32_array) / sizeof(I32))
+ oper_bank_load(bank_params, width, y, x, _i32_array, \
+ ORCA_ARRAY_COUNTOF(_i32_array))
#define IN Mark_flag_input
#define OUT Mark_flag_output
|
Removed dead code in EIP712 JSON handling python test code | @@ -4,27 +4,19 @@ import os
import json
import sys
import re
-from enum import IntEnum, auto
import hashlib
from ecdsa import SigningKey
from ecdsa.util import sigencode_der
-import pdb
from ethereum_client import EthereumClient, EIP712FieldType
import base64
# global variables
app_client: EthereumClient = None
-parser = None
-trans = None
filtering_paths = None
current_path = list()
sig_ctx = {}
-class ArrayType(IntEnum):
- dynamic = 0
- fixed_size = auto()
-
# From a string typename, extract the type and all the array depth
@@ -168,9 +160,6 @@ def encode_string(value, typesize):
data.append(ord(char))
return data
-def encode_byte(value, typesize):
- return bytearray()
-
def encode_bytes_fix(value, typesize):
return encode_hex_string(value, typesize)
@@ -252,27 +241,6 @@ def send_struct_impl(structs, data, structname):
return False
return True
-def send_sign():
- bip32path = bytearray.fromhex("8000002c8000003c800000000000000000000000")
- path_len = bytearray()
- path_len.append(int(len(bip32path) / 4))
- #send_apdu(INS_SIGN, 0x00, P2_VERS_NEW, path_len + bip32path)
- print("send_apdu(INS_SIGN, 0x00, P2_VERS_NEW, path_len + bip32path)")
-
-#def send_filtering_activate():
-# #send_apdu(INS_FILTERING, P1_ACTIVATE, 0x00, bytearray())
-# print("send_apdu(INS_FILTERING, P1_ACTIVATE, 0x00, bytearray())")
-#
-def send_filtering_info(p1, display_name, sig):
- payload = bytearray()
- payload.append(len(display_name))
- for char in display_name:
- payload.append(ord(char))
- payload.append(len(sig))
- payload += sig
- #send_apdu(INS_FILTERING, p1, 0x00, payload)
- print("send_apdu(INS_FILTERING, p1, 0x00, payload)")
-
# ledgerjs doesn't actually sign anything, and instead uses already pre-computed signatures
def send_filtering_contract_name(display_name: str):
global sig_ctx
|
Added basic checks for using viz tool as library | @@ -49,6 +49,9 @@ function add_lighthouse(idx, p, q) {
}
function recolorTrackers(when) {
+ if(ctx == undefined)
+ return;
+
for (var key in angles) {
var colors = [];
@@ -501,6 +504,6 @@ function animate() {
}
function render() {
- var use_fpv = $("#fpv")[0].checked;
+ var use_fpv = $("#fpv").length > 0 && $("#fpv")[0].checked;
renderer.render(scene, use_fpv ? fpv_camera : camera);
}
|
[sdio] Fixed error for dma size calculation. | @@ -394,7 +394,7 @@ rt_int32_t rt_mmcsd_blk_probe(struct rt_mmcsd_card *card)
break;
}
- blk_dev->max_req_size = BLK_MIN((card->host->max_seg_size *
+ blk_dev->max_req_size = BLK_MIN((card->host->max_dma_segs *
card->host->max_seg_size) >> 9,
(card->host->max_blk_count *
card->host->max_blk_size) >> 9);
|
bitcoin-utils: fix perf issue | =+ (rsh [3 2] -)
:: Parse hex to atom
::
- :: TODO: replace with (met 3 h)
- :- (div (met 3 h) 2)
- `@ux`(rash - hex)
+ =/ a (need (de:base16:mimes:html -))
+ [-.a `@ux`+.a]
::
++ to-cord
~/ %to-cord
|
Python3 mode | @@ -264,7 +264,7 @@ class TestGribMessage(unittest.TestCase):
"""Message can be serialized to file."""
with GribFile(TESTGRIB) as grib_file:
msg = GribMessage(grib_file)
- with open(TEST_OUTPUT, "w") as test:
+ with open(TEST_OUTPUT, "wb") as test:
msg.write(test)
os.unlink(TEST_OUTPUT)
@@ -388,7 +388,7 @@ class TestBufrMessage(unittest.TestCase):
"""Message can be serialized to file."""
with BufrFile(TESTBUFR) as bufr_file:
msg = BufrMessage(bufr_file)
- with open(TEST_OUTPUT, "w") as test:
+ with open(TEST_OUTPUT, "wb") as test:
msg.write(test)
os.unlink(TEST_OUTPUT)
@@ -439,7 +439,7 @@ class TestBufrMessage(unittest.TestCase):
bufr['unexpandedDescriptors'] = ivalues
bufrin.unpack()
bufrin.copy_data(bufr)
- with open(TEST_OUTPUT, 'w') as test:
+ with open(TEST_OUTPUT, 'wb') as test:
bufr.write(test)
os.unlink(TEST_OUTPUT)
|
Add JS interop to web build. | @@ -51,6 +51,17 @@ static int enter_loop(void) {
return 0;
}
+/* Allow JS interop from within janet */
+static int cfun_js(JanetArgs args) {
+ const uint8_t *bytes;
+ int32_t len;
+ JANET_FIXARITY(args, 1);
+ JANET_ARG_BYTES(bytes, len, args, 0);
+ (void) len;
+ emscripten_run_script((const char *)bytes);
+ JANET_RETURN_NIL(args);
+}
+
/* Intialize the repl */
EMSCRIPTEN_KEEPALIVE
void repl_init(void) {
@@ -65,6 +76,10 @@ void repl_init(void) {
janet_def(env, "repl-yield", janet_wrap_cfunction(repl_yield));
janet_register("repl-yield", janet_wrap_cfunction(repl_yield));
+ /* Janet line getter */
+ janet_def(env, "js", janet_wrap_cfunction(cfun_js));
+ janet_register("js", janet_wrap_cfunction(cfun_js));
+
/* Run startup script */
Janet ret;
status = janet_dobytes(env, janet_gen_webinit, sizeof(janet_gen_webinit), "webinit.janet", &ret);
|
Optimize NumUtil_encode_bigend_* functions
Make GCC generate bswap instructions. For details see: | @@ -217,48 +217,40 @@ lucy_NumUtil_is_bigend() {
static CFISH_INLINE void
lucy_NumUtil_encode_bigend_u16(uint16_t value, void *dest_ptr) {
uint8_t *dest = *(uint8_t**)dest_ptr;
- if (lucy_NumUtil_is_bigend()) {
- memcpy(dest, &value, sizeof(uint16_t));
- }
- else {
- uint8_t *source = (uint8_t*)&value;
- dest[0] = source[1];
- dest[1] = source[0];
+ if (!lucy_NumUtil_is_bigend()) {
+ value = ((value & 0xFF00) >> 8) | ((value & 0x00FF) << 8);
}
+ memcpy(dest, &value, sizeof(uint16_t));
}
static CFISH_INLINE void
lucy_NumUtil_encode_bigend_u32(uint32_t value, void *dest_ptr) {
uint8_t *dest = *(uint8_t**)dest_ptr;
- if (lucy_NumUtil_is_bigend()) {
- memcpy(dest, &value, sizeof(uint32_t));
- }
- else {
- uint8_t *source = (uint8_t*)&value;
- dest[0] = source[3];
- dest[1] = source[2];
- dest[2] = source[1];
- dest[3] = source[0];
+ if (!lucy_NumUtil_is_bigend()) {
+ value =
+ ((value & 0xFF000000) >> 24) |
+ ((value & 0x00FF0000) >> 8) |
+ ((value & 0x0000FF00) << 8) |
+ ((value & 0x000000FF) << 24);
}
+ memcpy(dest, &value, sizeof(uint32_t));
}
static CFISH_INLINE void
lucy_NumUtil_encode_bigend_u64(uint64_t value, void *dest_ptr) {
uint8_t *dest = *(uint8_t**)dest_ptr;
- if (lucy_NumUtil_is_bigend()) {
- memcpy(dest, &value, sizeof(uint64_t));
- }
- else {
- uint8_t *source = (uint8_t*)&value;
- dest[0] = source[7];
- dest[1] = source[6];
- dest[2] = source[5];
- dest[3] = source[4];
- dest[4] = source[3];
- dest[5] = source[2];
- dest[6] = source[1];
- dest[7] = source[0];
+ if (!lucy_NumUtil_is_bigend()) {
+ value =
+ ((value & 0xFF00000000000000) >> 56) |
+ ((value & 0x00FF000000000000) >> 40) |
+ ((value & 0x0000FF0000000000) >> 24) |
+ ((value & 0x000000FF00000000) >> 8) |
+ ((value & 0x00000000FF000000) << 8) |
+ ((value & 0x0000000000FF0000) << 24) |
+ ((value & 0x000000000000FF00) << 40) |
+ ((value & 0x00000000000000FF) << 56);
}
+ memcpy(dest, &value, sizeof(uint64_t));
}
static CFISH_INLINE uint16_t
|
GopStop: MaxMode is actually a number of modes | @@ -106,7 +106,7 @@ AnalyzeGopHandle (
Height = 0;
NewMode = -1;
- for (Index = 0; Index <= Gop->Mode->MaxMode; ++Index) {
+ for (Index = 0; Index < Gop->Mode->MaxMode; ++Index) {
Status = Gop->QueryMode (
Gop,
Index,
|
docs: indicate new xCAT recipe is using stateful on title page | @@ -18,6 +18,12 @@ Edition for Linux*} (\arch{})} \\
{\color{logoblue}\noindent\rule{6.15in}{1.2pt}} \\ \vspace{0.2cm}
+\iftoggleverb{isxCATstateful}
+\vspace*{0.25cm}
+\noindent{\large\color{logodarkgrey}\fontfamily{phv}\selectfont{Stateful
+Provisioning}}
+\fi
+
\vspace*{2in}
\noindent{\small \color{black} Document Last Update: \VCDateISO} \vspace*{0.1cm} \\
|
[mod_cgi] cygwin supports CGI file I/O redirection
remove the special-case which disabled this for issue in older cygwin | @@ -765,7 +765,6 @@ static int cgi_create_env(request_st * const r, plugin_data * const p, handler_c
}
to_cgi_fds[0] = -1;
- #ifndef __CYGWIN__
if (0 == r->reqbody_length) {
/* future: might keep fd open in p->devnull for reuse
* and dup() here, or do not close() (later in this func) */
@@ -797,7 +796,6 @@ static int cgi_create_env(request_st * const r, plugin_data * const p, handler_c
to_cgi_fds[1] = -1;
}
}
- #endif
unsigned int bufsz_hint = 16384;
#ifdef _WIN32
|
chat: split and send mixed messages sequentially
Hot and cold in that order. This amends the behaviour of messages
with text and URLs to submit them in order of found URL,
instead of batching the URLs at the end. | @@ -150,33 +150,43 @@ export class ChatInput extends Component {
return;
}
- let URLs = [];
- let letter = state.message.split(" ").map((each) => {
+ let message = [];
+ state.message.split(" ").map((each) => {
if (this.isUrl(each)) {
- let URL = this.getLetterType(each);
- URLs.push(URL);
- }
- else {
- return each;
+ if (message.length > 0) {
+ message = message.join(" ");
+ message = this.getLetterType(message);
+ props.api.chat.message(
+ props.station,
+ `~${window.ship}`,
+ Date.now(),
+ message
+ );
+ message = [];
}
- }).join(" ");
-
- letter = this.getLetterType(letter);
-
+ let URL = this.getLetterType(each);
props.api.chat.message(
props.station,
`~${window.ship}`,
Date.now(),
- letter
+ URL
);
+ }
+ else {
+ return message.push(each);
+ }
+ })
- for (let each of URLs) {
+ if (message.length > 0) {
+ message = message.join(" ");
+ message = this.getLetterType(message);
props.api.chat.message(
props.station,
`~${window.ship}`,
Date.now(),
- each
+ message
);
+ message = [];
}
// perf: setTimeout(this.closure, 2000);
|
Fix no-deprecated configuration
pem_read_depr_test needed to be setup in build info so that it only
exists inside an IF[{- !$disabled{'deprecated-3.0'} -}] block. | @@ -57,8 +57,7 @@ IF[{- !$disabled{tests} -}]
http_test servername_test ocspapitest fatalerrtest tls13ccstest \
sysdefaulttest errtest ssl_ctx_test gosttest \
context_internal_test aesgcmtest params_test evp_pkey_dparams_test \
- keymgmt_internal_test hexstr_test provider_status_test defltfips_test \
- pem_read_depr_test
+ keymgmt_internal_test hexstr_test provider_status_test defltfips_test
IF[{- !$disabled{'deprecated-3.0'} -}]
PROGRAMS{noinst}=enginetest
@@ -810,6 +809,7 @@ IF[{- !$disabled{tests} -}]
DEPEND[bio_prefix_text]=../libcrypto
IF[{- !$disabled{'deprecated-3.0'} -}]
+ PROGRAMS{noinst}=pem_read_depr_test
SOURCE[pem_read_depr_test]=pem_read_depr_test.c
INCLUDE[pem_read_depr_test]=../include ../apps/include
DEPEND[pem_read_depr_test]=../libcrypto libtestutil.a
|
uses /static.udon instead of /static.umd for confirmation requests | =/ =wire (http-wire try %check-before)
=/ url=purl:eyre
:- [sec=| por=~ host=[%| `@if`p.tar.u.rel]]
- [[ext=`~.umd path=/static] query=~]
+ [[ext=`~.udon path=/static] query=~]
(emit (request wire url %get ~ ~))
:: +fail: %direct target is invalid or inaccessible
::
=/ =wire (http-wire try %check-after)
=/ url=purl:eyre
:- [sec=| por=~ host=[%& dom]]
- [[ext=`~.umd path=/static] query=~]
+ [[ext=`~.udon path=/static] query=~]
(emit (request wire url %get ~ ~))
:: +bake: successfully bound
::
|
Fix redefinition. | @@ -238,9 +238,9 @@ typedef struct {
#include <stdio.h>
/* Names of all of the types */
-extern const char *const janet_type_names[16];
-extern const char *const janet_signal_names[14];
-extern const char *const janet_status_names[16];
+JANET_API const char *const janet_type_names[16];
+JANET_API const char *const janet_signal_names[14];
+JANET_API const char *const janet_status_names[16];
/* Fiber signals */
typedef enum {
@@ -1261,9 +1261,6 @@ JANET_API int janet_verify(JanetFuncDef *def);
/* Pretty printing */
#define JANET_PRETTY_COLOR 1
JANET_API JanetBuffer *janet_pretty(JanetBuffer *buffer, int depth, int flags, Janet x);
-JANET_API const char *const janet_type_names[16];
-JANET_API const char *const janet_signal_names[14];
-JANET_API const char *const janet_status_names[16];
/* Misc */
JANET_API int janet_equals(Janet x, Janet y);
|
Add missing Starkex v2 configuration flag | @@ -15,6 +15,7 @@ void handleGetAppConfiguration(uint8_t p1, uint8_t p2, uint8_t *workBuffer, uint
#endif
#ifdef HAVE_STARKWARE
G_io_apdu_buffer[0] |= APP_FLAG_STARKWARE;
+ G_io_apdu_buffer[0] |= APP_FLAG_STARKWARE_V2;
#endif
G_io_apdu_buffer[1] = LEDGER_MAJOR_VERSION;
G_io_apdu_buffer[2] = LEDGER_MINOR_VERSION;
|
Fix avatar font index in compileEntityEvents test now that dummy font has been added | @@ -118,7 +118,7 @@ ___bank_testname = 255
_testname::
; Text Dialogue
VM_LOAD_TEXT 0
- .asciz "\\001\\001\\002\\001@A\\nBC\\001\\003\\004\\001\\377\\002\\001HELLO WORLD"
+ .asciz "\\001\\001\\002\\002@A\\nBC\\001\\003\\004\\001\\377\\002\\001HELLO WORLD"
VM_OVERLAY_CLEAR 0, 0, 20, 4, .UI_COLOR_WHITE, ^/(.UI_AUTO_SCROLL | .UI_DRAW_FRAME)/
VM_OVERLAY_MOVE_TO 0, 14, .OVERLAY_TEXT_IN_SPEED
VM_DISPLAY_TEXT
|
Mention GitHub Desktop | @@ -63,7 +63,9 @@ Avoid intermediate merge commits. [Rebase](https://www.atlassian.com/git/tutoria
1. `git push`
1. [Create a pull request](https://help.github.com/articles/creating-a-pull-request/) (PR) on GitHub.
-This is just one way of doing things. If you're proficient in Git matters you're free to choose your own. If you want to read more then the [GitHub chapter in the Git book](http://git-scm.com/book/en/v2/GitHub-Contributing-to-a-Project#The-GitHub-Flow) is a way to start. [GitHub's own documentation](https://help.github.com/categories/collaborating/) contains a wealth of information as well.
+This is just one way of doing things. If you're proficient in Git matters you're free to choose your own. If you want to read more then the [GitHub chapter in the Git book](http://git-scm.com/book/en/v2/GitHub-Contributing-to-a-Project#The-GitHub-Flow) is a way to start. [GitHub's own documentation](https://help.github.com/categories/collaborating-with-issues-and-pull-requests/) contains a wealth of information as well.
+
+As a Windows or Mac user you could also resort to [GitHub Desktop](https://desktop.github.com/). It's a mature GUI application that supports most of the tasks outlined above.
### Keeping your fork in sync
You need to sync your fork with the NodeMCU upstream repository from time to time, latest before you rebase (see flow above).
|
include use of ${compute_prefix} to aarch64/sles12 recipe | @@ -341,11 +341,11 @@ example configuration.
% ohpc_validation_newline
% ohpc_validation_comment Update basic slurm configuration if additional computes defined
% ohpc_command if [ ${num_computes} -gt 4 ];then
-% ohpc_command perl -pi -e "s/^NodeName=(\S+)/NodeName=c[1-${num_computes}]/" /etc/slurm/slurm.conf
-% ohpc_command perl -pi -e "s/^PartitionName=normal Nodes=(\S+)/PartitionName=normal Nodes=c[1-${num_computes}]/" /etc/slurm/slurm.conf
+% ohpc_command perl -pi -e "s/^NodeName=(\S+)/NodeName=${compute_prefix}[1-${num_computes}]/" /etc/slurm/slurm.conf
+% ohpc_command perl -pi -e "s/^PartitionName=normal Nodes=(\S+)/PartitionName=normal Nodes=${compute_prefix}[1-${num_computes}]/" /etc/slurm/slurm.conf
-% ohpc_command perl -pi -e "s/^NodeName=(\S+)/NodeName=c[1-${num_computes}]/" $CHROOT/etc/slurm/slurm.conf
-% ohpc_command perl -pi -e "s/^PartitionName=normal Nodes=(\S+)/PartitionName=normal Nodes=c[1-${num_computes}]/" $CHROOT/etc/slurm/slurm.conf
+% ohpc_command perl -pi -e "s/^NodeName=(\S+)/NodeName=${compute_prefix}[1-${num_computes}]/" $CHROOT/etc/slurm/slurm.conf
+% ohpc_command perl -pi -e "s/^PartitionName=normal Nodes=(\S+)/PartitionName=normal Nodes=${compute_prefix}[1-${num_computes}]/" $CHROOT/etc/slurm/slurm.conf
% ohpc_command fi
% end_ohpc_run
|
fixes mem leak | @@ -43,6 +43,7 @@ namespace celix {
auto fwCtx = std::make_shared<celix::BundleContext>(celix_framework_getFrameworkContext(cFw));
std::shared_ptr<celix::Framework> framework{new celix::Framework{std::move(fwCtx), cFw}, [](celix::Framework* fw) {
celix_frameworkFactory_destroyFramework(fw->getCFramework());
+ delete fw;
}};
return framework;
}
|
Improve error handling; | @@ -115,7 +115,7 @@ void lovrInit(lua_State* L, int argc, char** argv) {
" end "
"}, { "
" __index = function(self, event) "
- " error('Unknown event: ', event) "
+ " error('Unknown event: ' .. tostring(event)) "
" end "
"}) "
@@ -153,8 +153,8 @@ void lovrInit(lua_State* L, int argc, char** argv) {
" end "
"end "
- "function lovr.errhand(message, layer) "
- " local stackTrace = debug.traceback('Error: ' .. tostring(message), 1 + (layer or 2)) "
+ "function lovr.errhand(message) "
+ " local stackTrace = debug.traceback('Error: ' .. tostring(message), 1) "
" local message = stackTrace:gsub('\\n[^\\n]+$', ''):gsub('\\t', ''):gsub('stack traceback', 'Stack') "
" print(message) "
" lovr.graphics.setBackgroundColor(26, 25, 28) "
|
meta: add mingw build action | @@ -94,3 +94,21 @@ jobs:
- run: nix-build -A hs.urbit-king.components.exes.urbit-king --arg enableStatic true
- run: nix-build -A hs-checks
- run: nix-build shell.nix
+
+ mingw:
+ runs-on: windows-latest
+ defaults:
+ run:
+ shell: C:\msys64\msys2_shell.cmd -mingw64 -defterm -no-start -here -c ". <(cygpath '{0}')"
+
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ lfs: true
+
+ # echo suppresses pacman prompt
+ - run: echo|./configure
+ working-directory: ./pkg/urbit
+
+ - run: make build/urbit build/urbit-worker
+ working-directory: ./pkg/urbit
|
xfconf-plugin: Update man page | @@ -90,6 +90,8 @@ line \fIline/\fR reads/writes any file line by line
yajl \fIyajl/\fR reads/writes JSON\.
.IP "\(bu" 4
augeas \fIaugeas/\fR reads/writes many different configuration files using the Augeas library
+.IP "\(bu" 4
+xfconf \fIxfconf/\fR reads/writes to arbitrary xfconf channels
.IP "" 0
.P
Using semi\-structured data for config files, mainly suitable for spec\-namespace (put a focus on having nice syntax for metadata):
|
apps/Make.defs: Fix an error introduced with recent chagne. MKKCONFIG may not be defined resulting in failure to create apps/Kconfig. | @@ -60,15 +60,12 @@ endif
ifeq ($(DIRLINK),)
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
- MKKCONFIG = $(APPDIR)\tools\mkkconfig.bat
DIRLINK = $(TOPDIR)\tools\link.bat
DIRUNLINK = $(TOPDIR)\tools\unlink.bat
else ifeq ($(CONFIG_WINDOWS_MSYS),y)
- MKKCONFIG = $(APPDIR)/tools/mkkconfig.sh
DIRLINK = $(TOPDIR)$(DELIM)tools$(DELIM)copydir.sh
DIRUNLINK = $(TOPDIR)$(DELIM)tools$(DELIM)unlink.sh
else
- MKKCONFIG = $(APPDIR)/tools/mkkconfig.sh
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
ifeq ($(WINTOOL),y)
DIRLINK = $(TOPDIR)/tools/copydir.sh
@@ -78,6 +75,14 @@ endif
endif
endif
+ifeq ($(CONFIG_WINDOWS_NATIVE),y)
+ MKKCONFIG = $(APPDIR)\tools\mkkconfig.bat
+else ifeq ($(CONFIG_WINDOWS_MSYS),y)
+ MKKCONFIG = $(APPDIR)/tools/mkkconfig.sh
+else
+ MKKCONFIG = $(APPDIR)/tools/mkkconfig.sh
+endif
+
ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif
|
gh-actions: only run SDE tests on extensions not tested by Travis
SDE is unreasonably slow, but unfortunately it's the only option I'm
aware of. QEMU would be awesome, but it doesn't support several
relevant extensions. | @@ -77,9 +77,11 @@ jobs:
run: ~/.local/bin/meson setup build -Db_coverage=true
- name: Build
run: ninja -C build -v
+ # SDE is unreasonable slow, so only test the code which isn't
+ # already tested on Travis.
- name: Test
run: |
- sde/sde64 -- ./build/test/run-tests --list | grep -oP '^/([^\/]+)/([^\/]+)' | sort -u | xargs parallel sde/sde64 -- ./build/test/run-tests --color always {} :::
+ echo /x86/{gfni,avx512dq} | sort -u | xargs parallel sde/sde64 -- ./build/test/run-tests --color always {} :::
- name: Coverage Report
run: ninja -C build -v coverage-xml
- name: CodeCov.io
|
Add Actor collisions to Adventure | @@ -52,26 +52,15 @@ void Update_Adventure() {
player.rerender = TRUE;
}
- // player.pos.x += player.dir.x;
- // player.pos.y += player.dir.y;
-
tile_x = (player.pos.x + 4) >> 3;
tile_y = (player.pos.y) >> 3;
if (INPUT_A_PRESSED) {
- if (player.dir.x == 1) {
- hit_actor = ActorAtTile(tile_x + 2, tile_y, TRUE);
- } else {
- hit_actor = ActorAtTile(tile_x - 1, tile_y, TRUE);
- }
+ hit_actor = ActorInFrontOfPlayer();
if (hit_actor != NO_ACTOR_COLLISON) {
ScriptStart(&actors[hit_actor].events_ptr);
}
}
- //
- // vel_y = MIN(vel_y, MAX_FALL_VEL);
- // pos_y += vel_y >> 8;
- // tile_y = pos_y >> 7;
// Left Collision
if (player.dir.x < 0) {
@@ -124,4 +113,17 @@ void Update_Adventure() {
return;
}
}
+
+ // Actor Collisions
+ hit_actor = ActorOverlapsPlayer(FALSE);
+ if (hit_actor && hit_actor != NO_ACTOR_COLLISON && player_iframes == 0) {
+ if(actors[hit_actor].collision_group) {
+ player.hit_actor = 0;
+ player.hit_actor = hit_actor;
+ } else {
+ player_iframes = 10;
+ ScriptStartBg(&actors[hit_actor].events_ptr, hit_actor);
+ }
+ }
+
}
|
Disabling hardcoded max bounds for the channel block sizes in convolutions in libxsmm_dnn | #define HWCK 4
#define LIBXSMM_DNN_CONV_SETUP_USE_NTS
-#define LIBXSMM_BLOCK64
-#if defined LIBXSMM_BLOCK64
-# define LIBXSMM_BLOCK_SIZE 64
-#else
-# define LIBXSMM_BLOCK_SIZE 32
-#endif
-
/***********************************************************/
/* Helper functions for convolutions' general param setup */
/**********************************************************/
@@ -42,16 +35,9 @@ LIBXSMM_API_INLINE void libxsmm_dnn_conv_get_feature_map_blocks( int C, int K,
LIBXSMM_INIT
/* C */
- if ((libxsmm_target_archid == LIBXSMM_X86_AVX512_VL256_CLX) || (libxsmm_target_archid >= LIBXSMM_X86_AVX512_VL256_CPX)
- || (libxsmm_target_archid == LIBXSMM_X86_AVX512_VL256)
- ){
- tmp_max_c_block = LIBXSMM_BLOCK_SIZE;
- } else if ( /*((libxsmm_target_archid >= LIBXSMM_X86_AVX512_SPR) && (datatype_in == LIBXSMM_DATATYPE_BF16)) ||*/
- (libxsmm_target_archid < LIBXSMM_X86_AVX512 ) ) {
- tmp_max_c_block = 32;
- } else if ( libxsmm_target_archid == LIBXSMM_AARCH64_V81 ) {
- tmp_max_c_block = 16;
- }
+ /* Recommended values for bc (tmp_max_c_block):
+ For AVX512_VL256: 64, for AVX512_SPR & BF16) or ( < AVX512): 32, for AARCH64_V81: 16
+ */
if ( C <= tmp_max_c_block ) {
ifmblock = C;
} else if (C % tmp_max_c_block == 0) {
@@ -63,16 +49,9 @@ LIBXSMM_API_INLINE void libxsmm_dnn_conv_get_feature_map_blocks( int C, int K,
}
/* K */
- if ((libxsmm_target_archid == LIBXSMM_X86_AVX512_VL256_CLX) || (libxsmm_target_archid >= LIBXSMM_X86_AVX512_VL256_CPX)
- || (libxsmm_target_archid == LIBXSMM_X86_AVX512_VL256)
- ){
- tmp_max_k_block = LIBXSMM_BLOCK_SIZE;
- } else if ( /*((libxsmm_target_archid >= LIBXSMM_X86_AVX512_SPR) && (datatype_in == LIBXSMM_DATATYPE_BF16)) ||*/
- (libxsmm_target_archid < LIBXSMM_X86_AVX512 ) ) {
- tmp_max_k_block = 32;
- } else if ( libxsmm_target_archid == LIBXSMM_AARCH64_V81 ) {
- tmp_max_k_block = 16;
- }
+ /* Recommended values for bk (tmp_max_k_block):
+ For AVX512_VL256: 64, for AVX512_SPR & BF16) or ( < AVX512): 32, for AARCH64_V81: 16
+ */
if ( K <= tmp_max_k_block ) {
ofmblock = K;
} else if (K % tmp_max_k_block == 0) {
|
Correct processing of %null. Eliminate %void. | $@ $? $noun :: any noun
$cell :: any cell
$bean :: loobean
- $void :: no nouns
$null :: ~ == 0
== ::
{$atom p/aura} :: atom
::
$null
[%rock %n 0]
- ::
- $void
- :: should not actually be a thing
- ::
- [%zpzp ~]
==
::
++ descend
^- hoon
?- bas
{%atom *}
- :: rez: fake instance
- ::
- =/ rez example
- :+ %ktls rez
+ :+ %ktls example
[%wtht fetch-wing fetch [%zpzp ~]]
::
$noun
[%rock %f |]
::
$null
- example
- ::
- $void
- example
+ :+ %wtgr
+ [%dtts [%bust %noun] [%$ axe]]
+ [%rock %n ~]
==
++ clear
.(..local ^clear)
|
doc: remove outdated links | @@ -20,11 +20,6 @@ For the following Linux distributions and package managers 0.8 packages are avai
- [LinuxBrew](https://github.com/Linuxbrew/homebrew-core/blob/master/Formula/elektra.rb)
- [Alpine Linux](https://pkgs.alpinelinux.org/package/edge/testing/x86_64/elektra)
-Available, but not up-to-date:
-
- - [Mageia](http://svnweb.mageia.org/packages/updates/1/elektra/)
- - [Fedora](https://admin.fedoraproject.org/pkgdb/package/elektra/)
-
For [OpenSUSE, CentOS, Fedora, RHEL and SLE](https://build.opensuse.org/package/show/home:bekun:devel/elektra)
Kai-Uwe Behrmann kindly provides packages [for download](http://software.opensuse.org/download.html?project=home%3Abekun%3Adevel&package=libelektra4).
|
HW: Resetting IC_0 AXI port to PCIe core ctl via axi_ctl_aresetn | @@ -323,7 +323,8 @@ connect_bd_net -net ACT_NVME_ACLK_1 [get_bd_ports ACT_NVME_ACLK] [get_bd_pins ax
connect_bd_net -net NVME_S_ARESETN_1 [get_bd_ports NVME_S_ARESETN] [get_bd_pins axi_interconnect_0/ARESETN] [get_bd_pins axi_interconnect_0/S00_ARESETN] [get_bd_pins axi_interconnect_0/M00_ARESETN] [get_bd_pins nvme_host_wrap_0/axi_aresetn] [get_bd_pins axi_interconnect_1/ARESETN] [get_bd_pins axi_interconnect_1/S00_ARESETN] [get_bd_pins axi_interconnect_2/ARESETN] [get_bd_pins axi_interconnect_2/M00_ARESETN] [get_bd_pins axi_interconnect_2/M01_ARESETN] [get_bd_ports ddr_aresetn]
connect_bd_net -net ACT_NVME_ARESETN_1 [get_bd_ports ACT_NVME_ARESETN] [get_bd_pins axi_interconnect_0/S01_ARESETN]
connect_bd_net -net axi_pcie3_1_axi_aclk [get_bd_pins axi_pcie3_1/axi_aclk] [get_bd_pins axi_interconnect_0/M01_ACLK] [get_bd_pins axi_interconnect_1/M00_ACLK] [get_bd_pins axi_interconnect_2/S00_ACLK]
-connect_bd_net -net axi_pcie3_1_axi_aresetn [get_bd_pins axi_pcie3_1/axi_aresetn] [get_bd_pins axi_interconnect_0/M01_ARESETN] [get_bd_pins axi_interconnect_1/M00_ARESETN] [get_bd_pins axi_interconnect_2/S00_ARESETN]
+connect_bd_net -net axi_pcie3_1_axi_aresetn [get_bd_pins axi_pcie3_1/axi_aresetn] [get_bd_pins axi_interconnect_1/M00_ARESETN] [get_bd_pins axi_interconnect_2/S00_ARESETN]
+connect_bd_net -net axi_pcie3_1_axi_ctl_aresetn [get_bd_pins axi_pcie3_1/axi_ctl_aresetn] [get_bd_pins axi_interconnect_0/M01_ARESETN]
connect_bd_net -net nvme_reset_n [get_bd_ports nvme_reset_n] [get_bd_pins axi_pcie3_1/sys_rst_n]
#connect_bd_net -net axi_pcie3_0_axi_aclk [get_bd_pins axi_pcie3_0/axi_aclk] [get_bd_pins axi_interconnect_0/M01_ACLK] [get_bd_pins axi_interconnect_1/M00_ACLK] [get_bd_pins axi_interconnect_2/S00_ACLK]
#connect_bd_net -net axi_pcie3_0_axi_aresetn [get_bd_pins axi_pcie3_0/axi_aresetn] [get_bd_pins axi_interconnect_0/M01_ARESETN] [get_bd_pins axi_interconnect_1/M00_ARESETN] [get_bd_pins axi_interconnect_2/S00_ARESETN]
|
Update pins. | @@ -44,22 +44,23 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,7)
;
};
- // TODO: Check these pins!
+ // TODO: Check these pins and resolution!
+
left_encoder: encoder_left {
compatible = "alps,ec11";
label = "LEFT_ENCODER";
- a-gpios = <&pro_micro_d 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
- b-gpios = <&pro_micro_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
- resolution = <4>;
+ a-gpios = <&pro_micro_a 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
+ b-gpios = <&pro_micro_a 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
+ resolution = <2>;
status = "disabled";
};
right_encoder: encoder_right {
compatible = "alps,ec11";
label = "RIGHT_ENCODER";
- a-gpios = <&pro_micro_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
- b-gpios = <&pro_micro_d 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
- resolution = <4>;
+ a-gpios = <&pro_micro_a 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
+ b-gpios = <&pro_micro_a 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
+ resolution = <2>;
status = "disabled";
};
|
putting the missing static | @@ -644,7 +644,7 @@ static int afalg_cipher_cleanup(EVP_CIPHER_CTX *ctx)
return 1;
}
-cbc_handles *get_cipher_handle(int nid)
+static cbc_handles *get_cipher_handle(int nid)
{
switch (nid) {
case NID_aes_128_cbc:
|
hoon: refactor doccord parsing for +tall and +till | wyde
==
::
- :: +wrap is for tagging arbitrary hoons. This is where most of the doccords
- :: logic lives - the modifications to +boog and +wisp are for tagging arms
- :: and chapter labels, while +wrap handles hoons inside of arms and cores.
- ++ wrap
+ :: +sign: gloms prefix and postfix docs for an expression or structure
+ ++ sign
|* fel=rule
%+ cook
|* [a=whit b=* c=whit]
apse:docs
==
::
- ++ tall :: full tall form
- %+ knee *hoon
- |. ~+
- %- wart
+ ++ clad :: docs into %note
+ |* fel=rule
%+ cook
|= [a=whit b=hoon]
?~ boy.a b
[%note help+`u.boy.a b]
- (wrap ;~(pose expression:(norm &) long lute apex:(sail &)))
- ++ till :: mold tall form
- %+ knee *spec
- |. ~+
- %- wert
+ fel
+ ::
+ ++ coat :: docs into %dict
+ |* fel=rule
%+ cook
|= [a=whit b=spec]
?~ boy.a b
[%dict `u.boy.a b]
- (wrap ;~(pose structure:(norm &) scad))
+ fel
+ ::
+ ++ tall :: full tall form
+ %+ knee *hoon
+ |. ~+
+ (wart (clad (sign ;~(pose expression:(norm &) long lute apex:(sail &)))))
+ ++ till :: mold tall form
+ %+ knee *spec
+ |. ~+
+ (wert (coat (sign ;~(pose structure:(norm &) scad))))
++ wede :: wide bulb
:: XX: lus deprecated
::
|
zephyr test: Verify 'pd 0 cc'
Verify that 'pd 0 cc' outputs the correct CC state.
TEST=twister -s zephyr/test/drivers/drivers.default
BRANCH=none
Code-Coverage: Zoss | @@ -313,6 +313,15 @@ ZTEST_USER(console_cmd_usb_pd, test_timer)
rv);
}
+ZTEST_USER(console_cmd_usb_pd, test_cc)
+{
+ char expected_output[10];
+
+ snprintf(expected_output, sizeof(expected_output), "C0 CC%d",
+ pd_get_task_cc_state(0));
+ CHECK_CONSOLE_CMD("pd 0 cc", expected_output, EC_SUCCESS);
+}
+
static void set_device_vdo(int port, enum tcpci_msg_type type)
{
union tbt_mode_resp_device device_resp;
|
Add curly braces for GPHOME var
Authored-by: Tingfang Bao | @@ -37,8 +37,8 @@ fi
cat <<"EOF"
-if [ -e "$GPHOME/etc/openssl.cnf" ]; then
- OPENSSL_CONF="$GPHOME/etc/openssl.cnf"
+if [ -e "${GPHOME}/etc/openssl.cnf" ]; then
+ OPENSSL_CONF="${GPHOME}/etc/openssl.cnf"
fi
export GPHOME
|
Improve documentation for the `all` function. | ret)
(defn all
- ``Returns true if all `xs` are truthy, otherwise the result of first
- falsey predicate value, `(pred x)`.``
+ ``Returns true if `(pred item)` returns a truthy value for every item in `xs`.
+ Otherwise, returns the first falsey `(pred item)` result encountered.
+ Returns true if `xs` is empty.``
[pred xs]
(var ret true)
(loop [x :in xs :while ret] (set ret (pred x)))
|
Mention the smoke tests for new tool contributions
We probably have a couple of tools where we forgot about this already.
Make sure we don't forget again... | @@ -40,4 +40,5 @@ A checklist for bcc tool development:
1. **Read your man page**. For ROFF: nroff -man filename. Like before, this exercise is like saying something out loud. Does it sound too niche or convoluted? Again, hints that you might need to go back and fix things, or abandon it.
1. **Spell check your documentation**. Use a spell checker like aspell to check your document quality before committing.
1. **Add an entry to README.md**.
+1. **Add a smoke test** to [test_tools_smoke.py](https://github.com/iovisor/bcc/blob/master/tests/python/test_tools_smoke.py), which serves as a basic check that your tool still works when we make changes to the core library.
1. If you made it this far, pull request!
|
Tomato: define GPIO_EN_KEYBOARD_BACKLIGHT
It should set GPIO_EN_KB_BL low to turn off keyboard backlight
while setting pwm duty to 0%.
BRANCH=none
TEST=EC console "kblight 0" can turn off keyboard backlight | #define CONFIG_BATT_FULL_CHIPSET_OFF_INPUT_LIMIT_MV 9000
+/* Keyboard */
+#define GPIO_EN_KEYBOARD_BACKLIGHT GPIO_EN_KB_BL
+
/* Sensor */
#define CONFIG_GMR_TABLET_MODE
#define CONFIG_TABLET_MODE
|
misc: life_mngr: generate system_reboot_trigger_win.py script when build life_mngr
generate system_reboot_trigger_win.py script when build life_mngr for Waag. | @@ -67,6 +67,7 @@ ifneq ($(shell which $(MINGWIN_CC)),)
$(MINGWIN_CC) -g life_mngr_win.c -o $(OUT_DIR)/life_mngr_win.exe -Wall -O2 $(LDFLAGS) -lwsock32
cp COPYING.MinGW-w64-runtime.txt $(OUT_DIR)/COPYING.MinGW-w64-runtime.txt
cp s5_trigger_win.py $(OUT_DIR)/s5_trigger_win.py
+ cp system_reboot_trigger_win.py $(OUT_DIR)/system_reboot_trigger_win.py
else
@echo "WARN: $(MINGWIN_CC) not installed, skipping life_mngr_win.exe" >&2
endif
|
fix overlapping entries | # Code table 4.230 - Atmospheric chemical constituent type for ECMWF
+65524 65524 Stratospheric Ozone
+65525 65525 Nitrate aerosol
65526 65526 Condensable gas type 1
65527 65527 Condensable gas type 2a
65528 65528 Condensable gas type 2b
65529 65529 Toluene and less reactive aromatics
65530 65530 Xylene and more reactive aromatics
-65531 65531 Stratospheric Ozone
-65532 65532 Nitrate aerosol
65531 65531 Biomass burning volatile organic compounds
65532 65532 Anthropogenic volatile organic compounds
65533 65533 Nitrate Coarse Mode
|
doc: Update address to report security vulnerability
shall be used. | @@ -70,8 +70,7 @@ ACRN support systems:
You can browse through the reported issues and submit issues of your own.
* **Reporting a Potential Security Vulnerability**: If you have discovered potential
- security vulnerability in ACRN, please send an e-mail to [email protected]. For issues
- related to Intel Products, please visit https://security-center.intel.com.
+ security vulnerability in ACRN, please send an e-mail to [email protected].
It is important to include the following details:
@@ -79,13 +78,6 @@ ACRN support systems:
- Detailed description of the vulnerability
- Information on known exploits
- Vulnerability information is extremely sensitive. Please encrypt all security vulnerability
- reports using our `PGP key`_.
-
- A member of the Intel Product Security Team will review your e-mail and contact you to
- to collaborate on resolving the issue. For more information on how Intel works to resolve
- security issues, see: `vulnerability handling guidelines`_.
-
* **Mailing List**: The `Project ACRN Development mailing list`_ is perhaps the most convenient
way to track developer discussions and to ask your own support questions to
the project ACRN community. There are also specific `ACRN mailing list
|
Fix harmless typo
fixes | @@ -165,7 +165,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *alpha, FLOAT *a, BLASLONG lda, FLOAT *x
BLASLONG width, i, num_cpu;
-#if !defined(TRANSA) && !defined(iUNSAFE)
+#if !defined(TRANSA) && !defined(UNSAFE)
int split_x=0;
#endif
|
Fix missing ImageSubsystem for WSL processes, Remove extra handle for querying the window title | @@ -1031,9 +1031,15 @@ static VOID PhpUpdateProcessNodeImage(
PVOID imageBaseAddress;
PH_REMOTE_MAPPED_IMAGE mappedImage;
+ if (ProcessNode->ProcessItem->IsSubsystemProcess)
+ {
+ ProcessNode->ImageSubsystem = IMAGE_SUBSYSTEM_POSIX_CUI;
+ }
+ else
+ {
if (NT_SUCCESS(PhOpenProcess(&processHandle, ProcessQueryAccess | PROCESS_VM_READ, ProcessNode->ProcessId)))
{
- if (NT_SUCCESS(PhGetProcessBasicInformation(processHandle, &basicInfo)))
+ if (NT_SUCCESS(PhGetProcessBasicInformation(processHandle, &basicInfo)) && basicInfo.PebBaseAddress != 0)
{
if (NT_SUCCESS(NtReadVirtualMemory(
processHandle,
@@ -1066,6 +1072,7 @@ static VOID PhpUpdateProcessNodeImage(
NtClose(processHandle);
}
+ }
ProcessNode->ValidMask |= PHPN_IMAGE;
}
@@ -1077,20 +1084,13 @@ static VOID PhpUpdateProcessNodeAppId(
{
if (!(ProcessNode->ValidMask & PHPN_APPID))
{
- HANDLE processHandle;
ULONG windowFlags;
PPH_STRING windowTitle;
PhClearReference(&ProcessNode->AppIdText);
- if (!NT_SUCCESS(PhOpenProcess(&processHandle, ProcessQueryAccess | PROCESS_VM_READ, ProcessNode->ProcessId)))
- {
- if (!NT_SUCCESS(PhOpenProcess(&processHandle, ProcessQueryAccess, ProcessNode->ProcessId)))
- goto Done;
- }
-
- if (NT_SUCCESS(PhGetProcessWindowTitle(
- processHandle,
+ if (ProcessNode->ProcessItem->QueryHandle && NT_SUCCESS(PhGetProcessWindowTitle(
+ ProcessNode->ProcessItem->QueryHandle,
&windowFlags,
&windowTitle
)))
@@ -1101,9 +1101,6 @@ static VOID PhpUpdateProcessNodeAppId(
PhDereferenceObject(windowTitle);
}
- NtClose(processHandle);
-
-Done:
ProcessNode->ValidMask |= PHPN_APPID;
}
}
|
Re add optimizations during compilation | @@ -4,10 +4,10 @@ add_requires("spdlog", "nlohmann_json", "minhook", "imgui", "lua", "sol2")
add_rules("mode.debug", "mode.release")
---add_ldflags("/LTCG", "/OPT:REF")
---add_cxflags("/Ot", "/GL", "/Ob2", "/Oi", "/GS-")
+add_ldflags("/LTCG", "/OPT:REF")
+add_cxflags("/Ot", "/GL", "/Ob2", "/Oi", "/GS-")
---set_optimize("fastest")
+set_optimize("fastest")
target("cyber_engine_tweaks")
add_defines("KIERO_USE_MINHOOK=1", "KIERO_INCLUDE_D3D12=1")
|
tests: runtime: in_tcp: added check for connection failure to prevent
a segfault when the connection fails which
pollutes the underlying cause. | @@ -330,17 +330,20 @@ void flb_test_tcp_with_tls()
TEST_CHECK(client_connection != NULL);
+ if (client_connection != NULL) {
ret = flb_io_net_write(client_connection,
(void *) buf,
size,
&sent);
- TEST_CHECK(ret == 0);
+ TEST_CHECK(ret > 0);
/* waiting to flush */
flb_time_msleep(1500);
+ }
num = get_output_num();
+
if (!TEST_CHECK(num > 0)) {
TEST_MSG("no outputs");
}
|
components/bt: Fix fail to config URL in EIR | @@ -694,7 +694,7 @@ void bta_dm_config_eir (tBTA_DM_MSG *p_data)
}
if (config_eir->eir_url) {
p_bta_dm_eir_cfg->bta_dm_eir_url = osi_malloc(config_eir->eir_url_len);
- if (p_bta_dm_eir_cfg->bta_dm_eir_url == NULL) {
+ if (p_bta_dm_eir_cfg->bta_dm_eir_url) {
memcpy(p_bta_dm_eir_cfg->bta_dm_eir_url, config_eir->eir_url, config_eir->eir_url_len);
} else {
APPL_TRACE_ERROR("%s, malloc failed.", __func__);
|
common/battery_fuel_gauge.c: Format with clang-format
BRANCH=none
TEST=none | @@ -40,17 +40,14 @@ static bool authenticate_battery_type(int index, char *manuf_name)
/* device name is specified in table */
if (fuel_gauge->device_name != NULL) {
-
/* Get the device name */
- if (battery_device_name(device_name,
- sizeof(device_name)))
+ if (battery_device_name(device_name, sizeof(device_name)))
return false;
len = strlen(fuel_gauge->device_name);
/* device name mismatch */
- if (strncasecmp(device_name, fuel_gauge->device_name,
- len))
+ if (strncasecmp(device_name, fuel_gauge->device_name, len))
return false;
}
@@ -144,7 +141,8 @@ static inline const struct board_batt_params *get_batt_params(void)
int type = get_battery_type();
return &board_battery_info[type == BATTERY_TYPE_COUNT ?
- board_get_default_battery_type() : type];
+ board_get_default_battery_type() :
+ type];
}
const struct battery_info *battery_get_info(void)
@@ -308,8 +306,7 @@ enum battery_disconnect_state battery_get_disconnect_state(void)
if ((reg & board_battery_info[type].fuel_gauge.fet.reg_mask) ==
board_battery_info[type].fuel_gauge.fet.disconnect_val) {
CPRINTS("Batt disconnected: reg 0x%04x mask 0x%04x disc 0x%04x",
- reg,
- board_battery_info[type].fuel_gauge.fet.reg_mask,
+ reg, board_battery_info[type].fuel_gauge.fet.reg_mask,
board_battery_info[type].fuel_gauge.fet.disconnect_val);
return BATTERY_DISCONNECTED;
}
@@ -326,7 +323,8 @@ int battery_imbalance_mv(void)
* If battery type is unknown, we cannot safely access non-standard
* registers.
*/
- return (type == BATTERY_TYPE_COUNT) ? 0 :
+ return (type == BATTERY_TYPE_COUNT) ?
+ 0 :
board_battery_info[type].fuel_gauge.imbalance_mv();
}
|
Update IotNetworkAfr_Send to fix chunk size while sending remaining bytes | @@ -491,7 +491,7 @@ size_t IotNetworkAfr_Send( void * pConnection,
{
socketStatus = SOCKETS_Send( pNetworkConnection->socket,
pMessage,
- messageLength,
+ bytesRemaining,
0 );
if( socketStatus > 0 )
|
Corrected a typo in avtFLASHFileFormat.C | @@ -2637,7 +2637,7 @@ avtFLASHFileFormat::ReadParticleAttributes()
// dimension if the grid exists.
if (strcmp(member_name, "particle_x")==0 && dimension < 1)
dimension = 1;
- if (strcmp(member_name, "particle_t")==0 && dimension < 2)
+ if (strcmp(member_name, "particle_y")==0 && dimension < 2)
dimension = 2;
if (strcmp(member_name, "particle_z")==0 && dimension < 3)
dimension = 3;
|
Fix tracegen compile | @@ -158,7 +158,7 @@ class BoomLSUShim(implicit p: Parameters) extends BoomModule()(p)
io.lsu.rob_head_idx := rob_head
-
+ io.tracegen.ordered := ready_for_amo && io.lsu.fencei_rdy
}
case class BoomTraceGenTileAttachParams(
@@ -236,6 +236,7 @@ class BoomTraceGenTileModuleImp(outer: BoomTraceGenTile)
ptw.io.requestors.head <> lsu.io.ptw
outer.dcache.module.io.lsu <> lsu.io.dmem
boom_shim.io.tracegen <> tracegen.io.mem
+ tracegen.io.fence_rdy := boom_shim.io.tracegen.ordered
boom_shim.io.lsu <> lsu.io.core
// Normally the PTW would use this port
|
Fix (?) cmocka include on win CI | @@ -194,9 +194,10 @@ jobs:
- checkout
- run: choco install cmake -y
- run: git clone https://git.cryptomilk.org/projects/cmocka.git
+ - run: cd cmocka && git checkout tags/cmocka-1.1.5
- run: /c/Program\ Files/Cmake/bin/cmake -S cmocka -B cmocka_build
- run: /c/Program\ Files/Cmake/bin/cmake --build cmocka_build
- - run: /c/Program\ Files/Cmake/bin/cmake -S . -B libcbor_build -DWITH_TESTS=ON -DCMOCKA_INCLUDE_DIR=cmocka/include -DCMOCKA_LIBRARIES=cmocka_build/src/Debug
+ - run: /c/Program\ Files/Cmake/bin/cmake -S . -B libcbor_build -DWITH_TESTS=ON -DCMOCKA_INCLUDE_DIR=cmocka/include -DCMOCKA_LIBRARIES=$(pwd)/cmocka_build/src/Debug/cmocka.lib
- run: /c/Program\ Files/Cmake/bin/cmake --build libcbor_build
- run: /c/Program\ Files/Cmake/bin/ctest.exe libcbor_build
|
CLEANUP: refactored "help" command processing. | @@ -9405,15 +9405,24 @@ static void process_help_command(conn *c, token_t *tokens, const size_t ntokens)
#endif
);
} else {
+ char *cmd_types[] = { "kv", "list", "set", "map", "btree", "attr",
#ifdef SCAN_COMMAND
- out_string(c,
- "\t" "* Usage: help [kv | list | set | map | btree | attr | scan | admin ]" "\n"
- );
-#else
- out_string(c,
- "\t" "* Usage: help [kv | list | set | map | btree | attr | admin ]" "\n"
- );
+ "scan",
#endif
+ "admin", NULL };
+ int cmd_index;
+ char buffer[256];
+ char *ptr = &buffer[0];
+
+ ptr += sprintf(ptr, "\tUsage: help [");
+ cmd_index = 0;
+ while (cmd_types[cmd_index]) {
+ ptr += sprintf(ptr, "%s | ", cmd_types[cmd_index]);
+ cmd_index += 1;
+ }
+ ptr -= 3; // remove the last " | " string
+ ptr += sprintf(ptr, "]\n");
+ out_string(c, buffer);
}
}
|
py/objdeque: Allow to compile without warnings by disabling deque_clear. | @@ -130,6 +130,7 @@ STATIC mp_obj_t deque_popleft(mp_obj_t self_in) {
}
STATIC MP_DEFINE_CONST_FUN_OBJ_1(deque_popleft_obj, deque_popleft);
+#if 0
STATIC mp_obj_t deque_clear(mp_obj_t self_in) {
mp_obj_deque_t *self = MP_OBJ_TO_PTR(self_in);
self->i_get = self->i_put = 0;
@@ -137,6 +138,7 @@ STATIC mp_obj_t deque_clear(mp_obj_t self_in) {
return mp_const_none;
}
STATIC MP_DEFINE_CONST_FUN_OBJ_1(deque_clear_obj, deque_clear);
+#endif
STATIC const mp_rom_map_elem_t deque_locals_dict_table[] = {
{ MP_ROM_QSTR(MP_QSTR_append), MP_ROM_PTR(&deque_append_obj) },
|
Reference README.md from localized versions
Mention that the README.md is the only one being up-to-date. | +_Only the original [README](README.md) is guaranteed to be up-to-date._
+
# scrcpy (v1.11)
This document will be updated frequently along with the original Readme file
|
WIP Fix loading actors/scenes | #include "BankData.h"
#include "VM.h"
#include "data/scene_0.h"
-#include "data/scene_0_actors.h"
-#include <gb/bgb_emu.h>
-#include <stdio.h>
#define MAX_PLAYER_SPRITE_SIZE 24
@@ -175,7 +172,6 @@ void LoadScene(UINT16 index) {
const far_ptr_t far_scene_actors;
const far_ptr_t far_scene_triggers;
const far_ptr_t far_scene = TO_FAR_PTR(scene_0);
- const far_ptr_t far_actors = TO_FAR_PTR(scene_0_actors);
// Load scene
SWITCH_ROM_MBC1(far_scene.bank);
@@ -206,10 +202,9 @@ void LoadScene(UINT16 index) {
SWITCH_ROM_MBC1(far_scene_actors.bank);
scene_actors = far_scene_actors.ptr;
for(i = 1; i != actors_len; i++) {
- BGB_MESSAGE("ACTOR\n");
actors[i].sprite = 0;
- actors[i].pos.x = 8u * scene_actors->x;
- actors[i].pos.y = 8u * scene_actors->y;
+ actors[i].pos.x = 8 * scene_actors->x;
+ actors[i].pos.y = 8 * scene_actors->y;
actors[i].start_pos.x = actors[i].pos.x;
actors[i].start_pos.y = actors[i].pos.y;
actors[i].movement_ctx = 0;
@@ -218,9 +213,7 @@ void LoadScene(UINT16 index) {
actors[i].pinned = FALSE;
actors[i].collisionsEnabled = TRUE;
actors[i].script_control = FALSE;
- scene_actors += sizeof(actor_t);
- // actors[0].pos.x = 16 * 8;
- // actors[0].pos.y = 8u * scene_actors->y;
+ scene_actors++;
}
}
@@ -236,7 +229,7 @@ void LoadScene(UINT16 index) {
triggers[i].y = scene_triggers->y;
triggers[i].w = scene_triggers->width;
triggers[i].h = scene_triggers->height;
- scene_triggers += sizeof(trigger_t);
+ scene_triggers++;
}
}
|
Add missing check according to SM2 Digital Signature generation algorithm
The process should be conforming to clause 6.1 and 6.2 of GMT 0003.2-2012. | @@ -239,6 +239,15 @@ static ECDSA_SIG *sm2_sig_gen(const EC_KEY *key, const BIGNUM *e)
goto done;
}
+ /*
+ * A3: Generate a random number k in [1,n-1] using random number generators;
+ * A4: Compute (x1,y1)=[k]G, and convert the type of data x1 to be integer
+ * as specified in clause 4.2.8 of GM/T 0003.1-2012;
+ * A5: Compute r=(e+x1) mod n. If r=0 or r+k=n, then go to A3;
+ * A6: Compute s=(1/(1+dA)*(k-r*dA)) mod n. If s=0, then go to A3;
+ * A7: Convert the type of data (r,s) to be bit strings according to the details
+ * in clause 4.2.2 of GM/T 0003.1-2012. Then the signature of message M is (r,s).
+ */
for (;;) {
if (!BN_priv_rand_range_ex(k, order, 0, ctx)) {
ERR_raise(ERR_LIB_SM2, ERR_R_INTERNAL_ERROR);
@@ -274,6 +283,10 @@ static ECDSA_SIG *sm2_sig_gen(const EC_KEY *key, const BIGNUM *e)
goto done;
}
+ /* try again if s == 0 */
+ if (BN_is_zero(s))
+ continue;
+
sig = ECDSA_SIG_new();
if (sig == NULL) {
ERR_raise(ERR_LIB_SM2, ERR_R_MALLOC_FAILURE);
|
add:lcd draw | @@ -16,7 +16,7 @@ static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_colo
if (conf != NULL) {
conf->opts->draw(conf, area->x1, area->y1, area->x2, area->y2, color_p);
}
- LLOGD("CALL disp_flush (%d, %d, %d, %d)", area->x1, area->y1, area->x2, area->y2);
+ // LLOGD("CALL disp_flush (%d, %d, %d, %d)", area->x1, area->y1, area->x2, area->y2);
lv_disp_flush_ready(disp_drv);
}
@@ -51,7 +51,7 @@ int luat_lv_init(lua_State *L) {
#ifdef LUA_USE_WINDOWS
fbuff_size = w * h;
#else
- fbuff_size = w * 10;
+ fbuff_size = w * h / 10;
#endif
LLOGD("w %d h %d buff %d", w, h, fbuff_size);
|
log: use syslog | // please do not include changes here to PRs
// unless you want to change the defaults.
// #define USE_STDERR_SINK
-// #define USE_SYSLOG_SINK
-#define USE_FILE_SINK
+#define USE_SYSLOG_SINK
+// #define USE_FILE_SINK
#define NO_FILTER
|
Also fix the README. | @@ -56,7 +56,7 @@ are included as git submodules. To build urbit from source, perform the followin
To configure project, enter the build directory and enter
`meson configure`. Without any arguments this command will display available
options. For example, to compile debug build of urbit, use
-`meson configure -Ddebug=true`.
+`meson configure -Dbuildtype=debug`.
To set the prefix for installation use
`meson configure -Dprefix=/usr`, and so on.
|
Remove incoming initial test from compilation | @@ -793,6 +793,8 @@ static int draft13_label_expansion_test(ptls_cipher_suite_t * cipher, char const
return ret;
}
+#if 0
+/* TODO: restore this test once we have a valid incoming message for draft-17 */
static int draft31_incoming_initial_test()
{
int ret = 0;
@@ -849,6 +851,8 @@ static int draft31_incoming_initial_test()
return ret;
}
+#endif
+
int draft13_vector_test()
{
|
build, meson: add so version to meson build | @@ -55,7 +55,9 @@ cglm_lib = library('cglm',
cglm_src,
install : cglm_install,
dependencies : cglm_deps,
- c_args : [ build_args, cglm_args ]
+ c_args : [ build_args, cglm_args ],
+ version : meson.project_version(),
+ soversion : '0'
)
cglm_dep = declare_dependency(
|
[core] connection_state_machine_h2 only if con->h2
call connection_state_machine_h2() only if con->h2 has been initialized
(additional safeguard for
x-ref:
"Random Segfaults with version 1.4.64 w/ mod_sockproxy and ALPN h2" | @@ -990,7 +990,7 @@ connection_log_state (const request_st * const r, const char * const tag)
}
-static void connection_state_machine_h2 (request_st *h2r, connection *con);
+static void connection_state_machine_h2 (connection * const con);
static void
@@ -1019,7 +1019,7 @@ connection_state_machine_loop (request_st * const r, connection * const con)
if (!connection_handle_read_state(con)) {
if (r->http_version == HTTP_VERSION_2) {
connection_transition_h2(r, con);
- connection_state_machine_h2(r, con);
+ connection_state_machine_h2(con);
return;
}
break;
@@ -1214,9 +1214,10 @@ connection_request_end_h2 (request_st * const h2r, connection * const con)
static void
-connection_state_machine_h2 (request_st * const h2r, connection * const con)
+connection_state_machine_h2 (connection * const con)
{
h2con * const h2c = con->h2;
+ request_st * const h2r = &con->request;
if (h2c->sent_goaway <= 0
&& (chunkqueue_is_empty(con->read_queue) || h2_parse_frames(con))
@@ -1364,8 +1365,9 @@ connection_state_machine_h2 (request_st * const h2r, connection * const con)
static void
-connection_state_machine_h1 (request_st * const r, connection * const con)
+connection_state_machine_h1 (connection * const con)
{
+ request_st * const r = &con->request;
connection_state_machine_loop(r, con);
if (r->conf.log_state_handling)
@@ -1378,11 +1380,10 @@ connection_state_machine_h1 (request_st * const r, connection * const con)
void
connection_state_machine (connection * const con)
{
- request_st * const r = &con->request;
- if (r->http_version == HTTP_VERSION_2)
- connection_state_machine_h2(r, con);
+ if (con->h2)
+ connection_state_machine_h2(con);
else /* if (r->http_version <= HTTP_VERSION_1_1) */
- connection_state_machine_h1(r, con);
+ connection_state_machine_h1(con);
}
|
options/posix: Use more compatible stat st_mode bitmasks. | #include <bits/ansi/time_t.h>
#include <bits/ansi/timespec.h>
-#define S_IFMT 0x0F00
-#define S_IFBLK 0x0000
-#define S_IFCHR 0x0100
-#define S_IFIFO 0x0200
-#define S_IFREG 0x0300
-#define S_IFDIR 0x0400
-#define S_IFLNK 0x0500
-#define S_IFSOCK 0x0600
+#define S_IFMT 0x0F000
+#define S_IFBLK 0x06000
+#define S_IFCHR 0x02000
+#define S_IFIFO 0x01000
+#define S_IFREG 0x08000
+#define S_IFDIR 0x04000
+#define S_IFLNK 0x0A000
+#define S_IFSOCK 0x0C000
#define S_IRWXU 0700
#define S_IRUSR 0400
|
Fix pathname errors in errcode file | @@ -37,12 +37,11 @@ L ASYNC include/openssl/async.h crypto/async/async_err.c
L KDF include/openssl/kdf.h crypto/kdf/kdf_err.c
# additional header files to be scanned for function names
-L NONE crypto/x509/x509_vfy.h NONE
+L NONE include/openssl/x509_vfy.h NONE
L NONE crypto/ec/ec_lcl.h NONE
-L NONE crypto/asn1/asn_lcl.h NONE
L NONE crypto/cms/cms_lcl.h NONE
L NONE crypto/ct/ct_locl.h NONE
-L NONE fips/rand/fips_rand.h NONE
+#L NONE fips/rand/fips_rand.h NONE
L NONE ssl/ssl_locl.h NONE
F RSAREF_F_RSA_BN2BIN
|
bart for centos 7 | @@ -9,7 +9,12 @@ URL: https://mrirecon.github.io/bart
VCS: {{{ git_dir_vcs }}}
Source0: {{{ git_dir_pack source_name=bart dir_name=bart }}}
+%if 0%{?rhel} == 07
+BuildRequires: fftw-devel, lapack-devel, openblas-devel, atlas-devel, libpng-devel, devtoolset-7-toolchain, devtoolset-7-libatomic-devel
+%else
BuildRequires: gcc, make, fftw-devel, lapack-devel, openblas-devel, atlas-devel, libpng-devel
+%endif
+
Requires: fftw, lapack, openblas, atlas, libpng
%description
@@ -25,6 +30,12 @@ The Berkeley Advanced Reconstruction Toolbox (BART) is a free and open-source im
echo {{{ bart_git_version }}} > version.txt
%build
+%if 0%{?rhel} == 07
+
+. /opt/rh/devtoolset-7/enable
+
+%endif
+
make PARALLEL=1
%install
|
Subscribe on a valid path in landscape. | @@ -71566,13 +71566,13 @@ function (_Component) {
_createClass(TopicCreatePage, [{
key: "componentDidMount",
value: function componentDidMount() {
- var path = "/circle/".concat(this.state.details.circle, "/config-l/grams/-10");
+ var path = "/circle/".concat(this.state.details.namedCircle, "/config-l/grams/-10");
this.props.api.bind(path, "PUT", this.state.details.hostship);
}
}, {
key: "componentWillUnmount",
value: function componentWillUnmount() {
- var path = "/circle/".concat(this.state.details.circle, "/config-l/grams/-10");
+ var path = "/circle/".concat(this.state.details.namedCircle, "/config-l/grams/-10");
this.props.api.bind(path, "DELETE", this.state.details.hostship);
}
}, {
@@ -71599,6 +71599,7 @@ function (_Component) {
details.clayPath = props.claypath.split('/').slice(1);
details.hostship = props.ship.substr(1);
details.circle = "~".concat(details.hostship, "/c").concat([''].concat(details.clayPath.slice(2, -1)).join('-'));
+ details.namedCircle = "c".concat([''].concat(details.clayPath.slice(2, -1)).join('-'));
details.lastedit = props.lastedit;
details.title = details.clayPath.slice(-1)[0];
details.body = props.content;
@@ -71611,6 +71612,7 @@ function (_Component) {
details.clayPath = props.claypath.split('/').slice(1);
details.hostship = props.ship.substr(1);
details.circle = "~".concat(details.hostship, "/c").concat([''].concat(details.clayPath.slice(2)).join('-'));
+ details.namedCircle = "c".concat([''].concat(details.clayPath.slice(2)).join('-'));
}
return details;
|
Remove lefovers CLOCK_SOURCE_EXTERNAL_SYNC | @@ -51,7 +51,6 @@ void clock_source_init(uint8_t mode){
switch(mode) {
case CLOCK_SOURCE_MODE_DISABLED:
// No clock signal
- NVIC_DisableIRQ(EXTI0_IRQn);
NVIC_DisableIRQ(TIM1_UP_TIM10_IRQn);
NVIC_DisableIRQ(TIM1_CC_IRQn);
@@ -63,7 +62,6 @@ void clock_source_init(uint8_t mode){
break;
case CLOCK_SOURCE_MODE_FREE_RUNNING:
// Clock signal is based on internal timer
- NVIC_DisableIRQ(EXTI0_IRQn);
NVIC_EnableIRQ(TIM1_UP_TIM10_IRQn);
NVIC_EnableIRQ(TIM1_CC_IRQn);
|
SOVERSION bump to version 6.1.1 | @@ -67,7 +67,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 6)
set(SYSREPO_MINOR_SOVERSION 1)
-set(SYSREPO_MICRO_SOVERSION 0)
+set(SYSREPO_MICRO_SOVERSION 1)
set(SYSREPO_SOVERSION_FULL ${SYSREPO_MAJOR_SOVERSION}.${SYSREPO_MINOR_SOVERSION}.${SYSREPO_MICRO_SOVERSION})
set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_SOVERSION})
|
Cache: Fix off-by-one error | @@ -149,9 +149,10 @@ static char * elektraGenTempFilename (char * cacheFileName)
size_t len = 0;
size_t tmpFilenameSize = 0;
- tmpFilenameSize = strlen (cacheFileName) + POSTFIX_SIZE;
+ size_t cacheFileNameSize = strlen (cacheFileName);
+ tmpFilenameSize = cacheFileNameSize + POSTFIX_SIZE;
tmpFile = elektraCalloc (tmpFilenameSize);
- len = snprintf (tmpFile, strlen (cacheFileName), "%s", cacheFileName);
+ len = snprintf (tmpFile, cacheFileNameSize + 1, "%s", cacheFileName);
struct timeval tv;
memset (&tv, 0, sizeof (struct timeval));
|
Rewrite assignment to complex for better portability | @@ -48,10 +48,11 @@ OPENBLAS_COMPLEX_FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLA
dot[0]=0.0;
dot[1]=0.0;
-
+/*
CREAL(result) = 0.0 ;
CIMAG(result) = 0.0 ;
-
+*/
+ result = OPENBLAS_MAKE_COMPLEX_FLOAT(0.0,0.0);
if ( n < 1 ) return(result);
inc_x2 = 2 * inc_x ;
@@ -71,8 +72,9 @@ OPENBLAS_COMPLEX_FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLA
i++ ;
}
- CREAL(result) = dot[0];
- CIMAG(result) = dot[1];
+ /*CREAL(result) = dot[0];
+ CIMAG(result) = dot[1];*/
+ result = OPENBLAS_MAKE_COMPLEX_FLOAT(dot[0],dot[1]);
return(result);
}
|
build: Dockerfile: add kafka dependencies | @@ -12,7 +12,8 @@ COPY . /tmp/src/
RUN rm -rf /tmp/src/build/*
-RUN apt-get update && apt-get install -y build-essential cmake make wget unzip libsystemd-dev
+RUN apt-get update && apt-get install -y build-essential cmake make wget unzip libsystemd-dev libssl1.0-dev libasl-dev
+
WORKDIR /tmp/src/build/
RUN cmake -DFLB_DEBUG=Off -DFLB_TRACE=Off -DFLB_JEMALLOC=On -DFLB_BUFFERING=On -DFLB_TLS=On -DFLB_WITHOUT_SHARED_LIB=On -DFLB_WITHOUT_EXAMPLES=On -DFLB_OUT_KAFKA=On ..
RUN make
|
Fix the contributing file example | @@ -152,14 +152,14 @@ uses the `H2O_STRUCT_FROM_MEMBER` macro (which in turn uses
compute the offset of a member in a struct. This way, given a pointer to
a member, we can obtain a pointer to the enclosing struct.
-Linked lists (`h2o_linklist_t`) and timers (`h2o_timer_wheel_entry_t`)
+Linked lists (`h2o_linklist_t`) and timers (`h2o_timer_t`)
are typical users of the technique.
Here's an example demonstrating how to pass context alongside a timer pointer:
```c
struct st_mycontext_t {
int nr_timer_hits;
- h2o_timer_wheel_entry_t timer;
+ h2o_timer_t timer;
};
void timer(h2o_timer_wheel_entry_t *t)
|
hfuzz_cc: link with -lBlocksRuntime if honggfuzz was compiled with clang | @@ -217,6 +217,9 @@ static int ldMode(int argc, char **argv)
args[j++] = "-Wl,--whole-archive";
args[j++] = LHFUZZ_A_PATH;
args[j++] = "-Wl,--no-whole-archive";
+#if defined(__clang__)
+ args[j++] = "-lBlocksRuntime";
+#endif /* defined(__clang__) */
if (isGCC) {
args[j++] = "-fsanitize-coverage=trace-pc";
} else {
|
Don't override UIP_CONF_BYTE_ORDER in contiki-conf.h for native platform | @@ -69,7 +69,9 @@ typedef int32_t s32_t;
typedef unsigned short uip_stats_t;
+#ifndef UIP_CONF_BYTE_ORDER
#define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN
+#endif
#if NETSTACK_CONF_WITH_IPV6
|
Fix and cleanup get_line_number's binary search
Return 1 instead of crashing if `xs` is the empty list
Work around integer overflow when computing the averages
Clarify the comments
Document the loop invariants
Don't use tail recursion (in case we want to rewrite this in Titan) | @@ -24,35 +24,33 @@ function util.set_file_contents(filename, contents)
return true
end
-local newline_cache = setmetatable({}, { __mode = "k" })
-
---- Given ordered sequence `xs`, search for `v`,
--- If `v` is not found, return the position of
--- the lowest item `x` in `xs` such that `x > v`.
-- @param xs An ordered sequence of comparable items
-- @param v A value comparable to the items in the list
--- @param min (optional) The initial position (default 1)
--- @param max (optional) The final position (default `#xs`)
--- @return The position of `v`, or the position of
--- the lowest item greater than it. Inserting `v` at
--- the returned position will always keep the sequence
--- ordered.
-local function binary_search(xs, v, min, max)
- min, max = min or 1, max or #xs
- if v < xs[min] then
- return min
- elseif v > xs[max] then
- return max + 1
+-- @return The position of the first occurrence of `v` in the sequence or the
+-- position of the first item greater than `v` in the sequence, otherwise.
+-- Inserting `v` at the returned position will always keep the sequence ordered.
+local function binary_search(xs, v)
+ -- Invariants:
+ -- 1 <= lo <= hi <= #xs + 1
+ -- xs[i] < v , if i < lo
+ -- xs[i] >= v, if i >= hi
+ local lo = 1
+ local hi = #xs + 1
+ while lo < hi do
+ -- Average, rounded down (lo <= mid < hi)
+ -- Lua's logical right shift works here even if the addition overflows
+ local mid = (lo + hi) >> 1
+ if xs[mid] < v then
+ lo = mid + 1
+ else
+ hi = mid
end
- local i = (min + max) // 2
- if v < xs[i] then
- return binary_search(xs, v, min, i - 1)
- elseif v > xs[i] then
- return binary_search(xs, v, i + 1, max)
end
- return i
+ return lo
end
+local newline_cache = setmetatable({}, { __mode = "k" })
+
function util.get_line_number(subject, pos)
local newlines
if newline_cache[subject] then
@@ -65,7 +63,8 @@ function util.get_line_number(subject, pos)
newline_cache[subject] = newlines
end
local line = binary_search(newlines, pos)
- return line, pos - (newlines[line - 1] or 0)
+ local col = pos - (newlines[line - 1] or 0)
+ return line, col
end
return util
|
linenoise BUGFIX refresh columns on each line refresh | @@ -697,6 +697,9 @@ static void refreshMultiLine(struct linenoiseState *l) {
/* Calls the two low level functions refreshSingleLine() or
* refreshMultiLine() according to the selected mode. */
void linenoiseRefreshLine(void) {
+ /* Update columns in case the terminal was resized */
+ ls.cols = getColumns(STDIN_FILENO, STDOUT_FILENO);
+
if (mlmode)
refreshMultiLine(&ls);
else
|
added new option -p (set output path) | @@ -423,6 +423,7 @@ printf("%s %s (C) %s ZeroBeat\n"
"-s : output file by mac_sta's\n"
"-o : output file by vendor's (oui)\n"
"-e : output file by essid's\n"
+ "-p <path> : set default output path for options a, s, o, e\n"
"-E <essid> : output file by single essid name\n"
"-A <mac_ap> : output file by single mac_ap\n"
"-S <mac_sta> : output file by single mac_sta\n"
@@ -439,6 +440,7 @@ int main(int argc, char *argv[])
{
int auswahl;
int mode = 0;
+int retchdir = 0;
long int hcxorgrecords = 0;
unsigned long long int mac_ap = 0;
unsigned long long int mac_sta = 0;
@@ -450,12 +452,17 @@ char *hcxinname = NULL;
char *essidname = NULL;
char *aplistname = NULL;
char *apoutname = NULL;
+char *workingdirname;
+
+char workingdir[PATH_MAX +1];
eigenpfadname = strdupa(argv[0]);
eigenname = basename(eigenpfadname);
setbuf(stdout, NULL);
-while ((auswahl = getopt(argc, argv, "i:A:S:O:E:l:L:asoeh")) != -1)
+getcwd(workingdir, PATH_MAX);
+workingdirname = workingdir;
+while ((auswahl = getopt(argc, argv, "i:A:S:O:E:p:l:L:asoeh")) != -1)
{
switch (auswahl)
{
@@ -479,6 +486,11 @@ while ((auswahl = getopt(argc, argv, "i:A:S:O:E:l:L:asoeh")) != -1)
mode = 'e';
break;
+ case 'p':
+ workingdirname = optarg;
+ break;
+
+
case 'E':
essidname = optarg;
break;
@@ -536,6 +548,10 @@ hcxorgrecords = readhccapx(hcxinname);
if(hcxorgrecords == 0)
return EXIT_SUCCESS;
+retchdir = chdir(workingdirname);
+if(retchdir != 0)
+ fprintf(stderr, " couldn't change working directory to %s\nusing %s\n", workingdirname, workingdir);
+
if(mode == 'a')
writemacaphccapx(hcxorgrecords);
|
DDF compare manufacturer names case insensitive
Relaxes goodies like NAMRON vs. Namron. | @@ -544,7 +544,11 @@ const DeviceDescription &DeviceDescriptions::get(const Resource *resource, DDF_M
{
i = std::find_if(i, d->descriptions.end(), [&modelId, &manufacturer, &manufacturerConstant](const DeviceDescription &ddf)
{
- return (ddf.modelIds.contains(modelId) && (ddf.manufacturerNames.contains(manufacturer) || ddf.manufacturerNames.contains(manufacturerConstant)));
+ // compare manufacturer name case insensitive
+ const auto m = std::find_if(ddf.manufacturerNames.cbegin(), ddf.manufacturerNames.cend(),
+ [&](const auto &x){ return x.compare(manufacturer, Qt::CaseInsensitive) == 0; });
+
+ return (ddf.modelIds.contains(modelId) && (m != ddf.manufacturerNames.cend() || ddf.manufacturerNames.contains(manufacturerConstant)));
});
if (i == d->descriptions.end())
|
WIP: Fix form checkboxes | @@ -126,14 +126,17 @@ textarea {
.FormField input[type="checkbox"]:checked + .FormCheckbox:after {
content: "";
- mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="#808080"><path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z"/></svg>')
- no-repeat 50% 50%;
- -webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="#808080"><path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z"/></svg>')
- no-repeat 50% 50%;
+ clip-path: polygon(
+ 0% 51.2%,
+ 37.5% 87.5%,
+ 100% 23.7%,
+ 84.6% 8.3%,
+ 37.5% 56.2%,
+ 15.4% 35.4%
+ );
background: #fff;
- display: block;
width: 10px;
- height: 14px;
+ height: 10px;
display: flex;
align-items: center;
}
|
Bump to imgui 1.83 and tiltedcore 0.2.3 | @@ -3,7 +3,7 @@ set_xmakever("2.5.3")
set_languages("cxx20")
set_arch("x64")
-add_requires("spdlog", "nlohmann_json", "hopscotch-map", "minhook", "mem", "imgui 1.82", "sol2", "tiltedcore 0.2.2", "sqlite3", "luajit")
+add_requires("spdlog", "nlohmann_json", "hopscotch-map", "minhook", "mem", "imgui 1.83", "sol2", "tiltedcore 0.2.3", "sqlite3", "luajit")
add_requireconfs("sol2", { configs = { includes_lua = false } })
add_requireconfs("luajit", { configs = { gc64 = true } })
|
Mark dataBuffer pointer as const | @@ -480,7 +480,7 @@ void handleGetWalletId(volatile unsigned int *tx) {
#endif // HAVE_WALLET_ID_SDK
-uint8_t *parseBip32(uint8_t *dataBuffer, uint16_t *dataLength, bip32_path_t *bip32) {
+uint8_t *parseBip32(const uint8_t *dataBuffer, uint16_t *dataLength, bip32_path_t *bip32) {
if (*dataLength < 1) {
PRINTF("Invalid data\n");
return NULL;
|
gzip: fix function prototype | int flb_gzip_compress(void *in_data, size_t in_len,
void **out_data, size_t *out_len);
int flb_gzip_uncompress(void *in_data, size_t in_len,
- void **out_data, size_t *out_len);
+ void **out_data, size_t *out_size);
#endif
|
Rm comments in tex | \title{Core Cosmology Library: Precision Cosmological Predictions for LSST}
\input{authors}
-%\maketitlepre
\begin{abstract}
@@ -34,8 +33,6 @@ The Core Cosmology Library (\ccl) provides routines to compute basic cosmologica
\end{abstract}
-%\maketitlepost
-
%===============================================================================
|
board/chocodile_vpdmcu/vpd_api.h: Format with clang-format
BRANCH=none
TEST=none | #include "gpio.h"
#include "usb_pd.h"
-enum vpd_pin {
- PIN_ADC,
- PIN_CMP,
- PIN_GPO
-};
+enum vpd_pin { PIN_ADC, PIN_CMP, PIN_GPO };
-enum vpd_gpo {
- GPO_HZ,
- GPO_HIGH,
- GPO_LOW
-};
+enum vpd_gpo { GPO_HZ, GPO_HIGH, GPO_LOW };
enum vpd_pwr {
PWR_VCONN,
PWR_VBUS,
};
-enum vpd_cc {
- CT_OPEN,
- CT_CC1,
- CT_CC2
-};
+enum vpd_cc { CT_OPEN, CT_CC1, CT_CC2 };
-enum vpd_billboard {
- BB_NONE,
- BB_SRC,
- BB_SNK
-};
+enum vpd_billboard { BB_NONE, BB_SRC, BB_SNK };
/**
* Set Charge-Through Rp or Rd on CC lines
|
Bring back mirror catalog update when doing a gprecoverseg
This seems to have broken when we updated gprecoverseg to work with WAL
rep. | @@ -15,6 +15,7 @@ from gppylib.operations import startSegments
from gppylib.gp_era import read_era
from gppylib.operations.utils import ParallelOperation, RemoteOperation
from gppylib.operations.unix import CleanSharedMem
+from gppylib.system import configurationInterface as configInterface
from gppylib.commands.gp import is_pid_postmaster, get_pid_from_remotehost
from gppylib.commands.unix import check_pid_on_remotehost, Scp
@@ -285,11 +286,16 @@ class GpMirrorListToBuild:
# Disable Ctrl-C, going to save metadata in database and transition segments
signal.signal(signal.SIGINT, signal.SIG_IGN)
try:
+ self.__logger.info("Updating configuration with new mirrors")
+ configInterface.getConfigurationProvider().updateSystemConfig(
+ gpArray,
+ "%s: segment config for resync" % programName,
+ dbIdToForceMirrorRemoveAdd=fullResyncMirrorDbIds,
+ useUtilityMode=False,
+ allowPrimary=False
+ )
self.__logger.info("Updating mirrors")
- if actionName == "add":
- self.__registerMirrorsInCatalog(gpArray)
-
if len(rewindInfo) != 0:
self.__logger.info("Running pg_rewind on required mirrors")
rewindFailedSegments = self.run_pg_rewind(rewindInfo)
|
Add icon_theme_path to find_icon() search if set
find_icon() will search in theme appropriate subdirs. | @@ -411,9 +411,15 @@ uint32_t render_sni(cairo_t *cairo, struct swaybar_output *output, double *x,
char *icon_name = sni->status[0] == 'N' ?
sni->attention_icon_name : sni->icon_name;
if (icon_name) {
- char *icon_path = find_icon(sni->tray->themes, sni->tray->basedirs,
+ list_t *icon_search_paths = create_list();
+ list_cat(icon_search_paths, sni->tray->basedirs);
+ if (sni->icon_theme_path) {
+ list_add(icon_search_paths, sni->icon_theme_path);
+ }
+ char *icon_path = find_icon(sni->tray->themes, icon_search_paths,
icon_name, ideal_size, output->bar->config->icon_theme,
&sni->min_size, &sni->max_size);
+ list_free(icon_search_paths);
if (!icon_path && sni->icon_theme_path) {
icon_path = find_icon_in_dir(icon_name, sni->icon_theme_path,
&sni->min_size, &sni->max_size);
|
Copy the generated files to `public'. | @@ -20,11 +20,12 @@ jobs:
run: |
cd $GITHUB_WORKSPACE/tools/ci
./docs.sh
+ cp -a docs/doxygen/html/ $GITHUB_WORKSPACE/public
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- publish_dir: ${{runner.workspace}}/tools/ci/docs/doxygen/html
+ publish_dir: ./public
force_orphan: true
|
Reformat CMake: Reformat list file at project root | @@ -38,6 +38,7 @@ for file in $(find . \( -name 'CMakeLists.txt' -or -name '*.cmake' \) -and \
-or -path './scripts/*' \
-or -path './src/*' \
-or -path './tests/*' \
+ -or -path './CMakeLists.txt' \
\)
); do
$CMAKE_FORMAT "$file" | unexpand | sponge "$file"
|
irqtest: Make sure its started only once | @@ -387,8 +387,8 @@ static void pci_change_event(octopus_mode_t mode, const char* device_record,
static int irqtests_started = 0;
if(strstr(binary_name, "irqtest") != NULL){
- if(irqtests_started++ == 0){
- KALUGA_DEBUG("Not starting multiple instances of irqtest\n");
+ if(irqtests_started++ > 0){
+ debug_printf("Not starting multiple instances of irqtest\n");
goto out;
}
}
|
Add a second cipher to demonstrate server order | @@ -18,7 +18,7 @@ listen:
key-file: examples/h2o/server.key
certificate-file: examples/h2o/server.crt
cipher-suite: AES128-SHA
- cipher-suite-tls1.3: TLS_CHACHA20_POLY1305_SHA256
+ cipher-suite-tls1.3: TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256
max-version: TLSv1.3
hosts:
default:
|
Fix ocf_lru_repart for freelist partition
ocf_lru_get_list() now returs clean list for freelist partition to
provide common interface regardless of partition type. | @@ -224,6 +224,9 @@ void ocf_lru_init_cline(ocf_cache_t cache, ocf_cache_line_t cline)
static struct ocf_lru_list *ocf_lru_get_list(struct ocf_part *part,
uint32_t lru_idx, bool clean)
{
+ if (part->id == PARTITION_FREELIST)
+ clean = true;
+
return clean ? &part->runtime->lru[lru_idx].clean :
&part->runtime->lru[lru_idx].dirty;
}
@@ -289,8 +292,6 @@ void ocf_lru_rm_cline(ocf_cache_t cache, ocf_cache_line_t cline)
ocf_part_id_t part_id = ocf_metadata_get_partition_id(cache, cline);
struct ocf_part *part = &cache->user_parts[part_id].part;
- ENV_BUG_ON(metadata_test_dirty(cache, cline));
-
ocf_lru_repart(cache, cline, part, &cache->free);
}
|
Fix symbol resolution across mount namespaces | @@ -122,13 +122,13 @@ int ProcSyms::_add_load_sections(uint64_t v_addr, uint64_t mem_sz,
}
void ProcSyms::load_exe() {
+ ProcMountNSGuard g(mount_ns_instance_.get());
std::string exe = ebpf::get_pid_exe(pid_);
Module module(exe.c_str(), mount_ns_instance_.get(), &symbol_option_);
if (module.type_ != ModuleType::EXEC)
return;
- ProcMountNSGuard g(mount_ns_instance_.get());
bcc_elf_foreach_load_section(exe.c_str(), &_add_load_sections, &module);
@@ -163,6 +163,7 @@ int ProcSyms::_add_module(const char *modname, uint64_t start, uint64_t end,
// It only gives the mmap offset. We need the real offset for symbol
// lookup.
if (module.type_ == ModuleType::SO) {
+ ProcMountNSGuard g(ps->mount_ns_instance_.get());
if (bcc_elf_get_text_scn_info(modname, &module.elf_so_addr_,
&module.elf_so_offset_) < 0) {
fprintf(stderr, "WARNING: Couldn't find .text section in %s\n", modname);
|
dm: vrtc: add RTC to ACPI DSDT
Clear Linux complains about not finding RTC as a PNP device:
platform rtc_cmos: registered platform RTC device (no PNP device found)
This is a port of Bhyve vRTC's user-space logic. | #include "rtc.h"
#include "mevent.h"
#include "timer.h"
+#include "acpi.h"
+#include "lpc.h"
/* #define DEBUG_RTC */
#ifdef DEBUG_RTC
@@ -1178,3 +1180,27 @@ vrtc_deinit(struct vmctx *ctx)
free(vrtc);
ctx->vrtc = NULL;
}
+
+static void
+rtc_dsdt(void)
+{
+ dsdt_line("");
+ dsdt_line("Device (RTC)");
+ dsdt_line("{");
+ dsdt_line(" Name (_HID, EisaId (\"PNP0B00\"))");
+ dsdt_line(" Name (_CRS, ResourceTemplate ()");
+ dsdt_line(" {");
+ dsdt_indent(2);
+ dsdt_fixed_ioport(IO_RTC, 2);
+ dsdt_fixed_irq(8);
+ dsdt_unindent(2);
+ dsdt_line(" })");
+ dsdt_line("}");
+}
+LPC_DSDT(rtc_dsdt);
+
+/*
+ * Reserve the extended RTC I/O ports although they are not emulated at this
+ * time.
+ */
+SYSRES_IO(0x72, 6);
|
cups-browsed.c: Small fixes on local queue duplicate check. | @@ -3299,8 +3299,10 @@ create_local_queue (const char *queue_name,
p->queue_name, p->uri);
goto fail;
}
- /* For a remote CUPS printer Our local queue must be raw, so that the
- PPD file and driver on the remote CUPS server get used */
+ /* For a remote CUPS printer our local queue will be raw or get a
+ PPD file from the remote CUPS server, so that the driver on the
+ remote CUPS server get used. So we will not generate a PPD file
+ or interface script at this point. */
p->netprinter = 0;
p->ppd = NULL;
p->model = NULL;
@@ -3310,10 +3312,10 @@ create_local_queue (const char *queue_name,
for (q = (remote_printer_t *)cupsArrayFirst(remote_printers);
q;
q = (remote_printer_t *)cupsArrayNext(remote_printers))
- if (!strcasecmp(q->queue_name, p->queue_name) && /* Queue with same name on server */
- !q->duplicate_of && /* Find the master of the queues with this name,
+ if (!strcasecmp(q->queue_name, p->queue_name) && /* Queue with same name
+ on server */
+ !q->duplicate_of) /* Find the master of the queues with this name,
to avoid "daisy chaining" */
- q != p) /* Skip our current queue */
break;
p->duplicate_of = (q && q->status != STATUS_DISAPPEARED &&
q->status != STATUS_UNCONFIRMED) ? q : NULL;
|
berkeley/lprm.c: Report error if -P doesn't have destination
Fixes | @@ -82,6 +82,13 @@ main(int argc, /* I - Number of command-line arguments */
else
{
i ++;
+
+ if (i >= argc)
+ {
+ _cupsLangPrintf(stderr, _("%s: Error - expected destination after \"-P\" option."), argv[0]);
+ usage();
+ }
+
name = argv[i];
}
|
py/runtime: mp_import_name: Pass globals/locals to __import__.
These become required when we override import handling. In particular,
proper globals are required to resolve relative imports. | @@ -1398,8 +1398,8 @@ mp_obj_t mp_import_name(qstr name, mp_obj_t fromlist, mp_obj_t level) {
// build args array
mp_obj_t args[5];
args[0] = MP_OBJ_NEW_QSTR(name);
- args[1] = mp_const_none; // TODO should be globals
- args[2] = mp_const_none; // TODO should be locals
+ args[1] = MP_OBJ_FROM_PTR(mp_globals_get());
+ args[2] = MP_OBJ_FROM_PTR(mp_locals_get());
args[3] = fromlist;
args[4] = level;
|
ekr_loop - Fix bug | @@ -521,8 +521,9 @@ main(int argc, char *argv[])
debug_printf("usrscp_sendv - step %d - call %d flags %x\n", i, ++j, sndinfo.snd_flags);
while (usrsctp_sendv(s_c, line, LINE_LENGTH, NULL, 0, (void *)&sndinfo,
(socklen_t)sizeof(struct sctp_sndinfo), SCTP_SENDV_SNDINFO, 0) < 0) {
- if (errno != EWOULDBLOCK || !sendv_retries_left) {
fprintf(stderr,"usrsctp_sendv - errno: %d - %s\n", errno, strerror(errno));
+ if (errno != EWOULDBLOCK || !sendv_retries_left) {
+ exit(EXIT_FAILURE);
}
sendv_retries_left--;
#ifdef _WIN32
|
Fix skip-validate | @@ -17,7 +17,7 @@ runs:
using: "composite"
steps:
- name: Init submodules (since only the RTL is cached)
- run: ./scripts/init-submodules-no-riscv-tools.sh
+ run: ./scripts/init-submodules-no-riscv-tools.sh --skip-validate
shell: bash
# Note: You shouldn't need the other inputs since it shouldn't build RTL from scratch
|
Configure: use correct variable to infer the .ld file location
We didn't notice the error because it all happened in the top directory.
Now that we use .ld files in subdirectories, the bug became apparent. | @@ -2079,7 +2079,7 @@ EOF
} elsif ($s =~ /\.ld$/) {
# We also recognise linker scripts (or corresponding)
# We know they are generated files
- my $ld = cleanfile($buildd, $s, $blddir);
+ my $ld = cleanfile($buildd, $_, $blddir);
$unified_info{shared_sources}->{$ddest}->{$ld} = 1;
} else {
die "unrecognised source file type for shared library: $s\n";
|
Fix GPU support with STM32F746 | @@ -154,7 +154,9 @@ void lv_gpu_stm32_dma2d_copy(lv_color_t * buf, lv_coord_t buf_w, const lv_color_
hdma2d.LayerCfg[1].InputAlpha = 0xFF;
hdma2d.LayerCfg[1].InputColorMode = DMA2D_INPUT_FORMAT;
hdma2d.LayerCfg[1].InputOffset = map_w - copy_w;
+#ifndef STM32F746G_DISCO
hdma2d.LayerCfg[1].AlphaInverted = DMA2D_REGULAR_ALPHA;
+#endif
/* DMA2D Initialization */
HAL_DMA2D_Init(&hdma2d);
@@ -189,14 +191,18 @@ void lv_gpu_stm32_dma2d_blend(lv_color_t * buf, lv_coord_t buf_w, const lv_color
hdma2d.LayerCfg[0].AlphaMode = DMA2D_NO_MODIF_ALPHA;
hdma2d.LayerCfg[0].InputColorMode = DMA2D_INPUT_FORMAT;
hdma2d.LayerCfg[0].InputOffset = buf_w - copy_w;
+#ifndef STM32F746G_DISCO
hdma2d.LayerCfg[0].AlphaInverted = DMA2D_REGULAR_ALPHA;
+#endif
/* Foreground layer */
hdma2d.LayerCfg[1].AlphaMode = DMA2D_COMBINE_ALPHA;
hdma2d.LayerCfg[1].InputAlpha = opa;
hdma2d.LayerCfg[1].InputColorMode = DMA2D_INPUT_FORMAT;
hdma2d.LayerCfg[1].InputOffset = map_w - copy_w;
+#ifndef STM32F746G_DISCO
hdma2d.LayerCfg[1].AlphaInverted = DMA2D_REGULAR_ALPHA;
+#endif
/* DMA2D Initialization */
HAL_DMA2D_Init(&hdma2d);
|
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.