Back to index

plt-scheme  4.2.1
fp-common.h
Go to the documentation of this file.
00001 /******************************** -*- C -*- ****************************
00002  *
00003  *     Platform-independent layer floating-point interface
00004  *
00005  ***********************************************************************/
00006 
00007 
00008 /***********************************************************************
00009  *
00010  * Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
00011  * Written by Paolo Bonzini.
00012  *
00013  * This file is part of GNU lightning.
00014  *
00015  * GNU lightning is free software; you can redistribute it and/or modify it
00016  * under the terms of the GNU Lesser General Public License as published
00017  * by the Free Software Foundation; either version 2.1, or (at your option)
00018  * any later version.
00019  * 
00020  * GNU lightning is distributed in the hope that it will be useful, but 
00021  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00022  * or  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
00023  * License for more details.
00024  * 
00025  * You should have received a copy of the GNU Lesser General Public License
00026  * along with GNU lightning; see the file COPYING.LESSER; if not, write to the
00027  * Free Software Foundation, 59 Temple Place - Suite 330, Boston,
00028  * MA 02111-1307, USA.
00029  *
00030  ***********************************************************************/
00031 
00032 #define JIT_FPR0                   JIT_FPR(0)
00033 #define JIT_FPR1                   JIT_FPR(1)
00034 #define JIT_FPR2                   JIT_FPR(2)
00035 #define JIT_FPR3                   JIT_FPR(3)
00036 #define JIT_FPR4                   JIT_FPR(4)
00037 #define JIT_FPR5                   JIT_FPR(5)
00038 
00039 #ifdef JIT_RZERO
00040 #ifndef jit_ldi_f
00041 #define jit_ldi_f(rd, is)               jit_ldxi_f((rd), JIT_RZERO, (is))
00042 #define jit_sti_f(id, rs)               jit_stxi_f((id), JIT_RZERO, (rs))
00043 #define jit_ldi_d(rd, is)               jit_ldxi_d((rd), JIT_RZERO, (is))
00044 #define jit_sti_d(id, rs)               jit_stxi_d((id), JIT_RZERO, (rs))
00045 #endif
00046 
00047 #ifndef jit_ldr_f
00048 #define jit_ldr_f(rd, rs)               jit_ldxr_f((rd), JIT_RZERO, (rs))
00049 #define jit_str_f(rd, rs)               jit_stxr_f((rd), JIT_RZERO, (rs))
00050 #define jit_ldr_d(rd, rs)               jit_ldxr_d((rd), JIT_RZERO, (rs))
00051 #define jit_str_d(rd, rs)               jit_stxr_d((rd), JIT_RZERO, (rs))
00052 #endif
00053 #endif
00054 
00055 #ifndef jit_addr_f
00056 #define jit_addr_f(rd,s1,s2)              jit_addr_d(rd,s1,s2)
00057 #define jit_subr_f(rd,s1,s2)              jit_subr_d(rd,s1,s2)
00058 #define jit_mulr_f(rd,s1,s2)              jit_mulr_d(rd,s1,s2)
00059 #define jit_divr_f(rd,s1,s2)              jit_divr_d(rd,s1,s2)
00060 #define jit_movr_f(rd,rs)          jit_movr_d(rd,rs)
00061 #define jit_abs_f(rd,rs)           jit_abs_d(rd,rs)
00062 #define jit_negr_f(rd,rs)          jit_negr_d(rd,rs)
00063 #define jit_sqrt_f(rd,rs)          jit_sqrt_d(rd,rs)
00064 #define jit_extr_f_d(rs, rd)
00065 #define jit_extr_d_f(rs, rd)
00066 #define jit_extr_i_f(rd, rs)              jit_extr_i_d(rd, rs)
00067 #define jit_roundr_f_i(rd, rs)            jit_roundr_d_i(rd, rs)
00068 #define jit_floorr_f_i(rd, rs)            jit_floorr_d_i(rd, rs)
00069 #define jit_ceilr_f_i(rd, rs)             jit_ceilr_d_i(rd, rs)
00070 #define jit_truncr_f_i(rd, rs)            jit_truncr_d_i(rd, rs)
00071 #define jit_ltr_f(d, s1, s2)              jit_ltr_d(d, s1, s2)
00072 #define jit_ler_f(d, s1, s2)              jit_ler_d(d, s1, s2)
00073 #define jit_eqr_f(d, s1, s2)              jit_eqr_d(d, s1, s2)
00074 #define jit_ner_f(d, s1, s2)              jit_ner_d(d, s1, s2)
00075 #define jit_ger_f(d, s1, s2)              jit_ger_d(d, s1, s2)
00076 #define jit_gtr_f(d, s1, s2)              jit_gtr_d(d, s1, s2)
00077 #define jit_unltr_f(d, s1, s2)            jit_unltr_d(d, s1, s2)
00078 #define jit_unler_f(d, s1, s2)            jit_unler_d(d, s1, s2)
00079 #define jit_uneqr_f(d, s1, s2)            jit_uneqr_d(d, s1, s2)
00080 #define jit_ltgtr_f(d, s1, s2)            jit_ltgtr_d(d, s1, s2)
00081 #define jit_unger_f(d, s1, s2)            jit_unger_d(d, s1, s2)
00082 #define jit_ungtr_f(d, s1, s2)            jit_ungtr_d(d, s1, s2)
00083 #define jit_ordr_f(d, s1, s2)             jit_ordr_d(d, s1, s2)
00084 #define jit_unordr_f(d, s1, s2)           jit_unordr_d(d, s1, s2)
00085 #define jit_retval_f(rs)           jit_retval_d(rs)
00086 #endif