From: Kazushige Goto <goto@statabo.rim.or.jp>
Subject: Vectorlized sin/cos routine
Date: Sun, 07 Mar 1999 11:14:39 +0900 [thread overview]
Message-ID: <19990307111439T.goto@statabo.rim.or.jp> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1108 bytes --]
Hi,
I made vectorlized sin/cos routine. It runs 28(sin)/30(cos)
clocks/each. I do not know these routines are useful...., I'll make
faster code if someone is interested in.
There are some variations,
-- C Version --
dsinv(double *src, double *dst, int size);
dcosv(double *src, double *dst, int size);
ssinv(float *src, float *dst, int size);
scosv(float *src, float *dst, int size);
-- FORTRAN Version --
call dsinv(dsrc, ddst, size);
call dcosv(dsrc, ddst, size);
call ssinv(ssrc, sdst, size);
call scosv(ssrc, sdst, size);
dsrc, ddst:double precision matrix
ssrc, sdst:single precision matrix
and there are NO exceptional handling, and I've only checked
dsinv/dcosv routine.
Thanks,
goto@statabo.rim.or.jp
Application/Octet-Stream attachment: invcosv.tar.gz_
reply other threads:[~1999-03-07 2:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox