search for: minmax

Displaying 20 results from an estimated 138 matches for "minmax".

2023 Mar 01
6
[libnbd PATCH 0/6] common: catch up with nbdkit
...ibnbd to nbdkit. The larger LISTEN_FDNAMES series will be resumed even later. Laszlo Eric Blake (1): tests: Avoid odd test behavior under NDEBUG [partial port] Richard W.M. Jones (5): common/include: Add unit tests [byte-swapping, isaligned, iszero] common/include: Add further unit tests [minmax] common: include: Define bswap_16, bswap_32 and bswap_64 [finish port] vector: Add vector_duplicate function common/include: Fix MIN and MAX macros so they can be nested [finish port] .gitignore | 4 + common/include/Makefile.am | 20 +++ common/incl...
2019 Jan 04
0
[PATCH nbdkit] common/include: Add generic MIN and MAX macros.
...tation uses __auto_type, a GCC extension also now supported by Clang. Unfortunately OpenBSD ships with GCC 4.2.1 (from 2007!) which predates this extension by quite a few years, so we have to be able to fall back to a plain macro. --- configure.ac | 20 ++++++++++- common/include/minmax.h | 63 +++++++++++++++++++++++++++++++++++ filters/blocksize/blocksize.c | 3 +- filters/cache/lru.c | 3 +- filters/nozero/nozero.c | 3 +- plugins/pattern/pattern.c | 3 +- common/include/Makefile.am | 1 + filters/blocksize/Makefile.am | 3 +- filters/nozero/M...
2019 Jan 04
0
[PATCH nbdkit v5 2/3] common/include: Add generic MIN and MAX macros.
...tation uses __auto_type, a GCC extension also now supported by Clang. Unfortunately OpenBSD ships with GCC 4.2.1 (from 2007!) which predates this extension by quite a few years, so we have to be able to fall back to a plain macro. --- configure.ac | 20 ++++++++++- common/include/minmax.h | 63 +++++++++++++++++++++++++++++++++++ filters/blocksize/blocksize.c | 3 +- filters/cache/lru.c | 3 +- filters/nozero/nozero.c | 3 +- plugins/pattern/pattern.c | 3 +- common/include/Makefile.am | 1 + filters/blocksize/Makefile.am | 3 +- filters/nozero/M...
2023 Mar 01
1
[libnbd PATCH 6/6] common/include: Fix MIN and MAX macros so they can be nested [finish port]
From: "Richard W.M. Jones" <rjones at redhat.com> Original commit message: Thanks: Eric Blake Porting notes: We already have the nesting fix in the "common/include/minmax.h" header file, from nbdkit commit 9f462af12e3b ("common/include: Fix MIN and MAX macros so they can be nested", 2022-02-22), via libnbd commit 2f25695212db5. However, that port didn't include the update to the test case. Do it now. Signed-off-by: Laszlo Ersek <lersek at redh...
2010 Dec 06
3
[plyr] Question regarding ddply: use of .(as.name(varname)) and varname in ddply function
...1", "l13", "d13" ), row.names = c(1L, 2L, 3L, 1758L, 1759L, 1760L), class = "data.frame") ----------- If some one doesn't want to open github - here is the code ## Doesn't work # grp -- name of a column of the the data.frame df # function call is -- getMinMax1( df1 , grp = "var1") getMinMax1 <-function(df, grp){ dfret <- ddply( df , .(as.name(grp)), ## I am using as.name(grp), source of error function(x){ minmax <- c(mix(x[ , 3]), max(x[ ,3])) return(minmax) }...
2010 Oct 20
3
combine vectors in an alternating way
I have two vectors min 0.2, 0.3, 0.6, 0.1 max 0.4,0.5,0.7,0.4 Is there a way to combine these two vector so that the values will be taken from the vectors alternating so that I will get a new minmaxminmaxminmax-vector? minmax 0.2,0.4,0.3,0.5,0.6,0.7,0.1,0.4 Any help is much appreciated -- View this message in context: http://r.789695.n4.nabble.com/combine-vectors-in-an-alternating-way-tp3003742p3003742.html Sent from the R help mailing list archive at Nabble.com.
2014 Jul 01
1
Nut-upsuser Digest, Vol 109, Issue 2
> Lots of good progress here! I tried to enable a few more commands for > your model. For instance, the "M" values seem to be min/max voltage, > so there is a "reset.input.minmax" command to use with upscmd. Also, > you can trigger a battery test with "test.battery.start". I assume the > work the same way as on Protocol 3003 :-) > > The attached patch is meant to be applied on top of the previous > patch. If it's easier, I can diff it agai...
2020 Jul 07
2
[nbdkit PATCH] RFC tests: Avoid odd test behavior under NDEBUG
...+ common/include/test-ascii-string.c | 1 + common/include/test-byte-swapping.c | 1 + common/include/test-current-dir-name.c | 1 + common/include/test-isaligned.c | 1 + common/include/test-ispowerof2.c | 1 + common/include/test-iszero.c | 1 + common/include/test-minmax.c | 1 + common/include/test-nextnonzero.c | 1 + common/bitmap/test-bitmap.c | 1 + common/utils/test-quotes.c | 1 + common/utils/test-vector.c | 1 + tests/test-layers-filter.c | 1 + tests/test-pause.c | 1 + test...
2012 Jul 13
3
Column create and Update using function
Hi, here i have a Max and Min values Min <-3 Max <-6 and also a matrix like this, ABC XYZ PQR ------ ------- ------- 2 4 3 5 4 8 7 1 3 In this i need to check each particular column values are between Max and Min value. If the coulmn value not coming between Max and
2020 Jul 07
0
Re: [nbdkit PATCH] RFC tests: Avoid odd test behavior under NDEBUG
...string.c | 1 + > common/include/test-byte-swapping.c | 1 + > common/include/test-current-dir-name.c | 1 + > common/include/test-isaligned.c | 1 + > common/include/test-ispowerof2.c | 1 + > common/include/test-iszero.c | 1 + > common/include/test-minmax.c | 1 + > common/include/test-nextnonzero.c | 1 + > common/bitmap/test-bitmap.c | 1 + > common/utils/test-quotes.c | 1 + > common/utils/test-vector.c | 1 + > tests/test-layers-filter.c | 1 + > tests/test-pause.c...
2014 Jul 03
2
The dreaded Tripp Lite SMART500RT1U and NUT
> Lots of good progress here! I tried to enable a few more commands for > your model. For instance, the "M" values seem to be min/max voltage, > so there is a "reset.input.minmax" command to use with upscmd. Also, > you can trigger a battery test with "test.battery.start". I assume the > work the same way as on Protocol 3003 :-) Hello Charles, The patch that you provided appears to have worked. The first patch probably worked too ... but I left the...
2019 May 17
0
[nbdkit PATCH 3/3] filters: Use only .thread_model, not THREAD_MODEL
...odel = THREAD_MODEL; \ return &(filter); \ } diff --git a/filters/cow/cow.c b/filters/cow/cow.c index 006007e..ae4a3af 100644 --- a/filters/cow/cow.c +++ b/filters/cow/cow.c @@ -51,8 +51,6 @@ #include "minmax.h" #include "rounding.h" -#define THREAD_MODEL NBDKIT_THREAD_MODEL_PARALLEL - /* In order to handle parallel requests safely, this lock must be held * when calling any blk_* functions. */ diff --git a/filters/delay/delay.c b/filters/delay/delay.c index 486a24e..11681c8 100644...
2010 Jul 14
1
[PATCH] gfxboot: fix buffer overrun when loading kernel/initramfs
...nsertions(+), 1 deletions(-) diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c index dd4d641..0fbfadd 100644 --- a/com32/gfxboot/gfxboot.c +++ b/com32/gfxboot/gfxboot.c @@ -21,6 +21,7 @@ #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> +#include <minmax.h> #include <syslinux/loadfile.h> #include <syslinux/config.h> @@ -749,7 +750,7 @@ void *load_one(char *file, ssize_t *file_size) if(size) { buf = malloc(size); for(i = 1, cur = 0 ; cur < size && i > 0; cur += i) { - i = save_read(fd, buf + cur, CH...
2012 Aug 13
1
how to change variable names in corrgram diagonal
given this example library(corrgram) corrgram(mtcars[2:6], order=TRUE, upper.panel=panel.conf, lower.panel=panel.pie, diag.panel=panel.minmax, text.panel=panel.txt) how can I change the variable names in main diagonal? (so that I can put more informative names of variables) I think to understand that this should be done by modifing the panel.txt function but for some reasons I'm not able to put that into practice...
2013 Aug 08
0
shutdown.* and load.*, and how to possibly add more instcmd for bcmxcp
...uot;test.battery.stop") 8 ("shutdown.stop") 8 ("shutdown.reboot") 6 ("test.panel.start") 5 ("test.failure.start") 5 ("beeper.enable") 4 ("shutdown.reboot.graceful") 4 ("reset.input.minmax") 4 ("beeper.mute") 3 ("test.failure.stop") 3 ("test.battery.start.quick") 3 ("test.battery.start.deep") 3 ("bypass.stop") 3 ("bypass.start") 3 ("beeper.toggle") 3 (&qu...
2019 Jan 04
5
[PATCH nbdkit v5 3/3] cache: Implement cache-max-size and cache space reclaim.
...t; 4K. Ext4 doesn't support it at all, and XFS doesn't support block size > page size (and I recently gave away my aarch64 machine that ran RHEL, so ..) - Addressed a few other minor issues that Eric found in v4. - Retested on Linux, FreeBSD and OpenBSD. I'm including the minmax patch which I sent before. That's because it isn't independent as I thought it was - it depends on the LRU patch. Rich.
2015 Nov 05
1
[PATCH envytools] envydis: gk110: Add support for dadd with an immediate src
...c000000000000 misc flags @@ -1410,6 +1411,7 @@ static struct insn tabi[] = { { 0x02c0000000000001ull, 0x37c0000000000003ull, N("add"), T(ftz2f), T(sat35), T(frm2a), N("f32"), DST, T(neg33), T(abs31), SRC1, T(neg3b), T(fi2) }, { 0x0300000000000001ull, 0x37c0000000000003ull, T(minmax), T(ftz2f), N("f32"), DST, T(neg33), T(abs31), SRC1, T(neg3b), T(fi2) }, { 0x0340000000000001ull, 0x37c0000000000003ull, N("mul"), T(ftz2f), T(sat35), T(frm2a), T(neg3b), N("f32"), DST, SRC1, T(fi2) }, + { 0x0380000000000001ull, 0x37c0000000000003ull, N("add&quo...
2010 Jan 21
5
rrd library missing
...uot;ruby -rRRDtool -e ''puts :yep''", it successfully returns "yep" (though not until I linked /usr/local/lib/ruby/site_ruby/1.8/ i386-solaris2.10 to /usr/local/lib/ruby/gems/1.8/gems/ RubyRRDtool-0.6.0/RRDtool.so). I was also able to generate rrds and pngs using the minmax.rb script includes in the examples directory in the RubyRRDtool gem source. I guess my question is, where exactly is puppet looking for the library? Is the library named RRDtool.so? Thanks for the help. -- You received this message because you are subscribed to the Google Groups "Puppet U...
2015 Feb 20
10
[PATCH 01/11] nvc0/ir: add emission of dadd/dmul/dmad opcodes, fix minmax
...0000, 00000001)); + roundMode_A(i); + assert(!i->saturate); + assert(!i->ftz); + emitNegAbs12(i); + if (i->op == OP_SUB) + code[0] ^= 1 << 8; +} + +void CodeEmitterNVC0::emitUADD(const Instruction *i) { uint32_t addOp = 0; @@ -895,6 +947,8 @@ CodeEmitterNVC0::emitMINMAX(const Instruction *i) else if (!isFloatType(i->dType)) op |= isSignedType(i->dType) ? 0x23 : 0x03; + if (i->dType == TYPE_F64) + op |= 0x01; emitForm_A(i, op); emitNegAbs12(i); @@ -2242,20 +2296,26 @@ CodeEmitterNVC0::emitInstruction(Instruction *insn)...
2019 May 16
0
[nbdkit PATCH 2/2] cache, cow: Round size down
...-filter(1)>, L<nbdkit-partition-filter(1)>. diff --git a/filters/cache/cache.c b/filters/cache/cache.c index 360458f..e215cac 100644 --- a/filters/cache/cache.c +++ b/filters/cache/cache.c @@ -60,6 +60,7 @@ #include "reclaim.h" #include "isaligned.h" #include "minmax.h" +#include "rounding.h" #define THREAD_MODEL NBDKIT_THREAD_MODEL_PARALLEL @@ -188,10 +189,12 @@ cache_config_complete (nbdkit_next_config_complete *next, void *nxdata) return next (nxdata); } -/* Get the file size and ensure the cache is the correct size. */ +/* Get the fil...