Browse code

- minor typos

Andrei Pelinescu-Onciul authored on 30/05/2007 21:50:39
Showing 1 changed files
... ...
@@ -25,15 +25,15 @@
25 25
  *                          Example: if (likely(p!=NULL)) {... }
26 26
  *   unlikely(expr)       - branch prediction optimization - is unlikely that 
27 27
  *                          expr will be true, so optimize for this case
28
- *   prefetch(addr)        - will prefetch addr for reading
29
- *   prefetch_w(addr)      - will prefetch add for writing
28
+ *   prefetch(addr)        - will prefetch addr. for reading
29
+ *   prefetch_w(addr)      - will prefetch addr. for writing
30 30
  *   prefetch_loc_r(addr, loc) - prefetch for reading, data at addr has
31 31
  *                                no temporal locality (loc==0), a short
32 32
  *                                degree of temporal locality (loc==1), 
33 33
  *                                moderate (loc==2) or high (loc==3).
34 34
  *                                prefetch(addr) is equiv. to 
35 35
  *                                prefetch_loc_r(addr, 3).
36
- *  prefetch_loc_r(addr, loc) - like above but for writing.
36
+ *  prefetch_loc_w(addr, loc) - like above but for writing.
37 37
  */
38 38
 /* 
39 39
  * History:
... ...
@@ -49,7 +49,7 @@
49 49
 #define unlikely(expr)            __builtin_expect(!!(expr), 0)
50 50
 
51 51
 #define prefetch(addr)            __builtin_prefetch((addr))
52
-#define prefecth_w(addr)          __builtin_prefetch((addr), 1)
52
+#define prefetch_w(addr)          __builtin_prefetch((addr), 1)
53 53
 #define prefetch_loc_r(addr, loc) __builtin_prefetch((addr), 0, (loc))
54 54
 #define prefetch_loc_w(addr, loc) __builtin_prefetch((addr), 1, (loc))
55 55
 
... ...
@@ -60,7 +60,7 @@
60 60
 #define unlikely(expr) (expr)
61 61
 
62 62
 #define prefetch(addr)
63
-#define prefecth_w(addr)
63
+#define prefetch_w(addr)
64 64
 #define prefetch_loc_r(addr, loc)
65 65
 #define prefetch_loc_w(addr, loc)
66 66
 #endif /* __GNUC__ */