Fixed Documentation for Common Math Library

This commit is contained in:
2025-05-26 13:40:54 -04:00
parent a6442e1945
commit e6b3d45e2e
5 changed files with 120 additions and 353 deletions

View File

@@ -21,7 +21,10 @@
#define FENNEC_LANG_INTRINSICS_H
# if defined(__has_builtin)
// bitcast is slightly more efficient for build times than using memcpy
# define FENNEC_HAS_BUILTIN_BITCAST __has_builtin(__builtin_bit_cast)
# endif
#endif // FENNEC_LANG_INTRINSICS_H

View File

@@ -19,6 +19,7 @@
#ifndef FENNEC_LANG_LIMITS_H
#define FENNEC_LANG_LIMITS_H
#include <cmath>
#include <fennec/lang/types.h>
#include <fennec/lang/type_traits.h>

View File

@@ -59,15 +59,15 @@ using schar_t = signed char;
using uchar_t = unsigned char;
///
/// \brief A short type, capable of holding signed 16-bit integer
using short_t = signed short;
/// \brief A signed short type, capable of holding signed 16-bit integer
using short_t = signed short;
///
/// \brief A short type, capable of holding an unsigned signed 16-bit integer
/// \brief An unsigned short type, capable of holding an unsigned signed 16-bit integer
using ushort_t = unsigned short;
///
/// \brief A signed integer type, size varies by implementation, but typically 32-bit
/// \brief A signed integer type, size varies by implementation, but typically 32-bit
using int_t = signed int;
///
@@ -91,11 +91,11 @@ using llong_t = signed long long;
using ullong_t = unsigned long long;
///
/// \brief A single-precision floating-point type, with a size of 32-bits
/// \brief A single-precision floating-point type, typically with a size of 32-bits
using float_t = float;
///
/// \brief A double-point type, with a size of 64-bits
/// \brief A double-point type, typically with a size of 64-bits
using double_t = double;
/// @}