• JamonBear@sh.itjust.works
    link
    fedilink
    arrow-up
    11
    ·
    5 days ago

    Cmon, this is not about naming, this is about non-generic code in generic header.

    IMO hiding such a little operation behind a macro/function just hurt readability. Furthermore, considering that this function is only used once in the provided patch and that word ordering on RISC-V is not about to change anytime soon, it is perfectly fine to inline the code.

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