Files
ultrasm64-2/lib/n64-libc/n64-numbers.h
a 82736c610a git subrepo clone https://gitlab.com/mpharoah/n64-libc lib/n64-libc
subrepo:
  subdir:   "lib/n64-libc"
  merged:   "70270d60"
upstream:
  origin:   "https://gitlab.com/mpharoah/n64-libc"
  branch:   "main"
  commit:   "70270d60"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "4f60dd7"
2025-06-23 20:50:28 -04:00

44 lines
984 B
C

#ifndef N64_STDLIB_N64_NUMBERS_H_
#define N64_STDLIB_N64_NUMBERS_H_
#define N64_E 2.7182818284590452
#define N64_Ef 2.71828183f
#define N64_LOG2E 1.4426950408889634
#define N64_LOG2Ef 1.44269504f
#define N64_LOG10E 0.43429448190325183
#define N64_LOG10Ef 0.434294481f
#define N64_PI 3.1415926535897932
#define N64_PIf 3.14159265f
#define N64_INV_PI 0.31830988618379067
#define N64_INV_PIf 0.318309886f
#define N64_INV_SQRTPI 0.56418958354775629
#define N64_INV_SQRTPIf 0.564189584f
#define N64_LN2 0.69314718055994531
#define N64_LN2f 0.693147181f
#define N64_LN10 2.3025850929940457
#define N64_LN10f 2.30258509f
#define N64_SQRT2 1.414213562373095
#define N64_SQRT2f 1.41421356f
#define N64_SQRT3 1.7320508075688773
#define N64_SQRT3f 1.73205081f
#define N64_INV_SQRT3 0.57735026918962576
#define N64_INV_SQRT3f 0.577350269f
#define N64_EGAMMA 0.57721566490153286
#define N64_EGAMMAf 0.577215665f
#define N64_PHI 1.6180339887498948
#define N64_PHIf 1.61803399f
#endif