Skip to main content

AVX Programming – Scalar Floating-Point

  • Chapter
  • First Online:
Modern X86 Assembly Language Programming
  • 540 Accesses

Abstract

In the previous three chapters, you studied core x86-64 assembly language topics including integer arithmetic, bitwise logical operations, memory addressing modes, condition codes, and elementary programming constructs. You also learned essential details regarding assembly language source code semantics and syntax. In this chapter, you’ll discover how to use the AVX instruction set to perform scalar floating-point calculations. The first section encompasses three source code examples that illustrate fundamental scalar floating-point arithmetic operations including addition, subtraction, multiplication, and division. In the next section, you’ll study AVX scalar floating-point comparison and conversion instructions. The final section contains code that demonstrates operations using floating-point arrays.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    The IEEE 754-2008 standard uses the expression subnormal instead of denormal. This text utilizes denormal since this term is still used in the AMD and Intel programming reference manuals.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Kusswurm, D. (2023). AVX Programming – Scalar Floating-Point. In: Modern X86 Assembly Language Programming. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-9603-5_5

Download citation

Publish with us

Policies and ethics