Ruby 4.1.0dev (2026-11-18 revision bcf3b03b44ae598e3adb59d359cf32202091a318)
endianness.h File Reference

(bcf3b03b44ae598e3adb59d359cf32202091a318)

#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.