BSD 4_4 release
[unix-history] / usr / src / sys / tahoe / math / Ksinfcosf.s
index 6ac9818..00f3c1c 100644 (file)
@@ -1,23 +1,45 @@
-       .data
-       .align  2
-_twoopi:.long  0x4022F983, 0x6E4E4415 # .double .63661977236758134
-       .align  2
-_p0:.long      0x40C90FDA, 0x90304197 # .double 1.57079631844
-       .align  2
-_p1:.long      0xC0255DE0, 0xB36CEE75 # .double -.645963710599
-       .align  2
-_p2:.long      0x3EA33457, 0xA736E807 # .double .079689678945999999
-       .align  2
-_p3:.long      0xBC992665, 0x5E9A6554 # .double -.0046737666099999999
-       .align  2
-_p4:.long      0x3A1ED7FA, 0xCC54924E # .double .000151485129
-       .text
-LL0:   .align  1
-       .globl  _Kcosf
-       .set    L18,0x0
-       .data
+/*-
+ * Copyright (c) 1985 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Computer Consoles Inc.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ *     @(#)Ksinfcosf.s 7.1 (Berkeley) 12/6/90
+ */
+
+#include "../tahoe/SYS.h"
+
        .text
        .text
-_Kcosf:        .word   L18
+ENTRY(Kcosf, 0)
        tstl    4(fp)           # if (arg < 0)
        jgeq    L23
        lnd     4(fp)
        tstl    4(fp)           # if (arg < 0)
        jgeq    L23
        lnd     4(fp)
@@ -29,31 +51,7 @@ L23: pushl   20(fp)          #       hfs
        callf   $20,_sinus
        ret                     # return(sinus(arg,1));
 
        callf   $20,_sinus
        ret                     # return(sinus(arg,1));
 
-       .align  1
-       .globl  _Ksinf
-       .set    L25,0x0
-       .data
-       .text
-       .data
-       .align  2
-L36:   .long   0x47FFF800, 0x00000000 # .double 32764
-       .text
-       .data
-       .align  2
-L37:   .long   0x3F800000, 0x00000000 # .double .25
-       .text
-       .data
-       .align  2
-L38:   .long   0x41800000, 0x00000000 # .double 4
-       .text
-       .data
-       .align  2
-L41:   .long   0x40800000, 0x00000000 # .double 1
-       .text
-       .set    L29,0x0
-       .data
-       .text
-_Ksinf: .word  L25
+ENTRY(Ksinf, 0)
        pushl   20(fp)          # hfs
        pushl   $0
        pushl   8(fp)
        pushl   20(fp)          # hfs
        pushl   $0
        pushl   8(fp)
@@ -61,8 +59,7 @@ _Ksinf: .word L25
        callf   $20,_sinus
        ret                     # return(sinus(arg, 0));
 
        callf   $20,_sinus
        ret                     # return(sinus(arg, 0));
 
-       .align  1
-_sinus: .word  L29
+ENTRY(sinus, 0)
        subl3   $112,fp,sp
        movl    8(fp),-80(fp)
        movl    4(fp),-84(fp)   # x = arg;
        subl3   $112,fp,sp
        movl    8(fp),-80(fp)
        movl    4(fp),-84(fp)   # x = arg;
@@ -243,3 +240,16 @@ L42:       pushl   16(fp)          # hfs
        cvdf
        stf     r0
        ret#1
        cvdf
        stf     r0
        ret#1
+
+       .data
+       .align  2
+_twoopi:.long  0x4022F983, 0x6E4E4415 # .double .63661977236758134
+_p0:   .long   0x40C90FDA, 0x90304197 # .double 1.57079631844
+_p1:   .long   0xC0255DE0, 0xB36CEE75 # .double -.645963710599
+_p2:   .long   0x3EA33457, 0xA736E807 # .double .079689678945999999
+_p3:   .long   0xBC992665, 0x5E9A6554 # .double -.0046737666099999999
+_p4:   .long   0x3A1ED7FA, 0xCC54924E # .double .000151485129
+L36:   .long   0x47FFF800, 0x00000000 # .double 32764
+L37:   .long   0x3F800000, 0x00000000 # .double .25
+L38:   .long   0x41800000, 0x00000000 # .double 4
+L41:   .long   0x40800000, 0x00000000 # .double 1