vassvik
f9bea5b791
Updated comment for Windows version of setjmp.
2021-08-28 13:41:14 +02:00
vassvik
8ca4286624
Add core:c/libc tests
2021-08-28 13:32:32 +02:00
vassvik
165118c641
Fix runtime crash for setjmp in Windows related to an hidden second argument not normally accessible needing to be set to 0.
2021-08-28 13:32:13 +02:00
vassvik
102d080a31
Fix core:c/libc Windows compilation errors by linking to the right libraries.
...
Fix some name typos and missing types in Windows.
Add explicit cast on MB_CUR_MAX
2021-08-28 13:27:41 +02:00
vassvik
8169cb4853
Fix missing newlines in core:math/linalg/specific.odin
2021-04-09 09:21:20 +02:00
vassvik
9cccb20f49
Add some tests to test utf16_to_utf8 and wstring_to_utf8
2020-06-13 18:04:19 +02:00
vassvik
6985d72fda
Make os.get_current_directory no longer strip the zero at the end of the resulting string, as it no longer should occur.
2020-06-13 15:20:39 +02:00
vassvik
0056cdffa7
Reworked win32.utf16_to_utf8 and win32.wstring_to_utf8 to scan for zeros from the start of the string instead of from the end.
...
This is useful to correctly convert strings from a buffer possibly containing multiple multiple substrings.
The resulting utf8 string is not null terminated, even if the backing memory might be null terminated.
2020-06-13 15:19:41 +02:00
vassvik
bbbf7168f1
Add wstring_to_utf8 to sys/win32
2020-06-12 21:06:21 +02:00
vassvik
c15ed44f82
Fix off by one bug introduced in the previous commit.
2020-06-12 18:19:46 +02:00
vassvik
dd13cf637e
Fix linalg.euler_angles_from_quaternion
2020-03-30 13:29:01 +02:00
vassvik
6d67567453
Fix linalg.matrix_mul_vector.
...
Incorrect index.
2020-02-09 18:47:02 +01:00
vassvik and GitHub
0c09cb9c12
Fix math.acos and math.asin, add f64 overloads.
2020-02-06 13:35:55 +01:00
vassvik
786c9dfe07
Add the ability to toggle release mode externally when calling build.bat
...
The following cases builds Odin with optimizations:
build.bat 1
build.bat release
Any other options, or the lack thereof, will build without optimizations.
2019-12-22 11:19:42 +01:00
vassvik and GitHub
2d97e1dee3
Fix NaN checks in core:math.classify
...
Currently the classify procedures checks for NaNs using the check `x != x`, which is always false for NaNs and therefore that case is never entered. Using `!(x == x)` will work on the other hand.
2019-12-12 19:12:12 +01:00
vassvik
04a25b11ad
Fix incorrect math.linalg.cross3 indices.
2019-11-04 17:39:26 +01:00
Morten Vassvik
e04ba7530d
Updated makefile to run demo package instead of demo.odin
2018-07-05 15:48:55 +02:00
Morten Vassvik
ea055f1465
Surrounded explicit link paths (.a and .so) and the exe path for 'odin run' in quotes, so that it works in paths containing characters that must be escaped (like spaces)
2018-07-05 15:46:11 +02:00
Morten Vassvik
3b2c867817
Replaced CLOCK_PROCESS_CPUTIME_ID with CLOCK_MONOTONIC in calls to clock_gettime and clock_getres to make timings on calling external executables accurate instead of showing them taking negligible time on linux.
2018-07-04 21:04:48 +02:00
Morten Vassvik
cb7a343caf
Fixed '_alloc_command_line_arguments()' in os_linux.odin to use the new cstrings, and made 'odin run' use the full executable path.
2018-03-01 12:58:57 +01:00
vassvik
9e0b69312b
Fixed foreign import for linux. Modified .gitignore to ignore temp files and files in shared/. Added a Makefile for linux
2017-11-10 21:31:13 +01:00