KDE Social
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sunshine to Linux@programming.devEnglish • 13 days ago

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

www.phoronix.com

external-link
message-square
44
fedilink
149
external-link

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

www.phoronix.com

Sunshine to Linux@programming.devEnglish • 13 days ago
message-square
44
fedilink
  • @zygo_histo_morpheus@programming.dev
    link
    fedilink
    11•
    edit-2
    12 days ago

    Making a u32 pointer from two u16’s isn’t a generic operation because it has to make assumptions about how the pointers work endianess

    Edit: Actually, I’m wrong, didn’t think this through properly. See the replies

    • @FizzyOrange@programming.dev
      link
      fedilink
      2•12 days ago

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

      • @zygo_histo_morpheus@programming.dev
        link
        fedilink
        2•12 days ago

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

        • @FizzyOrange@programming.dev
          link
          fedilink
          3•12 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

  • 517 users / day
  • 2.51K users / week
  • 4.36K users / month
  • 10.2K users / 6 months
  • 9.04K subscribers
  • 2.47K Posts
  • 17.9K Comments
  • Modlog
  • mods:
  • Ategon
  • adr1an
  • dwraf_of_ignorance
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org