• FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    3
    arrow-down
    3
    ·
    3 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
      11
      ·
      edit-2
      2 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