首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏蓝天

    严格别名规则“-fstrict-aliasing”和“-fno-strict-aliasing”及类型双关

    采用类型相关(type-punning),手段是采用联合体union,比如下面这种类型相关的用法是安全的: #include union X { int m; short s; }; int main

    2.2K30发布于 2019-03-14
  • 来自专栏有文化的技术人

    Memcache内存分配机制

    nkey; /* key length, w/terminating null and padding */ /* this odd type prevents type-punning

    99120编辑于 2022-10-27
  • 来自专栏JavaEdge

    Memcached内存管理源码分析

    uint8_t slabs_clsid; //item所在的slabclass的id值 uint8_t nkey; //键长 /* this odd type prevents type-punning

    66931发布于 2019-02-15
领券