URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 148 |
Rev 158 |
#ifndef MALLOC_PROVIDED
|
#ifndef MALLOC_PROVIDED
|
/* malign.c -- a wrapper for memalign_r. */
|
/* malign.c -- a wrapper for memalign_r. */
|
|
|
#include <_ansi.h>
|
#include <_ansi.h>
|
#include <reent.h>
|
#include <reent.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
#include <malloc.h>
|
#include <malloc.h>
|
|
|
#ifndef _REENT_ONLY
|
#ifndef _REENT_ONLY
|
|
|
_PTR
|
_PTR
|
_DEFUN (memalign, (align, nbytes),
|
_DEFUN (memalign, (align, nbytes),
|
size_t align _AND
|
size_t align _AND
|
size_t nbytes)
|
size_t nbytes)
|
{
|
{
|
return _memalign_r (_REENT, align, nbytes);
|
return _memalign_r (_REENT, align, nbytes);
|
}
|
}
|
|
|
#endif
|
#endif
|
#endif
|
#endif
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.