gingerBill
fb01dfe048
Improve docs_writer.cpp
2022-01-17 22:17:07 +00:00
gingerBill
c85ac955f7
Simplify docs to hide the copyright
2022-01-17 19:00:47 +00:00
Jesse Stiller
d4ea02a877
Extraneous parameters in hlsl/glsl.saturate removed
...
This is a breaking change to anyone who used glsl/hlsl.saturate functions prior, but the y and z parameters never were used and do not conform to how the saturate function works in HLSL: https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-saturate
Note however GLSL does not contain a saturate function, but removing it does not accomplish anything good IMO.
2022-01-17 12:19:06 +10:00
gingerBill
f0529535e0
ODIN_ENDIAN changed to an enum constant; ODIN_ENUM_STRING is the new string version of the old constant
2022-01-15 17:53:18 +00:00
gingerBill
80bd1eb615
Fix polymorphic matrix element with a minor hack
2022-01-10 12:19:49 +00:00
gingerBill
af612bc7e9
Update matrix types to be the native Odin matrix types
2022-01-10 11:32:27 +00:00
gingerBill
f15bb0b424
Fix quaternion casting
2022-01-03 19:45:27 +00:00
gingerBill
0d7cb02386
Fix conversion from float to quaternion
2021-12-31 23:20:14 +00:00
gilles
4ebdb6740e
fix math.prod
...
accumulator was not initialized to one
2021-12-16 18:55:51 +01:00
Jeroen van Rijn
938744b276
[math/big] Rename internal_int_shl_digit to _private_int_shl_leg.
...
Same for the SHR variant. These are pure implementation details to shift by a leg/word at a time.
Prevent accidental usage.
2021-12-11 15:22:24 +01:00
gingerBill
84b84d9f7d
Fix rat_set_f64
2021-12-11 12:47:05 +00:00
Jeroen van Rijn
c771ea9794
Merge pull request #1358 from Kelimion/big_math_fix
...
[math/big] Return 0, .Integer_Underflow if T = unsigned and bigint is negative.
2021-12-09 16:41:37 +01:00
gingerBill
94bad4d786
Merge branch 'master' of https://github.com/odin-lang/Odin
2021-12-09 15:36:12 +00:00
gingerBill
1e17d5d86f
Add utility procedures to get low values
2021-12-09 15:34:35 +00:00
gingerBill
1e9b30666f
Minor style change
2021-12-09 15:34:17 +00:00
Jeroen van Rijn
b2b79b86f0
[math/big] Return 0, .Integer_Underflow if trying to get a negative number to an unsigned int.
2021-12-09 16:31:54 +01:00
Jeroen van Rijn
c94098c2ab
[math/big] Fix int_set and int_get.
2021-12-09 16:14:04 +01:00
gingerBill
9d4fe90356
Fix bugs in big.Rat caused by typos
2021-12-07 17:35:41 +00:00
gingerBill
f40f12d480
Minor cleanup to math constants
2021-11-21 14:06:32 +00:00
Gus
56d2bbc5b9
Added back ln for js
2021-11-20 20:03:54 +11:00
gingerBill
1b28226a67
Add math.lgamma based off FreeBSD's /usr/src/lib/msun/src/e_lgamma_r.c
2021-11-16 15:32:32 +00:00
gingerBill
2b546a598c
Add math.signbit; Add math.gamma based on http://netlib.sandia.gov/cephes/cprob/gamma.c
2021-11-16 15:23:19 +00:00
gingerBill
b530ca9a5e
Add math.nextafter
2021-11-16 15:12:01 +00:00
gingerBill
d232796149
Fix typo
2021-11-16 15:09:47 +00:00
gingerBill
e721f26a76
Implement ln based off FreeBSD's /usr/src/lib/msun/src/e_log.c
2021-11-16 15:05:04 +00:00
gingerBill
91408cb21f
Implement atanh based on FreeBSD's /usr/src/lib/msun/src/e_atanh.c
2021-11-16 14:58:59 +00:00
gingerBill
eb8b0d7a03
Add log1p, erf, erfc, ilogb logb (implemented based of FreeBSD's)
2021-11-16 14:54:57 +00:00
gingerBill
880af47ae7
Rename math_js.odin to math_basic_js.odin
2021-11-16 14:26:04 +00:00
gingerBill
91949b0992
Implement math.sqrt with intrinsics.sqrt
2021-11-16 14:11:20 +00:00
gingerBill
6a101e69a2
Implement ldexp and frexp in native Odin
2021-11-16 14:04:49 +00:00
gingerBill
b9701340b8
Add linalg.matrix4_look_at_from_fru
2021-11-13 19:15:37 +00:00
gingerBill
c63f4d68c8
Add math_js.odin specific calls (that just wrap the f64 procedures)
2021-11-07 20:06:05 +00:00
gingerBill
518460af66
Begin work in semi-standardized js_wasm32 target
2021-11-07 19:56:01 +00:00
gingerBill
d8e34bd9b7
Add core:math/linalg/hlsl
2021-11-04 17:08:59 +00:00
gingerBill
d551144841
Add inverse for dmatN types
2021-11-04 16:09:19 +00:00
gingerBill
84540d7aa2
Add smoothstep
2021-11-04 15:57:27 +00:00
gingerBill
95f36d4fa5
Minor reorganization
2021-11-04 14:54:55 +00:00
gingerBill
3accf4048e
Add f64 variants of all types and procedures
2021-11-04 14:52:03 +00:00
gingerBill
eb05879148
Add more comments
2021-11-04 14:25:34 +00:00
gingerBill
a882118c56
Add comments
2021-11-04 14:20:47 +00:00
gingerBill
57d15ac6e7
Remove unneeded suffixes
2021-11-04 14:11:34 +00:00
gingerBill
e3cfdf6982
Remove build tag
2021-11-04 14:11:04 +00:00
gingerBill
017fe10762
core:math/linalg/glsl - GLSL-like mathematics types and operations
2021-11-04 14:09:12 +00:00
gingerBill
7bb7a741c6
Make math procedure contextless; Add asinh, acosh, atanh
2021-11-04 14:07:05 +00:00
gingerBill
87952fdb8e
big.Rat (Experimental)
2021-10-29 12:40:54 +01:00
Yawning Angel
ee724f183a
core:math/bits: Improve add/sub/mul_u64
...
* `add_u32`/`add_u64`/`add_uint` are now constant time
* `sub_u32`/`sub_u64`/`sub_uint` are now constant time
* `mul_u64` now uses `u128`
2021-10-27 12:37:35 +00:00
gingerBill
9fae575531
Keep -vet happy
2021-09-29 14:49:25 +01:00
gingerBill
de00c7c9a8
Add bits.log2
2021-09-15 15:18:20 +01:00
gingerBill
bff66ff600
Remove unnecessary operations
2021-09-08 19:07:25 +01:00
gingerBill
5006674a9b
Correct math/big
2021-09-08 13:14:13 +01:00