Advertisement
Tainel

src/base/features/pragmas.hpp

May 14th, 2023 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | Source Code | 0 0
  1. #pragma once
  2.  
  3. // Provide a simpler syntax for macro-expanded pragmas.
  4. #define PRAGMA(x)_Pragma(#x)
  5.  
  6. // Indicate how many times the next loop should be unrolled.
  7. #define UNROLL(n)PRAGMA(GCC unroll n)
  8.  
  9. // Indicate that the next loop can be safely vectorized.
  10. #define VECTORIZE PRAGMA(GCC ivdep)
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement