ArticleslgStudy

computer science

3DNow!

3DNow! is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand 3DNow! rather than just read about it. In short: 3DNow! is a deprecated extension to the x86 instruction set developed by Advanced Micro Devices (AMD). It adds single instruction multiple data (SIMD) instructions to the base x86 instruction set, enabling it to perform vector processing of floating-point vector operations using vector registers.

Key takeaways

  • 3DNow! belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect 3DNow! to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of 3DNow! from memory before moving on to harder problems.

Reference excerpt

3DNow! is a deprecated extension to the x86 instruction set developed by Advanced Micro Devices (AMD). It adds single instruction multiple data (SIMD) instructions to the base x86 instruction set, enabling it to perform vector processing of floating-point vector operations using vector registers. This improvement enhances the performance of many graphics-intensive applications. The first microprocessor to implement 3DNow! was the AMD K6-2, introduced in 1998. In appropriate applications, this enhancement raised the speed by about 2–4 times. 3DNow! never gained much popularity, and in 2010 AMD announced its plan to drop support for the instruction set in future processors, with the exception of PREFETCH and PREFETCHW, two instructions that are also supported by Intel's Bay Trail-based processors. The instruction set was eventually dropped since 2017, with the release of Zen-based Ryzen and Epyc processor lines.

History 3DNow! was developed at a time when 3D graphics were becoming mainstream in PC multimedia and games. Realtime display of 3D graphics depended heavily on the host CPU's floating-point unit (FPU) to perform floating-point calculations, a task in which AMD's K6 processor was easily outperformed by its competitor, the Intel Pentium II. As an enhancement to the MMX instruction set, the 3DNow! instruction-set augmented the MMX SIMD registers to support common arithmetic operations (add/subtract/multiply) on single-precision (32-bit) floating-point data. Software written to use AMD's 3DNow! instead of the slower x87 FPU could execute up to four times faster, depending on the instruction mix.

Versions

3DNow! The first implementation of 3DNow! technology contains 21 new instructions that support SIMD floating-point operations. The 3DNow! data format is packed, single-precision, floating-point. The 3DNow! instruction set also includes operations for SIMD integer operations, data prefetch, and faster MMX-to-floating-point switching. Later, Intel would add similar (but incompatible) instructions to the Pentium III, known as SSE (Streaming SIMD Extensions). 3DNow! floating-point instructions are the following:

3DNow! integer instructions are the following:

PAVGUSB – Packed 8-bit unsigned integer averaging PMULHRW – Packed 16-bit integer multiply with rounding 3DNow! performance-enhancement instructions are the following:

FEMMS – Faster entry/exit of the MMX or floating-point state PREFETCH/PREFETCHW – Prefetch at least a 32-byte line into L1 data cache (this is the only non-deprecated instruction)

3DNow! extensions There is little or no evidence that the second version of 3DNow! was ever officially given its own trade name. This has led to some confusion in documentation that refers to this new instruction set. The most common terms are Extended 3DNow!, Enhanced 3DNow! and 3DNow!+. The phrase "Enhanced 3DNow!" can be found in a few locations on the AMD website but the capitalization of "Enhanced" appears to be either purely grammatical or used for emphasis on processors that may or may not have these extensions (the most notable of which references a benchmark page for the K6-III-P that does not have these extensions). This extension to the 3DNow! instruction set was introduced with the first-generation Athlon processors. The Athlon added five new 3DNow! instructions and 19 new MMX instructions. Later, the K6-2+ and K6-III+ (both targeted at the mobile market) included the five new 3DNow! instructions, leaving out the 19 new MMX instructions. The new 3DNow! instructions were added to boost DSP. The new MMX instructions were added to boost streaming media. The 19 new MMX instructions are a subset of Intel's SSE instruction set. In AMD technical manuals, AMD segregates these instructions apart from the 3DNow! extensions. In AMD customer product literature, however, this segregation is less clear where the benefits of all 24 new instructions are credited to enhanced 3DNow! technology. This has led programmers to come up with their own name for the 19 new MMX instructions. The most common appears to be Integer SSE (ISSE). SSEMMX and MMX2 are also found in video filter documentation from the public domain sector. ISSE could also refer to Internet SSE, an early name for SSE. 3DNow! extension DSP instructions are the following:

PF2IW – Packed floating-point to integer word conversion with sign extend PI2FW – Packed integer word to floating-point conversion PFNACC – Packed floating-point negative accumulate PFPNACC – Packed floating-point mixed positive-negative accumulate PSWAPD – Packed swap doubleword MMX extension instructions (Integer SSE) are the following:

3DNow! Professional 3DNow! Professional is a trade name used to indicate processors that combine 3DNow! technology with a complete SSE instructions set (such as SSE, SSE2 or SSE3). The Athlon XP was the first processor to carry the 3DNow! Professional trade name, and was the first product in the Athlon family to support the complete SSE instruction set (for the total of: 21 original 3DNow! instructions; five 3DNow! extension DSP instructions; 19 MMX extension instructions; and 52 additional SSE instructions for complete SSE compatibility).

3DNow! and the Geode GX/LX The Geode GX and Geode LX added two new 3DNow! instructions which is absent in all other processors. 3DNow! "professional" instructions unique to the Geode GX/LX are the following:

PFRSQRTV – Reciprocal square root approximation for a pair of 32-bit floats PFRCPV – Reciprocal approximation for a pair of 32-bit floats

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with 3DNow!

Start with the simplest possible case. Write down what 3DNow! claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to 3DNow! before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about 3DNow! ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of 3DNow!

In research
3DNow! appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses 3DNow! in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
3DNow! is common in secondary-school and first-year university syllabi. It links to neighbouring topics AMD technologies, SIMD computing, X86 architecture, so understanding it makes those chapters shorter.
In everyday life
Look for 3DNow! outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “3DNow!” →

How to study 3DNow! in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what 3DNow! means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain 3DNow! out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is 3DNow! in simple terms?

3DNow! is a deprecated extension to the x86 instruction set developed by Advanced Micro Devices (AMD). It adds single instruction multiple data (SIMD) instructions to the base x86 instruction set, enabling it to perform vector processing of floating-point vector operations using vector registers.

Why does 3DNow! matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study 3DNow!?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on 3DNow!.

Tags

  • AMD technologies
  • SIMD computing
  • X86 architecture

Keep exploring