you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 year ago (2 children)

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago (1 child)

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

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 1 year 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.

  • source
  • parent