Sigrid Solveig Haflínudóttirnpe: add fmaxffcac543 years agoHistory
16 lines · 255 B · C
RawDownload
#include <math.h>/* taken from musl */ #define _sign(d) (*((u64int*)d) & (1ULL<<63)) doublefmax(double x, double y){	if(isNaN(x))		return y;	if(isNaN(y))		return x;	if(_sign(&x) != _sign(&y))		return _sign(&x) ? y : x;	return x < y ? y : x;}

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