Skip to content

Remove the implementation section, shove it all in the header #116

@bvisness

Description

@bvisness

I know we've gone back and forth on this before (#57) but I don't think we need to have a separate implementation section in Handmade Math.

Most of the function implementations are inline, since that gives the compiler the most context for optimizations (and math needs to be optimized!). The ones that are not inline were made that way because we were worried about redundant definitions between translation units, but with link-time optimization, compilers are mostly able to prevent that from happening.

So basically we are forcing the user to set up the HANDMADE_MATH_IMPLEMENTATION part for about three functions, and for little to no benefit.

I propose that we make everything in Handmade Math inline for 2.0, and rip out HANDMADE_MATH_IMPLEMENTATION completely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions