| Function report | 
| Source Code: lib\mpi\mpicoder.c | Create Date:2022-07-28 07:18:46 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:mpi_write_to_sgl() - Funnction exports MPI to an sgl (msb first)* This function works in the same way as the mpi_read_buffer, but it* takes an sgl instead of u8 * buf.*@a: a multi precision integer*@sgl: scatterlist to write to. Needs to be at least
Proto:int mpi_write_to_sgl(MPI a, struct scatterlist *sgl, unsigned nbytes, int *sign)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| MPI | a | |
| struct scatterlist * | sgl | |
| unsigned | nbytes | |
| int * | sign | 
| 258 | n = mpi_get_size() - returns max size required to store the number*@a: A multi precision integer for which we want to allocate a bufer* Return: size required to store the number | 
| 263 | If sign Then sign = indicates a negative number | 
| 276 | p2 = pointer to the mapped area | 
| 279 | i = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsigned, nbytes - n, buf_len) | 
| 285 | If Not buf_len Then | 
| 288 | p2 = pointer to the mapped area | 
| 294 | alimb = If array with the limbs [i] Then cpu_to_be32( array with the limbs [i]) Else 0 | 
| 304 | If Not --buf_len Then | 
| 307 | p2 = pointer to the mapped area | 
| 313 | Return 0 | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |