Displaying 20 results from an estimated 78 matches for "mantissas".
Did you mean:
mantissa
2016 Apr 15
2
Integer -> Floating point -> Integer cast optimizations
My understanding is that this checks whether the bit width of the integer *type* fits in the bit width of the mantissa, not the bit width of the integer value.
- CL
> On Apr 14, 2016, at 6:02 PM, escha at apple.com wrote:
>
> We already do this to some extent; see this code in InstCombineCasts:
>
> // fpto{s/u}i({u/s}itofp(X)) --> X or zext(X) or sext(X) or trunc(X)
> //
2016 Apr 14
2
Integer -> Floating point -> Integer cast optimizations
I'm saying at the IR level, not the C level. IR makes certain assumptions about the representation of floating point numbers. Nothing to do with C, I only used it as an example.
- CL
> On Apr 14, 2016, at 4:49 PM, Martin J. O'Riordan <martin.oriordan at movidius.com> wrote:
>
> I don't think that this is correct.
>
> | Let's say we have an int x, and we
2016 Mar 02
2
Incorrect return values for APFloat::convertFromString?
I noticed some odd behavior with APFloat's convertFromString method.
1. If I pass the hex representation of the closest value to 0.1 (0x19999Ap-24), everything is fine and opOk is returned. However, if I pass the same value as a decimal string (0.10000002384185791015625), opInexact is set.
2. On the lower end of the scale, the smallest denormal 0x1p-149 returns opOk, but the
2009 Mar 18
4
[LLVMdev] decimal to floating point conversion
Hi all:
I need an instruction that can convert decimal values into floating point
numbers.
i.e. say I have a decimal number 1110794174 (== 42355FBE in hex ) and (==
45.3435 as a float)
essentially the mantissa and exponent representation needs to be used.
Is there any way of doing this in llvm?
Thanks and Regards
--
-- Aparna Kotha
Graduate Student
Electrical and Computer Engineering
2016 Jul 28
2
Weighting Schemes: Implementing Piv+ Normalization
> Two of those are compile errors, suggesting you aren't pulling in the
> right header file (it's in common/serialise-double.h I believe).
Thanks, fixed those errors.
> I can't tell for sure without seeing the diff. You may mean just
> `ptr++`? But it could be something else, depending on what you're
> trying to do.
I'm trying to unserialise normalization
2011 Aug 10
1
Floats in Microsoft Basic format
Hi all,
I need to convert a floating point value from Microsoft Basic format to IEEE
format.
There's a simple way to achieve this in R or I have to write my own
function?
(e.g. convert the C code below)
thanks
t
#include <string.h> /* for strncpy */
int _fmsbintoieee(float *src4, float *dest4)
{
unsigned char *msbin = (unsigned char *)src4;
unsigned char *ieee
2008 Feb 19
0
Patch for Analog Devices compiler & fixed-point AGC
Stephane Lesage a ?crit :
>
> Hi Jean-Marc,
>
> As I told you, bank is a reserved keyword in Analog Devices compiler for
> Blackfin architecture.
> So we need to change the variables named bank to something else.
You mean the VDSP compiler that people seem to have mostly replaced with
gcc?
> Here's a patch that changes bank to bnk in the 3 concerned files.
> (Hope
2009 Jul 15
2
ifultools on ppc debian
I have tried to compile this from source. I don't know what Endianess
is, but it is probably not debian power pc. Am I would of luck with
this package?
Stephen Sefick
* Installing *source* package ?ifultools? ...
** libs
gcc -std=gnu99 -I/usr/local/lib/R/include -I"../inst/include/"
-D"MUTIL_STATIC" -D"DEF_TF" -D"INTERRUPT_ENABLE"
2008 May 20
2
[LLVMdev] Making use of SSE intrinsics
Hi all,
I'd like to make use of some specific x86 Streaming SIMD Extension
instructions, but I don't know where to start. For instance the 'rcpps'
instructions computes a low precision but fast reciprocal. I've noticed that
LLVM supports intrinsics, but I couldn't find any information on how to use
them. I've tried digging through the LLVM-GCC code but it's just
2018 May 09
0
NAs produced by integer overflow, but only some time ...
a) Numeric values may be either integers (signed 32 bit) or double precision (53 bit mantissa).
b) Double precision constants are numeric with no decoration (e.g. 61224). Integer constants have an L (e.g. 61224L).
c) 61224*61224 > 2^31-1 so that answer cannot fit into an integer.
d) Exponentiation is a floating point operation so the result of 61224L^2L is a floating point answer that CAN
2018 May 09
2
NAs produced by integer overflow, but only some time ...
Before responding to Jeff's posting, let me reiterate my question: Why
does a function using m1*m1 produce an integer overflow, but m1^2 does
not?
As for Jeff's 'response':
> a) Numeric values may be either integers (signed 32 bit) or double precision (53 bit mantissa).
> b) Double precision constants are numeric with no decoration (e.g. 61224). Integer constants have an L
2007 Mar 12
2
e2fsck hanging
I'm trying to run e2fsck on a ~6TB filesystem which is about 90%
full. We're doing backup to disk to this filesystem, and have a
number of hard links (link counts up to 90).
strace shows:
write(1, "Pass 2: Checking ", 17) = 17
write(1, "directory", 9) = 9
write(1, " structure\n", 11) = 11
mmap(NULL, 91574272,
2018 May 09
3
NAs produced by integer overflow, but only some time ...
I have problem with integer overflow that I cannot understand.
I have a character vector curr.lemmas with the following properties:
length(curr.lemmas) # 61224
length(unique(curr.lemmas)) # 2652
That vector is the input to the following function:
yules.k1 <- function(input) {
m1 <- length(input); temp <- table(table(input))
m2 <- sum("*"(temp,
2002 Jul 20
3
Vorbis 1.0 spec notes, part 1
I have undertaken a small project of writing a Vorbis decoder
completely from the spec, with the goal of catching any errors, both
typographically and algorithmically, in the spec. My "reference"
decoder is also being written in an extremely methodical style, with
practically no algorithmic optimization, such that it will be clear
that every step has been copied exactly from the spec.
2016 Jul 29
2
Weighting Schemes: Implementing Piv+ Normalization
> `ptr` is, if I inferred correctly, a `const char *`. (I'm not sure,
> because I don't know why you're incrementing it. Please push your code
> to github if you need further help so people can see the entire
> context of your changes.)
I've pushed all the changes I made so far
https://github.com/xapian/xapian/compare/master...ivmarkp:piv+?diff=split&name=piv%2B
2005 Aug 05
5
How to set the floating point precision beyond e-22?
We have a problem inverting a matrix which has the following eigenvalues:
> eigen(tcross, only.values=TRUE)
$values
[1] 7.917775e+20 2.130980e+16 7.961620e+13 8.241041e+12 2.258325e+12
[6] 3.869428e+11 6.791041e+10 2.485352e+09 9.863098e+08 9.819373e+05
[11] 3.263408e+05 2.929853e+05 2.920419e+05 2.714355e+05 8.733435e+04
[16] 8.127136e+04 6.543883e+04 5.335074e+04
2004 Apr 11
3
pcauchy precision (PR#6756)
Full_Name: Morten Welinder
Version: snapshot
OS:
Submission from: (NULL) (65.213.85.129)
Two things are wrong.
1. There is nan test outside IEEE_754.
2. The meat part of the function should really be something like...
if (!lower_tail)
x = -x;
if (fabs (x) > 1) {
double temp = atan (1 / x) / M_PI;
return (x > 0) ? R_D_Clog (temp) : R_D_val (-temp);
} else
2009 Mar 18
0
[LLVMdev] decimal to floating point conversion
aparna kotha wrote:
> Hi all:
>
> I need an instruction that can convert decimal values into floating
> point numbers.
>
> i.e. say I have a decimal number 1110794174 (== 42355FBE in hex ) and
> (== 45.3435 as a float)
>
> essentially the mantissa and exponent representation needs to be used.
>
>
> Is there any way of doing this in llvm?
I think
2010 Jun 03
0
[LLVMdev] Generating Floating point constants
On Jun 3, 2010, at 7:05 AMPDT, Stéphane Letz wrote:
> Le 3 juin 2010 à 16:00, Martin Guy a écrit :
>
>> [off list]
>>
>>> 0.8f get converted in 0x3FE99999A0000000 by LLVM
>>
>> single precision
>>
>>> http://babbage.cs.qc.edu/IEEE-754/Decimal.html gives:
>>>
>>> 0x3FE999999999999A instead and this value cannot be read back
2008 May 20
0
[LLVMdev] Making use of SSE intrinsics
On Tue, May 20, 2008 at 5:03 AM, Nicolas Capens <nicolas at capens.net> wrote:
> LoadInst *x = new LoadInst(ptr_x, "", false, basicBlock);
>
> // y = rcpps(x) // FIXME
> StoreInst *storeResult = new StoreInst(y, ptr_y, false, basicBlock);
Using an IRBuilder, something like the following (uncompiled, but it's
at least approximately right):
Value* x =