mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
b892cda2b1
in the mono/tests/ subdirectory, and it no longer hangs or dies with weird errors. (And, yes, I do have garbage collecting enabled). I'll let the C# user community be my judge. There still may be some issues since boehm-gc isn't fully functional in its multi-threaded state on FreeBSD.
36 lines
687 B
Plaintext
36 lines
687 B
Plaintext
--- mono/mini/mini-x86.c Mon Sep 29 05:28:49 2003
|
|
+++ mono/mini/mini-x86.c Sat Aug 30 04:01:27 2003
|
|
@@ -40,6 +40,32 @@
|
|
guint8 pad;
|
|
} MonoJitArgumentInfo;
|
|
|
|
+union IEEEd2bits {
|
|
+ double d;
|
|
+ struct {
|
|
+#if _BYTE_ORDER == _LITTLE_ENDIAN
|
|
+ unsigned int manl :32;
|
|
+ unsigned int manh :20;
|
|
+ unsigned int exp :11;
|
|
+ unsigned int sign :1;
|
|
+#else
|
|
+ unsigned int sign :1;
|
|
+ unsigned int exp :11;
|
|
+ unsigned int manh :20;
|
|
+ unsigned int manl :32;
|
|
+#endif
|
|
+ } bits;
|
|
+};
|
|
+
|
|
+int
|
|
+signbit(double d)
|
|
+{
|
|
+ union IEEEd2bits u;
|
|
+
|
|
+ u.d = d;
|
|
+ return (u.bits.sign);
|
|
+}
|
|
+
|
|
/*
|
|
* arch_get_argument_info:
|
|
* @csig: a method signature
|