Commit Graph

29 Commits

Author SHA1 Message Date
7cae704504 Remove compiler warnings from the CMakeLists
The existing compiler warnings expected either clang/GCC or MSVC, thus
making CMakeLists less future proof.
2025-09-06 16:16:57 +03:00
a0c92c2398 Fix TestThread Condition test 2025-08-28 17:53:57 +03:00
12a00c3515 Fix TestThread.c and POSIX semaphore 2025-08-28 17:28:07 +03:00
c716c71542 Remove extra whitespace and variable in TestBitmap 2025-08-26 10:48:35 +03:00
d05efc5f85 Refactor bitmap, add extra accessor for color data 2025-08-07 22:05:12 +03:00
deb4ec00f4 Add macro functions for checking unsigned wraps 2025-08-04 20:30:30 +03:00
f9feb23d4d Add bitmap support 2025-08-03 19:23:41 +03:00
d94055b302 Add basic unit test for BH_Color 2025-08-02 14:50:33 +03:00
703fb0f240 Rename MT functions, add tests, fix bugs
Renamed multithreaded related functions, added simple unit tests and fix
bugs caught by said tests :)
2025-06-24 16:48:21 +03:00
fc774fd0ff Refactor, separate docs from headers, add ru docs
Doxygen kind'a sucks and I need multilanguage documentation, so I did
that. Also, separated massive Math.h file into smaller files.
2025-06-21 20:12:15 +03:00
1b6c858a1b Refactor IO, add buffered IO
I wasn't happy with existing implementation of the IO, so I decided
to change it - as a result there is no longer BH_IOOpen and BH_IOClose
and many IO operations are now optional (behind BH_IOCtl).

Finnally implemented buffered IO and fixed size memory buffer IO.
2025-04-26 10:42:22 +03:00
dd15b42b44 Add Unicode tests, fix whitespace, fix docs
Added Unicode tests (and fixed few bugs), changed whitespace script to
proccess markdown files, added new guide to showcase how to work with
Unicode.
2025-04-06 14:11:38 +03:00
f9ebeabb18 Refactor strings (avoid using dynamically allocated memory)
Refactored strings functions to make them use supplied string
instead of allocating new ones.

Additionally, split String/Int.c into several files to avoid define
mess that was present before.
2025-04-05 13:56:00 +03:00
4b2e3da567 Add int tests, fix bugs, add docs
Added tests for string to/from integers and added documentation.
While adding tests caught few bugs and shortcomings (now everything
works as expected)
2025-04-05 13:56:00 +03:00
b943135d71 Fix whitespace, add asserts, add string to double function, fix bugs
Finally added StringToDouble function (should work for the majority of
the cases). Additionally fixed bug in StringFromDouble related to
incorrect rounding and added asserts (should add more asserts in the
following commits).

Also implemented some optimizations from Burger and Dybvig paper.
2025-04-05 13:56:00 +03:00
82bea0ebf8 Refactor bigints, add int and float conv functions
Added functions to convert from/to ints/floats. Floats are converted
according to basic Steele&White algorithm (without speedup).
2025-04-05 13:56:00 +03:00
69515af77f Fix styling issues, rename scripts 2025-04-05 13:56:00 +03:00
a2d0913c79 Add utils for working with endianness, more documentation, refactor CMake
Decided to update the docs, as well as adding few new features and small
refactoring.
2025-02-28 21:44:22 +03:00
37feb762cb Add argument parsing
Added (IMHO) relatively simple argument parsing function (as well as helper
function for printing help information).
2025-02-28 09:09:58 +03:00
cae66889a1 Add 2D/3D boxes/AABBs and intersection tests.
Added support for 2D/3D boxes (or AABBs) and intersection tests between
them and rays/segments.
2025-02-24 22:56:16 +03:00
67e7582d63 Add line, plane, ray and segments, split math unit test
Added some basic geometric primitives such as planes, rays, segments
and lines (plus some extra functions like xProject, xBarycentric, Lerpf),
as well as some intersection tests between them.

Additionally, I split massive math test into smaller ones and tweaked
unit test library (testing no longer stops after first failure).
2025-02-24 09:37:22 +03:00
c34a24c2a4 Fix naming in CMakeLists.txt 2025-02-03 10:56:40 +03:00
f86f1f4f74 Fix function declaration, extend math test 2025-02-03 08:26:10 +03:00
d917eaa479 Fix file and directory permissions 2025-02-02 22:51:28 +03:00
586a9ace21 Change file naming
This is a follow-up to previous commit.
2025-02-02 21:40:31 +03:00
c89cf8f316 Change code and naming style, fix several bugs, removed math types.
After a while I felt that putting underscores between words was not the
best solution, so I changed the underscores to capital letters.

Fixed consistency bug between POSIX/Win32 platform in BH_FileOpen.

Removed definitions for math types (vector, matrix, etc.) due to
potential aliasing issues.
2025-02-02 21:13:34 +03:00
6ede63e18f Add Asan profile, fix multiple bugs.
Added Asan profile to help catch and fix various bugs (and indeed, there
were few of them).

Additionally, fixed bhunit macro to process arguments only once.
2025-01-29 09:19:34 +03:00
47c21a2035 Refactor math functions, add unit tests
After some testing, I decided to ditch the DirectX approach of writing
math functions.

Additionally, I added unit tests (with reference wxMaxima calculations)
for most math functions and fixed several bugs along the way.
2025-01-29 09:14:58 +03:00
453843f51a Initial commit 2025-01-18 17:24:36 +03:00