Jeroen van Rijn
d57e1be89f
bigint: Improve add.
2021-08-11 20:59:50 +02:00
Jeroen van Rijn
18dda6ff9d
Start of core:math/bigint
...
We have:
- `init` to create a new `Int`
- `init(from_integer)` to create a new `Int` and set it to `from_integer`.
- `set(Int, from_integer)` to set an `Int` to `from_integer`
- `add(dest, a, b)` to add `a` and `b` into `dest`.
- `sub(dest, a, b)` to subtract `b` from `a` and put the result in `dest`.
And a few helper functions, like:
- `is_zero`, `is_negative`, ...
- `grow`, `shrink`, `clear`, `zero`
2021-08-11 20:59:50 +02:00
gingerBill
4285b58aaa
Add #no_bounds_check to linalg procedures
2021-07-03 14:38:41 +01:00
gingerBill
ad22eda87c
Improve linalg.transpose type determination for square matrices
2021-06-28 13:23:28 +01:00
gingerBill
3e7aabe6d8
Change uses for parapoly records to use $ always
2021-06-14 11:43:35 +01:00
gingerBill
f41150f8e9
Fix transposing
2021-06-04 15:10:53 +01:00
gingerBill
21adad4e09
Fix typo
2021-06-04 15:09:55 +01:00
gingerBill
b9888f8f68
Fix linalg.transpose
2021-06-03 10:05:05 +01:00
Joakim Hentula
6465fb8ec7
Fix for value rather than type used for intrinsics
2021-05-31 13:21:13 +01:00
Jeroen van Rijn
d7dba495fd
Last of the Endian float in math.odin.
2021-05-29 18:27:43 +02:00
Jeroen van Rijn
c05f6b4a31
Even more Endian maths.
2021-05-29 17:52:47 +02:00
Jeroen van Rijn
a0a578c72a
More Endian version of maths procs.
2021-05-29 17:21:54 +02:00
Jeroen van Rijn
55fc2c00c0
Add Endian versions of math routines.
2021-05-29 16:22:47 +02:00
gingerBill
26ce40c188
Remove @(static) for global variables
2021-05-19 11:51:48 +01:00
gingerBill
9ed826f6fb
Remove import "core:runtime" from core:math/bits
2021-04-25 21:51:33 +01:00
gingerBill
2691c394e0
Add intrinsics.count_zeros
2021-04-25 20:50:25 +01:00
gingerBill
7086b49ae6
Rename intrinsics to count_trailing_zeros and count_leading_zeros
2021-04-25 20:26:11 +01:00
gingerBill
72aa0e6e38
Replace many foreign llvm calls with intrinsics
2021-04-25 20:22:26 +01:00
vassvik
8169cb4853
Fix missing newlines in core:math/linalg/specific.odin
2021-04-09 09:21:20 +02:00
gingerBill
bcda9ddee7
Add core:math/fixed
2021-04-01 17:09:34 +01:00
gingerBill
0fc04a939e
Add f16 support to core:math/linalg
2021-04-01 11:12:40 +01:00
gingerBill
63bb26c0e0
Add f16 specific procedures to core:math
2021-04-01 10:52:46 +01:00
gingerBill
43ac6ca8f4
Add linalg.matrix_cast
2021-03-26 16:24:56 +00:00
gingerBill
62d2656f69
Add linalg.matrix_cast
2021-03-26 14:33:46 +00:00
Jeroen van Rijn
d80670fe0c
Fix typo in cubic().
2021-03-16 16:34:59 +01:00
gingerBill
04e0cacd30
Update package core:math/linalg to support matrix3 euler angle operations
2021-03-16 12:14:54 +00:00
gingerBill
17eb0ce525
Minor update to math/linalg
2021-03-03 22:18:18 +00:00
gingerBill
619a977856
Improve math/linalg to support both f32 and f64 basic procedures for the specific*.odin files
2021-03-03 16:44:41 +00:00
gingerBill
b727b6438b
Minimize unneeded casts
2021-03-03 14:31:17 +00:00
gingerBill
731e6ca3a6
Merge branch 'master' of https://github.com/odin-lang/Odin
2021-02-23 20:40:09 +00:00
gingerBill
79eb46bce3
Replace inline uses in the rest of core with #force_inline
2021-02-23 20:39:59 +00:00
WalterPlinge
0e9dee62bf
Update extended.odin
2021-02-23 20:10:43 +00:00
gingerBill
28ed310f31
Remove "pure" and "pure_none" calling conventions
2021-02-23 13:10:23 +00:00
gingerBill
6ae619c0a6
Add to package math/bits bitfield_extract and bitfield_insert
2021-02-19 00:04:48 +00:00
Oskar Nordquist
60b9ef1f5d
Fix math.factorial()
2020-12-13 02:36:29 +01:00
gingerBill
f0683c9102
Merge branch 'master' into parser-experiments
2020-12-06 00:49:48 +00:00
gingerBill
6ee4f51670
Add new math procedure: inf_f32 inf_f64 nan_f32 nan_f64
2020-11-11 11:42:21 +00:00
gingerBill
54fbdabc38
Add experimental -insert-semicolon functionality to tokenizer and parser
2020-11-01 15:10:06 +00:00
gingerBill
fc4fdd588e
Remove usage of do in core library
2020-09-23 17:17:14 +01:00
gingerBill
77829af9de
Fix delete("") on -llvm-api; Fix linalg stuff
2020-09-11 13:46:52 +01:00
gingerBill
97846d8390
Clean up quaternion_from_matrix(3|4) code
2020-09-10 21:19:59 +01:00
gingerBill
079b887313
Make procedure names consistent
2020-09-10 17:32:18 +01:00
gingerBill
8f38b06c60
Add sanity conversion for rand.norm_float64
2020-09-10 15:42:07 +01:00
gingerBill
993fc577b2
Clarify euler angle procedures better
2020-09-10 15:33:50 +01:00
gingerBill
824491f410
Clean up Euler Angle code for math/linalg
2020-09-10 15:23:08 +01:00
gingerBill
c1149dbdee
Update math and math/linalg; add "pure_none" calling convention
2020-09-10 15:00:19 +01:00
gingerBill
2dfa3a5df7
Fix typo
2020-09-07 14:40:36 +01:00
gingerBill
1064622ff7
Improve math/rand functionality
2020-09-07 14:38:01 +01:00
Michael Kutowski
7b0ba76915
Update specific.odin
2020-08-29 22:33:24 +02:00
Michael Kutowski
12895de9ac
fix hsl math.mod to usual hsl conversion
2020-08-29 21:49:49 +02:00