Deleted Added
sdiff udiff text old ( 9983:2cce74fe359e ) new ( 10386:c81407818741 )
full compact
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * Copyright (c) 2013 Mark D. Hill and David A. Wood
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

--- 97 unchanged lines hidden (view full) ---

106template <>
107void
108showParam(ostream &os, const unsigned char &value)
109{
110 os << (unsigned int)value;
111}
112
113
114template <>
115bool
116parseParam(const string &s, float &value)
117{
118 return to_number(s, value);
119}
120
121template <>
122bool
123parseParam(const string &s, double &value)
124{
125 return to_number(s, value);
126}
127
128template <>
129bool
130parseParam(const string &s, bool &value)
131{
132 return to_bool(s, value);
133}
134
135// Display bools as strings
136template <>
137void
138showParam(ostream &os, const bool &value)
139{
140 os << (value ? "true" : "false");

--- 502 unchanged lines hidden ---