Source code of Windows XP (NT5)
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.

47 lines
1.0 KiB

  1. //##########################################################################
  2. //**
  3. //** Copyright (C) 1996-2000 Intel Corporation. All rights reserved.
  4. //**
  5. //** The information and source code contained herein is the exclusive
  6. //** property of Intel Corporation and may not be disclosed, examined
  7. //** or reproduced in whole or in part without explicit written authorization
  8. //** from the company.
  9. //**
  10. //###########################################################################
  11. .file "fpsr.s"
  12. .section .text
  13. .align 32
  14. .proc __set_fpsr#
  15. .global __set_fpsr#
  16. __set_fpsr:
  17. alloc r31=ar.pfs,1,1,0,0 // r32, r33
  18. // &fpsr is in r32
  19. // load new fpsr in r33
  20. ld8 r33 = [r32];;
  21. // set new value of FPSR
  22. mov ar40 = r33;;
  23. // return
  24. br.ret.sptk b0
  25. .endp __set_fpsr
  26. .proc __get_fpsr#
  27. .global __get_fpsr#
  28. __get_fpsr:
  29. alloc r31=ar.pfs,1,1,0,0 // r32, r33
  30. // &fpsr is in r32
  31. // get old value of FPSR
  32. mov r33 = ar40;;
  33. // store new fpsr from r33
  34. st8 [r32] = r33;;
  35. // return
  36. br.ret.sptk b0
  37. .endp __get_fpsr