C/C++ 中restrict修饰符的作用?下面代码用了restrict ...

发布于 2022-03-02 16:55:27

C/C++ 中restrict修饰符的作用?下面代码用了restrict 比没用,会少几条执行指令?

 

                                             int net_add(int *restrict a, int *restrict b)

                                             {

                                                     *a = 10

                                                     *b = 12

                                                      return *a + *b

                                              }

关注者
0
被浏览
34
知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看