This module contains all the necessary function for 64bit operation in case the chosen compiler does not support long long. Per default this module is linked. This module is excluded only when the compiler supports long long
functions for 64bit operations | This module contains all the necessary function for 64bit operation in case the chosen compiler does not support long long. |
Functions | |
d2_cast32to64 | Cast an 32bit integer to 64bit variable |
d2_cast64to32 | Cast an 64bit variable to a32bit variable |
d2_add64 | Addition of 2 64bit value |
d2_sub64 | Substraction of 2 64bit value |
d2_mul3232to64 | multiply two 32-bit variables and return a 64bit value |
d2_mul3264 | multiply two a 32bit varibales with a 64bit one and return a 64bit result |
d2_div6432 | division of 64bit value by a 32bit. |
d2_shiftleft64 | Shift left a variable of type d2_int64 |
d2_shiftright64 | Shift right a variable of type d2_int64 |
void d2_mul3264( d2_s32 a, const d2_int64 * b, d2_int64 * res )
multiply two a 32bit varibales with a 64bit one and return a 64bit result
a | int |
b | pointer to a 64bit variable of type d2_int64 |
res | pointer to a 64bit variable of type d2_int64. The result will be stored in that variable. |
None
void d2_div6432( const d2_int64 * dividend, d2_s32 divisor, d2_int64 * res )
division of 64bit value by a 32bit. The return result is a 64bit value.
dividend | pointer to a 64bit variable of type d2_int64 |
divisor | 32bit variable of type int |
res | pointer to a 64bit variable of type d2_int64 The result will be stored in this variable |
None
void d2_shiftleft64( const d2_int64 * var, d2_s32 index, d2_int64 * res )
Shift left a variable of type d2_int64
var | pointer to a 64bit variable of type d2_int64 |
index | integer, number of bit to shift |
res | pointer to a 64bit variable of type d2_int64 The result will be stored in this variable |
None
void d2_shiftright64( const d2_int64 * var, d2_s32 index, d2_int64 * res )
Shift right a variable of type d2_int64
var | pointer to a 64bit variable of type d2_int64 |
index | integer, number of bit to shift |
res | pointer to a 64bit variable of type d2_int64 The result will be stored in this variable |
None
Cast an 32bit integer to 64bit variable
void d2_cast32to64( d2_s32 par, d2_int64 * res )
Cast an 64bit variable to a32bit variable
d2_s32 d2_cast64to32( const d2_int64 * par )
Addition of 2 64bit value
void d2_add64( const d2_int64 * a, const d2_int64 * b, d2_int64 * res )
Substraction of 2 64bit value
void d2_sub64( const d2_int64 * a, const d2_int64 * b, d2_int64 * res )
multiply two a 32bit varibales with a 64bit one and return a 64bit result
void d2_mul3264( d2_s32 a, const d2_int64 * b, d2_int64 * res )
division of 64bit value by a 32bit.
void d2_div6432( const d2_int64 * dividend, d2_s32 divisor, d2_int64 * res )
Shift left a variable of type d2_int64
void d2_shiftleft64( const d2_int64 * var, d2_s32 index, d2_int64 * res )
Shift right a variable of type d2_int64
void d2_shiftright64( const d2_int64 * var, d2_s32 index, d2_int64 * res )