public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] C11 aligned_alloc() support for <stdlib.h>
@ 2015-10-19 12:11 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2015-10-19 12:11 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=da60762bfeda8c48cd06dbde45b224b31a82ae57

commit da60762bfeda8c48cd06dbde45b224b31a82ae57
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Wed Oct 14 07:39:36 2015 +0200

    C11 aligned_alloc() support for <stdlib.h>
    
    newlib/ChangeLog
    2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
    
    	* libc/include/stdlib.h (alloc_aligned): Declare.

Diff:
---
 newlib/ChangeLog             | 4 ++++
 newlib/libc/include/stdlib.h | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 90e0bfb..83851a7 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,9 @@
 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
 
+	* libc/include/stdlib.h (alloc_aligned): Declare.
+
+2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
+
 	* libc/include/stdlib.h (at_quick_exit): Declare.
 	(quick_exit): Likewise.
 	* libc/stdlib/Makefile.am (GENERAL_SOURCES): Add
diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h
index 859c844..51a6f0a 100644
--- a/newlib/libc/include/stdlib.h
+++ b/newlib/libc/include/stdlib.h
@@ -284,6 +284,8 @@ extern long double strtold (const char *__restrict, char **__restrict);
  * If we're in a mode greater than C99, expose C11 functions.
  */
 #if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L
+void *	aligned_alloc(size_t, size_t) __malloc_like __alloc_align(1)
+	    __alloc_size(2);
 int	at_quick_exit(void (*)(void));
 _Noreturn void
 	quick_exit(int);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-19 12:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-19 12:11 [newlib-cygwin] C11 aligned_alloc() support for <stdlib.h> Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).