lbnalpha.h 846 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 1995 Colin Plumb. All rights reserved.
  3. * For licensing and other legal details, see the file legal.c.
  4. *
  5. * lbnalpha.h - header file that declares the Alpha assembly-language
  6. * subroutines. It is intended to be included via the BNINCLUDE
  7. * mechanism.
  8. */
  9. #define BN_LITTLE_ENDIAN 1
  10. typedef unsigned long bnword64;
  11. #define BNWORD64 bnword64
  12. #ifdef __cplusplus
  13. /* These assembly-language primitives use C names */
  14. extern "C" {
  15. #endif
  16. void lbnMulN1_64(bnword64 *out, bnword64 const *in, unsigned len, bnword64 k);
  17. #define lbnMulN1_64 lbnMulN1_64
  18. bnword64
  19. lbnMulAdd1_64(bnword64 *out, bnword64 const *in, unsigned len, bnword64 k);
  20. #define lbnMulAdd1_64 lbnMulAdd1_64
  21. bnword64
  22. lbnMulSub1_64(bnword64 *out, bnword64 const *in, unsigned len, bnword64 k);
  23. #define lbnMulSub1_64 lbnMulSub1_64
  24. #ifdef __cplusplus
  25. }
  26. #endif