Xenomai  3.0.5
In-kernel arithmetics

A collection of helpers performing arithmetics not implicitly available from kernel context via GCC helpers. More...

Collaboration diagram for In-kernel arithmetics:

Functions

unsigned long long xnarch_generic_full_divmod64 (unsigned long long a, unsigned long long b, unsigned long long *rem)
 Architecture-independent div64 operation with remainder. More...
 

Detailed Description

A collection of helpers performing arithmetics not implicitly available from kernel context via GCC helpers.

Many of these routines enable 64bit arithmetics on 32bit systems. Xenomai architecture ports normally implement the performance critical ones in hand-crafted assembly code (see kernel/cobalt/arch/<arch>/include/asm/xenomai/uapi/arith.h).

Function Documentation

◆ xnarch_generic_full_divmod64()

unsigned long long xnarch_generic_full_divmod64 ( unsigned long long  a,
unsigned long long  b,
unsigned long long *  rem 
)

Architecture-independent div64 operation with remainder.

Parameters
adividend
bdivisor
remif non-NULL, a pointer to a 64bit variable for collecting the remainder from the division.