摘要: Simulation BasicCircuitSimulation CircuitSimulation MySimulation 测试结果: 测试结果: 模拟电路的半加器 阅读全文
posted @ 2019-06-26 22:20 cutter_point 阅读(293) 评论(1) 推荐(0)
摘要: 前提知识 写在前面,为什么num&(length - 1) 在length是2的n次幂的时候等价于num%length n - 1意味着比n最高位小的位都为1,而高的位都为0,因此通过与可以剔除位数比n最高位更高的部分,只保留比n最高位小的部分,也就是取余了。 而且用位运算取代%,效率会比较高。 基 阅读全文
posted @ 2019-06-26 18:10 cutter_point 阅读(3328) 评论(0) 推荐(0)