message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
load petsc for install | @@ -74,6 +74,10 @@ make
%install
%ohpc_setup_compiler
+%if "%{compiler_family}" != "intel"
+module load openblas
+%endif
+module load petsc
make DESTDIR=$RPM_BUILD_ROOT install
# Module file
|
Scripts: fix chemical vs src/sink | @@ -152,13 +152,21 @@ while (<>) {
my $units_code = get_db_units_code($units);
my $is_chem = "";
my $is_aero = "";
+ my $is_srcsink = "";
if ($aero ne "") {
$is_aero = "1";
$is_chem = "";
+ $is_srcsink = "";
}
if ($constit ne "") {
$is_aero = "";
$is_chem = "1";
+ $is_srcsink = "";
+ }
+ if ($sourceSink ne "") {
+ $is_aero = "";
+ $is_chem = "";
+ $is_srcsink = "1";
}
my $centre = $localTV ne "" ? $centre_ecmwf : $centre_wmo;
@@ -202,7 +210,7 @@ while (<>) {
if (! defined $scaledValueWL2 || $scaledValueWL2 ne "") {
$dbh->do("insert into grib values (?,?,?,?,?,?)",undef, $paramId,$edition,$centre,61,$scaledValueWL2,0);
}
- $dbh->do("insert into grib values (?,?,?,?,?,?)",undef, $paramId,$edition,$centre,64,$sourceSink,0) if ($sourceSink ne "");
+ $dbh->do("insert into grib values (?,?,?,?,?,?)",undef, $paramId,$edition,$centre,64,$sourceSink,0) if ($is_srcsink ne "");
# format is only GRIB2 hence grib1 entry=0 and grib2=1
$dbh->do("insert into param_format(param_id,grib1,grib2) values (?,?,?)",undef,$paramId,0,1);
@@ -252,12 +260,22 @@ sub write_out_file {
print $outfile " aerosolType = $aero ;\n" if ($aero ne "");
print $outfile " constituentType = $constit ;\n" if ($constit ne "");
+ if ($sourceSink eq "") {
print $outfile " is_aerosol = 1 ;\n" if ($aero ne "");
print $outfile " is_chemical = 1 ;\n" if ($constit ne "");
-
+ } else {
+ print $outfile " is_chemical_srcsink = 1 ;\n";
+ print $outfile " sourceSinkChemicalPhysicalProcess = $sourceSink ;\n";
+ }
print $outfile " typeOfGeneratingProcess = $typeGen ;\n" if ($typeGen ne "");
print $outfile " localTablesVersion = $localTV ;\n" if ($localTV ne "");
+ print $outfile " typeOfWavelengthInterval = $typeOfWLInt ;\n" if ($typeOfWLInt ne "");
+ print $outfile " scaleFactorOfFirstWavelength = $scaleFactorWL1 ;\n" if ($scaleFactorWL1 ne "");
+ print $outfile " scaledValueOfFirstWavelength = $scaledValueWL1 ;\n" if ($scaledValueWL1 ne "");
+ print $outfile " scaleFactorOfSecondWavelength = $scaleFactorWL2 ;\n" if ($scaleFactorWL2 ne "");
+ print $outfile " scaledValueOfSecondWavelength = $scaledValueWL2 ;\n" if ($scaledValueWL2 ne "");
+
print $outfile "}\n";
}
|
comment out GPU mode | @@ -417,8 +417,8 @@ static const struct operator_p_s* T1inv_p_create(const struct mdb_irgnm_l1_conf*
auto tmp = operator_p_create(dm->N, dm->dims, dm->N, dm->dims, CAST_UP(PTR_PASS(data)), T1inv_apply, T1inv_del);
-#ifdef USE_CUDA
- if (0 < cuda_num_devices()) {
+#if 0
+ if (0 < cuda_num_devices()) { // FIXME: not a correct check for GPU mode
auto tmp2 = tmp;
@@ -481,8 +481,8 @@ void mdb_irgnm_l1(const struct mdb_irgnm_l1_conf* conf,
struct lsqr_conf lsqr_conf = lsqr_defaults;
lsqr_conf.it_gpu = false;
-#ifdef USE_CUDA
- if (0 < cuda_num_devices())
+#if 0
+ if (0 < cuda_num_devices()) // FIXME: not correct check for GPU mode
lsqr_conf.it_gpu = true;
#endif
lsqr_conf.warmstart = true;
|
link-view: in mark, use terms for +of cases | ::
++ mems
%- of
- :~ 'group'^pa
- 'ships'^(cu sy (ar (su ;~(pfix sig fed:ag))))
+ :~ %group^pa
+ %ships^(cu sy (ar (su ;~(pfix sig fed:ag))))
==
--
--
|
Minor code comment cleanup. | @@ -1211,7 +1211,7 @@ bool celix_bundleContext_useServiceWithOptions(
if(opts->flags & CELIX_SERVICE_USE_DIRECT) {
if(opts->flags & CELIX_SERVICE_USE_SOD) {
- // TL;DR make "service on demand" pattern work. Try comment it out and run CelixBundleContextServicesTests.UseServiceOnDemandDirectlyWithAsyncRegisterTest
+ // check CelixBundleContextServicesTests.UseServiceOnDemandDirectlyWithAsyncRegisterTest to see what is "service on demand".
celix_framework_waitUntilNoPendingRegistration(ctx->framework);
}
called = celix_serviceTracker_useHighestRankingService(data.svcTracker, NULL, opts->waitTimeoutInSeconds, opts->callbackHandle, opts->use, opts->useWithProperties, opts->useWithOwner);
@@ -1268,7 +1268,7 @@ size_t celix_bundleContext_useServicesWithOptions(
if (opts->flags & CELIX_SERVICE_USE_DIRECT) {
if(opts->flags & CELIX_SERVICE_USE_SOD) {
- // TL;DR make "service on demand" pattern work. Try comment it out and run CelixBundleContextServicesTests.UseServicesOnDemandDirectlyWithAsyncRegisterTest
+ // check CelixBundleContextServicesTests.UseServicesOnDemandDirectlyWithAsyncRegisterTest to see what is "service on demand".
celix_framework_waitUntilNoPendingRegistration(ctx->framework);
}
celix_bundleContext_useServicesWithOptions_2_UseServiceTracker(&data);
|
Update README.md
Add extra line after table | @@ -347,6 +347,7 @@ Parameters that are enabled by default have to be explicitly disabled. These (cu
| `battery_icon` | Display battery icon instead of percent |
| `battery_color` | Change the BATT text color |
| `force_amdgpu_hwmon` | Use hwmon sysfs instead of libdrm for amdgpu stats |
+
Example: `MANGOHUD_CONFIG=cpu_temp,gpu_temp,position=top-right,height=500,font_size=32`
Because comma is also used as option delimiter and needs to be escaped for values with a backslash, you can use `+` like `MANGOHUD_CONFIG=fps_limit=60+30+0` instead.
|
scripts: fix reformat-java for clang-format 11 version string | SCRIPTS_DIR=$(dirname "$0")
. "${SCRIPTS_DIR}/include-common"
-MIN_VERSION=11
-CLANG_FORMAT=$(command -v clang-format-$MIN_VERSION || command -v clang-format)
+REQUIRED_VERSION=11
+CLANG_FORMAT=$(command -v clang-format-$REQUIRED_VERSION || command -v clang-format)
if [ -n "$CLANG_FORMAT" ]; then
LOCATION="$CLANG_FORMAT"
VERSION=$("$CLANG_FORMAT" --version 2> /dev/null)
- MAJOR_VERSION=$(printf '%s' "$VERSION" | sed -E 's/.* ([0-9]+)\.[0-9].[0-9][ -].*/\1/')
- if [ "${MAJOR_VERSION:-0}" -lt $MIN_VERSION ]; then
+ MAJOR_VERSION=$(printf '%s' "$VERSION" | sed -E 's/.* ([0-9]+)\.[0-9].[0-9][ -]?.*/\1/')
+ if [ "${MAJOR_VERSION:-0}" -ne $REQUIRED_VERSION ]; then
unset CLANG_FORMAT
fi
fi
|
Don't redefine variable. | @@ -1852,7 +1852,7 @@ define_function(imphash)
return_string(UNDEFINED);
// Lookup in cache first.
- char* digest_ascii = (char*) yr_hash_table_lookup(
+ digest_ascii = (char*) yr_hash_table_lookup(
pe->hash_table,
"imphash",
NULL);
|
[Readme] note about vulkan vsync support | @@ -152,11 +152,12 @@ Note: Width and Height are set automatically based on the font_size, but can be
- `n` = Sync to refresh rate / n.
### Vulkan Vsync
-- `0` = Adaptive VSync
-- `1` = Off
-- `2` = Mailbox (VSync with uncapped FPS)
-- `3` = On
+- `0` = Adaptive VSync (FIFO_RELAXED_KHR)
+- `1` = Off (IMMEDIATE_KHR)
+- `2` = Mailbox (VSync with uncapped FPS) (MAILBOX_KHR)
+- `3` = On (FIFO_KHR)
+All vulkan vsync options might not be supported on your device, you can check what your device supports here [vulkan.gpuinfo.org](https://vulkan.gpuinfo.org/listsurfacepresentmodes.php?platform=linux)
## Keybindings
|
Update mat2cfl for new Matlab interleaved complex API | /*
* Martin Uecker 2012-01-18
* [email protected]
+ *
+ * Damien Nguyen 2018-04-19
+ * [email protected]
*/
#include <string.h>
@@ -70,13 +73,20 @@ int main(int argc, char *argv[])
snprintf(outname, 256, "%s_%s", strtok(argv[1], "."), name);
complex float* buf = create_cfl(outname, ndim, ldims);
+ size_t size = md_calc_size(ndim, ldims);
+
+#if MX_HAS_INTERLEAVED_COMPLEX
+ mxComplexDouble* x = mxGetComplexDoubles(ar);
+
+ for (unsigned long i = 0; i < size; i++)
+ buf[i] = x[i].real + 1.i * x[i].imag;
+#else
double* re = mxGetPr(ar);
double* im = mxGetPi(ar);
- size_t size = md_calc_size(ndim, ldims);
-
for (unsigned long i = 0; i < size; i++)
buf[i] = re[i] + 1.i * im[i];
+#endif /* MX_HAS_INTERLEAVED_COMPLEX */
printf("] -> %s\n", outname);
|
tramp: return success immediatly after command | @@ -158,7 +158,7 @@ vtx_update_result_t serial_tramp_update() {
return VTX_WAIT;
} else {
parser_state = PARSER_IDLE;
- return VTX_WAIT;
+ return VTX_SUCCESS;
}
}
case PARSER_READ_MAGIC: {
|
Fix browser loop on iPhone | @@ -417,7 +417,7 @@ class DocumentBrowserViewController: UIViewController, UICollectionViewDataSourc
collectionView.reloadData()
// Directory observer
- DispatchQueue.global(qos: .background).async {
+ DispatchQueue.global().async {
var files = self.scripts_
while true {
if self.stopObserver_ {
|
hooks: create plugin config from contract | @@ -45,11 +45,56 @@ static int initHooksGopts (KDB * kdb, Plugin * plugin, Key * errorKey)
return 0;
}
-static Plugin * loadPlugin (const char * pluginName, KeySet * modules, Key * errorKey)
+static KeySet * getPluginConfigFromContract(const char * pluginName, const KeySet * contract)
+{
+ KeySet * tmpContract = ksDup (contract);
+ KeySet * config = ksNew (0, KS_END);
+
+ Key * mountContractRoot = keyNew ("system:/elektra/contract/mountglobal", KEY_END);
+ Key * pluginConfigRoot = keyNew ("user:/", KEY_END);
+
+ for (elektraCursor it = ksFindHierarchy (tmpContract, mountContractRoot, NULL); it < ksGetSize (tmpContract); it++)
+ {
+ Key * cur = ksAtCursor (tmpContract, it);
+ if (keyIsDirectlyBelow (mountContractRoot, cur) == 1)
+ {
+ const char * pluginNameOfConfig = keyBaseName (cur);
+ if(strcmp (pluginName, pluginNameOfConfig) != 0)
+ {
+ break;
+ }
+
+ KeySet * pluginConfig = ksCut (tmpContract, cur);
+
+ // increment ref count, because cur is part of pluginConfig and
+ // we hold a reference to cur that is still needed (via pluginName)
+ keyIncRef (cur);
+ ksRename (pluginConfig, cur, pluginConfigRoot);
+ ksAppend (config, pluginConfig);
+
+ // we need to delete cur separately, because it was ksCut() from contract
+ // we also need to decrement the ref count, because it was incremented above
+ keyDecRef (cur);
+ keyDel (cur);
+
+ --it;
+ }
+ }
+
+ keyDel (mountContractRoot);
+ keyDel (pluginConfigRoot);
+ ksDel (tmpContract);
+
+ return config;
+}
+
+static Plugin * loadPlugin (const char * pluginName, KeySet * global, KeySet * modules, const KeySet * contract, Key * errorKey)
{
Key * openKey = keyDup (errorKey, KEY_CP_ALL);
- Plugin * plugin = elektraPluginOpen (pluginName, modules, ksNew (0, KS_END), openKey);
+ KeySet * config = getPluginConfigFromContract(pluginName, contract);
+
+ Plugin * plugin = elektraPluginOpen (pluginName, modules, config, openKey);
if (!plugin)
{
@@ -59,6 +104,8 @@ static Plugin * loadPlugin (const char * pluginName, KeySet * modules, Key * err
return NULL;
}
+ plugin->global = global;
+
return plugin;
}
@@ -75,7 +122,7 @@ int initHooks (KDB * kdb, const KeySet * config, KeySet * modules, const KeySet
{
freeHooks (kdb, errorKey);
- if (isGoptsEnabledByContract (contract) && initHooksGopts (kdb, loadPlugin ("gopts", modules, errorKey), errorKey) != 0)
+ if (isGoptsEnabledByContract (contract) && initHooksGopts (kdb, loadPlugin ("gopts", kdb->global, modules, contract, errorKey), errorKey) != 0)
{
goto error;
}
|
compiler-families/arm-compilers-devel: cleanup to match latest convention(s), add check in %postun | #----------------------------------------------------------------------------eh-
%include %{_sourcedir}/OHPC_macros
-%{!?PROJ_DELIM: %global PROJ_DELIM -ohpc}
-
-%define pname arm-compilers-devel
+%global pname arm-compilers-devel
Summary: OpenHPC compatibility package for Arm HPC compiler
Name: %{pname}%{PROJ_DELIM}
@@ -21,8 +19,6 @@ License: Apache-2.0
URL: https://github.com/openhpc/ohpc
Group: %{PROJ_NAME}/compiler-families
BuildArch: aarch64
-Source1: OHPC_macros
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
#!BuildIgnore: brp-check-suse
#!BuildIgnore: post-build-checks
@@ -32,11 +28,7 @@ Provides: %{pname}%{PROJ_DELIM}
%description
-Provides OpenHPC-style module compatability for use with the Arm HPC compiler suite.
-
-%prep
-
-%build
+Provides OpenHPC-style module compatibility for use with the Arm HPC compiler suite.
%install
@@ -56,14 +48,14 @@ versions_all=`rpm -qal | grep ${arm_subpath}`
if [ $? -eq 1 ];then
echo ""
echo "Error: Unable to detect local Arm compiler installation. The toolchain"
- echo " providing ${arm_subpath} must be installed prior to this compatability package"
+ echo " providing ${arm_subpath} must be installed prior to this compatibility package"
echo " "
exit 1
fi
# Verify min version expectations
-min_ver="18.1"
+min_ver="18.3"
versions=""
for file in ${versions_all}; do
version=`rpm -q --qf '%{VERSION}.%{RELEASE}\n' -f ${file}`
@@ -77,7 +69,7 @@ for file in ${versions_all}; do
done
if [ -z "${versions}" ]; then
echo ""
- echo "Error: local Arm compiler compatability support is for versions > ${min_ver}"
+ echo "Error: local Arm compiler compatibility support is for versions > ${min_ver}"
echo " "
exit 1
fi
@@ -90,11 +82,11 @@ packages=`rpm -qal | grep ${arm_subpath}`
if [ $? -eq 1 ];then
echo ""
echo "Error: Unable to detect local Arm compiler installation. The toolchain"
- echo " providing ${arm_subpath} must be installed prior to this compatability package"
+ echo " providing ${arm_subpath} must be installed prior to this compatibility package"
exit 1
fi
-echo "Creating OpenHPC compatability modulefile for local Arm compiler installation(s)."
+echo "Creating OpenHPC compatibility modulefile for local Arm compiler installation(s)."
# Create a top-level arm/compat module which appends the lmod modulepath to see
# modulefiles provided by Arm installation
@@ -149,16 +141,13 @@ EOF
%postun
+if [ $1 -eq 0 ];then
+
if [ -s %{OHPC_MODULES}/arm/compat ];then
rm -f %{OHPC_MODULES}/arm/compat
fi
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+fi
%files
-%defattr(-,root,root,-)
%{OHPC_MODULES}
-%changelog
-
|
Adds option for goto-instrument flags specification | @@ -41,6 +41,11 @@ CBMCFLAGS = \
$(C_CBMCFLAGS) $(O_CBMCFLAGS) $(H_CBMCFLAGS) \
# empty
+INSTFLAGS = \
+ $(INSTFLAGS2) \
+ $(C_INSTFLAGS) $(O_INSTFLAGS) $(H_INSTFLAGS) \
+ # empty
+
# ____________________________________________________________________
# Rules
#
@@ -82,7 +87,7 @@ $(ENTRY)3.goto: $(ENTRY)2.goto
> $(ENTRY)3.txt 2>&1
$(ENTRY)4.goto: $(ENTRY)3.goto
- $(GOTO_INSTRUMENT) --slice-global-inits @RULE_INPUT@ @RULE_OUTPUT@ \
+ $(GOTO_INSTRUMENT) $(INSTFLAGS) --slice-global-inits @RULE_INPUT@ @RULE_OUTPUT@ \
> $(ENTRY)4.txt 2>&1
$(ENTRY).goto: $(ENTRY)4.goto
|
[build] fix lib paths for GnuTLS, NSS
(thx dirk) | @@ -850,7 +850,7 @@ GNUTLS_LIBS=
if test "x$use_gnutls" = "xyes"; then
if test "$WITH_GNUTLS" != "yes"; then
GNUTLS_CFLAGS="-I$WITH_GNUTLS/include"
- GNUTLS_LIBS="-L$WITH_GNUTLS/lib"
+ GNUTLS_LIBS="-L$WITH_GNUTLS/lib -lgnutls"
else
dnl oldest GnuTLS supported release is 3.3.x at time this is being written
PKG_CHECK_MODULES([GNUTLS], [gnutls >= 3.3.0])
@@ -887,7 +887,7 @@ NSS_LIBS=
if test "x$use_nss" = "xyes"; then
if test "$WITH_NSS" != "yes"; then
NSS_CFLAGS="-I$WITH_NSS/include"
- NSS_LIBS="-L$WITH_NSS/lib"
+ NSS_LIBS="-L$WITH_NSS/lib -lnss3"
else
PKG_CHECK_MODULES([NSS],[nss])
CPPFLAGS="$CPPFLAGS -I/usr/include/nspr4"
|
hw-support: update C2 chip info to reflect that esp8684 has embedded flash
Closes | @@ -14,5 +14,5 @@ void esp_chip_info(esp_chip_info_t *out_info)
out_info->model = CHIP_ESP32C2;
out_info->revision = efuse_hal_chip_revision();
out_info->cores = 1;
- out_info->features = CHIP_FEATURE_WIFI_BGN | CHIP_FEATURE_BLE;
+ out_info->features = CHIP_FEATURE_WIFI_BGN | CHIP_FEATURE_BLE | CHIP_FEATURE_EMB_FLASH;
}
|
Sync flashloader.c with commit | static const uint8_t loader_code_stm32f4_lv[] = {
// flashloaders/stm32f4lv.s
- 0xdf, 0xf8, 0x28, 0xc0,
- 0xdf, 0xf8, 0x28, 0xa0,
- 0xe2, 0x44, 0x03, 0x78,
+ 0xdf, 0xf8, 0x2c, 0xc0,
+ 0xdf, 0xf8, 0x2c, 0xa0,
+ 0xe2, 0x44, 0x4f, 0xea,
+ 0x82, 0x02, 0x03, 0x78,
0x0b, 0x70, 0x00, 0xf1,
0x01, 0x00, 0x01, 0xf1,
0x01, 0x01, 0xba, 0xf8,
static const uint8_t loader_code_stm32f7_lv[] = {
// flashloaders/stm32f7lv.s
- 0xdf, 0xf8, 0x2c, 0xc0,
- 0xdf, 0xf8, 0x2c, 0xa0,
- 0xe2, 0x44, 0x03, 0x78,
+ 0xdf, 0xf8, 0x30, 0xc0,
+ 0xdf, 0xf8, 0x30, 0xa0,
+ 0xe2, 0x44, 0x4f, 0xea,
+ 0x82, 0x02, 0x03, 0x78,
0x0b, 0x70, 0x00, 0xf1,
0x01, 0x00, 0x01, 0xf1,
0x01, 0x01, 0xbf, 0xf3,
|
Remove ntdll import | @@ -255,7 +255,8 @@ HANDLE PhCreateThread(
// NOTE: PhCreateThread previously used CreateThread with callers using GetLastError()
// for checking errors. We need to preserve this behavior for compatibility -dmex
// TODO: Migrate code over to PhCreateThreadEx and remove this function.
- RtlSetLastWin32ErrorAndNtStatusFromNtStatus(status);
+ //RtlSetLastWin32ErrorAndNtStatusFromNtStatus(status);
+ SetLastError(RtlNtStatusToDosError(status));
if (NT_SUCCESS(status))
{
|
Update 'Widget.intentdefinition' | <key>INIntentDefinitionSystemVersion</key>
<string>20A4299v</string>
<key>INIntentDefinitionToolsBuildVersion</key>
- <string>12A7208</string>
+ <string>12A7300</string>
<key>INIntentDefinitionToolsVersion</key>
- <string>12.0</string>
+ <string>12.0.1</string>
<key>INIntents</key>
<array>
<dict>
|
removed stale ast.Stat.Func tag check | @@ -266,9 +266,6 @@ function Converter:visit_stat(stat)
elseif tag == "ast.Stat.Call" then
stat.call_exp = self:convert_exp(stat.call_exp)
- elseif tag == "ast.Stat.Func" then
- self:visit_func(stat)
-
elseif tag == "ast.Stat.Break" then
-- empty
else
|
OpenCanopy: Restore the old cursor rectangle early | @@ -58,6 +58,9 @@ STATIC UINT64 mStartTsc = 0;
STATIC UINT8 mNumValidDrawReqs = 0;
STATIC GUI_DRAW_REQUEST mDrawRequests[4] = { { 0 } };
+STATIC UINT32 mCursorOldX = 0;
+STATIC UINT32 mCursorOldY = 0;
+
#define PIXEL_TO_UINT32(Pixel) \
((UINT32) SIGNATURE_32 ((Pixel)->Blue, (Pixel)->Green, (Pixel)->Red, (Pixel)->Reserved))
@@ -673,9 +676,6 @@ GuiRedrawPointer (
IN OUT GUI_DRAWING_CONTEXT *DrawContext
)
{
- STATIC UINT32 CursorOldX = 0;
- STATIC UINT32 CursorOldY = 0;
-
CONST GUI_IMAGE *CursorImage;
UINT32 MaxWidth;
UINT32 MaxHeight;
@@ -698,17 +698,10 @@ GuiRedrawPointer (
// Unconditionally draw the cursor to increase frametime consistency and
// prevent situational hiding.
//
-
+ // The original area of the cursor is restored at the beginning of the main
+ // drawing loop.
//
- // Restore the rectangle previously covered by the cursor.
- //
- GuiDrawScreen (
- DrawContext,
- CursorOldX,
- CursorOldY,
- CursorImage->Width,
- CursorImage->Height
- );
+
//
// Draw the new cursor at the new position.
//
@@ -735,8 +728,8 @@ GuiRedrawPointer (
MaxHeight
);
- CursorOldX = PointerState.X;
- CursorOldY = PointerState.Y;
+ mCursorOldX = PointerState.X;
+ mCursorOldY = PointerState.Y;
}
/**
@@ -1053,6 +1046,8 @@ GuiDrawLoop (
UINT64 LastTsc;
UINT64 NewLastTsc;
+ CONST GUI_IMAGE *CursorImage;
+
ASSERT (DrawContext != NULL);
mNumValidDrawReqs = 0;
@@ -1077,6 +1072,23 @@ GuiDrawLoop (
do {
if (mPointerContext != NULL) {
//
+ // TODO: Put cursor dimensions in some context?
+ //
+ ASSERT (DrawContext->GetCursorImage != NULL);
+ CursorImage = DrawContext->GetCursorImage (DrawContext->GuiContext);
+ ASSERT (CursorImage != NULL);
+ //
+ // Restore the rectangle previously covered by the cursor.
+ // The new cursor is drawn right before flushing the screen.
+ //
+ GuiDrawScreen (
+ DrawContext,
+ mCursorOldX,
+ mCursorOldY,
+ CursorImage->Width,
+ CursorImage->Height
+ );
+ //
// Process pointer events.
//
GuiPointerGetState (mPointerContext, &PointerState);
|
Update: also allow to use raw output from Python interface | @@ -34,7 +34,7 @@ def GetOutput():
inputs = [parseTask(l.split("Input: ")[1]) for l in lines if l.startswith('Input:')]
derivations = [parseTask(l.split("Derived: ")[1]) for l in lines if l.startswith('Derived:')]
answers = [parseTask(l.split("Answer: ")[1]) for l in lines if l.startswith('Answer:')]
- return {"input": inputs, "derivations": derivations, "answers": answers, "executions": executions}
+ return {"input": inputs, "derivations": derivations, "answers": answers, "executions": executions, "raw": "\n".join(lines)}
def GetStats():
Stats = {}
|
Optimize imageviewer's XCB_EXPOSE handling | @@ -412,7 +412,8 @@ int main(int argc, char** argv) {
switch (event->response_type & 0x7F) {
case XCB_EXPOSE: {
- if (loaded) {
+ xcb_expose_event_t* e = (xcb_expose_event_t*)event;
+ if (loaded && (e->count == 0)) {
xcb_copy_area(c, g_pixmap, w, g, 0, 0, 0, 0, g_width, g_height);
xcb_flush(c);
}
|
Fix unlinking of SLRU segments.
Commit intended to drop any queued up fsync requests before
unlinking segment files, but missed a code path. Fix, by centralizing
the forget-and-unlink code into a single function.
Reported-by: Tomas Vondra
Discussion: | @@ -145,7 +145,7 @@ static int SlruSelectLRUPage(SlruCtl ctl, int pageno);
static bool SlruScanDirCbDeleteCutoff(SlruCtl ctl, char *filename,
int segpage, void *data);
-static void SlruInternalDeleteSegment(SlruCtl ctl, char *filename);
+static void SlruInternalDeleteSegment(SlruCtl ctl, int segno);
/*
* Initialization of shared memory
@@ -1298,19 +1298,28 @@ restart:;
}
/*
- * Delete an individual SLRU segment, identified by the filename.
+ * Delete an individual SLRU segment.
*
* NB: This does not touch the SLRU buffers themselves, callers have to ensure
* they either can't yet contain anything, or have already been cleaned out.
*/
static void
-SlruInternalDeleteSegment(SlruCtl ctl, char *filename)
+SlruInternalDeleteSegment(SlruCtl ctl, int segno)
{
char path[MAXPGPATH];
- snprintf(path, MAXPGPATH, "%s/%s", ctl->Dir, filename);
- ereport(DEBUG2,
- (errmsg("removing file \"%s\"", path)));
+ /* Forget any fsync requests queued for this segment. */
+ if (ctl->sync_handler != SYNC_HANDLER_NONE)
+ {
+ FileTag tag;
+
+ INIT_SLRUFILETAG(tag, ctl->sync_handler, segno);
+ RegisterSyncRequest(&tag, SYNC_FORGET_REQUEST, true);
+ }
+
+ /* Unlink the file. */
+ SlruFileName(ctl, path, segno);
+ ereport(DEBUG2, (errmsg("removing file \"%s\"", path)));
unlink(path);
}
@@ -1322,7 +1331,6 @@ SlruDeleteSegment(SlruCtl ctl, int segno)
{
SlruShared shared = ctl->shared;
int slotno;
- char path[MAXPGPATH];
bool did_write;
/* Clean out any possibly existing references to the segment. */
@@ -1364,23 +1372,7 @@ restart:
if (did_write)
goto restart;
- snprintf(path, MAXPGPATH, "%s/%04X", ctl->Dir, segno);
- ereport(DEBUG2,
- (errmsg("removing file \"%s\"", path)));
-
- /*
- * Tell the checkpointer to forget any sync requests, before we unlink the
- * file.
- */
- if (ctl->sync_handler != SYNC_HANDLER_NONE)
- {
- FileTag tag;
-
- INIT_SLRUFILETAG(tag, ctl->sync_handler, segno);
- RegisterSyncRequest(&tag, SYNC_FORGET_REQUEST, true);
- }
-
- unlink(path);
+ SlruInternalDeleteSegment(ctl, segno);
LWLockRelease(shared->ControlLock);
}
@@ -1413,7 +1405,7 @@ SlruScanDirCbDeleteCutoff(SlruCtl ctl, char *filename, int segpage, void *data)
int cutoffPage = *(int *) data;
if (ctl->PagePrecedes(segpage, cutoffPage))
- SlruInternalDeleteSegment(ctl, filename);
+ SlruInternalDeleteSegment(ctl, segpage / SLRU_PAGES_PER_SEGMENT);
return false; /* keep going */
}
@@ -1425,7 +1417,7 @@ SlruScanDirCbDeleteCutoff(SlruCtl ctl, char *filename, int segpage, void *data)
bool
SlruScanDirCbDeleteAll(SlruCtl ctl, char *filename, int segpage, void *data)
{
- SlruInternalDeleteSegment(ctl, filename);
+ SlruInternalDeleteSegment(ctl, segpage / SLRU_PAGES_PER_SEGMENT);
return false; /* keep going */
}
|
examples/terminals: more term.log exclusions | @@ -48,6 +48,12 @@ static bool isInteresting(const char* s, size_t len)
if (s[i] == ';') {
continue;
}
+ if (s[i] == 'c') {
+ continue;
+ }
+ if (s[i] == 'R') {
+ continue;
+ }
if (isdigit(s[i])) {
continue;
}
|
avoid hole on data when we move from the end of msg_buffer to the begin. | @@ -266,7 +266,7 @@ void MsgAlloc_ValidHeader(void)
// Move current_msg to msg_buffer
current_msg = (volatile msg_t *)&msg_buffer[0];
// move data_ptr after the new location of the header
- data_ptr = &msg_buffer[0] + sizeof(header_t) + 1;
+ data_ptr = &msg_buffer[0] + sizeof(header_t);
}
else
{
|
Localize network names. | @@ -1155,14 +1155,14 @@ _papplSystemWebNetwork(
{
if (client->system->network_set_cb)
{
- papplClientHTMLPrintf(client, " <tr><th>%s:</th><td>%s: <select name=\"%s.config4\" onchange=\"update_ipv4('%s');\">", network->name, papplLocGetString(loc, _PAPPL_LOC("Configuration")), network->ident, network->ident);
+ papplClientHTMLPrintf(client, " <tr><th>%s:</th><td>%s: <select name=\"%s.config4\" onchange=\"update_ipv4('%s');\">", papplLocGetString(loc, network->name), papplLocGetString(loc, _PAPPL_LOC("Configuration")), network->ident, network->ident);
for (j = 0; j < (sizeof(configs) / sizeof(configs[0])); j ++)
papplClientHTMLPrintf(client, "<option value=\"%u\"%s>%s</option>", (unsigned)j, (pappl_netconf_t)j == network->config4 ? " selected" : "", papplLocGetString(loc, configs[j]));
papplClientHTMLPuts(client, "</select><br>");
}
else
{
- papplClientHTMLPrintf(client, " <tr><th>%s:</th><td>%s: %s<br>", network->name, papplLocGetString(loc, _PAPPL_LOC("Configuration")), papplLocGetString(loc, configs[network->config4]));
+ papplClientHTMLPrintf(client, " <tr><th>%s:</th><td>%s: %s<br>", papplLocGetString(loc, network->name), papplLocGetString(loc, _PAPPL_LOC("Configuration")), papplLocGetString(loc, configs[network->config4]));
}
papplClientHTMLPrintf(client, "%s: ", papplLocGetString(loc, _PAPPL_LOC("IPv4 Address")));
|
tap: fix the segv
Type: fix | @@ -109,8 +109,11 @@ tap_free (vlib_main_t * vm, virtio_if_t * vif)
virtio_vring_free_tx (vm, vif, TX_QUEUE (i));
/* *INDENT-ON* */
+ if (vif->tap_fds)
+ {
_IOCTL (vif->tap_fds[0], TUNSETPERSIST, (void *) (uintptr_t) 0);
tap_log_dbg (vif, "TUNSETPERSIST: unset");
+ }
error:
vec_foreach_index (i, vif->tap_fds) close (vif->tap_fds[i]);
|
Back out Linux updates since Travis CI still doesn't support Ubuntu Xenial... | @@ -15,7 +15,11 @@ matrix:
- os: linux
before_install:
- sudo apt-get -qq update
- - sudo apt-get install -y avahi-daemon avahi-utils cura-engine libavahi-client-dev libfreetype6-dev libgnutls28-dev libharfbuzz-dev libjbig2dec0-dev libjpeg-dev libmupdf-dev libnss-mdns libopenjp2-7-dev libpng-dev zlib1g-dev
+ # Note: Because Travis CI does not yet support Ubuntu Xenial 18.04, we
+ # cannot do build tests with MuPDF or other dependencies since the
+ # projects just aren't there... :/
+ # - sudo apt-get install -y avahi-daemon avahi-utils cura-engine libavahi-client-dev libfreetype6-dev libgnutls28-dev libharfbuzz-dev libjbig2dec0-dev libjpeg-dev libmupdf-dev libnss-mdns libopenjp2-7-dev libpng-dev zlib1g-dev
+ - sudo apt-get install -y avahi-daemon avahi-utils libavahi-client-dev libgnutls28-dev libjpeg-dev libnss-mdns libpng-dev zlib1g-dev
# macOS-specific build stuff
- os: osx
|
Close file on error | @@ -1098,6 +1098,7 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value)
if (width > 10000 || height > 10000) {
fprintf(stderr, "ROI dimensions exceed arbitrary value of 10000.\n");
+ fclose(f);
return 0;
}
|
Fix 'Console/Printing functions using UTF-8' section in docs | @@ -2122,7 +2122,9 @@ INCLUDE_FILE_PATTERNS =
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
PREDEFINED = TCODLIB_API= \
- TCOD_DEPRECATED(msg)= \
+ TCODLIB_CAPI= \
+ "TCODLIB_FORMAT(int,int)= " \
+ "TCOD_DEPRECATED(msg)= " \
TCOD_DEPRECATED_NOMESSAGE=
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
|
awm draws a stack of open windows | @@ -435,6 +435,32 @@ int main(int argc, char** argv) {
user_window_t* window = &windows[i];
blit_layer(_screen.vmem, window->layer, window->frame, rect_make(point_zero(), window->frame.size));
}
+ // Draw a VStack of currently active applications, so the user is aware
+ Size vstack_row_size = size_make(200, 30);
+ uint32_t vstack_y = _screen.resolution.height - vstack_row_size.height;
+ for (int i = window_count-1; i >= 0; i--) {
+ user_window_t* window = &windows[i];
+ Rect box = rect_make(
+ point_make(0, vstack_y),
+ vstack_row_size
+ );
+ draw_rect(_screen.vmem, box, color_red(), THICKNESS_FILLED);
+ draw_rect(_screen.vmem, box, color_dark_gray(), 1);
+
+ text_box_t text_box;
+ text_box.layer = _screen.vmem;
+ text_box.origin = point_make(box.origin.x, vstack_y + 2);
+ text_box.size = vstack_row_size;
+ text_box.cursor_pos = point_make(text_box.origin.x + 2, text_box.origin.y);
+ text_box.font_size = size_make(10, 10);
+ text_box.font_padding = size_make(0, 2);
+ for (int i = 0; i < strlen(window->owner_service); i++) {
+ _putchar(&text_box, window->owner_service[i], color_white());
+ }
+
+ vstack_y -= vstack_row_size.height;
+ }
+
// And finally the cursor
_draw_cursor();
|
Composite volume io calculations fix | @@ -282,7 +282,7 @@ static void *ocf_composite_io_allocator_new(ocf_io_allocator_t allocator,
member_addr = cur_addr - (i > 0 ? composite->end_addr[i-1] : 0);
member_bytes =
OCF_MIN(cur_addr + cur_bytes, composite->end_addr[i])
- - member_addr;
+ - cur_addr;
cio->member_io[i] = ocf_io_new(&composite->member[i].volume, queue,
member_addr, member_bytes, dir, 0, 0);
|
Update README.md
Add check mark to 1-Wire for ESP32.
***NO_CI*** | @@ -76,7 +76,7 @@ The above firmware builds include support for the class libraries and features m
| ST_STM32F769I_DISCOVERY | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| MBN_QUAIL | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | | |
| NETDUINO3_WIFI | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | | |
-| ESP32_WROOM_32 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | :heavy_check_mark: | | :heavy_check_mark: | |
+| ESP32_WROOM_32 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | :heavy_check_mark: | |
| TI_CC3220SF_LAUNCHXL | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | | :heavy_check_mark: | | :heavy_check_mark: | |
|
Add -pthread to avoid std::thread etc. issues
With PHSA on Ubuntu 16.04, this issue gets triggered: | @@ -42,6 +42,8 @@ ExternalProject_Add(
CMAKE_ARGS
-DTESTS=ON
-DCLIENTS=ON
+ # This is needed with some drivers due to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67791
+ -DCMAKE_CXX_FLAGS=-pthread
INSTALL_COMMAND /bin/true
)
|
Fix Double Free error | @@ -1333,7 +1333,7 @@ double *pluto_mip_scale_solutions_glpk(glp_prob *ilp)
return scale_sols;
}
-glp_prob* get_scaling_lp_gplk(double* fpsol, int num_sols, double **val, int **index, int npar, int num_ccs)
+glp_prob* get_scaling_lp_glpk(double* fpsol, int num_sols, double **val, int **index, int npar, int num_ccs)
{
int i, num_rows, num_sols_to_be_scaled, col_num;
glp_prob *lp;
@@ -1426,7 +1426,6 @@ int64 *pluto_prog_constraints_lexmin_glpk(const PlutoConstraints *cst,
is_unsat = pluto_constraints_solve_glpk(lp);
if (is_unsat) {
- glp_delete_prob(lp);
return NULL;
}
@@ -1436,7 +1435,7 @@ int64 *pluto_prog_constraints_lexmin_glpk(const PlutoConstraints *cst,
num_sols = glp_get_num_cols (lp);
glp_delete_prob(lp);
- lp = get_scaling_lp_gplk(fpsol, num_sols, val, index, npar, num_ccs);
+ lp = get_scaling_lp_glpk(fpsol, num_sols, val, index, npar, num_ccs);
/* t_mip = rtclock()-t_mip_start; */
/* prog->mipTime += t_mip; */
@@ -1510,7 +1509,6 @@ double* pluto_fcg_constraints_lexmin_glpk(const PlutoConstraints *cst, PlutoMatr
is_unsat = pluto_constraints_solve_glpk(lp);
if (is_unsat) {
- glp_delete_prob(lp);
return NULL;
} else {
sol = get_lp_solution_from_glpk_problem(lp);
|
dispatcher: (try to) address some Coverity findings | @@ -1114,6 +1114,7 @@ dispatch_runner(void *arg)
if (ufds == NULL) {
logerr("dispatch: failed to allocate socket poll "
"space, cannot continue!\n");
+ pthread_rwlock_unlock(&connectionslock);
kill(getpid(), SIGTERM);
return NULL;
}
@@ -1158,7 +1159,8 @@ dispatch_runner(void *arg)
conn = &(connections[c]);
/* connection may be serviced at this point,
* that's fine */
- if (__sync_add_and_fetch(&(conn->takenby), 0) < 0)
+ if ((char)__sync_add_and_fetch(&(conn->takenby), 0)
+ < 0)
continue;
if (conn->sock == ufds[f].fd) {
__sync_bool_compare_and_swap(
@@ -1213,6 +1215,9 @@ dispatch_runner(void *arg)
}
}
}
+
+ if (ufds != NULL)
+ free(ufds);
} else if (self->type == CONNECTION) {
int work;
struct timeval start;
|
config_tools: update loading msr driver logic
load msr driver if not found cpu number. | @@ -54,7 +54,7 @@ def check_env():
# check cpu msr file
cpu_dirs = "/dev/cpu"
- if check_msr_files(cpu_dirs):
+ if not check_msr_files(cpu_dirs):
res = subprocess.Popen("modprobe msr",
shell=True, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, close_fds=True)
|
Fix makefile to attach build identifier. | @@ -27,7 +27,7 @@ PREFIX?=/usr/local
INCLUDEDIR?=$(PREFIX)/include
BINDIR?=$(PREFIX)/bin
LIBDIR?=$(PREFIX)/lib
-JANET_BUILD?="\"$(shell git log --pretty=format:'%h' -n 2> /dev/null || echo local)\""
+JANET_BUILD?="\"$(shell git log --pretty=format:'%h' -n 1 2> /dev/null || echo local)\""
CLIBS=-lm -lpthread
JANET_TARGET=build/janet
JANET_LIBRARY=build/libjanet.so
|
[external] CSparse_extensions fix missing license | +/* Siconos, Copyright INRIA 2005-2016.
+ * Siconos is a program dedicated to modeling, simulation and control
+ * of non smooth dynamical systems.
+ * Siconos is a free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * Siconos is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with Siconos; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Contact: Vincent ACARY, [email protected]
+ */
+
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
|
opae-sdk:update installation guide | @@ -126,6 +126,8 @@ Set the RHEL version and install packages. Set proxy name and port number
# python3 -m pip install --user jsonschema virtualenv pudb pyyaml
```
+### Create opae-sdk packages ###
+
Download the OPAE-SDK source code from github. For example, download from Master branch.
```console
|
Updated Github screenshots. | @@ -8,8 +8,8 @@ viewer that runs in a **terminal** on *nix systems or through your
administrators that require a visual server report on the fly.
More info at: [https://goaccess.io](https://goaccess.io/?src=gh).
-[](https://goaccess.io/)
-[](https://rt.goaccess.io/?src=gh)
+[](https://goaccess.io/)
+[](https://rt.goaccess.io/?src=gh)
## Features ##
GoAccess parses the specified web log file and outputs the data to the X
|
s5j/gpio: clean up code
Function open should not expose any GPIOs, so it is remained empty.
Function up_gpioinitialize should not expose any GPIO, remained empty.
This job will be done on board dependednt level by s5j_gpioinitialize() | @@ -227,8 +227,6 @@ static struct gpio_bank s5jt200_gpio_bank[] = {
};
#endif
-bool isinit = 0;
-
/****************************************************************************
* Private Functions
****************************************************************************/
@@ -608,10 +606,6 @@ static const char *gpio_bank_name(int gpio)
****************************************************************************/
static int s5j_gpio_open(FAR struct gpio_dev_s *dev)
{
- int idx = ((struct s5j_gpio_priv *)(dev->priv))->idx;
- if (!isinit) {
- up_create_gpio(idx);
- }
return OK;
}
@@ -1764,7 +1758,8 @@ int up_create_gpio(int32_t idx)
* Name: up_gpioinitialize
*
* Description:
- * Init all available GPIO, exposing them to file system: dev/gpioXX
+ * Dummy function. Real function s5j_gpioinitialize, where GPIOs are exposed,
+ * called from board_init().
*
* Input Parameters:
* None
@@ -1775,12 +1770,7 @@ int up_create_gpio(int32_t idx)
****************************************************************************/
void up_gpioinitialize(void)
{
- int i;
- for (i = 0; i < NUM_GPIO; i++) {
- up_create_gpio(i);
- }
- isinit = OK;
}
/****************************************************************************
|
docs/ure: Document some more supported regex operators. | @@ -20,14 +20,19 @@ Supported operators are:
including negated sets (e.g. ``[^a-c]``).
``'^'``
+ Match the start of the string.
``'$'``
+ Match the end of the string.
``'?'``
+ Match zero or one of the previous entity.
``'*'``
+ Match zero or more of the previous entity.
``'+'``
+ Match one or more of the previous entity.
``'??'``
@@ -36,6 +41,7 @@ Supported operators are:
``'+?'``
``'|'``
+ Match either the LHS or the RHS of this operator.
``'(...)'``
Grouping. Each group is capturing (a substring it captures can be accessed
|
Update BoAT_User_Guide_en.md
Function and architecture : change "based on cellular modules connect to the blockchain and realize offer data on-chain services." to "based on cellular modules connect to the blockchain and access on-chain services." | @@ -23,7 +23,7 @@ The intended readers of this article are customers who integrate the BoAT IoT Fr
## Function and architecture
-BoAT IoT Framework is a C language blockchain client framework software for cellular modules, which is easy to be ported to various modules and helps IoT applications based on cellular modules connect to the blockchain and realize data on-chain services. The functions provided by the BoAT IoT Framework SDK to IoT applications include initiating on-chain transactions, automatic generation of smart contract C interface code, calling smart contracts, and managing blockchain keys.
+BoAT IoT Framework is a C language blockchain client framework software for cellular modules, which is easy to be ported to various modules and helps IoT applications based on cellular modules connect to the blockchain and access on-chain services. The functions provided by the BoAT IoT Framework SDK to IoT applications include initiating on-chain transactions, automatic generation of smart contract C interface code, calling smart contracts, and managing blockchain keys.
**Supported blockchain:**
Ethereum
|
[catboost] order includes, add missing empty line | #pragma once
#include "features.h"
+#include "online_ctr.h"
#include "split.h"
-
#include "static_ctr_provider.h"
-#include <catboost/libs/options/enums.h>
-
-#include <catboost/libs/model/flatbuffers/model.fbs.h>
-
#include <catboost/libs/cat_feature/cat_feature.h>
+#include <catboost/libs/model/flatbuffers/model.fbs.h>
+#include <catboost/libs/options/enums.h>
#include <library/json/json_reader.h>
-#include <util/system/mutex.h>
#include <util/stream/file.h>
+#include <util/system/mutex.h>
class TModelPartsCachingSerializer;
@@ -45,6 +43,7 @@ struct TRepackedBin {
ui8 XorMask = 0;
ui8 SplitIdx = 0;
};
+
struct TObliviousTrees {
/**
|
Update: use resource protection section there as the arrays for var intro are now global | @@ -208,6 +208,8 @@ int appearing_left[ATOMS_MAX] = {0};
int appearing_right[ATOMS_MAX] = {0};
char variable_id[ATOMS_MAX] = {0};
Term Variable_IntroduceImplicationVariables(Term implication, bool *success, bool extensionally)
+{
+ #pragma omp critical(VarIntro)
{
assert(Narsese_copulaEquals(implication.atoms[0], TEMPORAL_IMPLICATION) || Narsese_copulaEquals(implication.atoms[0], IMPLICATION) || Narsese_copulaEquals(implication.atoms[0], EQUIVALENCE), "An implication is expected here!");
Term left_side = Term_ExtractSubterm(&implication, 1);
@@ -220,6 +222,7 @@ Term Variable_IntroduceImplicationVariables(Term implication, bool *success, boo
char indepvar_i = 1;
memset(variable_id, 0, ATOMS_MAX*sizeof(char));
Term implication_copy = implication;
+ *success = true;
for(int i=0; i<COMPOUND_TERM_SIZE_MAX; i++)
{
Atom atom = implication_copy.atoms[i];
@@ -235,7 +238,7 @@ Term Variable_IntroduceImplicationVariables(Term implication, bool *success, boo
if(!Term_OverrideSubterm(&implication, i, &varterm))
{
*success = false;
- return implication;
+ break;
}
}
}
@@ -249,18 +252,19 @@ Term Variable_IntroduceImplicationVariables(Term implication, bool *success, boo
if(!Term_OverrideSubterm(&implication, i, &varterm))
{
*success = false;
- return implication;
+ break;
+ }
}
}
}
}
-
}
- *success = true;
return implication;
}
Term Variable_IntroduceConjunctionVariables(Term conjunction, bool *success, bool extensionally)
+{
+ #pragma omp critical(VarIntro)
{
assert(Narsese_copulaEquals(conjunction.atoms[0], CONJUNCTION), "A conjunction is expected here!");
memset(appearing_left, 0, ATOMS_MAX*sizeof(int));
@@ -269,6 +273,7 @@ Term Variable_IntroduceConjunctionVariables(Term conjunction, bool *success, boo
char depvar_i = 1;
memset(variable_id, 0, ATOMS_MAX*sizeof(char));
Term conjunction_copy = conjunction;
+ *success = true;
for(int i=0; i<COMPOUND_TERM_SIZE_MAX; i++)
{
Atom atom = conjunction_copy.atoms[i];
@@ -282,12 +287,12 @@ Term Variable_IntroduceConjunctionVariables(Term conjunction, bool *success, boo
if(!Term_OverrideSubterm(&conjunction, i, &varterm))
{
*success = false;
- return conjunction;
+ break;
+ }
}
}
}
}
- *success = true;
return conjunction;
}
|
Fix x/y mixup in lv_page.c (fixes | @@ -567,7 +567,7 @@ void lv_page_scroll_ver(lv_obj_t * page, lv_coord_t dist)
a.repeat_pause = 0;
lv_anim_create(&a);
#else
- lv_obj_set_y(scrl, lv_obj_get_x(scrl) + dist);
+ lv_obj_set_y(scrl, lv_obj_get_y(scrl) + dist);
#endif
}
|
added info about rolling release and sync to hashcat beta | @@ -3,8 +3,9 @@ hcxtools
Small set of tools to capture and convert packets from wlan devices
for the use with latest hashcat. The tools are 100% compatible to hashcat
-and recommended by hashcat (that means hcxtools 3.6.0 working with
-hashcat 3.6.0). Support for hashcat hash-modes (2500, 2501, 4800, 5500, 12000, 15800).
+and recommended by hashcat (that means hcxtools and latest hashcat beta are pretty
+closely synced).
+Support for hashcat hash-modes (2500, 2501, 4800, 5500, 12000, 15800).
After capturing, upload the "uncleaned" cap here
(http://wpa-sec.stanev.org/?submit) to see if your ap is vulnerable
by using common wordlists. Convert the cap to hccapx and check if wlan-key
|
mdns/fuzzer: Fix non-instrumentation test to reproduce fuzzer issues
Regression from skipped reading the packet causing issues when locally reproducing crashed found by the fuzzer | @@ -205,6 +205,7 @@ int main(int argc, char** argv)
// Note: parameter1 is a file (mangled packet) which caused the crash
file = fopen(argv[1], "r");
assert(file >= 0 );
+ len = fread(buf, 1, 1460, file);
fclose(file);
}
|
tests/posix: test pthread_key_create in key dtor | @@ -21,7 +21,7 @@ static void dtor2(void *arg) {
dtors_entered++;
}
-static void *worker(void *arg) {
+static void *worker1(void *arg) {
(void)arg;
pthread_key_t key1, key2;
@@ -39,6 +39,32 @@ static void *worker(void *arg) {
return NULL;
}
+static void dtor3(void *arg) {
+ (void)arg;
+
+ // Make sure that we can create and destroy keys inside the dtor.
+ pthread_key_t dtorKey;
+ assert(!pthread_key_create(&dtorKey, NULL));
+
+ assert(!pthread_setspecific(dtorKey, &dtorKey));
+ assert(pthread_getspecific(dtorKey) == &dtorKey);
+
+ assert(!pthread_key_delete(dtorKey));
+}
+
+static void *worker2(void *arg) {
+ (void)arg;
+
+ pthread_key_t key;
+ assert(!pthread_key_create(&key, dtor3));
+
+ assert(!pthread_setspecific(key, &key));
+ assert(pthread_getspecific(key) == &key);
+
+ pthread_exit(0);
+ return NULL;
+}
+
int main() {
// NOTE that the EINVAL return from pthread_setspecific is mlibc-specific,
// POSIX specifies that accessing an invalid key is undefined behavior.
@@ -53,7 +79,7 @@ int main() {
assert(!pthread_key_delete(key));
pthread_t thread;
- assert(!pthread_create(&thread, NULL, &worker, NULL));
+ assert(!pthread_create(&thread, NULL, &worker1, NULL));
assert(!pthread_join(thread, NULL));
assert(pthread_getspecific(key) == NULL);
@@ -62,5 +88,8 @@ int main() {
assert(dtors_entered == 2);
+ assert(!pthread_create(&thread, NULL, &worker2, NULL));
+ assert(!pthread_join(thread, NULL));
+
return 0;
}
|
Run BVT Last | @@ -177,5 +177,5 @@ if ($CompressOutput) {
}
# Run the script.
-Invoke-Expression ($RunTest + " -Path $($MsQuicTest) " + $TestArguments)
Invoke-Expression ($RunTest + " -Path $($MsQuicCoreTest) " + $TestArguments)
+Invoke-Expression ($RunTest + " -Path $($MsQuicTest) " + $TestArguments)
|
Fix typo in replication.c | @@ -3310,7 +3310,7 @@ void replicationDiscardCachedMaster(void) {
* passed as argument as the socket for the new master.
*
* This function is called when successfully setup a partial resynchronization
- * so the stream of data that we'll receive will start from were this
+ * so the stream of data that we'll receive will start from where this
* master left. */
void replicationResurrectCachedMaster(connection *conn) {
server.master = server.cached_master;
|
In shooter play actor interact script on hit | #include "DataManager.h"
#include "rand.h"
+#define SHOOTER_HURT_IFRAMES 6
+
+UBYTE shooter_iframes = 0;
+
void Reset_Shmup();
void Start_Shmup() {
@@ -21,6 +25,7 @@ void Start_Shmup() {
camera_target = &player.pos;
camera_offset.x = -64;
camera_offset.y = 0;
+ shooter_iframes = 0;
}
void Update_Shmup() {
@@ -118,14 +123,23 @@ void Update_Shmup() {
// Enemy Collisions
hit_actor = ActorAt1x2Tile(tile_x + 1, tile_y, FALSE);
- if (hit_actor && hit_actor != NO_ACTOR_COLLISON) {
- Reset_Shmup();
+ if (hit_actor && hit_actor != NO_ACTOR_COLLISON && shooter_iframes == 0) {
+ shooter_iframes = SHOOTER_HURT_IFRAMES;
+ // ActorRunScript(hit_actor);
+ ScriptStartBg(&actors[hit_actor].events_ptr, hit_actor);
}
// World Collisions
if (TileAt(tile_x + 1, tile_y)) {
Reset_Shmup();
}
+
+ if (shooter_iframes != 0 && IS_FRAME_8) {
+ player.enabled = shooter_iframes & 0x1;
+ shooter_iframes--;
+ } else {
+ player.enabled = TRUE;
+ }
}
void Reset_Shmup() {
|
Set length macro for pbuf | /* Set size of pbuf structure */
#define SIZEOF_PBUF_STRUCT ESP_MEM_ALIGN(sizeof(esp_pbuf_t))
+#define SET_NEW_LEN(v, len) do { if ((v) != NULL) { *(v) = (len); } } while (0)
/**
* \brief Skip pbufs for desired offset
@@ -441,24 +442,20 @@ esp_pbuf_strcmp(const esp_pbuf_p pbuf, const char* str, size_t offset) {
const void *
esp_pbuf_get_linear_addr(const esp_pbuf_p pbuf, size_t offset, size_t* new_len) {
esp_pbuf_p p = pbuf;
+
if (pbuf == NULL || pbuf->tot_len < offset) { /* Check input parameters */
- if (new_len != NULL) {
- *new_len = 0;
- }
+ SET_NEW_LEN(new_len, 0);
return NULL;
}
if (offset) { /* Is there any offset? */
p = pbuf_skip(pbuf, offset, &offset); /* Skip pbuf to desired length */
if (p == NULL) {
- if (new_len != NULL) {
- *new_len = 0;
- }
+ SET_NEW_LEN(new_len, 0);
return NULL;
}
}
- if (new_len != NULL) {
- *new_len = p->len - offset; /* Save memory length user can use */
- }
+
+ SET_NEW_LEN(new_len, p->len - offset);
return &p->payload[offset]; /* Return memory at desired offset */
}
|
Docs - clarifying that non-superuser connections via dblink require both hostname and password | href="https://www.postgresql.org/docs/8.3/static/dblink.html" format="html" scope="external"
>dblink</xref> in the PostgreSQL documentation for more information about individual
functions. </p>
+ <note>You must specify both a hostname and a password to connect with <codeph>dblink</codeph> as
+ a non-superuser.</note>
<ol id="ol_nhg_f1q_fz">
<li>Begin by creating a sample table to query using the <codeph>dblink</codeph> functions.
These commands create a small table in the <codeph>postgres</codeph> database, which you
@@ -60,7 +62,9 @@ CREATE FUNCTION
make a connection to a remote database system, simply include host and port information in
the connection string. For example, to create an implicit <codeph>dblink</codeph>
connection to a remote
- system:<codeblock>gpadmin=# <b>SELECT dblink_connect('host=remotehost port=5432 dbname=postgres');</b></codeblock></p></li>
+ system:<codeblock>gpadmin=# <b>SELECT dblink_connect('host=remotehost port=5432 dbname=postgres');</b></codeblock></p><note>You
+ must specify both a hostname and a password in the connection string to connect as a
+ non-superuser.</note></li>
<li>Use the basic <codeph>dblink</codeph> function to query a database using a configured
connection. Keep in mind that the <codeph>dblink</codeph> function returns a record type, so
you must assign the columns returned in the <codeph>dblink</codeph> query. For example, the
|
options/ansi: Fix several maybe uninitialized warnings | @@ -527,8 +527,10 @@ struct tm *localtime_r(const time_t *unix_gmt, struct tm *res) {
char *tm_zone;
frg::unique_lock<FutexLock> lock(__time_lock);
// TODO: Set errno if the conversion fails.
- if(unix_local_from_gmt(*unix_gmt, &offset, &dst, &tm_zone))
+ if(unix_local_from_gmt(*unix_gmt, &offset, &dst, &tm_zone)) {
__ensure(!"Error parsing /etc/localtime");
+ __builtin_unreachable();
+ }
time_t unix_local = *unix_gmt + offset;
int days_since_epoch = unix_local / (60*60*24);
|
Patched memory overflow in AcpiParsing.c | @@ -2013,7 +2013,7 @@ RetrieveChannelWaysFromInterleaveSetMap(
continue;
}
- *ppChannelWays = ReallocatePool(sizeof(UINT32) * Length, sizeof(UINT32) * Length + 1, *ppChannelWays);
+ *ppChannelWays = ReallocatePool(sizeof(UINT32) * Length, sizeof(UINT32) * (Length + 1), *ppChannelWays);
if (*ppChannelWays == NULL) {
ReturnCode = EFI_OUT_OF_RESOURCES;
goto Finish;
@@ -2057,7 +2057,7 @@ RetrieveChannelWaysFromInterleaveSetMap(
}
// BIOS does not include x1 (non-interleaved)
// since it is always supported
- *ppChannelWays = ReallocatePool(sizeof(UINT32) * Length, sizeof(UINT32) * Length + 1, *ppChannelWays);
+ *ppChannelWays = ReallocatePool(sizeof(UINT32) * Length, sizeof(UINT32) * (Length + 1), *ppChannelWays);
if (*ppChannelWays == NULL) {
ReturnCode = EFI_OUT_OF_RESOURCES;
goto Finish;
|
update rom file for c2 controller lib | @@ -764,7 +764,6 @@ r_ble_ll_conn_hci_set_data_len = 0x40000ddc;
r_ble_ll_conn_hci_update = 0x40000de0;
r_ble_ll_conn_hci_wr_auth_pyld_tmo = 0x40000de4;
r_ble_ll_conn_init_phy = 0x40000de8;
-r_ble_ll_conn_is_dev_connected = 0x40000dec;
r_ble_ll_conn_is_empty_pdu = 0x40000df0;
r_ble_ll_conn_is_lru = 0x40000df4;
r_ble_ll_conn_master_init = 0x40000df8;
@@ -1215,7 +1214,6 @@ r_ble_lll_conn_coex_dpc_update_on_event_started = 0x400014e8;
r_ble_lll_conn_cth_flow_alloc_credit = 0x400014ec;
r_ble_lll_conn_cth_flow_free_credit = 0x400014f0;
r_ble_lll_conn_current_sm_over = 0x400014f4;
-r_ble_lll_conn_end = 0x400014f8;
r_ble_lll_conn_env_deinit = 0x400014fc;
r_ble_lll_conn_env_init = 0x40001500;
r_ble_lll_conn_event_end = 0x40001504;
@@ -1361,7 +1359,6 @@ r_ble_lll_sched_conn_reschedule = 0x40001730;
r_ble_lll_sched_deinit = 0x40001734;
r_ble_lll_sched_dtm = 0x40001738;
r_ble_lll_sched_env_init = 0x4000173c;
-r_ble_lll_sched_execute_check = 0x40001740;
r_ble_lll_sched_execute_item = 0x40001744;
r_ble_lll_sched_init = 0x40001748;
r_ble_lll_sched_insert_if_empty = 0x4000174c;
|
scroll on status text to change volume | @@ -27,9 +27,9 @@ static const char *colors[][3] = {
static const char *tags[] = {"1", "2", "3", "4", "5", "6", "7", "8", "9"};
static const char *tagsalt[] = { "a", "b", "3", "4", "5", "6", "7", "8", "9" };
-static const char *upvol[] = {"/usr/bin/pactl", "set-sink-volume", "0", "+5%", NULL};
-static const char *downvol[] = {"/usr/bin/pactl", "set-sink-volume", "0", "-5%", NULL};
-static const char *mutevol[] = {"/usr/bin/pactl", "set-sink-mute", "0", "toggle", NULL};
+static const char *upvol[] = {"/opt/instantos/menus/dm/p.sh", "+5", NULL};
+static const char *downvol[] = {"/opt/instantos/menus/dm/p.sh", "-5", NULL};
+static const char *mutevol[] = {"/opt/instantos/menus/dm/p.sh", "m", NULL};
static const Rule rules[] = {
/* xprop(1):
@@ -181,6 +181,9 @@ static Button buttons[] = {
{ ClkWinTitle, 0, Button5, focusstack, {.i = +1} },
{ ClkWinTitle, 0, Button4, focusstack, {.i = -1} },
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
+ { ClkStatusText, 0, Button4, spawn, {.v = upvol } },
+ { ClkStatusText, 0, Button5, spawn, {.v = downvol } },
+ { ClkStatusText, MODKEY, Button2, spawn, {.v = mutevol } },
{ ClkStatusText, 0, Button1, spawn, {.v = panther } },
{ ClkRootWin, 0, Button1, spawn, {.v = panther } },
{ ClkRootWin, 0, Button3, spawn, {.v = roficmd } },
|
Don't call dt_shutdown() from a unit test, nor from anywhere except hse_platform_fini()... | @@ -71,9 +71,6 @@ MTF_DEFINE_UTEST_PREPOST(rest_api, get_handler_test, rest_start, rest_stop)
merr_t err;
const char *path;
- dt_shutdown();
- dt_init();
-
ERROR_COUNTER();
/* Register the alias "test_dt" to send requests to DT */
@@ -91,17 +88,6 @@ MTF_DEFINE_UTEST_PREPOST(rest_api, get_handler_test, rest_start, rest_stop)
memset(buf, 0, sizeof(buf));
err = curl_get(0, sock, buf, sizeof(buf));
ASSERT_EQ(merr_errno(err), EINVAL);
-
- dt_shutdown();
-
- /* No tree */
- path = "/test_dt/event_counter";
- memset(buf, 0, sizeof(buf));
- err = curl_get(path, sock, buf, sizeof(buf));
- ASSERT_EQ(0, buf[0]);
- ASSERT_EQ(0, err);
-
- dt_init();
}
MTF_DEFINE_UTEST_PREPOST(rest_api, put_handler_test, rest_start, rest_stop)
@@ -114,8 +100,6 @@ MTF_DEFINE_UTEST_PREPOST(rest_api, put_handler_test, rest_start, rest_stop)
struct event_counter *ec;
struct dt_element * dte;
- dt_shutdown();
- dt_init();
rest_init();
err = rest_url_register(0, 0, rest_dt_get, rest_dt_put, "data");
@@ -145,7 +129,7 @@ MTF_DEFINE_UTEST_PREPOST(rest_api, put_handler_test, rest_start, rest_stop)
err = curl_put(path, sock, 0, 0, buf, sizeof(buf));
ASSERT_EQ(0, err);
/* check in dt_tree if trip odometer is non-zero */
- ASSERT_NE(0, ec->ev_trip_odometer);
+ ASSERT_EQ(1, ec->ev_trip_odometer);
/* Ends on some random arg */
path = "data/event_counter/put_handler_test?trip_od=1&just_a_word";
@@ -174,18 +158,6 @@ MTF_DEFINE_UTEST_PREPOST(rest_api, put_handler_test, rest_start, rest_stop)
err = curl_put(path, sock, 0, 0, buf, sizeof(buf));
ASSERT_EQ(0, strncmp(invalid_path, buf, strlen(invalid_path)));
ASSERT_EQ(0, err);
-
- dt_shutdown();
-
- /* No tree */
- const char *no_tree = "No data tree found";
-
- path = "data/event_counter/put_handler_test?trip_od=1";
- err = curl_put(path, sock, 0, 0, buf, sizeof(buf));
- ASSERT_EQ(0, strncmp(no_tree, buf, strlen(no_tree)));
- ASSERT_EQ(0, err);
-
- dt_init();
}
MTF_DEFINE_UTEST_PREPOST(rest_api, no_handlers_test, rest_start, rest_stop)
|
Dump: Use fence for code snippet | @@ -27,4 +27,7 @@ Currently it only works inside existing git repositories.
## Examples
- kdb mount -R gitresolver /path/to/my/gitrepo/file.ini system/gittest ini shell execute/set='cd /path/to/my/gitrepo/ && git commit --amend'
+```sh
+kdb mount -R gitresolver /path/to/my/gitrepo/file.ini system/gittest ini shell \
+ execute/set='cd /path/to/my/gitrepo/ && git commit --amend'
+```
|
arch/imxrt : Support board_reset functionality
iMXRT is also enabled when resetting from boardctl. | @@ -323,3 +323,30 @@ void imxrt_wdog_hwreset(void)
putreg16(reg, IMXRT_WDOG1_WCR);
}
}
+
+/****************************************************************************
+ * Name: board_reset
+ *
+ * Description:
+ * Reset board. This function may or may not be supported by a
+ * particular board architecture.
+ *
+ * Input Parameters:
+ * status - Status information provided with the reset event. This
+ * meaning of this status information is board-specific. If not used by
+ * a board, the value zero may be provided in calls to board_reset.
+ *
+ * Returned Value:
+ * If this function returns, then it was not possible to power-off the
+ * board due to some constraints. The return value int this case is a
+ * board-specific reason for the failure to shutdown.
+ *
+ ****************************************************************************/
+#ifdef CONFIG_BOARDCTL_RESET
+int board_reset(int status)
+{
+ imxrt_wdog_hwreset();
+
+ return 0;
+}
+#endif
|
burnout 3 crash fix | @@ -144,9 +144,9 @@ void init()
addu(v0, s1, s2)
);
- MakeInlineWrapper(0x1D5180,
+ MakeInlineWrapperWithNOP(0x1D5180,
jal(0x2B6E20),
- nop(),
+ sq(v0, v1, 0x30),
jal((intptr_t)WriteHudValues),
nop()
);
|
19.04.1 Release Notes | # Release Notes {#release_notes}
-* @subpage release_notes_19012
* @subpage release_notes_1908
+* @subpage release_notes_19041
* @subpage release_notes_1904
+* @subpage release_notes_19012
* @subpage release_notes_19011
* @subpage release_notes_1901
* @subpage release_notes_1810
* @subpage release_notes_1609
* @subpage release_notes_1606
-@page release_notes_19012 Release notes for VPP 19.01.2
+@page release_notes_1908 Release notes for VPP 19.08
+
+TBD
+
+@page release_notes_19041 Release notes for VPP 19.04.1
This is bug fix release.
For the full list of fixed issues please refer to:
- fd.io [JIRA](https://jira.fd.io)
-- git [commit log](https://git.fd.io/vpp/log/?h=stable/1901)
-
-@page release_notes_1908 Release notes for VPP 19.08
-
-TBD
+- git [commit log](https://git.fd.io/vpp/log/?h=stable/1904)
@page release_notes_1904 Release notes for VPP 19.04
@@ -396,6 +397,14 @@ Found 90 api message signature differences
| [7c44d78ef](https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commit;h=7c44d78ef) | IKEv2 to plugin |
+@page release_notes_19012 Release notes for VPP 19.01.2
+
+This is bug fix release.
+
+For the full list of fixed issues please refer to:
+- fd.io [JIRA](https://jira.fd.io)
+- git [commit log](https://git.fd.io/vpp/log/?h=stable/1901)
+
@page release_notes_19011 Release notes for VPP 19.01.1
This is bug fix release.
|
Disable multithreading in ztrmv
BLAS-Tester shows that the same problem exists as with DTRMV (issue | @@ -239,6 +239,9 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo,
} else
nthreads = 1;
+/* FIXME TRMV multithreading appears to be broken, see issue 1332*/
+ nthreads = 1;
+
if(nthreads > 1) {
buffer_size = n > 16 ? 0 : n * 4 + 40;
}
|
use toeplitz mode by default | /* Copyright 2014-2015. The Regents of the University of California.
- * Copyright 2016. Martin Uecker.
+ * Copyright 2016-2017. Martin Uecker.
* All rights reserved. Use of this source code is governed by
* a BSD-style license which can be found in the LICENSE file.
*
* Authors:
* 2014-2017 Frank Ong <[email protected]>
- * 2014-2016 Martin Uecker <[email protected]>
+ * 2014-2017 Martin Uecker <[email protected]>
*
* Strang G. A proposal for Toeplitz matrix calculations. Journal Studies in Applied Math. 1986; 74(2):171-17
*
struct nufft_conf_s nufft_conf_defaults = {
- .toeplitz = false,
+ .toeplitz = true,
.pcycle = false,
};
@@ -479,7 +479,10 @@ complex float* compute_psf(unsigned int N, const long img2_dims[N], const long t
long ksp_dims1[N];
md_select_dims(N, ~MD_BIT(0), ksp_dims1, trj_dims);
- struct linop_s* op2 = nufft_create(N, ksp_dims1, img2_dims, trj_dims, traj, NULL, nufft_conf_defaults);
+ struct nufft_conf_s conf = nufft_conf_defaults;
+ conf.toeplitz = false; // avoid infinite loop
+
+ struct linop_s* op2 = nufft_create(N, ksp_dims1, img2_dims, trj_dims, traj, NULL, conf);
complex float* ones = md_alloc(N, ksp_dims1, CFL_SIZE);
md_zfill(N, ksp_dims1, ones, 1.);
@@ -750,10 +753,6 @@ static void toeplitz_mult_pcycle(const struct nufft_data* data, complex float* d
const complex float* cpsf = data->psf + data->cycle * md_calc_size(data->N, data->psf_dims);
complex float* grid = data->grid;
-#ifdef USE_CUDA
- printf("Not Implemented.\n");
- exit(1);
-#endif
md_zmul2(data->N, data->cim_dims, data->cim_strs, grid, data->cim_strs, src, data->img_strs, clinphase);
linop_forward(data->cfft_op, data->N, data->cim_dims, grid, data->N, data->cim_dims, grid);
|
removed fullscreen flag | @@ -57,7 +57,6 @@ static struct
Net* net;
bool missedFrame;
- bool fullscreen;
struct
{
@@ -884,8 +883,7 @@ static u64 getPerformanceFrequency()
static void goFullscreen()
{
- platform.fullscreen = !platform.fullscreen;
- SDL_SetWindowFullscreen(platform.window, platform.fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0);
+ SDL_SetWindowFullscreen(platform.window, SDL_GetWindowFlags(platform.window) & SDL_WINDOW_FULLSCREEN_DESKTOP ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP);
}
static void showMessageBox(const char* title, const char* message)
|
flash_ec: Add support for it8xxx2
Add support for it8xxx2, which will eventually replace ite_spi_ccd_i2c.
TEST=Flash nereid
BRANCH=none | @@ -383,7 +383,7 @@ esac
case "${CHIP}" in
"stm32"|"npcx_spi"|"npcx_int_spi"|"it83xx"|"npcx_uut"|"ite_spi"| \
- "ite_spi_ccd_i2c")
+ "ite_spi_ccd_i2c"|"it8xxx2")
;;
*)
if [[ -n "${FLAGS_read}" ]]; then
@@ -972,10 +972,13 @@ function flash_flashrom() {
fi
fi
+ # Eventually remove ite_spi_ccd_i2c once all references are removed
if ! on_raiden || [[ "${SERVO_TYPE}" =~ "servo_micro" ]] ; then
if in_array "${BOARDS_SPI_1800MV[@]}" "${BOARD}"; then
SPI_VOLTAGE="pp1800"
- elif [[ "${CHIP}" == "ite_spi" || "${CHIP}" == "ite_spi_ccd_i2c" ]]; then
+ elif [[ "${CHIP}" == "ite_spi" ||
+ "${CHIP}" == "ite_spi_ccd_i2c" ||
+ "${CHIP}" == "it8xxx2" ]]; then
SPI_VOLTAGE="pp1800"
else
SPI_VOLTAGE="pp3300"
@@ -994,7 +997,9 @@ function flash_flashrom() {
fi
# Enable SPI programming mode.
- if [[ "${CHIP}" == "ite_spi" || "${CHIP}" == "ite_spi_ccd_i2c" ]]; then
+ if [[ "${CHIP}" == "ite_spi" ||
+ "${CHIP}" == "ite_spi_ccd_i2c" ||
+ "${CHIP}" == "it8xxx2" ]]; then
# Set hardware strap pin (GPG6) of SPI programming as low then start ec
dut_control fw_up:on
sleep 0.1
@@ -1060,6 +1065,7 @@ function flash_flashrom() {
if [[ "${CHIP}" =~ ^npcx(|_int)_spi$ ]] || \
[[ "${CHIP}" =~ "ite_spi_ccd_i2c" ]] ||
+ [[ "${CHIP}" =~ "it8xxx2" ]] ||
[[ "${CHIP}" =~ "ite_spi" ]] ; then
{ # Patch temp image up to SPI_SIZE
cat "${IMG}"
@@ -1403,6 +1409,10 @@ function flash_ite_spi_ccd_i2c() {
fi
}
+function flash_it8xxx2() {
+ flash_ite_spi_ccd_i2c
+}
+
function flash_npcx_jtag() {
IMG_PATH="${EC_DIR}/build/${BOARD}"
OCD_CHIP_CFG="npcx_chip.cfg"
|
ctrl_tcp: increase command buffer size | @@ -171,7 +171,7 @@ static bool command_handler(struct mbuf *mb, void *arg)
struct re_printf pf = {print_handler, resp};
struct odict *od = NULL;
const struct odict_entry *oe_cmd, *oe_prm, *oe_tok;
- char buf[256];
+ char buf[1024];
int err;
err = json_decode_odict(&od, 32, (const char*)mb->buf, mb->end, 16);
|
Remove Artifactory promote | @@ -177,7 +177,6 @@ pipeline {
steps {
zip zipFile: 'astcenc.zip', dir: 'upload', archive: false
cepeArtifactoryUpload(sourcePattern: '*.zip')
- cepeArtifactoryPromote()
}
}
}
|
conditionalize use of asm flags constraints on __GCC_ASM_FLAG_OUTPUTS__ | @@ -26,6 +26,7 @@ atomic_testandset32(volatile u32 *p, u32 v)
{
u8 res;
+#ifdef __GCC_ASM_FLAG_OUTPUTS__
__asm __volatile(
" " MPLOCKED " "
" btsl %2,%1 ; "
@@ -34,6 +35,17 @@ atomic_testandset32(volatile u32 *p, u32 v)
"+m" (*p) /* 1 */
: "Ir" (v & 0x1f) /* 2 */
: "cc");
+#else
+ __asm __volatile(
+ " " MPLOCKED " "
+ " btsl %2,%1 ; "
+ " sbb %0,%0 ; "
+ "# atomic_testandset_int"
+ : "=r" (res), /* 0 */
+ "+m" (*p) /* 1 */
+ : "Ir" (v & 0x1f) /* 2 */
+ : "cc");
+#endif
return (res);
}
@@ -54,6 +66,7 @@ atomic_testandclear64(volatile u64 *p, u32 v)
{
unsigned char res;
+#ifdef __GCC_ASM_FLAG_OUTPUTS__
__asm __volatile(
" " MPLOCKED " "
" btrq %2,%1 ; "
@@ -62,6 +75,17 @@ atomic_testandclear64(volatile u64 *p, u32 v)
"+m" (*p) /* 1 */
: "Jr" ((u64)(v & 0x3f)) /* 2 */
: "cc");
+#else
+ __asm __volatile(
+ " " MPLOCKED " "
+ " btrq %2,%1 ; "
+ " sbb %0,%0 ; "
+ "# atomic_testandclear64"
+ : "=r" (res), /* 0 */
+ "+m" (*p) /* 1 */
+ : "Jr" ((u64)(v & 0x3f)) /* 2 */
+ : "cc");
+#endif
return (res);
}
@@ -98,6 +122,7 @@ ATOMIC_ASM(subtract, 32, "subl %1,%0", "ir", v);
*
* Returns 0 on failure, non-zero on success.
*/
+#ifdef __GCC_ASM_FLAG_OUTPUTS__
#define ATOMIC_CMPSET(SIZE) \
static __inline int \
atomic_cmpset##SIZE(volatile u##SIZE *dst, u##SIZE expect, u##SIZE src) \
@@ -115,6 +140,26 @@ atomic_cmpset##SIZE(volatile u##SIZE *dst, u##SIZE expect, u##SIZE src) \
: "memory", "cc"); \
return (res); \
}
+#else
+#define ATOMIC_CMPSET(SIZE) \
+static __inline int \
+atomic_cmpset##SIZE(volatile u##SIZE *dst, u##SIZE expect, u##SIZE src) \
+{ \
+ int res; \
+ __asm __volatile( \
+ " " MPLOCKED " " \
+ " cmpxchg %3,%1 ; " \
+ " lahf ; " \
+ " andq $0x4000,%%rax ; " \
+ "# atomic_cmpset_" #SIZE " " \
+ : "=a" (res), /* 0 */ \
+ "+m" (*dst), /* 1 */ \
+ "+a" (expect) /* 2 */ \
+ : "r" (src) /* 3 */ \
+ : "memory", "cc"); \
+ return (res); \
+}
+#endif
ATOMIC_CMPSET(32);
|
use rsp_put to free a response | @@ -458,7 +458,7 @@ dnode_rsp_send_next(struct context *ctx, struct conn *conn)
if (status == DN_ERROR) {
loga("OOM to obtain an mbuf for encryption!");
mbuf_put(header_buf);
- req_put(rsp);
+ rsp_put(rsp);
return NULL;
}
|
Fix DHCP option Client-identifier | /*
- * FreeRTOS+TCP V2.2.0
+ * FreeRTOS+TCP V2.2.1
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
/* Offsets into the transmitted DHCP options fields at which various parameters
are located. */
-#define dhcpCLIENT_IDENTIFIER_OFFSET ( 5 )
-#define dhcpREQUESTED_IP_ADDRESS_OFFSET ( 13 )
-#define dhcpDHCP_SERVER_IP_ADDRESS_OFFSET ( 19 )
+#define dhcpCLIENT_IDENTIFIER_OFFSET ( 6 )
+#define dhcpREQUESTED_IP_ADDRESS_OFFSET ( 14 )
+#define dhcpDHCP_SERVER_IP_ADDRESS_OFFSET ( 20 )
/* Values used in the DHCP packets. */
#define dhcpREQUEST_OPCODE ( 1 )
@@ -905,7 +905,7 @@ static const uint8_t ucDHCPRequestOptions[] =
dhcpCLIENT_IDENTIFIER_OFFSET, dhcpREQUESTED_IP_ADDRESS_OFFSET and
dhcpDHCP_SERVER_IP_ADDRESS_OFFSET. */
dhcpMESSAGE_TYPE_OPTION_CODE, 1, dhcpMESSAGE_TYPE_REQUEST, /* Message type option. */
- dhcpCLIENT_IDENTIFIER_OPTION_CODE, 6, 0, 0, 0, 0, 0, 0, /* Client identifier. */
+ dhcpCLIENT_IDENTIFIER_OPTION_CODE, 7, 1, 0, 0, 0, 0, 0, 0, /* Client identifier. */
dhcpREQUEST_IP_ADDRESS_OPTION_CODE, 4, 0, 0, 0, 0, /* The IP address being requested. */
dhcpSERVER_IP_ADDRESS_OPTION_CODE, 4, 0, 0, 0, 0, /* The IP address of the DHCP server. */
dhcpOPTION_END_BYTE
@@ -943,7 +943,7 @@ static const uint8_t ucDHCPDiscoverOptions[] =
{
/* Do not change the ordering without also changing dhcpCLIENT_IDENTIFIER_OFFSET. */
dhcpMESSAGE_TYPE_OPTION_CODE, 1, dhcpMESSAGE_TYPE_DISCOVER, /* Message type option. */
- dhcpCLIENT_IDENTIFIER_OPTION_CODE, 6, 0, 0, 0, 0, 0, 0, /* Client identifier. */
+ dhcpCLIENT_IDENTIFIER_OPTION_CODE, 7, 1, 0, 0, 0, 0, 0, 0, /* Client identifier. */
dhcpPARAMETER_REQUEST_OPTION_CODE, 3, dhcpSUBNET_MASK_OPTION_CODE, dhcpGATEWAY_OPTION_CODE, dhcpDNS_SERVER_OPTIONS_CODE, /* Parameter request option. */
dhcpOPTION_END_BYTE
};
|
BugID:17952514: fix the linkkitapp issue on developerkit | @@ -175,6 +175,8 @@ endif
ifeq ($(COMPILER),armcc)
$(NAME)_LINK_FILES := startup_stm32l496xx_keil.o
$(NAME)_LINK_FILES += Src/stm32l4xx_hal_msp.o
+GLOBAL_CFLAGS += -D__ORDER_LITTLE_ENDIAN__=1
+GLOBAL_CFLAGS += -D__BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__
endif
CONFIG_SYSINFO_PRODUCT_MODEL := ALI_AOS_developerkit
|
Fix incorrect argument order in lv_canvas_copy_buf | @@ -232,7 +232,7 @@ const lv_style_t * lv_canvas_get_style(const lv_obj_t * canvas, lv_canvas_style_
* @param x left side of the destination position
* @param y top side of the destination position
*/
-void lv_canvas_copy_buf(lv_obj_t * canvas, const void * to_copy, lv_coord_t w, lv_coord_t h, lv_coord_t x, lv_coord_t y)
+void lv_canvas_copy_buf(lv_obj_t * canvas, const void * to_copy, lv_coord_t x, lv_coord_t y, lv_coord_t w, lv_coord_t h)
{
lv_canvas_ext_t * ext = lv_obj_get_ext_attr(canvas);
if(x + w >= ext->dsc.header.w || y + h >= ext->dsc.header.h) {
|
out_stackdriver: use new 'pthread' wrapper in header | #include <fluent-bit/flb_output.h>
#include <fluent-bit/flb_oauth2.h>
#include <fluent-bit/flb_sds.h>
-#include <pthread.h>
+#include <fluent-bit/flb_pthread.h>
/* refresh token every 50 minutes */
#define FLB_STD_TOKEN_REFRESH 3000
|
another page tthat breaks tests because of fcgi issues | :- /gen/twit "slow and/or crash"
:- /mar/twit "slow and/or crash"
:- /web/pages/nutalk/menu "/$ doensn't work in tests"
+ :- /web/pages/nutalk/profile "/$ doensn't work in tests"
==
::
++ failing
|
cr50: add closed loop reset property to mistral
BRANCH=cr50
TEST=make buildall -j
Commit-Ready: Mary Ruthven
Tested-by: Mary Ruthven | @@ -257,7 +257,8 @@ static struct board_cfg board_cfg_table[] = {
{
.strap_cfg = 0x0B,
.board_properties = BOARD_SLAVE_CONFIG_SPI |
- BOARD_USE_PLT_RESET | BOARD_NO_INA_SUPPORT,
+ BOARD_USE_PLT_RESET | BOARD_NO_INA_SUPPORT |
+ BOARD_CLOSED_LOOP_RESET,
},
/* I2C Variants: DIOA9 = 1M PD, DIOA1 = 1M PD */
/* Reef/Eve: DIOA12 = 5k PD, DIOA6 = 1M PU */
|
Fix typo that could clear EXTRALIB settings | @@ -46,7 +46,7 @@ if (${F_COMPILER} STREQUAL "GFORTRAN")
set(FCOMMON_OPT "${FCOMMON_OPT} -fno-optimize-sibling-calls")
#Don't include -lgfortran, when NO_LAPACK=1 or lsbcc
if (NOT NO_LAPACK)
- set(EXTRALIB "{EXTRALIB} -lgfortran")
+ set(EXTRALIB "${EXTRALIB} -lgfortran")
endif ()
if (NO_BINARY_MODE)
if (MIPS64)
|
grib_copy/grib_set - suggestion to avoid overwriting files (Part 1) | */
#include "grib_tools.h"
+#include <stdlib.h>
+
#if HAVE_LIBJASPER
/* Remove compiler warnings re macros being redefined */
#undef PACKAGE_BUGREPORT
@@ -982,6 +984,16 @@ void grib_print_full_statistics(grib_runtime_options* options)
options->filter_handle_count,options->handle_count,options->file_count);
}
+static int filenames_equal(const char * f1, const char * f2)
+{
+ char resolved1[8192] = {0,};
+ char resolved2[8192] = {0,};
+ realpath(f1, resolved1);
+ realpath(f2, resolved2);
+ int eq = (strcmp(resolved1, resolved2)==0);
+ return eq;
+}
+
void grib_tools_write_message(grib_runtime_options* options, grib_handle* h)
{
const void *buffer;
@@ -1001,6 +1013,13 @@ void grib_tools_write_message(grib_runtime_options* options, grib_handle* h)
err = grib_recompose_name(h, NULL, options->outfile->name, filename, 0);
+ // Check outfile is not same as infile
+ if (filenames_equal(options->infile->name, filename)) {
+ grib_context_log(h->context, GRIB_LOG_ERROR,
+ "output file '%s' is the same as input file. Aborting\n", filename);
+ exit(GRIB_IO_PROBLEM);
+ }
+
of = grib_file_open(filename, "w", &err);
if (!of || !of->handle) {
|
Modified checksum, size for new release(1.3.2) file. | },
"url": "https://github.com/ROBOTIS-GIT/OpenCR/releases/download/1.3.2/opencr_core_1.3.2.tar.bz2",
"archiveFileName": "opencr_core_1.3.2.tar.bz2",
- "checksum": "SHA-256:9ed36bcc86666c12292e13d7e82cf9b41f6d4f0a3c804976bf9a338859c46f01",
- "size": "4096035",
+ "checksum": "SHA-256:67374d94efe587b90ad418ff9e0c37dc143cc4109e021c35dbdd77c1d63fe2c6",
+ "size": "4095492",
"help": {
"online": "http://emanual.robotis.com/docs/en/parts/controller/opencr10/"
},
|
[utils] add size check in prod(const SiconosVector& x, const SiconosMatrix& A, BlockVector& y, bool init) | @@ -830,7 +830,14 @@ void subprod(const SiconosMatrix& A, const BlockVector& x, SiconosVector& y, con
void prod(const SiconosVector& x, const SiconosMatrix& A, BlockVector& y, bool init)
{
+
assert(!(A.isPLUFactorized()) && "A is PLUFactorized in prod !!");
+
+ if (A.size(0) != x.size())
+ SiconosMatrixException::selfThrow("prod(x,A,y) error: inconsistent sizes between A and x.");
+
+ if (A.size(1) != y.size())
+ SiconosMatrixException::selfThrow("prod(x,A,y) error: inconsistent sizes between A and y.");
unsigned int startRow = 0;
VectorOfVectors::const_iterator it;
// For Each subvector of y, y[i], private_prod computes y[i] = subA x, subA being a submatrix of A corresponding to y[i] position.
|
[persistence] fix the length of log record body | @@ -793,18 +793,20 @@ int lrec_construct_snapshot_elem(LogRec *logrec, hash_item *it, void *elem)
SnapshotElemLog *log = (SnapshotElemLog*)logrec;
SnapshotElemData *body = &log->body;
uint8_t updtype = UPD_NONE;
- int bodylen = offsetof(SnapshotElemData, data) + body->nbytes;
+ int bodylen = offsetof(SnapshotElemData, data);
if (IS_LIST_ITEM(it)) {
list_elem_item *e = (list_elem_item*)elem;
body->nbytes = e->nbytes;
+ bodylen += body->nbytes;
log->valptr = e->value;
updtype = UPD_LIST_ELEM_INSERT;
} else if (IS_SET_ITEM(it)) {
set_elem_item *e = (set_elem_item*)elem;
body->nbytes = e->nbytes;
+ bodylen += body->nbytes;
log->valptr = e->value;
updtype = UPD_SET_ELEM_INSERT;
} else if (IS_MAP_ITEM(it)) {
@@ -812,7 +814,7 @@ int lrec_construct_snapshot_elem(LogRec *logrec, hash_item *it, void *elem)
body->nbytes = e->nbytes;
body->nekey = e->nfield;
- bodylen += body->nekey;
+ bodylen += body->nbytes + body->nekey;
log->valptr = (char*)e->data;
updtype = UPD_MAP_ELEM_INSERT;
} else if (IS_BTREE_ITEM(it)) {
@@ -821,7 +823,7 @@ int lrec_construct_snapshot_elem(LogRec *logrec, hash_item *it, void *elem)
body->nekey = e->nbkey;
body->neflag = e->neflag;
- bodylen += BTREE_REAL_NBKEY(body->nekey) + body->neflag;
+ bodylen += body->nbytes + BTREE_REAL_NBKEY(body->nekey) + body->neflag;
log->valptr = (char*)e->data;
updtype = UPD_BT_ELEM_INSERT;
}
|
hv:Fix MISRA-C violations in vm.h
fix "Macro parameter not in brackets" for PLUG_CPU(n)
fix "Array has no bounds specified" for vm_configs[] | @@ -22,7 +22,7 @@ enum vm_privilege_level {
#define INVALID_VM_ID 0xffffU
-#define PLUG_CPU(n) (1U << n)
+#define PLUG_CPU(n) (1U << (n))
struct vm_hw_info {
/* vcpu array of this VM */
@@ -296,7 +296,7 @@ int32_t create_vm(uint16_t vm_id, struct acrn_vm_config *vm_config, struct acrn_
void prepare_vm(uint16_t vm_id, struct acrn_vm_config *vm_config);
void launch_vms(uint16_t pcpu_id);
-extern struct acrn_vm_config vm_configs[];
+extern struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM];
bool is_sos_vm(const struct acrn_vm *vm);
uint16_t find_free_vm_id(void);
|
updated error messages for linlog function | @@ -50,8 +50,13 @@ double * ccl_linlog_spacing(double xminlog, double xmin, double xmax, int Nlog,
return NULL;
}
- if (xminlog>xmin && xmax<xmin){
- fprintf(stderr, "ERROR: xminlog must be smaller as xmin and xmin must be smaller as xmax");
+ if (xminlog>xmin){
+ fprintf(stderr, "ERROR: xminlog must be smaller as xmin");
+ return NULL;
+ }
+
+ if (xmin>xmax){
+ fprintf(stderr, "ERROR: xmin must be smaller as xmax");
return NULL;
}
|
Fix miniaudio warning; | @@ -18000,7 +18000,6 @@ static void ma_device__send_frames_to_client(ma_device* pDevice, ma_uint32 frame
ma_uint8 pFramesInClientFormat[MA_DATA_CONVERTER_STACK_BUFFER_SIZE];
ma_uint64 framesInClientFormatCap = sizeof(pFramesInClientFormat) / ma_get_bytes_per_frame(pDevice->capture.format, pDevice->capture.channels);
ma_uint64 totalDeviceFramesProcessed = 0;
- ma_uint64 totalClientFramesProcessed = 0;
const void* pRunningFramesInDeviceFormat = pFramesInDeviceFormat;
/* We just keep going until we've exhaused all of our input frames and cannot generate any more output frames. */
@@ -18022,7 +18021,6 @@ static void ma_device__send_frames_to_client(ma_device* pDevice, ma_uint32 frame
pRunningFramesInDeviceFormat = ma_offset_ptr(pRunningFramesInDeviceFormat, deviceFramesProcessedThisIteration * ma_get_bytes_per_frame(pDevice->capture.internalFormat, pDevice->capture.internalChannels));
totalDeviceFramesProcessed += deviceFramesProcessedThisIteration;
- totalClientFramesProcessed += clientFramesProcessedThisIteration;
if (deviceFramesProcessedThisIteration == 0 && clientFramesProcessedThisIteration == 0) {
break; /* We're done. */
|
Do not retransmit 0RTT packet if early data was rejected | @@ -1431,6 +1431,10 @@ static size_t conn_retry_early_payloadlen(ngtcp2_conn *conn) {
ngtcp2_frame_chain *frc;
ngtcp2_strm *strm;
+ if (conn->flags & NGTCP2_CONN_FLAG_EARLY_DATA_REJECTED) {
+ return 0;
+ }
+
for (; !ngtcp2_pq_empty(&conn->tx.strmq);) {
strm = ngtcp2_conn_tx_strmq_top(conn);
if (ngtcp2_strm_streamfrq_empty(strm)) {
@@ -8670,12 +8674,14 @@ static ngtcp2_ssize conn_write_handshake(ngtcp2_conn *conn, ngtcp2_pkt_info *pi,
}
if (!(conn->flags & NGTCP2_CONN_FLAG_HANDSHAKE_COMPLETED)) {
+ if (!(conn->flags & NGTCP2_CONN_FLAG_EARLY_DATA_REJECTED)) {
nwrite = conn_retransmit_retry_early(conn, pi, dest, destlen, ts);
if (nwrite < 0) {
return nwrite;
}
res += nwrite;
+ }
if (res == 0) {
nwrite = conn_write_handshake_ack_pkts(conn, pi, dest, origlen, ts);
|
Sockeye: Update region_alloc | @@ -171,13 +171,16 @@ region_in_use(S, Region) :-
region_free(S, Region) :-
not(region_in_use(S, Region)).
-% Allocate a free aligned region.
-region_alloc(S, Region, Size, Bits) :-
+% Ensure Base address is aligned to Bits and
+region_aligned(Region, Bits) :-
Region = region{node_id: RId, block:block{base: Base, limit: Limit}},
aligned(Base, Bits, NumBlock),
- Limit #= Base + Size - 1,
- labeling([NumBlock]),
- region_free(S, Region).
+ labeling([NumBlock]).
+
+region_alloc(S, Reg, Size, Bits) :-
+ region_aligned(Reg, Bits),
+ region_size(Reg, Size),
+ region_free(S, Reg).
% Assumes SrcRegion has no mapping in S.
@@ -222,6 +225,17 @@ route(S, SrcRegion, DstRegion, Conf) :-
state_union(C1, C2, Conf)
)).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%% Interface queries
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+alias(S, N1, N2) :-
+ resolve_name(S, N1, D),
+ resolve_name(S, N1, D).
+
+alloc(S, N1, N2, Dest, Conf) :-
+ accept_region(Dest).
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Utilities
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -269,7 +283,7 @@ region_size(region{block:Block}, Size) :-
block_size(block{base:B, limit: L}, Size) :-
(var(L), L is B + Size - 1) ;
(var(Size), Size is L - B + 1);
- (nonvar(Size), Size is L - B + 1).
+ (nonvar(Size), nonvar(L), nonvar(B), Size is L - B + 1). % Checking case.
address_block_match(A, block{base: B, limit: L}) :-
B #=< A,
@@ -449,14 +463,20 @@ test_route :-
state_query(Conf, block_conf(["MMU"], 0, 1)),
state_query(Conf, block_conf(["MMU"], 1, 2)).
+:- export test_region_alloc/0.
test_region_alloc :-
S = [in_use(region{node_id:["IN"], block:block{base:0,limit:2097151}})],
Size is 2^21,
Reg = region{node_id: ["IN"]},
+
region_alloc(S, Reg, Size, 21),
+ printf("Reg=%p\n", Reg),
+
Size2 is 2^24,
Reg2 = region{node_id: ["IN"]},
- region_alloc(S, Reg2, Size2, 21).
+
+ region_alloc(S, Reg2, Size2, 21),
+ printf("Reg2=%p\n", Reg2).
run_test(Test) :-
|
Wrap overlong line. | @@ -619,7 +619,8 @@ specializedcl(Node *gnode, Type *param, Type *to, Node **name)
if (gnode->decl.trait) {
g = bestimpl(gnode, to);
if (!g)
- fatal(gnode, "type %s does not implement %s:%s", tystr(param), namestr(gnode->decl.name), tystr(to));
+ fatal(gnode, "type %s does not implement %s:%s",
+ tystr(param), namestr(gnode->decl.name), tystr(to));
} else {
g = gnode;
}
|
audio/i2s: add i2s_mclkfrequency method to the I2S lower half
This method allows the codec driver to set a specific mclk
frequency for the I2S lower half. This provides support to change
it on run time according to the supported master clock frequency
of the audio codec, the sample rate and the data width. | #define I2S_SEND(d,b,c,a,t) \
((d)->ops->i2s_send ? (d)->ops->i2s_send(d,b,c,a,t) : -ENOTTY)
+/****************************************************************************
+ * Name: I2S_MCLKFREQUENCY
+ *
+ * Description:
+ * Set the master clock frequency. Usually, the MCLK is a multiple of the
+ * sample rate. Most of the audio codecs require setting specific MCLK
+ * frequency according to the sample rate. NOTE: this parameter may not
+ * be implemented on I2S driver. If not implemented, the I2S may set
+ * internally any value to the master clock (or even does not support it).
+ *
+ * Input Parameters:
+ * dev - Device-specific state data
+ * frequency - The I2S master clock's frequency
+ *
+ * Returned Value:
+ * Returns the resulting master clock or a negated errno value on failure.
+ *
+ ****************************************************************************/
+
+#define I2S_MCLKFREQUENCY(d,f) \
+ ((d)->ops->i2s_mclkfrequency ? \
+ (d)->ops->i2s_mclkfrequency(d,f) : -ENOTTY)
+
/****************************************************************************
* Name: I2S_IOCTL
*
@@ -286,6 +309,11 @@ struct i2s_ops_s
FAR void *arg,
uint32_t timeout);
+ /* Master Clock methods */
+
+ CODE uint32_t (*i2s_mclkfrequency)(FAR struct i2s_dev_s *dev,
+ uint32_t frequency);
+
/* Ioctl */
CODE int (*i2s_ioctl)(FAR struct i2s_dev_s *dev,
|
TUNE: Add support for chart axes ticks and value labels / chart label. | @@ -1121,7 +1121,7 @@ static void lv_chart_draw_x_axis_label(lv_obj_t * chart, const lv_area_t * mask)
lv_area_t label_area;
label_area.x1 = chart->coords.x1 + w/2 - size.x/2;
- label_area.y1 = chart->coords.y1 - LV_CHART_AXIS_TO_LABEL_DISTANCE - size.y/2;
+ label_area.y1 = chart->coords.y1 - LV_CHART_AXIS_TO_LABEL_DISTANCE - (style->text.font->h_px / 4) - size.y/2;
label_area.x2 = label_area.x1 + size.x;
label_area.y2 = label_area.y1 + size.y/2;
|
os/drivers/usbhost: Rearrange memset range
Part of struct usbhost_id_s *id should be initialized in usbhost_configdesc.
Currently, the whole id is memset by 0, which occurs misoperation. | @@ -191,7 +191,10 @@ static inline int usbhost_configdesc(const uint8_t *configdesc, int cfglen, stru
/* Loop while there are more descriptors to examine */
- memset(id, 0, sizeof(FAR struct usbhost_id_s));
+ /* struct usb_desc_s is a sub structure of struct usbhost_id_s;
+ * Only initialize the first two bytes of id */
+
+ memset(id, 0, sizeof(FAR struct usb_desc_s));
while (remaining >= sizeof(struct usb_desc_s)) {
/* What is the next descriptor? Is it an interface descriptor? */
|
Doc: Update logical decoding stats information.
Add the information of pg_stat_replication_slots view along with other
system catalogs related to logical decoding.
Author: Vignesh C
Discussion: | @@ -400,7 +400,10 @@ postgres=# select * from pg_logical_slot_get_changes('regression_slot', NULL, NU
<structname>pg_stat_replication</structname></link>
view provide information about the current state of replication slots and
streaming replication connections respectively. These views apply to both physical and
- logical replication.
+ logical replication. The
+ <link linkend="monitoring-pg-stat-replication-slots-view">
+ <structname>pg_stat_replication_slots</structname></link>
+ view provides statistics information about the logical replication slots.
</para>
</sect1>
|
Try to fix failure | -name: Continuous Integration
+name: CI
on:
push:
@@ -17,4 +17,3 @@ jobs:
run: docker pull jeffbush001/nyuzi-build
- name: build
run: docker run -v $TRAVIS_BUILD_DIR:/root/NyuziProcessor -w /root/NyuziProcessor jeffbush001/nyuzi-build /bin/bash -c scripts/run_ci_tests.sh
-
|
cts/i2c/dut.c: Format with clang-format
BRANCH=none
TEST=none | enum cts_rc write8_test(void)
{
- if (i2c_write8(i2c_ports[0].port, TH_ADDR_FLAGS,
- WRITE8_OFF, WRITE8_DATA))
+ if (i2c_write8(i2c_ports[0].port, TH_ADDR_FLAGS, WRITE8_OFF,
+ WRITE8_DATA))
return CTS_RC_FAILURE;
return CTS_RC_SUCCESS;
}
enum cts_rc write16_test(void)
{
- if (i2c_write16(i2c_ports[0].port, TH_ADDR_FLAGS,
- WRITE16_OFF, WRITE16_DATA))
+ if (i2c_write16(i2c_ports[0].port, TH_ADDR_FLAGS, WRITE16_OFF,
+ WRITE16_DATA))
return CTS_RC_FAILURE;
return CTS_RC_SUCCESS;
}
enum cts_rc write32_test(void)
{
- if (i2c_write32(i2c_ports[0].port, TH_ADDR_FLAGS,
- WRITE32_OFF, WRITE32_DATA))
+ if (i2c_write32(i2c_ports[0].port, TH_ADDR_FLAGS, WRITE32_OFF,
+ WRITE32_DATA))
return CTS_RC_FAILURE;
return CTS_RC_SUCCESS;
}
@@ -43,8 +43,7 @@ enum cts_rc read8_test(void)
{
int data;
- if (i2c_read8(i2c_ports[0].port, TH_ADDR_FLAGS,
- READ8_OFF, &data))
+ if (i2c_read8(i2c_ports[0].port, TH_ADDR_FLAGS, READ8_OFF, &data))
return CTS_RC_FAILURE;
if (data != READ8_DATA) {
CPRINTL("Expecting 0x%x but read 0x%x", READ8_DATA, data);
@@ -58,8 +57,7 @@ enum cts_rc read16_test(void)
{
int data;
- if (i2c_read16(i2c_ports[0].port, TH_ADDR_FLAGS,
- READ16_OFF, &data))
+ if (i2c_read16(i2c_ports[0].port, TH_ADDR_FLAGS, READ16_OFF, &data))
return CTS_RC_FAILURE;
if (data != READ16_DATA) {
CPRINTL("Expecting 0x%x but read 0x%x", READ16_DATA, data);
@@ -73,8 +71,7 @@ enum cts_rc read32_test(void)
{
int data;
- if (i2c_read32(i2c_ports[0].port, TH_ADDR_FLAGS,
- READ32_OFF, &data))
+ if (i2c_read32(i2c_ports[0].port, TH_ADDR_FLAGS, READ32_OFF, &data))
return CTS_RC_FAILURE;
if (data != READ32_DATA) {
CPRINTL("Read 0x%x expecting 0x%x", data, READ32_DATA);
@@ -84,7 +81,6 @@ enum cts_rc read32_test(void)
return CTS_RC_SUCCESS;
}
-
#include "cts_testlist.h"
void cts_task(void)
|
docs - add superuser to gp_gpperfmon_send_interval GUC set classifications | <row>
<entry colname="col1">Any valid time expression (number and unit)</entry>
<entry colname="col2">1sec</entry>
- <entry colname="col3">master<p>system</p><p>restart</p></entry>
+ <entry colname="col3">master<p>system</p><p>restart</p><p>superuser</p></entry>
</row>
</tbody>
</tgroup>
|
Added gawk to dependencies | @@ -10,7 +10,7 @@ Build and install from sources is possible. However, the source build for AOMP
<b>Ubuntu</b>
```
- sudo apt-get install cmake g++-5 g++ pkg-config libpci-dev libnuma-dev libelf-dev libffi-dev git python libopenmpi-dev
+ sudo apt-get install cmake g++-5 g++ pkg-config libpci-dev libnuma-dev libelf-dev libffi-dev git python libopenmpi-dev gawk
```
<b>SLES-15-SP1</b>
|
TSCH: fix TSCH_CLOCK_TO_SLOTS macro used for deciding whether to leave the TSCH network | /* Convert rtimer ticks to clock and vice versa */
#define TSCH_CLOCK_TO_TICKS(c) (((c) * RTIMER_SECOND) / CLOCK_SECOND)
-#define TSCH_CLOCK_TO_SLOTS(c, timeslot_length) (TSCH_CLOCK_TO_TICKS(c) / timeslot_length)
+#define TSCH_CLOCK_TO_SLOTS(c, timeslot_length) ((TSCH_CLOCK_TO_TICKS(c) + timeslot_length - 1) / timeslot_length)
#endif /* __TSCH_CONST_H__ */
/** @} */
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.