1196994Sphk/*-
2196994Sphk * Copyright (c) 1990 The Regents of the University of California.
3196994Sphk * All rights reserved.
4196994Sphk *
5196994Sphk * This code is derived from software contributed to Berkeley by
6196994Sphk * William Jolitz.
7196994Sphk *
8196994Sphk * Redistribution and use in source and binary forms, with or without
9196994Sphk * modification, are permitted provided that the following conditions
10196994Sphk * are met:
11196994Sphk * 1. Redistributions of source code must retain the above copyright
12196994Sphk *    notice, this list of conditions and the following disclaimer.
13196994Sphk * 2. Redistributions in binary form must reproduce the above copyright
14196994Sphk *    notice, this list of conditions and the following disclaimer in the
15196994Sphk *    documentation and/or other materials provided with the distribution.
16196994Sphk *
17196994Sphk * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
18196994Sphk * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19196994Sphk * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20196994Sphk * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
21196994Sphk * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22196994Sphk * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23196994Sphk * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24196994Sphk * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25196994Sphk * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26196994Sphk * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27196994Sphk * SUCH DAMAGE.
28196994Sphk *
29196994Sphk *	from: @(#)param.h	5.8 (Berkeley) 6/28/91
30196994Sphk * $FreeBSD$
31196994Sphk */
32196994Sphk
33196994Sphk#ifndef _SPARC64_INCLUDE__ALIGN_H_
34196994Sphk#define	_SPARC64_INCLUDE__ALIGN_H_
35196994Sphk
36196994Sphk/*
37196994Sphk * Round p (pointer or byte index) up to a correctly-aligned value
38196994Sphk * for all data types (int, long, ...).   The result is unsigned int
39196994Sphk * and must be cast to any desired pointer type.
40196994Sphk */
41196994Sphk#define _ALIGNBYTES	0xf
42196994Sphk#define _ALIGN(p)	(((u_long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
43196994Sphk
44196994Sphk#endif /* !_SPARC64_INCLUDE__ALIGN_H_ */
45