Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bfloat16: faster conversion and assignment from integer types #801

Commits on Aug 11, 2020

  1. bfloat16: faster conversion and assignment from integer types

    Added a converting constructor and an assignment operator template from
    any integer type to `bfloat16_t`. Allows significantly faster conversion
    and assignment from an integer than when using `bfloat16_t(float)` or
    `operator=(float)`, by avoiding an `fpclassify(f)` call, and skipping
    the cases for denormal floats and NaNs.
    N-Dekker committed Aug 11, 2020
    Configuration menu
    Copy the full SHA
    51638e7 View commit details
    Browse the repository at this point in the history