# PetscAddrAlign
Rounds up an address to `PETSC_MEMALIGN` alignment 
## Synopsis
```
#include <petscsys.h>
void *PetscAddrAlign(void *addr)
```
Not Collective


## Input Parameters

- ***addr -*** address to align (any pointer type)





## See Also
 `PetscMallocAlign()`


## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscsys.h.html#PetscAddrAlign">include/petscsys.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscsys.h)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
