~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/mips/math-emu/ieee754d.c

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/mips/math-emu/ieee754d.c (Version linux-6.12-rc7) and /arch/alpha/math-emu/ieee754d.c (Version linux-5.3.18)


  1 // SPDX-License-Identifier: GPL-2.0-only            1 
  2 /*                                                
  3  * Some debug functions                           
  4  *                                                
  5  * MIPS floating point support                    
  6  *                                                
  7  * Copyright (C) 1994-2000 Algorithmics Ltd.      
  8  *                                                
  9  *  Nov 7, 2000                                   
 10  *  Modified to build and operate in Linux ker    
 11  *                                                
 12  *  Kevin D. Kissell, kevink@mips.com and Cars    
 13  *  Copyright (C) 2000 MIPS Technologies, Inc.    
 14  */                                               
 15                                                   
 16 #include <linux/types.h>                          
 17 #include <linux/printk.h>                         
 18 #include "ieee754.h"                              
 19 #include "ieee754sp.h"                            
 20 #include "ieee754dp.h"                            
 21                                                   
 22 union ieee754dp ieee754dp_dump(char *m, union     
 23 {                                                 
 24         int i;                                    
 25                                                   
 26         printk("%s", m);                          
 27         printk("<%08x,%08x>\n", (unsigned) (x.    
 28                (unsigned) x.bits);                
 29         printk("\t=");                            
 30         switch (ieee754dp_class(x)) {             
 31         case IEEE754_CLASS_QNAN:                  
 32         case IEEE754_CLASS_SNAN:                  
 33                 printk("Nan %c", DPSIGN(x) ? '    
 34                 for (i = DP_FBITS - 1; i >= 0;    
 35                         printk("%c", DPMANT(x)    
 36                 break;                            
 37         case IEEE754_CLASS_INF:                   
 38                 printk("%cInfinity", DPSIGN(x)    
 39                 break;                            
 40         case IEEE754_CLASS_ZERO:                  
 41                 printk("%cZero", DPSIGN(x) ? '    
 42                 break;                            
 43         case IEEE754_CLASS_DNORM:                 
 44                 printk("%c0.", DPSIGN(x) ? '-'    
 45                 for (i = DP_FBITS - 1; i >= 0;    
 46                         printk("%c", DPMANT(x)    
 47                 printk("e%d", DPBEXP(x) - DP_E    
 48                 break;                            
 49         case IEEE754_CLASS_NORM:                  
 50                 printk("%c1.", DPSIGN(x) ? '-'    
 51                 for (i = DP_FBITS - 1; i >= 0;    
 52                         printk("%c", DPMANT(x)    
 53                 printk("e%d", DPBEXP(x) - DP_E    
 54                 break;                            
 55         default:                                  
 56                 printk("Illegal/Unknown IEEE75    
 57         }                                         
 58         printk("\n");                             
 59         return x;                                 
 60 }                                                 
 61                                                   
 62 union ieee754sp ieee754sp_dump(char *m, union     
 63 {                                                 
 64         int i;                                    
 65                                                   
 66         printk("%s=", m);                         
 67         printk("<%08x>\n", (unsigned) x.bits);    
 68         printk("\t=");                            
 69         switch (ieee754sp_class(x)) {             
 70         case IEEE754_CLASS_QNAN:                  
 71         case IEEE754_CLASS_SNAN:                  
 72                 printk("Nan %c", SPSIGN(x) ? '    
 73                 for (i = SP_FBITS - 1; i >= 0;    
 74                         printk("%c", SPMANT(x)    
 75                 break;                            
 76         case IEEE754_CLASS_INF:                   
 77                 printk("%cInfinity", SPSIGN(x)    
 78                 break;                            
 79         case IEEE754_CLASS_ZERO:                  
 80                 printk("%cZero", SPSIGN(x) ? '    
 81                 break;                            
 82         case IEEE754_CLASS_DNORM:                 
 83                 printk("%c0.", SPSIGN(x) ? '-'    
 84                 for (i = SP_FBITS - 1; i >= 0;    
 85                         printk("%c", SPMANT(x)    
 86                 printk("e%d", SPBEXP(x) - SP_E    
 87                 break;                            
 88         case IEEE754_CLASS_NORM:                  
 89                 printk("%c1.", SPSIGN(x) ? '-'    
 90                 for (i = SP_FBITS - 1; i >= 0;    
 91                         printk("%c", SPMANT(x)    
 92                 printk("e%d", SPBEXP(x) - SP_E    
 93                 break;                            
 94         default:                                  
 95                 printk("Illegal/Unknown IEEE75    
 96         }                                         
 97         printk("\n");                             
 98         return x;                                 
 99 }                                                 
100                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php