Added alignment functions for global memory pointers