Ruby 2.7.7p221 (2022-11-24 revision 168ec2b1e5ad0e4688e963d9de019557c78feed9)
Data Structures | Macros | Typedefs | Functions
ffi_common.h File Reference
#include <fficonfig.h>

Go to the source code of this file.

Data Structures

struct  extended_cif
 

Macros

#define MAYBE_UNUSED
 
#define memcpy(d, s, n)   bcopy ((s), (d), (n))
 
#define FFI_ASSERT(x)
 
#define FFI_ASSERT_AT(x, f, l)
 
#define FFI_ASSERT_VALID_TYPE(x)
 
#define ALIGN(v, a)   (((((size_t) (v))-1) | ((a)-1))+1)
 
#define ALIGN_DOWN(v, a)   (((size_t) (v)) & -a)
 
#define __builtin_expect(x, expected_value)   (x)
 
#define LIKELY(x)   __builtin_expect(!!(x),1)
 
#define UNLIKELY(x)   __builtin_expect((x)!=0,0)
 

Typedefs

typedef unsigned int UINT8 __attribute__((__mode__(__QI__)))
 
typedef float FLOAT32
 

Functions

charalloca ()
 
ffi_status ffi_prep_cif_machdep (ffi_cif *cif)
 
ffi_status ffi_prep_cif_machdep_var (ffi_cif *cif, unsigned int nfixedargs, unsigned int ntotalargs)
 

Macro Definition Documentation

◆ __builtin_expect

#define __builtin_expect (   x,
  expected_value 
)    (x)

Definition at line 123 of file ffi_common.h.

◆ ALIGN

#define ALIGN (   v,
 
)    (((((size_t) (v))-1) | ((a)-1))+1)

Definition at line 77 of file ffi_common.h.

◆ ALIGN_DOWN

#define ALIGN_DOWN (   v,
 
)    (((size_t) (v)) & -a)

Definition at line 78 of file ffi_common.h.

◆ FFI_ASSERT

#define FFI_ASSERT (   x)

Definition at line 72 of file ffi_common.h.

◆ FFI_ASSERT_AT

#define FFI_ASSERT_AT (   x,
  f,
 
)

Definition at line 73 of file ffi_common.h.

◆ FFI_ASSERT_VALID_TYPE

#define FFI_ASSERT_VALID_TYPE (   x)

Definition at line 74 of file ffi_common.h.

◆ LIKELY

#define LIKELY (   x)    __builtin_expect(!!(x),1)

Definition at line 125 of file ffi_common.h.

◆ MAYBE_UNUSED

#define MAYBE_UNUSED

Definition at line 32 of file ffi_common.h.

◆ memcpy

#define memcpy (   d,
  s,
  n 
)    bcopy ((s), (d), (n))

Definition at line 55 of file ffi_common.h.

◆ UNLIKELY

#define UNLIKELY (   x)    __builtin_expect((x)!=0,0)

Definition at line 126 of file ffi_common.h.

Typedef Documentation

◆ __attribute__

typedef signed int SINT64 __attribute__((__mode__(__DI__)))

Definition at line 110 of file ffi_common.h.

◆ FLOAT32

typedef float FLOAT32

Definition at line 120 of file ffi_common.h.

Function Documentation

◆ alloca()

char * alloca ( )

◆ ffi_prep_cif_machdep()

ffi_status ffi_prep_cif_machdep ( ffi_cif *  cif)

◆ ffi_prep_cif_machdep_var()

ffi_status ffi_prep_cif_machdep_var ( ffi_cif *  cif,
unsigned int  nfixedargs,
unsigned int  ntotalargs 
)

Definition at line 289 of file ffi.c.

References ffi_prep_cif_machdep(), FFI_SYSV, and FFI_VFP.