Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 05 Nov 2013 23:58:04 +0100
From: magnum <john.magnum@...hmail.com>
To: john-dev@...ts.openwall.com
Subject: Re: MAYBE_INLINE

On 2013-11-04 23:45, magnum wrote:
> Solar,
>(...)
> Do you have a suggestion? Otherwise I'll revert to the #if we used in
> Jumbo before, and add an __INTEL_COMPILER check to solve the icc
> problem. Maybe like this (untested):
>
> #ifdef __GNUC__
> #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7) || defined(__INTEL_COMPILER)
> #define MAYBE_INLINE __attribute__((always_inline)) inline
> #elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
> #define MAYBE_INLINE __attribute__((always_inline))
> #else
> #define MAYBE_INLINE __inline__
> #endif
> #elif __STDC_VERSION__ >= 199901L
> #define MAYBE_INLINE inline
> #else
> #define MAYBE_INLINE
> #endif

I committed the above for now.

magnum

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.