Skip to content

Describe modf in terms of trunc and subtraction - #3635

Merged
dneto0 merged 1 commit into
gpuweb:mainfrom
dneto0:issue-3630
Nov 25, 2022
Merged

dneto0 merged 1 commit into
gpuweb:mainfrom
dneto0:issue-3630

Conversation

@dneto0

@dneto0 dneto0 commented Nov 24, 2022

Copy link
Copy Markdown
Contributor

Both trunc and subtraction are "correctly rounded".

When the argument is infinity, IEEE math demands a specific result: the whole part is the same infinity, and the fractional part is zero. Treatment of infinities and NaNs is already to be addressed as part of #3230

Fixes: #3630

Both trunc and subtraction are "correctly rounded".

When the argument is infinity, IEEE math demands a specific result:
the whole part is the same infinity, and the fractional part is zero.
Treatment of infinities and NaNs is already to be addressed as part of gpuweb#3230

Fixes: gpuweb#3630
@dneto0 dneto0 added wgsl WebGPU Shading Language Issues copyediting Pure editorial stuff (copyediting, *.bs file syntax, etc.) labels Nov 24, 2022
@dneto0 dneto0 added this to the V1.0 milestone Nov 24, 2022
@dneto0 dneto0 changed the title Describe modf in terms of truncate and subtraction Describe modf in terms of trunc and subtraction Nov 24, 2022
@github-actions

github-actions Bot commented Nov 24, 2022 •

Copy link
Copy Markdown
Contributor

Previews, as seen when this build job started (987d852):
WebGPU webgpu.idl | Explainer | Correspondence Reference
WGSL grammar.js | wgsl.lalr.txt

@dneto0
dneto0 merged commit dd06585 into gpuweb:main Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copyediting Pure editorial stuff (copyediting, *.bs file syntax, etc.) wgsl WebGPU Shading Language Issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wgsl: describe modf in terms of truncate

3 participants