Hacker GitHub

← All repos

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

Mentions per year 11 mentions · busiest year 2022 (4)
20082026
  1. …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…
  2. …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
  3. …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
  4. ▲ 322
    Cosine Implementation in C
    story by opisthenar84 · 2023-03-31 · 158 comments
  5. 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)
  6. …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…
  7. …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)
  8. https://github.com/ifduyue/musl/blob/master/src/math/__cos.c
  9. …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…
  10. 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
  11. …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…