Change the allowed error for tan(half) to match the spec.
Some checks failed
Presubmit / Build ubuntu-22.04 gl (push) Failing after 11s
Presubmit / Build ubuntu-22.04 aarch64 debug (push) Failing after 1s
Presubmit / Build ubuntu-22.04 android-aarch64 (push) Failing after 1s
Presubmit / Check code format (push) Failing after 1s
Presubmit / Build macos-latest (push) Has been cancelled
Presubmit / Build windows-11-arm (push) Has been cancelled
Presubmit / Build windows-latest (push) Has been cancelled
Presubmit / Run Tests (pocl) (push) Has been cancelled

This commit is contained in:
b-sumner 2026-05-28 10:16:39 -07:00 committed by GitHub
parent f6e8964c29
commit 864932a4a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -401,7 +401,7 @@ const Func functionList[] = {
// In derived mode it the ulp error is calculated as sin/cos.
// In non-derived mode it is the same as half_tan.
ENTRY_EXT(tan, 5.0f, 5.0f, 2.0f, 3.0f, 8192.0f, FTZ_OFF, unaryF, 8192.0f),
ENTRY_EXT(tan, 5.0f, 5.0f, 2.5f, 3.0f, 8192.0f, FTZ_OFF, unaryF, 8192.0f),
ENTRY(tanh, 5.0f, 5.0f, 2.0f, 3.0f, FTZ_OFF, unaryF),
ENTRY(tanpi, 6.0f, 6.0f, 2.0f, 3.0f, FTZ_OFF, unaryF),