@quadible/web-sdk
Version:
The web sdk for Quadible's behavioral authentication service.
10 lines (9 loc) • 470 B
TypeScript
/**
* Unlike most other architectures, on x86/x86-64 when floating-point instructions
* have no NaN arguments, but produce NaN output, the output NaN has sign bit set.
* We use it to distinguish x86/x86-64 from other architectures, by doing subtraction
* of two infinities (must produce NaN per IEEE 754 standard).
*
* See https://codebrowser.bddppq.com/pytorch/pytorch/third_party/XNNPACK/src/init.c.html#79
*/
export default function getArchitecture(): number;