mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@infradead.org>
To: Ahmed Soliman <ahmedsoliman0x666@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: how does 0x##p##q work
Date: Fri, 24 Jul 2015 09:58:18 -0700	[thread overview]
Message-ID: <55B26EAA.70209@infradead.org> (raw)
In-Reply-To: <CAAGnT3YNz+QYaSRPV6Led+HL0rUeva=QwqbVgVSm1tLAFxD0rg@mail.gmail.com>

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

      reply	other threads:[~2015-07-24 16:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-24 16:02 Ahmed Soliman
2015-07-24 16:58 ` Randy Dunlap [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55B26EAA.70209@infradead.org \
    --to=rdunlap@infradead.org \
    --cc=ahmedsoliman0x666@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome