检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:梁凤涛 Liang Fengtao(R&D Department,Nanjing SUMEC Intelligence Technology Co.,Ltd.,Nanjing 210000,China)
机构地区:[1]南京苏美达智能技术有限公司研发部,南京210000
出 处:《单片机与嵌入式系统应用》2023年第9期65-66,共2页Microcontrollers & Embedded Systems
摘 要:针对环形队列入队、出队时取余运算耗时问题,提出一种使用按位与运算的方法,大大缩短了入队、出队耗时;针对批量写入/读出数据时,使用单字节方式效率低的缺点,提出了一种对队列一次性读/写多字节的实现方式。实际测试结果表明,本文提出的方法耗时更少、执行效率更高。In order to solve the problem of time consuming in the process of queue entry and queue exit,this paper proposes a method of bit-sum operation,which greatly reduces the time consuming in queue entry and queue exit.In view of the low efficiency of using single byte mode when writing and reading data in batch,this paper proposes a way to read and write multiple bytes in a queue at one time.The actual test shows that the proposed method is less time-consuming and more efficient.
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.7