Author: | slava |
---|---|
Mode: | factor |
Date: | Thu, 1 Oct 2009 23:55:11 |
#include <xmmintrin.h> #include <stdio.h> int main() { _MM_SET_EXCEPTION_MASK(_MM_GET_EXCEPTION_MASK() & ~(_MM_MASK_DIV_ZERO)); double a = 1.0; double b = 0.0; __asm__("divsd %1, %0" : "+x" (a) : "x" (b)); printf("%f\n",a); return 0; }