src/components/sde/tests/Simple2/Simple2_Lib.c
// This function allows the library to perform operations in order to compute the value of an SDE at run-time
This function allows the library to perform operations in order to compute the value of an SDE at run-time
This function allows the library to perform operations in order to compute the value of an SDE at run - time
long long compute_sde( void *param ){
    long long *ll_ptr;
    double *dbl_ptr = (double *)param;
    double value = *dbl_ptr * 2.0;
    ll_ptr = (long long *)&value;
    return *ll_ptr;
}
long long compute_sde ( void * param ) { long long * ll_ptr ; double * dbl_ptr = ( double * ) param ; double value = * dbl_ptr * 2.0 ; ll_ptr = ( long long * ) & value ; return * ll_ptr ; }
This function allows the library to perform operations in order to compute the value of an SDE at run-time
This function allows the library to perform operations in order to compute the value of an SDE at run - time
// Scale the variable by a factor of two. Real libraries will do meaningful work here. // Pack the bits of the result in a long long int. This ugliness will go away as soon as we have a C++ API.