Why don't we switch to C like floating pointed arithmetic instead of automatic expansion to reals?
Ilya Yaroshenko via Digitalmars-d
digitalmars-d at puremagic.com
Sat Aug 6 03:07:12 PDT 2016
On Saturday, 6 August 2016 at 10:02:25 UTC, Iain Buclaw wrote:
> On 6 August 2016 at 11:48, Ilya Yaroshenko via Digitalmars-d
> <digitalmars-d at puremagic.com> wrote:
>> On Saturday, 6 August 2016 at 09:35:32 UTC, Walter Bright
>> wrote:
>>> [...]
>>
>>
>> OK, then we need a third pragma,`pragma(ieeeRound)`. But
>> `pragma(fusedMath)`
>> and `pragma(fastMath)` should be presented too.
>>
>>> [...]
>>
>>
>> It allows a compiler to replace two arithmetic operations with
>> single composed one, see AVX2 (FMA3 for intel and FMA4 for
>> AMD) instruction set.
>
> No pragmas tied to a specific architecture should be allowed in
> the language spec, please.
Then probably Mir will drop all compilers, but LDC
LLVM is tied for real world, so we can tied D for real world too.
If a compiler can not implement optimization pragma, then this
pragma can be just ignored by the compiler.
More information about the Digitalmars-d
mailing list