mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Use double_type as ptr type for UDF inlines
Cannot use common_type as it leads to segfaults when running the gcbench benchmark. There must be an alignment problem or such that seems to work most of the time but is ultimately unstable.
This commit is contained in:
parent
27bacda445
commit
d533cf6910
1 changed files with 5 additions and 5 deletions
|
@ -698,11 +698,11 @@
|
|||
;; Determine if primitive receives a pointer to a local C variable
|
||||
(define (prim/c-var-pointer p)
|
||||
(cond
|
||||
((eq? p 'Cyc-fast-plus) "common_type")
|
||||
((eq? p 'Cyc-fast-sub) "common_type")
|
||||
((eq? p 'Cyc-fast-mul) "common_type")
|
||||
((eq? p 'Cyc-fast-div) "common_type")
|
||||
((member p *udf-prims*) "common_type")
|
||||
((eq? p 'Cyc-fast-plus) "double_type")
|
||||
((eq? p 'Cyc-fast-sub) "double_type")
|
||||
((eq? p 'Cyc-fast-mul) "double_type")
|
||||
((eq? p 'Cyc-fast-div) "double_type")
|
||||
((member p *udf-prims*) "double_type")
|
||||
(else #f)))
|
||||
|
||||
;; Determine if primitive assigns (allocates) a C variable
|
||||
|
|
Loading…
Add table
Reference in a new issue