Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
56b2fa5
basics
MaxGraey Feb 16, 2019
73eaa30
minor refactors
MaxGraey Feb 16, 2019
557f337
more
MaxGraey Feb 16, 2019
7a8e935
more comments
MaxGraey Feb 16, 2019
26aa6b5
add tanf
MaxGraey Feb 16, 2019
636b8e9
more comments
MaxGraey Feb 16, 2019
38fdaad
fix lagre arg reduction for neg args
MaxGraey Feb 16, 2019
3f63847
switch to metallic implementaion for rempio2f and arg reduction
MaxGraey Feb 16, 2019
427af92
cleanups
MaxGraey Feb 16, 2019
8e17a23
add sincosf
MaxGraey Feb 16, 2019
3b1b247
remove non-finite check from rempio2f because we check this already
MaxGraey Feb 17, 2019
efca813
use builtin nearest for rint
MaxGraey Feb 17, 2019
da97160
refactor segment
MaxGraey Feb 17, 2019
edd9217
skip fast paths for shrink level >= 1
MaxGraey Feb 17, 2019
80276e0
add FORCE_EVAL with volatile emulation
MaxGraey Feb 17, 2019
28dbfa8
more tests
MaxGraey Feb 17, 2019
f5d92b9
finish ubc tests
MaxGraey Feb 18, 2019
a2cde5c
minor improvments for sinf
MaxGraey Feb 18, 2019
6b141ee
add durty tests for large arguments
MaxGraey Feb 18, 2019
bd72840
cleanups
MaxGraey Feb 18, 2019
8ae4e55
rebuild tests
MaxGraey Feb 18, 2019
099ce6d
refactor large args tests
MaxGraey Feb 18, 2019
c7b57eb
add tests for negative large arguments
MaxGraey Feb 18, 2019
1c9d50e
move sincos to Mathf add it to definitions
MaxGraey Feb 19, 2019
149e186
fix comment
MaxGraey Feb 19, 2019
c3f21aa
fix indents
MaxGraey Feb 19, 2019
8953900
mark sincos_s32/sincos_c32 as global
MaxGraey Feb 20, 2019
e4e7a65
minor improvment
MaxGraey Feb 20, 2019
978724b
Merge branch 'master' into mathf-sin-cos-tan
MaxGraey Feb 20, 2019
6056f3c
rebuild
MaxGraey Feb 20, 2019
95685a8
remove FORCE_EVAL. add @lazy attributes
MaxGraey Feb 21, 2019
7292f07
cleanups
MaxGraey Feb 21, 2019
abeffcb
Merge branch 'master' into mathf-sin-cos-tan
MaxGraey Mar 1, 2019
6f24baf
rebuild
MaxGraey Mar 1, 2019
b5f5aff
move modular table out from func
MaxGraey Mar 1, 2019
a439876
refactor pio2_large_quot
MaxGraey Mar 2, 2019
5d9d849
more comments
MaxGraey Mar 2, 2019
135c994
prettify comments
MaxGraey Mar 2, 2019
b0b7098
move sincos results to Mathf namespace
MaxGraey Mar 5, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions std/assembly/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1204,12 +1204,18 @@ interface IMath<T> {
}

interface INativeMath<T> extends IMath<T> {
/** Contains sin value produced after Math/Mathf.sincos */
sincos_sin: T;
/** Contains cos value produced after Math/Mathf.sincos */
sincos_cos: T;
/** Seeds the random number generator. */
seedRandom(value: i64): void;
/** Returns the floating-point remainder of `x / y` (rounded towards zero). */
mod(x: T, y: T): T;
/** Returns the floating-point remainder of `x / y` (rounded to nearest). */
rem(x: T, y: T): T;
/** Returns sin and cos simultaneously for same angle. Results stored to `sincos_s32/64` and `sincos_c32/64` globals */
sincos(x: T): void;
}

/** Double precision math imported from JavaScript. */
Expand Down
Loading