Skip to end of banner
Go to start of banner

Known issues

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Power function

The following program gives slightly different results on win/arm64 vs win/x86 and wsl/arm64.

This specific issue is found while running numpy test suite.

#include <stdio.h>
#include <math.h>

int main(){
   double x = 0.5;
   double y = 1022 + 52;
   double z = pow(x, y);
   printf("%.1024f\n",z);
}
Output:

win/arm64: 0.000...000
wsl/arm64: 0.000...903
win/x64  : 0.000...903

Compiler: 
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30038.1 for ARM64

  • No labels