Subversion Repositories HelenOS-historic

Rev

Rev 866 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 866 Rev 1702
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
-
 
29
 
-
 
30
 /** @addtogroup generic   
-
 
31
 * @ingroup others
-
 
32
 * @{
-
 
33
 */
-
 
34
/** @file
-
 
35
 */
-
 
36
 
29
#ifndef __ALIGN_H__
37
#ifndef __ALIGN_H__
30
#define __ALIGN_H__
38
#define __ALIGN_H__
31
 
39
 
32
/** Align to the nearest lower address.
40
/** Align to the nearest lower address.
33
 *
41
 *
Line 43... Line 51...
43
 * @param a Size of alignment, must be power of 2.
51
 * @param a Size of alignment, must be power of 2.
44
 */
52
 */
45
#define ALIGN_UP(s, a)      (((s) + ((a) - 1)) & ~((a) - 1))
53
#define ALIGN_UP(s, a)      (((s) + ((a) - 1)) & ~((a) - 1))
46
 
54
 
47
#endif
55
#endif
-
 
56
 
-
 
57
 /** @}
-
 
58
 */
-
 
59