search for: fabs

Displaying 20 results from an estimated 334 matches for "fabs".

Did you mean: abs
2013 May 06
1
[LLVMdev] Floating-point FABS - supporting
I posted a similar issue, but this relates to how to keep a function call from being lowered to an ISD:FABS. In this case, I don't want FABS (floating point absolute) to be converted into an operation). In this case, what happens is that clang generates the code for floating point absolute (fabs) as a subroutine call: %5 = load douuble %x, align 8 %call = call double @fabs(double %5) nounwind read...
2014 Apr 15
2
[PATCH 2/3] Use fabsf() instead of fabs() since we have floats, not double
...orf(.5+(x)))) > #endif > > #define IMAX(a,b) ((a) > (b) ? (a) : (b)) > @@ -273,12 +273,12 @@ static spx_word16_t sinc(float cutoff, float x, int > N, struct FuncDef *window_fu > { > /*fprintf (stderr, "%f ", x);*/ > float xx = x * cutoff; > - if (fabs(x)<1e-6f) > + if (fabsf(x)<1e-6f) > return WORD2INT(32768.*cutoff); > - else if (fabs(x) > .5f*N) > + else if (fabsf(x) > .5f*N) > return 0; > /*FIXME: Can it really be any slower than this? */ > - return WORD2INT(32768.*cutoff*sin(M_PI*xx)...
2018 Aug 02
1
[PATCH 1/2] Add fabs() implementation
When we add -ffreestanding the compiler won't get to inline this any more. Signed-off-by: David Woodhouse <dwmw2 at infradead.org> --- com32/lib/math/fabs.S | 15 +++++++++++++++ mk/lib.mk | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 com32/lib/math/fabs.S diff --git a/com32/lib/math/fabs.S b/com32/lib/math/fabs.S new file mode 100644 index 00000000..794a53c0 --- /dev/null +++ b/com32/lib/math/fabs.S @@ -0...
2013 Aug 13
2
[LLVMdev] SimplifyLibCalls doesn't check TLI for LibFunc availability
...me() == "pow" && TLI->has(LibFunc::powf)) { UnaryDoubleFPOpt UnsafeUnaryDoubleFP(true); Ret = UnsafeUnaryDoubleFP.callOptimizer(Callee, CI, B); } [...] if (Op2C->isExactlyValue(0.5)) { // Expand pow(x, 0.5) to (x == -infinity ? +infinity : fabs(sqrt(x))). // This is faster than calling pow, and still handles negative zero // and negative infinity correctly. // TODO: In fast-math mode, this could be just sqrt(x). // TODO: In finite-only mode, this could be just fabs(sqrt(x)). Value *Inf = ConstantFP::getInfini...
2013 May 12
3
Duda básica
Hola Colegas: Me reintegro al estudio de R y quisiera me pudieran resolver el problema que planteo en el archivo adjunto. Gracias anticipadas. *MANOLO MÁRQUEZ P.* ------------ próxima parte ------------ Se ha borrado un adjunto en formato HTML... URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20130511/b0c9f15d/attachment.html> ------------ próxima parte ------------ An embedded
2013 Aug 13
0
[LLVMdev] SimplifyLibCalls doesn't check TLI for LibFunc availability
...ryDoubleFP(true);**** > > Ret = UnsafeUnaryDoubleFP.callOptimizer(Callee, CI, B);**** > > }**** > > ** ** > > [...]**** > > ** ** > > if (Op2C->isExactlyValue(0.5)) {**** > > // Expand pow(x, 0.5) to (x == -infinity ? +infinity : > fabs(sqrt(x))).**** > > // This is faster than calling pow, and still handles negative zero* > *** > > // and negative infinity correctly.**** > > // TODO: In fast-math mode, this could be just sqrt(x).**** > > // TODO: In finite-only mode, this could b...
2014 Apr 15
0
[PATCH 2/3] Use fabsf() instead of fabs() since we have floats, not double
...> 32766.5f ? 32767 : floorf(.5+(x)))) #endif #define IMAX(a,b) ((a) > (b) ? (a) : (b)) @@ -273,12 +273,12 @@ static spx_word16_t sinc(float cutoff, float x, int N, struct FuncDef *window_fu { /*fprintf (stderr, "%f ", x);*/ float xx = x * cutoff; - if (fabs(x)<1e-6f) + if (fabsf(x)<1e-6f) return WORD2INT(32768.*cutoff); - else if (fabs(x) > .5f*N) + else if (fabsf(x) > .5f*N) return 0; /*FIXME: Can it really be any slower than this? */ - return WORD2INT(32768.*cutoff*sin(M_PI*xx)/(M_PI*xx) * compute_func(fabs(2.*x...
2014 Apr 15
6
[PATCH 0/3] misc. cleanup
...I think the only way to find out how speexdsp has been compiled is to resample some bytes and observe the output; which is awkard I plan to post some patches in this direction shortly... thanks, regards, p. Peter Meerwald (3): Resampler buffer_size is always 160, drop FIXED_POINT #ifdef Use fabsf() instead of fabs() since we have floats, not double Fix file permission of libspeexdsp/scal.c libspeexdsp/resample.c | 18 +++++++----------- libspeexdsp/scal.c | 0 2 files changed, 7 insertions(+), 11 deletions(-) mode change 100755 => 100644 libspeexdsp/scal.c -- 1.9.1
2006 Oct 14
4
How do I manage manifests most efficiently...?
Hi As I''m more familiar with cfengine and it''s way to split updates (in update.conf) from the actual grunt work (in cfagent.conf), I''m wondering how to best manage puppet and my manifests with puppet...? Should I define a puppet class that copy the puppet package (in .tgz format) and all the manifests to the client, and then have all my other classes depend on
2006 Oct 19
1
Filenames with dots in the name
Hi, When I try to specify a file I want copied in place, like: configfile { "/etc/init.d/puppet": source => "config/apps/puppet/puppet" } and has a require on that later on: exec { "/usr/sbin/update-rc.d puppet defaults": require => "/etc/init.d/puppet" } puppetd throws an error: err: Could not find type
2007 Jan 31
7
Report usage...
Hi, I''ve setup my systems to do reporting as explained in https:// reductivelabs.com/cgi-bin/puppet.cgi/wiki/ReportsAndReporting, with tagmail defined as one of the report types - but I do not recieve any mail at all. I''ve configured a tagmail.conf file like this: all: root@localhost But the documentation mentions three options, namely sendmail, reportfrom,
2008 Apr 24
0
DVD Fab HD Decrypter, surpisingly better than windows
Hello, DVD Fab HD Decrypter is a DVD copy program. The free version is limited to decrypt and store the result onto HDD only. Better than all other tools (that I tried), this program does not have problems with some tricky copy protection methods. While the best other program fails on about 50% of current DVD movies, DVD Fab HD Decrypter took them all fine. I tried to run DVD Fab HD Decrypter
2000 Jun 28
2
trivial optimization to psy.c
...ning the two loops saves a percent or two (according to gprof). ================================================================= --- psy.c Mon Jun 19 12:05:57 2000 +++ - Wed Jun 28 15:14:17 2000 @@ -550,12 +550,11 @@ frameno++; memset(flr,0,n*sizeof(double)); - for(i=0;i<n;i++)work[i]=fabs(f[i]); - - /* find the highest peak so we know the limits */ for(i=0;i<n;i++){ - if(work[i]>specmax)specmax=work[i]; - } + work[i]=fabs(f[i]); + if(work[i]>specmax) + specmax=work[i]; + } specmax=todB(specmax); /* don't use the smoothed data for noise */ ==...
2006 Oct 17
5
Puppet tgz installs...
Hi I''m anxious to get puppet into production, and although I''d prefer installing puppet as a .deb package (as most of the servers in our shop runs Debian), I think I''ll try to get some of my not-so- important servers into my test setup by installing puppet with the .tgz files. Upon the first installation I realize that puppetd and puppetmasterd is copied to
2004 Feb 23
2
About lossless and point stereo
...gt;0){ pcmM[j]=mag; pcmA[j]=mag+ang; }else{ pcmA[j]=mag; pcmM[j]=mag-ang; } } } But when I look at the (rather messy) lossless coupling function (couple_lossless) in psy.c: tatic void couple_lossless(float A, float B, float *qA, float *qB) { int test1 = fabs(*qA) > fabs(*qB); test1 -= fabs(*qA) < fabs(*qB); if (!test1) test1 = ((fabs(A) > fabs(B)) << 1) - 1; if (test1 == 1) { *qB = (*qA > 0.f ? *qA - *qB : *qB - *qA); } else { float temp = *qB; *qB = (*qB > 0.f ? *qA - *qB : *qB - *qA); *qA = te...
2007 Dec 11
1
Node variable names with dashes..
Hi all I''ve stumbled upon something that I consider a bug: Node variables can''t have dashes in them: node blah { $allow-from = "127.0.0.1" } err: Could not parse; using old configuration: Could not match ''- from'' at /home/mercurial/repositories/manifests/nodes/nodes.pp:8 I''m using the variable to create a template-based config file.
2007 Nov 21
2
I''m lost on exec
Hi Can anyone tell me what''s wrong with this one. Sorry I''m new and I just want to print some message to the the puppet log on the client side. --------------------------------------------------- $testvar = "Hello world!" class mytest { exec { "/bin/echo $testvar" } } I keep getting: err: Could not parse; using old configuration: Syntax error at
2007 Jan 21
5
facts about xen domU''s...
Hi, I''ve just finished my first attempt at making anything in ruby. It ended up beeing a module to facter, which collects facts about the number of domU''s and the memory, id and vcpu facts on all of the domU''s. It''s meant to be run on the dom0, and uses the xm utility to get the information. The only thing I haven''t figured out, is how to
2008 May 29
3
cannot add new machines to domain
Hi, i have running samba with ldap as a PDC. The PDC works fine, except adding new computer to the domain. The Computer how was added 2-3 Years ago works fine, but i cannot add new PCs to the domain. The samba log says to remove the paramtere 'algorithmic rid base' and use 'net groupmap add' and 'net setmaxrid'. The command "net setmaxrid" is not existent.
2006 Oct 12
3
Defaults for package type...
Hi I''m wondering if it''s possible to define some defaults for the package type. What I want is that package install/updates only happens at certain times of the day. I could do: class shorewall { package { "shorewall": ensure => latest, schedule => maintenance } } for every package I want to manage. But that means I have to type