![]() |
SH4ZAM! 0.1.0
Fast math library for the Sega Dreamcast's SH4 CPU
|
#include "shz_scalar.h"

Go to the source code of this file.
Namespaces | |
| namespace | shz |
Variables | |
| constexpr float | shz::fipr_max_error |
Comparisons | |
Routines for comparing and classifying floating-point values. | |
| constexpr auto | shz::fminf |
| constexpr auto | shz::fmaxf |
| constexpr auto | shz::equalf |
| constexpr auto | shz::equalf_abs |
| constexpr auto | shz::equalf_rel |
Rounding | |
Routines for rounding floats. | |
| constexpr auto | shz::floorf |
| constexpr auto | shz::ceilf |
| constexpr auto | shz::roundf |
| constexpr auto | shz::truncf |
| constexpr auto | shz::remainderf |
| constexpr auto | shz::fmodf |
| constexpr auto | shz::remquof |
Mapping | |
Routines for mapping a number to another range. | |
| constexpr auto | shz::clampf |
| constexpr auto | shz::normalizef |
| constexpr auto | shz::normalizef_fsrra |
| constexpr auto | shz::remapf |
| constexpr auto | shz::remapf_fsrra |
| constexpr auto | shz::wrapf |
| constexpr auto | shz::wrapf_fsrra |
| constexpr auto | shz::fractf |
| constexpr auto | shz::signf |
| constexpr auto | shz::saturatef |
FSRRA | |
Routines built around fast reciprocal square root. | |
| constexpr auto | shz::inv_sqrtf_fsrra |
| constexpr auto | shz::inv_sqrtf |
| constexpr auto | shz::sqrtf_fsrra |
| constexpr auto | shz::sqrtf |
| constexpr auto | shz::invf_fsrra |
| constexpr auto | shz::invf |
| constexpr auto | shz::divf_fsrra |
| constexpr auto | shz::divf |
FIPR | |
Routines built around fast 4D dot product. | |
| constexpr auto | shz::dot6f |
| constexpr auto | shz::dot8f |
| constexpr auto | shz::mag_sqr3f |
| constexpr auto | shz::mag_sqr4f |
Transcendental | |
Routines for accelerating transcendental functions. | |
| constexpr auto | shz::pow2f |
| constexpr auto | shz::powf |
| constexpr auto | shz::pow10f |
| constexpr auto | shz::log2f |
| constexpr auto | shz::logf |
| constexpr auto | shz::log10f |
| constexpr auto | shz::expf |
Miscellaneous | |
Fast versions of miscellaneous FP routines. | |
| constexpr auto | shz::fabsf |
| constexpr auto | shz::copysignf |
| constexpr auto | shz::fmaf |
| constexpr auto | shz::fdimf |
| constexpr auto | shz::hypotf |
| constexpr auto | shz::lerpf |
| constexpr auto | shz::barycentric_lerpf |
| constexpr auto | shz::quadratic_roots |
| constexpr auto | shz::randf |
| constexpr auto | shz::randf_range |
| constexpr auto | shz::stepf |
| constexpr auto | shz::smoothstepf |
| constexpr auto | shz::smoothstepf_safe |
| float | shz::cbrtf (float x) noexcept |
C++ scalar math API.
This file provides a collection of general-purpose math routines for individual scalar values in C++23.
Definition in file shz_scalar.hpp.