Veritable Lasagna
An Allocator & Data Structure Library for C.
Loading...
Searching...
No Matches
vl_numtypes.h File Reference
#include <vl/vl_libconfig.h>
+ Include dependency graph for vl_numtypes.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vl_numtype_info
 

Macros

#define VL_TRUE   1
 
#define VL_FALSE   0
 
#define VL_BOOL_T   VL_USMALL_T
 

Typedefs

typedef VL_STRUCTURE_OFFSET_T vl_dsoffs_t
 Byte offset type for data structures.
 
typedef VL_STRUCTURE_INDEX_T vl_dsidx_t
 Index type for data structures.
 
typedef VL_ULARGE_T vl_ularge_t
 Largest available unsigned integer type.
 
typedef VL_ILARGE_T vl_ilarge_t
 Largest available signed integer type.
 
typedef VL_USMALL_T vl_usmall_t
 Smallest available unsigned integer type.
 
typedef VL_ISMALL_T vl_ismall_t
 Smallest available signed integer type.
 
typedef VL_INT_T vl_int_t
 Standard signed integer type.
 
typedef VL_UINT_T vl_uint_t
 Standard unsigned integer type.
 
typedef VL_UPTR_T vl_uintptr_t
 Unsigned integer type suitable for expressing memory addresses.
 
typedef VL_IPTR_T vl_intptr_t
 Signed integer type suitable for expressing memory addresses.
 
typedef VL_F32_T vl_float32_t
 32-bit floating point number type.
 
typedef VL_FHIGHP_T vl_float_highp_t
 Highest precision floating point number type.
 
typedef VL_BOOL_T vl_bool_t
 
typedef void(* vl_numtype_converter) (const void *src, void *dst)
 Function pointer type for converting between numeric types.
 
typedef void(* vl_numtype_normalizer) (const void *src, void *dst)
 Function pointer type for converting between numeric types.
 

Variables

VL_API const vl_numtype_info VL_NUMTYPE_INFO [VL_NUMTYPE_MAX]
 Provides runtime numeric type introspection.
 

Data Structure Documentation

◆ vl_numtype_info

struct vl_numtype_info
+ Collaboration diagram for vl_numtype_info:
Data Fields
vl_uint16_t alignment
vl_bool_t isFloating
vl_bool_t isInteger
vl_bool_t isSigned
vl_uint16_t size
vl_numtype type
vl_numtype_converter typeConverters[VL_NUMTYPE_MAX]

Macro Definition Documentation

◆ VL_BOOL_T

#define VL_BOOL_T   VL_USMALL_T

◆ VL_FALSE

#define VL_FALSE   0

◆ VL_TRUE

#define VL_TRUE   1

Typedef Documentation

◆ vl_bool_t

◆ vl_dsidx_t

typedef VL_STRUCTURE_INDEX_T vl_dsidx_t

Index type for data structures.

◆ vl_dsoffs_t

typedef VL_STRUCTURE_OFFSET_T vl_dsoffs_t

Byte offset type for data structures.

◆ vl_float32_t

typedef VL_F32_T vl_float32_t

32-bit floating point number type.

◆ vl_float_highp_t

typedef VL_FHIGHP_T vl_float_highp_t

Highest precision floating point number type.

◆ vl_ilarge_t

typedef VL_ILARGE_T vl_ilarge_t

Largest available signed integer type.

◆ vl_int_t

typedef VL_INT_T vl_int_t

Standard signed integer type.

◆ vl_intptr_t

typedef VL_IPTR_T vl_intptr_t

Signed integer type suitable for expressing memory addresses.

◆ vl_ismall_t

typedef VL_ISMALL_T vl_ismall_t

Smallest available signed integer type.

◆ vl_numtype_converter

typedef void(* vl_numtype_converter) (const void *src, void *dst)

Function pointer type for converting between numeric types.

Converts a source value (as void*) to destination (void*). Both pointers must reference valid memory for their respective types.

Parameters
srcPointer to source value
dstPointer to destination value

◆ vl_numtype_normalizer

typedef void(* vl_numtype_normalizer) (const void *src, void *dst)

Function pointer type for converting between numeric types.

Converts a source value (as void*) to destination (void*). Both pointers must reference valid memory for their respective types.

Parameters
srcPointer to source value
dstPointer to destination value

◆ vl_uint_t

typedef VL_UINT_T vl_uint_t

Standard unsigned integer type.

◆ vl_uintptr_t

typedef VL_UPTR_T vl_uintptr_t

Unsigned integer type suitable for expressing memory addresses.

◆ vl_ularge_t

typedef VL_ULARGE_T vl_ularge_t

Largest available unsigned integer type.

◆ vl_usmall_t

typedef VL_USMALL_T vl_usmall_t

Smallest available unsigned integer type.

Variable Documentation

◆ VL_NUMTYPE_INFO

VL_API const vl_numtype_info VL_NUMTYPE_INFO[VL_NUMTYPE_MAX]
extern

Provides runtime numeric type introspection.