ifduyue/musl
View on GitHub ↗ ★ 199 C
unofficial musl mirror git://git.musl-libc.org/musl
11 mentions on Hacker News by 10 people: 1 story, 10 comments · first 2019-08-25 · latest 2023-06-26
20082026
-
…it, it's just a single line inline asm statement, `__asm__ ("sqrtsd %1, %0" : "=x"(x) : "x"(x));`: https://github.com/ifduyue/musl/blob/master/src/math/x86_64/... Of course, not every x64_64 impl must use that instruction, and not every…
comment by dundarious · 2023-06-26 · in Show HN: Open-source shooter which made it to AC: Valhalla and Skydio drones -
…of a polynomial approximation for the cosine function. For the genuine article, check out: https://github.com/ifduyue/musl/blob/master/src/math/cos.c
comment by schappim · 2023-03-31 · in Cosine Implementation in C -
…reduction). See [1] for the actual function, and [2] & [3] for the argument reduction code. [1] https://github.com/ifduyue/musl/blob/master/src/math/cos.c [2] https://github.com/ifduyue/musl/blob/master/src/math/__rem_p... [3]…
comment by lifthrasiir · 2023-03-31 · in Cosine Implementation in C -
For anyone else confused by this, the control logic described in the comment happens in https://github.com/ifduyue/musl/blob/master/src/math/cos.c
comment by mnarayan01 · 2022-03-30 · in Implementing Cosine in C from Scratch (2020) -
…case of confusion, I was specifically commenting on the function over the [-pi/4, pi/4] domain in https://github.com/ifduyue/musl/blob/master/src/math/__cos.c , which the comment in https://news.ycombinator.com/item?id=30846546 was…
comment by jhgb · 2022-03-29 · in Implementing Cosine in C from Scratch (2020) -
…reduction process [2]. [1] https://en.wikipedia.org/wiki/Quadruple-precision_floating-p... [2] https://github.com/ifduyue/musl/blob/6d8a515796270eb6cec8a27...
comment by lifthrasiir · 2022-03-29 · in Implementing Cosine in C from Scratch (2020) -
https://github.com/ifduyue/musl/blob/master/src/math/__cos.c
comment by l- · 2022-03-29 · in Implementing Cosine in C from Scratch (2020) -
…by building libraries from many tiny object files (e.g. one source- and object-file per function: https://github.com/ifduyue/musl/tree/master/src/stdio ) since linkers would only work on 'object file granularity' and libraries are simply a…
comment by flohofwoe · 2020-12-04 · in How different compilers deal with provably unused entities -
Also, here's the source from musl (somewhat similar to what we have) https://github.com/ifduyue/musl/blob/79f653c6bc2881dd6855299...
comment by apjana · 2020-04-11 · in SIMD instructions -
…source code, and it turns out it isn’t memory-safe after all. Here’s the source code for stpcpy: https://github.com/ifduyue/musl/blob/master/src/string/stpcp... If dest is too small in the function linked to above, musl’s stpcpy will happy…
comment by winter_blue · 2019-08-25 · in Banned C standard library functions in Git source code