Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > @byteSwap

@byteSwap

Panther
Documentation


1: func @byteSwap = <{T: Type}> (arg: T) -> T;

  Swap the bytes

Template Parameters

  T: type of arguments and output - must be integral or a vector of integral, and must have an even number of bytes (bit-width is a multiple of 16).

Parameters

  arg: value to swap the bytes of

Return Value

  Result value of the byte swap

Example

(TODO)

See Also

@bitReverse Reverse the bits