查找表 [英] lookup tables

查看:69
本文介绍了查找表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是查找表?它们如何用于优化代码?

解决方案



ju ********** @ yahoo.co.in 写道:

什么是查找表?它们如何用于优化代码?



它主要用于比特摆弄。

参见常见问题解答--20.12和20.13
@ http://www.eskimo .com / ~scs / C-faq / top.html


- Ravi


ju**********@yahoo.co.in 写道:< blockquote class =post_quotes>什么是查找表?它们如何用于优化代码?



请自己做作业。


你已经在这里发布了所有关于作业的问题:

1:结构中变量之间的填充

2:多个返回语句Vs goto''s

3:写出优化代码

4:寄存器变量

5:与字符串指针有关的疑问。

6:哪个更好切换或者if-else




jacob navia写道:

ju ********** @ yahoo.co.in 写道:

什么是查找表?如何使用它们来优化代码


请自己做作业。

你已经在这里发布了所有关于作业的问题:
1:结构中变量之间的填充
2:多个返回语句Vs goto'的
3:写一个优化的代码
4:注册变量
5:怀疑相关的字符串指针。
6:哪个更好切换。或者if-else




我确实在网上搜索答案但是越来越混淆了。

所以,我想到了将它们发布在这里。


what are lookup tables ? How can they be used to optimise the code ?

解决方案



ju**********@yahoo.co.in wrote:

what are lookup tables ? How can they be used to optimise the code ?


Its mainly used for bit fiddling.
See the FAQ''s - 20.12 and 20.13
@ http://www.eskimo.com/~scs/C-faq/top.html

- Ravi


ju**********@yahoo.co.in wrote:

what are lookup tables ? How can they be used to optimise the code ?


Please do your own homework.

You have posted all the questions of your homework here:
1: padding between variables in a structure
2: Multiple return statements Vs goto''s
3: wrinting an optimised code
4: register variables
5: doubt related to string pointers.
6: which is better "switch" or "if-else"



jacob navia wrote:

ju**********@yahoo.co.in wrote:

what are lookup tables ? How can they be used to optimise the code ?


Please do your own homework.

You have posted all the questions of your homework here:
1: padding between variables in a structure
2: Multiple return statements Vs goto''s
3: wrinting an optimised code
4: register variables
5: doubt related to string pointers.
6: which is better "switch" or "if-else"



I did search the answers on net but got confused more and more.
So, I thought to post them here.


这篇关于查找表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆