Permalink
Browse files

add prefech for gcc

  • Loading branch information...
1 parent 36c6e78 commit a83ddcd22c6d60f050cccc95a6c3231376292add @RedBeard0531 RedBeard0531 committed Aug 2, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 bson/inline_decls.h
View
@@ -60,6 +60,7 @@ namespace mongo {
# define MONGO_IF(x) if( __builtin_expect((x), 0) )
inline void prefetch(void *p) {
+ __builtin_prefetch(p);
}
#endif

0 comments on commit a83ddcd

Please sign in to comment.