# Arithmetic Operations (Floating Point)

**Visual Studio 2005**

**Microsoft Specific**

The operations listed in the following table are followed by descriptions of each intrinsic.

SSE2 intrinsics use the __m128, __m128i, and __m128d data types, which are not supported on Itanium Processor Family (IPF) processors. Any SSE2 intrinsics that use the __m64 data type are not supported on x64 processors.

The emmintrin.h header file contains the declarations for the SSE2 instructions intrinsics.

**Arithmetic Operation Intrinsics**

Intrinsic name | Corresponding instruction | Operation | R0 value | R1 value |
---|---|---|---|---|

ADDSD | Adds |
a0 [op] b0 |
a1 | |

ADDPD | Adds |
a0 [op] b0 |
a1 [op] b1 | |

DIVSD | Divides |
a0 [op] b0 |
a1 | |

DIVPD | Divides |
a0 [op] b0 |
a1 [op] b1 | |

MAXSD | Computes maximum |
a0 [op] b0 |
a1 | |

MAXPD | Computes maximum |
a0 [op] b0 |
a1 [op] b1 | |

MINSD | Computes minimum |
a0 [op] b0 |
a1 | |

MINPD | Computes minimum |
a0 [op] b0 |
a1 [op] b1 | |

MULSD | Multiplies |
a0 [op] b0 |
a1 | |

MULPD | Multiplies |
a0 [op] b0 |
a1 [op] b1 | |

SQRTSD | Computes square root |
a0 [op] b0 |
a1 | |

SQRTPD | Computes square root |
a0 [op] b0 |
a1 [op] b1 | |

SUBSD | Subtracts |
a0 [op] b0 |
a1 | |

SUBPD | Subtracts |
a0 [op] b0 |
a1 [op] b1 |

For an explanation of the syntax used in code samples in this topic, see Floating-Point Intrinsics Using Streaming SIMD Extensions.