Subversion Repositories HelenOS

Rev

Rev 1819 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1819 Rev 1860
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
29
/** @addtogroup generic
31
 * @ingroup others
30
 * @ingroup others
32
 * @{
31
 * @{
33
 */
32
 */
-
 
33
/**
34
/** @file
34
 * @file
-
 
35
 * @brief   Macros for making values and addresses aligned.
35
 */
36
 */
36
 
37
 
37
#ifndef __ALIGN_H__
38
#ifndef KERN_ALIGN_H_
38
#define __ALIGN_H__
39
#define KERN_ALIGN_H_
39
 
40
 
40
/** Align to the nearest lower address.
41
/** Align to the nearest lower address.
41
 *
42
 *
42
 * @param s Address or size to be aligned.
43
 * @param s Address or size to be aligned.
43
 * @param a Size of alignment, must be power of 2.
44
 * @param a Size of alignment, must be power of 2.