fpconst.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:p2pool-bch 作者: amarian12 项目源码 文件源码
def _zero_mantissa(dval):
    """Determine whether the mantissa bits of the given double are all
    zero."""
    bb = _double_as_bytes(dval)
    return ((bb[1] & 0x0f) | reduce(operator.or_, bb[2:])) == 0

##
## Functions to test for IEEE 754 special values
##
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号