Commit Graph

16 Commits

Author SHA1 Message Date
915dea01c9 LibC: fix printf %e for inf/nan values 2024-02-16 15:34:24 +02:00
dfe5a2d665 All: Cleanup all files
Add newline to end of files and remove whitespace from end of lines
2024-01-24 15:53:38 +02:00
4307968182 All: Start work again on sse support 2023-12-28 19:14:42 +02:00
Bananymous
61694268e2 LibC: Implement length modifiers to printf 2023-09-28 11:42:57 +03:00
Bananymous
7a7c5e433e Kernel/LibC: add flag to enable/disable sse support
SSE support is very experimental and causes GP. I decided to make
SSE not default until I get to fixing it :)
2023-09-23 02:28:25 +03:00
Bananymous
921d95d18f All: Clear lines with only whitspace in them 2023-09-10 00:31:42 +03:00
Bananymous
b5a7246ba7 LibC: make printf buffer only 128 bytes
Only reason for it to be big is if you want super large zero padding
for your number. This will eventually be handled without the buffer.
2023-08-18 16:49:27 +03:00
Bananymous
569e76a848 LibC: printf handles nan and inf 2023-08-16 10:49:34 +03:00
Bananymous
3a79880e69 LibC: printf string persision works now 2023-06-03 15:07:02 +03:00
Bananymous
faf14b880e LibC: Rewrite all the headers.
We now have more or less posix issue 2018 conforming libc headers.

This was a really time consuming and boring operation but it had to
be done.

Now we get to actually start implementing libc :)
2023-05-26 22:31:21 +03:00
Bananymous
8ec675cca6 LibC: fix bugs with printf 2023-05-15 22:47:08 +03:00
Bananymous
7543fadfa8 LibC: printf now prints 0 as integer 2023-05-11 18:20:37 +03:00
Bananymous
36707ec87a LibC: implement printf conversions e, E, f, F 2023-05-10 22:36:03 +03:00
Bananymous
cae0a1cc60 LibC: add working f modifier to printf
This is implementation will write out of bounds if the conversion
takes more than 1024 characters (either super large number or very
big percision).

Also we dont handle NaN and infinity cases
2023-05-10 15:43:42 +03:00
Bananymous
480d92fce5 LibC: add better error string support 2023-05-10 02:22:31 +03:00
Bananymous
49fe3d0d4f LibC: add probably functional *printf
I wrote a general printf function that takes an putc function
pointer. We can use this to implement all the printf family
functions. I haven't done thorough testing with this, but it seems
to be functional for the most part
2023-05-10 02:00:28 +03:00