diff options
author | Andy Wingo <wingo@pobox.com> | 2019-08-24 11:37:17 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2019-08-24 11:56:18 +0200 |
commit | b1564df298dbdd261e880837c89f04d3d82879ea (patch) | |
tree | a614f15de77aef414b45d53f824fcc414f2cd8bd /libguile/strings.c | |
parent | 9e3a5c9a10d4202dabab0c93fb75d7e07201bb24 (diff) | |
download | guile-b1564df298dbdd261e880837c89f04d3d82879ea.tar.gz |
Unbox floor/ceiling and trigonometric functions where possible
* libguile/intrinsics.c (scm_atan1): New intrinsic, wrapping scm_atan.
(scm_bootstrap_intrinsics): Add new intrinsics.
* libguile/intrinsics.h (scm_t_f64_from_f64_f64_intrinsic): New
intrinsic type.
(SCM_FOR_ALL_VM_INTRINSICS): Add intrinsics for floor, ceiling, sin,
cos, tan, asin, acos, atan, and their unboxed counterparts.
* libguile/jit.c (sp_f64_operand): New helper.
(compile_call_f64_from_f64, compile_call_f64_from_f64_f64): Call out
to intrinsics.
* libguile/vm-engine.c (call-f64<-f64-f64): New opcode.
* module/language/cps/effects-analysis.scm: Add new intrinsics.
* module/language/cps/reify-primitives.scm (compute-known-primitives):
Add new intrinsics.
* module/language/cps/slot-allocation.scm (compute-var-representations):
Add 'f64 slot types for the new unboxed intrinsics.
* module/language/cps/specialize-numbers.scm (specialize-operations):
Support unboxing the new intrinsics.
* module/language/cps/types.scm: Define type inferrers for the new
intrinsics.
* module/language/tree-il/cps-primitives.scm: Define CPS translations
for the new intrinsics.
* module/language/tree-il/primitives.scm (*interesting-primitive-names*):
(*effect-free-primitives*, atan): Define primitive resolvers.
* module/system/vm/assembler.scm: Export assemblers for the new
intrinsics.
(define-f64<-f64-f64-intrinsic): New helper.
Diffstat (limited to 'libguile/strings.c')
0 files changed, 0 insertions, 0 deletions