26 lines · 761 B · Text
RawDownload
// *** disabled due to different isnan on different architecture ***// *** for example, the following isnan() returns 1 on Mac intel but 0 on Mac M1 *** // float div-by-zero<<< Math.isinf(1./0) >>>;<<< Math.isinf(1/0.) >>>;<<< Math.isnan(0./0) >>>;<<< Math.isnan(0/0.) >>>;// vec div-by-zero@(1,1,1)/0 => vec3 v;<<< Math.isinf(v.x), Math.isinf(v.y), Math.isinf(v.z) >>>;@(1,0,1,0)/0 => vec4 v4;<<< Math.isinf(v4.x), Math.isnan(v4.y), Math.isinf(v4.z), Math.isnan(v4.w) >>>;// complex div-by-zero#(1,1) / 0 => complex c;<<< Math.isnan(c.re), Math.isnan(c.im) >>>;#(1,1) / #(0,0) => c;<<< Math.isnan(c.re), Math.isnan(c.im) >>>;// polar div-by-zero0 => polar p;p /=> p;<<< Math.isnan(p.mag), p.phase >>>; // integer div-by-zero<<< 1/0 >>>;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t