lilypond-auto
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] #5725 Use x86


From: Auto mailings of changes to Lily Issues via Testlilyissues-auto
Subject: [Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] #5725 Use x86 SSE2 for avoiding x86 FPU precision issues
Date: Sun, 02 Feb 2020 12:41:33 -0000

Issue 5725: Use x86 SSE2 for avoiding x86 FPU precision issues master staging
author  Masamichi Hosoda <address@hidden>   
    Sun, 2 Feb 2020 10:42:58 +0000 (11:42 +0100)
committer   David Kastrup <address@hidden>   
    Sun, 2 Feb 2020 10:44:24 +0000 (11:44 +0100)
commit  bea0cb75006fae7ebd7123829456772d8a03fa70

[issues:#5725] Use x86 SSE2 for avoiding x86 FPU precision issues

Status: Fixed
Labels: Fixed_2_21_0
Created: Sun Feb 02, 2020 10:29 AM UTC by Masamichi Hosoda
Last Updated: Sun Feb 02, 2020 11:06 AM UTC
Owner: Masamichi Hosoda

Use x86 SSE2 for avoiding x86 FPU precision issues

Remove x87 FPU precision setting

This commit removes x87 FPU precision setting that is no longer needed
because the x87 FPU is not used by the previous commit.

Use x86 SSE2 for avoiding x86 FPU precision issues

In x86 (32 bit) environments,
floating point calculation caused some issues due to precision conversion.
The x87 FPU registers have 80 bit precision,
while floating point variables in the memory have 64 bit precision.
On Linux x86 environment,
we avoided the issues by manipulating the x87 FPU control word
to limit the precision.
However, in other x86 environment,
the issues such as Issue 4943 and Issue 4975 were raised.

This commit makes LilyPond for x86 platforms uses SSE2 instead of x87 FPU.
The SSE2 registers have the same 64 bit precision
as the variables in the memory.
It can be expected that the issues will not raise
since there is no precision conversion.
However, external libraries may use the x87 FPU.
So issues may remain with floating point calculation
inside such libraries.

On the other hand, in x86_64 (64 bit) environments,
the issues are not raised because the x87 FPU is not used originally.
This commit does not make any changes for x86_64 environments.

http://codereview.appspot.com/565600045


Sent from sourceforge.net because address@hidden is subscribed to https://sourceforge.net/p/testlilyissues/issues/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/testlilyissues/admin/issues/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.

_______________________________________________
Testlilyissues-auto mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto

reply via email to

[Prev in Thread] Current Thread [Next in Thread]