fast multiply for (long long) on UltraSPARC-II

fast multiply for (long long) on UltraSPARC-II

Post by Brian J. Holla » Fri, 03 Jan 1997 04:00:00



Does anyone know of a way to optimize a long long multiplication on a
UltraSPARC-II?  If not, is there a way to detect an overflow when
multiplying two integers.

Thanks.
--

Brian Holland
The MITRE Corporation MS E095
202 Burlington Road
Bedford, Ma. 01730-1420
617.271.3789

 
 
 

fast multiply for (long long) on UltraSPARC-II

Post by Casper H.S. D » Fri, 03 Jan 1997 04:00:00



Quote:>Does anyone know of a way to optimize a long long multiplication on a
>UltraSPARC-II?  If not, is there a way to detect an overflow when
>multiplying two integers.

Run 2.5.1.; you'll find that there's a __mul64 defined in
/usr/platform/sun4u/lib/libc_psr.so.1 and this
UltraSPARC specific one does the mulx in hardware.

(Note that this requires that you use Sun's C compiler as
gcc includes it's own, non UltraSPARC enhanced, 64 bit
integer ops)

Casper
--
Casper Dik - Sun Microsystems - via my guest account at the University

Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

1. long long & long double types in Linux GCC

There are two non-standard types defined in Linux GCC: long long (8 bytes)
and "long double" (12 bytes, but I think it uses 10 bytes floating point
type supported by 80x87 coprocessor). Both seem to work internally OK,
but is there a way to "printf" such values. Man page for "printf" does mention a
format modifier "L" for long double values, but it is not working. Nothing
about "long long" can be found in manpage.

Any experience with these types?

regards, Michal.

****************************************************************************


  Al. Ujazdowskie 4                   Voice:    48-22-294011 ext 23
  00-478 Warszawa, POLAND             FAX:      48-22-294967
****************************************************************************

2. NFS rights problems

3. RH7.2 2.4.X off_t: long or long long?

4. RAID 1 Block Size 2k Setup

5. Linux has a long, long, long way to go

6. CVS - problem with users ?

7. Assembly long multiply for mandelspawn, anyone?

8. bug in gethostbyname()?

9. Q: about "long long" type..

10. loff_t / long long and printk()?

11. _BSD_OFF_T_ type long long

12. printf(3) long long

13. Large File System and long long datatype (gcc)