search for: trig

Displaying 20 results from an estimated 221 matches for "trig".

Did you mean: orig
2005 Apr 24
4
[LLVMdev] trig language-like code generator generator
i'd like to know if there is any plan or existing work to add a Aho's trig language like code generator generator? "...If you are starting a new port, we recommend that you write the instruction selector using the SelectionDAG infrastructure." any other things i should know before i write one? thank you.
2002 Aug 29
0
yet another MDCT question
mdct.c, lines 436 onward (part of mdct_backward) state { DATA_TYPE *oX1=out+n2+n4; DATA_TYPE *oX2=out+n2+n4; DATA_TYPE *iX =out; T =init->trig+n2; do{ oX1-=4; oX1[3] = MULT_NORM (iX[0] * T[1] - iX[1] * T[0]); oX2[0] = -MULT_NORM (iX[0] * T[0] + iX[1] * T[1]); oX1[2] = MULT_NORM (iX[2] * T[3] - iX[3] * T[2]); oX2[1] = -MULT_NORM (iX[2] * T[2] + iX[3] * T[3]); oX1[1] = MULT_NORM (iX[4]...
2002 Aug 16
2
Setting up the trig tables.
As some of you know, I'm creating a hardware MDCT core. At the moment I'm working out the best way to create a lookup table for the trig values, as set up in mdct_init: /* trig lookups... */ for(i=0;i<n/4;i++){ T[i*2]=FLOAT_CONV(cos((M_PI/n)*(4*i))); T[i*2+1]=FLOAT_CONV(-sin((M_PI/n)*(4*i))); T[n2+i*2]=FLOAT_CONV(cos((M_PI/(2*n))*(2*i+1))); T[n2+i*2+1]=FLOAT_CONV(sin((M_PI/(2*n))*(2*i+1))); } for(i=0;i<...
2005 Apr 24
0
[LLVMdev] trig language-like code generator generator
On Sun, Apr 24, 2005 at 07:15:03PM +0800, Tzu-Chien Chiu wrote: > i'd like to know if there is any plan or existing work to add a Aho's > trig language like code generator generator? I'm not aware of either the trig language code generator nor any work to implement it in LLVM. > "...If you are starting a new port, we recommend that you write the > instruction selector using the SelectionDAG infrastructure." > &gt...
2005 Apr 24
0
[LLVMdev] trig language-like code generator generator
On Sun, 24 Apr 2005, Tzu-Chien Chiu wrote: > i'd like to know if there is any plan or existing work to add a Aho's > trig language like code generator generator? Trig is a code generator generator? Is there any documentation for it available anywhere? -Chris > "...If you are starting a new port, we recommend that you write the > instruction selector using the SelectionDAG infrastructure." > &gt...
2011 Jul 07
6
Xen unstable on NetBSD
Hello, I''m trying to compile Xen unstable on NetBSD, I''ve aplied the patches from http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/sysutils/xentools41/patches/?only_with_tag=MAIN and copied the blk files from http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/sysutils/xentools41/files/?only_with_tag=MAIN (I don''t know which of these patches have been applied to xen unstable, so
2005 Apr 24
2
[LLVMdev] trig language-like code generator generator
http://portal.acm.org/citation.cfm?id=75700 On 4/25/05, Chris Lattner <sabre at nondot.org> wrote: > On Sun, 24 Apr 2005, Tzu-Chien Chiu wrote: > > i'd like to know if there is any plan or existing work to add a Aho's > > trig language like code generator generator? > > Trig is a code generator generator? Is there any documentation for it > available anywhere? > > -Chris > > > "...If you are starting a new port, we recommend that you write the > > instruction selector using the Sele...
2002 Aug 13
1
mdct.c pointer to array conversion
...der if anyone has already done this conversion? Using a pointer to access memory elements means you do not have to keep thinking about the width of your index, however you do have to think about this if you take the pointers away which is what I'm having problems with. For instance, init-> trig : T[0] through to T[7] contain the values of memory stored at (init->trig)+n4 onwards. I can't pass the pointer init->trig directly to hardware since the hardware core will not be able to access the memory of the host PC (mapping0.c which calls mdct_backward will remain on the host PC f...
2010 Sep 13
2
How to do a trig regression
Hello All, I cant seem to do a trig regression in R. The equation is as follows : y = a+b*(sin((2*pi*x/360) - c))^2 a, b, c are coefs that I want. y, x are input vectors. The equation I put into R: lm(y ~ sin(2*pi*x/360)^2) This equation is missing the c and I dont get the right answer. Also, I dont know how to plot the lm over t...
2012 Feb 03
3
IO-APIC: tweak debug key info formatting
The formatting of the IO-APIC debug key info has niggled me for a while, and with the latest interrupt bug I am chasing, has finally motivated me to fix it. The attached patch causes all columns to line up, and removes the comma which served no purpose in combination with the spaces already present. -- Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900,
2005 Apr 24
0
[LLVMdev] trig language-like code generator generator
...ut we've made good progress. Are you interested in helping out? -Chris > On 4/25/05, Chris Lattner <sabre at nondot.org> wrote: >> On Sun, 24 Apr 2005, Tzu-Chien Chiu wrote: >>> i'd like to know if there is any plan or existing work to add a Aho's >>> trig language like code generator generator? >> >> Trig is a code generator generator? Is there any documentation for it >> available anywhere? >> >> -Chris >> >>> "...If you are starting a new port, we recommend that you write the >>> instruct...
2006 Oct 02
1
Trig.Rd typo (PR#9269)
Full_Name: Robin Hankin Version: 2.4.0 RC OS: MacOSX 10.4.7 Submission from: (NULL) (139.166.242.29) The first cut line described in Trig.Rd for asin() is incorrect in the ascii version of the manpage. The Rd file reads: For \code{asin()} and \code{acos()}, there are two cuts, both along the real axis: \eqn{\left(-\infty, -1\right]}{\(-Inf, 1\]} and Note the inconsistency between the ascii and latex equations. It should read:...
2010 Dec 21
2
[LLVMdev] complex numbers with LLVM
...n the complex plane. This implies that I need to support complex numbers as a datatype with LLVM. Its fairly straightforward to create a struct of two floats (or doubles, etc.) and do the simple operations like add, subtract, multiply, divide, etc. However, things get stickier when we get to the trig functions. At that point, I'd rather defer to the trig functions implemented in C++, possibly taking them from boost's TR1 support instead of my compiler's TR1 support. At any rate, these functions aren't like the cos function in the math library because they are possibly template...
2002 Nov 14
1
Citrix trigging printing bug??
...a connection to the users default printer and it seems like it fails. * We have device drivers uploaded to the samba server for some of the printers but it does not make any difference if we remove nt*.tdb files. * This was working before, but all of a sudden it stoped working, possebly trigged by upploading new printer drivers, possebly by something else. In the logs we find this on level 1 when we start the citrix connection on the windows client "130.240.3.45" with the default printer "lwdup". [2002/11/11 13:55:08, 1] lib/util_sock.c:open_socket_out(860) ti...
2013 May 31
62
cpuidle and un-eoid interrupts at the local apic
Recently our automated testing system has caught a curious assertion while testing Xen 4.1.5 on a HaswellDT system. (XEN) Assertion ''(sp == 0) || (peoi[sp-1].vector < vector)'' failed at irq.c:1030 (XEN) ----[ Xen-4.1.5 x86_64 debug=n Not tainted ]---- (XEN) CPU: 0 (XEN) RIP: e008:[<ffff82c48016b2b4>] do_IRQ+0x514/0x750 (XEN) RFLAGS: 0000000000010093 CONTEXT:
2013 Jul 16
0
[PATCH] xen: extract register definitions from ns16550 into a separated header
...rol Register */ -#define FCR_ENABLE 0x01 /* enable FIFO */ -#define FCR_CLRX 0x02 /* clear Rx FIFO */ -#define FCR_CLTX 0x04 /* clear Tx FIFO */ -#define FCR_DMA 0x10 /* enter DMA mode */ -#define FCR_TRG1 0x00 /* Rx FIFO trig lev 1 */ -#define FCR_TRG4 0x40 /* Rx FIFO trig lev 4 */ -#define FCR_TRG8 0x80 /* Rx FIFO trig lev 8 */ -#define FCR_TRG14 0xc0 /* Rx FIFO trig lev 14 */ - -/* Line Control Register */ -#define LCR_DLAB 0x80 /* Divisor Latch Access */ - -/* Modem Contr...
2010 Apr 09
2
problems loading blas with R 2.11.0~20100402-1
Hi, Since upgrading to version 2.11.0~20100402-1, starting R fails with: /usr/lib64/R/bin/exec/R: error while loading shared libraries: libblas.so.3gf: cannot open shared object file: No such file or directory Is this occurring to others on sid? -- Seb
2000 May 31
0
commenting lines (was Drawing Trig Function)
> Date: Wed, 31 May 2000 22:27:06 +1200 > From: Ko-Kang Wang <Ko-Kang at xtra.co.nz> > > Just out of curiousity, why is it I can''t do multiple commenting in R. I have > to type # in front of each line (well, it''s true). If there are 20 or more > lines it becomes a bit annoying. > > In SAS there is /* blah blah blah */, which comments out an
2007 May 31
0
Using MIcombine for coxph fits
...eproducible example to demonstrate the issue. First, make a dataset from the pbc dataset in the survival package --------------- # Make a dataset library(survival) d <- pbc[,c('time','status','age','sex','hepmeg','platelet', 'trt', 'trig')] d[d==-9] <- NA d[,c(4,5,7)] <- lapply(d[,c(4,5,7)], FUN=as.factor) str(d) summary(d) --------------- Second, since there is missing data for several (but not all) of the variables, investigate the patterns. --------------- library(Hmisc) na.pattern(d) clus <- naclus(d, metho...
2009 Jul 14
4
Trig functions strange results
I am trying to calculate coordinate transformations and in the process of debugging my code using debug I found the following Browse[1]> direction[i] [1] -1.570796 Browse[1]> cos(direction[i]) [1] 6.123032e-17 Browse[1]> cos(-1.570796) [1] 3.267949e-07 Browse[1]> direction[i] [1] -1.570796 Browse[1]> cos(direction[i]) [1] 6.123032e-17 Browse[1]> cos(-1.570796) [1] 3.267949e-07