Commit graph

49 commits

Author SHA1 Message Date
mykola2312
a07e2d6f01 update ifndef-define statements in every header with CUTIL_ prefix that already included files with matching defines will not collide 2022-05-17 02:14:28 +03:00
mykola2312
f744ec0f35 make cutil work without stdlib via CMake option NOSTDLIB=ON, using internal implementations 2022-05-17 01:57:18 +03:00
mykola2312
c11dd9aede update README.md 2022-05-15 23:14:41 +03:00
mykola2312
6864acb832 implement va_list - variable arguments 2022-05-15 23:13:42 +03:00
mykola2312
9eafc640fd fix _cu_memmove in assembly, now it's byte-by-byte moving 2022-05-15 22:23:48 +03:00
mykola2312
4dc9fe3a55 try assembly memmove, doesn't work because granularity of move 2022-05-15 21:19:38 +03:00
mykola2312
bdc6bd6b20 define and replace integer types independent from stdlib 2022-05-11 23:44:32 +03:00
mykola2312
6d2d8d0a0d implement _cu_memmove - memory moving without buffer 2022-05-11 20:44:24 +03:00
mykola2312
eb6f5cb7c5 fix cu_memtest so it will byte-align test if size less than word 2022-05-11 19:56:20 +03:00
mykola2312
9629e3630a update README.md 2022-05-11 19:54:00 +03:00
mykola2312
3229779aff implement x86-64 assembly-optimized functions _cu_memcpy, _cu_memset, cu_memzero 2022-05-11 19:51:24 +03:00
mykola2312
f2a1dddbca implement cu_memtest in x86-64 assembly in more efficient way that C does 2022-05-11 19:18:45 +03:00
mykola2312
0b610097b4 add achitecture-dependent assembly to build, implement hardware byte-swapping 2022-05-11 18:48:46 +03:00
mykola2312
579f9281e0 update README.md with new functionality description 2022-05-03 09:10:58 +03:00
mykola2312
e59744e300 implement zero-terminated arrays, which are terminated by zeroed item (cu_memtest with item size) 2022-05-03 09:07:00 +03:00
mykola2312
0067951bdf implement cu_memtest for cheacking if memory is zeroed 2022-05-03 08:56:47 +03:00
mykola2312
3c0de35e2c test struct & value functionality, implement struct_size 2022-05-03 08:18:27 +03:00
mykola2312
1619e3234e fix value_offset 2022-05-03 07:59:34 +03:00
mykola2312
900341c5b7 struct & value 5 2022-05-03 07:55:36 +03:00
mykola2312
9fb3337d59 change value_get name 2022-05-03 07:46:41 +03:00
mykola2312
723ceb272d value 5: implement value_size, value_array_size, value_offset and value_get 2022-05-03 07:45:35 +03:00
mykola2312
99daecee2e struct & value 4 2022-05-03 07:38:26 +03:00
mykola2312
f2b04e7514 struct 3 2022-05-03 07:18:21 +03:00
mykola2312
de923a2a0d struct 2 2022-05-03 03:29:55 +03:00
mykola2312
a02e91bfa3 define macros for struct members declaration 2022-05-03 02:55:38 +03:00
mykola2312
1418709bdf struct 1 2022-05-03 01:13:03 +03:00
mykola2312
c3b659dce8 implement functions to convert from host byte-order to little-endian or big-endian, convert to network order which defined as CU_NETWORK_ORDER. 2022-04-29 08:07:37 +03:00
mykola2312
5432d8f889 redefine architecture list as macro so therefore it can be used in preprocessor expressions. implement hardware byte-swapping, detect compile-time hardware capabilties to do that. 2022-04-29 06:36:01 +03:00
mykola2312
20e7489866 optimize software byte-swapping 2022-04-29 05:51:17 +03:00
mykola2312
30f3fd04df implement software endianness byte-swapping 2022-04-29 04:48:48 +03:00
mykola2312
4753e013aa endian 2 2022-04-29 04:28:20 +03:00
mykola2312
26ecd558f7 remove deprecated endianness 2022-04-29 04:25:55 +03:00
mykola2312
50c17f33d9 implement endiannes run-time detection 2022-04-28 18:26:15 +03:00
mykola2312
deec226221 implement compile-time architecture detection, bus width detection 2022-04-28 17:34:07 +03:00
mykola2312
d3aaf3c89f cutil_arch add ARMv7E-M 2022-04-20 17:15:04 +03:00
mykola2312
5b31769141 cutil_init, cutil_exit, cutil_arch 2022-04-20 16:22:10 +03:00
mykola2312
ad1effd40e Add README.md 2022-04-20 16:00:04 +03:00
mykola2312
e69b5fba50 bitmap_test 2022-04-20 15:52:31 +03:00
mykola2312
0820443a7d bitmap 2: bit_set, bit_get, bit_test, bit_sub2_up, bitmap, bitmap_set, bitmap_get 2022-04-20 15:50:29 +03:00
mykola2312
a3da87ad75 bitmap 1 2022-04-19 23:39:51 +03:00
mykola2312
ab3ae686bb array_insert, array_remove 2022-04-18 21:11:09 +03:00
mykola2312
bda7315a22 array 5 + tests 2022-04-17 21:31:08 +03:00
mykola2312
311f00b374 cutil redirect std functions to cu_ holders, array 4 2022-04-17 21:04:53 +03:00
mykola2312
a19e5460c4 array 3 2022-04-17 20:45:42 +03:00
mykola2312
6089de7e4b array 2 2022-04-17 20:43:47 +03:00
mykola2312
688a343a92 array 2022-04-17 16:19:49 +03:00
mykola2312
c2aa8c3619 spacings 2022-04-16 17:01:33 +03:00
mykola2312
a2bfa2361d list_at 2022-04-16 16:44:10 +03:00
mykola2312
21132d5c2c initial commit 2022-04-16 16:22:31 +03:00