Ruby 4.1.0dev (2026-11-17 revision ebdf919795c0983696023691177045014435551c)
endianness.h File Reference

(ebdf919795c0983696023691177045014435551c)

#include <stdint.h>
Include dependency graph for endianness.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PRISM_LITTLE_ENDIAN_RUNTIME   pm_little_endian()

Functions

static int pm_little_endian (void)
 Detect endianness at compile-time through the use of predefined macros.

Macro Definition Documentation

◆ PRISM_LITTLE_ENDIAN_RUNTIME

#define PRISM_LITTLE_ENDIAN_RUNTIME   pm_little_endian()

Definition at line 31 of file endianness.h.

Function Documentation

◆ pm_little_endian()

int pm_little_endian ( void )
inlinestatic

Detect endianness at compile-time through the use of predefined macros.

Determine endianness at runtime, either through predefined macros or through a runtime check that is usually folded.

Definition at line 26 of file endianness.h.