From 706c5d825a2664dd7456ab12bf368a0f4e6c16d9 Mon Sep 17 00:00:00 2001 From: slava Date: Sun, 30 Apr 2006 20:13:35 +0000 Subject: [PATCH] First approximation at x86 intrinsic definitions --- library/compiler/x86/intrinsics.factor | 393 ++++++++++++++----------- 1 file changed, 221 insertions(+), 172 deletions(-) diff --git a/library/compiler/x86/intrinsics.factor b/library/compiler/x86/intrinsics.factor index 2bb78d6c15..7e41ac6564 100644 --- a/library/compiler/x86/intrinsics.factor +++ b/library/compiler/x86/intrinsics.factor @@ -1,221 +1,270 @@ ! Copyright (C) 2005, 2006 Slava Pestov. -! See http://factor.sf.net/license.txt for BSD license. +! See http://factorcode.org/license.txt for BSD license. IN: compiler +USING: alien assembler kernel kernel-internals math +math-internals namespaces sequences ; -M: %type generate-node ( vop -- ) +\ tag [ + "in" operand tag-mask AND + "in" operand tag-bits SHL +] H{ + { +input { { f "in" } } } + { +output { "in" } } +} define-intrinsic + +\ type [ #! Intrinstic version of type primitive. - drop