You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Then 'Quadmath_examples' will be listed in the JuliaBox home screen. The example
20
20
+`ccall` does not treat parameters and returning values of Julia type `Float128` as C type `__float128` as it would
21
21
be appropriate.
22
22
23
-
Unfortunately, this is a bug which cannot easily be fixed.
23
+
Unfortunately, this is a bug which cannot easily be fixed without modifying the internals of Julia.
24
24
The [x86-64 Application Binary Interface](http://www.x86-64.org/documentation.html)
25
25
says that parameters and returning values of type `__float128` should be passed preferably in the (128 bit long) SSE floating point registers `xmm0`,...,`xmm7`. However, for the datatype `Float128` defined as
26
26
```julia
@@ -36,8 +36,9 @@ Then 'Quadmath_examples' will be listed in the JuliaBox home screen. The example
36
36
```
37
37
in C.
38
38
39
-
A remedy is to implement a wrapper functionfor each external function with `__float128` parameters or return values,
40
-
that you want to call by `ccall`. Such a wrapper takes parameters `x` of type `myfloat128` declared as
39
+
As a remedy, you can implement a wrapper functionfor each external function with `__float128` parameters
40
+
or return values, that you want to call with `ccall`. Such a wrapper takes parameters `x` of type
41
+
`myfloat128` declared as
41
42
```c
42
43
typedef union
43
44
{
@@ -49,7 +50,7 @@ Then 'Quadmath_examples' will be listed in the JuliaBox home screen. The example
49
50
} words64;
50
51
} myfloat128;
51
52
```
52
-
and calls the original function with `x.value` as actual parameter for the coorresponding formal parameter of type
53
+
and calls the original function with `x.value` as actual parameter for the corresponding formal parameter of type
0 commit comments