112855Sgabeblack@google.com/***************************************************************************** 212855Sgabeblack@google.com 312855Sgabeblack@google.com Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 412855Sgabeblack@google.com more contributor license agreements. See the NOTICE file distributed 512855Sgabeblack@google.com with this work for additional information regarding copyright ownership. 612855Sgabeblack@google.com Accellera licenses this file to you under the Apache License, Version 2.0 712855Sgabeblack@google.com (the "License"); you may not use this file except in compliance with the 812855Sgabeblack@google.com License. You may obtain a copy of the License at 912855Sgabeblack@google.com 1012855Sgabeblack@google.com http://www.apache.org/licenses/LICENSE-2.0 1112855Sgabeblack@google.com 1212855Sgabeblack@google.com Unless required by applicable law or agreed to in writing, software 1312855Sgabeblack@google.com distributed under the License is distributed on an "AS IS" BASIS, 1412855Sgabeblack@google.com WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 1512855Sgabeblack@google.com implied. See the License for the specific language governing 1612855Sgabeblack@google.com permissions and limitations under the License. 1712855Sgabeblack@google.com 1812855Sgabeblack@google.com *****************************************************************************/ 1912855Sgabeblack@google.com 2012855Sgabeblack@google.com/***************************************************************************** 2112855Sgabeblack@google.com 2212855Sgabeblack@google.com default_assign.cpp -- 2312855Sgabeblack@google.com 2412855Sgabeblack@google.com Original Author: Martin Janssen, Synopsys, Inc., 2002-02-15 2512855Sgabeblack@google.com 2612855Sgabeblack@google.com *****************************************************************************/ 2712855Sgabeblack@google.com 2812855Sgabeblack@google.com/***************************************************************************** 2912855Sgabeblack@google.com 3012855Sgabeblack@google.com MODIFICATION LOG - modifiers, enter your name, affiliation, date and 3112855Sgabeblack@google.com changes you are making here. 3212855Sgabeblack@google.com 3312855Sgabeblack@google.com Name, Affiliation, Date: 3412855Sgabeblack@google.com Description of Modification: 3512855Sgabeblack@google.com 3612855Sgabeblack@google.com *****************************************************************************/ 3712855Sgabeblack@google.com 3812855Sgabeblack@google.com// This may look like C code, but it is really -*- C++ -*- 3912855Sgabeblack@google.com// 4012855Sgabeblack@google.com// default_assign.cxx -- 4112855Sgabeblack@google.com// Copyright Synopsys 1998 4212855Sgabeblack@google.com// Author : Ric Hilderink 4312855Sgabeblack@google.com// Created On : Wed Dec 30 09:52:54 1998 4412855Sgabeblack@google.com// Status : none 4512855Sgabeblack@google.com// 4612855Sgabeblack@google.com 4712855Sgabeblack@google.com#include <limits.h> 4812855Sgabeblack@google.com#include <float.h> 4912855Sgabeblack@google.com#define SC_INCLUDE_FX 5012855Sgabeblack@google.com#include "systemc.h" 5112855Sgabeblack@google.com 5212855Sgabeblack@google.comtypedef unsigned int uint; 5312855Sgabeblack@google.comtypedef unsigned short ushort; 5412855Sgabeblack@google.comtypedef unsigned long ulong; 5512855Sgabeblack@google.com 5612855Sgabeblack@google.com#define SHOW_DEFAULT_ASSIGN(a) cerr << #a << " : " << double(a) << " : " << a.to_string(SC_HEX) << "\n" 5712855Sgabeblack@google.com#define IDENT_DEFAULT_ASSIGN(a) cerr << "--default_assign-Inf-Inf-Inf-Inf-Inf- " << a << "\n" 5812855Sgabeblack@google.com 5912855Sgabeblack@google.com//------------------------------------------------------- 6012855Sgabeblack@google.comstatic void test_fx_float_int() 6112855Sgabeblack@google.com{ 6212855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_float_int"); 6312855Sgabeblack@google.com 6412855Sgabeblack@google.com sc_fxval a; a = 0; 6512855Sgabeblack@google.com sc_fxval b; b = 1; 6612855Sgabeblack@google.com sc_fxval c; c = -1; 6712855Sgabeblack@google.com sc_fxval d; d = INT_MAX; 6812855Sgabeblack@google.com sc_fxval e; e = INT_MIN; 6912855Sgabeblack@google.com 7012855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 7112855Sgabeblack@google.com} 7212855Sgabeblack@google.com 7312855Sgabeblack@google.comstatic void test_fx_float_uint() 7412855Sgabeblack@google.com{ 7512855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_float_uint"); 7612855Sgabeblack@google.com 7712855Sgabeblack@google.com sc_fxval a; a = (uint)0; 7812855Sgabeblack@google.com sc_fxval b; b = (uint)1; 7912855Sgabeblack@google.com sc_fxval c; c = (uint)-1; 8012855Sgabeblack@google.com sc_fxval d; d = UINT_MAX; 8112855Sgabeblack@google.com sc_fxval e; e = (uint)abs(INT_MIN); 8212855Sgabeblack@google.com 8312855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 8412855Sgabeblack@google.com} 8512855Sgabeblack@google.com 8612855Sgabeblack@google.comstatic void test_fx_float_short() 8712855Sgabeblack@google.com{ 8812855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_float_short"); 8912855Sgabeblack@google.com 9012855Sgabeblack@google.com sc_fxval a; a = (short)0; 9112855Sgabeblack@google.com sc_fxval b; b = (short)1; 9212855Sgabeblack@google.com sc_fxval c; c = (short)-1; 9312855Sgabeblack@google.com sc_fxval d; d = SHRT_MAX; 9412855Sgabeblack@google.com sc_fxval e; e = SHRT_MIN; 9512855Sgabeblack@google.com 9612855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 9712855Sgabeblack@google.com} 9812855Sgabeblack@google.com 9912855Sgabeblack@google.comstatic void test_fx_float_ushort() 10012855Sgabeblack@google.com{ 10112855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_float_ushort"); 10212855Sgabeblack@google.com 10312855Sgabeblack@google.com sc_fxval a; a = (ushort)0; 10412855Sgabeblack@google.com sc_fxval b; b = (ushort)1; 10512855Sgabeblack@google.com sc_fxval c; c = (ushort)-1; 10612855Sgabeblack@google.com sc_fxval d; d = USHRT_MAX; 10712855Sgabeblack@google.com sc_fxval e; e = (ushort)abs(SHRT_MIN); 10812855Sgabeblack@google.com 10912855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 11012855Sgabeblack@google.com} 11112855Sgabeblack@google.com 11212855Sgabeblack@google.comstatic void test_fx_float_long() 11312855Sgabeblack@google.com{ 11412855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_float_long"); 11512855Sgabeblack@google.com 11612855Sgabeblack@google.com sc_fxval a; a = (long)0; 11712855Sgabeblack@google.com sc_fxval b; b = (long)1; 11812855Sgabeblack@google.com sc_fxval c; c = (long)-1; 11912855Sgabeblack@google.com sc_fxval d; d = LONG_MAX; 12012855Sgabeblack@google.com sc_fxval e; e = LONG_MIN; 12112855Sgabeblack@google.com 12212855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 12312855Sgabeblack@google.com} 12412855Sgabeblack@google.com 12512855Sgabeblack@google.comstatic void test_fx_float_ulong() 12612855Sgabeblack@google.com{ 12712855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_float_ulong"); 12812855Sgabeblack@google.com 12912855Sgabeblack@google.com sc_fxval a; a = (ulong)0; 13012855Sgabeblack@google.com sc_fxval b; b = (ulong)1; 13112855Sgabeblack@google.com sc_fxval c; c = (ulong)-1; 13212855Sgabeblack@google.com sc_fxval d; d = ULONG_MAX; 13312855Sgabeblack@google.com sc_fxval e; e = (ulong)abs(LONG_MIN); 13412855Sgabeblack@google.com 13512855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 13612855Sgabeblack@google.com} 13712855Sgabeblack@google.com 13812855Sgabeblack@google.comstatic void test_fx_float_float() 13912855Sgabeblack@google.com{ 14012855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_float_float"); 14112855Sgabeblack@google.com 14212855Sgabeblack@google.com sc_fxval a; a = 0.0; 14312855Sgabeblack@google.com sc_fxval b; b = 1.0; 14412855Sgabeblack@google.com sc_fxval c; c = -1.0; 14512855Sgabeblack@google.com sc_fxval d; d = FLT_MAX; 14612855Sgabeblack@google.com sc_fxval e; e = FLT_MIN; 14712855Sgabeblack@google.com 14812855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 14912855Sgabeblack@google.com} 15012855Sgabeblack@google.com 15112855Sgabeblack@google.comstatic void test_fx_float_double() 15212855Sgabeblack@google.com{ 15312855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_float_double"); 15412855Sgabeblack@google.com 15512855Sgabeblack@google.com sc_fxval a; a = (double)0.0; 15612855Sgabeblack@google.com sc_fxval b; b = (double)1.0; 15712855Sgabeblack@google.com sc_fxval c; c = (double)-1.0; 15812855Sgabeblack@google.com sc_fxval d; d = DBL_MAX; 15912855Sgabeblack@google.com sc_fxval e; e = DBL_MIN; 16012855Sgabeblack@google.com 16112855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 16212855Sgabeblack@google.com} 16312855Sgabeblack@google.com 16412855Sgabeblack@google.com//------------------------------------------------------- 16512855Sgabeblack@google.comstatic void test_fx_ufix_int() 16612855Sgabeblack@google.com{ 16712855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufix_int"); 16812855Sgabeblack@google.com 16912855Sgabeblack@google.com sc_ufix a; a = 0; 17012855Sgabeblack@google.com sc_ufix b; b = 1; 17112855Sgabeblack@google.com sc_ufix c; c = -1; 17212855Sgabeblack@google.com sc_ufix d; d = INT_MAX; 17312855Sgabeblack@google.com sc_ufix e; e = INT_MIN; 17412855Sgabeblack@google.com 17512855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 17612855Sgabeblack@google.com} 17712855Sgabeblack@google.com 17812855Sgabeblack@google.comstatic void test_fx_ufix_uint() 17912855Sgabeblack@google.com{ 18012855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufix_uint"); 18112855Sgabeblack@google.com 18212855Sgabeblack@google.com sc_ufix a; a = (uint)0; 18312855Sgabeblack@google.com sc_ufix b; b = (uint)1; 18412855Sgabeblack@google.com sc_ufix c; c = (uint)-1; 18512855Sgabeblack@google.com sc_ufix d; d = UINT_MAX; 18612855Sgabeblack@google.com sc_ufix e; e = (uint)abs(INT_MIN); 18712855Sgabeblack@google.com 18812855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 18912855Sgabeblack@google.com} 19012855Sgabeblack@google.com 19112855Sgabeblack@google.comstatic void test_fx_ufix_short() 19212855Sgabeblack@google.com{ 19312855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufix_short"); 19412855Sgabeblack@google.com 19512855Sgabeblack@google.com sc_ufix a; a = (short)0; 19612855Sgabeblack@google.com sc_ufix b; b = (short)1; 19712855Sgabeblack@google.com sc_ufix c; c = (short)-1; 19812855Sgabeblack@google.com sc_ufix d; d = SHRT_MAX; 19912855Sgabeblack@google.com sc_ufix e; e = SHRT_MIN; 20012855Sgabeblack@google.com 20112855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 20212855Sgabeblack@google.com} 20312855Sgabeblack@google.com 20412855Sgabeblack@google.comstatic void test_fx_ufix_ushort() 20512855Sgabeblack@google.com{ 20612855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufix_ushort"); 20712855Sgabeblack@google.com 20812855Sgabeblack@google.com sc_ufix a; a = (ushort)0; 20912855Sgabeblack@google.com sc_ufix b; b = (ushort)1; 21012855Sgabeblack@google.com sc_ufix c; c = (ushort)-1; 21112855Sgabeblack@google.com sc_ufix d; d = USHRT_MAX; 21212855Sgabeblack@google.com sc_ufix e; e = (ushort)abs(SHRT_MIN); 21312855Sgabeblack@google.com 21412855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 21512855Sgabeblack@google.com} 21612855Sgabeblack@google.com 21712855Sgabeblack@google.comstatic void test_fx_ufix_long() 21812855Sgabeblack@google.com{ 21912855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufix_long"); 22012855Sgabeblack@google.com 22112855Sgabeblack@google.com sc_ufix a; a = (long)0; 22212855Sgabeblack@google.com sc_ufix b; b = (long)1; 22312855Sgabeblack@google.com sc_ufix c; c = (long)-1; 22412855Sgabeblack@google.com sc_ufix d; d = LONG_MAX; 22512855Sgabeblack@google.com sc_ufix e; e = LONG_MIN; 22612855Sgabeblack@google.com 22712855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 22812855Sgabeblack@google.com} 22912855Sgabeblack@google.com 23012855Sgabeblack@google.comstatic void test_fx_ufix_ulong() 23112855Sgabeblack@google.com{ 23212855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufix_ulong"); 23312855Sgabeblack@google.com 23412855Sgabeblack@google.com sc_ufix a; a = (ulong)0; 23512855Sgabeblack@google.com sc_ufix b; b = (ulong)1; 23612855Sgabeblack@google.com sc_ufix c; c = (ulong)-1; 23712855Sgabeblack@google.com sc_ufix d; d = ULONG_MAX; 23812855Sgabeblack@google.com sc_ufix e; e = (ulong)abs(LONG_MIN); 23912855Sgabeblack@google.com 24012855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 24112855Sgabeblack@google.com} 24212855Sgabeblack@google.com 24312855Sgabeblack@google.comstatic void test_fx_ufix_float() 24412855Sgabeblack@google.com{ 24512855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufix_float"); 24612855Sgabeblack@google.com 24712855Sgabeblack@google.com sc_ufix a; a = 0.0; 24812855Sgabeblack@google.com sc_ufix b; b = 1.0; 24912855Sgabeblack@google.com sc_ufix c; c = -1.0; 25012855Sgabeblack@google.com sc_ufix d; d = FLT_MAX; 25112855Sgabeblack@google.com sc_ufix e; e = FLT_MIN; 25212855Sgabeblack@google.com 25312855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 25412855Sgabeblack@google.com} 25512855Sgabeblack@google.com 25612855Sgabeblack@google.comstatic void test_fx_ufix_double() 25712855Sgabeblack@google.com{ 25812855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufix_double"); 25912855Sgabeblack@google.com 26012855Sgabeblack@google.com sc_ufix a; a = (double)0.0; 26112855Sgabeblack@google.com sc_ufix b; b = (double)1.0; 26212855Sgabeblack@google.com sc_ufix c; c = (double)-1.0; 26312855Sgabeblack@google.com sc_ufix d; d = DBL_MAX; 26412855Sgabeblack@google.com sc_ufix e; e = DBL_MIN; 26512855Sgabeblack@google.com 26612855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 26712855Sgabeblack@google.com} 26812855Sgabeblack@google.com 26912855Sgabeblack@google.com//------------------------------------------------------- 27012855Sgabeblack@google.comstatic void test_fx_fix_int() 27112855Sgabeblack@google.com{ 27212855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fix_int"); 27312855Sgabeblack@google.com 27412855Sgabeblack@google.com sc_fix a; a = 0; 27512855Sgabeblack@google.com sc_fix b; b = 1; 27612855Sgabeblack@google.com sc_fix c; c = -1; 27712855Sgabeblack@google.com sc_fix d; d = INT_MAX; 27812855Sgabeblack@google.com sc_fix e; e = INT_MIN; 27912855Sgabeblack@google.com 28012855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 28112855Sgabeblack@google.com} 28212855Sgabeblack@google.com 28312855Sgabeblack@google.comstatic void test_fx_fix_uint() 28412855Sgabeblack@google.com{ 28512855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fix_uint"); 28612855Sgabeblack@google.com 28712855Sgabeblack@google.com sc_fix a; a = (uint)0; 28812855Sgabeblack@google.com sc_fix b; b = (uint)1; 28912855Sgabeblack@google.com sc_fix c; c = (uint)-1; 29012855Sgabeblack@google.com sc_fix d; d = UINT_MAX; 29112855Sgabeblack@google.com sc_fix e; e = (uint)abs(INT_MIN); 29212855Sgabeblack@google.com 29312855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 29412855Sgabeblack@google.com} 29512855Sgabeblack@google.com 29612855Sgabeblack@google.comstatic void test_fx_fix_short() 29712855Sgabeblack@google.com{ 29812855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fix_short"); 29912855Sgabeblack@google.com 30012855Sgabeblack@google.com sc_fix a; a = (short)0; 30112855Sgabeblack@google.com sc_fix b; b = (short)1; 30212855Sgabeblack@google.com sc_fix c; c = (short)-1; 30312855Sgabeblack@google.com sc_fix d; d = SHRT_MAX; 30412855Sgabeblack@google.com sc_fix e; e = SHRT_MIN; 30512855Sgabeblack@google.com 30612855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 30712855Sgabeblack@google.com} 30812855Sgabeblack@google.com 30912855Sgabeblack@google.comstatic void test_fx_fix_ushort() 31012855Sgabeblack@google.com{ 31112855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fix_ushort"); 31212855Sgabeblack@google.com 31312855Sgabeblack@google.com sc_fix a; a = (ushort)0; 31412855Sgabeblack@google.com sc_fix b; b = (ushort)1; 31512855Sgabeblack@google.com sc_fix c; c = (ushort)-1; 31612855Sgabeblack@google.com sc_fix d; d = USHRT_MAX; 31712855Sgabeblack@google.com sc_fix e; e = (ushort)abs(SHRT_MIN); 31812855Sgabeblack@google.com 31912855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 32012855Sgabeblack@google.com} 32112855Sgabeblack@google.com 32212855Sgabeblack@google.comstatic void test_fx_fix_long() 32312855Sgabeblack@google.com{ 32412855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fix_long"); 32512855Sgabeblack@google.com 32612855Sgabeblack@google.com sc_fix a; a = (long)0; 32712855Sgabeblack@google.com sc_fix b; b = (long)1; 32812855Sgabeblack@google.com sc_fix c; c = (long)-1; 32912855Sgabeblack@google.com sc_fix d; d = LONG_MAX; 33012855Sgabeblack@google.com sc_fix e; e = LONG_MIN; 33112855Sgabeblack@google.com 33212855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 33312855Sgabeblack@google.com} 33412855Sgabeblack@google.com 33512855Sgabeblack@google.comstatic void test_fx_fix_ulong() 33612855Sgabeblack@google.com{ 33712855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fix_ulong"); 33812855Sgabeblack@google.com 33912855Sgabeblack@google.com sc_fix a; a = (ulong)0; 34012855Sgabeblack@google.com sc_fix b; b = (ulong)1; 34112855Sgabeblack@google.com sc_fix c; c = (ulong)-1; 34212855Sgabeblack@google.com sc_fix d; d = ULONG_MAX; 34312855Sgabeblack@google.com sc_fix e; e = (ulong)abs(LONG_MIN); 34412855Sgabeblack@google.com 34512855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 34612855Sgabeblack@google.com} 34712855Sgabeblack@google.com 34812855Sgabeblack@google.comstatic void test_fx_fix_float() 34912855Sgabeblack@google.com{ 35012855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fix_float"); 35112855Sgabeblack@google.com 35212855Sgabeblack@google.com sc_fix a; a = 0.0; 35312855Sgabeblack@google.com sc_fix b; b = 1.0; 35412855Sgabeblack@google.com sc_fix c; c = -1.0; 35512855Sgabeblack@google.com sc_fix d; d = FLT_MAX; 35612855Sgabeblack@google.com sc_fix e; e = FLT_MIN; 35712855Sgabeblack@google.com 35812855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 35912855Sgabeblack@google.com} 36012855Sgabeblack@google.com 36112855Sgabeblack@google.comstatic void test_fx_fix_double() 36212855Sgabeblack@google.com{ 36312855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fix_double"); 36412855Sgabeblack@google.com 36512855Sgabeblack@google.com sc_fix a; a = (double)0.0; 36612855Sgabeblack@google.com sc_fix b; b = (double)1.0; 36712855Sgabeblack@google.com sc_fix c; c = (double)-1.0; 36812855Sgabeblack@google.com sc_fix d; d = DBL_MAX; 36912855Sgabeblack@google.com sc_fix e; e = DBL_MIN; 37012855Sgabeblack@google.com 37112855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 37212855Sgabeblack@google.com} 37312855Sgabeblack@google.com 37412855Sgabeblack@google.com//------------------------------------------------------- 37512855Sgabeblack@google.comstatic void test_fx_fixed_int() 37612855Sgabeblack@google.com{ 37712855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fixed_int"); 37812855Sgabeblack@google.com 37912855Sgabeblack@google.com sc_fixed<8, 5> a; a = 0; 38012855Sgabeblack@google.com sc_fixed<8, 5> b; b = 1; 38112855Sgabeblack@google.com sc_fixed<8, 5> c; c = -1; 38212855Sgabeblack@google.com sc_fixed<8, 5> d; d = INT_MAX; 38312855Sgabeblack@google.com sc_fixed<8, 5> e; e = INT_MIN; 38412855Sgabeblack@google.com 38512855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 38612855Sgabeblack@google.com} 38712855Sgabeblack@google.com 38812855Sgabeblack@google.comstatic void test_fx_fixed_uint() 38912855Sgabeblack@google.com{ 39012855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fixed_uint"); 39112855Sgabeblack@google.com 39212855Sgabeblack@google.com sc_fixed<8, 5> a; a = (uint)0; 39312855Sgabeblack@google.com sc_fixed<8, 5> b; b = (uint)1; 39412855Sgabeblack@google.com sc_fixed<8, 5> c; c = (uint)-1; 39512855Sgabeblack@google.com sc_fixed<8, 5> d; d = UINT_MAX; 39612855Sgabeblack@google.com sc_fixed<8, 5> e; e = (uint)abs(INT_MIN); 39712855Sgabeblack@google.com 39812855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 39912855Sgabeblack@google.com} 40012855Sgabeblack@google.com 40112855Sgabeblack@google.comstatic void test_fx_fixed_short() 40212855Sgabeblack@google.com{ 40312855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fixed_short"); 40412855Sgabeblack@google.com 40512855Sgabeblack@google.com sc_fixed<8, 5> a; a = (short)0; 40612855Sgabeblack@google.com sc_fixed<8, 5> b; b = (short)1; 40712855Sgabeblack@google.com sc_fixed<8, 5> c; c = (short)-1; 40812855Sgabeblack@google.com sc_fixed<8, 5> d; d = SHRT_MAX; 40912855Sgabeblack@google.com sc_fixed<8, 5> e; e = SHRT_MIN; 41012855Sgabeblack@google.com 41112855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 41212855Sgabeblack@google.com} 41312855Sgabeblack@google.com 41412855Sgabeblack@google.comstatic void test_fx_fixed_ushort() 41512855Sgabeblack@google.com{ 41612855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fixed_ushort"); 41712855Sgabeblack@google.com 41812855Sgabeblack@google.com sc_fixed<8, 5> a; a = (ushort)0; 41912855Sgabeblack@google.com sc_fixed<8, 5> b; b = (ushort)1; 42012855Sgabeblack@google.com sc_fixed<8, 5> c; c = (ushort)-1; 42112855Sgabeblack@google.com sc_fixed<8, 5> d; d = USHRT_MAX; 42212855Sgabeblack@google.com sc_fixed<8, 5> e; e = (ushort)abs(SHRT_MIN); 42312855Sgabeblack@google.com 42412855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 42512855Sgabeblack@google.com} 42612855Sgabeblack@google.com 42712855Sgabeblack@google.comstatic void test_fx_fixed_long() 42812855Sgabeblack@google.com{ 42912855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fixed_long"); 43012855Sgabeblack@google.com 43112855Sgabeblack@google.com sc_fixed<8, 5> a; a = (long)0; 43212855Sgabeblack@google.com sc_fixed<8, 5> b; b = (long)1; 43312855Sgabeblack@google.com sc_fixed<8, 5> c; c = (long)-1; 43412855Sgabeblack@google.com sc_fixed<8, 5> d; d = LONG_MAX; 43512855Sgabeblack@google.com sc_fixed<8, 5> e; e = LONG_MIN; 43612855Sgabeblack@google.com 43712855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 43812855Sgabeblack@google.com} 43912855Sgabeblack@google.com 44012855Sgabeblack@google.comstatic void test_fx_fixed_ulong() 44112855Sgabeblack@google.com{ 44212855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fixed_ulong"); 44312855Sgabeblack@google.com 44412855Sgabeblack@google.com sc_fixed<8, 5> a; a = (ulong)0; 44512855Sgabeblack@google.com sc_fixed<8, 5> b; b = (ulong)1; 44612855Sgabeblack@google.com sc_fixed<8, 5> c; c = (ulong)-1; 44712855Sgabeblack@google.com sc_fixed<8, 5> d; d = ULONG_MAX; 44812855Sgabeblack@google.com sc_fixed<8, 5> e; e = (ulong)abs(LONG_MIN); 44912855Sgabeblack@google.com 45012855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 45112855Sgabeblack@google.com} 45212855Sgabeblack@google.com 45312855Sgabeblack@google.comstatic void test_fx_fixed_float() 45412855Sgabeblack@google.com{ 45512855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fixed_float"); 45612855Sgabeblack@google.com 45712855Sgabeblack@google.com sc_fixed<8, 5> a; a = 0.0; 45812855Sgabeblack@google.com sc_fixed<8, 5> b; b = 1.0; 45912855Sgabeblack@google.com sc_fixed<8, 5> c; c = -1.0; 46012855Sgabeblack@google.com sc_fixed<8, 5> d; d = FLT_MAX; 46112855Sgabeblack@google.com sc_fixed<8, 5> e; e = FLT_MIN; 46212855Sgabeblack@google.com 46312855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 46412855Sgabeblack@google.com} 46512855Sgabeblack@google.com 46612855Sgabeblack@google.comstatic void test_fx_fixed_double() 46712855Sgabeblack@google.com{ 46812855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_fixed_double"); 46912855Sgabeblack@google.com 47012855Sgabeblack@google.com sc_fixed<8, 5> a; a = (double)0.0; 47112855Sgabeblack@google.com sc_fixed<8, 5> b; b = (double)1.0; 47212855Sgabeblack@google.com sc_fixed<8, 5> c; c = (double)-1.0; 47312855Sgabeblack@google.com sc_fixed<8, 5> d; d = DBL_MAX; 47412855Sgabeblack@google.com sc_fixed<8, 5> e; e = DBL_MIN; 47512855Sgabeblack@google.com 47612855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 47712855Sgabeblack@google.com} 47812855Sgabeblack@google.com 47912855Sgabeblack@google.com//------------------------------------------------------- 48012855Sgabeblack@google.comstatic void test_fx_ufixed_int() 48112855Sgabeblack@google.com{ 48212855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufixed_int"); 48312855Sgabeblack@google.com 48412855Sgabeblack@google.com sc_ufixed<8, 5> a; a = 0; 48512855Sgabeblack@google.com sc_ufixed<8, 5> b; b = 1; 48612855Sgabeblack@google.com sc_ufixed<8, 5> c; c = -1; 48712855Sgabeblack@google.com sc_ufixed<8, 5> d; d = INT_MAX; 48812855Sgabeblack@google.com sc_ufixed<8, 5> e; e = INT_MIN; 48912855Sgabeblack@google.com 49012855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 49112855Sgabeblack@google.com} 49212855Sgabeblack@google.com 49312855Sgabeblack@google.comstatic void test_fx_ufixed_uint() 49412855Sgabeblack@google.com{ 49512855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufixed_uint"); 49612855Sgabeblack@google.com 49712855Sgabeblack@google.com sc_ufixed<8, 5> a; a = (uint)0; 49812855Sgabeblack@google.com sc_ufixed<8, 5> b; b = (uint)1; 49912855Sgabeblack@google.com sc_ufixed<8, 5> c; c = (uint)-1; 50012855Sgabeblack@google.com sc_ufixed<8, 5> d; d = UINT_MAX; 50112855Sgabeblack@google.com sc_ufixed<8, 5> e; e = (uint)abs(INT_MIN); 50212855Sgabeblack@google.com 50312855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 50412855Sgabeblack@google.com} 50512855Sgabeblack@google.com 50612855Sgabeblack@google.comstatic void test_fx_ufixed_short() 50712855Sgabeblack@google.com{ 50812855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufixed_short"); 50912855Sgabeblack@google.com 51012855Sgabeblack@google.com sc_ufixed<8, 5> a; a = (short)0; 51112855Sgabeblack@google.com sc_ufixed<8, 5> b; b = (short)1; 51212855Sgabeblack@google.com sc_ufixed<8, 5> c; c = (short)-1; 51312855Sgabeblack@google.com sc_ufixed<8, 5> d; d = SHRT_MAX; 51412855Sgabeblack@google.com sc_ufixed<8, 5> e; e = SHRT_MIN; 51512855Sgabeblack@google.com 51612855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 51712855Sgabeblack@google.com} 51812855Sgabeblack@google.com 51912855Sgabeblack@google.comstatic void test_fx_ufixed_ushort() 52012855Sgabeblack@google.com{ 52112855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufixed_ushort"); 52212855Sgabeblack@google.com 52312855Sgabeblack@google.com sc_ufixed<8, 5> a; a = (ushort)0; 52412855Sgabeblack@google.com sc_ufixed<8, 5> b; b = (ushort)1; 52512855Sgabeblack@google.com sc_ufixed<8, 5> c; c = (ushort)-1; 52612855Sgabeblack@google.com sc_ufixed<8, 5> d; d = USHRT_MAX; 52712855Sgabeblack@google.com sc_ufixed<8, 5> e; e = (ushort)abs(SHRT_MIN); 52812855Sgabeblack@google.com 52912855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 53012855Sgabeblack@google.com} 53112855Sgabeblack@google.com 53212855Sgabeblack@google.comstatic void test_fx_ufixed_long() 53312855Sgabeblack@google.com{ 53412855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufixed_long"); 53512855Sgabeblack@google.com 53612855Sgabeblack@google.com sc_ufixed<8, 5> a; a = (long)0; 53712855Sgabeblack@google.com sc_ufixed<8, 5> b; b = (long)1; 53812855Sgabeblack@google.com sc_ufixed<8, 5> c; c = (long)-1; 53912855Sgabeblack@google.com sc_ufixed<8, 5> d; d = LONG_MAX; 54012855Sgabeblack@google.com sc_ufixed<8, 5> e; e = LONG_MIN; 54112855Sgabeblack@google.com 54212855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 54312855Sgabeblack@google.com} 54412855Sgabeblack@google.com 54512855Sgabeblack@google.comstatic void test_fx_ufixed_ulong() 54612855Sgabeblack@google.com{ 54712855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufixed_ulong"); 54812855Sgabeblack@google.com 54912855Sgabeblack@google.com sc_ufixed<8, 5> a; a = (ulong)0; 55012855Sgabeblack@google.com sc_ufixed<8, 5> b; b = (ulong)1; 55112855Sgabeblack@google.com sc_ufixed<8, 5> c; c = (ulong)-1; 55212855Sgabeblack@google.com sc_ufixed<8, 5> d; d = ULONG_MAX; 55312855Sgabeblack@google.com sc_ufixed<8, 5> e; e = (ulong)abs(LONG_MIN); 55412855Sgabeblack@google.com 55512855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 55612855Sgabeblack@google.com} 55712855Sgabeblack@google.com 55812855Sgabeblack@google.comstatic void test_fx_ufixed_float() 55912855Sgabeblack@google.com{ 56012855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufixed_float"); 56112855Sgabeblack@google.com 56212855Sgabeblack@google.com sc_ufixed<8, 5> a; a = 0.0; 56312855Sgabeblack@google.com sc_ufixed<8, 5> b; b = 1.0; 56412855Sgabeblack@google.com sc_ufixed<8, 5> c; c = -1.0; 56512855Sgabeblack@google.com sc_ufixed<8, 5> d; d = FLT_MAX; 56612855Sgabeblack@google.com sc_ufixed<8, 5> e; e = FLT_MIN; 56712855Sgabeblack@google.com 56812855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 56912855Sgabeblack@google.com} 57012855Sgabeblack@google.com 57112855Sgabeblack@google.comstatic void test_fx_ufixed_double() 57212855Sgabeblack@google.com{ 57312855Sgabeblack@google.com IDENT_DEFAULT_ASSIGN("test_fx_ufixed_double"); 57412855Sgabeblack@google.com 57512855Sgabeblack@google.com sc_ufixed<8, 5> a; a = (double)0.0; 57612855Sgabeblack@google.com sc_ufixed<8, 5> b; b = (double)1.0; 57712855Sgabeblack@google.com sc_ufixed<8, 5> c; c = (double)-1.0; 57812855Sgabeblack@google.com sc_ufixed<8, 5> d; d = DBL_MAX; 57912855Sgabeblack@google.com sc_ufixed<8, 5> e; e = DBL_MIN; 58012855Sgabeblack@google.com 58112855Sgabeblack@google.com SHOW_DEFAULT_ASSIGN(a); SHOW_DEFAULT_ASSIGN(b); SHOW_DEFAULT_ASSIGN(c); SHOW_DEFAULT_ASSIGN(d); SHOW_DEFAULT_ASSIGN(e); 58212855Sgabeblack@google.com} 58312855Sgabeblack@google.com 58412855Sgabeblack@google.comvoid default_assign() 58512855Sgabeblack@google.com{ 58612855Sgabeblack@google.com cerr << "************** default_assign fx_float\n"; 58712855Sgabeblack@google.com test_fx_float_int(); 58812855Sgabeblack@google.com test_fx_float_uint(); 58912855Sgabeblack@google.com test_fx_float_short(); 59012855Sgabeblack@google.com test_fx_float_ushort(); 59112855Sgabeblack@google.com test_fx_float_long(); 59212855Sgabeblack@google.com test_fx_float_ulong(); 59312855Sgabeblack@google.com test_fx_float_float(); 59412855Sgabeblack@google.com test_fx_float_double(); 59512855Sgabeblack@google.com 59612855Sgabeblack@google.com cerr << "************** default_assign fx_ufix\n"; 59712855Sgabeblack@google.com test_fx_ufix_int(); 59812855Sgabeblack@google.com test_fx_ufix_uint(); 59912855Sgabeblack@google.com test_fx_ufix_short(); 60012855Sgabeblack@google.com test_fx_ufix_ushort(); 60112855Sgabeblack@google.com test_fx_ufix_long(); 60212855Sgabeblack@google.com test_fx_ufix_ulong(); 60312855Sgabeblack@google.com test_fx_ufix_float(); 60412855Sgabeblack@google.com test_fx_ufix_double(); 60512855Sgabeblack@google.com 60612855Sgabeblack@google.com cerr << "************** default_assign fx_fix\n"; 60712855Sgabeblack@google.com test_fx_fix_int(); 60812855Sgabeblack@google.com test_fx_fix_uint(); 60912855Sgabeblack@google.com test_fx_fix_short(); 61012855Sgabeblack@google.com test_fx_fix_ushort(); 61112855Sgabeblack@google.com test_fx_fix_long(); 61212855Sgabeblack@google.com test_fx_fix_ulong(); 61312855Sgabeblack@google.com test_fx_fix_float(); 61412855Sgabeblack@google.com test_fx_fix_double(); 61512855Sgabeblack@google.com 61612855Sgabeblack@google.com cerr << "************** default_assign fx_fixed\n"; 61712855Sgabeblack@google.com test_fx_fixed_int(); 61812855Sgabeblack@google.com test_fx_fixed_uint(); 61912855Sgabeblack@google.com test_fx_fixed_short(); 62012855Sgabeblack@google.com test_fx_fixed_ushort(); 62112855Sgabeblack@google.com test_fx_fixed_long(); 62212855Sgabeblack@google.com test_fx_fixed_ulong(); 62312855Sgabeblack@google.com test_fx_fixed_float(); 62412855Sgabeblack@google.com test_fx_fixed_double(); 62512855Sgabeblack@google.com 62612855Sgabeblack@google.com cerr << "************** default_assign fx_ufixed\n"; 62712855Sgabeblack@google.com test_fx_ufixed_int(); 62812855Sgabeblack@google.com test_fx_ufixed_uint(); 62912855Sgabeblack@google.com test_fx_ufixed_short(); 63012855Sgabeblack@google.com test_fx_ufixed_ushort(); 63112855Sgabeblack@google.com test_fx_ufixed_long(); 63212855Sgabeblack@google.com test_fx_ufixed_ulong(); 63312855Sgabeblack@google.com test_fx_ufixed_float(); 63412855Sgabeblack@google.com test_fx_ufixed_double(); 63512855Sgabeblack@google.com} 636