lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <55B26EAA.70209@infradead.org>
Date:	Fri, 24 Jul 2015 09:58:18 -0700
From:	Randy Dunlap <rdunlap@...radead.org>
To:	Ahmed Soliman <ahmedsoliman0x666@...il.com>,
	linux-kernel@...r.kernel.org
Subject: Re: how does 0x##p##q work

On 07/24/15 09:02, Ahmed Soliman wrote:
> I was working on cleaning up some files in the crypto dirctory using
> checkpatch.pl
> and I found this strange define in crypto/gf128mul.c
> #define xx(p, q) 0x##p##q
> It just seems really weird macro and I cant figure out what is it
> supposed to do!!

## is defined in any complete C language spec (it's a preprocessor directive).

It is used for string concatenation, aka pasting or gluing strings together.

google can find lots of references for it if you need more info.

-- 
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ