XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load. https://xcache.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
445 B

  1. #ifndef __ALIGN_H
  2. #define __ALIGN_H
  3. #ifndef ALIGN
  4. typedef union align_union {
  5. double d;
  6. void *v;
  7. int (*func)(int);
  8. long l;
  9. } align_union;
  10. #if (defined (__GNUC__) && __GNUC__ >= 2)
  11. #define XCACHE_PLATFORM_ALIGNMENT (__alignof__ (align_union))
  12. #else
  13. #define XCACHE_PLATFORM_ALIGNMENT (sizeof(align_union))
  14. #endif
  15. #define ALIGN(n) ((((size_t)(n)-1) & ~(XCACHE_PLATFORM_ALIGNMENT-1)) + XCACHE_PLATFORM_ALIGNMENT)
  16. #endif
  17. #endif /* __ALIGN_H */