Changeset bf9afa07 in mainline for libc/include/align.h


Ignore:
Timestamp:
2006-06-02T11:35:05Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2d22049
Parents:
49d072e
Message:

Allocation function for allocating free areas for mmap, map_physmem etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/include/align.h

    r49d072e rbf9afa07  
    4343 * @param a Size of alignment, must be power of 2.
    4444 */
    45 #define ALIGN_UP(s, a)          (((s) + ((a) - 1)) & ~((a) - 1))
     45#define ALIGN_UP(s, a)          ((long)((s) + ((a) - 1)) & ~((long) (a) - 1))
    4646
    4747#endif
Note: See TracChangeset for help on using the changeset viewer.