scfx_rep.cc (13322:7391057615bd) | scfx_rep.cc (13325:86323e6cc8ec) |
---|---|
1/***************************************************************************** 2 3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 4 more contributor license agreements. See the NOTICE file distributed 5 with this work for additional information regarding copyright ownership. 6 Accellera licenses this file to you under the Apache License, Version 2.0 7 (the "License"); you may not use this file except in compliance with the 8 License. You may obtain a copy of the License at --- 52 unchanged lines hidden (view full) --- 61#include <cctype> 62#include <cmath> 63#include <cstdio> 64#include <cstdlib> 65 66#include "base/compiler.hh" 67#include "systemc/ext/dt/bit/sc_bv_base.hh" 68#include "systemc/ext/dt/bit/sc_lv_base.hh" | 1/***************************************************************************** 2 3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 4 more contributor license agreements. See the NOTICE file distributed 5 with this work for additional information regarding copyright ownership. 6 Accellera licenses this file to you under the Apache License, Version 2.0 7 (the "License"); you may not use this file except in compliance with the 8 License. You may obtain a copy of the License at --- 52 unchanged lines hidden (view full) --- 61#include <cctype> 62#include <cmath> 63#include <cstdio> 64#include <cstdlib> 65 66#include "base/compiler.hh" 67#include "systemc/ext/dt/bit/sc_bv_base.hh" 68#include "systemc/ext/dt/bit/sc_lv_base.hh" |
69#include "systemc/ext/dt/fx/messages.hh" |
|
69#include "systemc/ext/dt/fx/scfx_ieee.hh" 70#include "systemc/ext/dt/fx/scfx_pow10.hh" 71#include "systemc/ext/dt/fx/scfx_rep.hh" 72#include "systemc/ext/dt/fx/scfx_utils.hh" 73#include "systemc/ext/utils/endian.hh" 74#include "systemc/ext/utils/messages.hh" 75 76namespace sc_dt --- 1881 unchanged lines hidden (view full) --- 1958 case SC_SAT_ZERO: // saturation to zero 1959 { 1960 set_zero(); 1961 break; 1962 } 1963 case SC_WRAP_SM: // sign magnitude wrap-around 1964 { 1965 SC_ERROR_IF_(enc == SC_US_, | 70#include "systemc/ext/dt/fx/scfx_ieee.hh" 71#include "systemc/ext/dt/fx/scfx_pow10.hh" 72#include "systemc/ext/dt/fx/scfx_rep.hh" 73#include "systemc/ext/dt/fx/scfx_utils.hh" 74#include "systemc/ext/utils/endian.hh" 75#include "systemc/ext/utils/messages.hh" 76 77namespace sc_dt --- 1881 unchanged lines hidden (view full) --- 1959 case SC_SAT_ZERO: // saturation to zero 1960 { 1961 set_zero(); 1962 break; 1963 } 1964 case SC_WRAP_SM: // sign magnitude wrap-around 1965 { 1966 SC_ERROR_IF_(enc == SC_US_, |
1966 "SC_WRAP_SM not defined for unsigned numbers"); | 1967 sc_core::SC_ID_WRAP_SM_NOT_DEFINED_); |
1967 1968 int n_bits = params.n_bits(); 1969 1970 if (n_bits == 0) { 1971 scfx_index x4 = calc_indices(params.iwl()); 1972 1973 if (x4.wi() >= size()) 1974 resize_to(x4.wi() + 1, 1); --- 680 unchanged lines hidden --- | 1968 1969 int n_bits = params.n_bits(); 1970 1971 if (n_bits == 0) { 1972 scfx_index x4 = calc_indices(params.iwl()); 1973 1974 if (x4.wi() >= size()) 1975 resize_to(x4.wi() + 1, 1); --- 680 unchanged lines hidden --- |