xor.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Optimized RAID-5 checksumming functions for IA-64.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2, or (at your option)
  7. * any later version.
  8. *
  9. * You should have received a copy of the GNU General Public License
  10. * (for example /usr/src/linux/COPYING); if not, write to the Free
  11. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  12. */
  13. extern void xor_ia64_2(unsigned long, unsigned long *, unsigned long *);
  14. extern void xor_ia64_3(unsigned long, unsigned long *, unsigned long *,
  15. unsigned long *);
  16. extern void xor_ia64_4(unsigned long, unsigned long *, unsigned long *,
  17. unsigned long *, unsigned long *);
  18. extern void xor_ia64_5(unsigned long, unsigned long *, unsigned long *,
  19. unsigned long *, unsigned long *, unsigned long *);
  20. static struct xor_block_template xor_block_ia64 = {
  21. .name = "ia64",
  22. .do_2 = xor_ia64_2,
  23. .do_3 = xor_ia64_3,
  24. .do_4 = xor_ia64_4,
  25. .do_5 = xor_ia64_5,
  26. };
  27. #define XOR_TRY_TEMPLATES xor_speed(&xor_block_ia64)