Function report |
Source Code:lib\mpi\mpicoder.c |
Create Date:2022-07-28 07:18:48 |
| 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_raw_from_sgl() - Function allocates an MPI and populates it with* data from the sgl* This function works in the same way as the mpi_read_raw_data, but it* takes an sgl instead of void * buffer. i.e. it allocates
Proto:MPI mpi_read_raw_from_sgl(struct scatterlist *sgl, unsigned int nbytes)
Type:MPI
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct scatterlist * | sgl | |
| unsigned int | nbytes |
| 341 | If ents < 0 Then Return NULL |
| 346 | lzeros = 0 |
| 347 | len = 0 |
| 360 | len = length of the mapped area |
| 363 | lzeros = 0 |
| 370 | If nbits > MAX_EXTERN_MPI_BITS Then |
| 373 | Return NULL |
| 381 | nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB) |
| 382 | val = -- mpiutil.c -- |
| 383 | If Not val Then Return NULL |
| 387 | indicates a negative number = 0 |
| 388 | number of valid limbs = nlimbs |
| 394 | a = 0 |
| 395 | z = BYTES_PER_MPI_LIMB - nbytes % BYTES_PER_MPI_LIMB |
| 396 | z %= BYTES_PER_MPI_LIMB |
| 400 | len = length of the mapped area |
| 403 | a <<= 8 |
| 405 | If ( z + x + 1) % BYTES_PER_MPI_LIMB == 0 Then |
| 406 | array with the limbs [j--] = a |
| 407 | a = 0 |
| 413 | Return val |
| 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 |