From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: byteswap.h Date: Thu, 03 Mar 2016 12:37:25 +0100 Message-ID: References: <20160302221454.GC8492@danbala.tuwien.ac.at> <20160303095041.GG8492@danbala.tuwien.ac.at> <20160303095852.GH8492@danbala.tuwien.ac.at> <20160303101005.GI8492@danbala.tuwien.ac.at> <20160303111840.GJ8492@danbala.tuwien.ac.at> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 10CB52651E4 for ; Thu, 3 Mar 2016 12:37:26 +0100 (CET) In-Reply-To: <20160303111840.GJ8492@danbala.tuwien.ac.at> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Thomas Klausner Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Thu, 03 Mar 2016 12:18:40 +0100, Thomas Klausner wrote: > > On Thu, Mar 03, 2016 at 11:21:05AM +0100, Takashi Iwai wrote: > > On Thu, 03 Mar 2016 11:10:05 +0100, > > Thomas Klausner wrote: > > > > > > On Thu, Mar 03, 2016 at 11:01:23AM +0100, Takashi Iwai wrote: > > > > Applied now. Thanks. > > > > > > Thank you! > > > > > > Next big issue: Many places include byteswap.h to get bswap_16, > > > bswap_32, bswap_64. > > > > > > This header does not exist on *BSD or Solaris. > > > > > > However, all of these provide similar macros under different names, > > > from different header files (bswap16 etc, or BSWAP_16). > > > > > > Do you want a compat header, e.g. include/bswap.h that takes care of > > > this and is included by local.h, or do you prefer a different > > > solution? > > > > bswap.h looks better ATM. Let's see. > > Ok, here's my try for a version of bswap.h. Does it look ok? Looks good to me -- supposing you tested it actually :) Takashi