upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/xma_decoder/tests/ffi_cpp_smoke.cpp
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-30 23:27:55 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-30 23:27:55 -0500
commit095af0c96e9c4e745c041d4d738ea5f2ed1b7380 (patch)
tree3b4565fb45514c5de593877e4b55952794eebbef /runtime/xma_decoder/tests/ffi_cpp_smoke.cpp
parent9d231d373cc39eae98995e8591341385dc48b921 (diff)
Legacy multiplies can be plain products on any host where the zero rule cannot apply (LEONIDA_LEGACY_PLAIN, off)
The title's programs multiply with v_mul_legacy_f32 (0 x anything = 0): 5,968,915 of them in the 25,734 programs, 13.2 % with a constant against a vector register and 1.1 % against a scalar one. Off the RDNA host every one became a product, two compares, their or and a select. With the switch, what of the RDNA host's forms holds for any host's floats goes everywhere: a plain product of two factors known to be finite or with a finite constant that is not 0, and only the finite factor's zero asked where one of two is known finite. A product of a finite factor and a zero keeps the sign the product gives, as on the RDNA host, instead of +0. Off until measured. AI-assisted (Claude). Tested on RTX 4060 Ti 16 GB, driver 616.64: a new test runs each form on the card and on WARP over zeros of both signs, ones, tiny and huge values, infinities and no number, against the spelled-out form (the same but for a zero's sign), and checks that the forms by a constant and of a saturated value are shorter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/xma_decoder/tests/ffi_cpp_smoke.cpp')
0 files changed, 0 insertions, 0 deletions