Skip to content

Usage of mul_add #475

@mo8it

Description

@mo8it

Is there a reason why mul_add is not used more often in glam? An example is

glam-rs/src/f64/dquat.rs

Lines 659 to 662 in 1ea8163

w0 * x1 + x0 * w1 + y0 * z1 - z0 * y1,
w0 * y1 - x0 * z1 + y0 * w1 + z0 * x1,
w0 * z1 + x0 * y1 - y0 * x1 + z0 * w1,
w0 * w1 - x0 * x1 - y0 * y1 - z0 * z1,

Using mul_add would improve the accuracy and performance (performance on most platforms, see docs)

Are you open to PRs that utilize mul_add?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions