multiplication.py revision 5081:2ccce8600a9d
15148SN/A# Copyright (c) 2007 The Hewlett-Packard Development Company 25148SN/A# All rights reserved. 35148SN/A# 410036SN/A# Redistribution and use of this software in source and binary forms, 58835SN/A# with or without modification, are permitted provided that the 610036SN/A# following conditions are met: 77873SN/A# 87873SN/A# The software must be used only for Non-Commercial Use which means any 97873SN/A# use which is NOT directed to receiving any direct monetary 105148SN/A# compensation for, or commercial advantage from such use. Illustrative 115148SN/A# examples of non-commercial use are academic research, personal study, 125148SN/A# teaching, education and corporate research & development. 1310315SN/A# Illustrative examples of commercial use are distributing products for 148835SN/A# commercial advantage and providing services using the software for 159885SN/A# commercial advantage. 169885SN/A# 1710036SN/A# If you wish to use this software or functionality therein that may be 1811312Santhony.gutierrez@amd.com# covered by patents for commercial use, please contact: 198835SN/A# Director of Intellectual Property Licensing 208835SN/A# Office of Strategy and Technology 2110315SN/A# Hewlett-Packard Company 228835SN/A# 1501 Page Mill Road 2310315SN/A# Palo Alto, California 94304 245148SN/A# 259481SN/A# Redistributions of source code must retain the above copyright notice, 268673SN/A# this list of conditions and the following disclaimer. Redistributions 2710901Snilay@cs.wisc.edu# in binary form must reproduce the above copyright notice, this list of 2811219Snilay@cs.wisc.edu# conditions and the following disclaimer in the documentation and/or 298721SN/A# other materials provided with the distribution. Neither the name of 308835SN/A# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 318835SN/A# contributors may be used to endorse or promote products derived from 327935SN/A# this software without specific prior written permission. No right of 337935SN/A# sublicense is granted herewith. Derivatives of the software and 347935SN/A# output created using the software may be prepared, but only for 357935SN/A# Non-Commercial Uses. Derivatives of the software may be shared with 367935SN/A# others provided: (i) the others agree to abide by the list of 377935SN/A# conditions herein which includes the Non-Commercial Use restrictions; 387935SN/A# and (ii) such Derivatives of the software include the above copyright 398983SN/A# notice to acknowledge the contribution from this software where 405148SN/A# applicable, this list of conditions and the disclaimer below. 419885SN/A# 429885SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 439885SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 4410315SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 4510036SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 4610315SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 479885SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 489885SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 495148SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 505148SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 519885SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 5210315SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 535876SN/A# 549885SN/A# Authors: Gabe Black 555148SN/A 565876SN/Amicrocode = ''' 578835SN/A# PFMUL 585876SN/A''' 595148SN/A