dzaima
826179c83d
•internal utility for getting & setting object flags
2024-07-08 22:53:29 +03:00
dzaima
352f22f8f6
don't vectorize tiny loop
...
could theoretically maybe be beneficial for functions with a hilarious
number of arguments, but whatever. Improves perf on few-argument
functions from not unrolling/vectorizing.
2024-07-08 04:25:27 +03:00
dzaima
3e24442011
use ux in base cmp
2024-07-08 04:25:27 +03:00
dzaima
c466db24bc
Merge pull request #114 from mlochbaum/simplify
...
Miscellaneous strength reductions
2024-07-08 04:23:42 +03:00
Marshall Lochbaum
d625fc0d21
Some tests for rank, type, etc. errors in cells/rank
2024-07-07 15:52:33 -04:00
Marshall Lochbaum
201fe1e57c
Extend fold_rows to any rank, as long as stride is 1
2024-07-05 17:44:42 -04:00
Marshall Lochbaum
48d77e722f
Extend ˝ to ´ conversion (for singleton cells) to any rank
2024-07-05 17:44:42 -04:00
Marshall Lochbaum
46704defb6
Convert list⊸↑˘ to a single ↑ call, likewise ↓ and ⌽
2024-07-05 17:44:42 -04:00
Marshall Lochbaum
ce98efc525
Transform atom⊸⌽⎉k into a single high-rank ⌽ call
2024-07-05 17:44:42 -04:00
Marshall Lochbaum
3b49294145
Specialize ApdMut to reshape if there's only one append
2024-07-05 17:44:42 -04:00
Marshall Lochbaum
76a40491e9
Remove some rank restrictions from for_cells_SA
2024-07-05 17:44:42 -04:00
Marshall Lochbaum
4450d36187
Better handling for «˘ and »˘ trivial cases
2024-07-05 17:44:42 -04:00
Marshall Lochbaum
d89a6da2da
Evaluate monadic «» on a length-1 argument by reshaping the fill
2024-07-05 17:44:42 -04:00
Marshall Lochbaum
6eca24ce0a
Special code for ∾˝˘ and fold-cells of empty
2024-07-05 17:44:42 -04:00
Marshall Lochbaum
9d5caad9a9
Compute Insert identity natively
2024-07-05 17:44:42 -04:00
Marshall Lochbaum
5d4391a3fd
Combine monadic ˘ with outer ˘ or ⎉
2024-07-05 17:44:42 -04:00
Marshall Lochbaum
a19b5401f7
Fast cases for monadic rank with cell length ≤1
2024-07-05 17:44:42 -04:00
Marshall Lochbaum
8766810db8
Rank-agnostic select_cells
2024-07-04 12:04:00 -04:00
Marshall Lochbaum
ab15eaeeeb
Length-1 reverse is a no-op
2024-07-04 12:04:00 -04:00
dzaima
2ce983041c
fix shared •HashMap value list
2024-06-30 14:06:05 +03:00
dzaima
9c05b68870
ubsan option for build.bqn
2024-06-29 17:12:12 +03:00
dzaima
47b5d7d832
fix harmless copy-paste error
2024-06-29 04:38:44 +03:00
dzaima
d8a79145a6
add no-catch option to test/run.bqn
2024-06-29 02:59:44 +03:00
dzaima
0319be27ea
fix bad error message on /⁼3‿3⥊0
2024-06-29 02:59:15 +03:00
dzaima
7eb60d4ec1
correct ElType comment
2024-06-29 02:33:46 +03:00
dzaima
d885a7d965
don't leave the temporary bootstrap CBQN around
2024-06-26 06:41:27 +03:00
dzaima
79127db4a2
Merge pull request #113 from mlochbaum/fold-rows
...
Boolean row insert and scan
2024-06-26 06:41:00 +03:00
dzaima
6824b9a747
fix another unaligned load
2024-06-26 06:09:30 +03:00
dzaima
7474e51642
rename mask_of in spaced.singeli
...
otherwise confusable with maskOf in mask.singeli
2024-06-26 05:39:48 +03:00
dzaima
452065adaf
add magic incantation to make optimizer happy
2024-06-26 05:30:09 +03:00
Marshall Lochbaum
e365ecf7dc
Fix F`˘ on rank 0
2024-06-25 22:31:47 -04:00
Marshall Lochbaum
ace6105bf6
Fixes for ∧˝˘ and ∨˝˘ on long rows
2024-06-25 22:30:56 -04:00
dzaima
445da5a659
actually test for correctness
2024-06-26 04:22:03 +03:00
dzaima
8e7f19a883
make cells test work under heapverify
...
disables checking whether the result is correct, which is not important during heapverify
2024-06-26 03:46:08 +03:00
dzaima
b6bf3f2da6
suppress clang ubsan warning
...
it's a true warning of actual UB and could conceivably be taken advantage of by a compiler, but is not currently so keep things pretty for now
2024-06-26 03:36:02 +03:00
dzaima
8d5efa72f0
testing of ˝˘ & `˘
2024-06-26 03:18:23 +03:00
dzaima
024ab669d5
fix ∧˝˘0‿8⥊0 running comparison functions on length-0 inputs
2024-06-26 03:09:43 +03:00
dzaima
6c110a29ee
use loadu_* & storeu_* for unaligned loads/stores
2024-06-26 03:09:43 +03:00
dzaima
ace06e96ae
document CMP_* non-zero length requirement
2024-06-26 03:09:43 +03:00
dzaima
7e15dfe104
make loadu_*/storeu_* take void*
2024-06-26 03:03:57 +03:00
Marshall Lochbaum
e952e4ca3e
Disable F´˘ special code when cell rank isn't 1
2024-06-23 17:06:37 -04:00
Marshall Lochbaum
5758853ccb
Can't call fold-rows special code with reduction length 0
2024-06-23 10:00:44 -04:00
Marshall Lochbaum
5f1c677d48
Support ∧∨ synonyms in fold_rows_bit
2024-06-20 11:05:59 -04:00
Marshall Lochbaum
355efd1eb4
Insert-cells and scan implementation comments, and minor tweaks
2024-06-19 18:36:53 -04:00
Marshall Lochbaum
4b0f105a7f
Implement short-row num⊏˘bool (including ⊣˝˘ ⊢˝˘) with fold code
2024-06-18 14:05:16 -04:00
Marshall Lochbaum
cb1b72fbb2
Extend boolean F˝˘ special code to any ranks
2024-06-18 07:46:31 -04:00
Marshall Lochbaum
1e6c7057e8
Extend boolean F`˘ special code to any frame and cell rank
2024-06-18 07:46:31 -04:00
Marshall Lochbaum
5e3cc6de81
Refactoring, simplification, comments
2024-06-18 07:46:31 -04:00
Marshall Lochbaum
a8b036ad08
Implement ≠˝˘ and =˝˘ like ∧∨ on width<64 boolean
2024-06-18 07:46:31 -04:00
Marshall Lochbaum
f0f130c42e
Use a lookup table for evenly-spaced masks, getting division results from those
2024-06-18 07:46:31 -04:00