Leaked source code of windows server 2003
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.

44 lines
820 B

  1. #include "ksia64.h"
  2. LEAF_ENTRY (ChkSum)
  3. alloc t22 = ar.pfs, 3, 0, 0, 0
  4. mov t10 = 0xffff
  5. zxt4 a2 = a2
  6. ;;
  7. cmp4.eq pt0 = zero, a2
  8. zxt4 a0 = a0
  9. (pt0) br.cond.spnt cs20
  10. cs10:
  11. ld2 t0 = [a1], 2
  12. add a2 = -1, a2
  13. ;;
  14. add a0 = t0, a0
  15. ;;
  16. cmp4.ne pt1 = zero, a2
  17. extr.u t1 = a0, 16, 16
  18. and t2 = a0, t10
  19. ;;
  20. add a0 = t1, t2
  21. nop.f 0
  22. (pt1) br.cond.sptk cs10
  23. ;;
  24. cs20:
  25. nop.m 0
  26. extr.u t1 = a0, 16, 16
  27. ;;
  28. add a0 = t1, a0
  29. ;;
  30. nop.m 0
  31. and v0 = a0, t10
  32. br.ret.sptk brp
  33. LEAF_EXIT (ChkSum)