1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vichka [17]
2 years ago
9

void inner4(vec_ptr u, vec_ptr v, data_t *dest) { long int i; int length = vec_length(u); data_t *udata = get_vec_start(u); data

_t *vdata = get_vec_start(v); data_t sum = (data_t) 0; for (i = 0; i < length; i++) { sum = sum + udata[i] * vdata[i]; } *dest = sum; } and you modify the code to the form below. /* Accumulate in temporary */ void inner4(vec_ptr u, vec_ptr v, data_t *dest) { long int i; int length = vec_length(u); data_t *udata = get_vec_start(u); data_t *vdata = get_vec_start(v); data_t sum = (data_t) 0; for (i = 0; i < length; i += 4) { sum = sum + udata[i] * vdata[i] + udata[i+1] * vdata[i+1] + udata[i+2] * vdata[i+2] + udata[i+3] * vdata[i+3]; } for (i = 0; i < length; i++) { sum = sum + udata[i] * vdata[i]; } *dest = sum; } What type of optimizations is being applied? Select one: a. Parallel accumulators b. Unrolling and multiple accumulators c. Strength reduction d. Loop unrolling e. Machine independent optimization
Computers and Technology
1 answer:
S_A_V [24]2 years ago
6 0

The type of optimization that is being applied to this programming code is: D. Loop unrolling.

<h3>What is loop unrolling?</h3>

Loop unrolling is also referred to as loop unwinding and it can be defined as loop transformation technique that is typically designed and developed to optimize the number of instructions that are executed by a software program at a given period of time, especially at the expense of its binary size (space-time tradeoff).

This ultimately implies that, loop unrolling can be used by programmers to optimize the execution time of a software program, in order to reduce the number of branches and loop maintenance instructions.

Read more on loop unrolling here: brainly.com/question/26098908

You might be interested in
What is a good voltage measurement on a brand new, 6 volt golf cart deep cycle battery after the first charging?
Rufina [12.5K]
The voltage will be the same after charging if fully charges
3 0
4 years ago
What commands would return all the rows and columns in the ProductCategory table?
Delvig [45]

Answer:

Select commands would return all the rows and columns in the table.

Explanation:

In the database management system, it consists of one or more table. To handle this table it provides the concept of SQL(Structured Query Language). It is a programming language that design, manage, store data into the relational database. It is case sensitive language. In the SQL many commands used for handle table data, it returns all rows and columns from the table.

Syntax of select command can be given as:

Select * from tablename;

Example:

select * from ProductCategory;

returns all the data from the table.

In select command, we will also return select data by using condition

SELECT column1 [, column2, ...]

FROM tablename

WHERE condition

In the conditional clause we use these operators that can be given as:

= Equal, > Greater than, < Less than, >= Greater than equal to, <= Less than equal to, != Not equal to.

8 0
4 years ago
A technician is dispatch to troubleshoot a user's computer.
Margarita [4]

Answer:

All of the above.

Explanation:

Thrashing or drive or disk thrashing occurs when the hard drive is stressed with transferring information between the system memory and virtual machine excessively. In thrashing, there is a large number of processes running in the system and the system memory is too small to handle all processes. Thrashing leads to decreased system performance and hard disk failure.

To stop the impact of thrashing, install more RAM, end unimportant progam processes etc.

5 0
3 years ago
Rank these three account types in order of decreasing liquidity. Start by picking the most liquid account type first
Ghella [55]
As there are no options given, I will simply mention the three most liquid accounts in order:

<span>1. Checking Account
2. Savings Account
3. Money Market Deposit Account

Account liquidity refers to the ease and comfort with which you can take your money out of an account from a bank, there are various bank accounts which can be referred to as liquid assets.</span>
5 0
3 years ago
Read 2 more answers
What is the value of 8n when n= = 2?​
lidiya [134]

Answer:

The value of 8n would be 16

8n

8(2)= 16

(uhh this is a math question right? Sorry if it has to deal with tech)

6 0
3 years ago
Other questions:
  • How do you design video games
    5·1 answer
  • Why should you thank the customer after resolving an issue?
    7·2 answers
  • In presentation software, what is the way that text and pictures are arranged on a page called?
    10·1 answer
  • Another name for divergent boundaries that occur under the ocean is
    6·2 answers
  • If a client is found _________ the NAP will attempt to make it _______. Group of answer choices A. non-compliant, compliant B. s
    13·2 answers
  • What is a collection of computer programs that administer the hardware and software of a computer so that they work properly?
    7·1 answer
  • which of the following cells can't be recarged? A. Electrode cell B. wet cell C. primary cell D. storage cell
    13·1 answer
  • Explain in your own words how remote-access Trojans (RATs) work. How can these be used by attackers? How would a network adminis
    10·1 answer
  • Given two int variables , firstplacewinner and secondplacewinner, write some code that swaps their values . declare any addition
    11·1 answer
  • Question 2 (1 point)
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!