Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ppc64le - Fix deviation in floating point values caused by FMA #6

Merged
merged 1 commit into from
Nov 21, 2022

Conversation

Philiphil
Copy link
Owner

This was exposed while testing CockroachDB.
Following tests from pkg/sql/opt/exec/execbuilder fail due to floating point precision differences caused by FMA:

  • TestExecBuild/local/geospatial
  • TestExecBuild/local-vec-off/geospatial
  • TestExecBuild/local-spec-planning/geospatial
  • TestExecBuild/fakedist/geospatial
  • TestExecBuild/fakedist-vec-off/geospatial
  • TestExecBuild/fakedist-metadata/geospatial
  • TestExecBuild/fakedist-disk/geospatial
  • TestExecBuild/fakedist-spec-planning/geospatial

With explicit casts in this patch, these failures are resolved.

References:
https://go.dev/ref/spec#Floating_point_operators
golang/go#53297
golang/go#48145
disintegration/gift#20 (comment)

This was exposed while testing CockroachDB.
Following tests from pkg/sql/opt/exec/execbuilder fail due to floating point precision differences caused by FMA:
- TestExecBuild/local/geospatial
- TestExecBuild/local-vec-off/geospatial
- TestExecBuild/local-spec-planning/geospatial
- TestExecBuild/fakedist/geospatial
- TestExecBuild/fakedist-vec-off/geospatial
- TestExecBuild/fakedist-metadata/geospatial
- TestExecBuild/fakedist-disk/geospatial
- TestExecBuild/fakedist-spec-planning/geospatial

With explicit casts in this patch, these failures are resolved.

References:
https://go.dev/ref/spec#Floating_point_operators
golang/go#53297
golang/go#48145
disintegration/gift#20 (comment)
Philiphil pushed a commit that referenced this pull request Nov 18, 2022
implementation to all the shapes.

Includes changes to the NewCircle API
parameters.
Philiphil pushed a commit that referenced this pull request Nov 18, 2022
implementation to all the shapes.

Includes changes to the NewCircle API
parameters.
@Philiphil Philiphil merged commit e40f38f into Philiphil:master Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants