Skip to content

Commit 831553d

Browse files
author
svorenova
committed
Doc std_types cont.
1 parent 3d219c1 commit 831553d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/util/std_types.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,8 @@ inline code_typet &to_code_type(typet &type)
946946
}
947947

948948
/// Arrays with given size
949+
///
950+
/// Used for ordinary source-language arrays.
949951
class array_typet:public type_with_subtypet
950952
{
951953
public:
@@ -1525,7 +1527,14 @@ inline const range_typet &to_range_type(const typet &type)
15251527
return static_cast<const range_typet &>(type);
15261528
}
15271529

1528-
/// The C vector type
1530+
/// The vector type
1531+
///
1532+
/// Used to represent the short vectors used by CPU instruction sets such as
1533+
/// MMX, SSE and AVX. They all provide registers that are something like
1534+
/// 8 x int32, for example, and corresponding operations that operate
1535+
/// element-wise on their operand vectors. Compared to \ref array_typet
1536+
/// that has no element-wise operators. Note that `remove_vector.h` removes
1537+
/// this data type by compilation into arrays.
15291538
class vector_typet:public type_with_subtypet
15301539
{
15311540
public:

0 commit comments

Comments
 (0)