Rev 1501 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1501 | Rev 1653 | ||
---|---|---|---|
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 | /** @addtogroup libc |
|
- | 30 | * @{ |
|
- | 31 | */ |
|
- | 32 | /** @file |
|
- | 33 | */ |
|
- | 34 | ||
29 | #ifndef __ALIGN_H__ |
35 | #ifndef __ALIGN_H__ |
30 | #define __ALIGN_H__ |
36 | #define __ALIGN_H__ |
31 | 37 | ||
32 | /** Align to the nearest lower address. |
38 | /** Align to the nearest lower address. |
33 | * |
39 | * |
Line 43... | Line 49... | ||
43 | * @param a Size of alignment, must be power of 2. |
49 | * @param a Size of alignment, must be power of 2. |
44 | */ |
50 | */ |
45 | #define ALIGN_UP(s, a) ((long)((s) + ((a) - 1)) & ~((long) (a) - 1)) |
51 | #define ALIGN_UP(s, a) ((long)((s) + ((a) - 1)) & ~((long) (a) - 1)) |
46 | 52 | ||
47 | #endif |
53 | #endif |
- | 54 | ||
- | 55 | ||
- | 56 | /** @} |
|
- | 57 | */ |
|
- | 58 | ||
- | 59 |