Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] Other Intrinsics?"
2008 Mar 31
7
[LLVMdev] Reference Manual Clarifications
Here is a patch containing all but one of the changes. I realized that
the remainder/modulo discussion does indeed belongs to the srem
instruction. The semantics of urem are obvious and need no further
clarification.
Best Regards,
Jon
1572,1573c1572,1575
< notation (see below). Floating point constants must have a <a
< href="#t_floating">floating point</a>
2007 Nov 27
3
[LLVMdev] Other Intrinsics?
> > Do you have plans to add other intrinsics? I'm curious as to why there
> > is an llvm.sin intrinsic and an llvm.cos intrinsic, but no llvm.atan
> > intrinsic. Why is there an llvm.pow intrinsic but no llvm.log
> > intrinsic?
>
> Intrinsics get added on demand. Generally there has to be a good reason
> to add them. llvm.sin was implemented (for
2017 Feb 15
4
multiprecision add/sub
I suggest that LLVM needs intrinsics for add/sub with carry, e.g.
declare {T, i1} @llvm.addc.T(T %a, T %b, i1 c)
The current multiprecision clang intrinsics example:
void foo(unsigned *x, unsigned *y, unsigned *z)
{ unsigned carryin = 0;
unsigned carryout;
z[0] = __builtin_addc(x[0], y[0], carryin, &carryout);
carryin = carryout;
z[1] = __builtin_addc(x[1], y[1],
2008 Mar 31
3
[LLVMdev] Reference Manual Clarifications
Here are some clarifications for the reference manual. Please verify
that my assumptions are correct. Shall I post a patch?
Floating-point Constants: Add "The assembler requires the exact decimal
value of a floating-point constant. For example, the assembler accepts
'1.25' but rejects '1.3' because '1.3' is a repeating decimal in binary."
Binary
2009 Apr 27
1
Extract one element from yahooKeystats data
I am trying to extract one particular piece of data(Float) from all
the data returned by yahooKeystats, but thus far I'm having no luck.
This is what I've got so far:
> library(fImport)
Loading required package: timeSeries
Loading required package: timeDate
> data<-yahooKeystats("IBM")
trying URL 'http://finance.yahoo.com/q/ks?s=IBM'
Content type 'text/html;
2008 Oct 02
1
RBloomberg to get dividend
I try to use RBloomberg to get the dividend for IBM. However,
blpGetData(conn, "IBM EQUITY", field="EQY_DVD_HIST_ALL",
start=as.chron("1980-01-01"))
doesn't work. It returns
EQY_DVD_HIST_ALL
(10/02/08 14:46:36) NA
I have to used
blpGetData(conn, "IBM EQUITY", "EQY_DVD_SH_12M_NET",
2017 Feb 16
2
multiprecision add/sub
Stephen Canon via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Why do you think this requires new intrinsics instead of teaching the optimizer what to do with the existing intrinsics?
IMO, as a multiprecision math library maker, the "teaching the
optimizer what to do with the existing intrinsics" approach is much
better as long as it can be made to work. If one is
2001 Feb 01
1
constructing a vector from a dataframe and another vector
Hi All,
I have a dataframe, divs, that looks like this:
> divs
date ticker dividend
263 20010322 ADBE 0.025
264 20010628 ADBE 0.025
265 20010927 ADBE 0.025
4308 20010212 ED 0.550
4309 20010514 ED 0.410
5416 20010330 GE 0.137
5417 20010629 GE 0.137
5418 20010928
2020 Aug 30
5
BUG: complete misunterstanding of the MS-ABI
Objects compiled for the MS-ABI don't conform to it!
Data types beyond 64 bit MUST BE returned by the callee via the
hidden first argument allocated by the caller, NOT in XMM0!
Demo/proof: from this source
--- llvm-bug.c ---
#ifndef __clang__
typedef struct {
unsigned __int64 low;
unsigned __int64 high;
} __uint128_t;
#else
__attribute__((ms_abi))
#endif
__uint128_t
2014 Feb 18
4
[LLVMdev] Optimizing math code
Hello LLVM-dev,
I’m writing some crypto math code in C, and trying to make it as simple and portable as possible, so that there won’t be any unforeseen platform bugs. Ideally, I’d like the compiler to as much work as possible for me, and I’m wondering if you know how to make clang (or gcc, for that matter) do some of this. So I have a couple of questions. If this is the wrong list to ask for
2005 Jun 23
2
quotient and remainder
hi netters
Is there a function in R that can compute the quotient and remainder of a
division calculation? such that when 11 is given as the dividend and 5
the divider, the function returns 2(quotient) and 1(remainder).
Thanks a lot!
_________________________________________________________________
伱佲伔佈佅伮佋佖 MSN Explorer: http://explorer.msn.com/lccn/
2017 Mar 07
2
multiprecision add/sub
> On Feb 21, 2017, at 9:54 PM, Nemanja Ivanovic via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> I believe that providing additional intrinsics that would directly produce the ISD::ADDC/ISD::SUBC nodes would provide the additional advantage of being able to directly produce these nodes for code that doesn't have anything to do with multiprecision addition/subtraction. I am
2007 Oct 03
2
[LLVMdev] Array Slicing?
I'm designing a language that supports array slicing. Does LLVM allows
conversions between array pointers? For example, can I cast a
pointer-to-array-of-5-ints to a pointer-to-array-of-3-ints? Can I get
the address of the third element of an array-of-5-ints and convert it to
a pointer-to-array-of-3-ints? Then again, I suppose a pointer-to-int
would work just as well since LLVM
2007 Mar 22
2
[LLVMdev] a question about constant fold for fdiv
Reid Spencer wrote:
> On Thu, 2007-03-22 at 15:50 -0700, leo han wrote:
>
>> Hello, I have a question about the constant folding for fdiv instructions.
>> For the instruction "fdiv double 0.0, 0.0", the folded result is inf. I
>> think this should be nan. Can anyone tell me why it is not nan?
>>
>
> I think the specification says that it is
2012 Aug 27
2
Assigning colors on low p-values in table
Hi all R-users,
I?m trying to assign colors on those p-value in my table output that fall
above a certain critical value, let?s say a p-value >0.05.
My table looks like this:
Assets ADF-Level P-Value
ADF-First D P-Value ADF-Second D P-Value
[1,] Liabilities -2.3109 0.1988 -3.162
0.025 -6.0281
2008 Apr 20
3
[LLVMdev] Reference Manual Clarifications 2
Joachim Durchholz wrote:
> Am Samstag, den 19.04.2008, 16:24 -0700 schrieb Jon Sargeant:
>> First, I can assign -1 to
>> the count to indicate an invalid or unknown value.
>
> This is a C-ism. In a language that supports discriminated unions well,
> you'd do something like
> type AllocaCount = Invalid | Unknown | Known int
> (where Invalid, Unknown and Known
2000 Nov 26
2
References for the BARK/MEL stuff
Could someone point me to the BARK/MEL tables that these macros (from vorbis/scales.h) are trying to approximate?
#define toBARK(f) (13.1*atan(.00074*(f))+2.24*atan((f)*(f)*1.85e-8)+1e-4*(f))
#define fromBARK(z) (102.*(z)-2.*pow(z,2.)+.4*pow(z,3)+pow(1.46,z)-1.)
#define toMEL(f) (log(1.+(f)*.001)*1442.695)
#define fromMEL(m) (1000.*exp((m)/1442.695)-1000.)
I was wondering if I could come
2012 Feb 04
1
RFC: Proposal to make NROW() and NCOL() slightly more general
The help has
> Description:
> 'nrow' and 'ncol' return the number of rows or columns present in 'x'.
> 'NCOL' and 'NROW' do the same treating a vector as 1-column matrix.
and
> x: a vector, array or data frame
I'm proposing to extend these two convenience functions
to also work ``correctly'' for generalized versions of
2007 Mar 22
0
[LLVMdev] a question about constant fold for fdiv
Jeff Cohen wrote:
> Reid Spencer wrote:
>> On Thu, 2007-03-22 at 15:50 -0700, leo han wrote:
>>
>>> Hello, I have a question about the constant folding for fdiv instructions.
>>> For the instruction "fdiv double 0.0, 0.0", the folded result is inf. I
>>> think this should be nan. Can anyone tell me why it is not nan?
>>>
2024 Sep 05
3
BUG: atan(1i) / 5 = NaN+Infi ?
On 2024-09-05 4:23 p.m., Leo Mada via R-help wrote:
> Dear R Users,
>
> Is this desired behaviour?
> I presume it's a bug.
>
> atan(1i)
> # 0+Infi
>
> tan(atan(1i))
> # 0+1i
>
> atan(1i) / 5
> # NaN+Infi
There's no need to involve atan() and tan() in this:
> (0+Inf*1i)/5
[1] NaN+Infi
Why do you think this is a bug?
Duncan Murdoch