From owner-freebsd-current@FreeBSD.ORG Wed Nov 6 07:24:46 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E998FB1E for ; Wed, 6 Nov 2013 07:24:46 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BC3722792 for ; Wed, 6 Nov 2013 07:24:46 +0000 (UTC) Received: from xyf.my.dom (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rA67OjD0081576 for ; Wed, 6 Nov 2013 07:24:46 GMT (envelope-from davidxu@freebsd.org) Message-ID: <5279EEC3.1070403@freebsd.org> Date: Wed, 06 Nov 2013 15:24:51 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130416 Thunderbird/17.0.5 MIME-Version: 1.0 To: FreeBSD Current Subject: how to know atomic_cmpset_64 is defined Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Nov 2013 07:24:47 -0000 Hi, I want to use atomic_cmpset_64, but some arch may not support it, Is there a way to figure out that atomic_cmpset_64 is defined when compiling ? Regards, David Xu