OSDN Git Service

Only use __builtin_expect if __GNUC__ > 3
authorTheodore Ts'o <tytso@mit.edu>
Sun, 13 Jul 2008 12:05:54 +0000 (08:05 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 13 Jul 2008 20:06:56 +0000 (16:06 -0400)
commit387df00577fa94f49da58bc74de4f9c4afd2cb41
treea01339de91344db7eaefe7c469f716567b0f039d
parent1911bf113ef0f9c71090f26279e4a4082fae0abc
Only use __builtin_expect if __GNUC__ > 3

Gcc only supports __builtin_expect for gcc versions 2.96 and up.
Since it's tricky to check for gcc 2.95 vs 2.96 (and either are only
used on really ancient systems anyway), we only use this optimization
on 3.x and newer versions of gcc.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/crc32defs.h