2 ms·
Whoops: Linux's Strcmp() for the M68k Has Always Been Broken
- isaacfrond 4y agoThat borders on the unbelievable. Going back to 2.6.
- DamonHD 4y agoDonald Knuth discovered bug(s) in TeX that had been in the very first version, but because releases were checked with diffs and didn't change in this aspect, weren't noticed. At some point such bugs start to look like features that people are relying on...
- db48x 4y agoIt’s a subtle bug, not an obvious one. It doesn’t show up in most circumstances.
- TonyTrapp 4y agoI wonder how much better the code generated by a modern compiler for the generic fallback function is compared to this hand-written assembly. We've come a long way with compiler optimizations after all.
- foxyv 4y agoTypically, hand written assembly is the precursor to the compiler. Someone finds a neat trick in hand writing some well known method and then uses that to improve the compiler. GCC isn't using any deep learning... yet.
- IcePic 4y ago29+ years old bsd m68k-asm libc strcmp() has this comment: * NOTE: this guy returns result compatible with the VAX assembly version. * The C version on the portable gen directory returns different results * (different signs!) when comparing chars with the high bit on. Who is * right??
- hulitu 4y agoI would really like to test it. Is there a computer with M68k still on sale ?