Last change
on this file since 384 was
382,
checked in by alain, 10 years ago
|
Major evolution of the malloc library, to provide two new services:
- all allocated blocks are aligned, and the size is a power of 2.
- the remote-malloc() function allows the application to explicitely define the cluster(x,y).
We keep only the close-fit allocation policy.
These services were required to implement the distributed SBT barrier.
|
File size:
1.7 KB
|
Rev | Line | |
---|
[259] | 1 | ////////////////////////////////////////////////////////////////////////////////// |
---|
| 2 | // File : stdlib.h |
---|
| 3 | // Date : 05/12/2013 |
---|
| 4 | // Author : Clément DEVIGNE |
---|
| 5 | // Copyright (c) UPMC-LIP6 |
---|
| 6 | /////////////////////////////////////////////////////////////////////////////////// |
---|
| 7 | |
---|
| 8 | #ifndef _STDLIB_H |
---|
| 9 | #define _STDLIB_H |
---|
| 10 | |
---|
[382] | 11 | //////////////////////////////////////////////////////////////////////////////////////// |
---|
| 12 | // This function translate a character string to a signed integer. |
---|
| 13 | // For a negative value, the first character must be a '-' (minus) character. |
---|
| 14 | //////////////////////////////////////////////////////////////////////////////////////// |
---|
| 15 | int atoi ( char * str ); |
---|
[271] | 16 | |
---|
| 17 | //////////////////////////////////////////////////////////////////////////////////////// |
---|
[382] | 18 | // This function copies size bytes from the src source buffer |
---|
| 19 | // to the dst destination buffer. |
---|
[271] | 20 | // GCC requires this function. Taken from MutekH. |
---|
| 21 | //////////////////////////////////////////////////////////////////////////////////////// |
---|
[382] | 22 | void* memcpy( void* dst, |
---|
| 23 | const void* src, |
---|
| 24 | unsigned int size ); |
---|
[271] | 25 | |
---|
| 26 | //////////////////////////////////////////////////////////////////////////////////////// |
---|
[382] | 27 | // This function initializes size bytes in the dst destination buffer, |
---|
| 28 | // with the value defined by (char)s. |
---|
[271] | 29 | // GCC requires this function. Taken from MutekH. |
---|
| 30 | //////////////////////////////////////////////////////////////////////////////////////// |
---|
[382] | 31 | inline void* memset( void* dst, |
---|
| 32 | int s, |
---|
| 33 | unsigned int size ); |
---|
[356] | 34 | |
---|
[259] | 35 | #endif |
---|
| 36 | |
---|
| 37 | // Local Variables: |
---|
| 38 | // tab-width: 4 |
---|
| 39 | // c-basic-offset: 4 |
---|
| 40 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) |
---|
| 41 | // indent-tabs-mode: nil |
---|
| 42 | // End: |
---|
| 43 | // vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
Note: See
TracBrowser
for help on using the repository browser.