Twunio
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sunshine@piefed.ca to Linux@programming.devEnglish · 5 days ago

Linus Torvalds Rejects RISC-V Changes For Linux 6.17: "Garbage"

www.phoronix.com

external-link
message-square
41
link
fedilink
1
external-link

Linus Torvalds Rejects RISC-V Changes For Linux 6.17: "Garbage"

www.phoronix.com

Sunshine@piefed.ca to Linux@programming.devEnglish · 5 days ago
message-square
41
link
fedilink
  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    4 days ago

    this is about non-generic code in generic header.

    (a << 16) | b is about the most generic code you can get. How is that remotely RISC-V specific?

    • zygo_histo_morpheus@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      4 days ago

      Making a u32 pointer from to u16’s isn’t a generic operation because it has to make assumptions about how the pointers work (in particular what endianess they have)

      • FizzyOrange@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        4 days ago

        What makes you think it’s making a pointer? Nobody said anything about that.

        • zygo_histo_morpheus@programming.dev
          link
          fedilink
          arrow-up
          0
          ·
          4 days ago

          Oh my bad I don’t know where I got that from lol

          • FizzyOrange@programming.dev
            link
            fedilink
            arrow-up
            0
            ·
            4 days ago

            Nw. You’re also wrong about endianness. This function would be written exactly the same irrespective of endianness:

            uint32_t u16_high_low_to_u32(uint16_t high, uint16_t low) {
              return (high << 16) | low;
            }
            

            That is endian agnostic.

Linux@programming.dev

linux@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@programming.dev

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

  • !linux_memes@programming.dev
  • !linuxphones@lemmy.ca
  • Matrix instant messaging group chat

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 50 users / day
  • 280 users / week
  • 774 users / month
  • 838 users / 6 months
  • 0 local subscribers
  • 8.92K subscribers
  • 372 Posts
  • 1.97K Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • adr1an@programming.dev
  • dwraf_of_ignorance@programming.dev
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org