Ruby 4.1.0dev (2026-11-19 revision b409062b86ed964c0779df64675ef171a6c93a76)
endianness.h File Reference

(b409062b86ed964c0779df64675ef171a6c93a76)

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