[cfe-commits] r99648 - /cfe/trunk/lib/Headers/mm_malloc.h
Daniel Dunbar
daniel at zuster.org
Fri Mar 26 13:17:17 PDT 2010
Author: ddunbar
Date: Fri Mar 26 15:17:17 2010
New Revision: 99648
URL: http://llvm.org/viewvc/llvm-project?rev=99648&view=rev
Log:
Fix 80 col violations.
Modified:
cfe/trunk/lib/Headers/mm_malloc.h
Modified: cfe/trunk/lib/Headers/mm_malloc.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/mm_malloc.h?rev=99648&r1=99647&r2=99648&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/mm_malloc.h (original)
+++ cfe/trunk/lib/Headers/mm_malloc.h Fri Mar 26 15:17:17 2010
@@ -27,7 +27,8 @@
#include <errno.h>
#include <stdlib.h>
-static __inline__ void *__attribute__((__always_inline__, __nodebug__)) _mm_malloc(size_t size, size_t align)
+static __inline__ void *__attribute__((__always_inline__, __nodebug__))
+_mm_malloc(size_t size, size_t align)
{
if (align & (align - 1)) {
errno = EINVAL;
@@ -44,13 +45,15 @@
if (!mallocedMemory)
return 0;
- void *alignedMemory = (void *)(((size_t)mallocedMemory + align) & ~((size_t)align - 1));
+ void *alignedMemory =
+ (void *)(((size_t)mallocedMemory + align) & ~((size_t)align - 1));
((void **)alignedMemory)[-1] = mallocedMemory;
return alignedMemory;
}
-static __inline__ void __attribute__((__always_inline__, __nodebug__)) _mm_free(void *p)
+static __inline__ void __attribute__((__always_inline__, __nodebug__))
+_mm_free(void *p)
{
if (p)
free(((void **)p)[-1]);
More information about the cfe-commits
mailing list