- complier 编译原理词法分析器 编译原理词法分析器 以简单的Pascal语言为蓝本
- ssd5_exercise456 ssd5的练习4
- SSD5-2Recommended-Exercise-1 SSD5 2Recommended Exercise 1 文件 包括homework.cpp和 homeworklist.cpp 和date.c
- mach-mini2440 mini2440驱动配置
- HA_InteloreRARPR_CZ 【软件信息】 软件名称:RAR Password Recovery 软件版本:V1.1 RC10 适用平台:Windows 9x/ME/NT/2000/XP 官方网站:http://www.intelore.com/ 功能简介: RAR Password Recovery 是一个可以帮助你快速的找回丢失或者忘记的RAR/WinRAR压缩包的解压缩密码的密码破译工具
- New WinRAR ZIP archive If you want to connect with internet later
文件名称:Copimtion
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:10.38kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
C代码优化方案
目录 __ 2
C代码优化方案__ 4
1、选择合适的算法和数据结构__ 4
2、使用尽量小的数据类型__ 5
3、减少运算的强度__ 5
(1)、查表(游戏程序员必修课)_ 5
(2)、求余运算__ 6
(3)、平方运算__ 6
(4)、用移位实现乘除法运算__ 6
(5)、避免不必要的整数除法__ 8
(6)、使用增量和减量操作符__ 8
(7)、使用复合赋值表达式__ 8
(8)、提取公共的子表达式__ 9 -C code optimization program directory catalog __ 2 C code optimization program __ 41, select the appropriate algorithms and data structures __ 42, the use of data types as small as possible __ 53, __ to reduce the intensity of operations 5 (1 ), look-up table (game programmer required course) _ 5 (2), to request the operator __ 6 (3), square computing __ 6 (4), with a shift to achieve operational __ Multiplication and Division 6 (5) avoid unnecessary integer division __ 8 (6), increment and decrement operators to use __ 8 (7), using compound assignment expressions __ 8 (8), common subexpression extraction __ 9
目录 __ 2
C代码优化方案__ 4
1、选择合适的算法和数据结构__ 4
2、使用尽量小的数据类型__ 5
3、减少运算的强度__ 5
(1)、查表(游戏程序员必修课)_ 5
(2)、求余运算__ 6
(3)、平方运算__ 6
(4)、用移位实现乘除法运算__ 6
(5)、避免不必要的整数除法__ 8
(6)、使用增量和减量操作符__ 8
(7)、使用复合赋值表达式__ 8
(8)、提取公共的子表达式__ 9 -C code optimization program directory catalog __ 2 C code optimization program __ 41, select the appropriate algorithms and data structures __ 42, the use of data types as small as possible __ 53, __ to reduce the intensity of operations 5 (1 ), look-up table (game programmer required course) _ 5 (2), to request the operator __ 6 (3), square computing __ 6 (4), with a shift to achieve operational __ Multiplication and Division 6 (5) avoid unnecessary integer division __ 8 (6), increment and decrement operators to use __ 8 (7), using compound assignment expressions __ 8 (8), common subexpression extraction __ 9
(系统自动生成,下载前可以参看下载内容)
下载文件列表
C代码优化.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.