Pergunta de entrevista da empresa NetApp

What does this code do and what is the pattern of its results? #define func(s) (s) & ((~s) + 1)