search for: expf

Displaying 20 results from an estimated 26 matches for "expf".

Did you mean: exp
2016 Aug 31
2
mapping calls to exp() to expf opcode
We've got both an sqrtf and an expf opcode in our architecture. If I call sqrt() on the C side, I see the sqrtf opcode show up in the generated assembly. However, if I call exp() on the C side, I don't see the expf opcode show up on the generated assembly, I see a call to an exp function from libm. Here's what we've got...
2003 Nov 16
2
prevent conversion to factors in aggregate?
I've been trying to figure out how to prevent a column that is the result of an aggregate function call so that I can use it in further calculations. For example, I would like to aggregate the expf for the data.frame by sp (character) and dbh (double d=rounded to integer) using the command: > st2 <- aggregate( ntrs$expf, by=list(sp=ntrs$sp,dbh=ntrs$dbh), sum ) > st2$expf <- st2$x / 20 > st2$basal.area <- st2$dbh^2 * st2$expf Warning message: "^" not meaningful fo...
2005 Mar 31
1
aggregate question...
...ses of 5cm (or something like it), and I only know how to do it using code like, signif <- symnum( stems$dbh, corr = FALSE, na = FALSE, cutpoints = c(0,10,20,30,40,999), symbols = c(0,10,20,30,40) ) rt <- data.frame( stems$expf, signif = ordered( signif, levels = c(0,10,20,30,40) ) st <- aggregate( rt$stems.expf, by=list(signif), sum ) Is there a one line command to do this? -- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon 97339-1421 phone 541-754-1428 fax 541-752-02...
2003 Nov 13
1
creating a "report" table from a set of lists
...to "cbind()" the lists together to create a "cross tab" report or simply bind them together somehow the function returns a list that looks like the following: > all$BM $species [1] "BM" $vbar.nobs [1] 3 $vbar.sum [1] 54.05435 $count.nobs [1] 20 $basal.area [1] 26 $expf [1] 5.339182 > so there are different variable types in the list (meaning I can't use cbind?) to create a table with more than one column for stringing together multiple species. I tried to use rbind and got similar results. Tried unlist, but the values get cast into strings (which would b...
2009 Aug 19
3
R function for Probabilities for the (standard) normal distribution
...-1)^k*t^2k / 2^k*k! (¡Æ is from n=0 to ¡Þ) This series can be integrated term by term to obtain the formula ¦µ(z) = 1/ 2 + ( 1/ sqrt(2¦Ð) ) * ¡Æ (-1)^k*z^(2k+1) / (2^k*k! *(2k+1)) (¡Æ is from n=0 to ¡Þ) I know how to write the R function for exponential function e^x expf = function (x) { x=ifelse((neg=(x<0)),-x,x) n=0;term=1 oldsum=0; newsum=1 while(any(newsum != oldsum)) { oldsum=newsum n=n+1 term = term*x/n...
2020 Oct 28
4
Targeting old glibc
Hi, I wonder what is the right way to target an old glibc? I have a machine which is up to date (glibc 2.32 and clang+lld 10.0.1). So far I've been able to target older glibc by having a C file containing: __asm__(".symver powf,powf at GLIBC_2.2.5"); __asm__(".symver expf,expf at GLIBC_2.2.5"); __asm__(".symver exp2f,exp2f at GLIBC_2.2.5"); __asm__(".symver log2f,log2f at GLIBC_2.2.5"); __asm__(".symver logf,logf at GLIBC_2.2.5"); __asm__(".symver log,log at GLIBC_2.2.5"); __asm__(".symver log2,log2 at GLIBC_2.2.5&q...
2020 Nov 11
2
Targeting old glibc
...exp > > Then the undefined symbol 'exp' will be renamed to 'exp at GLIBC_2.2.5' > and get bound to the old version at link time. It will thus work with > old glibc. I have one .cpp file with: __asm__(".symver powf,powf at GLIBC_2.2.5"); __asm__(".symver expf,expf at GLIBC_2.2.5"); __asm__(".symver exp2f,exp2f at GLIBC_2.2.5"); __asm__(".symver log2f,log2f at GLIBC_2.2.5"); __asm__(".symver logf,logf at GLIBC_2.2.5"); __asm__(".symver log,log at GLIBC_2.2.5"); __asm__(".symver log2,log2 at GLIBC_2.2.5&q...
2020 Oct 28
2
Targeting old glibc
...libc? > > > >I have a machine which is up to date (glibc 2.32 and clang+lld 10.0.1). > > > >So far I've been able to target older glibc by having a C file containing: > > > >__asm__(".symver powf,powf at GLIBC_2.2.5"); > >__asm__(".symver expf,expf at GLIBC_2.2.5"); > >__asm__(".symver exp2f,exp2f at GLIBC_2.2.5"); > >__asm__(".symver log2f,log2f at GLIBC_2.2.5"); > >__asm__(".symver logf,logf at GLIBC_2.2.5"); > > > >__asm__(".symver log,log at GLIBC_2.2.5"); &gt...
2001 Dec 08
1
plotting values "by"
I would like to produce a set of values, on the same chart, from an sql table that is structured like... species dbh ht expf DF 1.2 8.9 10.0 DF 2.4 17.3 12.4342 DF 3.1 20.9 56.76 PP 2.3 16.9 100.0 PP 12.8 97.3 40.3 PP 8.2 63.0 98.34 . . . SS blah, blah, blah... is it possible to, using a single command in the plot command to plot the different groups on the same plot or will I have to iterate through the data set (sql s...
2004 Nov 29
1
data is getting corrupted
...es */ SEXP plant_list; SEXP plant_plot_sexp; SEXP plant_plant_sexp; SEXP plant_sp_code_sexp; SEXP plant_d6_sexp; SEXP plant_d6_area_sexp; SEXP plant_dbh_sexp; SEXP plant_basal_area_sexp; SEXP plant_tht_sexp; SEXP plant_cr_sexp; SEXP plant_n_stems_sexp; SEXP plant_expf_sexp; SEXP plant_crown_width_sexp; SEXP plant_crown_area_sexp; SEXP plant_user_code_sexp; char temp_sp_code[16]; struct SAMPLE_RECORD *s_ptr; struct SPECIES_RECORD *sp_ptr; s_ptr = (struct SAMPLE_RECORD *)calloc( 1, sizeof( struct SAMPLE_RECORD ) ); /* s...
2020 Nov 11
2
Targeting old glibc
...ed to 'exp at GLIBC_2.2.5' > > > and get bound to the old version at link time. It will thus work with > > > old glibc. > > > > I have one .cpp file with: > > > > __asm__(".symver powf,powf at GLIBC_2.2.5"); > > __asm__(".symver expf,expf at GLIBC_2.2.5"); > > __asm__(".symver exp2f,exp2f at GLIBC_2.2.5"); > > __asm__(".symver log2f,log2f at GLIBC_2.2.5"); > > __asm__(".symver logf,logf at GLIBC_2.2.5"); > > > > __asm__(".symver log,log at GLIBC_2.2.5");...
2017 Mar 20
2
-ffast-math optimizations impacted by symbol renaming in header files
...o-math-errno test_vectorize.c // Vectorization will not occur with: // clang -O2 -S -emit-llvm -fno-math-errno -ffast-math test_vectorize.c #include <math.h> void test_vectorize_exp(long n, float* restrict y, float* restrict x) { long i; for (i = 0; i < n; i++) { x[i] = expf(y[i]); } }
2020 Nov 11
0
Targeting old glibc
...symbol 'exp' will be renamed to 'exp at GLIBC_2.2.5' > > and get bound to the old version at link time. It will thus work with > > old glibc. > > I have one .cpp file with: > > __asm__(".symver powf,powf at GLIBC_2.2.5"); > __asm__(".symver expf,expf at GLIBC_2.2.5"); > __asm__(".symver exp2f,exp2f at GLIBC_2.2.5"); > __asm__(".symver log2f,log2f at GLIBC_2.2.5"); > __asm__(".symver logf,logf at GLIBC_2.2.5"); > > __asm__(".symver log,log at GLIBC_2.2.5"); > __asm__(".symv...
2020 Nov 09
0
Targeting old glibc
...I have a machine which is up to date (glibc 2.32 and clang+lld 10.0.1). > > > > > >So far I've been able to target older glibc by having a C file containing: > > > > > >__asm__(".symver powf,powf at GLIBC_2.2.5"); > > >__asm__(".symver expf,expf at GLIBC_2.2.5"); > > >__asm__(".symver exp2f,exp2f at GLIBC_2.2.5"); > > >__asm__(".symver log2f,log2f at GLIBC_2.2.5"); > > >__asm__(".symver logf,logf at GLIBC_2.2.5"); > > > > > >__asm__(".symver log,log a...
2004 Aug 06
1
libspeex/SSE Intrinsics with GCC 3.3.x
On Fri, Apr 02, 2004 at 12:33:13AM -0500, Jean-Marc Valin wrote: > Do you have any sample code for that? Also, how do you tell autoconf to > append '-msse' without running into problems when CFLAGS is not set (and > usually defaults to -g -O2, but not always). Example patch attached. It only tries if the use passes --enable-sse; testing by target arch as Aron suggested is
2020 Nov 11
0
Targeting old glibc
...5' >> > > and get bound to the old version at link time. It will thus work with >> > > old glibc. >> > >> > I have one .cpp file with: >> > >> > __asm__(".symver powf,powf at GLIBC_2.2.5"); >> > __asm__(".symver expf,expf at GLIBC_2.2.5"); >> > __asm__(".symver exp2f,exp2f at GLIBC_2.2.5"); >> > __asm__(".symver log2f,log2f at GLIBC_2.2.5"); >> > __asm__(".symver logf,logf at GLIBC_2.2.5"); >> > >> > __asm__(".symver log,log at...
2020 Nov 09
2
Targeting old glibc
...up to date (glibc 2.32 and clang+lld 10.0.1). > > > > > > > >So far I've been able to target older glibc by having a C file containing: > > > > > > > >__asm__(".symver powf,powf at GLIBC_2.2.5"); > > > >__asm__(".symver expf,expf at GLIBC_2.2.5"); > > > >__asm__(".symver exp2f,exp2f at GLIBC_2.2.5"); > > > >__asm__(".symver log2f,log2f at GLIBC_2.2.5"); > > > >__asm__(".symver logf,logf at GLIBC_2.2.5"); > > > > > > > >__asm_...
2020 Nov 10
2
Targeting old glibc
Thank you very much for your help Fāng-ruì Sòng. I've tried various things like linking directly to libm-2.32 but it didn't work, it seems that libm-2.32 still pulls libmvec. I have the following linker flags: CLANG_LDFLAGS="-fuse-ld=lld -static-libstdc++ -static-libgcc -fvisibility=hidden -fdata-sections -ffunction-sections" CLANG_LDFLAGS="$CLANG_LDFLAGS
2001 Jun 27
1
Patch to get libvorbis 1.0b4 to build on Solaris 2.7
...FLOAT_MATH_LIB # define FAST_HYPOT(a, b) sqrt((a)*(a) + (b)*(b)) #endif -#ifndef __GNUC__ -# define NO_FLOAT_MATH_LIB -#endif - -#ifdef DARWIN -# define NO_FLOAT_MATH_LIB -#endif - -#ifndef NO_FLOAT_MATH_LIB +#ifdef HAVE_FLOAT_MATH_LIB # define sqrt sqrtf # define log logf # define exp expf --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages...
2001 Mar 29
2
libvorbis: NO_FLOAT_MATH_LIB patch
...2001 @@ -42,15 +42,7 @@ # define FAST_HYPOT(a, b) sqrt((a)*(a) + (b)*(b)) #endif -#ifndef __GNUC__ -# define NO_FLOAT_MATH_LIB -#endif - -#ifdef DARWIN -# define NO_FLOAT_MATH_LIB -#endif - -#ifndef NO_FLOAT_MATH_LIB +#ifdef HAVE_SQRTF # define sqrt sqrtf # define log logf # define exp expf -- Christian "naddy" Weisgerber naddy@mips.inka.de --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only...