accomidate big-endian emulation Reference: /n/atom/patch/applied2013/fpibigend Date: Wed Jul 31 21:04:00 CES 2013 Signed-off-by: quanstro@quanstro.net --- /sys/src/9/port/fpi.c Wed Jul 31 21:03:51 2013 +++ /sys/src/9/port/fpi.c Wed Jul 31 21:03:51 2013 @@ -5,6 +5,7 @@ * NB: the Internal arguments to fpisub and fpidiv are reversed from * what you might naively expect: they compute y-x and y/x, respectively. */ +#include #include "../port/fpi.h" void --- /sys/src/9/port/fpi.h Wed Jul 31 21:03:52 2013 +++ /sys/src/9/port/fpi.h Wed Jul 31 21:03:52 2013 @@ -1,10 +1,11 @@ typedef long Word; typedef long long Vlong; typedef unsigned long Single; -typedef struct { - unsigned long l; - unsigned long h; -} Double; + +/* use u.h's FPdbleword */ +#define Double FPdbleword +#define h hi +#define l lo enum { FractBits = 28, --- /sys/src/9/port/fpimem.c Wed Jul 31 21:03:53 2013 +++ /sys/src/9/port/fpimem.c Wed Jul 31 21:03:53 2013 @@ -1,3 +1,4 @@ +#include #include "../port/fpi.h" /*