Displaying 6 results from an estimated 6 matches for "isinfinity".
Did you mean:
infinity
2010 Apr 20
0
[LLVMdev] Fwd: Re: NaNs and Infinities
...Original Message --------
Subject: Re: [LLVMdev] NaNs and Infinities
Date: Mon, 19 Apr 2010 23:41:43 -0700
From: Javier Martinez <javier at jmartinez.org>
To: lost <lostfreeman at gmail.com>
Hi,
If it's an immediate you can cast the SDValue to a ConstantFP and use
the isNaN() or isInfinity() member functions (see below). For non
immediates you can use bitcasting to convert the float to an integer. If
bits 0-22 are 0 and bits 23-30 are 1 it's infinity; if bits 0-22 are not
0 and bits 23-30 are 1 it's NaN. Others can probably give you a answer
and if not at least you have m...
2012 May 17
0
[LLVMdev] [PATCH] OpenCL half support
...'m not sure I get it. This variable is still needed couple of lines below:
bool isHalf = &CFP->getValueAPF().getSemantics()==&APFloat::IEEEhalf;
bool isDouble =
&CFP->getValueAPF().getSemantics()==&APFloat::IEEEdouble;
bool isInf = CFP->getValueAPF().isInfinity();
bool isNaN = CFP->getValueAPF().isNaN();
if (!isHalf && !isInf && !isNaN) {
> // Either half, or some form of long double.
> // These appear as a magic letter identifying the type, then a
> // fixed number of hex digits.
Done.
Does it look be...
2012 May 17
3
[LLVMdev] [PATCH] OpenCL half support
...able is still needed couple of lines
> below:
>
> bool isHalf = &CFP-
> >getValueAPF().getSemantics()==&APFloat::IEEEhalf;
> bool isDouble =
> &CFP->getValueAPF().getSemantics()==&APFloat::IEEEdouble;
> bool isInf = CFP->getValueAPF().isInfinity();
> bool isNaN = CFP->getValueAPF().isNaN();
> if (!isHalf && !isInf && !isNaN) {
>
> > // Either half, or some form of long double.
> > // These appear as a magic letter identifying the type, then a
> > // fixed number of hex...
2012 May 11
2
[LLVMdev] [PATCH] OpenCL half support
I've got comments on the code change. The test cases look ok, but I
haven't fully checked the math on the half-values.
I checked with reference to trunk top-of-tree at revision 156617. I
have not compiled the code.
lib/AsmParser/LLLexer.cpp
Adds support to parse format: 0xH<hexdigits>
Tha 0xH format should be described in LangRef.html alongside
0xK<hex> and
2010 Apr 19
1
[LLVMdev] NaNs and Infinities
Hello!
How can I test if floating-point value is NaN or positive/negative infinity?
2012 May 17
0
[LLVMdev] [PATCH] OpenCL half support
...es
> > below:
> >
> > bool isHalf = &CFP-
> > >getValueAPF().getSemantics()==&APFloat::IEEEhalf;
> > bool isDouble =
> > &CFP->getValueAPF().getSemantics()==&APFloat::IEEEdouble;
> > bool isInf = CFP->getValueAPF().isInfinity();
> > bool isNaN = CFP->getValueAPF().isNaN();
> > if (!isHalf && !isInf && !isNaN) {
> >
> > > // Either half, or some form of long double.
> > > // These appear as a magic letter identifying the type, then a
> > >...