Skip to Main Content
Itanium® Architecture for Programmers: Understanding 64-Bit Processors and EPIC Principles
book

Itanium® Architecture for Programmers: Understanding 64-Bit Processors and EPIC Principles

by James S. Evans - Lawrence University, Gregory L. Trimper - viika
April 2003
Intermediate to advanced content levelIntermediate to advanced
576 pages
15h 13m
English
Pearson
Content preview from Itanium® Architecture for Programmers: Understanding 64-Bit Processors and EPIC Principles

7.8. RANDOM: A Callable Function

We now present an example of linking an external function written in assembly language to a main program written in a high-level language. This function, which produces successive “ran dom” numbers, will also illustrate the calling of routines to compute the remainder from integer division as well as to obtain a nonrepeating initialization value.

High-level languages have not always specified functions for producing pseudo-random values, though modern compilers tend to include an extension to languages lacking such a standard. A large body of work exists on the challenging topic of how to generate and test sequences of random numbers (see Ferrenberg, Hayes, Knuth, Park).

Sampling of measurements on natural systems ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ARM System Developer's Guide

ARM System Developer's Guide

Andrew Sloss, Dominic Symes, Chris Wright
Intel Xeon Phi Processor High Performance Programming, 2nd Edition

Intel Xeon Phi Processor High Performance Programming, 2nd Edition

James Jeffers, James Reinders, Avinash Sodani

Publisher Resources

ISBN: 0131013726Purchase book