Bug 200636

Summary: [WHLSL] fmod in the standard library is broken on negative inputs
Product: WebKit Reporter: Robin Morisset <rmorisset>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Robin Morisset
Reported 2019-08-12 11:37:11 PDT
e.g. fmod(-42.0, -3.0) should return -1.0, not 1.0. I don't think it should return 0.0 for fmod(42, -3) or fmod(-42, 3) either. I suspect it could just return the fmod of Metal, but I am still investigating.
Attachments
Myles C. Maxfield
Comment 1 2020-05-05 00:42:41 PDT
WHLSL is no longer relevant.
Note You need to log in before you can comment on or make changes to this bug.