SDL_Swap64LE(3)

SDL_Swap64LE3

Swap a 64-bit value from littleendian to native byte order.

Usage

#include "SDL3/SDL.h"

#define SDL_Swap64LE(x) SwapOnlyIfNecessary(x)

Header file

Defined in SDL3/SDL_endian.h

Overview

If this is running on a littleendian system, x is returned unchanged.

This macro never references x more than once, avoiding side effects.

Return value

Returns x in native byte order.

Thread safety

It is safe to call this macro from any thread.

Availability

This macro is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.