Displaying 6 results from an estimated 6 matches for "unsignedfloat".
2014 Jun 18
10
[LLVMdev] [RFC] Add a simple soft-float class
I'm currently working on stripping usage of `UnsignedFloat` out of
`-block-freq`. Before I finish...
I propose adding a soft-float class to llvm/Support/ or llvm/Analysis/.
- Portable (unlike hard-floats).
- Well-defined for all platforms and safe to use in code.
- Easy to use and reason about (unlike `APFloat`).
- Uses operators....
2014 Jun 18
3
[LLVMdev] [RFC] Add a simple soft-float class
...7, at 21:59, Owen Anderson <resistor at mac.com> wrote:
>
> Hi Duncan,
>
> Some of these don’t make a lot of sense:
Sorry -- I think I was assuming too much knowledge about what I committed as
part of the BlockFrequencyInfo rewrite.
What's committed there is a class called UnsignedFloat that wraps the
following with a bunch of API:
template <class UIntT> struct UnsignedFloat {
UIntT Digits;
uint16_t Exponent;
};
There are some static asserts to restrict UIntT to either `uint32_t` or
`uint64_t`. I have tests that are out of tree. The `uint32_t` ver...
2014 Jun 18
2
[LLVMdev] [RFC] Add a simple soft-float class
...IEEE 754 actually guarantees bit-exact results in all
cases.
-- Sean Silva
>
> Sent from my iPhone
>
> > On Jun 17, 2014, at 21:34, "Duncan P. N. Exon Smith" <
> dexonsmith at apple.com> wrote:
> >
> > I'm currently working on stripping usage of `UnsignedFloat` out of
> > `-block-freq`. Before I finish...
> >
> > I propose adding a soft-float class to llvm/Support/ or llvm/Analysis/.
> >
> > - Portable (unlike hard-floats).
> > - Well-defined for all platforms and safe to use in code.
> >
> > - Easy...
2014 Jun 18
4
[LLVMdev] [RFC] Add a simple soft-float class
On Jun 18, 2014, at 1:20 PM, Duncan P. N. Exon Smith <dexonsmith at apple.com> wrote:
> I'm certainly not suggesting this would be better in general than IEEE 754.
>
> But I think it's suitable for the sorts of places we currently use
> hard-floats. I guess you (and Philip) are saying there are dragons here?
Numerical analysis is hard. Every numerics expert I have
2014 Jun 18
2
[LLVMdev] [RFC] Add a simple soft-float class
...gt;>
>>> Hi Duncan,
>>>
>>> Some of these don’t make a lot of sense:
>> Sorry -- I think I was assuming too much knowledge about what I committed as
>> part of the BlockFrequencyInfo rewrite.
>>
>> What's committed there is a class called UnsignedFloat that wraps the
>> following with a bunch of API:
>>
>> template <class UIntT> struct UnsignedFloat {
>> UIntT Digits;
>> uint16_t Exponent;
>> };
>>
>> There are some static asserts to restrict UIntT to either `uint32_t...
2014 Jun 19
4
[LLVMdev] [RFC] Add a simple soft-float class
On Jun 18, 2014, at 8:38 PM, Duncan P. N. Exon Smith <dexonsmith at apple.com> wrote:
>>
>> On 2014 Jun 18, at 13:29, Owen Anderson <resistor at mac.com> wrote:
>>
>> Numerical analysis is hard. Every numerics expert I have ever worked with considers trying to re-invent floating point a cardinal sin of numerical analysis. Just don’t do it. You will miss