summaryrefslogtreecommitdiff
path: root/zap
AgeCommit message (Collapse)Author
2023-03-25cp: Return structure with the one-after-the-end addresses of both dest and ↵Gabriel Jensen
src; Remove all mathematical functions except divmod (and C++ variants); Combine quotrem and frac into new type 'pair'; Use new versioning: api.ext.patch; Remove compatver (and add extver);
2023-03-19Return the one-after-the-emd address from cp; (amd64) Fix wrong registers ↵Gabriel Jensen
being used in cp and the function not working at all; Add compatibility version constant; Add compile-time string functions for C++; Check type in compile-time functions; Add more type checking constants for C++;
2023-03-18Enable debug symbols;Gabriel Jensen
2023-03-17Add integer-string format functions; Move string-related facilities to new ↵Gabriel Jensen
module 'str'; Update code style; Add aliases for C++; Add C++ metaprogramming classes; Fix C/C++ standard detections; Add more attributes to functions; Implement mathematical functions in C++; Implement mathematical functions using basic arithmetic types, including (depending on the function) signed, unsigned, and floating-point; Add fraction structure;
2023-02-26Add functions for null-terminated strings: streq (for equality checking), ↵Gabriel Jensen
strlen (for getting the length); Add type limit macros; Rename bytesz to bytelen; Remove byte type; Remove bool type (and related macros); Remove chr8, chr01, and chr02 types; Update nullptr definition; Update nopos definition;
2023-01-31Fix segmentation fault in fill caused by usage of wrong register (amd64);Gabriel Jensen
2023-01-30cp: Use vmovdqu instead of vmovups (amd64);Gabriel Jensen
2023-01-29Optimise fill (amd64); Optimise cp (amd64);Gabriel Jensen
2023-01-28Update assembly comments; Implement fill in AMD64; Remove signal support; ↵Gabriel Jensen
Fix exp;
2023-01-27Implement exp; Fix bad directory name; Fix makefile;Gabriel Jensen
2023-01-27Implement cp and abs in AMD64; Fix indentations; Implement cp and abs in ARM64;Gabriel Jensen
2023-01-22Add install target to makefile; Fix csys usage;Gabriel Jensen
2023-01-22Rewrite project (the following is the current feature set); Add ↵Gabriel Jensen
minimum-width unsigned integer types: i8, i01, i02, i04; Add minimum-width signed integer types: i8s, i01s, i02s, i04s; Add type for object sizes: sz; Add type for pointer values: ptr; Add function for logical values: bool; Add logical constants: false, true; Add function for memory sequence copying: cp; Add function for memory sequence filling: fill; Add types for storing quotients and remainders: quotrem8, quotrem01, quotrem02, quotrem04; Add function for division and modulo: divmod; Add function for getting absolute values: abs; Add function for memory sequence comparison: eq; Add function for radication: root (unimplemented); Add function for exponentiation: exp (unimplemented); Add function for bytes value searching: srch: Add constant for indicating invalid positions: nopos; Add constant for indicating null pointers: nullptr; Add types for UTF-8, UTF-16,a and UTF-32 values: chr8, chr01, chr02; Add function for UTF-8 encoding: utf8enc; Add function for UTF-8 decoding: utf8dec; Add function for UTF-32 to UTF-8 length calculations: utf8enclen; Add function for UTF-8 to UTF-32 length calculations: utf8declen; Add function for Windows-1252 encoding: win1252enc; Add function for Windows-1252 decoding: win1252dec; Add function for logarithming: log (unimplemented);
2022-11-23mem: Implement; docs: Add example definition to mem;Gabriel Jensen
2022-11-23Add new module mth; Add mathematical functions: abs, div, exp, log, mul, nrt ↵Gabriel Jensen
(currently, only abs has been implemented); Add structure for fractions (frac); Fix version; Re-add documentation; Add maximum and minimum values for types;
2022-11-20memcat: Remove; strcat: Remove; memcp: Return number of copied bytes; ↵Gabriel Jensen
memfill: Return number of filled bytes;
2022-11-06Implement memcnt in assembly;Gabriel Jensen
2022-11-05Add counting function; Rename foreach to memfor; Rename fndbtyte to memfnd; ↵Gabriel Jensen
Rename fndchr to strfnd;
2022-11-05Improve assembly readability (save utf8enc and utf8enclen for later); Update ↵Gabriel Jensen
readme; Fix memory leak in demo;
2022-11-03Remove typing of nullptr;Gabriel Jensen
2022-11-03Add function for getting the length of UTF-32 strings;Gabriel Jensen
2022-10-31Fix install target;Gabriel Jensen
2022-10-31Remove memcmp and strcmp; Restructure sources; Remove root makefile;Gabriel Jensen
2022-10-03Don't use susinfo;Gabriel Jensen
2022-10-03Update readme; Fix typo in makefile; Include headers inside header guard; ↵Gabriel Jensen
Remove unneeded includes; Rename private include directory: 'include-priv' => 'include-private'; Remove assembly support from (public) headers; Remove fastimpl (assembly algorithms are still used); Add copyright/license notices to makefiles; Seperate sources according to header; Require GNU Make; Move (most) C-implementations into a seperate project: zapx; Restructure assembly; Implement strfill in assembly; Use new versioning system (api.ver); Remove documentation; Add features from latest standard; Temporarily remove i386 implementations; Update readme format; Update changelog format; Remove impl; Remove stdver; Readd ver; Use git tagging;
2022-07-28Remove type specifier from version macro; Add mathematical functions abs and ↵Gabriel Jensen
fma; Update documentation; Remove nothrw attribute from foreach; Remove UB from foreach test; Fix parameter mismatch in foreach test; Use unsigned char instead of uint_least8_t; Remove unnecessary casts; Add new headers: 'zap/math.h' (for mathematical functions), 'zap/mem.h' (for memory sequence functions); Restructure makefile; Fix not using INT_LEAST8_MAX and INT_LEAST8_MIN instead of INT8_MAX and INT8_MIN; Remove '/build' from gitignore;
2022-07-19Fix incorrect version number;Gabriel Jensen
2022-07-19Add function foreach: Run function on each element; Use directive globl ↵Gabriel Jensen
instead of global in assembly; Use SIZE_MAX instead of negative one; Remove asflags from makefile; Don't require GNU Make; Change the type of fndbyte: (size_t (void const *,size_t,uint_least8_t)) => (size_t (void const *,size_t,unsigned char)); Change the type of memfill: (void (void *,size_t,uint_least8_t)) => (void (void *,size_t,unsigned char)); Update readme (add documentation for some functions); Update susinfo symbol names;
2022-07-11Fix install target; Remove type literals;Gabriel Jensen
2022-07-11memdup: Use sus_unlikely instead of __builtin_expect; Rename project to zap ↵Gabriel Jensen
(from rgo); Remove global license file (useless with MPL); Migrate test to C++ (for reasons which will be revealed later); Restructure headers; Add include guards to the private header; Add attribute useret to functions; Require GNU Make; Compile position independent code; Update readme;