From owner-svn-src-all@FreeBSD.ORG Sun Dec 25 21:05:36 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 275251065676; Sun, 25 Dec 2011 21:05:36 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EBB438FC14; Sun, 25 Dec 2011 21:05:35 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pBPL5ZcC075691; Sun, 25 Dec 2011 21:05:35 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pBPL5Z6N075689; Sun, 25 Dec 2011 21:05:35 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201112252105.pBPL5Z6N075689@svn.freebsd.org> From: Ed Schouten Date: Sun, 25 Dec 2011 21:05:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r228882 - head/include X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2011 21:05:36 -0000 Author: ed Date: Sun Dec 25 21:05:35 2011 New Revision: 228882 URL: http://svn.freebsd.org/changeset/base/228882 Log: Make white space in this file a bit more consistent. Remove trailing whitespace and place all macro definitions at the same column. Modified: head/include/stdatomic.h Modified: head/include/stdatomic.h ============================================================================== --- head/include/stdatomic.h Sun Dec 25 21:00:56 2011 (r228881) +++ head/include/stdatomic.h Sun Dec 25 21:05:35 2011 (r228882) @@ -42,7 +42,7 @@ #endif #ifdef __GNUC_ATOMICS -#define _Atomic(T) struct { volatile T __val; } +#define _Atomic(T) struct { volatile T __val; } #endif /* @@ -50,11 +50,11 @@ */ #if defined(__CLANG_ATOMICS) -#define ATOMIC_VAR_INIT(value) (value) -#define atomic_init(obj, value) __atomic_init(obj, value) +#define ATOMIC_VAR_INIT(value) (value) +#define atomic_init(obj, value) __atomic_init(obj, value) #elif defined(__GNUC_ATOMICS) -#define ATOMIC_VAR_INIT(value) { .__val = (value) } -#define atomic_init(obj, value) (obj = ATOMIC_VAR_INIT(value)) +#define ATOMIC_VAR_INIT(value) { .__val = (value) } +#define atomic_init(obj, value) (obj = ATOMIC_VAR_INIT(value)) #endif /* @@ -64,29 +64,29 @@ */ #ifndef __ATOMIC_RELAXED -#define __ATOMIC_RELAXED 0 +#define __ATOMIC_RELAXED 0 #endif #ifndef __ATOMIC_CONSUME -#define __ATOMIC_CONSUME 1 +#define __ATOMIC_CONSUME 1 #endif #ifndef __ATOMIC_ACQUIRE -#define __ATOMIC_ACQUIRE 2 +#define __ATOMIC_ACQUIRE 2 #endif #ifndef __ATOMIC_RELEASE -#define __ATOMIC_RELEASE 3 +#define __ATOMIC_RELEASE 3 #endif #ifndef __ATOMIC_ACQ_REL -#define __ATOMIC_ACQ_REL 4 +#define __ATOMIC_ACQ_REL 4 #endif #ifndef __ATOMIC_SEQ_CST -#define __ATOMIC_SEQ_CST 5 +#define __ATOMIC_SEQ_CST 5 #endif /* * 7.17.3 Order and consistency. * * The memory_order_* constants that denote the barrier behaviour of the - * atomic operations. + * atomic operations. */ enum memory_order { @@ -278,9 +278,9 @@ typedef _Atomic(__uintmax_t) atomic_uin * 7.17.8 Atomic flag type and operations. */ -typedef atomic_bool atomic_flag; +typedef atomic_bool atomic_flag; -#define ATOMIC_FLAG_INIT ATOMIC_VAR_INIT(0) +#define ATOMIC_FLAG_INIT ATOMIC_VAR_INIT(0) #define atomic_flag_clear_explicit(object, order) \ atomic_store_explicit(object, 0, order)