gingerBill
2949e4b0c7
Fix floattidf typo
2021-07-10 22:23:22 +01:00
gingerBill
f6c1a5bf6e
Merge branch 'master' of https://github.com/odin-lang/Odin
2021-07-09 15:33:30 +01:00
gingerBill
6afc28f827
Use builtin.min and builtin.max in package slice
2021-07-09 15:33:25 +01:00
streof
114efbc57c
Fix error: Cannot assign to a procedure parameter
2021-07-09 14:03:49 +02:00
streof
2c71494ad1
Fix error: Undeclared name: p
2021-07-09 13:54:27 +02:00
gingerBill
7acbf8b7b9
Add slice.min and add slice.max
2021-07-08 11:23:07 +01:00
gingerBill
f7413ca974
Fix thread_unix.odin
2021-07-05 16:36:07 +01:00
gingerBill
9b3a0251ca
Use or_else in the core library when it makes sense
2021-07-05 16:33:01 +01:00
gingerBill
a4be1a5e4c
delete_key now returns the deleted key and deleted value (if found)
2021-07-04 18:52:47 +01:00
gingerBill
ee908c00de
Add documentation for the overview of package fmt
2021-07-04 18:21:41 +01:00
gingerBill
1c76577918
Add slice.sort_by_cmp Ordering based sorting algorithms
2021-07-03 15:16:44 +01:00
gingerBill
4285b58aaa
Add #no_bounds_check to linalg procedures
2021-07-03 14:38:41 +01:00
gingerBill
9cc366de97
Be more consistent with runtime intrinsics usage
2021-07-03 14:38:15 +01:00
gingerBill
212d294b84
Deprecate sort.slice and sort.reverse_slice
2021-07-03 14:37:55 +01:00
gingerBill
ad22eda87c
Improve linalg.transpose type determination for square matrices
2021-06-28 13:23:28 +01:00
Jeroen van Rijn
87aaa9c3f0
ZLIB: Fix edge case where initial buffer < 258 bytes.
2021-06-27 18:44:36 +02:00
Jeroen van Rijn
6836b501af
Merge branch 'master' into zlib_optimize
2021-06-27 16:50:27 +02:00
Jeroen van Rijn
d949d5a046
ZLIB: cleanup.
2021-06-27 16:48:12 +02:00
Jeroen van Rijn
064516bf0b
PNG: Inform inflate about expected output size for extra speed.
2021-06-27 13:57:12 +02:00
Jeroen van Rijn
eaf88bcc4d
PNG: Let PNG use the new compress I/O routines.
2021-06-27 13:51:52 +02:00
Jeroen van Rijn
02f9668185
ZLIB: Split up input from stream and memory into own code paths.
2021-06-27 13:19:24 +02:00
gingerBill
abda75feee
Add bufio.Lookahead_Reader
2021-06-26 23:45:45 +01:00
Jeroen van Rijn
4689a6b341
Refactor compress.Context struct.
2021-06-26 22:25:55 +02:00
Jeroen van Rijn
30a5808460
ZLIB: Moar faster.
2021-06-26 20:40:39 +02:00
Jeroen van Rijn
8ba1c9a6cd
ZLIB: Remove superfluous code.
2021-06-26 17:44:12 +02:00
Jeroen van Rijn
65b78b1aa9
So far, so good.
2021-06-26 15:11:15 +02:00
Jeroen van Rijn
c369719362
Merge branch 'master' into zlib_optimize
2021-06-26 13:40:22 +02:00
Jeroen van Rijn
40a12cca53
ZLIB: If output size is known, reserve that much.
2021-06-26 13:17:14 +02:00
gingerBill
f1cf724bd4
Add bufio.Scanner
2021-06-25 14:31:35 +01:00
Jeroen van Rijn
ab12ca69af
Merge pull request #1040 from Kelimion/zlib_optimize
...
Adler32 speedup.
2021-06-24 19:15:22 +02:00
Jeroen van Rijn
17748f18b9
Adler32 speedup.
2021-06-24 19:06:39 +02:00
gingerBill
3803bdff5f
Allow bufio.Reader and bufio.Writer to have a configurable max_consecutive_empty_(reads|writes) field
2021-06-24 15:56:58 +01:00
gingerBill
0a94a67190
Merge branch 'master' of https://github.com/odin-lang/Odin
2021-06-24 15:55:50 +01:00
gingerBill
8dcb14fbc2
Add helper procedures for strings.Reader creation
2021-06-24 15:55:42 +01:00
Jeroen van Rijn
980aa37bee
ZLIB: Another 10%+ faster.
2021-06-24 14:56:28 +02:00
gingerBill
1e9cc058a0
Update hash.crc32 to use slicing-by-8 algorithm to improve throughput by ~3.5x
2021-06-24 00:03:59 +01:00
Jeroen van Rijn
1cfe226686
ZLIB: More faster.
2021-06-23 22:18:17 +02:00
Jeroen van Rijn
342adb627d
All reads now skip stream if in memory.
2021-06-23 16:32:48 +02:00
Jeroen van Rijn
a70635d2f6
Most reads now go through buffer for zlib.
2021-06-23 16:32:48 +02:00
Jeroen van Rijn
5cb16c4cd1
All reads now go through read_slice.
2021-06-23 16:32:48 +02:00
Jeroen van Rijn
538004ba5f
Introduce read_slice, make read_u8 use it.
2021-06-23 16:32:48 +02:00
Jeroen van Rijn
8663c64e47
Refactor ZLIB structs.
2021-06-23 16:32:47 +02:00
Jeroen van Rijn
ae0b8fce44
Move bytes utils back to EXR code for the time being.
...
Also, allow PNG example to be run directly from `core:image/png` directory.
2021-06-22 16:39:00 +02:00
Jeroen van Rijn
d5e2b387fa
PNG: Fix leak if you don't ask for metadata.
2021-06-21 22:47:54 +02:00
Jeroen van Rijn
922b511a24
Merge pull request #1031 from Kelimion/zlib_fix
...
ZLIB: fix.
2021-06-21 22:16:56 +02:00
Jeroen van Rijn
9de9111082
ZLIB: fix.
2021-06-21 22:15:04 +02:00
Jeroen van Rijn
1e8c12c2a3
Comment out tracy imports.
2021-06-21 21:41:56 +02:00
Jeroen van Rijn
352494cbb4
ZLIB: Start optimization.
2021-06-21 21:05:52 +02:00
Jeroen van Rijn
e036a321a0
Replace core:image's sidecar with explicit metadata_ptr and metadata_type.
...
To unpack, use:
```odin
v: ^png.Info;
if img.metadata_ptr != nil && img.metadata_type == png.Info {
v = (^png.Info)(img.metadata_ptr);
...
}
```
2021-06-21 16:32:42 +02:00
Jeroen van Rijn
55d09251d8
Change PNG's img.sidecar to ^Info, make img.depth an int.
...
For compatibility with the upcoming OpenEXR code, img.depth is now an int.
Like OpenEXR's code, it will now also return metadata as ^Info instead of Info.
The example was updated to retrieve the metadata this way.
It regrettably does not fix : #1018 . That seems to be a codegen issue in the test runner or elsewhere.
2021-06-20 18:27:23 +02:00