nim-stew/tests
Jacek Sieka 4e223b95a7
endians2: use copyMem instead of loop outside of vm (#95)
Looking at generated assembly, it turns out the optimizer is not smart
enough to get rid of the loop - use `copyMem` instead.

At least the compiler is smart enough to constant-propagate runtime
endian direction, resolving the review comment.

Also clarify why a minimum length is enfored - it could perhaps be
revisited, but that would leave a slightly odd API.

the `array` overloads are actually unnecessary with an optimizing
compiler - as long as it can prove the length, any extra checks will go
away on their own

also add `initCopyFrom`

* document optimizations
2022-01-03 14:53:01 +01:00
..
ranges Renames (#17) 2019-12-20 13:23:30 +01:00
all_tests.nim Add sets.keepItIf 2021-12-03 13:28:59 +02:00
nim.cfg add test for vcc compiler 2020-06-15 21:09:41 +07:00
test_arrayops.nim endians2: use copyMem instead of loop outside of vm (#95) 2022-01-03 14:53:01 +01:00
test_assign2.nim assign2: string support (#81) 2021-04-16 15:23:36 +02:00
test_base10.nim Fix issue with `uint` type. (#79) 2021-04-09 19:01:50 +03:00
test_base32.nim Copied base32, 58, 64 from libp2p 2019-12-13 15:31:19 +02:00
test_base58.nim enable styleCheck:usages (#93) 2021-12-02 16:24:02 +01:00
test_base64.nim fixes bug in base64 decoder when decoding byte sequence 2021-06-17 08:16:56 +07:00
test_bitops2.nim fix `countZeros` (#80) 2021-04-12 22:55:09 +02:00
test_bitseqs.nim Renames (#17) 2019-12-20 13:23:30 +01:00
test_byteutils.nim random helpers (#64) 2020-12-10 12:05:22 +01:00
test_ctops.nim Allow any integer type to use CT.isEqual(). (#51) 2020-07-30 20:09:49 +03:00
test_endians2.nim refactor bitops2, add endians2 2019-07-06 20:47:08 +02:00
test_faux_closures.nim Faux closures: a facility for creating closure-like non-closure procs 2020-07-07 20:29:04 +03:00
test_io2.nim Fix getCurrentDir() gcc compilation warning. (#61) 2020-11-04 15:22:38 +02:00
test_keyed_queue.nim enable styleCheck:usages (#93) 2021-12-02 16:24:02 +01:00
test_leb128.nim leb128 + bitops fixes (#66) 2020-12-15 17:07:20 +02:00
test_macros.nim Fix #62 (#75) 2021-02-10 15:10:08 +02:00
test_objects.nim Add object.isZeroMemory 2021-09-13 19:02:32 +03:00
test_ptrops.nim ptrops: add 2019-09-26 18:25:19 +03:00
test_results.nim add void tests (#84) 2021-07-07 10:12:20 +02:00
test_sequtils2.nim random helpers (#64) 2020-12-10 12:05:22 +01:00
test_sets.nim Add sets.keepItIf 2021-12-03 13:28:59 +02:00
test_sorted_set.nim enable styleCheck:usages (#93) 2021-12-02 16:24:02 +01:00
test_templateutils.nim Add templateutils.evalTemplateParamOnce 2021-12-03 13:28:54 +02:00
test_varints.nim Fix a compilation error when using a 32-bit varint parser 2020-05-12 22:59:46 +03:00
test_winacl.nim Fix inherited objects problem. (#59) 2020-10-20 17:43:38 +03:00