Skip to content

Conversation

weiso131
Copy link
Contributor

@weiso131 weiso131 commented Aug 9, 2025

The abs() function is a mathematical utility and does not belong in lib/memory.c, which is intended for memory manipulation routines. This commit moves abs() to a new lib/math.c file to improve semantic consistency and maintainability, and to provide a dedicated place for future math-related functions.

Fixes: #17

The abs() function is a mathematical utility and does not belong in
lib/memory.c, which is intended for memory manipulation routines.
This commit moves abs() to a new lib/math.c file to improve semantic
consistency and maintainability, and to provide a dedicated place for
future math-related functions.

Fixes: sysprog21#17
@jserv jserv merged commit b3a4062 into sysprog21:main Aug 9, 2025
@jserv
Copy link
Contributor

jserv commented Aug 9, 2025

Thank @weiso131 for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggest moving abs() to a more appropriate source file

2 participants