Explicitly instantiate coerce_to_width() for vvp_vector4_t
This commit is contained in:
parent
c64b8900ca
commit
e12d2b2f36
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
%{
|
||||
/*
|
||||
* Copyright (C) 2011 Cary R. (cygcary@yahoo.com)
|
||||
* Copyright (C) 2011-2013 Cary R. (cygcary@yahoo.com)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -97,6 +97,7 @@ double get_scaled_real(const char *text)
|
|||
case 'G': scale = "e9"; break; /* giga */
|
||||
case 'T': scale = "e12"; break; /* tera */
|
||||
default:
|
||||
scale = "";
|
||||
assert(0);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -319,6 +319,10 @@ template <class T> T coerce_to_width(const T&that, unsigned width)
|
|||
return res;
|
||||
}
|
||||
|
||||
/* Explicitly define the vvp_vector4_t version of coerce_to_width(). */
|
||||
template vvp_vector4_t coerce_to_width(const vvp_vector4_t&that,
|
||||
unsigned width);
|
||||
|
||||
static unsigned long* vector_to_array(struct vthread_s*thr,
|
||||
unsigned addr, unsigned wid)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue