Function report |
Source Code:lib\mpi\mpicoder.c |
Create Date:2022-07-28 07:18:43 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mpi_read_buffer() - read MPI to a bufer provided by user (msb first)*@a: a multi precision integer*@buf: bufer to which the output will be written to
Proto:int mpi_read_buffer(MPI a, uint8_t *buf, unsigned buf_len, unsigned *nbytes, int *sign)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| MPI | a | |
| uint8_t * | buf | |
| unsigned | buf_len | |
| unsigned * | nbytes | |
| int * | sign |
| 154 | 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 |
| 160 | If sign Then sign = indicates a negative number |
| 163 | lzeros = count_lzeros(a) |
| 177 | alimb = cpu_to_be32( array with the limbs [i]) |
| 183 | No 3D Now!(p, (u8 * ) & alimb + lzeros, BYTES_PER_MPI_LIMB - lzeros) |
| 184 | p += BYTES_PER_MPI_LIMB - lzeros |
| 185 | lzeros = 0 |
| 187 | Return 0 |
| Name | Describe |
|---|---|
| mpi_get_buffer | mpi_get_buffer() - Returns an allocated buffer with the MPI (msb first).* Caller must free the return string.* This function does return a 0 byte buffer with nbytes set to zero if the* value of A is zero.*@a: a multi precision integer. |
| 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 |