From: khizmax Date: Wed, 14 Sep 2016 20:47:52 +0000 (+0300) Subject: Fixed padding calculation X-Git-Tag: v2.2.0~130 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=08b0cd9bc9ff4bc5cf8ca3a179ee3d7491176627;p=libcds.git Fixed padding calculation --- diff --git a/cds/opt/options.h b/cds/opt/options.h index 7a124aa2..ae971a58 100644 --- a/cds/opt/options.h +++ b/cds/opt/options.h @@ -404,6 +404,26 @@ namespace opt { //@endcond }; + //@cond + template + struct actual_padding + { + enum { value = Padding & ~padding_flags }; + }; + + template <> + struct actual_padding + { + enum { value = cds::c_nCacheLineSize }; + }; + + template <> + struct actual_padding + { + enum { value = cds::c_nCacheLineSize }; + }; + //@endcond + //@cond namespace details { enum padding_vs_datasize {