Contents

# Multiplication Operators

The multiplication operators can only accept and return data types from the
I[s|u]16vec4
or
I[s|u]16vec8
classes, as shown in the following example.
Syntax Usage for Multiplication Operators
Explicitly convert B to
Is16vec4
.
Is16vec4 A,C;
Iu32vec2 B;
C = A * C;
C = A * (Is16vec4)B;
Return nearest common ancestor type,
I16vec4
Is16vec4 A;
Iu16vec4 B;
I16vec4 C;
C = A + B;
The
mul_high
and
functions take
Is16vec4
data only.
Is16vec4 A,B,C,D;
C = mul_high(A,B);
Multiplication Operators with Corresponding Intrinsics
Symbols
Syntax Usage
Intrinsic
*
*=
R = A * B
R *= A
_mm_mullo_pi16
_mm_mullo_epi16
mul_high
N/A
R = mul_high(A, B)
_mm_mulhi_pi16
_mm_mulhi_epi16
{"ft_lang_label":"__label__en","ft_lang_prob":0.5365211,"math_prob":0.94630504,"size":715,"snap":"2020-34-2020-40","text_gpt3_token_len":246,"char_repetition_ratio":0.1533052,"word_repetition_ratio":0.0,"special_character_ratio":0.3160839,"punctuation_ratio":0.16911764,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9719019,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-10T20:03:44Z\",\"WARC-Record-ID\":\"<urn:uuid:1840438a-7e81-4d74-ba8c-b214bc36c0a1>\",\"Content-Length\":\"1049104\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7ba41c07-66a4-4e2f-8e55-7504b3aaae7e>\",\"WARC-Concurrent-To\":\"<urn:uuid:e5734cf0-d81a-4e09-aea8-0e87f1ad2cc0>\",\"WARC-IP-Address\":\"104.70.190.246\",\"WARC-Target-URI\":\"https://software.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/libraries/intel-c-class-libraries/integer-vector-classes/multiplication-operators.html\",\"WARC-Payload-Digest\":\"sha1:JNGVQWCR4ALVQUDVZ6B3K6B5CUPACFYV\",\"WARC-Block-Digest\":\"sha1:LXPRXZGSYKIT7B3UNP4YRKJTT6PLWKJC\",\"WARC-Truncated\":\"length\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439737168.97_warc_CC-MAIN-20200810175614-20200810205614-00004.warc.gz\"}"}