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.

26 lines
763 B

  1. //-----------------------------------------------------------------------------
  2. //
  3. // This file contains headers for routines that emulate MMX instructions.
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997.
  6. //
  7. //-----------------------------------------------------------------------------
  8. // union for playing with 16 bit multiplies
  9. typedef union tagVAL32 {
  10. INT32 i;
  11. struct {
  12. INT16 l;
  13. INT16 h;
  14. } i16;
  15. } VAL32;
  16. UINT16 MMX_addsw(INT16 x, INT16 y);
  17. INT16 MMX_addusw(UINT16 x, UINT16 y);
  18. UINT16 MMX_cmpeqw(INT16 x, INT16 y);
  19. UINT16 MMX_cmpgtw(INT16 x, INT16 y);
  20. INT16 MMX_mulhw(INT16 x, INT16 y);
  21. INT16 MMX_mullw(INT16 x, INT16 y);
  22. INT16 MMX_subsw(INT16 x, INT16 y);
  23. UINT16 MMX_subusw(UINT16 x, UINT16 y);