Skip to content

mul_add documentation is inaccurate #49842

Closed
@vks

Description

@vks

According to the documentation of mul_add:

This produces a more accurate result with better performance than a separate multiplication operation followed by an add.

This seems not to be true in general. On my machine, a.mul_add(b, c) is slower than a * b + c when compiling without target-cpu=native.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions