This website requires JavaScript.
Explore
Help
Sign In
JehanneOS
/
jehanne
Watch
1
Star
0
Fork
You've already forked jehanne
0
Code
Issues
Pull Requests
Projects
Releases
Activity
3c7dc6eb8b
jehanne
/
sys
/
src
/
lib
/
c
/
amd64
/
sqrt.s
6 lines
61 B
ArmAsm
Raw
Normal View
History
Unescape
Escape
libc: introduce "jehanne_" namespace With this commit all functions declared in libc.h have been renamed with the "jehanne_" prefix. This is done for several reason: - it removes conflicts during symbol resolution when linking standard C libraries like newlib or musl - it allows programs depending on a standard C library to directly link to a library depending on our non standard libc (eg libsec). To ease transiction two files are provided: - sys/include/lib9.h that can be included instead of <libc.h> to use the old names (via a simple set of macros) - sys/src/lib/c/lib9.c that can be compiled with a program where the macro provided by lib9.h are too dumb (see for example rc or grep). In the kernel port/lib.h has been modified accordingly and some of the functions it directly provides has been renamed too (eg malloc in qmalloc.c and print in devcons.c).
2017-04-19 23:33:14 +02:00
.globl
jehanne_sqrt
jehanne_sqrt
:
libc: initial import from Harvey Note that libc is what distinguish "native" software from "non-native" in Jehanne: further C libraries can be ported to Jehanne, but this libc will remain the main building block of the system. Also note that a few files have not been ported from Harvey: - 9sys/pushtls.c - port/rijndael.c - port/rijndael.tbl - port/sha2.c Pushtls.c depends on libmp and libsec so libc is not the appropriate place for it. The other three will be moved to libsec.
2015-12-22 12:55:44 +01:00
sqrtsd
%
x
m
m
0
,
%
x
m
m
0
ret