Ruby 4.1.0dev (2026-10-20 revision 957a081892437c842a94cfd9443b0bdc569d1ef2)
Macros | Functions
endianness.h File Reference

(957a081892437c842a94cfd9443b0bdc569d1ef2)

#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()

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