Jeremy Soller
aead6d8fd0
Merge pull request #129 from ids1024/cstr
...
Simplify cstr_from_bytes_with_nul_unchecked()
2018-05-24 12:43:48 -06:00
Ian Douglas Scott
5bcf1d42ff
Simplify cstr_from_bytes_with_nul_unchecked()
...
The original implementation is modified from the `Cstr` method, but the
complexity there exists because it is trying to convert to the DST `Cstr`.
2018-05-24 11:27:35 -07:00
Jeremy Soller
3311a700e0
Merge pull request #126 from ProgVal/update-ralloc
...
Update ralloc. Closes GH-83.
2018-05-20 07:27:15 -06:00
Valentin Lorentz
0b6d6549f1
Update ralloc. Closes GH-83.
2018-05-20 14:13:36 +02:00
Jeremy Soller
ed12713aa8
Update gitignore for tests
2018-05-15 18:35:29 -06:00
Jeremy Soller
c647fdfed3
Merge pull request #116 from matijaskala/patch-1
...
Add optimized version of memchr
2018-05-15 18:33:31 -06:00
Jeremy Soller
8eec109cc0
Merge pull request #120 from Majora320/master
...
Implement clock() and add CLOCK_* constants
2018-05-15 18:32:29 -06:00
Jeremy Soller
c8d4ea3ee6
Merge pull request #123 from Arcterus/qsort-real
...
stdlib: implement qsort() as an introsort
2018-05-15 18:31:50 -06:00
Jeremy Soller
4fb4790890
Merge pull request #122 from Arcterus/qsort
...
Fix a bug in printf()
2018-05-15 18:31:21 -06:00
Matija Skala
9bbb070104
Add optimized version of memchr
2018-05-15 21:06:17 +02:00
Alex Lyon
f5ded007c6
stdlib: recurse into the smaller partition when sorting
2018-05-13 16:16:48 -07:00
Alex Lyon
4d3ac1c0dc
stdlib: save stack space by looping in introsort_helper()
2018-05-13 03:29:53 -07:00
Alex Lyon
b15aa83a8a
stdlib: move insertion sort from introsort() into a separate function
2018-05-13 03:15:16 -07:00
Alex Lyon
aa21e5fc3f
stdlib: implement qsort() as an introsort
2018-05-13 03:07:00 -07:00
Jeremy Soller
6e8e6ad5d2
Merge pull request #121 from Arcterus/strtoul
...
stdlib: implement strtoul() and strtol() using a macro
2018-05-12 06:24:18 -06:00
Alex Lyon
0cabecd5b5
stdio, string, platform: fix a bug in printf() involving chars
...
Because we were previously converting the bytes in the format
string into Rust's char type and then printing that using the
format machinery, byte values that were not valid single-byte
UTF-8 characters failed to print correctly. I found this while
trying to implement qsort() because the output of my test program
was mysteriously incorrect despite it working when I used glibc.
2018-05-11 23:09:12 -07:00
Moses Miller
d14d0b5965
Fix various formatting issues
2018-05-11 22:01:51 -07:00
Moses Miller
766e00c69e
Implement conversion of nanoseconds to clocks in terms of CLOCKS_PER_SEC
2018-05-11 17:22:01 -07:00
Moses Miller
3d1a66f270
Add CLOCKS_PER_SEC
2018-05-11 16:26:56 -07:00
Moses Miller
9d8758006d
Change 1000000 to 1_000_000
2018-05-11 11:41:18 -07:00
Alex Lyon
1bcc40c08f
stdlib: manually fix formatting
2018-05-11 09:31:58 -07:00
Alex Lyon
7647db27c0
stdlib: implement strtoul() and strtol() using a macro
2018-05-11 01:48:27 -07:00
Moses Miller
56458e5e4c
Condense 5 lines into 1
2018-05-10 20:48:13 -07:00
Moses Miller
1ecd5f8f21
Implement clock() and add CLOCK_* constants
2018-05-10 20:31:35 -07:00
Jeremy Soller
018f950851
Merge branch 'master' of https://github.com/jeizsm/relibc
2018-04-26 20:14:53 -06:00
Jeremy Soller
08091ab2a9
Merge branch 'stat' of https://github.com/sajattack/relibc
2018-04-26 20:12:57 -06:00
Marat Safin
ff37adeeba
add asctime
...
Signed-off-by: Marat Safin <jeizsm@gmail.com >
2018-04-19 07:59:58 +03:00
Jeremy Soller
43e6cad33f
Merge pull request #112 from jeizsm/master
...
add gmtime and difftime
2018-04-17 10:07:12 -06:00
Marat Safin
8015878a73
use static variable for gmtime
2018-04-15 08:56:09 +03:00
Marat Safin
2b21dca567
add gmtime and difftime
2018-04-14 09:01:04 +03:00
Jeremy Soller
93e2e16077
Merge pull request #118 from dlrobertson/fix_ci
...
ci: Ensure that the correct compiler is installed
2018-04-08 12:16:01 -06:00
Dan Robertson
6a4220458c
ci: Ensure that the correct compiler is installed
...
Ensure that a compiler is installed when the aarch64 CI build is run.
2018-04-08 13:52:34 +00:00
Jeremy Soller
722732b616
Merge pull request #114 from HermannDppes/format
...
Run ./fmt.sh
2018-04-04 16:07:37 -06:00
Hermann Döppes
dc769fd977
Run ./fmt.sh
2018-04-04 22:52:06 +02:00
Jeremy Soller
3f627b1b40
Remove asserts
2018-04-03 19:52:50 -06:00
Jeremy Soller
5b1e11d1b1
Fix minimum alignment for malloc_inner
2018-04-03 19:52:34 -06:00
Jeremy Soller
62fbff93bc
Clean up malloc
2018-04-03 19:51:50 -06:00
Jeremy Soller
742339ca9e
Hacky version of memalign
2018-04-03 19:45:36 -06:00
Jeremy Soller
dabd8dc6a2
Move memory handling into string, do not use compiler_builtins for memory handling
2018-03-27 21:28:48 -06:00
Jeremy Soller
79d05d7eda
Build variadic functions as part of relibc
2018-03-27 21:13:11 -06:00
Jeremy Soller
b849165438
Fix MAX_C macros
2018-03-27 20:33:04 -06:00
Jeremy Soller
ea804582b9
Rename sys header crates, add mman constants
2018-03-27 20:25:42 -06:00
Jeremy Soller
afdc80629f
Fix Makefile spurious rebuilds
...
Add mem* functions to stdio
Add constant int functions
2018-03-27 20:14:22 -06:00
Paul Sajna
92493a55b9
fix harderer
2018-03-26 21:23:36 -07:00
Paul Sajna
bc0763f3ef
fmt
2018-03-26 21:17:14 -07:00
Paul Sajna
14957bb8dc
fix harder
2018-03-26 21:14:38 -07:00
Jeremy Soller
6999363916
Create build directory if necessary in openlibm target
2018-03-26 20:41:02 -06:00
Jeremy Soller
78c8c2171b
Add install target
2018-03-26 20:13:45 -06:00
Jeremy Soller
8c218b1608
Build crt0 as object file
2018-03-26 20:06:46 -06:00
Jeremy Soller
d071522bc5
Add libm to phony
2018-03-26 19:59:42 -06:00