From 07e77936d535e58b0aeb4f2a11400c1050556739 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 5 Dec 2021 16:16:21 -0800 Subject: Feat: added math library Used Plan9's libc as starting point. This cleans up dangling references due to loss of libc. --- sys/linux/riscv64/arch/types.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sys/linux/riscv64') diff --git a/sys/linux/riscv64/arch/types.h b/sys/linux/riscv64/arch/types.h index af908d2..5109adf 100644 --- a/sys/linux/riscv64/arch/types.h +++ b/sys/linux/riscv64/arch/types.h @@ -1,5 +1,17 @@ #pragma once +typedef union sys·DoubleWord sys·DoubleWord; + +/* little-endian */ +union sys·DoubleWord +{ + double x; + struct{ + uint32 lo; + uint32 hi; + }; +}; + #if 0 struct sys·Info { -- cgit v1.2.1