Function funct3 has the following prototype: double funct3(int *ap, double b, long c, float *dp); For this
Question:
Function funct3 has the following prototype:
double funct3(int *ap, double b, long c, float *dp);
For this function, gcc generates the following code:
Transcribed Image Text:
1 2 3 4 لیا 5 6 7 8 9 10 11 12 13 14 15 16 17 double funct3(int *ap, double b, long c, float *dp) ap in %rdi, b in %xmmo, c in %rsi, dp in %rdx funct3: vmovss (%rdx), %xmm1 vcvtsi2sd vucomisd jbe vunpcklps vcvtps2pd ret .L8 vcvtsi2ssq vmulss %xmm1, %xmm0, %xmm1 .L8: (%rdi), %xmm2, %xmm2 %xmm2, %xmmo %rsi, %xmm0, %xmmo vunpcklps vcvtps2pd ret vaddss %xmm1, %xmm1, %xmm 1 %xmm1, %xmm1, %xmm1 %xmm1, %xmmo vcvtsi2ssq vaddss %xmm1, %xmm0, %xmmo %rsi, %xmm0, %xmmo %xmm0, %xmmo, %zmmo %xmmo, %xmmo Write a C version of funct3.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (4 reviews)
Again we annotate the code including dealing with the con...View the full answer
Answered By
Stephen ouma
I have worked with different academic writing companies such as wriredom, writerbay, and Upwork. While working with these companies, I have helped thousands of students achieve their academic dreams. This is what I also intend to do here in SolutionInn
4.90+
19+ Reviews
63+ Question Solved
Related Book For
Computer Systems A Programmers Perspective
ISBN: 9781292101767
3rd Global Edition
Authors: Randal E. Bryant, David R. O'Hallaron
Question Posted:
Students also viewed these Computer science questions
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
Can you help me change this in c++ update your payroll program to use a C++ class. Each employee class object should hold the master file information for one employee. You can assume that the company...
-
Assignment 5: Hash Table implementation andconcordance There are three parts to this assignment. In the first two parts,you will complete the implementation of a hash map and aconcordance program. In...
-
Onefifth of a hive of bees flew to the Kadamba flower; one-third flew to the Silandhara; three times the difference of these two numbers flew to an arbor, and one bee continued flying about,...
-
The following issues are related to the accuracy and reliability of financial plans. Explain the process/issues related to each. Top-down versus bottom-up planning Plans as statements of goals...
-
The more important individual unit costs are used for decisions, the more likely it is that process costing will be preferred to job costing. Do you agree?
-
Indicate the effects of the transactions listed in the following table on total current assets, cur- rent ratio, and net income. Use (+) to indicate an increase, (-) to indicate a decrease, and (0)...
-
The budget unit sales of Weller Company for the upcoming fiscal year are provided below: The companys variable selling and administrated expense per unit is $2.50. Fixed selling and administrative...
-
On October 15, 2016, Koala, Inc. issued a 10 year bond (with a typical $1000 face value) that had an annual coupon value of $60. [We are assuming that the 2020 coupon has just been redeemed.]...
-
Determine the byte encoding of the Y86-64 instruction sequence that follows. The line .pos 0x100 indicates that the starting address of the object code should be 0x100. .pos 0x100 # Start code at...
-
Consider the following program: A. How many output lines does this program generate? B. What is one possible ordering of these output lines? 1 int main() 2 { WN 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17...
-
In Exercises 4550, perform the indicated operation(s) and write the result in standard form. (4- i) (1+2i)
-
At the beginning of the period, the Grinding Department budgeted direct labor of $171,200 and property tax of $57,000 for 10,700 hours of production. The department actually completed 12,800 hours of...
-
The following information is available for Shamrock Corporation for the year ended December 31, 2025. Beginning cash balance $ 58,500 Accounts payable decrease 4,810 Depreciation expense 210,600...
-
In today's stock market, compounding is the key to making money in the future for one's investments. However, with decentralized currency growing rapidly (Crypto), how can one rely on TVM for FV...
-
Contract for construction crew and equipment 8 Build parking lots Exterior lighting 11 7 20 12 Build foundation Start Interior Interior 12 9 electrical Final wiring finish Purchase 8 14 12 material...
-
Mad Hatter Enterprises purchased new equipment for $369,000, terms f.o.b. shipping point. Other costs connected with the purchase were as follows: State sales tax Freight costs Insurance while in...
-
A mixture of 40% N2 and 60% O2 by mass enters the insulated nozzle of Fig. 11.29 at 180 8C and 200 kPa with a velocity of 20 m/s. If it exits the nozzle at 60 8C, determine the exiting pressure and...
-
The company manufactures three products: wooden chairs, tables and dressers. AFC started off as a 'Mom & Pop' shop but has grown rapidly. AFC uses one assembly line to build all three products,...
-
Assume 151 and 214 are signed 8-bit decimal integers stored in twos complement format. Calculate 151 + 214 using saturating arithmetic. The result should be written in decimal. Show your work.
-
Using a table similar to that shown in Figure 3.6, calculate the product of the octal unsigned 6-bit integers 62 and 12 using the hardware described in Figure 3.3. You should show the contents of...
-
Using a table similar to that shown in Figure 3.6, calculate the product of the hexadecimal unsigned 8-bit integers 62 and 12 using the hardware described in Figure 3.5. You should show the contents...
-
The following selected transactions were completed during August between Summit Company and Beartooth Co. Both companies use the net method under a perpetual inventory system. Aug. 1 Summit Company...
-
Martin Technical Institute (MTI), a school owned by Lindsey Martin, provides training to individuals who pay tuition directly to the school. MTI also offers training to groups in off-site locations....
-
Nautical Creations is one of the largest producers of miniature ships in a bottle. An especially complex part of one of the ships requires special production equipment that is not useful for other...
Study smarter with the SolutionInn App