Skip to content

[libc][math] Optimize fputil::cast for targets with fast half precision conversion #133517

Open
@meltq

Description

@meltq

fputil::cast lacks specialization for targets that have fast half precision to single precision conversions. This leads to the cast being emulated when it could be done using the much faster static_cast. This was observed to cause a slow down, during the performance testing of the hypotf16 function being introduced here.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions