mirror of
https://github.com/micropython/micropython.git
synced 2025-09-07 18:30:27 +02:00
13 lines
116 B
C
13 lines
116 B
C
#include "libm.h"
|
|
|
|
int __signbitd(double x)
|
|
{
|
|
union {
|
|
double d;
|
|
uint64_t i;
|
|
} y = { x };
|
|
return y.i>>63;
|
|
}
|
|
|
|
|