Fetch floating point status

From , 4 Years ago, written in C, viewed 52 times.
URL https://pastebin.vip/view/43e4e6a6
  1. #include <stdio.h>
  2. #include <float.h>
  3.  
  4. int main(void)
  5. {
  6.    float x;
  7.    double y = 1.5e-100;
  8.  
  9.    printf("Status 87 before error: %x\n", _status87());
  10.  
  11.    x = y;  /* <-- force an error to occur */
  12.    y = x;
  13.  
  14.    printf("Status 87 after error : %x\n", _status87());
  15.    return 0;
  16. }
  17.  

Reply to "Fetch floating point status"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website